OSDN Git Service

PR rtl-optimization/51187
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-11-19  Eric Botcazou  <ebotcazou@adacore.com>
2
3         PR rtl-optimization/51187
4         * reorg.c (relax_delay_slots): Do not consider a jump useless if there
5         is a barrier between the jump and its target label.
6
7 2011-11-19  Patrick Marlier  <patrick.marlier@gmail.com>
8
9         PR middle-end/51211
10         * tracer.c (ignore_bb_p): Don't copy GIMPLE_TRANSACTION.
11
12 2011-11-19  Eric Botcazou  <ebotcazou@adacore.com>
13
14         * expmed.c (store_bit_field_1): Revert bogus formatting change.
15
16 2011-11-19  Richard Earnshaw  <rearnsha@arm.com>
17
18         PR target/50493
19         * config/arm/arm.c (neon_disambiguate_copy): Correctly handle partial
20         overlap of src and dest operands.
21
22 2011-11-19  Iain Sandoe  <iains@gcc.gnu.org>
23
24         * config/darwin.h (ASM_DEBUG_SPEC): New.
25         * config/darwin9.h (ASM_DEBUG_SPEC): New.
26
27 2011-11-18  Jan Hubicka  <jh@suse.cz>
28
29         * config/i386/i386.c (atom_cost): Disable SSE loop until alignment
30         issues are fixed.
31
32 2011-11-18  Anatoly Sokolov  <aesok@post.ru>
33
34         * config/cris/cris.c (cris_function_value_regno_p): Make static.
35         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
36         * config/cris/cris.h (FUNCTION_VALUE_REGNO_P): Remove.
37         * config/cris/cris-protos.h (cris_function_value_regno_p): Remove.
38
39 2011-11-18  H.J. Lu  <hongjiu.lu@intel.com>
40
41         PR target/33944
42         * doc/extend.texi: Document __builtin_ia32_movnti64.
43
44         * config/i386/emmintrin.h (_mm_stream_si64): New.
45
46         * config/i386/i386-builtin-types.def: Add VOID_FTYPE_PLONGLONG_LONGLONG.
47
48         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTI64.
49         (bdesc_special_args): Update __builtin_ia32_movnti.  Add
50         __builtin_ia32_movnti64.
51         (ix86_expand_special_args_builtin): Handle
52         VOID_FTYPE_PLONGLONG_LONGLONG.
53
54         * config/i386/i386.md (UNSPEC_MOVNTI): New.
55
56         * config/i386/sse.md (sse2_movntsi): Renamed to ...
57         (sse2_movnti<mode>): This.
58
59 2011-11-18  Georg-Johann Lay  <avr@gjlay.de>
60
61         PR target/49868
62         * config/avr/avr.h (base_arch_s): Add field n_segments.
63         (ADDR_SPACE_PGM1, ADDR_SPACE_PGM2, ADDR_SPACE_PGM3,
64         ADDR_SPACE_PGM4, ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): New address spaces.
65         (AVR_HAVE_ELPM, AVR_HAVE_ELPMX): New defines.
66         (INIT_EXPANDERS): New define.
67         * config/avr/avr-protos.h (avr_mem_pgmx_p): New.
68         (avr_init_expanders): New.
69         (avr_emit_movmemhi, avr_out_movmem): New.
70         (avr_xload_libgcc_p): New.
71         * config/avr/avr-c.c (avr_register_target_pragmas): Register
72         address spaces __pgm1, __pgm2,  __pgm3,  __pgm4  __pgm5,  __pgmx.
73         (avr_cpu_cpp_builtins): Add built-in defines __PGM1,
74         __PGM2, __PGM3, __PGM4, __PGM5, __PGMX.
75         * config/avr/avr-devices.c (avr_arch_types): Set field n_segments.
76
77         * config/avr/avr.c (AVR_SECTION_PROGMEM): Change define to cover
78         3 bits instead of just 1.
79         (xstring_empty, xstring_e, rampz_rtx): New static GTYed variables.
80         (progmem_section): Change from section to array of sections.
81         (progmem_section_prefix): New static variable.
82         (avr_file_start): Print set for __RAMPZ__
83         (avr_option_override): Move initialization of RTXes from here...
84         (avr_init_expanders): ...to this new function.
85         (avr_pgm_segment): New static function.
86         (avr_decl_pgm_p): Handle error_mark_node.
87         (avr_mem_pgmx_p, avr_decl_pgmx_p): New static functions.
88         (avr_out_xload, avr_find_unused_d_reg): New static functions.
89         (expand_prologue, expand_epilogue): Use rampz_rtx.
90         (print_operand): Hande CONST_STRING.
91         (avr_xload_libgcc_p): New static function.
92         (avr_out_lpm_no_lpmx, avr_out_lpm): Handle ELPM.
93         (avr_progmem_p): Return 2 for 24-bit flash address space.
94         (avr_out_sbxx_branch): Clean-up code from ASn macros.
95         (out_movqi_r_mr, out_movqi_mr_r): Ditto. And recognize RAMPZ's
96         address and print symbolically.
97         (avr_asm_named_section, avr_section_type_flags,
98         avr_encode_section_info, avr_asm_select_section,
99         avr_addr_space_address_mode, avr_addr_space_pointer_mode,
100         avr_addr_space_legitimate_address_p, avr_addr_space_convert,
101         avr_addr_space_legitimize_address): Handle new address spaces.
102         (avr_output_progmem_section_asm_op): New static function.
103         (avr_asm_init_sections): Initialize progmem_section[].
104         (adjust_insn_length): Handle ADJUST_LEN_XLOAD, ADJUST_LEN_MOVMEM.
105         (avr_const_address_lo16): New static function.
106         (avr_assemble_integer): Use it to handle 3-byte integers.
107         (avr_emit_movmemhi, avr_out_movmem): New functions.
108         
109         * config/avr/predicates.md (nox_general_operand): Handle new
110         address spaces.
111         * config/avr/avr.md (unspec): Add UNSPEC_MOVMEM.
112         (adjust_len): Add xload, movmem.
113         (SP_ADDR): New define_constants.
114         (isa): Add "lpm", "lpmx", "elpm", "elpmx".
115         (enabled): Handle them.
116         (load<mode>_libgcc): New expander.
117         (*load.<mode>.libgcc): Rename to load_<mode>_libgcc.
118         (xload8_A, xload<mode>_A): New insn-and-splits.
119         (xload_8, xload_<mode>_libgcc, xload_<mode>, loadmem_elpm): New insns.
120         (mov<mode>): Handle new address spaces.
121         (movmemhi): Rewrite using avr_emit_movmemhi.
122         (MOVMEM_r_d): New mode attribute.
123         (movmem_<mode>, movmem_qi_elpm): New insns.
124         (setmemhi, *clrmemqi, *clrmemhi, strlenhi, *strlenhi): Unquote
125         C-code.  Use label instead of hard-coded instrunction lengths.
126
127 2011-11-18  Martin Jambor  <mjambor@suse.cz>
128
129         PR tree-optimization/50605
130         * gimple.c (is_gimple_ip_invariant_address): Also handle MEM_REFs
131         of IPA invariant decls.
132
133 2011-11-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
134
135         * tree-outof-ssa.c (insert_back_edge_copies):  Add call to
136         mark_dfs_back_edges.
137
138 2011-11-18  Iain Sandoe  <iains@gcc.gnu.org>
139
140         PR target/49992
141         * configure.ac: Remove ranlib special-casing for Darwin.
142         * configure: Regenerate.
143
144 2011-11-18  Uros Bizjak  <ubizjak@gmail.com>
145
146         PR tree-optimization/51118
147         * fold-const.c (fold_checksum_tree): Check for TS_TYPED structure
148         before using TREE_TYPE accessor on expr.
149
150 2011-11-17  Jan Hubicka  <jh@suse.cz>
151
152         PR bootstrap/51134
153         * i386.c (atom_cost): Fix 32bit memset description.
154         (expand_set_or_movmem_via_loop_with_iter): Output proper bounds check
155         for epilogue loops.
156         (expand_movmem_epilogue): Handle epilogues up to size 15 w/o producing
157         byte loop.
158         (decide_alg): sse_loop is not useable wthen SSE2 is disabled;
159         when not optimizing always use rep movsb or lincall; do not produce
160         word sized loops when optimizing memset for size (to avoid need
161         for large constants).
162         (ix86_expand_movmem): Get into sync with ix86_expand_setmem;
163         choose unroll factors better; always do 128bit moves when producing
164         SSE loops; do not produce loopy epilogue when size is too small.
165         (promote_duplicated_reg_to_size): Do not look into desired alignments
166         when doing vector expansion.
167         (ix86_expand_setmem): Track better when promoted value is available;
168         choose unroll factors more sanely. Output loopy epilogue only
169         when needed.
170
171 2011-11-17  Steve Ellcey  <sje@cup.hp.com>
172
173         PR middle-end/51144
174         * output.h (fprint_w): Remove.
175         * final.c (fprint_w): Remove.
176         (output_addr_const): Change fprint_w back to fprintf.
177
178 2011-11-17  Andrew Pinski  <apinski@cavium.com>
179
180         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for MIPS.
181
182 2011-11-17  Andrew MacLeod  <amacleod@redhat.com>
183
184         * builtins.c (expand_builtin): Remove 4th parameter representing
185         weak/strong mode when __atomic_compare_exchange becomes a library call.
186
187 2011-11-17  Richard Henderson  <rth@redhat.com>
188
189         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap): Get
190         new pseudo for target after convert_modes.
191         (rs6000_expand_atomic_exchange, rs6000_expand_atomic_op): Likewise.
192
193 2011-11-17  Richard Henderson  <rth@redhat.com>
194
195         * builtins.c (expand_builtin_mem_thread_fence): Remove.
196         (expand_builtin_mem_signal_fence): Remove.
197         (expand_builtin_atomic_thread_fence): Use expand_mem_thread_fence.
198         (expand_builtin_sync_synchronize): Likewise.
199         (expand_builtin_atomic_signal_fence): Use expand_mem_signal_fence.
200         * optabs.c (expand_asm_memory_barrier): Split out from
201         expand_builtin_mem_signal_fence.
202         (expand_mem_thread_fence): New, a combination of code from
203         expand_builtin_mem_thread_fence and expand_builtin_sync_synchronize.
204         (expand_mem_signal_fence): Moved and renamed from
205         expand_builtin_mem_signal_fence.
206         (expand_atomic_exchange): Use expand_mem_thread_fence.
207         (expand_atomic_load, expand_atomic_store): Likewise.
208         * expr.h, optabs.h: Update decls.
209
210 2011-11-17  Bin Cheng  <bin.cheng@arm.com>
211
212         PR rtl-optimization/50663
213         * cprop.c (implicit_set_indexes): New global variable.
214         (insert_set_in_table): Add additional parameter and record implicit
215         set information.
216         (hash_scan_set): Add additional parameter and pass it to above.
217         (hash_scan_insn): Pass false to hash_scan_set.
218         (compute_hash_table_work): Pass true to hash_scan_set.
219         (compute_cprop_data): Add implicit set to AVIN of block which the
220         implicit set is recorded for.
221         (one_cprop_pass): Handle implicit_set_indexes array.
222
223 2011-11-17  Michael Matz  <matz@suse.de>
224
225         PR middle-end/50644
226         PR middle-end/50741
227         * tree-ssa-live.c (mark_all_vars_used_1): Recurse only for decls of
228         current function.
229         (remove_unused_locals): Ditto.
230
231 2011-11-16  Richard Henderson  <rth@redhat.com>
232
233         * config/alpha/alpha.c (alpha_split_compare_and_swap_12): Copy
234         ALIAS_SET_MEMORY_BARRIER when creating a new memory.
235         (alpha_split_atomic_exchange_12): Likewise.
236         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Likewise.
237
238 2011-11-16  Joseph Myers  <joseph@codesourcery.com>
239
240         * config/i386/i386elf.h (PREFERRED_DEBUGGING_TYPE): Remove.
241
242 2011-11-16  David Edelsohn  <dje.gcc@gmail.com>
243
244         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
245         Default to minimum alignment if decl is NULL.
246
247 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
248
249         * config/i386/sse.md (round<mode>2_vec_pack_sfix): Optimize V2DFmode
250         sequence for AVX.
251         (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
252
253 2011-11-16  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
254
255         * doc/invoke.texi: Document AMD bdver1 and btver1.
256
257 2011-11-16  Richard Earnshaw  <rearnsha@arm.com>
258             Bernd Schmidt <bernds@coudesourcery.com>
259             Sebastian Huber <sebastian.huber@embedded-brains.de>
260
261         PR target/49641
262         * config/arm/arm.c (store_multiple_sequence): Avoid cases where
263         the base reg is stored iff compiling for Thumb1.
264
265 2011-11-16  Razya Ladelsky  <razya@il.ibm.com>
266
267         PR tree-optimization/49960
268         * tree-data-ref.c (initialize_data_dependence_relation): Add
269         initializations.
270         Remove call to compute_self_dependence.
271         (compute_affine_dependence): Remove the !DDR_SELF_REFERENCE condition.
272         (compute_self_dependence): Remove old code. Add call to
273         compute_affine_dependence.
274         (compute_all_dependences): Remove call to compute_self_dependence.
275         Add call to compute_affine_dependence.
276
277 2011-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
278
279         PR middle-end/50325
280         * expmed.c (store_bit_field_1): Use extract_bit_field on big
281         endian targets if the source cannot be exactly covered by word
282         mode chunks.
283
284 2011-11-15  Joseph Myers  <joseph@codesourcery.com>
285
286         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Change STRING_LIMIT to
287         ELF_STRING_LIMIT.
288
289 2011-11-15  Richard Henderson  <rth@redhat.com>
290
291         * config/alpha/alpha.c (alpha_pre_atomic_barrier): New.
292         (alpha_post_atomic_barrier): New.
293         (alpha_split_atomic_op): New memmodel argument; honor it.
294         (alpha_split_compare_and_swap): Take array of operands.  Honor
295         memmodel; always set bool output
296         (alpha_expand_compare_and_swap_12): Similarly.
297         (alpha_split_compare_and_swap_12): Similarly.
298         (alpha_split_atomic_exchange): Similarly.  Rename from
299         alpha_split_lock_test_and_set.
300         (alpha_expand_atomic_exchange_12): Similarly.  Rename from
301         alpha_expand_lock_test_and_set_12.
302         (alpha_split_atomic_exchange_12): Similarly.  Rename from
303         alpha_split_lock_test_and_set_12.
304         * config/alpha/alpha-protos.h: Update.
305         * config/alpha/alpha.md (UNSPECV_CMPXCHG): New.
306         * config/alpha/constraints.md ("w"): New.
307         * config/alpha/predicates.md (mem_noofs_operand): New.
308         * config/alpha/sync.md (atomic_compare_and_swap<mode>): Rename from
309         sync_compare_and_swap<mode>; add the new parameters.
310         (atomic_exchange<mode>): Update from sync_test_and_set<mode>.
311         (atomic_fetch_<op><mode>): Update from sync_old_<op><mode>.
312         (atomic_<op>_fetch<mode>): Update from sync_new_<op><mode>.
313         (atomic_<op><mode>): Update from sync_<op><mode>.
314
315 2011-11-16  Tom de Vries  <tom@codesourcery.com>
316
317         * tree-ssa-tail-merge.c (replace_block_by): Add frequency of bb2 to bb1.
318
319 2011-11-16  Alan Modra  <amodra@gmail.com>
320
321         PR rtl-optimization/51051
322         PR bootstrap/51086
323         * function.c (thread_prologue_and_epilogue_insns): Guard
324         emitting return with single_succ_p test.
325
326 2011-11-15  Joern Rennecke  <joern.rennecke@embecosm.com>
327
328         * config/epiphany/epiphany.md (mov<mode>cc): Fix code to
329         get mode from CMP_OP1 if CMP_OP0 is VOIDmode.
330
331 2011-11-15  Uros Bizjak  <ubizjak@gmail.com>
332
333         * config/i386/sse.md (vec_pack_trunc_v2df): Optimize sequence for AVX.
334         (vec_pack_sfix_trunc_v2df): Ditto.
335         (vec_pack_sfix_v2df): Ditto.
336         (vec_pack_sfix_trunc_v4df): Generate fix_truncv4dfv4si2 and
337         avx_vec_concatv8si patterns.
338         (vec_pack_sfix_v4df): Generate avx_cvtpd2dq256 and
339         avx_vec_concatv8si patterns.
340
341 2011-11-15  Torvald Riegel  <triegel@redhat.com>
342
343         * c-parser.c (c_parser_transaction_expression): Require parentheses
344         when parsing transaction expressions.
345
346 2011-11-15  Tristan Gingold  <gingold@adacore.com>
347
348         * incpath.c (get_added_cpp_dirs): New function.
349         * incpath.h (get_added_cpp_dirs): Declare.
350         * config/vms/vms-c.c (vms_c_register_includes): New function.
351         (vms_std_modules): New variable.
352         * config/vms/vms.h (TARGET_EXTRA_INCLUDES): Define.
353         (vms_c_register_includes): Declare.
354
355 2011-11-15  Tristan Gingold  <gingold@adacore.com>
356
357         * c-family/c-pragma.h (pragma_extern_prefix): Declare.
358         * c-family/c-pragma.c (pragma_extern_prefix): Make it public.
359         * config/vms/vms-c.c (saved_extern_prefix): New variable.
360         (vms_pragma_extern_prefix): New function.
361         (vms_c_register_pragma): Register vms_pragma_extern_prefix.
362
363 2011-11-15  Georg-Johann Lay  <avr@gjlay.de>
364
365         PR target/49868
366         * config/avr/avr.h (ADDR_SPACE_PGM): New address spaces.
367         (REGISTER_TARGET_PRAGMAS): New define.
368         * config/avr/avr-protos.h (avr_mem_pgm_p): New.
369         (avr_load_libgcc_p): New.
370         (avr_register_target_pragmas): New.
371         (asm_output_external_libcall): Remove.
372         (avr_log_t): Add field "progmem".  Order alphabetically.
373         * config/avr/avr-log.c (avr_log_set_avr_log): Set avr_log.progmem.
374         * config/avr/avr-c.c (langhooks.h): New include.
375         (avr_register_target_pragmas): New function. Register address
376         space __pgm.
377         (avr_cpu_cpp_builtins): Add built-in define __PGM.
378
379         * config/avr/avr.c: Include "c-family/c-common.h".
380         (TARGET_LEGITIMATE_ADDRESS_P): Remove define.
381         (TARGET_LEGITIMIZE_ADDRESS): Remove define.
382         (TARGET_ADDR_SPACE_SUBSET_P): Define to...
383         (avr_addr_space_subset_p): ...this new static function.
384         (TARGET_ADDR_SPACE_CONVERT): Define to...
385         (avr_addr_space_convert): ...this new static function.
386         (TARGET_ADDR_SPACE_ADDRESS_MODE): Define to...
387         (avr_addr_space_address_mode): ...this new static function.
388         (TARGET_ADDR_SPACE_POINTER_MODE): Define to...
389         (avr_addr_space_pointer_mode): ...this new static function.
390         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define to...
391         (avr_addr_space_legitimate_address_p): ...this new static function.
392         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Define to...
393         (avr_addr_space_legitimize_address): ...this new static function.
394         (avr_mode_code_base_reg_class): Handle address spaces.
395         (avr_regno_mode_code_ok_for_base_p): Ditto.
396         (lpm_addr_reg_rtx, lpm_reg_rtx, all_regs_rtx): New static variables.
397         (avr_option_override): Initialize them.
398         (output_reload_in_const): Use all_regs_rtx. Fix signedness of loop
399         variables.
400         (avr_pgm_segment): New static function.
401         (avr_decl_pgm_p, avr_mem_pgm_p): New static functions.
402         (avr_out_lpm, avr_out_lpm_no_lpmx): New static functions.
403         (output_movqi, output_movhi, output_movsisf, avr_out_movpsi): Call
404         avr_out_lpm to handle loads from progmem.
405         (avr_load_libgcc_p): New static function.
406         (avr_progmem_p): Test if decl is in flash.
407         (avr_pgm_pointer_const_p): New static function.
408         (avr_nonconst_pointer_addrspace): New static function.
409         (avr_pgm_check_var_decl): New static function.
410         (avr_insert_attributes): Use it.  Change error message to report
411         cause (progmem or address space) when code wants to write to flash.
412         (avr_section_type_flags): Unset section flag SECTION_BSS for
413         data in progmem.
414
415         * config/avr/predicates.md (nop_general_operand): New predicate.
416         (nox_general_operand): New predicate.
417         * config/avr/avr.md (LPM_REGNO): New define_constant.
418         (load<mode>_libgcc): New expander.
419         (*load.<mode>.libgcc): New insn.
420         (mov<mode>): Handle loads from non-generic AS.
421         (movmemhi): Ditto.  Propagate address space information to newly
422         created MEM.
423         (movqi_insn, *movhi, *movpsi, *movsi, *movsf): Change predicate #1
424         to nox_general_operand.
425         (ashrqi3, ashrhi3, ashrsi3): Change predicate #1 to
426         nop_general_operand.
427         (ashlqi3, *ashlqi3, ashlhi3, ashlsi3): Ditto.
428         (lshrqi3, *lshrqi3, lshrhi3, lshrsi3): Ditto.
429         (split-lpmx): New split.
430         (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
431         *lshrhi3_const, *lshrsi3_const): Indent, unquote C.
432
433 2011-11-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
434
435         * ipa-cp.c (ipa_value_from_jfunc): Make global.
436         (ipa_cst_from_jfunc): Remove, use ipa_value_from_jfunc instead.
437         (get_indirect_edge_target): Rename, make global.
438         (devirtualization_time_bonus, estimate_local_effects,)
439         (ipcp_discover_new_direct_edges): Update.
440         * ipa-inline-analysis.c (evaluate_conditions_for_edge):
441         Generalize to also handle types.  Rename to ...
442         (evaluate_properties_for_edge): Use instead of
443         evaluate_conditions_for_edge.
444         (estimate_edge_devirt_benefit): New function.
445         (estimate_calls_size_and_time): Use it.
446         (estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,)
447         (inline_merge_summary): Update.
448         (do_estimate_edge_time, do_estimate_edge_growth): Update.  Calculate
449         parameter information at the call site and pass it on to subroutines.
450         * tree-inline.c (estimate_num_insns): Distinguish between direct and
451         indirect calls.
452         (init_inline_once): Set size and time costs or indirect calls.
453         * tree-inline.h (eni_weights): Add indirect_call_cost.
454
455 2011-11-15  Tom de Vries  <tom@codesourcery.com>
456
457         PR tree-optimization/51005
458         * tree-ssa-tail-merge.c (delete_basic_block_same_succ): Rename to
459         mark_basic_block_deleted.
460         (update_worklist): Inline purge_bbs.
461         (purge_bbs, unlink_virtual_phi, update_vuses, vop_at_entry)
462         (delete_block_update_dominator_info): Remove.
463         (replace_block_by): Remove update_vops parameter.  Partially evaluate
464         for update_vops == false.
465         (apply_clusters): Remove update_vops parameter.  Remove update_vops
466         argument in replace_block_by call.
467         (update_debug_stmts): Remove MAY_HAVE_DEBUG_STMTS test.
468         (tail_merge_optimize): Remove update_vops argument to apply_clusters.
469         Remove call to purge_bbs.  Add calls to calculate_dominance_info and
470         free_dominance_info.  Add MAY_HAVE_DEBUG_STMTS  before calling
471         update_debug_stmts.  Mark vop var for renaming, if necessary.
472
473 2011-11-15  Bernd Schmidt  <bernds@codesourcery.com>
474
475         PR rtl-optimization/51051
476         * cfgrtl.c (cfg_layout_can_merge_blocks_p): Return FALSE if the
477         move would cause fallthrough into the exit block.
478
479 2011-11-14  Richard Henderson  <rth@redhat.com>
480
481         * config/rs6000/rs6000.c (emit_load_locked): Assert the mode is
482         handled.
483         (emit_store_conditional): Likewise.
484         (rs6000_pre_atomic_barrier, rs6000_post_atomic_barrier): New.
485         (rs6000_adjust_atomic_subword): New.
486         (rs6000_mask_atomic_subword, rs6000_finish_atomic_subword): New.
487         (rs6000_expand_atomic_op): Rename from rs6000_emit_sync; rewrite
488         for pre-reload expansion.
489         (rs6000_split_compare_and_swap, rs6000_split_compare_and_swapqhi,
490         rs6000_expand_compare_and_swapqhi): Merge into ...
491         (rs6000_expand_atomic_compare_and_swap): ... here.  New function.
492         rs6000_split_lock_test_and_set; expand immediately.  Handle
493         QImode and HImode.
494         * config/rs6000/rs6000.md (UNSPEC_LWSYNC): Move and rename
495         from UNSPECV_LWSYNC.
496         * config/rs6000/sync.md (fetchopsi_constr, fetchopdi_constr): Remove.
497         (mem_thread_fence): New.
498         (hwsync): Rename from memory_barrier.
499         (*hwsync): Rename from *sync_internal.
500         (lwsync, *lwsync): Mirror hwsync implementation.
501         (isync): Don't reference memory.
502         (loadsync): New.
503         (atomic_load<INT>, atomic_store<INT>): New.
504         (ATOMIC): New mode iterator.
505         (load_locked<ATOMIC>): Rename from load_locked_<GPR>.
506         (store_conditional<ATOMIC>): Rename from store_conditional_<GPR>.
507         (sync_compare_and_swap<GPR>): Remove.
508         (sync_compare_and_swaphi, sync_compare_and_swapqi): Remove.
509         (sync_compare_and_swapqhi_internal): Remove.
510         (sync_lock_test_and_set<GPR>): Remove.
511         (sync_<FETCHOP><INT1>): Remove.
512         (*sync_<FETCHOP>si_internal, *sync_<FETCHOP>di_internal): Remove.
513         (sync_nand<INT1>, *sync_nand<GPR>_internal): Remove.
514         (sync_old_<FETCHOP><GPR>): Remove.
515         (*sync_old_<FETCHOP>si_internal): Remove.
516         (*sync_old_<FETCHOP>di_internal): Remove.
517         (sync_old_nand<INT1>): Remove.
518         (*sync_old_nand<GPR>_internal): Remove.
519         (sync_new_<FETCHOP><GPR>): Remove.
520         (*sync_new_<FETCHOP>si_internal): Remove.
521         (*sync_new_<FETCHOP>di_internal): Remove.
522         (sync_new_nand<INT1>): Remove.
523         (*sync_new_nand<GPR>_internal): Remove.
524         (*atomic_andsi, *atomic_anddi): Remove.
525         (*sync_addshort_internal, *sync_subshort_internal): Remove.
526         (*sync_andsi_internal, *sync_boolsi_internal): Remove.
527         (*sync_boolcshort_internal): Remove.
528         (sync_lock_release<INT1>): Remove.
529         (atomic_compare_and_swap<INT1>): New.
530         (atomic_exchange<INT1>): New.
531         (atomic_<FETCHOP><INT1>, atomic_nand<INT1>): New.
532         (atomic_fetch_<FETCHOP><INT1>, atomic_fetch_nand<INT1>): New.
533         (atomic_<FETCHOP>_fetch<INT1>, atomic_nand_fetch<INT1>): New.
534
535 2011-11-14  Uros Bizjak  <ubizjak@gmail.com>
536
537         * config/i386/sse.md (round<mode>2): Use register_operand for
538         operand 1 predicate.
539         (round<mode>2_sfix): Ditto.
540         (round<mode>2_vec_pack_sfix): Ditto for operand 1 and operand 2.
541
542 2011-11-14  Nathan Sidwell  <nathan@acm.org>
543
544         * gcov.c (canonicalize_name): Protect use of S_ISLNK.
545
546 2011-11-14  Jan Hubicka  <jh@suse.cz>
547
548         PR target/51126
549         * config/i386/i386.c (core cost model): Correct pasto.
550
551 2011-11-14  Uros Bizjak  <ubizjak@gmail.com>
552
553         * config/i386/sse.md (round<mode>2_sfix): New expander.
554         (round<mode>2_vec_pack_sfix): Ditto.
555         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
556         (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
557         * config/i386/builtin-types.def (V4SI_FTYPE_V4SF_ROUND,
558         V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND,
559         V8SI_FTYPE_V4DF_V4DF_ROUND): New builtin types.
560         * config/i386/i386.c (ix86_builtins): Add
561         IX86_BUILTIN_{FLOORPD,CEILPD,ROUNDPD_AZ}_VEC_PACK_SFIX{,256} and
562         IX86_BUILTIN_{FLOORPS,CEILPS,ROUNDPS_AZ}_SFIX{,256} defines.
563         (bdesc_args): Add __builtin_ia32_{floorpd,ceilpd}_vec_pack_sfix{,256},
564         __builtin_ia32_roundpd_az_vec_pack_sfix{,256},
565         __builtin_ia32_{floorps,ceilps}_sfix{,256}and
566         __builtin_ia32_roundps_az_sfix{,256} descriptions.
567         (ix86_expand_sse_round_vec_pack_sfix): New.
568         (ix86_expand_args_builtin): Handle V4SI_FTYPE_V4SF_ROUND,
569         V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND and
570         V8SI_FTYPE_V4DF_V4DF_ROUND types.  Check last argument of
571         CODE_FOR_sse4_1_roundpd_vec_pack_sfix, CODE_FOR_sse4_1_roundps_sfix,
572         CODE_FOR_avx_roundpd_vec_pack_sfix256 and CODE_FOR_avx_roundps_sfix256.
573         (ix86_builtin_vectorized_function): Handle
574         BUILT_IN_{I,L,LL}FLOOR{,F}, BUILT_IN_{I,L,LL}CEIL{,F} and
575         BUILT_IN_{I,L,LL}ROUND{,F}
576
577 2011-11-14  Jan Hubicka  <jh@suse.cz>
578
579         PR middle-end/50598
580         * cgraph.h (varpool_externally_visible_p): Declare.
581         (varpool_add_new_variable): Declare.
582         * tree-emultls.c (get_emutls_init_templ_addr,
583         new_emutls_decl): Use varpool_add_new_variable.
584         * ipa.c (varpool_externally_visible_p): Export.
585         * varpool.c (varpool_add_new_variable): New function.
586
587 2011-11-14  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
588             Jan Hubicka  <jh@suse.cz>
589
590         * config/i386/i386.h (processor_costs): Add second dimension to
591         stringop_algs array.
592         * config/i386/i386.c (cost models): Initialize second dimension of
593         stringop_algs arrays.
594         (core_cost): New costs based on generic64 costs with updated stringop
595         values.
596         (promote_duplicated_reg): Add support for vector modes, add
597         declaration.
598         (promote_duplicated_reg_to_size): Likewise.
599         (processor_target): Set core costs for core variants.
600         (expand_set_or_movmem_via_loop_with_iter): New function.
601         (expand_set_or_movmem_via_loop): Enable reuse of the same iters in
602         different loops, produced by this function.
603         (emit_strset): New function.
604         (expand_movmem_epilogue): Add epilogue generation for bigger sizes,
605         use SSE-moves where possible.
606         (expand_setmem_epilogue): Likewise.
607         (expand_movmem_prologue): Likewise for prologue.
608         (expand_setmem_prologue): Likewise.
609         (expand_constant_movmem_prologue): Likewise.
610         (expand_constant_setmem_prologue): Likewise.
611         (decide_alg): Add new argument align_unknown.  Fix algorithm of
612         strategy selection if TARGET_INLINE_ALL_STRINGOPS is set; Skip sse_loop
613         (decide_alignment): Update desired alignment according to chosen move
614         mode.
615         (ix86_expand_movmem): Change unrolled_loop strategy to use SSE-moves.
616         (ix86_expand_setmem): Likewise.
617         (ix86_slow_unaligned_access): Implementation of new hook
618         slow_unaligned_access.
619         * config/i386/i386.md (strset): Enable half-SSE moves.
620         * config/i386/sse.md (vec_dupv4si): Add expand for vec_dupv4si.
621         (vec_dupv2di): Add expand for vec_dupv2di.
622
623 2011-11-14  Dimitrios Apostolou  <jimis@gmx.net>
624
625         PR bootstrap/51094
626         PR middle-end/51116
627         * config/elfos.h (TARGET_ASM_INTERNAL_LABEL): Remove.
628         * varasm.c (default_elf_internal_label): Remove.
629
630 2011-11-14  Kai Tietz  <ktietz@redhat.com>
631
632         * gcov.c (generate_results): Add missing semicolon and correct indent.
633
634 2011-11-14  Ira Rosen  <ira.rosen@linaro.org>
635
636         PR bootstrap/51112
637         * tree-vect-stmts.c (vectorizable_condition): Initialize comp_vectype.
638
639 2011-11-14  Mingjie Xing  <mingjie.xing@gmail.com>
640
641         * doc/invoke.texi (Wunused-result): Change @pxref{Variable Attributes}
642         to @pxref{Function Attributes}.
643
644 2011-11-13  Oleg Endo  <oleg.endo@t-online.de>
645
646         PR target/50694
647         * config/sh/sh.h (IS_LITTLE_ENDIAN_OPTION, UNSUPPORTED_SH2A):
648         New macros.
649         (DRIVER_SELF_SPECS): Use new macros to filter out unsupported options
650         taking the default configuration into account.
651
652 2011-11-13  Jonathan Wakely  <jwakely.gcc@gmail.com>
653
654         * doc/install.texi (Specific): Fix anchor for
655         x86_64-*-solaris2.1[0-9]*.
656
657 2011-11-13  Nathan Sidwell  <nathan@acm.org>
658
659         * gcov.c (source_prefix, source_length): New globals.
660         (flag_relative_only): Likewise.
661         (print_usage, options, process_args): Update.
662         (generate_results): Use coverage.name, check
663         flag_relative_only. Adjust messages.
664         (find_source): Check source_prefix.
665         (output_lines): Use coverage.name, adjust messages.
666         * doc/gcov.texi (Invoking Gcov): Document new options.
667
668 2011-11-12  Jason Merrill  <jason@redhat.com>
669
670         PR c++/51060
671         * gimplify.c (gimplify_target_expr): Add a clobber to the cleanup.
672         (gimplify_modify_expr): Don't try to simplify it.
673
674 2011-11-12  Dimitrios Apostolou  <jimis@gmx.net>
675
676         PR bootstrap/51094
677         * config/elfos.h (STRING_ASM_OP): Define.
678         * varasm.c (default_elf_asm_output_limited_string): Use it.
679
680         PR bootstrap/51094
681         * gcc/configure.ac: Check for stpcpy declaration.
682         * system.h: Declare it if not.
683         * config.in, configure: Regenerate.
684
685 2011-11-12  Richard Henderson  <rth@redhat.com>
686
687         * config/rs6000/rs6000.md (fix_trunc<SFDF>si2_stfiwx): Use
688         nonimmediate_operand for the destination.
689         (fixuns_trunc<SFDF>si2_stfiwx): Likewise.
690
691         * builtins.c (expand_builtin_compare_and_swap): If target is const0,
692         don't pass the target to expand_atomic_compare_and_swap.
693         (expand_builtin_atomic_compare_exchange): Likewise.
694
695         * config/sh/linux.h (TARGET_INIT_LIBFUNCS): New.
696         * config/sh/sh.c (sh_init_sync_libfuncs): New.
697
698         * config/pa/pa-linux.h (TARGET_SYNC_LIBCALL): New.
699         * config/pa/pa.h (TARGET_SYNC_LIBCALL): New default.
700         * config/pa/pa.c (pa_init_libfuncs): Use init_sync_libfuncs.
701
702 2011-11-12  Iain Sandoe  <iains@gcc.gnu.org>
703
704         PR target/45233
705         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
706         Only expand a symbol ref. into an access when the entity is defined
707         in the TU.
708
709 2011-11-12  Jan Hubicka  <jh@suse.cz>
710
711         PR bootstrap/50822
712         * cgraphunit.c (output_weakrefs): Output really only weakrefs.
713
714 2011-11-12  Nathan Sidwell  <nathan@acm.org>
715
716         * gcov.c (struct name_map): New.
717         (names, n_names, a_names): New global vars.
718         (print_usage): Adjust usage.
719         (generate_results): Canonicalize main file name.
720         (release_structures): Adjust.
721         (name_search, name_sort): New callbacks.
722         (find_source): Look for and create a canonical name.
723         (canonicalize_name): New.
724         (make_gcov_file_name): Reimplement and fix mangling.
725         (mangle_name): New.
726         * doc/gcov.texi: Update documentation about path preservation.
727
728 2011-11-11  David S. Miller  <davem@davemloft.net>
729
730         * config/sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
731         * config/sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
732
733 2011-11-11  Jakub Jelinek  <jakub@redhat.com>
734
735         * config/i386/i386-protos.h (ix86_maybe_emit_epilogue_vzeroupper):
736         New prototype.
737         * config/i386/i386.c (ix86_maybe_emit_epilogue_vzeroupper): New
738         function.
739         (ix86_expand_epilogue): Use it.
740         * config/i386/i386.md (return, simple_return): Call it in the
741         expanders.
742
743         PR tree-optimization/51091
744         * tree-stdarg.c (execute_optimize_stdarg): Ignore TREE_CLOBBER_P
745         rhs also in the va_list_simple_ptr case.
746
747         PR tree-optimization/51058
748         * tree-vect-slp.c (vect_remove_slp_scalar_calls): New function.
749         (vect_schedule_slp): Call it.
750         * tree-vect-stmts.c (vectorizable_call): If slp_node != NULL,
751         don't replace scalar calls with setting of their lhs to zero here.
752
753         PR tree-optimization/51074
754         * fold-const.c (vec_cst_ctor_to_array, fold_vec_perm): New functions.
755         (fold_binary_loc): Handle VEC_EXTRACT_EVEN_EXPR,
756         VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR and
757         VEC_INTERLEAVE_LOW_EXPR with VECTOR_CST or CONSTRUCTOR operands.
758         (fold_ternary_loc): Handle VEC_PERM_EXPR with VECTOR_CST or
759         CONSTRUCTOR operands.
760         * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle ternary
761         expressions.
762         * tree-vect-generic.c (lower_vec_perm): Mask sel_int elements
763         to 0 .. 2 * elements - 1.
764
765 2011-11-11  Richard Henderson  <rth@redhat.com>
766
767         * gimple-pretty-print.c (dump_gimple_omp_atomic_load): Dump needed.
768         (dump_gimple_omp_atomic_store): Likewise.
769         * optabs.c (can_atomic_exchange_p): New.
770         * optabs.h (can_atomic_exchange_p): Declare.
771         * omp-low.c (expand_omp_atomic_load): Implement.
772         (expand_omp_atomic_store): Likewise.
773         (expand_omp_atomic): Update for new arguments to load/store.
774
775 2011-11-11  Eric Botcazou  <ebotcazou@adacore.com>
776
777         * cprop.c: Adjust outdated comments throughout.
778         (hash_scan_set): Rename PAT parameter into SET.
779         (cprop_pavloc): Rename into...
780         (cprop_avloc): ...this.
781         (cprop_absaltered): Rename into...
782         (cprop_kill): ...this.
783         (alloc_cprop_mem): Adjust for above renaming.
784         (free_cprop_mem): Likewise.
785         (compute_cprop_data): Likewise.
786         (compute_local_properties): Rename TRANSP parameter into KILL and
787         adjust throughout.  Rework comments.
788         (try_replace_reg): Fix long line.
789         (cprop_jump): Likewise.
790         (constprop_register): Fix prototype and take INSN last.
791         (cprop_insn): Adjust calls to above function.  Fix long lines.
792         (bypass_block): Likewise.
793         (one_cprop_pass): Likewise.
794
795 2011-11-11  Uros Bizjak  <ubizjak@gmail.com>
796
797         * config/alpha/elf.h (ELF_ASCII_ESCAPES): Rename from ESCAPES.
798         (ELF_STRING_LIMIT): Rename from STRING_LIMIT.
799
800 2011-11-11  Jason Merrill  <jason@redhat.com>
801
802         * varasm.c (default_elf_asm_output_limited_string): #ifdef
803         ELF_ASCII_ESCAPES.
804         (default_elf_asm_output_ascii): Likewise.
805
806 2011-11-11  Uros Bizjak  <ubizjak@gmail.com>
807
808         PR target/50762
809         * config/i386/constraints.md (j): New address constraint.
810         * config/i386/predicates.md (lea_address_operand): Redefine as
811         special predicate.
812         * config/i386/i386.md (*lea_3_zext): Use "j" constraint for operand 1.
813         (*lea_4_zext): Ditto.
814
815 2011-11-11  David S. Miller  <davem@davemloft.net>
816
817         Revert
818         2011-11-05  David S. Miller  <davem@davemloft.net>
819
820         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
821         (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
822         (*zero_extend_v8qi_<P:mode>_insn,
823         *zero_extend_v4hi_<P:mode>_insn): New insns.
824         * config/sparc/sparc.c (vector_init_move_words,
825         vector_init_prepare_elts, sparc_expand_vector_init_vis2,
826         sparc_expand_vector_init_vis1): New functions.
827         (vector_init_bshuffle): Rewrite to handle more cases and make use
828         of locs[] array prepared by vector_init_prepare_elts.
829         (vector_init_fpmerge, vector_init_faligndata): Delete.
830         (sparc_expand_vector_init): Rewrite using new infrastructure.
831
832 2011-11-11  Jakub Jelinek  <jakub@redhat.com>
833
834         * opts-common.c (generate_canonical_option): Free opt_text
835         it it has been allocated here and not stored anywhere.
836
837         * tree-vect-slp.c (vect_free_slp_tree): Also free SLP_TREE_CHILDREN
838         vector.
839         (vect_create_new_slp_node): Don't allocate node before checking stmt
840         type.
841         (vect_free_oprnd_info): Remove FREE_DEF_STMTS argument, always
842         free def_stmts vectors and additionally free oprnd_info.
843         (vect_build_slp_tree): Adjust callers.  Call it even if
844         stop_recursion.  If vect_create_new_slp_node or
845         vect_build_slp_tree fails, properly handle freeing memory.
846         If it succeeded, clear def_stmts in oprnd_info.
847
848 2011-11-11  Dimitrios Apostolou  <jimis@gmx.net>
849
850         * defaults.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Expand on
851         multiple lines for readability.
852         * output.h (fprint_whex, fprint_w, fprint_ul, sprint_ul): Declare.
853         (ASM_OUTPUT_LABELREF): Call fputs instead of asm_fprintf.
854         * dwarf2asm.c (dw2_assemble_integer, dw2_asm_output_data,
855         dw2_asm_data_uleb128, dw2_asm_delta_uleb128,
856         dw2_asm_delta_sleb128): Convert fprintf calls to the new functions.
857         * dwarf2out.c (dwarf2out_source_line): Call fprint_ul instead of
858         fprintf.
859         * final.c (fprint_whex, fprint_w, fprint_ul, sprint_ul): New functions
860         serving as fast replacements for fprintf integer to string conversions.
861         (sprint_ul_rev): Internal helper for the above.
862         (output_addr_const) <CONST_INT>: Don't use fprintf.
863         * varasm.c: Fix some whitespace inconsistencies.
864         (default_elf_asm_output_limited_string): New.
865         (default_elf_asm_output_ascii): Likewise.
866         (default_elf_internal_label): Likewise.
867         * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Use sprint_ul and
868         stpcpy instead of sprintf.
869         (TARGET_ASM_INTERNAL_LABEL): Define as default_elf_internal_label.
870         (ELF_ASCII_ESCAPES, ELF_STRING_LIMIT): Rename from old ESCAPES and
871         STRING_LIMIT macros.
872         (ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII): Call functions that
873         provide the same functionality.
874         * config/i386/i386.c (print_reg): Call fprint_ul instead of fprintf.
875
876 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
877
878         * doc/extend.texi: Document __atomic_test_and_set and __atomic_clear.
879
880 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
881
882         PR middle-end/51038
883         * builtins.c (expand_builtin_atomic_clear): New.  Expand atomic_clear.
884         (expand_builtin_atomic_test_and_set): New.  Expand atomic test_and_set.
885         (expand_builtin): Add cases for test_and_set and clear.
886         * sync-builtins.def (BUILT_IN_ATOMIC_TEST_AND_SET): New.
887         (BUILT_IN_ATOMIC_CLEAR): New.
888
889 2011-11-10  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
890
891         PR debug/50983
892         * dwarf2out.c (set_cur_line_info_table): Restore the last is_stmt
893         value in the current line table.
894
895 2011-11-10  Nathan Sidwell  <nathan@acm.org>
896
897         * gcov.c (struct function_info): Make src an index, not a pointer.
898         (struct source_info): Remove index and next source fields.
899         (fn_end): New static var.
900         (sources_index): Remove.
901         (sources): Now a pointer to an array, not a list.
902         (n_sources, a_sources): New.
903         (process_file): Adjust for changes to read_graph_file. Insert
904         functions into source lists and check line numbers here.
905         (generate_results): Only allocate lines for sources with
906         contents.  Adjust for source array.
907         (release_structures): Likewise.
908         (find_source): Return source index, adjust for source array.
909         (read_graph_file): Return function list.  Don't insert into source
910         lists here.
911         (read_count_file): Take list of functions.
912         (solve_flow_graph): Reverse the arc lists here.
913         (add_line_counts): Adjust for source array.
914
915 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
916
917         PR middle-end/51077
918         * tree-object-size.c (addr_object_size): Check TREE_CODE of
919         MEM_REF's operand rather than code of the MEM_REF itself.
920
921 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
922
923         PR rtl-optimization/51040
924         * optabs.c (expand_atomic_fetch_op): Patchup code for NAND should
925         be AND followed by NOT.
926         * builtins.c (expand_builtin_atomic_fetch_op): Patchup code for NAND
927         should be AND followed by NOT.
928
929 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
930
931         * vec.h (VEC_BASE): If base is at offset 0 in the structure,
932         use &(P)->base even if P is NULL.
933
934         PR rtl-optimization/51023
935         * combine.c (simplify_comparison) <case SIGN_EXTEND>: Don't use
936         val_signbit_known_clear_p for signed comparison narrowing
937         optimization.  Don't check for non-VOIDmode, use
938         HWI_COMPUTABLE_MODE_P macro.
939         <case ZERO_EXTEND>: Don't check for non-VOIDmode.
940         Optimize even when const_op is equal to GET_MODE_MASK (mode),
941         don't optimize if const_op is negative.
942
943 2011-11-10  Richard Guenther  <rguenther@suse.de>
944
945         PR tree-optimization/51042
946         * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
947         self-referential expressions.  Refactor code to avoid duplication.
948
949 2011-11-10  Richard Guenther  <rguenther@suse.de>
950
951         PR tree-optimization/51070
952         * tree-loop-distribution.c (generate_builtin): Do not replace
953         the loop with a builtin if the partition contains statements which
954         results are used outside of the loop.
955         (pass_loop_distribution): Verify and collect.
956
957 2011-11-10  Richard Guenther  <rguenther@suse.de>
958
959         PR tree-optimization/51030
960         * tree-ssa-phiopt.c (jump_function_from_stmt): New function.
961         (value_replacement): Use it to handle trivial non-empty
962         intermediate blocks.
963
964 2011-11-10  Richard Guenther  <rguenther@suse.de>
965
966         PR middle-end/51071
967         * gimple.c (gimple_has_side_effects): Remove checking code
968         that doesn't belong here.
969
970 2011-11-10  Ira Rosen  <ira.rosen@linaro.org>
971
972         PR tree-optimization/51058
973         * tree-vect-slp.c (vect_get_constant_vectors): Handle CALL_EXPR.
974
975 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
976
977         PR tree-optimization/51000
978         * tree-vect-patterns.c (vect_recog_bool_pattern): If adding
979         a pattern stmt for a bool store, adjust DR_STMT too.
980         Don't handle bool conversions to single bit precision lhs.
981         * tree-vect-stmts.c (vect_remove_stores): If next is a pattern
982         stmt, remove its related stmt and free its stmt_vinfo.
983         (free_stmt_vec_info): Free also pattern stmt's vinfo and
984         pattern def stmt's vinfo.
985         * tree-vect-loop.c (destroy_loop_vec_info): Don't try to
986         free pattern stmt's vinfo here.
987         (vect_transform_loop): When calling vect_remove_stores,
988         do gsi_next first and don't call gsi_remove.  If not strided
989         store, free stmt vinfo for gsi_stmt (si) rather than stmt.
990
991 2011-11-09  Jakub Jelinek  <jakub@redhat.com>
992
993         PR target/50911
994         * config/i386/i386.c (expand_vec_perm_interleave2): If d->vmode is
995         V4SImode, !TARGET_SSE2 and punpck[lh]* is needed, change dremap.vmode
996         to V4SFmode.
997
998         * function.h (requires_stack_frame_p): New prototype.
999         * function.c (requires_stack_frame_p): No longer static.
1000         * config/i386/i386.c (ix86_finalize_stack_realign_flags): If
1001         stack_realign_fp was just a conservative guess for a function
1002         which doesn't use sp/fp/argp at all, clear frame_pointer_needed
1003         and stack realignment.
1004
1005 2011-11-09  Paolo Carlini  <paolo.carlini@oracle.com>
1006
1007         PR preprocessor/51061
1008         * incpath.c (merge_include_chains): Make sure to not pass null
1009         pointers to free_path.
1010
1011 2011-11-09  Paolo Carlini  <paolo.carlini@oracle.com>
1012
1013         * doc/invoke.texi ([Option Summary, C++ Language Options]):
1014         Add -Wzero-as-null-pointer-constant.
1015
1016 2011-11-07  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1017
1018         * config/arm/arm-cores.def: Add -mcpu=cortex-a7.
1019         * config/arm/arm-tables.opt: Regenerate.
1020         * config/arm/arm-tune.md: Likewise.
1021         * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex A-7.
1022         * doc/invoke.texi: Document -mcpu=cortex-a7.
1023
1024 2011-11-09  Richard Guenther  <rguenther@suse.de>
1025
1026         Revert
1027         2011-11-09  Richard Guenther  <rguenther@suse.de>
1028
1029         * tree-cfg.c (verify_gimple_call): Verify that
1030         gimple_call_cannot_inline_p is returning a conservative
1031         correct result according to gimple_check_call_matching_types.
1032
1033 2011-11-09  Richard Guenther  <rguenther@suse.de>
1034
1035         PR tree-optimization/51039
1036         * tree-cfg.c (verify_gimple_call): Verify that
1037         gimple_call_cannot_inline_p is returning a conservative
1038         correct result according to gimple_check_call_matching_types.
1039         * ipa-inline-analysis.c (estimate_function_body_sizes): Remove
1040         code dealing with un-inlinablility.
1041         * gimple-streamer-in.c (input_gimple_stmt): Update the
1042         non-inlinable flag.
1043
1044 2011-11-09  Richard Guenther  <rguenther@suse.de>
1045
1046         PR tree-optimization/51039
1047         * tree-inline.c (setup_one_parameter): Always perform a
1048         valid gimple type change.
1049         (declare_return_variable): Likewise.
1050
1051 2011-11-09  Jakub Jelinek  <jakub@redhat.com>
1052
1053         * config/rs6000/vector.md (vcondv4sfv4si, vcondv4siv4sf,
1054         vconduv4sfv4si): New patterns.
1055         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Handle
1056         different dest_mode from comparison mode.
1057
1058 2011-11-09  Richard Guenther  <rguenther@suse.de>
1059
1060         * gimple-fold.c (canonicalize_constructor_val): Mark
1061         address-taken variables addressable.
1062
1063 2011-11-09  Ira Rosen  <ira.rosen@linaro.org>
1064
1065         PR tree-optimization/51015
1066         * tree-vect-loop.c (vect_determine_vectorization_factor): Expect
1067         vectype to be set for pattern def stmts.
1068
1069 2011-11-09  Alan Modra  <amodra@gmail.com>
1070
1071         * function.c (bb_active_p): Delete.
1072         (dup_block_and_redirect, active_insn_between): New functions.
1073         (convert_jumps_to_returns, emit_return_for_exit): New functions,
1074         split out from..
1075         (thread_prologue_and_epilogue_insns): ..here.  Delete
1076         shadowing variables.  Don't do prologue register clobber tests
1077         when shrink wrapping already failed.  Delete all last_bb_active
1078         code.  Instead compute tail block candidates for duplicating
1079         exit path.  Remove these from antic set.  Duplicate tails when
1080         reached from both blocks needing a prologue/epilogue and
1081         blocks not needing such.
1082         * ifcvt.c (dead_or_predicable): Test both flag_shrink_wrap and
1083         HAVE_simple_return.
1084         * bb-reorder.c (get_uncond_jump_length): Make global.
1085         * bb-reorder.h (get_uncond_jump_length): Declare.
1086         * cfgrtl.c (rtl_create_basic_block): Comment typo fix.
1087         (rtl_split_edge): Likewise.  Warning fix.
1088         (rtl_duplicate_bb): New function.
1089         (rtl_cfg_hooks): Enable can_duplicate_block_p and duplicate_block.
1090         * Makefile.in (function.o): Update dependencies.
1091
1092 2011-11-08  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1093             Georg-Johann Lay  <avr@gjlay.de>
1094
1095         * doc/tm.texi.in (MODE_CODE_BASE_REG_CLASS): Add address space
1096         argument.
1097         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
1098         * doc/tm.texi: Regenerate.
1099
1100         * config/cris/cris.h (MODE_CODE_BASE_REG_CLASS): Add address
1101         space argument.
1102         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
1103         * config/bfin/bfin.h (MODE_CODE_BASE_REG_CLASS): Likewise.
1104         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
1105         * config/avr/avr.h (MODE_CODE_BASE_REG_CLASS): Add address space
1106         argument.
1107         (REGNO_MODE_CODE_OK_FOR_BASE_P): Ditto.
1108         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
1109         (avr_regno_mode_code_ok_for_base_p): Ditto.
1110         * config/avr/avr.c (avr_mode_code_base_reg_class): Ditto.
1111         (avr_regno_mode_code_ok_for_base_p): Ditto.
1112         (avr_reg_ok_for_addr_p): Pass AS down to
1113         avr_regno_mode_code_ok_for_base_p.
1114
1115         * addresses.h (base_reg_class): Add address space argument.
1116         Pass to MODE_CODE_BASE_REG_CLASS.
1117         (ok_for_base_p_1): Add address space argument.  Pass to
1118         REGNO_MODE_CODE_OK_FOR_BASE_P.
1119         (regno_ok_for_base_p): Add address space argument.  Pass to
1120         ok_for_base_p_1.
1121
1122         * regrename.c (scan_rtx_address): Add address space argument.
1123         Pass address space to regno_ok_for_base_p and base_reg_class.
1124         Update recursive calls.
1125         (scan_rtx): Pass address space to scan_rtx_address.
1126         (build_def_use): Likewise.
1127         * regcprop.c (replace_oldest_value_addr): Add address space
1128         argument.  Pass to regno_ok_for_base_p and base_reg_class.
1129         Update recursive calls.
1130         (replace_oldest_value_mem): Pass address space to
1131         replace_oldest_value_addr.
1132         (copyprop_hardreg_forward_1): Likewise.
1133
1134         * reload.c (find_reloads_address_1): Add address space argument.
1135         Pass address space to base_reg_class and regno_ok_for_base_p.
1136         Update recursive calls.
1137         (find_reloads_address): Pass address space to base_reg_class,
1138         regno_ok_for_base_p, and find_reloads_address_1.
1139         (find_reloads): Pass address space to base_reg_class.
1140         (find_reloads_subreg_address): Likewise.
1141
1142         * ira-costs.c (record_reg_classes): Update calls to base_reg_class.
1143         (ok_for_base_p_nonstrict): Add address space argument.  Pass to
1144         ok_for_base_p_1.
1145         (record_address_regs): Add address space argument.  Pass to
1146         base_reg_class and ok_for_base_p_nonstrict.  Update recursive calls.
1147         (record_operand_costs): Pass address space to record_address_regs.
1148         (scan_one_insn): Likewise.
1149
1150         * caller-save.c (init_caller_save): Update call to base_reg_class.
1151         * ira-conflicts.c (ira_build_conflicts): Likewise.
1152         * reload1.c (maybe_fix_stack_asms): Likewise.
1153
1154 2011-11-08  Michael Matz  <matz@suse.de>
1155
1156         * gengtype.c (write_field_root): Avoid out-of-scope access of newv.
1157
1158         * tree-stdarg.c (execute_optimize_stdarg): Accept clobbers.
1159
1160         * tree.h (TREE_CLOBBER_P): New macro.
1161         * gimple.h (gimple_clobber_p): New inline function.
1162         * gimplify.c (gimplify_bind_expr): Add clobbers for all variables
1163         that go out of scope and live in memory.
1164         * tree-ssa-operands.c (get_expr_operands): Transfer volatility also
1165         for constructors.
1166         * cfgexpand.c (decl_to_stack_part): New static variable.
1167         (add_stack_var): Allocate it, and remember mapping.
1168         (fini_vars_expansion): Deallocate it.
1169         (stack_var_conflict_p): Add early outs.
1170         (visit_op, visit_conflict, add_scope_conflicts_1,
1171         add_scope_conflicts): New static functions.
1172         (expand_used_vars_for_block): Don't call add_stack_var_conflict, tidy.
1173         (expand_used_vars): Add scope conflicts.
1174         (expand_gimple_stmt_1): Expand clobbers to nothing.
1175         (expand_debug_expr): Ditto.
1176
1177         * tree-pretty-print.c (dump_generic_node): Dump clobbers nicely.
1178         * tree-ssa-live.c (remove_unused_locals): Remove clobbers that
1179         refer to otherwise unused locals.
1180         * tree-sra.c (build_accesses_from_assign): Ignore clobbers.
1181         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Clobbers of
1182         SSA names aren't necessary.
1183         (propagate_necessity): Accept and ignore constructors on the rhs, tidy.
1184         * gimple.c (walk_gimple_op): Accept constructors like mem_rhs.
1185         * tree-ssa-structalias.c (find_func_aliases): Clobbers don't store
1186         any known value.
1187         * tree-ssa-sccvn.c (vn_reference_lookup_3): Ditto, in particular they
1188         don't zero-initialize something.
1189         * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Ignore
1190         clobber RHS, we don't want PHI nodes with those.
1191
1192 2011-11-08  Jakub Jelinek  <jakub@redhat.com>
1193
1194         * config/i386/i386.c (ix86_preferred_simd_mode): Even for TARGET_AVX
1195         if not TARGET_PREFER_AVX128 return 32-byte integer vectors.
1196
1197 2011-11-08  Richard Guenther  <rguenther@suse.de>
1198
1199         PR tree-optimization/51012
1200         * ipa-prop.c (update_indirect_edges_after_inlining): Fixup
1201         non-inlinable state.
1202         * cgraph.c (cgraph_make_edge_direct): Likewise.
1203
1204 2011-11-08  Eric Botcazou  <ebotcazou@adacore.com>
1205
1206         PR rtl-optimization/47698
1207         * ifcvt.c (noce_operand_ok): Move around comment.
1208
1209 2011-11-08  Richard Guenther  <rguenther@suse.de>
1210
1211         PR lto/50999
1212         * lto-opts.c (append_to_collect_gcc_options): Split out from...
1213         (lto_write_options): ... here.  Prepend frontend specific flags.
1214
1215 2011-11-08  Jakub Jelinek  <jakub@redhat.com>
1216
1217         * config/i386/sse.md (*avx_vperm2f128<mode>3_nozero): Emit mask
1218         0x12 and 0x20 as vinsert[fi]128 instead of vperm2[fi]128.
1219
1220         * tree-vect-stmts.c (vectorizable_call): Add SLP_NODE argument.
1221         Handle vectorization of SLP calls.
1222         (vect_analyze_stmt): Adjust caller, add call to it for SLP too.
1223         (vect_transform_stmt): Adjust vectorizable_call caller, remove
1224         assertion.
1225         * tree-vect-slp.c (vect_get_and_check_slp_defs): For calls start
1226         with op_idx 3.
1227         (vect_build_slp_tree): Allow CALL_EXPR.
1228
1229 2011-11-08  Richard Guenther  <rguenther@suse.de>
1230
1231         * gimple-fold.c (canonicalize_constructor_val): Make sure
1232         we have referenced vars setup before adding to them.
1233
1234 2011-11-07  Richard Henderson  <rth@redhat.com>
1235             Aldy Hernandez  <aldyh@redhat.com>
1236             Andrew MacLeod  <amacleod@redhat.com>
1237             Torvald Riegel  <triegel@redhat.com>
1238
1239         Merged from transactional-memory.
1240
1241         * gtm-builtins.def: New file.
1242         * trans-mem.c: New file.
1243         * trans-mem.h: New file.
1244
1245         * opts.c (finish_options): Error out when using -flto and -fgnu-tm.
1246
1247         * config/i386/i386.c: Define TARGET_VECTORIZE* transactional variants.
1248         (ix86_handle_tm_regparm_attribute, struct bdesc_tm,
1249         ix86_builtin_tm_load, ix86_builtin_tm_store,
1250         ix86_init_tm_builtins): New.
1251         (ix86_init_builtins): Initialize TM builtins.
1252         (struct ix86_attribute_table): Add "*tm regparm".
1253         * config/i386/i386-builtin-types.def (PV2SI): Define.
1254         (PCV2SI): Define.
1255         Define V2SI_FTYPE_PCV2SI.
1256         Define V4SF_FTYPE_PCV4SF.
1257         Define V8SF_FTYPE_PCV8SF.
1258         Define VOID_PV2SI_V2SI.
1259
1260         * doc/invoke.texi (C Dialect Options): Document -fgnu-tm and
1261         tm-max-aggregate-size.
1262         * doc/tm.texi.in: Add TARGET_VECTORIZE_BUILTIN_TM_LOAD and
1263         TARGET_VECTORIZE_BUILTIN_TM_STORE hooks.
1264         * doc/tm.texi: Regenerate.
1265
1266         * attribs.c (apply_tm_attr): New.
1267         (init_attributes): Allow '*' prefix for overrides.
1268         (register_attribute): Likewise.
1269         * builtin-attrs.def (ATTR_TM_TMPURE, ATTR_TM_REGPARM): New.
1270         (ATTR_TM_NOTHROW_LIST, ATTR_TM_TMPURE_NOTHROW_LIST,
1271         ATTR_TM_PURE_TMPURE_NOTHROW_LIST, ATTR_TM_NORETURN_NOTHROW_LIST,
1272         ATTR_TM_CONST_NOTHROW_LIST, ATTR_TMPURE_MALLOC_NOTHROW_LIST,
1273         ATTR_TMPURE_NOTHROW_LIST): New.
1274         * builtin-types.def (BT_FN_I[1248]_VPTR, BT_FN_FLOAT_VPTR,
1275         BT_FN_DOUBLE_VPTR, BT_FN_LDOUBLE_VPTR, BT_FN_VOID_VPTR_I[1248],
1276         BT_FN_VOID_VPTR_FLOAT, BT_FN_VOID_VPTR_DOUBLE,
1277         BT_FN_VOID_VPTR_LDOUBLE, BT_FN_VOID_VPTR_SIZE): New.
1278         * builtins.def: Include gtm-builtins.def. Add comments regarding
1279         transactional memory synchronization.
1280         (DEF_TM_BUILTIN): New.
1281         * c-parser.c (struct c_parser): Add in_transaction.
1282         (c_parser_transaction, c_parser_transaction_expression,
1283         c_parser_transaction_cancel, c_parser_transaction_attributes): New.
1284         (c_parser_attribute_any_word): Split out from c_parser_attributes.
1285         (c_parser_statement_after_labels): Handle RID_TRANSACTION*.
1286         (c_parser_unary_expression): Same.
1287         * c-tree.h (c_finish_transaction): Declare.
1288         * c-typeck.c (c_finish_transaction): New.
1289         (build_function_call_vec): Call tm_malloc_replacement.
1290         * calls.c (is_tm_builtin): New.
1291         (flags_from_decl_or_type): Add ECF_TM_BUILTIN and ECF_TM_PURE.
1292         * cfgbuild.c (make_edges): Add edges for REG_TM notes.
1293         * cfgexpand.c (expand_call_stmt): Call
1294         mark_transaction_restart_calls.
1295         (gimple_expand_cfg): Free the tm_restart map.
1296         (mark_transaction_restart_calls): New.
1297         * cfgrtl.c (purge_dead_edges): Look for REG_TM notes.
1298         * cgraph.c (dump_cgraph_node): Handle tm_clone.
1299         * cgraph.h (struct cgraph_node): Add tm_clone field.
1300         (decl_is_tm_clone): New.
1301         (struct cgraph_local_info): Add tm_may_enter_irr.
1302         (cgraph_copy_node_for_versioning): Declare.
1303         * cgraphunit.c (cgraph_copy_node_for_versioning): Export;
1304         copy analyzed from old version.
1305         * combine.c (distribute_notes): Handle REG_TM notes.
1306         * common.opt: Add -fgnu-tm.
1307         * crtstuff.c (__TMC_LIST__, __TMC_END__): New.
1308         (__do_global_dtors_aux): Deregister clone table.
1309         (frame_dummy): Register clone table.
1310         * emit-rtl.c (try_split): Handle REG_TM. Early return if no function
1311         body.
1312         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_ELSE and
1313         GIMPLE_TRANSACTION.
1314         (gimple_stmt_may_fallthru): Handle GIMPLE_EH_ELSE.
1315         * gimple-pretty-print.c: Include trans-mem.h.
1316         (dump_gimple_fmt): Add %x.
1317         (dump_gimple_call): Dump arguments for calls to _ITM_beginTransaction.
1318         (dump_gimple_eh_else, dump_gimple_transaction): New.
1319         (dump_gimple_stmt): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1320         * gimple.c (gimple_build_eh_else, gimple_build_transaction): New.
1321         (walk_gimple_seq): Honor removed_stmt. Document usage of removed_stmt
1322         field.
1323         (walk_gimple_op): Handle GIMPLE_TRANSACTION.
1324         (walk_gimple_stmt): Initialize and honor removed_stmt.
1325         Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1326         (gimple_copy): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1327         * gimple.def (GIMPLE_TRANSACTION, GIMPLE_EH_ELSE): New.
1328         * gimple.h (struct gimple_statement_eh_else,
1329         gimple_statement_transaction, GTMA_*): New.
1330         (gimple_statement_d): Add gimple_statement_eh_else and
1331         gimple_transaction.
1332         (gimple_build_eh_else, gimple_build_transaction,
1333         gimple_fold_call, diagnose_tm_safe_errors): Declare.
1334         (get_call_expr_in): Remove prototype.
1335         (gimple_has_substatements): Add GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1336         (gimple_eh_else_n_body, gimple_eh_else_e_body,
1337         gimple_eh_else_set_n_body, gimple_eh_else_set_e_body,
1338         gimple_transaction_body, gimple_transaction_label,
1339         gimple_transaction_label_ptr, gimple_transaction_subcode,
1340         gimple_transaction_set_body, gimple_transaction_set_label,
1341         gimple_transaction_set_subcode): New.
1342         (struct walk_stmt_info): Use BOOL_BITFIELD; add removed_stmt.
1343         * gimplify.c (create_tmp_var_name): Use clean_symbol_name.
1344         (voidify_wrapper_expr): Handle TRANSACTION_EXPR.
1345         (gimplify_transaction): New.
1346         (gimplify_expr): Handle TRANSACTION_EXPR.
1347         * gsstruct.def (GSS_EH_ELSE, GSS_TRANSACTION): New.
1348         * ipa-inline.c (can_inline_edge_p): Do not inline TM safe calling
1349         TM pure functions.
1350         * Makefile.in: Add trans-mem.o and dependencies.
1351         (BUILTINS_DEF): Add gtm-builtins.def.
1352         (gimple-pretty-print.o): Depend on TRANS_MEM_H.
1353         (GTFILES): Add trans-mem.c.
1354         * omp-low.c (WALK_SUBSTMTS): Add GIMPLE_TRANSACTION.
1355         * output.h (record_tm_clone_pair, finish_tm_clone_pairs,
1356         get_tm_clone_pair): Declare.
1357         * params.def (PARAM_TM_MAX_AGGREGATE_SIZE): New.
1358         * passes.c (init_optimization_passes): Place transactional memory
1359         passes.
1360         * print-tree.c (print_node): Dump tm-clone.
1361         * recog.c (peep2_attempt): Handle REG_TM.
1362         * reg-notes.def (TM): New.
1363         * rtlanal.c (alloc_reg_note): Handle REG_TM.
1364         * target.def (builtin_tm_load, builtin_tm_store): New.
1365         * targhooks.c (default_builtin_tm_load_store): New.
1366         * targhooks.h (default_builtin_tm_load_store): Declare.
1367         * timevar.def (TV_TRANS_MEM): New.
1368         * toplev.c (compile_file): Call finish_tm_clone_pairs.
1369         * tree-cfg.c (make_edges): Handle GIMPLE_TRANSACTION.
1370         (cleanup_dead_labels): Handle GIMPLE_TRANSACTION. Avoid unnecessary
1371         writes into the statements to update labels.
1372         (is_ctrl_altering_stmt): Add TM ending statements. Handle
1373         GIMPLE_TRANSACTION.
1374         (verify_gimple_transaction): New.
1375         (verify_gimple_stmt): Handle GIMPLE_TRANSACTION.
1376         (verify_gimple_in_seq_2): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1377         (gimple_redirect_edge_and_branch): Handle TM_TRANSACTION.
1378         (dump_function_to_file): Display [tm-clone] if applicable.
1379         * tree-eh.c (struct_ptr_eq): Make inline and move to tree.h.
1380         (struct_ptr_hash): Same.
1381         (collect_finally_tree): Handle GIMPLE_EH_ELSE.
1382         (replace_goto_queue_1): Likewise.
1383         (get_eh_else): New.
1384         (honor_protect_cleanup_actions): Handle GIMPLE_EH_ELSE.
1385         (lower_try_finally_nofallthru): Likewise.
1386         (lower_try_finally_onedest): Likewise.
1387         (lower_try_finally_copy): Likewise.
1388         (lower_try_finally_switch): Likewise.
1389         (lower_try_finally): Likewise.
1390         (decide_copy_try_finally): Likewise.
1391         (lower_eh_constructs_2): Likewise.
1392         (refactor_eh_r): Likewise.
1393         * tree-flow.h (struct gimple_df): Add tm_restart field.
1394         Define tm_restart_node.
1395         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_TRANSACTION.
1396         (estimate_num_insns): Likewise.
1397         (init_inline_once): Init tm_cost.
1398         * tree-inline.h (struct eni_weights_d): Add tm_cost.
1399         * tree-pass.h (pass_diagnose_tm_blocks, pass_lower_tm, pass_tm_init,
1400         pass_tm_mark, pass_tm_memopt, pass_tm_edges, pass_ipa_tm): Declare.
1401         * tree-pretty-print.c (dump_generic_node): Handle TRANSACTION_EXPR.
1402         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1403         BUILT_IN_TM_MEMSET, BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
1404         Add support for TM vector loads.  Add support for TM logging builtins.
1405         (call_may_clobber_ref_p_1): Add support for vector stores.
1406         * tree-ssa-structalias.c (find_func_aliases): Add support for TM
1407         vector stores and loads. Handle BUILT_IN_TM_MEMSET,
1408         BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
1409         * tree.c (strip_invariant_refs): Moved from gimple.c to here.
1410         (local_define_builtin): Handle ECF_TM_PURE.
1411         (build_common_builtin_nodes): Set __builtin_eh_pointer to ECF_TM_PURE.
1412         * tree.def (TRANSACTION_EXPR): New.
1413         * tree.h (strip_invariant_refs): Moved from gimple.h to here.
1414         (TRANSACTION_EXPR_BODY, TRANSACTION_EXPR_CHECK,
1415         TRANSACTION_EXPR_OUTER, TRANSACTION_EXPR_RELAXED,
1416         BUILTIN_TM_LOAD_STORE_P, BUILTIN_TM_LOAD_P, BUILTIN_TM_STORE_P,
1417         CASE_BUILT_IN_TM_LOAD, CASE_BUILT_IN_TM_STORE): New.
1418         (ECF_TM_PURE, ECF_TM_BUILTIN): New.
1419         (struct tree_function_decl): Add tm_clone_flag.
1420         (struct_ptr_eq, struct_ptr_hash): New.
1421         (apply_tm_attr): Declare.
1422         (is_tm_safe_or_pure): New.
1423         (build_tm_abort_call, is_tm_safe, is_tm_pure,
1424         is_tm_may_cancel_outer, is_tm_ending_fndecl, record_tm_replacement,
1425         tm_malloc_replacement): Declare.
1426         * varasm.c (tm_clone_hash): New.
1427         (record_tm_clone_pair, finish_tm_clone_pairs, get_tm_clone_pair,
1428         dump_tm_clone_to_vec, dump_tm_clone_pairs, tm_alias_pair_cmp): New.
1429         (struct tm_alias_pair): New.  Declare VEC types for object.
1430
1431 2011-11-07  Richard Henderson  <rth@redhat.com>
1432
1433         * optabs.h (OTI_sync_compare_and_swap, OTI_sync_lock_test_and_set,
1434         OTI_sync_old_add, OTI_sync_old_sub, OTI_sync_old_ior,
1435         OTI_sync_old_and, OTI_sync_old_xor, OTI_sync_old_nand,
1436         OTI_sync_new_add, OTI_sync_new_sub, OTI_sync_new_ior,
1437         OTI_sync_new_and, OTI_sync_new_xor, OTI_sync_new_nand): Move and
1438         rename from the direct_optab_index enum.
1439         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab,
1440         sync_old_add_optab, sync_old_sub_optab, sync_old_ior_optab,
1441         sync_old_and_optab, sync_old_xor_optab, sync_old_nand_optab,
1442         sync_new_add_optab, sync_new_sub_optab, sync_new_ior_optab,
1443         sync_new_and_optab, sync_new_xor_optab, sync_new_nand_optab): Read
1444         from the optab_table, not the direct_optab_table.
1445         (init_sync_libfuncs): Declare.
1446         (can_compare_and_swap_p): Update parameters.
1447         * optabs.c (init_sync_libfuncs_1, init_sync_libfuncs): New.
1448         (can_compare_and_swap_p): Add allow_libcall parameter; if true,
1449         test for the legacy compare-and-swap libcall.
1450         (expand_atomic_exchange): Use the legacy test-and-set libcall.
1451         (expand_atomic_compare_and_swap): Use the legacy CAS libcall.
1452         (struct atomic_op_functions): Update for optab type changes.
1453         (maybe_emit_op): Likewise.
1454         (expand_atomic_fetch_op): Use the legacy fetch-op libcalls.
1455         * builtins.c (fold_builtin_atomic_always_lock_free): Update call
1456         to can_compare_and_swap_p.
1457         * omp-low.c (expand_omp_atomic_fetch_op): Likewise.
1458         (expand_omp_atomic_pipeline): Likewise.
1459         * genopinit.c (optabs): Make sync_old_*_optab, sync_new_*_optab,
1460         sync_compare_and_swap_optab, sync_lock_test_and_set_optab regular
1461         optabs.
1462         * doc/md.texi (sync_compare_and_swap): Update docs for libcalls.
1463
1464 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
1465
1466         * config/i386/i386-bultin-types.def (V8SI_FTYPE_V4DF_V4DF): Add.
1467         * config/i386/i386.c (enum ix86_builtins): Add
1468         IX86_BUILTIN_VEC_PACK_SFIX256.
1469         (bdesc_args): Add __builtin_ia32_vec_pack_sfix256.
1470         (ix86_expand_args_builtin): Handle V8SI_FTYPE_V4DF_V4DF.
1471         (ix86_builtin_vectorized_function): Also vectorize lrint using
1472         256-bit vectors for -mavx.
1473
1474 2011-11-07  Anatoly Sokolov  <aesok@post.ru>
1475
1476         * config/cris/constraints.md: New file.
1477         * config/cris/cris.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
1478         CRIS_CONST_OK_FOR_LETTER_P, CONST_OK_FOR_CONSTRAINT_P,
1479         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_MEMORY_CONSTRAINT,
1480         EXTRA_CONSTRAINT, EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R,
1481         EXTRA_CONSTRAINT_T, EXTRA_CONSTRAINT_S, EXTRA_CONSTRAINT_U): Remove.
1482         * config/cris/cris.c: Incule "tm-constrs.h".
1483         (cris_print_operand): Use satisfies_constraint_O.
1484         (cris_normal_notice_update_cc, cris_rtx_costs): Use
1485         satisfies_constraint_I.
1486         (cris_address_cost): Use satisfies_constraint_L.
1487         * config/cris/cris.md: Include "constraints.md".
1488         (*mov_side<mode>, *mov_sidesisf, *mov_side<mode>_mem,
1489         *mov_sidesisf_mem, *clear_side<mode>, *ext_sideqihi,
1490         *ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>,
1491         *extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side,
1492         *extop<mode>si_swap_side): Use satisfies_constraint_N and
1493         satisfies_constraint_J.
1494         (moversideqi movemsideqi mover2side peephole2): Use
1495         satisfies_constraint_N and satisfies_constraint_J.
1496         (andu peephole2): Use satisfies_constraint_I and
1497         satisfies_constraint_O.
1498
1499 2011-11-07  Uros Bizjak  <ubizjak@gmail.com>
1500
1501         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
1502         BUILT_IN_IRINT, BUILT_IN_IRINTF, BUILT_IN_LLRINT and BUILT_IN_LLRINTF.
1503
1504 2011-11-07  Andrew MacLeod  <amacleod@redhat.com>
1505
1506         * optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so
1507         SWITCHABLE_TARGET can change the values during compilation.
1508         (expand_atomic_fetch_op): Handle parameter change ripples for
1509         get_atomic_op_for_code call.
1510
1511 2011-11-07  Andrew MacLeod  <amacleod@redhat.com>
1512
1513         * doc/extend.texi: Docuemnt behaviour change for __atomic_exchange and
1514         __atomic_store.
1515         * optabs.c (expand_atomic_exchange): Expand to __sync_lock_test_and_set
1516         only when originated from that builtin.
1517         (expand_atomic_store): Expand to __sync_lock_release when originated
1518         from that builtin.
1519         * builtins.c (expand_builtin_sync_lock_test_and_set): Add flag that
1520         expand_atomic_exchange call originated from here.
1521         (expand_builtin_sync_lock_release): Add flag that expand_atomic_store
1522         call originated from here.
1523         (expand_builtin_atomic_exchange): Add origination flag.
1524         (expand_builtin_atomic_store): Add origination flag.
1525         * expr.h (expand_atomic_exchange, expand_atomic_store): Add boolean
1526         parameters to indicate implementation fall back options.
1527
1528 2011-11-07  Georg-Johann Lay  <avr@gjlay.de>
1529
1530         * config/avr/avr.c (output_reload_in_const): Can handle CONSTANT_P
1531         now, not only CONST_INT and CONST_DOUBLE.
1532         (output_movqi): Use output_reload_in_const.
1533         (output_reload_inhi): Ditto.
1534         (output_reload_insisf): Move assertion to output_reload_in_const.
1535         (avr_out_reload_inpsi): Ditto.
1536
1537 2011-11-07  Nathan Sidwell  <nathan@acm.org>
1538
1539         * gcov.c (object_summary): Replace with ...
1540         (object_runs): ... this.
1541         (process_file): Remove functions with no data.
1542         (generate_results): Ignore files with no lines.
1543         (release_function): New helper, broken out of ...
1544         (release_structures): ... here.  Use it.
1545         (read_count_file): Adjust for new data file format.
1546         (output_lines): Use object_runs.
1547         * gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete.
1548         (struct gcov_ctr_info): Move definition.
1549         (struct gcov_fn_info): Add key field, use gcov_ctr_info for
1550         trailing array.
1551         (struct gcov_info): Add merge function array, remove mask and
1552         counts.  Trailing array is array of pointers to function info.
1553         * coverage.c (struct function_list): Replace counter numbers with
1554         counter arrays.  Add fndecl field.  GTYify.
1555         (counts_entry): Remove chain workspace.
1556         (functions_head): GTYify.
1557         (prg_n_ctrs): Remove.
1558         (fn_v_ctrs): New.
1559         (tree_ctr_tables): Remove.
1560         (read_counts_file): Cope with blank entries and expect program
1561         summaries before functions.  Don't warn on missing entries.
1562         (coverage_counter_alloc): Allocate individual function arrays.
1563         (tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust
1564         for individual function arrays.
1565         (coverage_end_function): GTYify function list object. Finalize
1566         function's counter arrays.
1567         (build_var): New.  Create a counter-related variable with
1568         appropriate linkage.
1569         (build_fn_info_type): Adjust for new runtime structure.
1570         (build_fn_info_value): Rename to ...
1571         (build_fn_info): ... here.  Build new format data.
1572         (build_ctr_info_type, build_ctr_info_value): Remove.
1573         (build_info_type): New. Build new format data structure.
1574         (build_info): Adjust for new format data.
1575         (create_coverage): Likewise.
1576         * gcov-dump.c (tag_function): Recognize placeholders.
1577
1578 2011-11-07  Georg-Johann Lay  <avr@gjlay.de>
1579
1580         * config/avr/constraints.md (Cm2): New constraint for int -2.
1581         * config/avr/avr.md (addqi3): Use it. New alternatives for +/-2.
1582         (*negqihi2): New insn.
1583
1584 2011-11-07  H.J. Lu  <hongjiu.lu@intel.com>
1585
1586         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
1587         HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx in Rule 18.
1588
1589 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
1590
1591         * config/i386/i386.c (ix86_expand_builtin): If gather mask
1592         argument is known to have all high bits set, pass pc_rtx as
1593         second argument to the expander instead of op0.
1594         * config/i386/sse.md (*avx2_gathersi<mode>_2,
1595         *avx2_gatherdi<mode>_2): New patterns.
1596         * config/i386/avx2intrin.h (_mm256_i32gather_pd,
1597         _mm256_i64gather_pd, _mm256_i32gather_ps): Set mask using
1598         _mm256_cmp_pd with zero vector arguments and _CMP_EQ_OQ instead of
1599         _mm256_set1_pd.
1600
1601         PR tree-optimization/50789
1602         * tree-vect-stmts.c (process_use): Add force argument, avoid
1603         exist_non_indexing_operands_for_use_p check if true.
1604         (vect_mark_stmts_to_be_vectorized): Adjust callers.  Handle
1605         STMT_VINFO_GATHER_P.
1606         (gen_perm_mask): New function.
1607         (perm_mask_for_reverse): Use it.
1608         (reverse_vec_element): Rename to...
1609         (permute_vec_elements): ... this.  Add Y and MASK_VEC arguments,
1610         generalize for any permutations.
1611         (vectorizable_load): Adjust caller.  Handle STMT_VINFO_GATHER_P.
1612         * target.def (TARGET_VECTORIZE_BUILTIN_GATHER): New hook.
1613         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_GATHER): Document it.
1614         * doc/tm.texi: Regenerate.
1615         * tree-data-ref.c (initialize_data_dependence_relation,
1616         compute_self_dependence): No longer static.
1617         * tree-data-ref.h (initialize_data_dependence_relation,
1618         compute_self_dependence): New prototypes.
1619         * tree-vect-data-refs.c (vect_check_gather): New function.
1620         (vect_analyze_data_refs): Detect possible gather load data refs.
1621         * tree-vectorizer.h (struct _stmt_vec_info): Add gather_p field.
1622         (STMT_VINFO_GATHER_P): Define.
1623         (vect_check_gather): New prototype.
1624         * config/i386/i386-builtin-types.def: Add types for alternate
1625         gather builtins.
1626         * config/i386/sse.md (AVXMODE48P_DI): Remove.
1627         (VEC_GATHER_MODE): Rename mode_attr to...
1628         (VEC_GATHER_IDXSI): ... this.
1629         (VEC_GATHER_IDXDI, VEC_GATHER_SRCDI): New mode_attrs.
1630         (avx2_gathersi<mode>, *avx2_gathersi<mode>): Use <VEC_GATHER_IDXSI>
1631         instead of <VEC_GATHER_MODE>.
1632         (avx2_gatherdi<mode>): Use <VEC_GATHER_IDXDI> instead of
1633         <AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
1634         on src and mask operands.
1635         (*avx2_gatherdi<mode>): Likewise.  Use VEC_GATHER_MODE iterator
1636         instead of AVXMODE48P_DI.
1637         (avx2_gatherdi<mode>256, *avx2_gatherdi<mode>256): Removed.
1638         * config/i386/i386.c (enum ix86_builtins): Add
1639         IX86_BUILTIN_GATHERALTSIV4DF, IX86_BUILTIN_GATHERALTDIV8SF,
1640         IX86_BUILTIN_GATHERALTSIV4DI and IX86_BUILTIN_GATHERALTDIV8SI.
1641         (ix86_init_mmx_sse_builtins): Create those builtins.
1642         (ix86_expand_builtin): Handle those builtins and adjust expansions
1643         of other gather builtins.
1644         (ix86_vectorize_builtin_gather): New function.
1645         (TARGET_VECTORIZE_BUILTIN_GATHER): Define.
1646
1647 2011-11-07  Uros Bizjak  <ubizjak@gmail.com>
1648
1649         * config/i386/f16cintrin.h: Remove extra _X86INTRIN_H_INCLUDED check.
1650
1651 2011-11-07  Tristan Gingold  <gingold@adacore.com>
1652
1653         * config.gcc (*-*-*vms*): Set c_target_objs, cxx_target_objs.
1654         * config/vms/t-vms: Add vms-c.o rule.
1655         * config/vms/vms-c.c: New file.
1656         * config/vms/vms-protos.h (vms_c_register_pragma): New prototype.
1657         * config/vms/vms.h (REGISTER_TARGET_PRAGMAS): Define.
1658
1659 2011-11-07  Tristan Gingold  <gingold@adacore.com>
1660
1661         * config/alpha/vms.h (TARGET_OBJECT_SUFFIX,
1662         TARGET_EXECUTABLE_SUFFIX, TARGET_OS_CPP_BUILTINS,
1663         TARGET_ABI_OPEN_VMS, LONG_TYPE_SIZE, ADA_LONG_TYPE_SIZE,
1664         POINTER_SIZE, POINTERS_EXTEND_UNSIGNED): Move to config/vms/vms.h
1665         (SUBTARGET_OS_CPP_BUILTINS): Define.
1666         (TARGET_DEFAULT): Tune according to POINTER_SIZE.
1667         (MASK_RETURN_ADDR): Define in 64 bit mode.
1668         * config/ia64/vms.h: Likewise.
1669         * config/vms/vms.h: New file.
1670         * config/vms/vms64.h: New file.
1671         * config/alpha/vms64.h: Removed.
1672         * config/ia64/vms64.h: Removed.
1673         * config.gcc (alpha64-dec-*vms*, alpha*-dec-*vms*, ia64-hp-*vms*):
1674         Adjust for above change.
1675
1676 2011-11-07  Enkovich Ilya  <ilya.enkovich@intel.com>
1677
1678         PR target/50962
1679         * config/i386/i386-protos.h (ix86_use_lea_for_mov): New.
1680         * config/i386/i386.c (ix86_use_lea_for_mov): Likewise.
1681         * config/i386/i386.md (movsi_internal): Emit lea if profitable.
1682         (movdi_internal_rex64): Likewise.
1683
1684 2011-11-07  Sergey Ostanevich  <sergos.gnu@gmail.com>
1685
1686         PR rtl-optimization/47698
1687         * ifcvt.c (noce_operand_ok): Return false for mems with side effects.
1688
1689 2011-11-07  Tristan Gingold  <gingold@adacore.com>
1690
1691         * common/config/alpha/alpha-common.c (alpha_option_init_struct):
1692         New function.
1693         (TARGET_OPTION_INIT_STRUCT): Define.
1694         * config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
1695         (TARGET_MAX_ANCHOR_OFFSET)
1696         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.
1697
1698 2011-11-06  Quentin Neill  <quentin.neill@amd.com>
1699
1700         Fix r180999, update ChangeLog
1701         * config.gcc: Add f16cintrin.h.
1702         * config/i386/f16cintrin.h: Add missing endif.
1703
1704 2011-11-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1705
1706         * config.gcc (arm*-*-rtemseabi*): New target.
1707         * config/arm/rtems-eabi.h: New.
1708         * config/arm/t-rtems-eabi: New.
1709
1710 2011-11-06  David S. Miller  <davem@davemloft.net>
1711
1712         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): Delete.
1713         (zero_extend_v8qi_vis, zero_extend_v4hi_vis,
1714         *zero_extend_v8qi_<P:mode>_insn,
1715         *zero_extend_v4hi_<P:mode>_insn): Express using vec_merge
1716         and vec_duplicate instead of using an UNSPEC.
1717
1718 2011-11-07  Alan Modra  <amodra@gmail.com>
1719
1720         PR target/30282
1721         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
1722         blockage for ABI_V4.
1723
1724 2011-11-06  Dave Korn  <dave.korn.cygwin@gmail.com>
1725
1726         * config/i386/cygwin.h (LIBGCJ_SONAME): Updated to match recent
1727         libgcj version bump.
1728         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
1729
1730 2011-11-06  Eric Botcazou  <ebotcazou@adacore.com>
1731
1732         * gcse.c: Adjust outdated comments throughout.
1733         (struct mem_conflict_info): New structure.
1734         (mems_conflict_for_gcse_p): Use it to communicate with caller.
1735         (load_killed_in_block_p): Pass it to note_stores.
1736         (hash_expr): Remove superfluous line break.
1737         (hash_scan_set): Rename PAT parameter into SET.
1738         (hash_scan_insn): Reorder cases.
1739         (canon_list_insert): Fix long line.
1740         (edge_list): Delete.
1741         (prune_expressions): Rename E local variable into EXPR.
1742         (compute_pre_data): Return struct edge_list * object.
1743         (pre_expr_reaches_here_p_work): Fix formatting.
1744         (process_insert_insn): Move around comment.
1745         (pre_edge_insert): Fix long line.
1746         (pre_insert_copies): Likewise.
1747         (gcse_emit_move_after): Swap SRC and DEST parameters.
1748         (pre_delete): Adjust call to gcse_emit_move_after.
1749         (pre_gcse): Take struct edge_list * parameter.  Fix long line.
1750         (one_pre_gcse_pass): Use flag_gcse_lm condition for all routines.
1751         Use a local list of edges.
1752         (hoist_code): Fix long line.  Adjust call to gcse_emit_move_after.
1753         (pre_ldst_expr_hash): Fix long line.
1754         (free_ldst_mems): Rename into...
1755         (free_ld_motion_mems): ...this.
1756         (first_ls_expr): Delete.
1757         (next_ls_expr): Likewise.
1758         (print_ldst_list): Do not use above two functions.
1759         (simple_mem): Adjust interface.
1760         (compute_ld_motion_mems): Fix formatting.
1761         (update_ld_motion_stores): Reuse local variable.
1762
1763 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
1764
1765         * c-decl.c (shadow_tag_warned, grokdeclarator): Handle _Alignas
1766         specifiers.
1767         (build_null_declspecs): Initialize align_log and alignas_p fields.
1768         (declspecs_add_alignas): New.
1769         * c-parser.c (c_token_starts_declspecs): Handle RID_ALIGNAS.
1770         (c_parser_declspecs): Handle _Alignas specifiers.
1771         (c_parser_alignas_specifier): New.
1772         (c_parser_alignof_expression): Diagnose alignof use for non-C1X.
1773         Diagnose _Alignof (expression).
1774         * c-tree.h (struct c_declspecs): Add align_log and alignas_p fields.
1775         (declspecs_add_alignas): Declare.
1776         * ginclude/stddef.h (max_align_t): Define for C1X and C++11.
1777         * ginclude/stdalign.h: New.
1778         * Makefile.in (USER_H): Add stdalign.h.
1779
1780 2011-11-06  Joern Rennecke  <joern.rennecke@embecosm.com>
1781
1782         * regset.h (fixed_reg_set_regset): Declare.
1783         * dse.c: Include regset.h .
1784         (struct insn_info): Add member fixed_regs_live.
1785         (note_add_store_info): New typedef.
1786         (note_add_store): New function.
1787         (emit_inc_dec_insn_before): Expect arg to be of type insn_info_t.
1788         Use gen_add3_insn / gen_move_insn.
1789         Check new insn for unwanted clobbers before emitting it.
1790         (check_for_inc_dec): Rename to...
1791         (check_for_inc_dec_1:) ... this.  Return bool.  Take insn_info
1792         parameter.  Changed all callers in file.
1793         (check_for_inc_dec, copy_fixed_regs): New functions.
1794         (scan_insn): Set fixed_regs_live field of insn_info.
1795         * rtl.h (check_for_inc_dec): Update prototype.
1796         * postreload.c (reload_cse_simplify): Take new signature of
1797         check_ind_dec into account.
1798         * reginfo.c (fixed_reg_set_regset): New variable.
1799         (init_reg_sets_1): Initialize it.
1800
1801 2011-11-06  Jakub Jelinek  <jakub@redhat.com>
1802
1803         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
1804         any user labels.
1805
1806 2011-11-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1807
1808         * config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
1809         Remove dependence of declaration and target define on definition of
1810         HPUX_LONG_DOUBLE_LIBRARY.  Update implementation.
1811
1812 2011-11-06  Andrew Macleod  <amacleod@redhat.com>
1813             Richard Henderson  <rth@redhat.com>
1814             Aldy Hernandez  <aldyh@redhat.com>
1815
1816         Merged from cxx-mem-model.
1817
1818         * cppbuiltin.c (define__GNUC__): Define __ATOMIC memory models
1819         * coretypes.h (enum memmodel): New.  enumerated memory model type.
1820         * Makefile.in (cppbuiltin.o) Add missing dependency on $(TREE_H)
1821         * genopinit,c (optabs): Add atomic direct optab handlers.
1822         * sync-builtins.def (BUILT_IN_ATOMIC_*): New builtins.
1823         * builtin-types.def (BT_CONST_VOLATILE_PTR,
1824         BT_FN_I{1,2,4,8,16}_CONST_VPTR_INT, BT_FN_VOID_VPTR_INT,
1825         BT_FN_BOOL_VPTR_INT, BT_FN_BOOL_SIZE_CONST_VPTR,
1826         BT_FN_I{1,2,4,8,16}_VPTR_I{1,2,4,8,16}_INT,
1827         BT_FN_VOID_VPTR_I{1,2,4,8,16}_INT, BT_FN_VOID_SIZE_VPTR_PTR_INT,
1828         BT_FN_VOID_SIZE_CONST_VPTR_PTR_INT, BT_FN_VOID_SIZE_VPTR_PTR_PTR_INT,
1829         BT_FN_BOOL_VPTR_PTR_I{1,2,4,8,16}_BOOL_INT_INT): New builtin types.
1830         * expr.h (expand_atomic_*): Add prototypes.
1831         (expand_{bool,val}_compare_and_swap): Remove prototypes.
1832         * c-typeck.c (build_function_call_vec): Don't reprocess __atomic
1833         parameters.
1834         * common.opt (Winvalid-memory-model): New warning flag.
1835         (finline-atomics): New. Flag to disable atomic inlining.
1836         * params.h (ALLOW_LOAD_DATA_RACES): New.
1837         (ALLOW_PACKED_LOAD_DATA_RACES): New.
1838         (ALLOW_PACKED_STORE_DATA_RACES): New.
1839         * params.def (PARAM_ALLOW_LOAD_DATA_RACES): New.
1840         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES): New.
1841         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): New.
1842         * builtins.c (is_builtin_name): Handle __atomic.
1843         (get_memmodel): New.  Extract memory model.
1844         (expand_expr_force_mode): New. Factor out common code for ensuring an
1845         integer argument is in the proper mode.
1846         (expand_builtin_sync_operation): Remove ignore param.  Always call
1847         expand_atomic_fetch_op instead of the old expanders.
1848         (expand_builtin_compare_and_swap,
1849         expand_builtin_sync_lock_test_and_set): Use expand_expr_force_mode,
1850         call atomic expanders instead of sync expanders.
1851         (expand_builtin_sync_lock_release): Call atomic_store expander.
1852         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
1853         expand_builtin_atomic_store, expand_builtin_atomic_fetch_op): New.
1854         (expand_builtin_atomic_exchange): New.
1855         (fold_builtin_atomic_always_lock_free,
1856         expand_builtin_atomic_always_lock_free,
1857         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
1858         New.
1859         (expand_builtin_mem_thread_fence, expand_builtin_atomic_thread_fence,
1860         expand_builtin_atomic_signal_fence): New.
1861         (expand_builtin_mem_signal_fence): New.
1862         (expand_builtin): Add cases for BUILT_IN_ATOMIC_*.
1863         (fold_builtin_2): Add cases for BUILT_IN_ATOMIC_{IS,ALWAYS}_LOCK_FREE.
1864         * optabs.h (DOI_atomic_*): Define new atomics.
1865         (atomic_*_optab): Define.
1866         (can_compare_and_swap_p, expand_atomic_compare_and_swap): New
1867         prototypes.
1868         * optabs.c (expand_sync_operation, expand_sync_fetch_operation): Remove.
1869         (expand_sync_lock_test_and_set): Remove.
1870         (expand_atomic_load, expand_atomic_store): New.
1871         (expand_atomic_exchange): New.
1872         (expand_atomic_compare_and_swap): New.  Implements
1873         atomic_compare_exchange via compare and swap.
1874         (struct atomic_op_functions): Opcode table struct for fetch ops.
1875         (get_atomic_op_for_code): New.  Return an opcode table entry.
1876         (maybe_emit_op): New.  Try to emit a fetch op.
1877         (expand_atomic_fetch_op): New.
1878         (expand_val_compare_and_swap_1): Remove.
1879         (expand_val_compare_and_swap, expand_bool_compare_and_swap): Remove.
1880         (expand_atomic_compare_and_swap): Rename from
1881         expand_atomic_compare_exchange.  Rewrite to return both success and
1882         oldval return values; expand via both atomic and sync optabs.
1883         (can_compare_and_swap_p): New.
1884         (expand_compare_and_swap_loop): Use expand_atomic_compare_and_swap.
1885         (maybe_gen_insn): Handle 7 and 8 operands.
1886         * omp-low.c (expand_omp_atomic_fetch_op): Don't test individual
1887         fetch_op optabs, only test can_compare_and_swap_p.  Use __atomic
1888         builtins instead of __sync builtins.
1889         (expand_omp_atomic_pipeline): Use can_compare_and_swap_p.
1890         * doc/extend.texi: Document __atomic built-in functions.
1891         * doc/invoke.texi: Document data race parameters.
1892         * doc/md.texi: Document atomic patterns.
1893         * config/i386/i386.md (UNSPEC_MOVA): New.
1894         (UNSPECV_CMPXCHG): Split into ...
1895         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2,
1896         UNSPECV_CMPXCHG_3, UNSPECV_CMPXCHG_4): New.
1897         * config/i386/sync.md (ATOMIC): New mode iterator.
1898         (atomic_load<ATOMIC>, atomic_store<ATOMIC>): New.
1899         (atomic_loaddi_fpu, atomic_storedi_fpu, movdi_via_fpu): New.
1900         (mem_thread_fence): Rename from memory_barrier.
1901         Handle the added memory model parameter.
1902         (mfence_nosse): Rename from memory_barrier_nosse.
1903         (sync_compare_and_swap<CASMODE>): Split into ...
1904         (atomic_compare_and_swap<SWI124>): this and ...
1905         (atomic_compare_and_swap<CASMODE>): this.  Handle the new parameters.
1906         (atomic_compare_and_swap_single<SWI>): Rename from
1907         sync_compare_and_swap<SWI>; rewrite to use split unspecs.
1908         (atomic_compare_and_swap_double<DCASMODE>): Rename from
1909         sync_double_compare_and_swap<DCASMODE>; rewrite to use split unspecs.
1910         (*atomic_compare_and_swap_doubledi_pic): Rename from
1911         sync_double_compare_and_swapdi_pic; rewrite to use split unspecs.
1912         (atomic_fetch_add<SWI>): Rename from sync_old_add<SWI>; add memory
1913         model parameter.
1914         (*atomic_fetch_add_cmp<SWI>): Similarly.
1915         (atomic_add<SWI>, atomic<any_logic><SWI>): Similarly.
1916         (atomic_sub<SWI>): Similarly.  Use x86_maybe_negate_const_int.
1917         (sync_lock_test_and_set<SWI>): Merge with ...
1918         (atomic_exchange<SWI>): ... this.
1919
1920 2011-11-6  Richard Guenther  <rguenther@suse.de>
1921
1922         * ipa-prop.c (ipa_modify_call_arguments): Re-compute inlinable flag.
1923
1924 2011-11-06  Ira Rosen  <ira.rosen@linaro.org>
1925
1926         * tree-vectorizer.h (vectorizable_condition): Add argument.
1927         * tree-vect-loop.c (vectorizable_reduction): Fail for condition
1928         in SLP.  Update calls to vectorizable_condition.
1929         * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info to
1930         the arguments.  Pass it to vect_is_simple_use_1.
1931         (vectorizable_condition): Add slp_node to the arguments.  Support
1932         vectorization of basic blocks.  Fail for reduction in SLP.  Update
1933         calls to vect_is_simple_cond and vect_is_simple_use.  Support SLP:
1934         call vect_get_slp_defs to get vector operands.
1935         (vect_analyze_stmt): Update calls to vectorizable_condition.
1936         (vect_transform_stmt): Likewise.
1937         * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
1938         (vect_get_and_check_slp_defs): Handle COND_EXPR.  Allow pattern
1939         def stmts.
1940         (vect_build_slp_tree): Handle COND_EXPR.
1941         (vect_analyze_slp_instance): Push pattern statements to root node.
1942         (vect_get_constant_vectors): Fix comments.  Handle COND_EXPR.
1943
1944 2011-11-05  David S. Miller  <davem@davemloft.net>
1945
1946         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
1947         (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
1948         (*zero_extend_v8qi_<P:mode>_insn,
1949         *zero_extend_v4hi_<P:mode>_insn): New insns.
1950         * config/sparc/sparc.c (vector_init_move_words,
1951         vector_init_prepare_elts, sparc_expand_vector_init_vis2,
1952         sparc_expand_vector_init_vis1): New functions.
1953         (vector_init_bshuffle): Rewrite to handle more cases and make use
1954         of locs[] array prepared by vector_init_prepare_elts.
1955         (vector_init_fpmerge, vector_init_faligndata): Delete.
1956         (sparc_expand_vector_init): Rewrite using new infrastructure.
1957
1958 2011-11-05  Joern Rennecke  <joern.rennecke@embecosm.com>
1959
1960         * config.gcc (epiphany-*-*): New architecture.
1961         (epiphany-*-elf): New configuration.
1962         * config/epiphany, common/config/epiphany : New directories.
1963         * doc/extend.texi (disinterrupt attribute): Add Epiphany.
1964         (interrupt attribute): Add Epiphany.
1965         (long_call, short_call attribute): Add Epiphany.
1966         * doc/invoke.texi (Options): Add Epiphany options.
1967         * doc/md.texi (Machine Constraints): Add Epiphany constraints.
1968         * doc/install.texi (Options specification):
1969         Add --with-stack-offset=@var{num} description.
1970         (host/target specific issues): Add epiphany-*-elf.
1971         * doc/contrib.texi (Contributors): Mention Epiphany port.
1972
1973 2011-11-05  Jakub Jelinek  <jakub@redhat.com>
1974
1975         PR tree-optimization/50693
1976         * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
1977         non-forced user labels.
1978         (gimple_merge_blocks): Turn non-forced user labels into
1979         debug bind stmt with the label as first operand and reset value.
1980         (gimple_duplicate_bb): Don't duplicate label debug stmts.
1981         * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
1982         * final.c (final_scan_insn): Likewise.
1983         (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
1984         * var-tracking.c (debug_label_num): New variable.
1985         (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
1986         instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
1987         * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
1988         NOTE_INSN_DELETED_DEBUG_LABEL.
1989         (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
1990         * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
1991         * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
1992         * gengtype.c (adjust_field_rtx_def): Likewise.
1993         * config/i386/i386.c (ix86_output_function_epilogue): For MachO
1994         clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
1995         if their are at the end of function and nop hasn't been emitted.
1996         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
1997
1998 2011-11-05  Georg-Johann Lay  <avr@gjlay.de>
1999
2000         PR rtl-optimization/50448
2001         * cprop.c (try_replace_reg): Also try to replace uses of FROM that
2002         appear in SET_DEST.
2003
2004 2011-11-05  Peter Dufault  <dufault@hda.com>,
2005             Sebastian Huber  <sebastian.huber@embedded-brains.de>
2006
2007         * config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
2008         Extend rs6000_spe handling.
2009
2010 2011-11-05  Ralf Corsépius  <ralf.corsepius@rtems.org>
2011
2012         * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
2013         Remove -mcpu=601 multilib.
2014         Remove -Dmpc8260 multilib.
2015         * config/rs6000/rtems.h: Allow --float-gprs=... to override grps
2016         on E500 targets.
2017
2018 2011-11-05  Quentin Neill  <quentin.neill@amd.com>
2019
2020         Piledriver f16cintrin.h fix.
2021         * config/i386/f16cintrin.h: Contents moved from immintrin.h.
2022         * config/i386/immintrin.h: Include f16cintrin.h.
2023         * config.gcc (i[34567]86-*-*, x86_64-*-*): Add f16cintrin.h.
2024
2025
2026 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2027
2028         PR c++/50608
2029         * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
2030         to fold_offsetof.
2031         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
2032
2033 2011-11-04  Alan Modra  <amodra@gmail.com>
2034
2035         * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
2036         * print-rtl.c (print_rtx): Don't segfault on negative regno.
2037
2038 2011-11-04  David S. Miller  <davem@davemloft.net>
2039
2040         PR target/49965
2041         * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
2042         fact that sparc_emit_float_lib_cmp modifies the comparison in
2043         operands[1].
2044
2045 2011-11-04  Ralf Corsépius  <ralf.corsepius@rtems.org>
2046
2047         * config/lm32/t-rtems: New.
2048         * config.gcc (lm32-*-rtems*): Add t-rtems.
2049
2050 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2051
2052         PR target/50979
2053         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
2054
2055 2011-11-04  Jiangning Liu  <jiangning.liu@arm.com>
2056
2057         PR rtl-optimization/38644
2058         * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
2059         for epilogue having stack adjustment.
2060
2061 2011-11-04  Georg-Johann Lay  <avr@gjlay.de>
2062
2063         PR target/50931
2064         * config/avr/avr-modes.def: New file defining PSImode.
2065         * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
2066         __UINT24_MAX__): New built-in defines.
2067         * config/avr/avr.md (adjust_len): Add tstpsi, mov24,  reload_in24,
2068         ashlpsi, ashrpsi, lshrpsi.
2069         (QISI, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
2070         (MOVMODE): New mode iterator.
2071         (movpsi): New expander.
2072         (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
2073         (*reload_inpsi, *movpsi): New insns.
2074         (*reload_inpsi): New RTL peephole.
2075         (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
2076         *addpsi3_sign_extend.hi): New insns.
2077         (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
2078         *subpsi3_sign_extend.hi): New insns.
2079         (divmodpsi4, udivmodpsi4): New define insn-and-split.
2080         (*divmodpsi4_call, *udivmodpsi4_call): New insns.
2081         (andpsi3, iorpsi3, xorpsi3): New insns.
2082         (*rotlpsi2.1, *rotlpsi2.23): New insns.
2083         (*rotw<mode>): Insn condition only allow even-sized modes.
2084         (*rotb<mode>): Insn condition allows odd-sized modes.
2085         (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
2086         (negpsi2, one_cmplpsi2): New insns.
2087         (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
2088         (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
2089         insn-and-splits.
2090         (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
2091         (cbranchpsi4): New expander.
2092         * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
2093         * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
2094         avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
2095         avr_out_reload_inpsi): New prototypes.
2096
2097         * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
2098         (avr_scalar_mode_supported_p): ...this new static function.
2099         (avr_asm_len): Always return "".
2100         (avr_out_load_psi, avr_out_store_psi): New static functions.
2101         (avr_out_movpsi, avr_out_reload_inpsi): New functions.
2102         (avr_out_tstpsi): New function.
2103         (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
2104         (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
2105         (avr_simplify_comparison_p): Ditto.
2106         (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
2107         ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
2108         ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
2109         (avr_rtx_costs_1): Report PSI costs.
2110         (avr_libcall_value): Handle odd-sized parameters.
2111         (avr_init_builtin_int24): New static function to define built-in
2112         24-bit types __int24 and __uint24.
2113         (avr_init_builtins): Use it.
2114
2115 2011-11-04  Thomas Doerfler <thomas.doerfler@embedded-brains.de>
2116
2117         PR target/50989
2118         * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
2119         support for VFP floating point model.
2120
2121 2011-11-04  Tristan Gingold  <gingold@adacore.com>
2122
2123         * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
2124
2125 2011-11-04  Ira Rosen  <ira.rosen@linaro.org>
2126
2127         Unrevert:
2128         2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
2129
2130         PR tree-optimization/50730
2131         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
2132         analysis if encountered unsupported data-ref.
2133
2134 2011-11-04  Jakub Jelinek  <jakub@redhat.com>
2135
2136         * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
2137         function.
2138         * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
2139         New prototype.
2140         * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
2141         For floatunsv8siv8sf2 require TARGET_AVX2.
2142
2143         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
2144         XORP argument.  Subtract 0x1p31 instead of 0x1p32.  Use normal
2145         signalling comparison instead of non-signalling.  Store into
2146         *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
2147         subtracted and 0 otherwise.
2148         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
2149         Adjust prototype.
2150         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
2151         already for TARGET_SSE2.  Xor in vector initialized by
2152         ix86_expand_adjust_ufix_to_sfix_si at the end.
2153         (vec_pack_ufix_trunc_<mode>): Likewise.
2154
2155         * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
2156         not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
2157         WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
2158         vectorizable_type_demotion and vectorizable_type_promotion did.
2159         Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
2160         is {,un}signed {char,short}.
2161         (vect_create_vectorized_demotion_stmts): Fix comment typo.  For
2162         recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
2163         Push vec_dest back to the vec_dsts vector at the end.
2164         (vect_create_vectorized_promotion_stmts): Don't recurse, do just
2165         one step.  Removed multi_step_cvt, vec_dsts, slp_node and
2166         prev_stmt_info arguments, add vec_dest argument.  Push always
2167         into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
2168         with vec_tmp at the end after freeing old *vec_oprnd0 vector.
2169         (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
2170         (vect_analyze_stmt): Don't call vectorizable_type_demotion and
2171         vectorizable_type_promotion.  Call vectorizable_conversion even
2172         for SLP bb vectorization.
2173         (vect_transform_stmt): Call vectorizable_conversion instead of
2174         vectorizable_type_demotion and vectorizable_type_promotion.
2175         (supportable_widening_operation): Clear *multi_step_cvt first,
2176         simplify c1/c2 computation, free *interm_types vector on failure.
2177         (supportable_narrowing_operation): Clear *multi_step_cvt first,
2178         free *interm_types vector on failure, handle multi-step
2179         FIX_TRUNC_EXPR.
2180
2181 2011-11-04  Tristan Gingold  <gingold@adacore.com>
2182
2183         * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
2184         argument.  Conditionally generate crash debug info.  Adjust
2185         for alpha_funcs_tree removal.
2186         (machine_function): Add links field.
2187         (alpha_start_function): Conditionally generate crash debug info.
2188         (alpha_end_function): Adjust call to alpha_write_linkage.
2189         (alpha_funcs): Remove.
2190         (links_kind): Remove.
2191         (alpha_links): Remove num, target and lkind field.  Add func field.
2192         (alpha_links_tree): Remove.
2193         (alpha_funcs_tree): Remove.
2194         (alpha_need_linkage): Remove.
2195         (alpha_use_linkage): Change prototype.  Adjust.
2196         (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
2197         Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
2198         * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
2199         (alpha_need_linkage): Remove.
2200         * config/alpha/alpha.md: Update calls to alpha_use_linkage.
2201         Adjust calls to alpha_need_linkage.
2202
2203 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
2204
2205         * sched-vis.c (print_value): Handle STRICT_LOW_PART.
2206
2207 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
2208
2209         * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
2210         rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
2211         btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
2212
2213 2011-11-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2214
2215         PR target/50978
2216         * config/arm/t-bpabi: New file.
2217         * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
2218         arm*-*-linux-*eabi.
2219         (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
2220         arm*-*-uclinux*eabi.
2221         (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
2222         for arm*-*-eabi*.
2223
2224 2011-11-03  Michael Matz  <matz@suse.de>
2225
2226         PR bootstrap/50857
2227         * configure.ac: Check for -fno-exceptions -fno-rtti.
2228         * configure: Regenerate.
2229         * Makefile.in (NOEXCEPTION_FLAGS): New flag.
2230         (ALL_CXXFLAGS): Use it.
2231
2232 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
2233
2234         * config/i386/i386.md: Use {} for multi-line preparation statements.
2235
2236 2011-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2237
2238         * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
2239         (movtf_insn_sp32): ...this.
2240         (movtf_insn_sp64_no_fpu): Consolidate into...
2241         (movtf_insn_sp64): ...this.
2242         (movtf_insn_sp64_hq): Do not test TARGET_FPU.
2243         * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
2244
2245 2011-11-03  Tristan Gingold  <gingold@adacore.com>
2246
2247         * config/vms/vms.c (vms_patch_builtins): Fix typo.
2248
2249 2011-11-03  Richard Guenther  <rguenther@suse.de>
2250
2251         PR lto/44965
2252         * lto-opts.c: Re-implement.
2253         * lto-streamer.h (lto_register_user_option): Remove.
2254         (lto_read_file_options): Likewise.
2255         (lto_reissue_options): Likewise.
2256         (lto_clear_user_options): Likewise.
2257         (lto_clear_file_options): Likewise.
2258         * opts-global.c (post_handling_callback): Remove.
2259         (set_default_handlers): Do not set post_handling_callback.
2260         (decode_options): Remove LTO specific code.
2261         * lto-wrapper.c (merge_and_complain): New function.
2262         (run_gcc): Read all input file options and
2263         prepend a merged set before the linker driver options.
2264         * gcc.c (driver_post_handling_callback): Remove.
2265         (set_option_handlers): Do not set post_handling_callback.
2266         * opts-common.c (handle_option): Do not call post_handling_callback.
2267         * opts.h (struct cl_option_handlers): Remove post_handling_callback.
2268
2269 2011-11-03  Richard Guenther  <rguenther@suse.de>
2270
2271         * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
2272
2273 2011-11-03  Martin Jambor  <mjambor@suse.cz>
2274
2275         * ipa-prop.c (type_change_info): New fields offset, object,
2276         known_current_type and multiple_types_encountered.
2277         (extr_type_from_vtbl_ptr_store): New function.
2278         (check_stmt_for_type_change): Use it, set multiple_types_encountered if
2279         the result is different from the previous one.
2280         (detect_type_change): Renamed to detect_type_change_1. New parameter
2281         comp_type.  Set up new fields in tci, build known type jump
2282         functions if the new type can be identified.
2283         (detect_type_change): New function.
2284         * tree.h (DECL_CONTEXT): Comment new use.
2285
2286 2011-11-03  Richard Guenther  <rguenther@suse.de>
2287
2288         PR lto/48217
2289         * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
2290         decode an encoded literal '.
2291
2292 2011-11-03  Tristan Gingold  <gingold@adacore.com>
2293
2294         * collect2.c (main): Add support of -f (response file) on AIX.
2295
2296 2011-11-03  Ira Rosen  <ira.rosen@linaro.org>
2297
2298         PR tree-optimization/50912
2299         * tree-vectorizer.h (slp_void_p): New.
2300         (struct _slp_tree): Replace left and right with children.  Update
2301         documentation.
2302         (struct _slp_oprnd_info): New.
2303         (vect_get_vec_defs): Declare.
2304         (vect_get_slp_defs): Update arguments.
2305         * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
2306         vect_get_vec_defs instead of vect_get_slp_defs.
2307         (vectorizable_reduction): Likewise.
2308         * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
2309         Update call to vect_get_slp_defs.
2310         (vectorizable_conversion): Update call to vect_get_vec_defs.
2311         (vectorizable_assignment, vectorizable_shift,
2312         vectorizable_operation): Likewise.
2313         (vectorizable_type_demotion): Call vect_get_vec_defs instead of
2314         vect_get_slp_defs.
2315         (vectorizable_type_promotion, vectorizable_store): Likewise.
2316         (vect_analyze_stmt): Fix typo.
2317         * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
2318         (vect_print_slp_tree, vect_mark_slp_stmts,
2319         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
2320         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
2321         vect_schedule_slp_instance): Likewise.
2322         (vect_create_new_slp_node): New.
2323         (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
2324         (vect_get_and_check_slp_defs): Pass information about defs using
2325         oprnds_info, allow any number of operands.
2326         (vect_build_slp_tree): Likewise.  Update calls to
2327         vect_get_and_check_slp_defs.  Fix comments.
2328         (vect_analyze_slp_instance): Move node creation to
2329         vect_create_new_slp_node.
2330         (vect_get_slp_defs): Allow any number of operands.
2331
2332 2011-11-02  Peter Bergner  <bergner@vnet.ibm.com>
2333             Iain Sandoe  <iains@gcc.gnu.org>
2334
2335         * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
2336         (get_ppc476_thunk_name): Use it.
2337         (rs6000_code_end): Likewise.
2338         (macho_branch_islands): Fix typo.
2339
2340 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
2341             Jason Merrill  <jason@redhat.com>
2342
2343         PR c++/50810
2344         * configure.ac: Add -Wno-narrowing to warning options.
2345         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
2346
2347 2011-11-02  Eric Botcazou  <ebotcazou@adacore.com>
2348
2349         PR target/50945
2350         * config/sparc/sparc.md (movsf_insn): Reindent constraints.
2351         (movdf_insn_sp32): Likewise.  Remove redundant G constraint.
2352         (movdf_insn_sp64): Likewise.
2353         (DFmode splitter): Do not test TARGET_FPU.
2354         (movtf_insn_sp32): Reindent constraints.
2355         (movtf_insn_sp32_no_fpu): Likewise.
2356         (movtf_insn_sp64): Likewise.
2357         (movtf_insn_sp64_hq): Likewise.
2358         (movtf_insn_sp64_no_fpu): Likewise.
2359
2360 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
2361
2362         PR c++/50956
2363         * builtins.c (fold_builtin_memchr): Fix cast.
2364
2365 2011-11-02  Teresa Johnson  <tejohnson@google.com>
2366
2367         * config/i386/predicates.md (promotable_binary_operator): Add minus
2368         to the list of promotable operators.
2369
2370 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2371
2372         * gthr-single.h, gthr.h: Move to ../libgcc.
2373         * gthr-aix.h: Move to ../libgcc/config/rs6000.
2374         * gthr-dce.h: Move to ../libgcc/config/pa.
2375         * gthr-lynx.h: Move to ../libgcc/config.
2376         * gthr-mipssde.h: Move to ../libgcc/config/mips.
2377         * gthr-posix.h: Move to ../libgcc/config.
2378         * gthr-rtems.h: Likewise.
2379         * gthr-tpf.h: Move to ../libgcc/config/s390.
2380         * gthr-vxworks.h: Move to ../libgcc/config.
2381         * gthr-win32.h: Move to ../libgcc/config/i386.
2382         * configure.ac (gthread_flags): Remove
2383         (gthr-default.h): Don't create.
2384         (thread_file): Don't substitute.
2385         * configure: Regenerate.
2386         * Makefile.in (GCC_THREAD_FILE): Remove.
2387         (GTHREAD_FLAGS): Remove.
2388         (libgcc.mvars): Remove GTHREAD_FLAGS.
2389         * config/t-vxworks (EXTRA_HEADERS): Remove.
2390
2391 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2392             Paolo Bonzini  <bonzini@gnu.org>
2393
2394         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
2395         * configure: Regenerate.
2396         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
2397         (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
2398         (libgcc_tm.h, cs-libgcc_tm.h): Remove.
2399         (clean): Remove libgcc_tm.h
2400         * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
2401         * config.gcc (libgcc_tm_file): Remove.
2402         (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
2403         (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
2404         (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
2405         (avr-*-rtems*): Likewise.
2406         (avr-*-*): Likewise.
2407         (frv-*-elf): Likewise.
2408         (frv-*-*linux*): Likewise.
2409         (h8300-*-rtems*): Likewise.
2410         (h8300-*-elf*): Likewise.
2411         (i[34567]86-*-darwin*): Likewise.
2412         (x86_64-*-darwin*): Likewise.
2413         (rx-*-elf*): Likewise.
2414         (tic6x-*-elf): Likewise.
2415         (tic6x-*-uclinux): Likewise.
2416         (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
2417
2418 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2419
2420         * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
2421         (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
2422         (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
2423         (INCLUDES_FOR_TARGET): Remove.
2424         (LIBGCC2_CFLAGS): Don't export.
2425         (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
2426         Remove.
2427         (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
2428         (libgcc.mvars): Likewise.
2429         Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
2430         LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
2431         TARGET_LIBGCC2_CFLAGS.
2432         Emit GTHREAD_FLAGS.
2433         * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
2434         * config/darwin-64.c: Move to ../libgcc/config.
2435         * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
2436         config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
2437         config/udivmodsi4.c: Move to ../libgcc/config.
2438         * config/gthr-posix.c: Move to ../libgcc/config/alpha.
2439         * config/memcmp.c, config/memcpy.c, config/memmove.c,
2440         config/memset.c: Move to ../libgcc/config.
2441         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
2442         * config/t-freebsd: Remove.
2443         * config/t-freebsd-thread: Move to ../libgcc/config.
2444         * config/t-libgcc-pic: Move to ../libgcc/config.
2445         * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
2446         * config/t-linux: Remove.
2447         * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
2448         Remove.
2449         * config/t-openbsd-thread: Move to ../libgcc/config.
2450         * config/t-rtems (LIBGCC2_INCLUDES): Remove.
2451         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
2452         * config/t-svr4: Remove.
2453         * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
2454         (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
2455         * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
2456         * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
2457         * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
2458         * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
2459         * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
2460         * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
2461         config/arm/fp16.c, config/arm/linux-atomic.c,
2462         config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
2463         * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
2464         (TARGET_LIBGCC2_CFLAGS): Remove.
2465         * config/arm/t-bpabi, config/arm/t-linux: Remove.
2466         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
2467         (LIB2FUNCS_STATIC_EXTRA): Remove.
2468         * config/arm/t-netbsd: Remove.
2469         * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
2470         (TARGET_LIBGCC2_CFLAGS): Remove.
2471         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
2472         * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
2473         (TARGET_LIBGCC2_CFLAGS): Remove.
2474         * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
2475         (LIBGCC, INSTALL_LIBGCC): Remove.
2476         * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
2477         * config/bfin/t-bfin-linux: Likewise.
2478         * config/bfin/t-bfin-uclinux: Likewise.
2479         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
2480         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
2481         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
2482         config/c6x/ltf.c: Move to ../libgcc/config/c6x.
2483         * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
2484         * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
2485         * config/cris/arit.c: Move to ../libgcc/config/cris.
2486         * config/cris/cris_abi_symbol.c: Remove.
2487         * config/cris/cris.h: Remove obsolete comment.
2488         * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
2489         * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
2490         ($(LIB2FUNCS_EXTRA)): Remove.
2491         * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
2492         (LIBGCC): Remove.
2493         * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
2494         * config/fr30/t-fr30: Remove.
2495         * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
2496         config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
2497         config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
2498         to ../libgcc/config/frv.
2499         * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
2500         (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
2501         (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
2502         * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
2503         * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
2504         config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
2505         config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
2506         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
2507         (LIBGCC, INSTALL_LIBGCC): Remove.
2508         * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
2509         * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
2510         * config/i386/t-cygwin: Remove.
2511         * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
2512         (LIB2FUNCS_EXCLUDE): Remove.
2513         * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
2514         (LIBGCC, INSTALL_LIBGCC): Remove.
2515         * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
2516         * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
2517         * config/i386/t-mingw-w32: Likewise.
2518         * config/i386/t-mingw-w64: Likewise.
2519         * config/i386/t-openbsd: Likewise.
2520         * config/i386/t-nto: Remove.
2521         * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
2522         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
2523         (quadlib.c): Remove.
2524         * config/ia64/t-ia64: Remove comment.
2525         * config/iq2000/lib2extra-funcs.c: Move to
2526         ../libgcc/config/iq2000/lib2funcs.c.
2527         * config/iq2000/t-iq2000: Remove.
2528         * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
2529         * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
2530         * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
2531         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
2532         * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
2533         (INSTALL_LIBGCC): Remove.
2534         * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
2535         * config/m68k/t-floatlib: Remove.
2536         * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
2537         * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
2538         Fix typo.
2539         (LIBGCC, INSTALL_LIBGCC): Remove.
2540         * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
2541         * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
2542         * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
2543         * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
2544         (INSTALL_LIBGCC): Remove.
2545         * config/mips/t-isa3264: Likewise.
2546         * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
2547         * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
2548         (INSTALL_LIBGCC): Remove.
2549         * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
2550         * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
2551         (INSTALL_LIBGCC): Remove.
2552         * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
2553         (LIB2FUNCS_STATIC_EXTRA): Remove.
2554         * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
2555         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
2556         * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
2557         * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
2558         ../libgcc/config/pa.
2559         * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
2560         * config/pa/quadlib.c: Move to ../libgcc/config/pa.
2561         * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
2562         * config/pa/t-linux, config/pa/t-linux64: Remove.
2563         * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
2564         config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
2565         * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
2566         Remove.
2567         * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
2568         * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
2569         (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
2570         * config/rs6000/crtresfpr.asm: Move to
2571         ../libgcc/config/rs6000/crtresfpr.S.
2572         * config/rs6000/crtresgpr.asm: Move to
2573         ../libgcc/config/rs6000/crtresgpr.S.
2574         * config/rs6000/crtresxfpr.asm: Move to
2575         ../libgcc/config/rs6000/crtresxfpr.S.
2576         * config/rs6000/crtresxgpr.asm: Move to
2577         ../libgcc/config/rs6000/crtresxgpr.S.
2578         * config/rs6000/crtsavfpr.asm: Move to
2579         ../libgcc/config/rs6000/crtsavfpr.S.
2580         * config/rs6000/crtsavgpr.asm: Move to
2581         ../libgcc/config/rs6000/crtsavgpr.S.
2582         * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
2583         * config/rs6000/darwin-fpsave.asm: Move to
2584         ../libgcc/config/rs6000/darwin-fpsave.S.
2585         * config/rs6000/darwin-gpsave.asm: Move to
2586         ../libgcc/config/rs6000/darwin-gpsave.S.
2587         * config/rs6000/darwin-tramp.asm: Move to
2588         ../libgcc/config/rs6000/darwin-tramp.S.
2589         * config/rs6000/darwin-vecsave.asm: Move to
2590         ../libgcc/config/rs6000/darwin-vecsave.S.
2591         * config/rs6000/darwin-world.asm: Move to
2592         ../libgcc/config/rs6000/darwin-world.S.
2593         * config/rs6000/e500crtres32gpr.asm: Move to
2594         ../libgcc/config/rs6000/e500crtres32gpr.S.
2595         * config/rs6000/e500crtres64gpr.asm: Move to
2596         ../libgcc/config/rs6000/e500crtres64gpr.S.
2597         * config/rs6000/e500crtres64gprctr.asm: Move to
2598         ../libgcc/config/rs6000/e500crtres64gprctr.S.
2599         * config/rs6000/e500crtrest32gpr.asm: Move to
2600         ../libgcc/config/rs6000/e500crtrest32gpr.S.
2601         * config/rs6000/e500crtrest64gpr.asm: Move to
2602         ../libgcc/config/rs6000/e500crtrest64gpr.S.
2603         * config/rs6000/e500crtresx32gpr.asm: Move to
2604         ../libgcc/config/rs6000/e500crtresx32gpr.S.
2605         * config/rs6000/e500crtresx64gpr.asm: Move to
2606         ../libgcc/config/rs6000/e500crtresx64gpr.S.
2607         * config/rs6000/e500crtsav32gpr.asm: Move to
2608         ../libgcc/config/rs6000/e500crtsav32gpr.S.
2609         * config/rs6000/e500crtsav64gpr.asm: Move to
2610         ../libgcc/config/rs6000/e500crtsav64gpr.S.
2611         * config/rs6000/e500crtsav64gprctr.asm: Move to
2612         ../libgcc/config/rs6000/e500crtsav64gprctr.S.
2613         * config/rs6000/e500crtsavg32gpr.asm: Move to
2614         ../libgcc/config/rs6000/e500crtsavg32gpr.S.
2615         * config/rs6000/e500crtsavg64gpr.asm: Move to
2616         ../libgcc/config/rs6000/e500crtsavg64gpr.S.
2617         * config/rs6000/e500crtsavg64gprctr.asm: Move to
2618         ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
2619         * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
2620         * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
2621         (TARGET_LIBGCC2_CFLAGS): Remove.
2622         * config/rs6000/t-aix52: Likewise.
2623         * config/rs6000/t-darwin: Remove.
2624         * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
2625         (LIB2FUNCS_EXTRA): Remove.
2626         * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
2627         * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
2628         * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
2629         (INSTALL_LIBGCC): Remove.
2630         * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
2631         (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
2632         (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
2633         (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
2634         ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
2635         ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
2636         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
2637         (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
2638         * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
2639         * config/rs6000/t-vxworks: Remove comment.
2640         * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
2641         * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
2642         * config/sh/linux-atomic.asm: Move to
2643         ../libgcc/config/sh/linux-atomic.S.
2644         * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
2645         * config/sh/t-netbsd: Remove.
2646         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
2647         Remove.
2648         * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
2649         * config/sparc/t-leon: Likewise.
2650         * config/sparc/t-leon3: Likewise.
2651         * config/sparc/t-linux64: Likewise.
2652         * config/sparc/t-netbsd64: Fix typo.
2653         Remove comment.
2654         * config/spu/divmodti4.c, config/spu/divv2df3.c,
2655         config/spu/float_disf.c, config/spu/float_unsdidf.c,
2656         config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
2657         config/spu/mfc_multi_tag_release.c,
2658         config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
2659         config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
2660         config/spu/multi3.c: Move to ../libgcc/config/spu.
2661         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
2662         (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
2663         (INSTALL_LIBGCC): Remove.
2664         * config/stormy16/stormy16-lib2.c: Move to
2665         ../libgcc/config/stormy16/lib2.c.
2666         * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
2667         ../libgcc/config/stormy16/ashlsi3.c.
2668         * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
2669         ../libgcc/config/stormy16/ashrsi3.c.
2670         * config/stormy16/stormy16-lib2-clzhi2.c: Move to
2671         ../libgcc/config/stormy16/clzhi2.c.
2672         * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
2673         ../libgcc/config/stormy16/cmpsi2.c.
2674         * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
2675         ../libgcc/config/stormy16/ctzhi2.c.
2676         * config/stormy16/stormy16-lib2-divsi3.c: Move to
2677         ../libgcc/config/stormy16/divsi3.c.
2678         * config/stormy16/stormy16-lib2-ffshi2.c: Move to
2679         ../libgcc/config/stormy16/ffshi2.c.
2680         * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
2681         ../libgcc/config/stormy16/lshrsi3.c.
2682         * config/stormy16/stormy16-lib2-modsi3.c: Move to
2683         ../libgcc/config/stormy16/modsi3.c.
2684         * config/stormy16/stormy16-lib2-parityhi2.c: Move to
2685         ../libgcc/config/stormy16/parityhi2.c.
2686         * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
2687         ../libgcc/config/stormy16/popcounthi2.c.
2688         * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
2689         ../libgcc/config/stormy16/ucmpsi2.c.
2690         * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
2691         ../libgcc/config/stormy16/udivmodsi4.c.
2692         * config/stormy16/stormy16-lib2-udivsi3.c: Move to
2693         ../libgcc/config/stormy16/udivsi3.c.
2694         * config/stormy16/stormy16-lib2-umodsi3.c: Move to
2695         ../libgcc/config/stormy16/umodsi3.c.
2696         * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
2697         * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
2698         * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
2699         * config/xtensa/t-elf: Remove.
2700         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
2701         * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
2702         from tmake_file.
2703         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
2704         *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
2705         (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
2706         (*-*-openbsd*): Likewise.
2707         Remove t-openbsd-thread for posix threads.
2708         (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
2709         (alpha*-*-freebsd*): Likewise.
2710         (alpha*-*-netbsd*): Likewise.
2711         (alpha*-*-openbsd*): Likewise.
2712         (alpha64-dec-*vms*): Likewise.
2713         (alpha*-dec-*vms*): Likewise.
2714         (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
2715         (arm*-*-linux*): Remove t-linux from tmake_file.
2716         Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
2717         (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
2718         arm*-*-uclinux*eabi.
2719         (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
2720         tmake_file for arm*-*-eabi*.
2721         (fr30-*-elf): Remove tmake_file.
2722         (hppa*64*-*-linux*): Remove tmake_file.
2723         (hppa*-*-linux*): Likewise.
2724         (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
2725         tmake_file.
2726         (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
2727         (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
2728         tmake_file.
2729         (i[34567]86-*-elf*): Remove tmake_file.
2730         (x86_64-*-elf*): Likewise.
2731         (i[34567]86-*-nto-qnx*): Likewise.
2732         (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
2733         (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
2734         from tmake_file if using win32 threads.
2735         (iq2000*-*-elf*): Remove tmake-file.
2736         (microblaze*-linux*): Likewise.
2737         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
2738         (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
2739         (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
2740         (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
2741         sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
2742         (xtensa*-*-elf*): Remove tmake_file.
2743
2744 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2745
2746         * Makefile.in (LIB1ASMSRC): Don't export.
2747         (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
2748         * config/arm/arm.c: Update lib1funcs.asm filename.
2749         * config/arm/linux-eabi.h: Likewise.
2750         * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
2751         config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
2752         ../libgcc/config/arm.
2753         * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
2754         * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2755         * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
2756         * config/arm/t-bpabi: Likewise.
2757         * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2758         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
2759         * config/arm/t-strongarm-elf: Likewise.
2760         * config/arm/t-symbian: Likewise.
2761         * config/arm/t-vxworks: Likewise.
2762         * config/arm/t-wince-pe: Likewise.
2763         * config/avr/libgcc.S: Move to ../libgcc/config/avr.
2764         * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2765         * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
2766         * config/bfin/t-bfin: Remove.
2767         * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2768         * config/bfin/t-bfin-linux: Likewise.
2769         * config/bfin/t-bfin-uclinux: Likewise.
2770         * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
2771         * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2772         * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
2773         * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2774         * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
2775         * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2776         * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
2777         * config/h8300/lib1funcs.asm: Move to
2778         ../libgcc/config/h8300/lib1funcs.S.
2779         * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2780         * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
2781         * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2782         * config/i386/t-interix: Likewise.
2783         * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
2784         * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
2785         * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2786         * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
2787         * config/m32c/m32c.c: Update m32c-lib1.S filename.
2788         * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
2789         * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2790         * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
2791         * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
2792         * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
2793         * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
2794         * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2795         * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
2796         * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2797         * config/mips/mips16.S: Move to ../libgcc/config/mips.
2798         * config/mips/t-libgcc-mips16: Remove.
2799         * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
2800         * config/pa/milli64.S: Move to ../libgcc/config/pa.
2801         * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
2802         * config/pa/t-linux64: Likewise.
2803         * config/picochip/libgccExtras/fake_libgcc.asm: Move to
2804         ../libgcc/config/picochip/lib1funcs.S.
2805         * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
2806         * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
2807         * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
2808         * config/sh/sh.h: Update lib1funcs.asm filename.
2809         * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
2810         * config/sh/t-netbsd: Likewise.
2811         * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
2812         Remove.
2813         * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
2814         * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
2815         * config/sparc/lb1spl.asm: Remove.
2816         * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2817         * config/sparc/t-leon: Likewise.
2818         * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
2819         * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
2820         * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
2821         * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
2822         * config/vax/t-linux: Remove.
2823         * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
2824         ../libgcc/config/xtensa.
2825         * config/xtensa/lib1funcs.asm: Move to
2826         ../libgcc/config/xtensa/lib1funcs.S.
2827         * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2828         * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
2829         (bfin*-*): Likewise.
2830         (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
2831         mips/t-libgcc-mips16 from tmake_file.
2832         (mips*-*-linux*): Likewise.
2833         (mips*-sde-elf*): Likewise.
2834         (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
2835         (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
2836         (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
2837         (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
2838         (mips-*-elf*, mipsel-*-elf*): Likewise.
2839         (mips64-*-elf*, mips64el-*-elf*): Likewise.
2840         (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
2841         (mips*-*-rtems*): Likewise.
2842         (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
2843         (vax-*-linux*): Remove vax/t-linux from tmake_file.
2844
2845 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2846
2847         * config.gcc (extra_parts): Remove.
2848         (*-*-freebsd*): Remove extra_parts.
2849         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
2850         *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
2851         (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
2852         Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
2853         *-*-netbsdelf[2-9]*.
2854         (*-*-openbsd*): Remove t-libc-ok from tmake_file.
2855         (alpha*-*-linux*): Remove extra_parts.
2856         (alpha*-*-freebsd*): Likewise.
2857         (bfin*-linux-uclibc*): Likewise.
2858         (fr30-*-elf): Likewise.
2859         (moxie-*-elf): Likewise.
2860         (moxie-*-uclinux*): Likewise.
2861         (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
2862         (h8300-*-elf*): Likewise.
2863         (hppa*64*-*-hpux11*): Remove extra_parts.
2864         (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
2865         tmake_file.
2866         (x86_64-*-elf*): Likewise.
2867         (i[34567]86-*-freebsd*): Remove tmake_file.
2868         (x86_64-*-freebsd*): Likewise.
2869         (x86_64-*-netbsd*): Likewise.
2870         (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
2871         t-libc-ok from tmake_file.
2872         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
2873         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
2874         i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
2875         tmake_file.
2876         Remove extra_parts.
2877         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
2878         Remove i386/t-crtstuff from tmake_file.
2879         (i[34567]86-*-lynxos*): Likewise.
2880         Remove extra_parts.
2881         (ia64*-*-elf*): Remove extra_parts.
2882         (ia64*-*-freebsd*): Likewise.
2883         (ia64*-*-linux*): Likewise.
2884         (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
2885         (m32r-*-elf*): Remove extra_parts.
2886         (m32rle-*-elf*): Likewise.
2887         (m32r-*-rtems*): Likewise.
2888         (m68k-*-elf*, fido-*-elf*): Likewise.
2889         (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
2890         (m68k-*-rtems*): Remove extra_parts.
2891         (mep-*-*): Likewise.
2892         (microblaze*-linux*): Likewise.
2893         (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
2894         (mips*-*-linux*): Likewise.
2895         (powerpc-*-lynxos*): Likewise.
2896         (s390x-ibm-tpf*): Likewise.
2897         (score-*-elf): Likewise.
2898         Remove tmake_file.
2899         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
2900         sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
2901         sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
2902         Remove sh/t-superh from tmake_file for sh*-superh-elf.
2903         Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
2904         (sh-*-rtems*): Remove sh/t-elf from tmake_file.
2905         (sh-wrs-vxworks): Likewise.
2906         (sparc-*-linux*): Remove extra_parts.
2907         (sparc64-*-linux*): Likewise.
2908         (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
2909         (xstormy16-*-elf): Likewise.
2910         (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
2911         (am33_2.0-*-linux*): Remove extra_parts.
2912         * configure.ac (extra_parts): Don't substitute.
2913         * configure: Regenerate.
2914         * crtstuff.c: Move to ../libgcc.
2915         * Makefile.in (CRTSTUFF_CFLAGS): Remove.
2916         (EXTRA_PARTS): Remove.
2917         (CRTSTUFF_T_CFLAGS): Remove.
2918         (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
2919         (GCC_EXTRA_PARTS): Remove.
2920         (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
2921         CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
2922         Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
2923         ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
2924         ($(T)crtbeginT.o): Remove.
2925         * config/alpha/t-vms (EXTRA_PARTS): Remove.
2926         ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
2927         * config/alpha/vms-dwarf2.asm: Move to
2928         ../libgcc/config/alpha/vms-dwarf2.S.
2929         * config/alpha/vms-dwarf2eh.asm: Move to
2930         ../libgcc/config/alpha/vms-dwarf2eh.S.
2931         * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
2932         * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
2933         * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
2934         ($(T)crti.o, $(T)crtn.o): Remove.
2935         * config/arm/t-linux: Remove comment.
2936         * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
2937         * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
2938         ($(T)crti.o, $(T)crtn.o): Remove.
2939         * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
2940         * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
2941         * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
2942         * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
2943         * config/bfin/t-bfin (EXTRA_PARTS): Remove.
2944         ($(T)crti.o, $(T)crtn.o): Remove.
2945         * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
2946         ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
2947         (EXTRA_MULTILIB_PARTS): Remove.
2948         * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
2949         EXTRA_MULTILIB_PARTS): Remove.
2950         * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
2951         ($(T)crtlibid.o): Remove.
2952         (EXTRA_MULTILIB_PARTS): Remove.
2953         * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
2954         * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
2955         * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
2956         (EXTRA_MULTILIB_PARTS): Remove.
2957         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2958         * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
2959         CRTSTUFF_T_CFLAGS_S): Remove.
2960         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
2961         * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2962         * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
2963         * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
2964         * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
2965         * config/frv/frvbegin.c, config/frv/frvend.c: Move to
2966         ../libgcc/config/frv.
2967         * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
2968         (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
2969         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
2970         (CRTSTUFF_T_CFLAGS): Remove.
2971         * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
2972         * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
2973         * config/h8300/t-elf: Remove.
2974         * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
2975         Move to ../libgcc/config/i386.
2976         * config/i386/t-crtstuff: Remove.
2977         * config/i386/t-i386elf: Remove.
2978         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
2979         * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
2980         * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
2981         * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
2982         * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
2983         * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
2984         * config/ia64/t-vms: Remove.
2985         * config/ia64/vms-crtinit.asm: Move to
2986         ../libgcc/config/ia64/vms-crtinit.S.
2987         * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
2988         * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
2989         * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2990         * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
2991         ($(T)crtinit.o, $(T)crtfini.o): Remove.
2992         (m32rx, m32r2): Remove.
2993         (EXTRA_MULTILIB_PARTS): Remove.
2994         * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
2995         * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
2996         * config/m68k/t-crtstuff: Remove.
2997         * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
2998         * config/m68k/t-m68kelf: Remove.
2999         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
3000         * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
3001         * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
3002         * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
3003         (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
3004         * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
3005         (EXTRA_MULTILIB_PARTS): Remove.
3006         * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
3007         * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
3008         * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
3009         EXTRA_PARTS): Remove.
3010         ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
3011         * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
3012         * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
3013         * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
3014         ($(T)crti.o, $(T)crtn.o): Remove.
3015         (EXTRA_MULTILIB_PARTS): Remove.
3016         * config/mips/t-isa3264: Likewise.
3017         * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
3018         * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
3019         (CRTSTUFF_T_CFLAGS): Remove.
3020         * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
3021         ($(T)crti.o, $(T)crtn.o): Remove.
3022         (EXTRA_MULTILIB_PARTS): Remove.
3023         * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
3024         Remove.
3025         ($(T)crti.o, $(T)crtn.o): Remove.
3026         * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
3027         * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
3028         (EXTRA_MULTILIB_PARTS): Remove.
3029         ($(T)crti.o, $(T)crtn.o): Remove.
3030         * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
3031         * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
3032         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
3033         * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
3034         * config/pa/stublib.c: Move to libgcc/config/pa.
3035         * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
3036         * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
3037         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
3038         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
3039         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
3040         ($(T)libgcc_stub.a): Remove.
3041         * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
3042         (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
3043         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
3044         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
3045         ($(T)libgcc_stub.a): Remove.
3046         * config/rs6000/eabi-cn.asm: Move to
3047         ../../../libgcc/config/rs6000/eabi-cn.S.
3048         * config/rs6000/eabi-ci.asm: Move to
3049         ../../../libgcc/config/rs6000/eabi-ci.S.
3050         * config/rs6000/sol-ci.asm: Move to
3051         ../../../libgcc/config/rs6000/sol-ci.S.
3052         * config/rs6000/sol-cn.asm: Move to
3053         ../../../libgcc/config/rs6000/sol-cn.S.
3054         * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
3055         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
3056         * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
3057         Remove.
3058         (EXTRA_MULTILIB_PARTS): Remove.
3059         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
3060         (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
3061         ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
3062         ($(T)ncrtn$(objext)): Remove.
3063         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
3064         * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
3065         * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
3066         * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
3067         * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
3068         * config/score/t-score-elf: Remove.
3069         * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
3070         * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
3071         * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
3072         * config/sh/lib1funcs-4-300.asm: Move to
3073         ../../../libgcc/config/sh/lib1funcs-4-300.S.
3074         * config/sh/lib1funcs-Os-4-200.asm: Move to
3075         ../libgcc/config/sh/lib1funcs-Os-4-200.S.
3076         * config/sh/t-elf: Remove.
3077         * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
3078         * config/sh/t-linux64: Remove.
3079         * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
3080         * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
3081         (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
3082         ($(T)ic_invalidate_array_4-100.o)
3083         ($(T)libic_invalidate_array_4-100.a)
3084         ($(T)ic_invalidate_array_4-200.o)
3085         ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
3086         ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
3087         ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
3088         ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
3089         ($(T)libgcc-4-300.a): Remove.
3090         * config/sh/t-superh: Remove.
3091         * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
3092         * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
3093         * config/spu/cache.S: Move to ../libgcc/config/spu.
3094         * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
3095         * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
3096         (EXTRA_MULTILIB_PARTS): Remove.
3097         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
3098         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
3099         ($(T)cache64k.o, $(T)cache128k.o): Remove.
3100         * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
3101         * config/t-libc-ok: Remove.
3102         * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
3103         * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
3104         * config/t-netbsd: Remove.
3105         * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
3106         * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
3107         * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
3108         ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
3109         * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
3110         * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
3111         * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
3112         * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
3113         (EXTRA_MULTILIB_PARTS): Remove.
3114         * config/xtensa/t-linux: Remove.
3115         * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
3116
3117 2011-11-02  Uros Bizjak  <ubizjak@gmail.com>
3118
3119         * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
3120         CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
3121
3122 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3123
3124         PR translation/45116
3125         * Makefile.in (slibdir): Remove, don't export.
3126         (SHLIB_NM_FLAGS): Remove.
3127         (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
3128         SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
3129         SHLIB_MAPFILES, SHLIB_NM_FLAGS.
3130         (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
3131         (gcc.o): Pass SHLIB instead of SHLIB_LINK.
3132         (gccspec.o): Likewise.
3133         (installdirs): Don't create $(DESTDIR)$(slibdir).
3134         * configure.ac (slibdir): Remove.
3135         * configure: Regenerate.
3136         * libgcc-libsystem.ver: Move to ../libgcc/config.
3137         * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
3138         * config/libgcc-glibc.ver: Move to ../libgcc/config.
3139         * config/t-libunwind (SHLIB_LC): Remove.
3140         * config/t-linux (SHLIB_MAPFILES): Remove.
3141         * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
3142         * config/t-slibgcc-elf-ver: Remove.
3143         * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
3144         ../libgcc/config.
3145         * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
3146         to ../libgcc/config/alpha.
3147         * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
3148         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
3149         SHLIB_SYMVECX2, SHLIB_LINK): Remove.
3150         * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
3151         * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
3152         * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
3153         SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
3154         * config/arm/t-symbian (SHLIB_LC): Remove.
3155         * config/bfin/libgcc-bfin.ver: Move to
3156         ../libgcc/config/bfin/libgcc-glibc.ver.
3157         * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
3158         * config/c6x/libgcc-c6xeabi.ver: Move to
3159         ../libgcc/config/c6x/libgcc-eabi.ver.
3160         * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
3161         * config/cris/libgcc.ver: Move to
3162         ../libgcc/config/cris/libgcc-glibc.ver.
3163         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3164         * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
3165         * config/frv/t-linux (SHLIB_MAPFILES): Remove.
3166         * config/i386/darwin-libgcc.10.4.ver: Move to
3167         ../libgcc/config/i386/libgcc-darwin.10.4.ver.
3168         * config/i386/darwin-libgcc.10.5.ver: Move to
3169         ../libgcc/config/i386/libgcc-darwin.10.5.ver.
3170         * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
3171         * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
3172         SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
3173         SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
3174         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
3175         * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
3176         SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
3177         * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
3178         ../libgcc/config/i386.
3179         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
3180         ../libgcc/config/i386.
3181         * config/i386/t-linux: Move to ../libgcc/config/i386.
3182         * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
3183         * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
3184         * config/i386/t-mingw-w64: Likewise.
3185         * config/i386/t-mingw32: Remove.
3186         * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
3187         to ../libgcc/config/ia64.
3188         * config/ia64/t-glibc: Remove.
3189         * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
3190         * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
3191         * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
3192         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
3193         * config/ia64/vms_symvec_libgcc_s.opt: Remove.
3194         * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
3195         * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
3196         * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
3197         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
3198         * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
3199         * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
3200         Move to ../libgcc/config/pa.
3201         * config/rs6000/darwin-libgcc.10.4.ver: Move to
3202         ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
3203         * config/rs6000/darwin-libgcc.10.5.ver: Move to
3204         ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
3205         * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
3206         SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
3207         * config/rs6000/t-aix52: Likewise.
3208         * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
3209         ../libgcc/config/sh.
3210         * config/sparc/libgcc-sparc-glibc.ver: Move to
3211         ../libgcc/config/sparc/libgcc-glibc.ver.
3212         * config/sparc/t-linux: Move to ../libgcc/config/sparc.
3213         * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
3214         * config/xtensa/libgcc-xtensa.ver: Move to
3215         ../libgcc/config/xtensa/libgcc-glibc.ver.
3216         * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
3217         t-slibgcc in tmake_file.
3218         Remove t-slibgcc-nolc-override for *-*-freebsd[34],
3219         *-*-freebsd[34].* with pthreads.
3220         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
3221         *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
3222         t-slibgcc-elf-ver with t-slibgcc in tmake_file.
3223         (*-*-netbsd*): Likewise.
3224         (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
3225         (*-*-*vms*): Add t-slibgcc to tmake_file.
3226         (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
3227         (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
3228         tmake_file.
3229         (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
3230         arm*-*-linux-*eabi.
3231         (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
3232         tmake_file.
3233         (crisv32-*-linux*, cris-*-linux*): Likewise.
3234         (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
3235         pa/t-slibgcc-dwarf-ver from tmake_file.
3236         (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
3237         tmake_file.
3238         Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
3239         (hppa*64*-*-hpux11*): Likewise.
3240         (hppa[12]*-*-hpux11*): Likewise.
3241         (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
3242         tmake_file.
3243         (x86_64-*-darwin*): Likewise.
3244         (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
3245         Add t-slibgcc to tmake_file.
3246         (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
3247         Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
3248         i[34567]86-w64-*.
3249         Remove i386/t-mingw-pthread from tmake_file.
3250         (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
3251         (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
3252         (ia64-hp-*vms*): Likewise.
3253         (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
3254         tmake_file.
3255         (m32rle-*-linux*): Likewise.
3256         (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
3257         (microblaze*-linux*): Remove t-slibgcc-elf-ver,
3258         t-slibgcc-nolc-override from tmake_file.
3259         (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
3260         tmake_file.
3261         (powerpc-*-darwin*): Likewise.
3262         (powerpc64-*-darwin*): Likewise.
3263         (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
3264         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
3265         (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
3266         t-slibgcc to tmake_file.
3267         (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
3268         (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
3269         (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
3270         (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
3271         (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
3272         (sparc64-*-linux*): Likewise.
3273         (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
3274         tmake_file.
3275         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
3276         x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
3277         from tmake_file.
3278
3279 2011-11-02  Richard Guenther  <rguenther@suse.de>
3280
3281         PR tree-optimization/50902
3282         * tree-vect-stmts.c (vectorizable_load): Properly convert
3283         an invariant initializer element.
3284
3285 2010-11-02  Richard Guenther  <rguenther@suse.de>
3286
3287         PR tree-optimization/50890
3288         * gimple.h (gimple_fold_call): Remove.
3289         * gimple-fold.c (fold_stmt_1): Move all call related code to ...
3290         (gimple_fold_call): ... here.  Make static.  Update the
3291         cannot-inline flag on direct calls.
3292         * ipa-inline.c (early_inliner): Copy the cannot-inline flag
3293         from the statements to the edges.
3294
3295 2011-11-01  Ian Lance Taylor  <iant@google.com>
3296
3297         * godump.c (struct macro_hash_value): Define.
3298         (macro_hash_hashval): New static function.
3299         (macro_hash_eq, macro_hash_del): New static functions.
3300         (go_define): Use macro_hash_value to store values in macro_hash.
3301         Replace an old value on a redefinition.  Don't print anything to
3302         go_dump_file.
3303         (go_undef): Delete the entry from the hash table.
3304         (go_output_typedef): For an enum, use macro_hash_value, and don't
3305         print anything to go_dump_file.
3306         (go_print_macro): New static function.
3307         (go_finish): Traverse macro_hash with go_print_macro.
3308         (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
3309
3310 2011-11-02  Alan Modra  <amodra@gmail.com>
3311
3312         * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
3313
3314 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
3315
3316         PR c++/44277
3317         * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
3318
3319 2011-11-01  Andrew Stubbs  <ams@codesourcery.com>
3320
3321         * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
3322
3323 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
3324
3325         * config/i386/i386.md (splitters for int-float conversion): Use
3326         SUBREG_REG on SUBREGs in splitter constraints.
3327
3328 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
3329
3330         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
3331         prototype.
3332         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
3333         function.
3334         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
3335         (ssepackfltmode): New mode attr.
3336         (vec_pack_ufix_trunc_<mode>): New expander.
3337
3338 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
3339
3340         PR target/50940
3341         * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
3342         Compare <ssevecmode>mode to V4SFmode, not V4SImode.
3343
3344 2011-11-01  Peter Bergner  <bergner@vnet.ibm.com>
3345
3346         * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
3347         * config/rs6000/476.h: New file.
3348         * config/rs6000/476.opt: Likewise.
3349         * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
3350         (SET_TARGET_LINK_STACK): Likewise.
3351         (TARGET_ASM_CODE_END): Define.
3352         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
3353         TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
3354         (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
3355         code if TARGET_LINK_STACK.
3356         (rs6000_emit_load_toc_table): Likewise.
3357         (output_function_profiler): Likewise
3358         (macho_branch_islands): Likewise
3359         (machopic_output_stub): Likewise
3360         (get_ppc476_thunk_name): New function.
3361         (rs6000_code_end): Likewise.
3362         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
3363         Convert to a define_expand.
3364         (load_toc_v4_PIC_1_normal): New define_insn.
3365         (load_toc_v4_PIC_1_476): Likewise.
3366         (load_toc_v4_PIC_1b_normal): Likewise.
3367         (load_toc_v4_PIC_1b_476): Likewise.
3368
3369 2011-11-01  Georg-Johann Lay  <avr@gjlay.de>
3370
3371         PR target/50910
3372         * config/avr/avr.opt (-mbranch-cost=): New option.
3373         * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
3374         * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
3375         * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
3376         (*addhi3_zero_extend1): Remove % in constraint of operand 1.
3377         (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
3378
3379 2011-11-01  Tom de Vries  <tom@codesourcery.com>
3380
3381         PR tree-optimization/50908
3382         * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
3383         before update_vuses, test for 1 predecessor rather than two.
3384         (delete_block_update_dominator_info): New function, part of it factored
3385         out of ...
3386         (replace_block_by): Use delete_block_update_dominator_info.  Call
3387         update_vuses after deleting bb1 and updating dominator info, instead of
3388         before.
3389
3390 2011-11-01  David S. Miller  <davem@davemloft.net>
3391
3392         * config/sparc/sparc.c (vector_init_faligndata): New function.
3393         (sparc_expand_vector_init): Use it for V4HImode on VIS1.
3394
3395         * config/sparc/sparc.c (sparc_expand_vcond): New function.
3396         * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
3397         * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
3398         (vconduv8qiv8qi): Likewise.
3399
3400 2011-11-01  Alexandre Oliva  <aoliva@redhat.com>
3401
3402         PR debug/50869
3403         * cselib.c (cfa_base_preserved_regno): Initialize.
3404         (cselib_expand_value_rtx_1): Don't expand it.
3405         * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
3406         Check it's only zero if result is NULL.
3407
3408 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
3409
3410         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
3411         expander.
3412
3413         * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
3414         (sseintvecmodelower): New mode iterator.
3415         (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
3416         (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
3417         (floatunsv4siv4sf2): Macroize into...
3418         (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
3419
3420 2011-10-31  David S. Miller  <davem@davemloft.net>
3421
3422         * config/sparc/sparc.md (cmask patterns): Allow zero operand.
3423
3424         * dwarf2out.c (cached_next_real_insn): New.
3425         (dwarf2out_end_epilogue): Set it to NULL_RTX.
3426         (dwarf2out_var_location): Remove cached_next_real_insn local static.
3427
3428 2011-10-31  Richard Henderson  <rth@redhat.com>
3429
3430         * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
3431         (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
3432         (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
3433         (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
3434         (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
3435         (floatv4siv4df2): Rename from avx_cvtdq2pd256.
3436         (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
3437         (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
3438         * config/i386/i386.md (splitters for int-float conversion): Likewise.
3439         * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
3440         (bdesc_args): Likewise.
3441         (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
3442         (ix86_vectorize_builtin_conversion): Remove.
3443         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
3444
3445 2011-10-31  Martin Jambor  <mjambor@suse.cz>
3446
3447         * ipa-prop.c (mark_modified): Moved up in the file.
3448         (is_parm_modified_before_call): Renamed to
3449         is_parm_modified_before_stmt, moved up in the file.
3450         (load_from_unmodified_param): New function.
3451         (compute_complex_assign_jump_func): Also attempt to create pass
3452         through jump functions for values loaded from (addressable)
3453         parameters.
3454
3455 2011-10-31  Jakub Jelinek  <jakub@redhat.com>
3456
3457         * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
3458         in a loop and has different type from op0, cast it to op0's type
3459         before the loop first.  For slp give up.  Don't crash if op1_vectype
3460         is NULL.
3461
3462 2011-10-31  Paul Brook  <paul@codesourcery.com>
3463
3464         * cgraphunit.c: Don't mark clones as static constructors.
3465
3466 2011-10-31  David Edelsohn  <dje.gcc@gmail.com>
3467
3468         * gcc-ar: Do not include stdio.h.
3469
3470 2011-10-31  Diego Novillo  <dnovillo@google.com>
3471
3472         * tree-streamer-out.c (pack_ts_base_value_fields): Emit
3473         TYPE_ADDR_SPACE.
3474         * tree-streamer-in.c (unpack_ts_base_value_fields): Read
3475         TYPE_ADDR_SPACE.
3476
3477 2011-10-30  David S. Miller  <davem@davemloft.net>
3478
3479         * config/sparc/sparc.c (vector_init_bshuffle): New function.
3480         (vector_init_fpmerge): New function.
3481         (sparc_expand_vector_init): Use them to improve non-const cases.
3482
3483         * dwarf2out.c (dwarf2out_var_location): When processing several
3484         consecutive location notes, cache the result of next_real_insn().
3485
3486 2011-10-30  Uros Bizjak  <ubizjak@gmail.com>
3487
3488         * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
3489         avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
3490         (vec_dupv4sf): Remove expander.
3491         (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
3492         (vec_dupv2df): Remove expander.
3493         (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
3494         (*vec_concatv2df): Merge *vec_concatv2df_sse3.
3495         (*vec_dupv4si): Merge *vec_dupv4si_avx.
3496         (*vec_dupv2di): Merge *vec_dupv2di_sse3.
3497
3498 2011-10-30  Dmitry Plotnikov  <dplotnikov@ispras.ru>
3499
3500         * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
3501         * optabs.c (supportable_convert_operation): New function.
3502         * optabs.h (supportable_convert_operation): New prototype.
3503         * tree-vect-stmts.c (vectorizable_conversion): Change condition and
3504         behavior for NONE modifier case.
3505         * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
3506
3507 2011-10-30  Jakub Jelinek  <jakub@redhat.com>
3508
3509         * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
3510         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
3511         function.
3512         (vect_vect_recog_func_ptrs): Add it.
3513
3514 2011-10-30  David S. Miller  <davem@davemloft.net>
3515
3516         * reorg.c (label_before_next_insn): New function.
3517         (relax_delay_slots): Use it instead of prev_label.
3518         * rtl.h (prev_label): Delete declaration.
3519         * emit-rtl.c (prev_label): Remove.
3520
3521 2011-10-30  Revital Eres  <revital.eres@linaro.org>
3522
3523         * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
3524         as BB_DISABLE_SCHEDULE.
3525         (mark_loop_unsched): New function.
3526         (sms_schedule): Call it.
3527
3528 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3529
3530         PR target/50617
3531         * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
3532         (cmpib_comparison_operator): Likewise.
3533         (following_cal, output_and, output_ior, output_move_double,
3534         output_fp_move_double, output_block_move, output_block_clear,
3535         output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
3536         output_movb, output_parallel_movb, output_parallel_addb, output_call,
3537         output_indirect_call, output_millicode_call, output_mul_insn,
3538         output_div_insn, output_mod_insn, singlemove_string,
3539         output_arg_descriptor, output_global_address, print_operand,
3540         legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
3541         fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
3542         emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
3543         hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
3544         attr_length_indirect_call, return_addr_rtx, function_arg_padding,
3545         insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
3546         output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
3547         hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
3548         compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
3549         reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
3550         exported functions and variables with "pa_".
3551         * config/pa/predicates.md: Likewise.
3552         * config/pa/pa64-hpux.h: likewise.
3553         * config/pa/som.h: Likewise.
3554         * config/pa/elf.h: Likewise.
3555         * config/pa/pa64-linux.h: Likewise.
3556         * config/pa/pa.md: Likewise.
3557         * config/pa/pa.c: Likewise.
3558         * config/pa/pa-linux.h: Likewise.
3559         * config/pa/pa.h: Likewise.
3560         * config/pa/constraints.md: Likewise.
3561
3562 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
3563
3564         * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
3565         Update all uses.
3566         (xop_shl<mode>3): Rename from xop_lshl<mode>3.  Update all uses.
3567         * config/i386/i386.c: Update all uses.
3568
3569 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
3570
3571         * config/i386/i386.md (lshlv16qi3): Remove expander.
3572         (lshrv16qi3): New expander.
3573         (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
3574         using any_shiftrt code iterator. Cleanup.
3575         (ashlv16qi3): Cleanup.
3576         (ashrv2di3): Ditto.
3577
3578 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3579
3580         PR target/50691
3581         * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
3582         references.
3583         (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
3584         and TLS_MODEL_LOCAL_DYNAMIC symbol references.
3585
3586 2011-10-29  Georg-Johann Lay  <avr@gjlay.de>
3587
3588         PR target/50887
3589         * config/avr/avr.opt (-maccumulate-args): New option.
3590         * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
3591         avr_starting_frame_offset.
3592         (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
3593         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
3594         (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
3595         (UNSPECV_WRITE_SP): New constant.
3596         (*addhi3_sp_R): Rewrite to...
3597         (*addhi3_sp): ...this new insn.
3598         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
3599         (movhi_sp_r): ...this new insn.
3600         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
3601         (avr_starting_frame_offset): New.
3602         * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
3603         (avr_starting_frame_offset): New function.
3604         (avr_outgoing_args_size): New static function.
3605         (avr_initial_elimination_offset): Use it.
3606         (avr_simple_epilogue): Use it.
3607         (avr_asm_function_end_prologue): Use it.
3608         (expand_epilogue): Use it.
3609         (expand_prologue): Use it.  Break out code to...
3610         (avr_prologue_setup_frame): ...this new static function.
3611         (avr_can_eliminate): Allow eliminating to frame pointer if there
3612         is one.
3613         (avr_frame_pointer_required_p): Use frame pointer if target has a
3614         nonlocal label.
3615         * config/avr/constraints.md (R): Remove.
3616         (Csp): New constraint.
3617         * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
3618
3619 2011-10-29  Andi Kleen  <ak@linux.intel.com>
3620
3621         * gcc-ar.c (target_machine): Add.
3622
3623 2011-10-29  Anatoly Sokolov  <aesok@post.ru>
3624
3625         * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
3626         cris_constant_index_p, cris_base_p, cris_index_p,
3627         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
3628         cris_legitimate_address_p): New functions.
3629         (TARGET_LEGITIMATE_ADDRESS_P): Define.
3630         (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
3631         from rtx to const_rtx.
3632         (cris_print_operand_address, cris_address_cost,
3633         cris_side_effect_mode_ok):  Use
3634         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
3635         cris_biap_index_p and cris_bdap_index_p.
3636         * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
3637         BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
3638         REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
3639         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
3640         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
3641         cris_biap_index_p and cris_bdap_index_p.
3642         * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
3643         cris_base_p.
3644         * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
3645         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
3646         prototype.
3647         (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
3648
3649 2011-10-21  Andi Kleen  <ak@linux.intel.com>
3650
3651         * ggc-page (PAGE_ALIGN): Add.
3652         (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
3653         Replace ROUND_UP with PAGE_ALIGN.
3654
3655 2011-10-20  Andi Kleen  <ak@linux.intel.com>
3656
3657         * ggc-page (alloc_anon): Add check argument.
3658         (alloc_page): Add fallback to 1 page allocation.
3659         Adjust alloc_anon calls to new argument.
3660
3661 2011-10-18  Andi Kleen  <ak@linux.intel.com>
3662
3663         * ggc-page (release_pages): First free large continuous
3664         chunks in the madvise path.
3665
3666 2011-10-18  Andi Kleen  <ak@linux.intel.com>
3667
3668         * ggc-page.c (alloc_pages): Always round up entry_size.
3669
3670 2011-10-19  Andi Kleen  <ak@linux.intel.com>
3671
3672         * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
3673         (native): Add gcc-ar, gcc-nm, gcc-ranlib.
3674         (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
3675         gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
3676         (install): Depend on install-gcc-ar.
3677         (install-gcc-ar): Add.
3678         (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
3679         * gcc-ar.c: Add new file.
3680
3681 2011-10-28  Pat Haugen <pthaugen@us.ibm.com>
3682
3683         * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
3684         * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
3685         type for V2DF.
3686         (VStype_div): Use vector types for V2DF/V4SF.
3687         (VStype_sqrt): Use *sqrt types.
3688         (VS_spdp_type): Change type to vecdouble.
3689         (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
3690         vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
3691         vsx_xvcvspuxds): Likewise.
3692         (*vsx_fms<mode>4): Set type via <VStype_mul>.
3693         (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
3694         <VStype_simple>.
3695         * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
3696         (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
3697         power7-dsqrt): Correct insn latency.
3698         (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
3699         (power7-veccmp): Delete.
3700         (power7-vecfloat): Correct latency/dispatch/VSU values.
3701         (define_bypass "power7-vecfloat"): Correct latency and types.
3702         (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
3703         (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
3704
3705 2011-10-28  Uros Bizjak  <ubizjak@gmail.com>
3706
3707         * config/i386/i386.md (shift_insn): Rename code attribute from
3708         shiftrt_insn.  Also handle ashift RTX.
3709         (shift): Rename code attribute from shiftrt.  Also handle ashift RTX.
3710         (vshift): New code attribute.
3711         (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
3712         (any_lshift): Move and rename code iterator from ...
3713         * config/i386/sse.md (lshift): ... here.
3714         (lshift_insn): Remove code attribute.
3715         (lshift): Remove code attribute.
3716         (vlshr<mode>3): Use lshiftrt RTX.
3717         (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
3718         (vashl<mode>3, ashlv16qi3): Use ashift RTX.
3719         (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>.  Use
3720         any_lshift code iterator.  Update asm template.
3721         (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
3722         usign any_lshift code iterator.
3723         * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
3724         mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
3725         * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
3726
3727 2011-10-28  Georg-Johann Lay  <avr@gjlay.de>
3728
3729         PR target/49313
3730         * config/avr/avr.md (parityhi2): Expand allowing pseudos.
3731         (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
3732         to the libgcc insn.
3733         (*parityqihi2): Same for 8-bit parity.
3734
3735 2011-10-28  Julian Brown  <julian@codesourcery.com>
3736
3737         PR rtl-optimization/47918
3738         * reload1.c (set_initial_label_offsets): Use initial offsets
3739         for labels on the nonlocal_goto_handler_labels chain.
3740
3741 2011-10-28  Iain Sandoe  <iains@gcc.gnu.org>
3742
3743         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
3744         Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
3745         (LIB2FUNCS_EXTRA):  Add darwin-gpsave.asm.
3746         (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
3747         config/t-darwin.
3748         * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
3749         (GP_SAVE_INLINE): Likewise.
3750         (SAVE_FP_PREFIX,  SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
3751         RESTORE_FP_SUFFIX): Set to empty strings.
3752         * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
3753         (debug_stack_info): Print savres_strategy.
3754         (rs6000_savres_routine_name): Implement for Darwin.
3755         (rs6000_make_savres_rtx): Adjust used register for Darwin.
3756         (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
3757         (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
3758         (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
3759         * config/rs6000/darwin-gpsave.asm: New file.
3760
3761 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
3762
3763         * config/i386/sse.md (VI4SD_AVX2): Removed.
3764         (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
3765         (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
3766         Add another expander using VI48_128 iterator for
3767         TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
3768         for TARGET_AVX2.
3769         (vlshr<mode>3): Likewise.  Change register_operand predicate to
3770         nonimmediate_operand on last operand in the VI12_128 expander.
3771         (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
3772         (vashrv4si3, vashrv8si3): New expanders.
3773         (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
3774         avx2_<lshift>vv2di): Removed.
3775         (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
3776         (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
3777         iterator.  Simplify pattern.
3778
3779 2010-10-28  Richard Guenther  <rguenther@suse.de>
3780
3781         PR driver/50876
3782         * lto-wrapper.c (get_options_from_collect_gcc_options):
3783         Properly count arguments.
3784         (run_gcc): Use an obstack to collect argv, properly separate
3785         switches and their arguments.
3786
3787 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
3788
3789         * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
3790         vector mode from vectype's mode.
3791
3792 2011-10-28  Chung-Lin Tang  <cltang@codesourcery.com>
3793
3794         PR rtl-optimization/49720
3795         * simplify-rtx.c (simplify_relational_operation_1): Detect
3796         infinite recursion condition in "(eq/ne (plus x cst1) cst2)
3797         simplifies to (eq/ne x (cst2 - cst1))" case.
3798
3799 2011-10-27  David S. Miller  <davem@davemloft.net>
3800
3801         * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
3802         (*snedi_zero): Likewise.
3803         (*snedi_zero_trunc): Likewise.
3804         (snedi_special_vis3): New expander.
3805         (*snedi_zero_vis3): New insn.
3806         (*snedi_zero_trunc_vis3): Likewise.
3807         (*sltu_insn_vis3): Likewise.
3808         (*sltu_insn_vis3_trunc): Likewise.
3809         (addxc): Likewise.
3810         (*addxc_trunc_sp64_vis3): Likewise.
3811         * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
3812         gen_snedi_special_vis3 expander, and try GTU/LTU addx based
3813         sequences on DImode values.
3814
3815         * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
3816         constraint.
3817
3818         * regcprop.c (copyprop_hardreg_forward_1): Reject the
3819         transformation when we narrow the mode on big endian.
3820
3821 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
3822
3823         * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
3824         vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
3825         (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
3826
3827         * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
3828         overrides for -masm=intel memory.
3829         * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
3830         sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
3831         sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
3832         sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
3833         (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
3834         sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
3835         (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
3836
3837 2011-10-27  Martin Jambor  <mjambor@suse.cz>
3838
3839         * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
3840         to parm_ainfo.
3841         (ipa_compute_jump_functions_for_edge): Likewise.
3842         (ipa_compute_jump_functions): Likewise.
3843         (ipa_analyze_indirect_call_uses): Likewise.
3844         (ipa_analyze_call_uses): Likewise.
3845         (ipa_analyze_params_uses): Likewise.
3846         (ipa_analyze_node): Likewise.
3847
3848 2011-10-27  Uros Bizjak  <ubizjak@gmail.com>
3849
3850         PR target/50875
3851         * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
3852         constraints.  Change alternative 1 to "x,m,1".
3853
3854 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
3855
3856         * Makefile.in (build/gencheck.o): Depend on tree.def and
3857         c-family/c-common.def.
3858
3859         * tree-ssa-strlen.c: Include expr.h.
3860         (get_stridx): Don't use c_strlen, instead use string_constant
3861         and compute string length from it.
3862         * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
3863
3864 2011-10-27  Eric Botcazou  <ebotcazou@adacore.com>
3865
3866         PR rtl-optimization/46603
3867         PR bootstrap/50879
3868         * reload.c (push_reload): In the out case, restore previous behavior
3869         for subregs that don't have word mode.
3870
3871 2011-10-27  Ian Lance Taylor  <iant@google.com>
3872
3873         * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
3874         CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
3875         (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
3876         defined.
3877
3878 2011-10-27  Richard Henderson  <rth@redhat.com>
3879
3880         * optabs.c (expand_vec_perm): Use the correct mode for scaling the
3881         selector.  Save the qimode constant selector for later use by the
3882         qimode vec_perm pattern.
3883
3884 2011-10-27  Bernd Schmidt  <bernds@codesourcery.com>
3885
3886         * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
3887         to unit_req_factor to the right enum type.
3888         (get_unit_operand_masks, reshuffle_units, try_rename_operands,
3889         hwloop_optimize): Remove unused variables.
3890
3891 2010-10-27  Richard Guenther  <rguenther@suse.de>
3892
3893         PR middle-end/50731
3894         * tree-vect-generic.c (do_binop): Handle scalar operands.
3895
3896 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
3897
3898         PR target/37191
3899         * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
3900         from different units in a single alternative.
3901
3902 2011-10-26  David S. Miller  <davem@davemloft.net>
3903
3904         * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
3905         if we're comparing DImode and comparison is other than EQ or NE.
3906
3907         * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
3908         LEU/LTU/GEU/GTU is attempted.
3909         * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
3910         and split.
3911         (*neg_seqsi_sign_extend): Likewise.
3912         (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
3913         *neg_sgeu_extend_sp64): New insns.
3914
3915         * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
3916         * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
3917         (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
3918         (*mov<I:mode>_cc_reg_sp64): Likewise.
3919         (*movsf_cc_v9): Likewise.
3920         (*movsf_cc_reg_sp64): Likewise.
3921         (*movdf_cc_v9): Likewise.
3922         (*movdf_cc_reg_sp64): Likewise.
3923         (*movtf_cc_hq_v9): Likewise.
3924         (*movtf_cc_reg_hq_sp64): Likewise.
3925         (*movtf_cc_v9): Likewise.
3926         (*movtf_cc_reg_sp64): Likewise.
3927         * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
3928         (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
3929
3930 2011-10-26  Eric Botcazou  <ebotcazou@adacore.com>
3931
3932         * reload.c (reload_inner_reg_of_subreg): Change type of return value
3933         and type of OUTPUT parameter to bool and adjust.  Document MODE and
3934         OUTPUT parameters.  Use HARD_REGISTER_P.  Reorder final condition
3935         and improve associated comment.
3936         (push_reload): Clarify and update comments about reloading of subregs.
3937         Adjust calls to reload_inner_reg_of_subreg.  Compute the class upfront
3938         for the reloading of subregs in the out case as well.
3939
3940 2011-10-26  Alexandre Oliva  <aoliva@redhat.com>
3941
3942         PR debug/50826
3943         * var-tracking.c (rtx_debug_expr_p): New.
3944         (use_type): Don't use debug exprs to track non-VTA variables.
3945
3946 2011-10-26  Jeff Law  <law@redhat.com>
3947
3948         * doc/invoke.texi (sink-frequency-threshold): Document.
3949         * tree-ssa-sink.c: Include params.h.
3950         (select_best_block): New function.
3951         (statement_sink_location): Use it.
3952         * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
3953
3954 2011-10-26  Iain Sandoe  <iains@gcc.gnu.org>
3955
3956         PR target/48108
3957         * config/darwin.c (top level): Amend comments concerning LTO output.
3958         (lto_section_num): New variable.  (darwin_lto_section_e): New GTY.
3959         (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
3960         (LTO_NAMES_SECTION): Rename.
3961         (darwin_asm_named_section): Record LTO section counts and switches
3962         in a vec of darwin_lto_section_e.
3963         (darwin_file_start): Remove unused code.
3964         (darwin_file_end): Put an LTO section termination label.  Handle
3965         output of the wrapped LTO sections, index and names table.
3966
3967 2011-10-26  Alan Modra  <amodra@gmail.com>
3968
3969         * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
3970         declaration.
3971         (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
3972         (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx.  Use
3973         simple_return in pattern, emit instruction, and set jump_label.
3974         (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx.  Use
3975         simple_return rather than return.
3976         (emit_cfa_restores): New function.
3977         (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
3978         Add missing cfa_restores for SAVE_WORLD.  Add missing LR cfa_restore
3979         when using out-of-line gpr restore.  Add missing LR and FP regs
3980         cfa_restores for out-of-line fpr restore.  Consolidate code setting
3981         up cfa_restores.  Formatting.  Use LR_REGNO define.
3982         (rs6000_output_mi_thunk): Use simple_return rather than return.
3983         * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
3984         (return_internal*): Likewise.
3985         (any_return, return_pred, return_str): New iterators.
3986         (return, conditional return insns): Provide both return and
3987         simple_return variants.
3988         * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
3989         (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
3990         Move r11 and r0 later to suit shrink-wrapping.
3991
3992 2011-10-26  Richard Guenther  <rguenther@suse.de>
3993
3994         * lto-wrapper.c (run_gcc): Properly init/free obstack.
3995
3996 2011-10-26  Jakub Jelinek  <jakub@redhat.com>
3997
3998         * config/i386/i386.md (UNSPEC_VSIBADDR): New.
3999         * config/i386/predicates.md (vsib_address_operand,
4000         vsib_mem_operator): New predicates.
4001         * config/i386/i386.c (ix86_print_operand_address): Handle
4002         UNSPEC_VSIBADDR addresses.
4003         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
4004         avx2_gatherdi<mode>256): Adjust expanders to use MEM with
4005         UNSPEC_VSIBADDR address.
4006         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
4007         Adjust insns to use MEM with UNSPEC_VSIBADDR address.
4008
4009 2011-10-26  Tom de Vries  <tom@codesourcery.com>
4010
4011         PR tree-optimization/50763
4012         * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
4013         phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
4014
4015 2011-10-26  Richard Guenther  <rguenther@suse.de>
4016
4017         PR lto/41844
4018         * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
4019         (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
4020         * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
4021         (run_gcc): Use it.  Filter out language specific options.
4022
4023 2011-10-26  Andreas Tobler  <andreast@fgznet.ch>
4024
4025         * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
4026         32-bit target does.
4027
4028 2011-10-25  Paolo Carlini  <paolo.carlini@oracle.com>
4029
4030         PR driver/46617
4031         * gcc.c (main): Fix fatal_error string for translation.
4032
4033 2011-10-25  Ian Lance Taylor  <iant@google.com>
4034
4035         * tree-eh.c (do_return_redirection): Remove return_value_p
4036         parameter.  Change all callers.
4037         (lower_try_finally_nofallthru): Remove local return_val.
4038         (lower_try_finally_onedest): Likewise.
4039         (lower_try_finally_copy): Likewise.
4040         (lower_try_finally_switch): Likewise.
4041
4042 2011-10-25  H.J. Lu  <hongjiu.lu@intel.com>
4043
4044         * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
4045         remove "&& !TARGET_64BIT"
4046         (*mmx_maskmovq_rex): Removed.
4047
4048 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4049
4050         PR rtl-optimization/46603
4051         * reload.c (push_reload): In the out case, reload the subreg as well
4052         as the reg if it has word mode.
4053
4054 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4055
4056         * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
4057         suppress debug info for the parent type.
4058
4059 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4060
4061         * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
4062
4063 2011-10-25  Richard Henderson  <rth@redhat.com>
4064
4065         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
4066         (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
4067
4068         * config/rs6000/altivec.md (vec_extract_evenv8hi,
4069         vec_extract_evenv16qi, vec_extract_oddv4si,
4070         vec_extract_oddv4sf): Remove.
4071
4072         * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
4073         vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
4074         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
4075         vec_interleave_highv4sf, vec_interleave_lowv4sf,
4076         vec_interleave_highv4si, vec_interleave_lowv4si,
4077         vec_interleave_highv8hi, vec_interleave_lowv8hi,
4078         vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
4079
4080         * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
4081         [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
4082         [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
4083         * optabs.c (expand_binop): Implement vec_interleave_high_optab,
4084         vec_interleave_low_optab, vec_extract_even_optab,
4085         vec_extract_odd_optab with expand_vec_perm.
4086         (can_vec_perm_for_code_p): New.
4087         * optabs.h: Update.
4088         * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
4089         fallback via can_vec_perm_for_code_p.
4090         (vect_strided_load_supported): Likewise.
4091         * tree-vect-generic.c (expand_vector_operations_1): Never lower
4092         VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
4093         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
4094
4095         * target.def (vec_perm_const_ok): Change parameters to mode and
4096         array of indicies.
4097         * doc/tm.texi: Rebuild.
4098         * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
4099         parameters to mode and array of indicies.
4100         * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
4101         * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
4102         Change parameters to mode and array of indicies.
4103         (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
4104         (expand_vec_perm): Rename from expand_vec_perm_expr.  Change
4105         parameters to mode and rtx inputs.  Try lowering to QImode
4106         vec_perm_const before trying fully variable permutation.
4107         * optabs.h: Update decls.
4108         * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
4109         VECTOR_CST to pass to can_vec_perm_p.
4110         * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
4111         from int pointer to unsigned char pointer.
4112         (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
4113         * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
4114
4115         * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
4116         (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
4117         VEC_INTERLEAVE_LOW_EXPR): Likewise.
4118
4119 2011-10-25  Mike Stump  <mikestump@comcast.net>
4120
4121         * reload.c (regno_clobbered_p): Fix typo.
4122
4123 2011-10-25  Dodji Seketeli  <dodji@redhat.com>
4124
4125         * input.c (expand_location): Rewrite using linemap_resolve_location
4126         and linemap_expand_location.  Add a comment.
4127
4128 2011-10-25  Jakub Jelinek  <jakub@redhat.com>
4129
4130         PR tree-optimization/50596
4131         * tree-vect-stmts.c (vect_mark_relevant): Only use
4132         FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
4133         (vectorizable_store): If is_pattern_stmt_p look through
4134         VIEW_CONVERT_EXPR on lhs.
4135         * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
4136         Use unsigned type instead of signed.
4137         (vect_recog_bool_pattern): Optimize also stores into bool memory in
4138         addition to casts from bool to integral types.
4139         (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
4140         created, don't create it again.
4141
4142 2011-10-25  Kai Tietz  <ktietz@redhat.com>
4143
4144         * config/i386/i386.c (ix86_frame_pointer_required): Require
4145         frame-pointer, if setjmp is used for 32-bit ms-abi.
4146
4147 2011-10-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4148
4149         * builtins.c (set_builtin_user_assembler_name): Remove extra
4150         newline added in October 11th, 2011 change.
4151
4152 2011-10-24  David S. Miller  <davem@davemloft.net>
4153
4154         * config/sparc/little-endian.opt: Delete.
4155         * config.gcc: Remove references to config/sparc/little-endian.opt
4156         * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
4157         * config/sparc/linux64.h: Delete references to -mlittle-endian.
4158         * config/sparc/netbsd-elf.h: Likewise.
4159         * config/sparc/openbsd64.h: Likewise.
4160         * config/sparc/sparc.h: Likewise.
4161         * config/sparc/sp64-elf.h: Likewise and delete overrides for
4162         BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
4163         * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
4164         to MASK_LITTLE_ENDIAN.
4165         * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
4166
4167         * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
4168         Only use D, Y, and Z constraints in vector insns.
4169
4170         * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
4171         (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
4172         called *movsi_insn.
4173         (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
4174         into *movdi_insn_sp32.
4175         (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
4176         one pattern called *movdi_insn_sp64.
4177         (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
4178         Consolidate into one pattern called *movsf_insn.
4179         (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
4180         *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
4181         into *movdf_insn_sp32.
4182         (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
4183         *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
4184         *movdf_insn_sp64.
4185         (*zero_extendsidi2_insn_sp64_novis3,
4186         *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
4187         called *zero_extendsidi2_insn_sp64.
4188         (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
4189         Consolidate into one pattern named *sign_extendsidi2_insn.
4190         (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
4191         Consolidate into one pattern named *mov<VM32:mode>_insn.
4192         (*mov<VM64:mode>_insn_sp64_novis3,
4193         *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
4194         named *mov<VM64:mode>_insn_sp64.
4195         (*mov<VM64:mode>_insn_sp32_novis3,
4196         *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
4197         named *mov<VM64:mode>_insn_sp32.
4198
4199 2011-10-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4200
4201         * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
4202         (zero_length_string): Change assertion to accept strinfo without
4203         length but with stmt instead.
4204         Set the endptr pointer also if starting a new chain.
4205         (adjust_related_strinfos): Ignore strinfos marked for delayed
4206         length computation.
4207         (handle_builtin_strcpy): Mark earlier strinfo elements also for
4208         delayed length computation.
4209
4210 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
4211
4212         PR target/50820
4213         Port from 4.6 branch r180379
4214         * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
4215         handling and indirect jump/calls on devices > 128k.
4216
4217 2011-10-24  Anatoly Sokolov  <aesok@post.ru>
4218             Georg-Johann Lay  <avr@gjlay.de>
4219
4220         PR target/49824
4221         * doc/extend.texi (Declaring Attributes of Functions):
4222         Document OS_main and OS_task attributes.
4223         (Specifying Attributes of Variables): Move up
4224         subsection "AVR Variable Attributes" as of alphabetical order.
4225
4226 2011-10-24  Richard Guenther  <rguenther@suse.de>
4227
4228         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
4229         to vector element type.
4230         (vectorizable_assignment): Bail out for non-mode-precision operations.
4231         (vectorizable_shift): Likewise.
4232         (vectorizable_operation): Likewise.
4233         (vectorizable_type_demotion): Likewise.
4234         (vectorizable_type_promotion): Likewise.
4235         (vectorizable_store): Handle non-mode-precision stores.
4236         (vectorizable_load): Handle non-mode-precision loads.
4237         (get_vectype_for_scalar_type_and_size): Return a vector type
4238         for non-mode-precision integers.
4239         * tree-vect-loop.c (vectorizable_reduction): Bail out for
4240         non-mode-precision reductions.
4241
4242 2011-10-24  Julian Brown  <julian@codesourcery.com>
4243
4244         * config/m68k/m68k.c (notice_update_cc): Tighten condition for
4245         setting CC_REVERSED for FP comparisons.
4246
4247 2011-10-24  Richard Guenther  <rguenther@suse.de>
4248
4249         PR tree-optimization/50838
4250         * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
4251         a MEM_REF base if we change it.
4252
4253 2011-10-24  Bernd Schmidt  <bernds@codesourcery.com>
4254
4255         PR bootstrap/50836
4256         * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
4257
4258         PR rtl-optimization/50833
4259         * function.c (thread_prologue_and_epilogue_insns): Expect the
4260         return insn optimization only if optimize.
4261
4262 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
4263
4264         * config/avr/avr.c: Break long lines.
4265         Define target hooks on the fly if applicable.
4266         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
4267         overridden later.
4268         (targetm): Move definition to end of file.
4269         (avr_can_eliminate): Make static on the fly.
4270         (avr_frame_pointer_required_p): Ditto.
4271         (avr_hard_regno_scratch_ok): Ditto.
4272         (avr_builtin_setjmp_frame_value): Make static on the fly.
4273         Indent according to coding rules.
4274         (avr_case_values_threshold): Ditto.
4275         (avr_attribute_table): Move down.
4276
4277 2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
4278
4279         PR tree-optimization/50730
4280         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
4281         analysis if encountered unsupported data-ref.
4282
4283 2011-10-23  David S. Miller  <davem@davemloft.net>
4284
4285         * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
4286         cpu adjustment.
4287         * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
4288         append -mcpu=v9 when -mv8plus is given.
4289
4290         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
4291         between float and non-float regs when VIS3.
4292         * config/sparc/sparc.c (eligible_for_restore_insn): We can't
4293         use a restore when the source is a float register.
4294         (sparc_split_regreg_legitimate): When VIS3 allow moves between
4295         float and integer regs.
4296         (sparc_register_move_cost): Adjust to account for VIS3 moves.
4297         (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
4298         integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
4299         (sparc_secondary_reload): On 32-bit with VIS3 when moving between
4300         float and integer regs we sometimes need a FP_REGS class
4301         intermediate move to satisfy the reload.  When this happens
4302         specify an extra cost of 2.
4303         (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
4304         (*movdi_insn_sp32_v9): Likewise.
4305         (*movdi_insn_sp64): Likewise.
4306         (*movsf_insn): Likewise.
4307         (*movdf_insn_sp32_v9): Likewise.
4308         (*movdf_insn_sp64): Likewise.
4309         (*zero_extendsidi2_insn_sp64): Likewise.
4310         (*sign_extendsidi2_insn): Likewise.
4311         (*movsi_insn_vis3): New insn.
4312         (*movdi_insn_sp32_v9_vis3): New insn.
4313         (*movdi_insn_sp64_vis3): New insn.
4314         (*movsf_insn_vis3): New insn.
4315         (*movdf_insn_sp32_v9_vis3): New insn.
4316         (*movdf_insn_sp64_vis3): New insn.
4317         (*zero_extendsidi2_insn_sp64_vis3): New insn.
4318         (*sign_extendsidi2_insn_vis3): New insn.
4319         (TFmode reg/reg split): Make sure both REG operands are float.
4320         (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
4321         easy constant to integer reg alternatives.
4322         (*mov<VM64:mode>_insn_sp64): Likewise.
4323         (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
4324         (*mov<VM32:mode>_insn_vis3): New insn.
4325         (*mov<VM64:mode>_insn_sp64_vis3): New insn.
4326         (*mov<VM64:mode>_insn_sp32_vis3): New insn.
4327         (VM64 reg<-->reg split): New splitter for 32-bit.
4328
4329         * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
4330         * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
4331         Declare it.
4332         * config/sparc/sparc.md (DImode reg/reg split): Use it.
4333         (DFmode reg/reg split): Likewise.
4334
4335         * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
4336         generating fzero and fone instructions.
4337         (DImode const_int --> reg splitter): Only trigger for integer regs.
4338
4339         * config/sparc/predicates.md (input_operand): Disallow vector
4340         constants other than 0 and -1.
4341         * config/sparc/sparc.c (sparc_preferred_reload_class): Return
4342         NO_REGS for vector constants other than 0 and -1.
4343
4344         * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
4345         SPARC_INT_REG_P): Define.
4346         (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
4347         (REGNO_OK_FOR_INDEX_P): Likewise.
4348         * config/sparc/sparc.c (gen_df_reg): Likewise.
4349         (eligible_for_return_delay): Likewise.
4350         (eligible_for_sibcall_delay): Likewise.
4351         (sparc_legitimate_address_p): Likewise.
4352         (emit_save_or_restore_regs): Likewise.
4353         (registers_ok_for_ldd_peep): Likewise.
4354         * config/spac/sparc.md (DI mode splitters): Likewise.
4355         (SF mode const splitters): Likewise.
4356         (DF mode splitters): Likewise.
4357         (32-bit DI mode logical op splitters): Likewise.
4358
4359 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
4360
4361         PR c++/50841
4362         Revert:
4363         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
4364
4365         PR c++/50810
4366         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
4367
4368 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
4369
4370         * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
4371         (VI248_256): Remove mode iterator.
4372         * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
4373         instead of gen_avx2_lshlv4di3.
4374         (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
4375         CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
4376
4377 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
4378
4379         * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
4380         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
4381         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
4382         pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
4383         *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
4384         iterator.  Use sseintprefix mode attribute.
4385         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
4386         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
4387         pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
4388         *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
4389         iterator.  Use sseintprefix mode attribute.
4390         (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
4391         attributes.
4392         (*avx2_gatherdi<mode>): Ditto.
4393         (*avx2_gatherdi<mode>256): Ditto.
4394         (VI48_AVX2): Remove mode iterator.
4395         (gthrlastfp): Remove mode attribute.
4396
4397 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
4398
4399         PR c++/50810
4400         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
4401
4402 2011-10-23  Tom de Vries  <tom@codesourcery.com>
4403
4404         PR tree-optimization/50763
4405         * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
4406         out of ...
4407         (same_succ_flush_bbs): Use same_succ_flush_bb.
4408         (purge_bbs): Remove argument.  Remove calls to same_succ_flush_bbs,
4409         release_last_vdef and delete_basic_block.
4410         (unlink_virtual_phi): New function.
4411         (update_vuses): Add and use vuse1_phi_args argument.  Set var to
4412         SSA_NAME_VAR of vuse1 or vuse2, and use var.  Handle case that
4413         def_stmt2 is NULL.  Use phi result as phi arg in case vuse1 or vuse2
4414         is NULL_TREE.  Replace uses of vuse1 if vuse2 is NULL_TREE.  Fix code
4415         to limit replacement of uses.  Propagate phi argument for phis with a
4416         single argument.
4417         (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
4418         Set vuse1_phi_args if vuse1 is a phi defined in bb1.  Add
4419         vuse1_phi_args as argument to call to update_vuses.  Call
4420         release_last_vdef, same_succ_flush_bb, delete_basic_block.  Update
4421         CDI_DOMINATORS info.
4422         (tail_merge_optimize): Remove argument in call to purge_bbs.  Remove
4423         call to free_dominance_info.  Only call calculate_dominance_info once.
4424
4425 2011-10-23  Eric Botcazou  <ebotcazou@adacore.com>
4426
4427         * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
4428
4429         PR tree-optimization/44683
4430         * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
4431         we can be sure that there are no signed zeros involved.
4432
4433 2011-10-23  Jan Hubicka  <jh@suse.cz>
4434
4435         * ipa-inline.c (estimate_badness): Scale up and handle overflows.
4436
4437 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
4438
4439         PR target/50788
4440         * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
4441         Remove (match_dup 0).
4442         (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
4443         (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
4444         (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
4445         (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
4446         (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
4447         (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
4448
4449 2011-10-23  Ira Rosen  <ira.rosen@linaro.org>
4450
4451         PR tree-optimization/50819
4452         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
4453         the last argument.
4454         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
4455         vect_analyze_data_ref_dependences.
4456         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
4457         the last argument.  Check load-after-store dependence for unknown
4458         dependencies in basic blocks.
4459         (vect_analyze_data_ref_dependences): Update call to
4460         vect_analyze_data_ref_dependences.
4461         * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
4462         * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
4463         (vect_slp_analyze_bb_1): Update call to
4464         vect_analyze_data_ref_dependences.  Don't call
4465         vect_bb_vectorizable_with_dependencies.
4466
4467 2011-10-22  David S. Miller  <davem@davemloft.net>
4468
4469         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
4470         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
4471         * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
4472         (sparc_secondary_reload): New function.
4473
4474         * config/sparc/sparc.h (sparc_costs): Remove extern decl.
4475         (struct processor_costs): Move from here..
4476         * config/sparc/sparc.c (struct processor_costs): To here.
4477         (sparc_costs): Mark static.
4478
4479         * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
4480         * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
4481         Get rid of declarations.
4482
4483 2011-10-21  Paul Brook  <paul@codesourcery.com>
4484
4485         * config/c6x/c6x.c (c6x_asm_emit_except_personality,
4486         c6x_asm_init_sections): New functions.
4487         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
4488
4489 2011-10-21  Jakub Jelinek  <jakub@redhat.com>
4490
4491         PR target/50813
4492         * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
4493         V4DImode and V8SImode for !TARGET_AVX2.
4494
4495 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
4496
4497         PR bootstrap/50825
4498         * sched-deps.c (add_dependence): If not doing predication, promote
4499         REG_DEP_CONTROL to REG_DEP_ANTI.
4500
4501 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
4502
4503         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
4504         instead of X to avr_legitimize_reload_address.
4505         * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
4506         first argument's type from rtx to rtx*.
4507         * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
4508         Pass PX to push_reload instead of &X.  Change log messages for
4509         better distinction.
4510
4511 2011-10-21  Roland Stigge  <stigge@antcom.de>
4512
4513         PR translation/47064
4514         * params.def: Fix typo "compilatoin" -> "compilation".
4515
4516 2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>
4517             Kirill Yukhin  <kirill.yukhin@intel.com>
4518
4519         PR target/50740
4520         * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
4521         if max_level allows that.
4522
4523 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
4524
4525         * reg-notes.def (DEP_CONTROL): New.
4526         * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
4527         not doing speculation.
4528         * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
4529         record_hard_reg_uses_1, record_hard_reg_uses): New functions.
4530         * function.c (record_hard_reg_sets, record_hard_reg_uses,
4531         record_hard_reg_uses_1): Remove; move to rtlanal.c.
4532         * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
4533         * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
4534         (MUST_RECOMPUTE_SPEC_P): New macro.
4535         (real_insn_for_shadow): New function.
4536         (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
4537         toggle_cancelled_flags): New static functions.
4538         (schedule_insn): Relax an assert to only check for empty hard back
4539         dependencies.  Skip cancelled dependencies.  Call
4540         check_clobbered_conditions.
4541         (copy_insn_list): Remove function, renamed moved to lists.c.
4542         (save_backtrack_point): Use new spelling copy_INSN_LIST.
4543         (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
4544         (restore_last_backtrack_point): Likewise.  Call toggle_cancelled_flags.
4545         (estimate_insn_tick): Ignore cancelled dependencies.
4546         (haifa_speculate_insn): Move declaration.
4547         (try_ready): Move code into recompute_todo_spec and call it.  Tweak
4548         some asserts.  Ensure predicated patterns are restored if necessary.
4549         Dump DEP_CONTROL flag.
4550         (haifa_change_pattern): Merge with sched_change_pattern.
4551         (sched_change_pattern): Remove function.
4552         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove.  All
4553         uses changed to simply not test NON_FLUSH_JUMP_P.
4554         (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
4555         REG_DEP_CONTROL.
4556         (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
4557         (reg_pending_control_uses, control_dependency_cache): New static
4558         variables.
4559         (sched_get_reverse_condition_uncached): New function.
4560         (sd_find_dep_between): Remove pointless assert.  Look in
4561         control_dependency_cache.
4562         (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
4563         extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
4564         and control_dependency_cache.
4565         (sd_unresolve_dep): Use dep_spec_p.
4566         (add_dependence): Now a wrapper around add_dependence_1, handling
4567         REG_DEP_CONTROL specially.
4568         (flush_pending_lists): Clear pending_jump_insns.
4569         (sched_analyze_1): Handle pending_jump_insns like a memory flush.
4570         (sched_analyze_2): Unconditionally add to pending memory flushes,
4571         keep previous behaviour but apply it to pending_jump_insns instead.
4572         (sched_analyze_insn): Defer adding jump reg dependencies using
4573         reg_pending_control_uses; add them to the control_uses list.  Handle
4574         pending_jump_insns and control_uses when adding dependence lists.
4575         (deps_analyze_insn): Update INSN_COND_DEPS.
4576         (deps_analyze_insn): Add jumps to pending_jump_insns rather than
4577         last_pending_memory_flush.
4578         (init_deps): Initialize pending_jump_insns.
4579         (free_deps): Free control_uses.
4580         (remove_from_deps): Remove from pending_jump_insns.
4581         (init_deps_global): Allocate reg_pending_control_uses).
4582         (finish_deps_global): Free it.
4583         (add_dependence_1): Renamed from add_dependence.  Handle
4584         REG_DEP_CONTROL.
4585         * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
4586         (copy_INSN_LIST, concat_INSN_LIST): Declare.
4587         * sched-int.h (struct deps_reg): Add control_uses.
4588         (struct deps_desc): Add pending_jump_insns.
4589         (struct _haifa_deps_insn_data): Add cond_deps.
4590         (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
4591         (INSN_COND_DEPS, PREDICATED_PAT): New macros.
4592         (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
4593         (DEP_CONTROL): New macro.
4594         (DEP_TYPES): Include it.
4595         (HARD_DEP): Adjust definition.
4596         (DEP_CANCELLED): New macro.
4597         (enum SCHED_FLAGS): Add DO_PREDICATION.
4598         (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
4599         * sched-rgn.c (concat_INSN_LIST): Remove function.
4600         (deps_join): Handle pending_jump_insns.
4601         (free_pending_lists): Likewise.
4602         * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
4603         schedule.
4604
4605 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
4606
4607         PR target/50820
4608         * config/avr/libgcc.S (__EIND__): New define to 0x3C.
4609         (__tablejump__): Consistently use EIND for indirect jump/call.
4610         (__tablejump_elpm__): Ditto.
4611
4612 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
4613
4614         * config/c6x/c6x.md (attr "op_pattern"): New.
4615         (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
4616         * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
4617         Likewise.
4618         * config/c6x/c6x-mult.md: Regenerate.
4619         * config/c6x/c6x.c: Include "regrename.h".
4620         (unit_req_table): New typedef.
4621         (unit_reqs): Use it for the declaration.
4622         (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
4623         get_unit_operand_masks, try_rename_operands, reshuffle_units): New
4624         static functions.
4625         (count_unit_reqs): New arg reqs.  All callers changed.  Use
4626         get_unit_reqs, and don't merge here.
4627         (res_mii): New arg reqs.  All callers changed.  Rewrite to use a loop
4628         using unit_req_factor.
4629         (hwloop_optimize): Call reshuffle_units.  Call merge_unit_reqs after
4630         count_unit_reqs.
4631         (c6x_reorg): Add reg notes problem, and call df_analyze.
4632         * Makefile.in ($(out_object_file)): Depend on regrename.h.
4633
4634 2011-10-21  Kai Tietz  <ktietz@redhat.com>
4635
4636         * fold-const.c (simple_operand_p_2): Handle integral
4637         casts from boolean-operands.
4638
4639 2011-10-21  Jan Hubicka  <jh@suse.cz>
4640
4641         * cgraph.c (dump_cgraph_node): Dump alias flag.
4642         * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
4643         no destination.
4644         (get_alias_symbol): New function.
4645         (output_weakrefs): Output also weakrefs with no destinatoin.
4646         (lto_output_node): Output weakref alias flag when at function boundary.
4647
4648 2011-10-21  Andrew Stubbs  <ams@codesourcery.com>
4649
4650         PR target/50809
4651         * config/arm/driver-arm.c (vendors): Make static.
4652
4653 2011-10-21  Uros Bizjak  <ubizjak@gmail.com>
4654
4655         * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
4656         (ix86_emit_swsqrtsf): Force a into register.
4657
4658 2011-10-20  Mike Stump  <mikestump@comcast.net>
4659
4660         * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
4661         after validate_change wipes it out.
4662
4663 2011-10-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4664
4665         * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
4666         before using the shufb instruction.
4667
4668 2011-10-20  Kirill Yukhin  <kirill.yukhin@intel.com>
4669
4670         PR target/50766
4671         * config/i386/i386.md (bmi_bextr_<mode>): Update register/
4672         memory operand order.
4673         (bmi2_bzhi_<mode>3): Ditto.
4674         (bmi2_pdep_<mode>3): Ditto.
4675         (bmi2_pext_<mode>3): Ditto.
4676
4677 2011-10-20  Richard Henderson  <rth@redhat.com>
4678
4679         * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
4680         * optabs.c (can_vec_perm_expr_p): Update to match.
4681         (expand_vec_perm_expr): Likewise.
4682         * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
4683         from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
4684         * doc/tm.texi.in: Likewise.
4685
4686 2011-10-20  Sergey Ostanevich  <sergos.gnu@gmail.com>
4687
4688         PR target/50572
4689         * config/i386/i386.c (processor_target_table): Change Atom
4690         align_loops_max_skip to 15.
4691
4692 2011-10-20  Richard Henderson  <rth@redhat.com>
4693
4694         * target.def (builtin_vec_perm): Remove.
4695         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4696
4697         * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
4698         (IX86_BUILTIN_VEC_PERM_*): Remove.
4699         (bdesc_args): Remove vec_perm builtins
4700         (ix86_expand_builtin): Likewise.
4701         (ix86_expand_vec_perm_const_1): Rename from
4702         ix86_expand_vec_perm_builtin_1.
4703         (extract_vec_perm_cst): Merge into...
4704         (ix86_vectorize_vec_perm_const_ok): ... here.  Rename from
4705         ix86_vectorize_builtin_vec_perm_ok.
4706         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4707
4708         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
4709         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4710
4711         * config/spu/spu.c (spu_builtin_vec_perm): Remove.
4712         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4713
4714 2011-10-20  Uros Bizjak  <ubizjak@gmail.com>
4715
4716         PR target/47989
4717         * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
4718         * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
4719         * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
4720         implements vectorized single float division and vectorized sqrtf(x)
4721         with reciprocal sequence with additional Newton-Raphson step with
4722         -ffast-math.
4723
4724 2011-10-20  Dodji Seketeli  <dodji@redhat.com>
4725
4726         * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
4727         ggc_alloced_size_order_for_request into ggc_round_alloc_size like
4728         it was done in ggc-page.c.
4729
4730         PR other/50659
4731         * doc/cppopts.texi: Use @smallexample/@end smallexample in
4732         documentation for -fdebug-cpp instead of @quotation/@end quotation
4733         that is not supported by contrib/texi2pod.pl.
4734
4735 2011-10-19  Jan Hubicka  <jh@suse.cz>
4736
4737         * ipa-inline.c (inline_small_functions): Always update all calles after
4738         inlining.
4739
4740 2011-10-19  Jan Hubicka  <jh@suse.cz>
4741
4742         PR bootstrap/50709
4743         * ipa-inline.c (inline_small_functions): Fix checking code to not make
4744         effect on fibheap stability.
4745
4746 2011-10-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
4747
4748         * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
4749
4750 2011-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4751
4752         PR target/50106
4753         * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
4754         reg size from 1-3.
4755
4756 2011-10-20  Richard Guenther  <rguenther@suse.de>
4757
4758         * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
4759         and rotates to the set of expensive operations.
4760
4761 2011-10-19  David S. Miller  <davem@davemloft.net>
4762
4763         * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
4764         (sparc_emit_set_const32): Likewise.
4765         (sparc_emit_set_const64_longway): Likewise.
4766         (sparc_emit_set_const64): Likewise.
4767         (sparc_legitimize_pic_address): Likewise.
4768         (memory_ok_for_ldd): Likewise.
4769
4770 2011-10-20  Dehao Chen  <dehao@google.com>
4771
4772         * profile.c (compute_branch_probabilities): Compute and dump the
4773         overlap between the static estimation and the instrumentation profile.
4774         (OVERLAP_BASE): New macro.
4775         (compute_frequency_overlap): New function
4776
4777 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
4778
4779         * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
4780         d->op1 instead of d->op0 for the second vpshufb.
4781         (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
4782         (ix86_expand_vec_perm_const): If mask indicates two operands are
4783         needed, but both are the same and expanding them as d.op0 == d.op1
4784         failed, retry with d.op0 != d.op1.
4785         (ix86_expand_vec_perm_builtin): Likewise.  Handle sorry printing
4786         also for d.nelt == 32.
4787
4788         PR middle-end/50754
4789         * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
4790         VEC_PERM_EXPR.
4791
4792 2011-10-19  Bernd Schmidt  <bernds@codesourcery.com>
4793
4794         * regrename.h: New file.
4795         * regrename.c: Include it.  Also include "emit-rtl.h".
4796         (struct du_head, struct du_chain, du_head_p DEF_VEC and
4797         DEF_VEC_ALLOC_P): Move to regrename.h.
4798         (do_replace): Remove declaration.
4799         (insn_rr): New variable.
4800         (cur_operand): New static variable.
4801         (regrename_chain_from_id): Renamed from chain_from_id and no longer
4802         static.  All callers changed.
4803         (record_operand_use): New static function.
4804         (scan_rtx_reg): Use it.
4805         (find_best_rename_reg): New function, broken out of rename_chains.
4806         (rename_chains): Use it.  Don't update chain regno and nregs here, ...
4807         (regrename_do_replace): ... do it here instead.  Renamed from
4808         do_replace, and no longer static.  All callers changed.
4809         (regrename_analyze): No longer static.  New arg bb_mask.
4810         All callers changed.  If bb_mask is nonzero, use it to limit the
4811         number of basic blocks we analyze.  If we failed to analyze a block,
4812         clear insn operand data.
4813         (record_out_operands): New arg insn_info.  Update cur_operand if it is
4814         nonnull.
4815         (build_def_use): If insn_rr is nonnull, pass an insn_info to
4816         record_out_operands, and update cur_operand here as well.
4817         (regrename_init, regrename_finish): New functions.
4818         (regrename_optimize): Use them.
4819         * Makefile.in (regrename.o): Adjust dependencies.
4820
4821 2011-10-19  Tom de Vries  <tom@codesourcery.com>
4822
4823         PR tree-optimization/50769
4824         * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
4825         unconditionally.  Handle case that phi_vuse2 is not an SSA_NAME.  Add
4826         dummy argument .MEM to phi when increasing number of arguments of phi by
4827         redirecting edges to the block with phi.
4828
4829 2011-10-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4830
4831         PR bootstrap/50777
4832         * configure.ac: Save and restore CXXFLAGS around
4833         gcc_AC_CHECK_DECLS uses.
4834         Check for madvise() declaration with g++ if --enable-build-with-cxx.
4835         * configure: Regenerate.
4836         * config.in: Regenerate.
4837         * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
4838
4839 2011-10-19  Alexandre Oliva  <aoliva@redhat.com>
4840
4841         PR debug/49310
4842         * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
4843         (variable_part): Replace offset with union.
4844         (enum onepart_enum, onepart_enum_t): New.
4845         (variable_def): Drop cur_loc_changed, add onepart.
4846         (value_chain_def, const_value_chain): Remove.
4847         (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
4848         (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
4849         (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
4850         (value_chain_pool, value_chains): Remove.
4851         (dropped_values): New.
4852         (struct parm_reg): Only if HAVE_window_save.
4853         (vt_stack_adjustments): Don't record register arguments.
4854         (dv_as_rtx): New.
4855         (dv_onepart_p): Return a onepart_enum_t.
4856         (onepart_pool): New.
4857         (dv_pool): Remove.
4858         (dv_from_rtx): New.
4859         (variable_htab_free): Release onepart aux data.  Reset flags.
4860         (value_chain_htab_hash, value_chain_htab_eq): Remove.
4861         (unshare_variable): Use onepart field.  Propagate onepart aux
4862         data or offset.  Drop cur_loc_changed.
4863         (val_store): Cope with NULL insn.  Rephrase dump output.  Check
4864         for unsuitable locs.  Add FIXME on using cselib locs.
4865         (val_reset): Remove FIXME of unfounded concerns.
4866         (val_resolve): Check for unsuitable locs.  Add FIXME on using
4867         cselib locs.
4868         (variable_union): Use onepart field, adjust access to offset.
4869         (NO_LOC_P): New.
4870         (VALUE_CHANGED, DECL_CHANGED): Update doc.
4871         (set_dv_changed): Clear NO_LOC_P when changed.
4872         (find_loc_in_1pdv): Use onepart field.
4873         (intersect_loc_chains): Likewise.
4874         (unsuitable_loc): New.
4875         (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
4876         (add_value_chain, add_value_chains): Remove.
4877         (add_cselib_value_chains, remove_value_chain): Likewise.
4878         (remove_value_chains, remove_cselib_value_chains): Likewise.
4879         (canonicalize_loc_order_check): Use onepart.  Drop cur_loc_changed.
4880         (canonicalize_values_star, canonicalize_vars_star): Use onepart.
4881         (variable_merge_over_cur): Likewise.  Adjust access to offset.
4882         Drop cur_loc_changed.
4883         (variable_merge_over_src): Use onepart field.
4884         (remove_duplicate_values): Likewise.
4885         (variable_post_merge_new_vals): Likewise.
4886         (find_mem_expr_in_1pdv): Likewise.
4887         (dataflow_set_preserve_mem_locs): Likewise.  Drop cur_loc_changed
4888         and value chains.
4889         (dataflow_set_remove_mem_locs): Likewise.  Use VAR_LOC_FROM.
4890         (variable_different_p): Use onepart field.  Move onepart test out
4891         of the loop.
4892         (argument_reg_set): Drop.
4893         (add_uses, add_stores): Preserve but do not record in dynamic
4894         tables equivalences for ENTRY_VALUEs and CFA_based addresses.
4895         Avoid unsuitable address expressions.
4896         (EXPR_DEPTH): Unlimit.
4897         (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
4898         (prepare_call_arguments): Use DECL_RTL_IF_SET.
4899         (dump_var): Adjust access to offset.
4900         (variable_from_dropped, recover_dropped_1paux): New.
4901         (variable_was_changed): Drop cur_loc_changed.  Use onepart.
4902         Preserve onepart aux in empty_var.  Recover empty_var and onepart
4903         aux from dropped_values.
4904         (find_variable_location_part): Special-case onepart.  Adjust
4905         access to offset.
4906         (set_slot_part): Use onepart.  Drop cur_loc_changed.  Adjust
4907         access to offset.  Initialize onepaux.  Drop value chains.
4908         (delete_slot_part): Drop value chains.  Use VAR_LOC_FROM.
4909         (VEC (variable, heap), VEC (rtx, stack)): Define.
4910         (expand_loc_callback_data): Drop dummy, cur_loc_changed,
4911         ignore_cur_loc.  Add expanding, pending, depth.
4912         (loc_exp_dep_alloc, loc_exp_dep_clear): New.
4913         (loc_exp_dep_insert, loc_exp_dep_set): New.
4914         (notify_dependents_of_resolved_value): New.
4915         (update_depth, vt_expand_var_loc_chain): New.
4916         (vt_expand_loc_callback): Revamped.
4917         (resolve_expansions_pending_recursion): New.
4918         (INIT_ELCD, FINI_ELCD): New.
4919         (vt_expand_loc): Use the new macros above.  Drop ignore_cur_loc
4920         parameter, adjust all callers.
4921         (vt_expand_loc_dummy): Drop.
4922         (vt_expand_1pvar): New.
4923         (emit_note_insn_var_location): Operate on non-debug decls only.
4924         Revamp multi-part cur_loc recomputation and one-part expansion.
4925         Drop cur_loc_changed.  Adjust access to offset.
4926         (VEC (variable, heap)): Drop.
4927         (changed_variables_stack, changed_values_stack): Drop.
4928         (check_changed_vars_0, check_changed_vars_1): Remove.
4929         (check_changed_vars_2, check_changed_vars_3): Remove.
4930         (values_to_stack, remove_value_from_changed_variables): New.
4931         (notify_dependents_of_changed_value, process_changed_values): New.
4932         (emit_notes_for_changes): Revamp onepart updates.
4933         (emit_notes_for_differences_1): Use onepart.  Drop cur_loc_changed
4934         and value chains.  Propagate onepaux.  Recover empty_var and onepaux
4935         from dropped_values.
4936         (emit_notes_for_differences_2): Drop value chains.
4937         (emit_notes_in_bb): Adjust.
4938         (vt_emit_notes): Drop value chains, changed_variables_stack.
4939         Initialize and release dropped_values.
4940         (create_entry_value): Revamp.
4941         (vt_add_function_parameter): Use new interface.
4942         (note_register_arguments): Remove.
4943         (vt_initialize): Drop value chains and register arguments.
4944         (vt_finalize): Drop value chains.  Release windowed_parm_regs only
4945         if HAVE_window_save.
4946         * rtl.h: Document various pass-local uses of RTL flags.
4947         * tree.h (DECL_RTL_KNOWN_SET): New.
4948         * doc/invoke.texi (param max-vartrack-expr-depth): Update
4949         description and default.
4950
4951 2011-10-19  Georg-Johann Lay  <avr@gjlay.de>
4952
4953         PR target/50447
4954         * config/avr/avr.md (cc): New alternative out_plus_noclobber.
4955         (adjust_len): Ditto.
4956         (addhi3): Don't pipe through short; use gen_int_mode instead.
4957         Prior to reload, expand to gen_addhi3_clobber.
4958         (*addhi3): Use avr_out_plus_noclobber if applicable, use
4959         out_plus_noclobber in cc and adjust_len attribute.
4960         (addhi3_clobber): 2 new RTL peepholes.
4961         (addhi3_clobber): New insn.
4962         * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
4963         * config/avr/avr.c (avr_out_plus_noclobber): New function.
4964         (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
4965         (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
4966         Set cc0 to set_zn for adiw on 16-bit values.
4967         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
4968         (expand_epilogue): No need to add 0 to frame_pointer_rtx.
4969
4970 2011-10-19  Richard Guenther  <rguenther@suse.de>
4971
4972         PR middle-end/50780
4973         * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
4974         the condition is properly gimple before using it.
4975         * tree-eh (stmt_could_throw_1_p): Properly extract the
4976         operation type from comparisons.
4977
4978 2011-10-19  Roland Stigge  <stigge@antcom.de>
4979
4980         PR translation/48638
4981         * plugin.c (add_new_plugin): Fix typo in fatal_error message.
4982
4983 2011-10-19  Roland Stigge  <stigge@antcom.de>
4984
4985         PR translation/49517
4986         * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
4987
4988 2011-10-19  Richard Guenther  <rguenther@suse.de>
4989
4990         PR middle-end/50768
4991         * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
4992
4993 2011-10-19  Andrey Belevantsev  <abel@ispras.ru>
4994
4995         PR rtl-optimization/50340
4996         * sel-sched-ir.c (update_target_availability): LHS register
4997         availability is not known if the unavailable LHS of the other
4998         expression is a different register.
4999
5000 2011-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5001
5002         PR target/50310
5003         * config/spu/spu.c (spu_emit_vector_compare): Support unordered
5004         floating-point comparisons.
5005
5006 2011-10-19  Jan Hubicka  <jh@suse.cz>
5007
5008         * cgraphunit.c (handle_alias_pairs): Also handle wekref with
5009         destination declared.
5010         (output_weakrefs): New function.
5011         * varpool.c (varpool_create_variable_alias): Handle external aliases.
5012
5013 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
5014
5015         * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
5016         second argument instead of mode.
5017
5018 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
5019
5020         * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
5021         mode SUBREG of operands[0] as target.
5022         (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
5023         (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
5024         (expand_vec_perm_1): Handle identity and some broadcast
5025         permutations.
5026         (expand_vec_perm_interleave2): Handle also 32-byte modes, using
5027         vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
5028         For d->testing_p return true earlier to avoid creating more GC
5029         garbage.
5030         (expand_vec_perm_vpermq_perm_1): New function.
5031         (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
5032         earlier to avoid creating more GC garbage.  Fix handling of
5033         V16HImode.  Avoid some SUBREGs in SET_DEST.
5034         (expand_vec_perm_broadcast_1): Return false for 32-byte integer
5035         vector modes.
5036         (expand_vec_perm_vpshufb4_vpermq2): New function.
5037         (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
5038         and expand_vec_perm_vpshufb4_vpermq2.
5039
5040 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
5041
5042         * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
5043         before exiting.
5044
5045 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
5046
5047         PR tree-optimization/50717
5048         * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
5049         parameter.  Calculate 'type' from stmt.
5050         (convert_mult_to_widen): Update call the is_widening_mult_p.
5051         (convert_plusminus_to_widen): Likewise.
5052
5053 2011-10-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5054
5055         * config/spu/spu.c (struct machine_function): New data structure.
5056         (spu_init_machine_status): New function.
5057         (spu_option_override): Install it.
5058         (get_pic_reg): Set and use cfun->machine->pic_reg.
5059         (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
5060         (need_to_save_reg): Use cfun->machine->pic_reg instead of
5061         checking crtl->uses_pic_offset_table.
5062         (spu_expand_prologue): Likewise.
5063
5064 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
5065
5066         PR tree-optimization/50735
5067         * function.c (gimplify_parameters): Use create_tmp_var instead of
5068         create_tmp_reg.  If parm is not TREE_ADDRESSABLE and type is complex
5069         or vector type, set DECL_GIMPLE_REG_P.
5070
5071 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
5072
5073         * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
5074         * config/arm/arm.opt: Add 'native' processor_type and
5075         arm_arch enum values.
5076         * config/arm/arm.h (host_detect_local_cpu): New prototype.
5077         (EXTRA_SPEC_FUNCTIONS): New define.
5078         (MCPU_MTUNE_NATIVE_SPECS): New define.
5079         (DRIVER_SELF_SPECS): New define.
5080         * config/arm/driver-arm.c: New file.
5081         * config/arm/x-arm: New file.
5082         * doc/invoke.texi (ARM Options): Document -mcpu=native,
5083         -mtune=native and -march=native.
5084
5085 2011-10-18  Alexander Monakov  <amonakov@ispras.ru>
5086
5087         PR rtl-optimization/50205
5088         * sel-sched.c (count_occurrences_1): Simplify on the assumption that
5089         p->x is a register.  Forbid substitution when the same register is
5090         found in a different mode.
5091         (count_occurrences_equiv): Assert that 'what' is a register.
5092
5093 2011-10-18  Richard Guenther  <rguenther@suse.de>
5094
5095         PR tree-optimization/50767
5096         * tree-ssa-pre.c (create_expression_by_pieces): Update the
5097         folded statement.
5098
5099 2011-10-18  Julian Brown  <julian@codesourcery.com>
5100
5101         * config/arm/arm.c (arm_block_move_unaligned_straight)
5102         (arm_adjust_block_mem, arm_block_move_unaligned_loop)
5103         (arm_movmemqi_unaligned): New.
5104         (arm_gen_movmemqi): Support unaligned block copies.
5105
5106 2011-10-18  Ira Rosen  <ira.rosen@linaro.org>
5107
5108         * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
5109         vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
5110         * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
5111         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
5112         (op_code_prio): Likewise.
5113         (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
5114         * optabs.c (optab_for_tree_code): Handle
5115         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
5116         (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
5117         * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
5118         * genopinit.c (optabs): Initialize the new optabs.
5119         * expr.c (expand_expr_real_2): Handle
5120         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
5121         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
5122         * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
5123         * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
5124         VEC_WIDEN_LSHIFT_LO_EXPR): New.
5125         * cfgexpand.c (expand_debug_expr): Handle new tree codes.
5126         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5127         vect_recog_widen_shift_pattern.
5128         (vect_handle_widen_mult_by_const): Rename...
5129         (vect_handle_widen_op_by_const): ...to this.  Handle shifts.
5130         Add a new argument, update documentation.
5131         (vect_recog_widen_mult_pattern): Assume that only second
5132         operand can be constant.  Update call to
5133         vect_handle_widen_op_by_const.
5134         (vect_recog_over_widening_pattern): Fix typo.
5135         (vect_recog_widen_shift_pattern): New.
5136         * tree-vect-stmts.c (vectorizable_type_promotion): Handle
5137         widening shifts.
5138         (supportable_widening_operation): Likewise.
5139         * tree-inline.c (estimate_operator_cost): Handle new tree codes.
5140         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
5141         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
5142         * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
5143         (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
5144         vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
5145         Likewise.
5146         * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
5147         New.
5148         * config/arm/iterators.md (V_innermode): New.
5149         * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
5150         for widening shift.
5151
5152 2011-10-18  Richard Guenther  <rguenther@suse.de>
5153
5154         * tree-ssa-alias.h (struct pt_solution): Remove
5155         vars_contains_restrict member.
5156         (pt_solutions_same_restrict_base): Remove.
5157         (pt_solution_set): Adjust.
5158         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
5159         vars_contains_restrict handling.
5160         (dump_points_to_solution): Likewise.
5161         (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
5162         * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
5163         field.
5164         (new_var_info): Do not initialize it.
5165         (ipa_escaped_pt): Adjust.
5166         (make_constraint_from_restrict): Make the tag global.
5167         (make_constraint_from_global_restrict): New function.
5168         (make_constraint_from_heapvar): Remove.
5169         (create_variable_info_for): Do not make restrict vars point
5170         to NONLOCAL.
5171         (intra_create_variable_infos): Likewise.
5172         (find_what_var_points_to): Remove vars_contains_restrict handling.
5173         (pt_solution_set): Adjust.
5174         (pt_solution_ior_into): Likewise.
5175         (pt_solutions_same_restrict_base): Remove.
5176         (compute_points_to_sets): Do not test is_restrict_var.
5177         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
5178         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
5179
5180 2011-10-18  Tom de Vries  <tom@codesourcery.com>
5181
5182         PR tree-optimization/50672
5183         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
5184         factored out of ...
5185         (mark_virtual_phi_result_for_renaming): Use
5186         mark_virtual_operand_for_renaming.
5187         * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
5188         * tree-ssa-tail-merge.c (release_last_vdef): New function.
5189         (purge_bbs): Add update_vops parameter.  Call release_last_vdef for each
5190         deleted basic block.
5191         (tail_merge_optimize): Add argument to call to purge_bbs.
5192
5193 2011-10-18  Richard Guenther  <rguenther@suse.de>
5194
5195         PR middle-end/50716
5196         * expr.c (get_object_or_type_alignment): New function.
5197         (expand_assignment): Use it.
5198         (expand_expr_real_1): Likewise.
5199
5200 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
5201
5202         PR bootstrap/50760
5203         * input.c (dump_line_table_statistics): Use long, not size_t.
5204
5205 2011-10-17  Eric Botcazou  <ebotcazou@adacore.com>
5206
5207         * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
5208
5209 2011-10-17  Simon Baldwin  <simonb@google.com>
5210             Ian Lance Taylor  <iant@google.com>
5211
5212         * configure.ac: Add --with-native-system-header-dir.  Set and
5213         substitute NATIVE_SYSTEM_HEADER_DIR.  Use native_system_header
5214         when setting target_header_dir.
5215         * config.gcc: Always set native_system_header_dir.
5216         (*-*-gnu*): Set native_system_header_dir.  Don't use t-gnu.
5217         (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir.  Don't
5218         use i386/t-djgpp.
5219         (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
5220         native_system_header_dir.
5221         (spu-*-elf*): Set native_system_header_dir.
5222         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
5223         @NATIVE_SYSTEM_HEADER_DIR@.
5224         (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
5225         * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
5226         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
5227         STANDARD_INCLUDE_COMPONENT.
5228         (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR.  Rename
5229         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
5230         * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
5231         STANDARD_INCLUDE_COMPONENT.
5232         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
5233         * config/i386/t-mingw-w32: Likewise.
5234         * config/i386/t-mingw-w64: Likewise.
5235         * config/spu/t-spu-elf: Likewise.
5236         * config/i386/t-djgpp: Remove.
5237         * config/t-gnu: Remove.
5238         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
5239         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
5240         STANDARD_INCLUDE_COMPONENT.
5241         * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
5242         * config/spu/spu-elf.h: Likewise.
5243         * config/vms/xm-vms.h: Likewise.
5244         * config/gnu.h: Likewise.
5245         * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
5246         and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
5247         NATIVE_SYSTME_HEADER_COMPONENT.
5248         * doc/install.texi (Configuration): Document
5249         --with-native-system-header-dir.  Mention it in the documentation
5250         for --with-sysroot and --with-build-sysroot.
5251         * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
5252         STANDARD_INCLUDE_DIR.  Rename STANDARD_INCLUDE_COMPONENT to
5253         NATIVE_SYSTEM_HEADER_COMPONENT.  Rename uses of
5254         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
5255         * doc/fragments.texi (Target Fragment): Don't document
5256         NATIVE_SYSTEM_HEADER_DIR.
5257         * configure, doc/tm.texi: Rebuild.
5258
5259 2011-10-17  Richard Henderson  <rth@redhat.com>
5260
5261         * config/sparc/sparc.md: Use register_or_zero_operand where rJ
5262         is the constraint.
5263
5264         * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
5265         patterns.
5266         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
5267         * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
5268
5269 2011-10-17  David S. Miller  <davem@davemloft.net>
5270
5271         * config/sparc/sparc-modes.def: Add single entry vector modes for
5272         DImode and SImode.
5273         * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
5274         mode iterators.
5275         (mov<V32:mode>): Revert back to plain SFmode pattern.
5276         (*movsf_insn): Likewise.
5277         (mov<V64:mode>): Revert back to plain DFmode pattern.
5278         (*movdf_insn_sp32): Likewise.
5279         (*movdf_insn_sp32_v9): Likewise.
5280         (*movdf_insn_sp64): Likewise.
5281         (V64 mode splitters) Likewise.
5282         (addsi3): Remove VIS alternatives.
5283         (subsi3): Likewise.
5284         (and<V64I:mode>3): Revert to DImode only pattern.
5285         (and<V64I:mode>3_sp32): Likewise.
5286         (*and<V64I:mode>3_sp64): Likewise.
5287         (and<V32I:mode>3): Likewise.
5288         (*and_not_<V64I:mode>_sp32): Likewise.
5289         (*and_not_<V64I:mode>_sp64): Likewise.
5290         (*and_not_<V32I:mode>): Likewise.
5291         (ior<V64I:mode>3): Likewise.
5292         (*ior<V64I:mode>3_sp32): Likewise.
5293         (*ior<V64I:mode>3_sp64): Likewise.
5294         (ior<V32I:mode>3): Likewise.
5295         (*or_not_<V64I:mode>_sp32): Likewise.
5296         (*or_not_<V64I:mode>_sp64): Likewise.
5297         (*or_not_<V32I:mode>): Likewise.
5298         (xor<V64I:mode>3): Likewise.
5299         (*xor<V64I:mode>3_sp32): Likewise.
5300         (*xor<V64I:mode>3_sp64): Likewise.
5301         (xor<V32I:mode>3): Likewise.
5302         (V64I mode splitters): Likewise.
5303         (*xor_not_<V64I:mode>_sp32): Likewise.
5304         (*xor_not_<V64I:mode>_sp64): Likewise.
5305         (*xor_not_<V32I:mode>): Likewise.
5306         (one_cmpl<V64I:mode>2): Likewise.
5307         (*one_cmpl<V64I:mode>2_sp32): Likewise.
5308         (*one_cmpl<V64I:mode>2_sp64): Likewise.
5309         (one_cmpl<V32I:mode>2): Likewise.
5310         (VM32, VM64, VMALL): New mode iterators.
5311         (vbits, vconstr, vfptype): New mode attributes.
5312         (mov<VMALL:mode>): New expander.
5313         (*mov<VM32:mode>_insn): New insn.
5314         (*mov<VM64:mode>_insn_sp64): New insn.
5315         (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
5316         specifically for the register to memory case.
5317         (vec_init<mode>): New expander.
5318         (VADDSUB): New mode iterator.
5319         (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
5320         with...
5321         (<plusminus_insn><mode>3): New consolidated pattern.
5322         (VL): New mode iterator for logical operations.
5323         (vlsuf): New more attribute.
5324         (vlop): New code iterator.
5325         (vlinsn, vlninsn): New code attributes.
5326         (<code><mode>3): New insn to non-negated vector logical ops.
5327         (*not_<code><mode>3): Likewise for negated variants.
5328         (*nand<mode>_vis): New insn.
5329         (vlnotop): New code iterator.
5330         (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
5331         (one_cmpl<mode>2): New insn.
5332         (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
5333         (bshuffle<VM64:mode>_vis): Likewise.
5334         (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
5335         (fp<plusminus_insn>64_vis): Use V1DI mode.
5336         (VASS mode iterator): Use V1SI not SI mode.
5337         * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
5338         single-entry vector mode changes.
5339         (sparc_expand_builtin): Likewise.
5340         (sparc_expand_vector_init): New function.
5341         * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
5342
5343 2011-10-17  Kai Tietz  <ktietz@redhat.com>
5344
5345         * fold-const.c (simple_operand_p_2): New function.
5346         (fold_truthop): Rename to
5347         (fold_truth_andor_1): function name.
5348         Additionally remove branching creation for logical and/or.
5349         (fold_truth_andor): Handle branching creation for logical and/or here.
5350
5351 2011-10-17  Andi Kleen  <ak@linux.intel.com>
5352
5353         * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
5354
5355 2011-10-17  Georg-Johann Lay  <avr@gjlay.de>
5356
5357         * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
5358         * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
5359         (adjust_len): Add alternative "call".
5360         (isa, enabled): New insn attributes.
5361         (length): Use match_test with AVR_HAVE_JMP_CALL instead of
5362         mcu_mega attribute.
5363         (*sbrx_branch<mode>): Ditto.
5364         (*sbrx_and_branch<mode>): Ditto.
5365         (*sbix_branch): Ditto.
5366         (*sbix_branch_bit7): Ditto.
5367         (*sbix_branch_tmp): Ditto.
5368         (*sbix_branch_tmp_bit7): Ditto.
5369         (jump): Ditto.
5370         (negsi2): Use attribute "isa" instead of assembler dialect.
5371         (extendhisi2): Ditto.
5372         (call_insn, call_value_insn): Set adjust_len attribute.
5373         (indirect_jump): Indent to coding rules.
5374         (call_prologue_saves): Use isa attribute instead of mcu_mega.
5375         (epilogue_restores): Ditto.  Fix setting of SP as described in the
5376         RTX pattern.
5377         (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
5378         and *indirect_jump_avr6.
5379         (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
5380         (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
5381         (*tablejump_rjmp, *tablejump_lib): Remove.
5382         * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
5383
5384 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
5385
5386         PR c++/50757
5387         * doc/invoke.texi ([Wnonnull]): Update.
5388
5389 2011-10-17  Richard Henderson  <rth@redhat.com>
5390
5391         PR 50746
5392         * optabs.c (expand_vec_perm_expr): Fix indexing error.
5393
5394 2011-10-17  Sergio Durigan Junior  <sergiodj@redhat.com>
5395
5396         * configure.ac: Display `yes' if the SystemTap header has been found.
5397         * configure: Regenerate.
5398
5399 2011-10-08  Andi Kleen  <ak@linux.intel.com>
5400
5401         PR other/50636
5402         * config.in, configure: Regenerate.
5403         * configure.ac (madvise): Add to AC_CHECK_FUNCS.
5404         * ggc-page.c (USING_MADVISE): Add.
5405         (page_entry): Add discarded field.
5406         (alloc_page): Check for discarded pages.
5407         (release_pages): Add USING_MADVISE branch.
5408
5409 2011-10-17  Richard Guenther  <rguenther@suse.de>
5410
5411         PR tree-optimization/50729
5412         * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
5413         (simplify_conversion_using_ranges): Properly test the
5414         intermediate result.
5415
5416 2011-10-15  Tom Tromey  <tromey@redhat.com>
5417             Dodji Seketeli  <dodji@redhat.com>
5418
5419         * ggc.h (ggc_round_alloc_size): Declare new public entry point.
5420         * ggc-none.c (ggc_round_alloc_size): New public stub function.
5421         * ggc-page.c (ggc_alloced_size_order_for_request): New static
5422         function.  Factorized from ggc_internal_alloc_stat.
5423         (ggc_round_alloc_size): New public function.  Uses
5424         ggc_alloced_size_order_for_request.
5425         (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
5426         * ggc-zone.c (ggc_round_alloc_size): New public function extracted
5427         from ggc_internal_alloc_zone_stat.
5428         (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
5429         * toplev.c (general_init): Initialize
5430         line_table->alloced_size_for_request.
5431
5432 2011-10-15  Tom Tromey  <tromey@redhat.com>
5433             Dodji Seketeli  <dodji@redhat.com>
5434
5435         * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
5436         (num_expanded_macros_counter, num_macro_tokens_counter): Declare
5437         new counters.
5438         (dump_line_table_statistics): Define new function.
5439         * input.h (dump_line_table_statistics): Declare new function.
5440         * toplev.c (dump_memory_report): Call dump_line_table_statistics.
5441
5442 2011-10-15  Tom Tromey  <tromey@redhat.com>
5443             Dodji Seketeli  <dodji@redhat.com>
5444
5445         * doc/cppopts.texi: Document -fdebug-cpp.
5446         * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
5447
5448 2011-10-15  Tom Tromey  <tromey@redhat.com>
5449             Dodji Seketeli  <dodji@redhat.com>
5450
5451         * gcc/diagnostic.h (diagnostic_report_current_module): Add a
5452         location parameter.
5453         * diagnostic.c (diagnostic_report_current_module): Add a location
5454         parameter to the function definition.  Use it instead of
5455         input_location.  Resolve the virtual location rather than just
5456         looking up its map and risking to touch a resulting macro map.
5457         (default_diagnostic_starter): Pass the relevant diagnostic
5458         location to diagnostic_report_current_module.
5459         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
5460         (virt_loc_aware_diagnostic_finalizer): Likewise.
5461         (diagnostic_report_current_function): Pass the
5462         relevant location to diagnostic_report_current_module.
5463         * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
5464         new function.
5465         * toplev.c (general_init): By default, use the new
5466         virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
5467         * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
5468
5469 2011-10-15  Tom Tromey  <tromey@redhat.com>
5470             Dodji Seketeli  <dodji@redhat.com>
5471
5472         * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
5473         * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
5474         preprocessor related options.
5475
5476 2011-10-15  Tom Tromey  <tromey@redhat>
5477             Dodji Seketeli  <dodji@redhat.com>
5478
5479         * input.h (struct expanded_location): Move to libcpp/line-map.h.
5480         (LOCATION_COLUMN): New accessor
5481         (in_system_header_at): Use linemap_location_in_system_header_p.
5482         * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
5483         touching the internals of struct line_map.  Use the public API instead.
5484         (diagnostic_report_diagnostic): Don't use relational operator '<'
5485         on virtual locations.  Use linemap_location_before_p instead.
5486         * input.c (expand_location): Adjust to expand to the tokens'
5487         spelling location when macro location tracking is on.
5488
5489
5490 2011-10-08  Andi Kleen  <ak@linux.intel.com>
5491
5492         * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
5493
5494 2011-10-13  Andi Kleen  <ak@linux.intel.com>
5495
5496         * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
5497
5498 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
5499
5500         PR tree-optimization/50727
5501         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
5502         DEF_STMT to the list of statements to be replaced by the
5503         pattern statements.
5504
5505 2011-10-16  Eric Botcazou  <ebotcazou@adacore.com>
5506
5507         PR rtl-optimization/50615
5508         * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
5509
5510 2011-10-16  Jakub Jelinek  <jakub@redhat.com>
5511
5512         PR tree-optimization/50596
5513         * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
5514         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5515         vect_recog_bool_pattern.
5516         (check_bool_pattern, adjust_bool_pattern_cast,
5517         adjust_bool_pattern, vect_recog_bool_pattern): New functions.
5518
5519 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
5520
5521         * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
5522         treat the first load of the node as the first element in its
5523         interleaving chain.
5524         * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
5525         necessary and possible.
5526         (vect_build_slp_tree): Add new argument.  Allow load groups of any size
5527         in basic blocks.  Keep all the loads for further permutation check.
5528         Use the new argument to determine if there is a permutation.  Update
5529         the recursive calls.
5530         (vect_supported_load_permutation_p): Allow subchains of interleaving
5531         chains in basic block vectorization.
5532         (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
5533         Check load permutation based on the new parameter.
5534         (vect_schedule_slp_instance): Don't start from the first element in
5535         interleaving chain unless the loads are permuted.
5536
5537 2011-10-15  Jan Hubicka  <jh@suse.cz>
5538
5539         PR target/48668
5540         PR target/50689
5541         * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
5542         after function body.
5543
5544 2011-10-15  Richard Henderson  <rth@redhat.com>
5545
5546         * tree-vect-slp.c: Include langhooks.h.
5547         (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
5548         (vect_transform_slp_perm_load): Use can_vec_perm_expr_p.  Simplify
5549         mask creation for VEC_PERM_EXPR.
5550         * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
5551         not the builtin.
5552         (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
5553         * Makefile.in (tree-vect-slp.o): Update dependency.
5554         * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
5555
5556 2011-10-15  Alan Modra  <amodra@gmail.com>
5557
5558         PR bootstrap/50738
5559         * ifcvt.c (dead_or_predicable): Revert accidental commit with
5560         HAVE_simple_return test.
5561
5562 2011-10-15  Alan Modra  <amodra@gmail.com>
5563
5564         * ifcvt.c (dead_or_predicable): Disable if-conversion when
5565         doing so is likely to kill a shrink-wrapping opportunity.
5566
5567         PR rtl-optimization/49941
5568         * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
5569
5570         * rtl.h (set_return_jump_label): Declare.
5571         * function.c (set_return_jump_label): New function, extracted..
5572         (thread_prologue_and_epilogue_insns): ..from here.  Use it in
5573         another instance to set return jump_label.
5574         * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
5575         * reorg.c (find_end_label): Likewise.
5576
5577 2011-10-14  David S. Miller  <davem@davemloft.net>
5578
5579         * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
5580         with a more complete cpp test.
5581         * config/sparc/linux64.h: Likewise.
5582         * config/sparc/linux.h: Likewise.
5583         * config/sparc/sparc.opt (sparc_debug): New target variable.
5584         (mdebug): New target option.
5585         * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
5586         TARGET_DEBUG_OPTIONS): New defines.
5587         * config/sparc/sparc.c (debug_target_flag_bits,
5588         debug_target_flags): New functions.
5589         (sparc_option_override): Add name strings back to cpu_table[].
5590         Parse -mdebug string.  When TARGET_DEBUG_OPTIONS is true, print
5591         out the target flags before and after override processing as well
5592         as the selected cpu.  If MASK_V8PLUS, make sure that the selected
5593         cpu is at least v9.
5594
5595 2011-10-15  Oleg Endo  <oleg.endo@t-online.de>
5596
5597         PR target/49263
5598         * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
5599         * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
5600         * config/sh/sh.md (tstsi_t): Name existing insn.  Make inner
5601         and instruction commutative.
5602         (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
5603         tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
5604         tstsi_t_zero_extract_subreg_xor_little,
5605         tstsi_t_zero_extract_subreg_xor_big): New insns.
5606         (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
5607         asm output.
5608         (*andsi_compact): Reorder alternatives so that K08 is considered first.
5609
5610 2011-10-14  Eric Botcazou  <ebotcazou@adacore.com>
5611
5612         PR target/50354
5613         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
5614         processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
5615
5616 2011-10-14  Gerald Pfeifer  <gerald@pfeifer.com>
5617
5618         * invoke.texi (AVR Options): Avoid \leq{}.
5619
5620 2011-10-14  Kai Tietz  <ktietz@redhat.com>
5621
5622         * gimplify.c (gimplify_expr): Take care that for bitwise-binary
5623         transformation the operands have compatible types.
5624
5625 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
5626
5627         * config/i386/sse.md (vec_widen_smult_hi_v8hi,
5628         vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
5629         vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
5630         mode iterator and any_extend code iterator.
5631         (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
5632         (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
5633         also for TARGET_SSE4_1 using pmuldq insn.
5634         (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
5635         (sse2_sse4_1): New code attr.
5636         (udot_prodv4si): Macroize using any_extend code iterator.
5637         (<s>dot_prodv8si): New expander.
5638
5639 2011-10-14  Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
5640
5641         * config/i386/i386.c (atom_cost): Changed cost for loading
5642         QImode using movzbl.
5643
5644 2011-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5645
5646         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
5647         change on October 11th, 2011.
5648
5649 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
5650
5651         * config/i386/sse.md (vec_interleave_high<mode>,
5652         vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
5653         * config/i386/i386.c (expand_vec_perm_interleave3): New function.
5654         (ix86_expand_vec_perm_builtin_1): Call it.
5655
5656 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
5657
5658         Fix thinko from r179765
5659         * config/avr/avr.c (avr_option_override): Don't override
5660         flag_omit_frame_pointer if not actually needed.
5661
5662 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
5663
5664         PR target/46278
5665         * doc/invoke.texi (AVR Options): Document -mstrict-X.
5666
5667         * config/avr/avr.opt (-mstrict-X): New option.
5668         (avr_strict_X): New variable reflecting -mstrict-X.
5669         * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
5670         outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
5671         (avr_legitimate_address_p): Pass outer_code to
5672         avr_reg_ok_for_addr_p and use that function in case PLUS.
5673         (avr_mode_code_base_reg_class): Depend on avr_strict_X.
5674         (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
5675         (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
5676
5677 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
5678
5679         * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
5680         of VI_128.
5681
5682         * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
5683         (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
5684         Use <sseinsnmode> instead of TI in mode attr.
5685
5686 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
5687
5688         * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
5689         * config/arm/linux-atomic.c: Change comment to point to 64bit version.
5690         (SYNC_LOCK_RELEASE): Instantiate 64bit version.
5691         * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
5692
5693 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
5694
5695         * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
5696         (arm_output_strex): Support strexd.
5697         (arm_output_it): New helper to output it in Thumb2 mode only.
5698         (arm_output_sync_loop): Support DI mode.  Change comment to
5699         not support const_int.
5700         (arm_expand_sync): Support DI mode.
5701         * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
5702         and LDREXD.
5703         * config/arm/iterators.md (NARROW): move from sync.md.
5704         (QHSD): New iterator for all current ARM integer modes.
5705         (SIDI): New iterator for SI and DI modes only.
5706         * config/arm/sync.md (sync_predtab): New mode_attr.
5707         (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
5708         (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
5709         (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
5710         (sync_nandsi): Fold into sync_nand<mode>.
5711         (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
5712         (sync_new_nandsi): Fold into sync_new_nand<mode>.
5713         (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
5714         (sync_old_nandsi): Fold into sync_old_nand<mode>.
5715         (sync_compare_and_swap<mode>): Support SI & DI.
5716         (sync_lock_test_and_set<mode>): Likewise.
5717         (sync_<sync_optab><mode>): Likewise.
5718         (sync_nand<mode>): Likewise.
5719         (sync_new_<sync_optab><mode>): Likewise.
5720         (sync_new_nand<mode>): Likewise.
5721         (sync_old_<sync_optab><mode>): Likewise.
5722         (sync_old_nand<mode>): Likewise.
5723         (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
5724         (arm_sync_lock_test_and_setsi): Likewise.
5725         (arm_sync_new_<sync_optab>si): Likewise.
5726         (arm_sync_new_nandsi): Likewise.
5727         (arm_sync_old_<sync_optab>si): Likewise.
5728         (arm_sync_old_nandsi): Likewise.
5729         (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
5730         (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
5731         (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
5732         (arm_sync_new_nand<mode> NARROW): Likewise.
5733         (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
5734         (arm_sync_old_nand<mode> NARROW): Likewise.
5735
5736 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
5737
5738         PR target/48126
5739         * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
5740
5741 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
5742
5743         * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
5744
5745 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
5746
5747         * doc/invoke.texi ([Wformat-zero-length]): Tidy.
5748
5749 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
5750
5751         * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
5752         on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
5753
5754 2011-10-14  Richard Guenther  <rguenther@suse.de>
5755
5756         PR tree-optimization/50723
5757         * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
5758
5759 2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5760
5761         * gengtype.c (files_rules): Added rules for objc/objc-map.h and
5762         objc/objc-map.c.
5763
5764 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
5765
5766         PR c++/17212
5767         * doc/invoke.texi ([Wformat-zero-length]): Update.
5768
5769 2011-10-14  Iain Sandoe  <iains@gcc.gnu.org>
5770
5771         PR bootstrap/50699
5772         * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
5773         build for powerpc targets.  (darwin_patch_builtins): Only build for
5774         powerpc targets.
5775
5776 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
5777
5778         * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
5779         (avx_cvtdq2pd256_2): ... this.
5780         (sseunpackfltmode): New mode attr.
5781         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
5782         vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
5783         using VI2_AVX2 iterator.
5784         (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
5785
5786 2011-10-13  David S. Miller  <davem@davemloft.net>
5787
5788         * config/sparc/sparc.md (plusminus): New code iterator.
5789         (plusminus_insn): New code attr.
5790         (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
5791         using plusminus and plusminus_insn.
5792         (fpadd64_vis, fpsub64_vis): Likewise.
5793
5794 2011-10-13  Richard Henderson  <rth@redhat.com>
5795
5796         * doc/md.texi (vec_perm): Document fallback to byte permutation.
5797         * genopinit.c (optabs): Add vec_perm_const.
5798         * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
5799         Reject non-vector modes.  Allow fallback to byte permutation.
5800         (expand_vec_perm_expr_1): Split out from ...
5801         (expand_vec_perm_expr): ... here.  Allow fallback to byte permutation.
5802         * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
5803         * tree-vect-generic.c (lower_vec_perm): Update for name change.
5804
5805 2011-10-13  Richard Henderson  <rth@redhat.com>
5806
5807         * config/rs6000/altivec.md (vec_permv16qi): New pattern.
5808
5809         * config/rs6000/spu.md (vec_permv16qi): New pattern.
5810
5811         * config/i386/i386.c (ix86_expand_vec_perm_const): New.
5812         * config/i386/i386-protos.h: Update.
5813         * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
5814         (vec_perm_const<VEC_PERM_CONST>): New expander.
5815
5816         * optabs.c (expand_vector_broadcast): New.
5817         (expand_binop): Expand scalar shifts of vectors to vector shifts
5818         of vectors, if the former isn't supported.
5819         * tree-vect-generic.c (expand_vector_operations_1): Don't do that
5820         here; always simplify to scalar shift of vector if possible.
5821
5822         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
5823         test for vector splat.
5824
5825 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
5826
5827         * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
5828
5829 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
5830             Richard Guenther  <rguenther@suse.de>
5831
5832         * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
5833         or complex vars even if their DECL_UID is in not_reg_needs bitmap.
5834
5835 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
5836
5837         * config/i386/sse.md (reduc_umin_v8hi): New pattern.
5838         * config/i386/i386.c (ix86_build_const_vector): Handle
5839         also V32QI, V16QI, V16HI and V8HI modes.
5840         (emit_reduc_half): New function.
5841         (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
5842         Use emit_reduc_half helper function.
5843
5844 2011-10-13  Lawrence Crowl  <crowl@google.com>
5845             Diego Novillo  <dnovillo@google.com>
5846
5847         * lto-streamer-in.c (input_struct_function_base): Factor out of ...
5848         (input_function): ... here.
5849         * lto-streamer-out.c (output_struct_function_base): Factor out of ...
5850         (output_function): ... here.
5851
5852 2011-10-13  Gabriel Charette  <gchare@google.com>
5853             Diego Novillo  <dnovillo@google.com>
5854
5855         * streamer-hooks.h (struct streamer_hooks): Add hooks
5856         input_location and output_location.
5857         * lto-streamer-in.c (lto_input_location): Use
5858         streamer_hooks.input_location, if set.
5859         * lto-streamer-out.c (lto_output_location): Use
5860         streamer_hooks.output_location, if set.
5861
5862 2011-10-13  Eric Botcazou  <ebotcazou@adacore.com>
5863
5864         * doc/invoke.texi (SPARC options): Document -mfix-at697f.
5865         * config/sparc/sparc.opt (mfix-at697f): New option.
5866         * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5867         (sparc_reorg): New function.
5868
5869 2011-10-13  Richard Guenther  <rguenther@suse.de>
5870
5871         PR tree-optimization/50712
5872         * ipa-split.c (split_function): Always re-gimplify parameters
5873         when they are not gimple vals before passing them.  Properly
5874         check for type compatibility.
5875
5876 2011-10-13  Tom de Vries  <tom@codesourcery.com>
5877
5878         * function.c (gimplify_parameters): Set number of arguments of call to
5879         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
5880
5881 2011-10-13  Tom de Vries  <tom@codesourcery.com>
5882
5883         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
5884         for static const strings.
5885         * varasm.c (build_constant_desc): Generate the memory location of the
5886         constant using gen_const_mem.
5887
5888 2011-10-13  Richard Guenther  <rguenther@suse.de>
5889
5890         PR tree-optimization/50698
5891         * tree-data-ref.c (split_constant_offset_1): Also process
5892         offsets of &MEM.
5893
5894 2011-10-12  David S. Miller  <davem@davemloft.net>
5895
5896         * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
5897         (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
5898         unspecs.
5899         (fpmerge_vis): Remove inaccurate comment, represent using vec_select
5900         of a vec_concat.
5901         (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
5902         (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
5903         Reimplement as unspecs and remove inaccurate comments.
5904         (vis3_shift_patname): New code attr.
5905         (<vis3_shift_insn><vbits>_vis): Rename to
5906         "v<vis3_shift_patname><mode>3".
5907         (vis3_addsub_ss_patname): New code attr.
5908         (<vis3_addsub_ss_insn><vbits>_vis): Rename to
5909         "<vis3_addsub_ss_patname><mode>3".
5910         * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
5911         accommodate pattern name changes.
5912
5913         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
5914         to zero when assembler lacks support for such instructions.
5915         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
5916         and MASK_FMAF in defaults when assembler lacks necessary support.
5917
5918 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
5919
5920         * config/i386/sse.md (vec_unpacks_lo_<mode>,
5921         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
5922         vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
5923         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
5924         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
5925
5926         * config/i386/sse.md (vec_avx2): New mode_attr.
5927         (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
5928         (mul<mode>3): ... this.
5929
5930         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
5931         * config/i386/i386.c (ix86_expand_vec_perm): Handle
5932         V16QImode and V32QImode for TARGET_AVX2.
5933         (MAX_VECT_LEN): Increase to 32.
5934         (expand_vec_perm_blend): Add support for 32-byte integer
5935         vectors with TARGET_AVX2.
5936         (valid_perm_using_mode_p): New function.
5937         (expand_vec_perm_pshufb): Add support for 32-byte integer
5938         vectors with TARGET_AVX2.
5939         (expand_vec_perm_vpshufb2_vpermq): New function.
5940         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
5941         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
5942         with TARGET_AVX2.
5943         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
5944         and expand_vec_perm_vpshufb2_vpermq_even_odd.
5945         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
5946         32-byte integer vector modes.
5947         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
5948         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
5949         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
5950         4 new operands.
5951         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
5952         match_dup, instead add 4 new operands and require they have
5953         right cross-lane values.
5954         (avx2_permv4di): Change into define_expand.
5955         (avx2_permv4di_1): New instruction.
5956         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
5957         for "xm" constrained operand.
5958         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
5959
5960         * config/i386/sse.md (avx2_gathersi<mode>,
5961         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
5962         match_scratch, change memory_operand to register_operand,
5963         add (mem:BLK (scratch)) use.
5964         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
5965         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
5966         add earlyclobber to the output operand and match_scratch,
5967         add (mem:BLK (scratch)) use, change the other mem to match_operand.
5968         Use %p6 instead of %c6 in the pattern.
5969         * config/i386/i386.c (ix86_expand_builtin): Adjust for
5970         operand 2 being a Pmode register_operand instead of memory_operand.
5971
5972 2011-10-12  Kai Tietz  <ktietz@redhat.com>
5973
5974         * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
5975
5976 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
5977
5978         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
5979
5980 2011-10-12  Richard Guenther  <rguenther@suse.de>
5981
5982         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
5983         of the first store we visit in a basic-block.
5984         (get_continuation_for_phi): Search for a candidate VUSE that
5985         might dominates all others.  Do pairwise disambiguation against
5986         that candidate.
5987
5988 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
5989
5990         PR tree-optimization/50189
5991         * tree-vrp.c (extract_range_from_assert): Use the type of
5992         the variable, not the limit.
5993
5994 2011-10-12  Richard Guenther  <rguenther@suse.de>
5995
5996         PR tree-optimization/50700
5997         * tree-object-size.c (addr_object_size): Simplify and treat
5998         MEM_REF bases consistently.
5999
6000 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
6001
6002         * function.c (prepare_shrink_wrap, bb_active_p): New function.
6003         (thread_prologue_and_epilogue_insns): Use bb_active_p.  Call
6004         prepare_shrink_wrap, then recompute bb_active_p for the last block.
6005
6006 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
6007
6008         PR c/50565
6009         * convert.c (convert_to_integer): Do not narrow operands of
6010         pointer subtraction.
6011
6012 2011-10-12  Nick Clifton  <nickc@redhat.com>
6013
6014         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
6015         emit a .eabi_attribute assembler directive, possibly with a
6016         comment attached.
6017         * config/arm/arm.c (arm_file_start): Use the new macro.
6018         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
6019
6020 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
6021
6022         PR target/49939
6023         * config/avr/avr.md (*movqi): Rename to movqi_insn.
6024         (*call_insn): Rename to call_insn.
6025         (*call_value_insn): Rename to call_value_insn.
6026         * config/avr/avr.c (avr_2word_insn_p): New static function.
6027         (jump_over_one_insn_p): Use it.
6028
6029 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
6030
6031         * expr.h (copy_blkmode_to_reg): Declare.
6032         * expr.c (copy_blkmode_to_reg): New function.
6033         (expand_assignment): Don't expand register RESULT_DECLs before
6034         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
6035         RESULT_DECL register.
6036         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
6037         * stmt.c (expand_return): Move BLKmode-to-register code into
6038         copy_blkmode_to_reg.
6039
6040 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
6041
6042         PR target/49965
6043         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
6044         (mov<F:mode>cc): Likewise.
6045
6046 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6047
6048         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
6049
6050 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6051
6052         * tree.h (built_in_decls): Delete old interface with two parallel
6053         arrays to hold standard builtin declarations, and replace it with
6054         a function based interface that can support creating builtins on
6055         the fly in the future.  Change all uses, and poison the old
6056         names.  Make sure 0 is not a legitimate builtin index.
6057         (implicit_built_in_decls): Ditto.
6058         (built_in_info): Ditto.
6059         (BUILTIN_VALID_P): Ditto.
6060         (builtin_decl_explicit): Ditto.
6061         (builtin_decl_implicit): Ditto.
6062         (set_builtin_decl): Ditto.
6063         (set_builtin_decl_implicit_p): Ditto.
6064         (builtin_decl_explicit_p): Ditto.
6065         (builtin_decl_implicit_p): Ditto.
6066         * tree-complex.c (expand_complex_libcall): Ditto.
6067         * tree-loop-distribution.c (generate_memset_zero): Ditto.
6068         * tree-ssa-strlen.c (get_string_length): Ditto.
6069         (handle_builtin_strcpy): Ditto.
6070         (handle_builtin_strcat): Ditto.
6071         * tree.c (iterative_hash_expr): Ditto.
6072         (local_define_builtin): Ditto.
6073         (build_common_builtin_nodes): Ditto.
6074         * builtins.c (built_in_decls): Ditto.
6075         (implicit_built_in_decls): Ditto.
6076         (built_in_info): Ditto
6077         (expand_builtin_classify_type): Ditto.
6078         (mathfn_built_in_1): Ditto.
6079         (expand_builtin_cexpi): Ditto.
6080         (expand_builtin_mempcpy_args): Ditto.
6081         (expand_builtin_stpcpy): Ditto.
6082         (gimplify_va_arg_expr): Ditto.
6083         (expand_builtin_sync_operation): Ditto.
6084         (build_builtin_expect_predicate): Ditto.
6085         (fold_builtin_memory_op): Ditto.
6086         (fold_builtin_strcpy): Ditto.
6087         (fold_builtin_stpcpy): Ditto.
6088         (fold_builtin_strncpy): Ditto.
6089         (fold_builtin_interclass_mathfn): Ditto.
6090         (fold_builtin_classify): Ditto.
6091         (fold_builtin_2): Ditto.
6092         (fold_builtin_strstr): Ditto.
6093         (fold_builtin_strrchr): Ditto.
6094         (fold_builtin_strpbrk): Ditto.
6095         (fold_builtin_strcat): Ditto.
6096         (fold_builtin_strncat): Ditto.
6097         (fold_builtin_strcspn): Ditto.
6098         (fold_builtin_fputs): Ditto.
6099         (fold_builtin_sprintf): Ditto.
6100         (fold_builtin_snprintf): Ditto.
6101         (expand_builtin_memory_chk): Ditto.
6102         (fold_builtin_memory_chk): Ditto.
6103         (fold_builtin_stxcpy_chk): Ditto.
6104         (fold_builtin_strncpy_chk): Ditto.
6105         (fold_builtin_strcat_chk): Ditto.
6106         (fold_builtin_strncat_chk): Ditto.
6107         (fold_builtin_sprintf_chk_1): Ditto.
6108         (fold_builtin_snprintf_chk_1): Ditto.
6109         (fold_builtin_printf): Ditto.
6110         (fold_builtin_fprintf): Ditto.
6111         (fold_call_stmt): Ditto.
6112         (set_builtin_user_assembler_name): Ditto.
6113         * tree-emutls.c (emutls_common_1): Ditto.
6114         * omp-low.c (scan_omp): Ditto.
6115         (lower_rec_input_clauses): Ditto.
6116         (lower_reduction_clauses): Ditto.
6117         (expand_parallel_call): Ditto.
6118         (expand_task_call): Ditto.
6119         (maybe_catch_exception): Ditto.
6120         (optimize_omp_library_calls): Ditto.
6121         (expand_omp_for_generic): Ditto.
6122         (expand_omp_for_static_nochunk): Ditto.
6123         (expand_omp_for_static_chunk): Ditto.
6124         (expand_omp_sections): Ditto.
6125         (expand_omp_atomic_fetch_op): Ditto.
6126         (expand_omp_atomic_pipeline): Ditto.
6127         (expand_omp_atomic_mutex): Ditto.
6128         (lower_omp_single_simple): Ditto.
6129         (lower_omp_single_copy): Ditto.
6130         (lower_omp_master): Ditto.
6131         (lower_omp_ordered): Ditto.
6132         (lower_omp_critical): Ditto.
6133         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
6134         * builtins.c (DEF_BUILTIN_STUB): Ditto.
6135         (BUILT_IN_NONE): Ditto.
6136         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
6137         * gimple-low.c (lower_function_body): Ditto.
6138         (lower_builtin_setjmp): Ditto.
6139         * c-decl.c (merge_decls): Ditto.
6140         * tree-eh.c (lower_resx): Ditto.
6141         (lower_resx): Ditto.
6142         (lower_eh_dispatch): Ditto.
6143         * function (gimplify_parameters): Ditto.
6144         * c-typeck.c (build_function_call_vec): Ditto.
6145         * gimplify.c (build_stack_save_restore): Ditto.
6146         (gimplify_vla_decl): Ditto.
6147         (gimplify_modify_expr_to_memcpy): Ditto.
6148         (gimplify_modify_expr_to_memset): Ditto.
6149         (gimplify_variable_sized_compare): Ditto.
6150         (gimplify_function_tree): Ditto.
6151         * calls.c (emit_call_1): Ditto.
6152         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
6153         * tree-nested.c (convert_nl_goto_reference): Ditto.
6154         (convert_tramp_reference_op): Ditto.
6155         (finalize_nesting_tree_1): Ditto.
6156         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
6157         (tree_ssa_prefetch_arrays): Ditto.
6158         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
6159         * system.h (built_in_decls): Ditto.
6160         (implicit_built_in_decls): Ditto.
6161         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
6162         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
6163         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
6164         (ix86_veclibabi_svml): Ditto.
6165         (ix86_veclibabi_acml): Ditto.
6166         * config/vms/vms.c (vms_patch_builtins): Ditto.
6167         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
6168         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
6169         (rs6000_builtin_vectorized_libmass): Ditto.
6170         (rs6000_init_builtins): Ditto.
6171         * config/darwin.c (darwin_override_options): Ditto.
6172         (darwin_patch_builtin): Ditto.
6173         (darwin_rename_builtins): Ditto.
6174         * config/pa/pa.c (pa_init_builtins): Ditto.
6175
6176 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6177
6178         * tree.h (copy_ref_info): Expose existing function.
6179         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
6180         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
6181
6182 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
6183
6184         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
6185         prototype.
6186         (avr_regno_mode_code_ok_for_base_p): New prototype.
6187         * config/avr/avr.h (BASE_REG_CLASS): Remove.
6188         (REGNO_OK_FOR_BASE_P): Remove.
6189         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
6190         (REG_OK_FOR_BASE_STRICT_P): Remove.
6191         (MODE_CODE_BASE_REG_CLASS): New define.
6192         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
6193         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
6194         (avr_regno_mode_code_ok_for_base_p): New function.
6195         (avr_reg_ok_for_addr_p): New static function.
6196         (avr_legitimate_address_p): Use it.  Beautify.
6197
6198 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
6199
6200         PR target/50447
6201         * config/avr/avr.md (cc): Add out_plus attribute alternative.
6202         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
6203         avr_out_plus for all CONST_INT addends.
6204         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
6205         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
6206         CC_OUT_PLUS.
6207         (avr_out_plus_1): Change prototype and report effect on cc0.
6208         (avr_out_plus): Ditto.
6209         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
6210
6211 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
6212
6213         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
6214         the extra break.
6215
6216 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
6217
6218         * doc/invoke.texi: Document new warning.
6219         * common.opt (Wvector-operation-performance): Define new warning.
6220         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
6221         vector operation.
6222         (exapnd_vector_parallel): Warn about expanded vector operation.
6223         (lower_vec_shuffle): Warn about expanded vector operation.
6224         * c-typeck.c (c_build_vec_perm_expr): Store correct location
6225         when creating VEC_PERM_EXPR.
6226
6227 2011-10-11  Richard Guenther  <rguenther@suse.de>
6228
6229         PR tree-optimization/50204
6230         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
6231         two argument handling from ...
6232         (get_continuation_for_phi): ... here.  Handle arbitrary number
6233         of PHI args.
6234
6235 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
6236
6237         * modulo-sched.c: Fix comment typo.  Mention the possibility
6238         of using scheduling windows of II+1 cycles.
6239
6240 2011-10-11  Tristan Gingold  <gingold@adacore.com>
6241
6242         * doc/invoke.texi (C Dialect Options): Document
6243         -fallow-parameterless-variadic-functions.
6244         * c-parser.c (c_parser_parms_list_declarator): Handle it.
6245
6246 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6247
6248         * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
6249         to 0 if frame pointer is needed for unwinding.
6250
6251 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
6252
6253         PR bootstrap/50665
6254         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
6255         optab_index to enum direct_optab_index.
6256         (vec_perm_optab): Update.
6257
6258 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
6259
6260         * config/cris/cris.c (cris_preferred_reload_class): New function.
6261         (TARGET_PREFERRED_RELOAD_CLASS): Define.
6262         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
6263
6264 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6265
6266         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
6267         !AVR_HAVE_JMP_CALL.
6268         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
6269         (*tablejump_enh, *tablejump): Remove insns.
6270         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
6271         EIJMP for indirect jump.  Use LPM Z+ where available.
6272
6273 2011-10-10  Richard Henderson  <rth@redhat.com>
6274
6275         * doc/md.texi (vec_perm_const): Fix typo in cindex.
6276
6277 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
6278             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
6279
6280         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
6281
6282 2011-10-10  Richard Guenther  <rguenther@suse.de>
6283
6284         PR middle-end/50389
6285         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
6286         mark symbols for renaming.  Append the VUSE to all statements
6287         that possibly can have one.
6288
6289 2011-10-10  Richard Guenther  <rguenther@suse.de>
6290
6291         * ipa-split.c (pass_split_functions): Add verification TODOs.
6292         (pass_feedback_split_functions): Likewise.
6293
6294 2011-10-10  Richard Guenther  <rguenther@suse.de>
6295
6296         PR middle-end/50195
6297         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
6298         only when optimizing.
6299
6300 2011-10-10  Nick Clifton  <nickc@redhat.com>
6301
6302         PR middle-end/49801
6303         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
6304         df_get_live_out instead of accessing the bitmaps directly.
6305         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
6306         df_live_add_problem and df_analyze.
6307
6308 2011-10-10  Michael Matz  <matz@suse.de>
6309
6310         PR middle-end/50638
6311         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
6312
6313 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6314
6315         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
6316         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
6317         (node_sched_params): Remove first_reg_move and nreg_moves.
6318         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
6319         (update_node_sched_params): Move up file.
6320         (print_node_sched_params): Print the stage.  Don't dump info related
6321         to first_reg_move and nreg_moves.
6322         (set_columns_for_row): New function.
6323         (set_columns_for_ps): Move up file and use set_columns_for_row.
6324         (schedule_reg_move): New function.
6325         (schedule_reg_moves): Call extend_node_sched_params and
6326         schedule_reg_move.  Extend size of uses bitmap.  Initialize
6327         num_consecutive_stages.  Return false if a move could not be
6328         scheduled.
6329         (apply_reg_moves): Don't emit moves here.
6330         (permute_partial_schedule): Handle register moves.
6331         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
6332         to the same stage-count test as ddg nodes.
6333         (generate_prolog_epilog): Update calls accordingly.
6334         (sms_schedule): Allow move-scheduling to add a new first stage.
6335
6336 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6337
6338         * modulo-sched.c (ps_insn): Adjust comment.
6339         (ps_reg_move_info): New structure.
6340         (partial_schedule): Add reg_moves field.
6341         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
6342         (node_sched_params): Turn first_reg_move into an identifier.
6343         (ps_reg_move): New function.
6344         (ps_rtl_insn): Cope with register moves.
6345         (ps_first_note): Adjust comment and assert that the instruction
6346         isn't a register move.
6347         (node_sched_params): Replace with...
6348         (node_sched_param_vec): ...this vector.
6349         (set_node_sched_params): Adjust accordingly.
6350         (print_node_sched_params): Take a partial schedule instead of a ddg.
6351         Use ps_rtl_insn and ps_reg_move.
6352         (generate_reg_moves): Rename to...
6353         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
6354         move in the partial schedule, but don't emit it here.  Don't perform
6355         register substitutions here either.
6356         (apply_reg_moves): New function.
6357         (duplicate_insns_of_cycles): Use register indices directly,
6358         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
6359         (sms_schedule): Call schedule_reg_moves before committing to
6360         a partial schedule.   Try the next ii if the schedule fails.
6361         Use apply_reg_moves instead of generate_reg_moves.  Adjust
6362         call to print_node_sched_params.  Free node_sched_param_vec
6363         instead of node_sched_params.
6364         (create_partial_schedule): Initialize reg_moves.
6365         (free_partial_schedule): Free reg_moves.
6366
6367 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6368
6369         * modulo-sched.c (ps_insn): Replace node field with an identifier.
6370         (SCHED_ASAP): Replace with..
6371         (NODE_ASAP): ...this macro.
6372         (SCHED_PARAMS): New macro.
6373         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
6374         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
6375         (node_sched_params): Remove asap.
6376         (ps_rtl_insn, ps_first_note): New functions.
6377         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
6378         asap values.
6379         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
6380         (generate_reg_moves): Pass ids to the SCHED_* macros.
6381         (update_node_sched_params): Take a ps insn identifier rather than
6382         a node as parameter.  Use ps_rtl_insn.
6383         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
6384         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
6385         (optimize_sc): Update for above field and SCHED_* macro changes.
6386         Update calls to try_scheduling_node_in_cycle and
6387         update_node_sched_params.
6388         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
6389         macro changes.  Use ps_rtl_insn and ps_first_note.
6390         (sms_schedule): Pass ids to the SCHED_* macros.
6391         (get_sched_window): Adjust for above field and SCHED_* macro changes.
6392         Use NODE_ASAP instead of SCHED_ASAP.
6393         (try_scheduling_node_in_cycle): Remove node parameter.  Update
6394         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_* macros.
6395         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
6396         (ps_insert_empty_row): Adjust for above field changes.
6397         (compute_split_row): Use ids rather than nodes.
6398         (verify_partial_schedule): Adjust for above field changes.
6399         (print_partial_schedule): Use ps_rtl_insn.
6400         (create_ps_insn): Take an id rather than a node.
6401         (ps_insn_find_column): Adjust for above field changes.
6402         Use ps_rtl_insn.
6403         (ps_insn_advance_column): Adjust for above field changes.
6404         (add_node_to_ps): Remove node parameter.  Update call to
6405         create_ps_insn.
6406         (ps_has_conflicts): Use ps_rtl_insn.
6407         (ps_add_node_check_conflicts): Replace node parameter than an id.
6408
6409 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6410
6411         * modulo-sched.c (undo_replace_buff_elem): Delete.
6412         (generate_reg_moves): Don't build and return an undo list.
6413         (free_undo_replace_buff): Delete.
6414         (sms_schedule): Adjust call to generate_reg_moves.
6415         Don't call free_undo_replace_buff.
6416
6417 2011-10-10  Matthias Klose <doko@ubuntu.com>
6418
6419         * common/config/m32c: Remove empty directory.
6420
6421 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6422
6423         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
6424
6425 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6426
6427         PR target/50652
6428         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
6429         atmega164a to 0x100.
6430
6431 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
6432
6433         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
6434         the replacement if the conversion to the LHS type is not useless.
6435
6436 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
6437
6438         PR tree-optimization/50635
6439         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
6440         DEF_STMT to the list of statements to be replaced by the
6441         pattern statements.
6442         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
6443
6444 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
6445
6446         * system.h: Commit forgotten hunk in previous patch.
6447         (OUTPUT_ADDR_CONST_EXTRA): Poison.
6448
6449 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
6450
6451         PR libobjc/50428
6452         * doc/objc.texi (Garbage Collection): Updated example to protect
6453         +initialize against execution in subclasses.
6454
6455 2011-10-07  Richard Henderson  <rth@redhat.com>
6456
6457         * doc/extend.texi (__builtin_shuffle): Improve the description to
6458         include the modulus of the selector.  Mention OpenCL.
6459         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
6460
6461         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
6462         * genopinit.c (optabs): Rename vshuffle to vec_perm.
6463         * c-typeck.c (c_build_vec_perm_expr): Rename from
6464         c_build_vec_shuffle_expr.  Update for name changes.
6465         * optabs.c (expand_vec_perm_expr_p): Rename from
6466         expand_vec_shuffle_expr_p.
6467         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
6468         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
6469         (vec_perm_optab): Rename from vshuffle_optab.
6470         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
6471         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
6472         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
6473
6474         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
6475         ix86_expand_vshuffle.
6476         * config/i386/i386-protos.h: Update.
6477         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
6478         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
6479
6480 2011-10-07  Richard Henderson  <rth@redhat.com>
6481
6482         * config/i386/predicates.md (avx2_pblendw_operand): New.
6483         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
6484         (avx2_pblendw, *avx2_pblendw): New expander and insn.
6485
6486 2011-10-07  Richard Henderson  <rth@redhat.com>
6487
6488         * config/i386/i386.c (bdesc_args): Update code for
6489         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
6490         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
6491         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
6492         * config/i386/sse.md (mode iterator V16): Add V2TI.
6493         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
6494         (mode attr ssse3_avx2): Add V2TI.
6495         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
6496
6497 2011-10-07  David S. Miller  <davem@davemloft.net>
6498
6499         PR 50655
6500         * configure.ac: Add .register directives to VIS3 test.
6501         * configure: Regenerate.
6502
6503 2011-10-07  Richard Henderson  <rth@redhat.com>
6504
6505         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
6506
6507 2011-10-07  Richard Henderson  <rth@redhat.com>
6508
6509         PR 49752
6510         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
6511
6512 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
6513
6514         * config/arm/predicates.md (shift_amount_operand): Remove constant
6515         range check.
6516         (shift_operator): Check range of constants for all shift operators.
6517
6518 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6519
6520         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
6521         Load GOT pointer for non-pic builds.
6522         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
6523         (s390_emit_call): Likewise.
6524
6525 2011-10-07  Tom de Vries  <tom@codesourcery.com>
6526
6527         PR middle-end/50527
6528         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
6529         BUILT_IN_ALLOCA_WITH_ALIGN.  Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
6530         throw.
6531         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
6532         arglist.  Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
6533         (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
6534         (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
6535         * tree-ssa-ccp.c (evaluate_stmt): Set align for
6536         BUILT_IN_ALLOCA_WITH_ALIGN.
6537         (fold_builtin_alloca_for_var): Rename to ...
6538         (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
6539         BUILT_IN_ALLOCA_WITH_ALIGN argument.
6540         (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
6541         fold_builtin_alloca_with_align.
6542         (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
6543         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
6544         DEF_BUILTIN_STUB.
6545         * ipa-pure-const.c (special_builtin_state): Handle
6546         BUILT_IN_ALLOCA_WITH_ALIGN.
6547         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
6548         (call_may_clobber_ref_p_1): Same.
6549         * function.c (gimplify_parameters): Lower vla to
6550         BUILT_IN_ALLOCA_WITH_ALIGN.
6551         * gimplify.c (gimplify_vla_decl): Same.
6552         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
6553         * tree-mudflap.c (mf_xform_statements): Same.
6554         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
6555         (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
6556         * varasm.c (incorporeal_function_p): Same.
6557         * tree-object-size.c (alloc_object_size): Same.
6558         * gimple.c (gimple_build_call_from_tree): Same.
6559
6560 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
6561
6562         * function.c (frame_required_for_rtx): Remove function.
6563         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
6564         changed.  Compute a set of mentioned registers and compare against
6565         the new arg rather than calling frame_required_for_rtx.
6566         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
6567         reg set.  Convert the unconverted_simple_returns mechanism to store
6568         jump insns rather than their basic blocks.  Also check the
6569         orig_entry_edge destination for new blocks.
6570
6571 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
6572
6573         PR tree-optimization/50650
6574         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
6575         call vect_is_simple_cond here, instead fail if cond_expr isn't
6576         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
6577         for cond_expr's first operand.
6578         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
6579         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
6580
6581 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6582
6583         * config/s390/s390.md (DWH, dwh): New mode macros.
6584         ("umulsidi3"): Extend to support "umulditi3" as well.
6585
6586 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
6587             H.J. Lu  <hongjiu.lu@intel.com>
6588
6589         PR target/50603
6590         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
6591         integer PLUS RTX to a register to improve address combine.
6592
6593 2011-10-06  Richard Henderson  <rth@redhat.com>
6594
6595         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
6596         parameter; use it to decide whether to merge two notes.
6597         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
6598         for the deallocation case as well.
6599
6600 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
6601
6602         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
6603         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
6604         * doc/tm.texi: Regenerate.
6605         * target.def (output_addr_const_extra): Use
6606         hook_bool_FILEptr_rtx_false.
6607         * targhooks.c (default_asm_output_addr_const_extra): Remove.
6608         * targhooks.h (default_asm_output_addr_const_extra): Remove.
6609         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
6610         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
6611
6612 2011-10-06  David S. Miller  <davem@davemloft.net>
6613
6614         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
6615         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
6616         SI mode 64-bit code gen case explicitly zero-extend and truncate.
6617         (*popcount<mode>_sp64): Split up into...
6618         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
6619         SImode case use truncate.
6620         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
6621         subtract so the compiler can optimize it.
6622         (SIDI): Remove unused mode iterator.
6623
6624 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
6625
6626         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
6627         on the orig_entry_edge. Don't account for it in prologue_clobbered.
6628
6629 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
6630
6631         PR tree-optimization/50596
6632         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
6633         (NUM_PATTERNS): Change to 6.
6634         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
6635         function.
6636         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
6637         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
6638         if it already has one, and don't set STMT_VINFO_VECTYPE in it
6639         if it is already set.
6640         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
6641         COND_EXPR in pattern stmts.
6642         (vect_is_simple_cond): No longer static.
6643
6644 2001-10-06  Richard Henderson  <rth@redhat.com>
6645
6646         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
6647         * config/i386/sse.md (sseshuffint): Remove.
6648         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
6649         (VSHUFFLE_AVX2): New mode iterator.
6650         (vshuffle<mode>): Use it.
6651         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
6652
6653         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
6654         for vector_all_ones_operand.
6655         (ix86_expand_int_vcond): Distinguish between comparison mode
6656         and data mode.  Allow them to differ.
6657         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
6658
6659 2001-10-06  Richard Henderson  <rth@redhat.com>
6660
6661         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
6662         mask operand.  Tidy the code.
6663
6664 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
6665
6666         * tree-vect-patterns.c (vect_pattern_recog_1): Use
6667         vect_recog_func_ptr typedef for the first argument.
6668         (vect_pattern_recog): Rename vect_recog_func_ptr variable
6669         to vect_recog_func, use vect_recog_func_ptr typedef for it.
6670
6671         PR tree-optimization/49279
6672         * tree-ssa-structalias.c (find_func_aliases): Don't handle
6673         CAST_RESTRICT.
6674         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
6675         restrict propagation.
6676         * tree-ssa.c (useless_type_conversion_p): Don't return false
6677         if TYPE_RESTRICT differs.
6678
6679 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
6680
6681         * function.c (thread_prologue_and_epilogue_insns): Build a vector
6682         of unconverted simple return blocks rather than trying to
6683         recompute them later based on bb_flags bitmap tests.
6684
6685 2011-10-06  Michael Matz  <matz@suse.de>
6686
6687         * tree-flow.h (get_var_ann): Don't declare.
6688         * tree-flow-inline.h (get_var_ann): Remove.
6689         (set_is_used): Use var_ann, not get_var_ann.
6690         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
6691         * tree-profile.c (gimple_gen_edge_profiler): Call
6692         find_referenced_var_in.
6693         (gimple_gen_interval_profiler): Ditto.
6694         (gimple_gen_pow2_profiler): Ditto.
6695         (gimple_gen_one_value_profiler): Ditto.
6696         (gimple_gen_average_profiler): Ditto.
6697         (gimple_gen_ior_profiler): Ditto.
6698         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
6699         (gimple_gen_ic_func_profiler): Call add_referenced_var.
6700         * tree-mudflap.c (execute_mudflap_function_ops): Call
6701         add_referenced_var.
6702
6703 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
6704
6705         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
6706         don't set SSA_NAME_DEF_STMT that has been already set by
6707         gimple_build_assign_with_ops.
6708         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
6709         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
6710         Likewise.
6711
6712         * tree.h (avoid_folding_inline_builtin): New prototype.
6713         * builtins.c (avoid_folding_inline_builtin): No longer static.
6714         * gimple-fold.c (gimple_fold_builtin): Give up if
6715         avoid_folding_inline_builtin returns true.
6716
6717 2011-10-06  Richard Guenther  <rguenther@suse.de>
6718
6719         * tree-vect-generic.c (vector_element): Look at previous
6720         generated results.
6721
6722 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
6723
6724         PR target/39950
6725         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
6726         __powerpc__, __PPC__, __unix__.
6727
6728 2011-10-06  Michael Matz  <matz@suse.de>
6729
6730         * i386/i386.opt (recip_mask, recip_mask_explicit,
6731         x_recip_mask_explicit): New variables and cl_target member.
6732         (mrecip=): New option.
6733         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
6734         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
6735         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
6736         TARGET_RECIP_VEC_SQRT): New tests.
6737         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
6738         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
6739         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
6740         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
6741         * i386/i386.c (ix86_option_override_internal): Set recip_mask
6742         for -mrecip and -mrecip=options.
6743         (ix86_function_specific_save): Save recip_mask_explicit.
6744         (ix86_function_specific_restore): Restore recip_mask_explicit.
6745
6746         * doc/invoke.texi (ix86 Options): Document the new option.
6747
6748 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
6749
6750         PR target/49049
6751         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
6752
6753 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
6754
6755         PR target/50305
6756         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
6757         output of a previous pass through legitimize_reload_address.
6758         Do not attempt to optimize addresses if the base register is
6759         equivalent to a constant.
6760
6761 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6762
6763         * function.c (thread_prologue_and_epilogue_insns): Mark
6764         last_bb_active as possibly unused.  It is unused for targets which
6765         do neither have "return" nor "simple_return" expanders.
6766
6767 2011-10-06  Richard Guenther  <rguenther@suse.de>
6768
6769         * fold-const.c (fold_ternary_loc): Also fold non-constant
6770         vector CONSTRUCTORs.  Make more efficient.
6771         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
6772         (cprop_into_stmt): Don't propagate into virtual operands.
6773         (optimize_stmt): Really dump original statement.
6774
6775 2011-10-06  Nick Clifton  <nickc@redhat.com>
6776
6777         * config/rx/rx.md (smin3): Revert previous delta.
6778
6779 2011-10-06  Richard Guenther  <rguenther@suse.de>
6780
6781         PR tree-optimization/38884
6782         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
6783         reads from aggregate SSA names.
6784
6785 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
6786
6787         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
6788         argument, truncate it at the beginning instead of allocating there
6789         and freeing at the end.
6790         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
6791         pass its address to vect_pattern_recog_1.
6792
6793 2011-10-05  David S. Miller  <davem@davemloft.net>
6794
6795         * config/sparc/sparc.opt (POPC): New option.
6796         * doc/invoke.texi: Document it.
6797         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
6798         default on Niagara-2 and later.
6799         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
6800         * config/sparc/sparc.md (SIDI): New mode iterator.
6801         (ffsdi2): Delete commented out pattern and comments.
6802         (popcount<mode>2, clz<mode>2): New expanders.
6803         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
6804         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
6805
6806 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
6807
6808         PR middle-end/50607
6809         * c-tree.h (c_expr_t): New typedef for struct c_expr.
6810         (C_EXPR_APPEND): New macro.
6811         * c-parser.c (c_parser_get_builtin_args): Preserve
6812         original_tree_code of c_expr structure.
6813         (c_parser_postfix_expression): Adjust to the new function.
6814
6815 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
6816
6817         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
6818         if profiling after the prologue.
6819
6820 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
6821
6822         PR tree-optimization/50613
6823         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
6824         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
6825         and if it is neither that not SSA_NAME, give up.
6826
6827 2011-10-05  Richard Henderson  <rth@redhat.com>
6828
6829         * tree-vect-generic.c (vector_element): Never fail.  Use
6830         build_zero_cst.  Tidy up type references.
6831         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
6832         code duplication.  Do update_stmt here ...
6833         (expand_vector_operations_1): ... not here.
6834
6835         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
6836         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
6837         duplication.  Handle V2DI without SSE4.1.
6838         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
6839         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
6840
6841 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
6842
6843         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
6844         of "found".  Simplify return value calculation.
6845         (distance_agu_use): Ditto.
6846
6847 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
6848
6849         PR bootstrap/50621
6850         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
6851         if the function was not shrink-wrapped.
6852         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
6853         to an insn.
6854         * function.c (thread_prologue_and_epilogue_insns): Make sure the
6855         shrink_wrapped flag is set even if there is no dump file.
6856
6857 2011-10-05  DJ Delorie  <dj@redhat.com>
6858             Nick Clifton  <nickc@redhat.com>
6859
6860         * config/rx/rx.opt (mpid): Define.
6861         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
6862         (MULTILIB_DIRNAMES): Add pid.
6863         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
6864         (rx_num_interrupt_regs): New variable.
6865         (rx_gp_base_regnum): New function.  Returns the number of the
6866         small data area register.
6867         (rx_pid_base_regnum): New function.  Returns the number of the pid
6868         base register.
6869         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
6870         (rx_pid_data_operand): New function.  Returns whether an object is
6871         in the position independent data area.
6872         (rx_legitimize_address): New function.  Puts undecided PID
6873         objects in the PID data area.
6874         (rx_is_legitimate_address): Add support for PID operands.
6875         (rx_print_operand_address): Likewise.
6876         (rx_print_operand): Likewise.
6877         (rx_maybe_pidify_operand): New function.  Determine if an operand
6878         is suitable for PID addressing.
6879         (rx_gen_move_template): Add PID support.
6880         (rx_conditional_register_usage): Likewise.
6881         (rx_option_override): Initialise rx_num_interrupt_regs.
6882         (rx_is_legitimate_constant): Add support for PID constants.
6883         (TARGET_LEGITIMIZE_ADDRESS): Define.
6884         * config/rx/constraints.md (Rpid): Define.
6885         (Rpda): Define.
6886         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
6887         (tablejump): Add PID support.
6888         (mov<>): Likewise.
6889         (mov<>_internal): Likewise.
6890         (addsi3): Convert to an expander.  Add PID support.
6891         (pid_addr): New pattern.
6892         * config/rx/rx.h (CPP_SPEC): Define.
6893         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
6894         (CASE_VECTOR_PC_RELATIVE): Define.
6895         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
6896         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
6897         * doc/invoke.texi (RX Options): Document -mpid command line option.
6898
6899 2011-10-05  Richard Guenther  <rguenther@suse.de>
6900
6901         PR tree-optimization/38885
6902         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
6903         from constants.
6904
6905 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
6906
6907         * doc/invoke.texi (-fshrink-wrap): Document.
6908         * opts.c (default_options_table): Add it.
6909         * common.opt (fshrink-wrap): Add.
6910         * function.c (emit_return_into_block): Remove useless declaration.
6911         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
6912         requires_stack_frame_p, gen_return_pattern): New static functions.
6913         (emit_return_into_block): New arg simple_p.  All callers changed.
6914         Use gen_return_pattern.
6915         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
6916         * config/i386/i386.md (return): Expand into a simple_return.
6917         (simple_return): New expander):
6918         (simple_return_internal, simple_return_internal_long,
6919         simple_return_pop_internal_long, simple_return_indirect_internal):
6920         Renamed from return_internal, return_internal_long,
6921         return_pop_internal_long and return_indirect_internal; changed to use
6922         simple_return.
6923         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
6924         simple returns.
6925         (ix86_pad_returns): Likewise.
6926         * function.h (struct rtl_data): Add member shrink_wrapped.
6927         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
6928         are not jumps or sibcalls can't be compared.
6929
6930 2011-10-05  Richard Guenther  <rguenther@suse.de>
6931
6932         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
6933         vector type.
6934         (simplify_unary_expression): Handle BIT_FIELD_REFs.
6935         (try_to_simplify): Handle BIT_FIELD_REFs.
6936
6937 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
6938
6939         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
6940         * config/avr/avr.c (avr_out_addto_sp): New function.
6941         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
6942         * config/avr/avr.md (adjust_len): Add "addto_sp".
6943         (*movhi_sp): Remove insn.
6944         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
6945
6946 2011-10-05  Richard Guenther  <rguenther@suse.de>
6947
6948         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
6949         with an embedded expression valueize and fold that as well.
6950         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
6951         results from gimple_fold_stmt_to_constant_1.
6952
6953 2011-10-05  Nick Clifton  <nickc@redhat.com>
6954
6955         * config/rx/rx.md (tablejump): Add missing label.
6956         (adddi3_internal): Mark operand 0 as early-clobbered.
6957         (smaxsi3): Revert previous delta.
6958         (adc_internal): Fix whitespace in generated asm.
6959         (adc_flags): Likewise.
6960
6961 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6962
6963         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
6964         with the new widening_optab_handler.
6965
6966 2011-10-05  Richard Guenther  <rguenther@suse.de>
6967
6968         PR tree-optimization/50609
6969         * gimple-fold.c (fold_array_ctor_reference): Also handle
6970         vector typed constructors.
6971         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
6972         for vector typed constructors.
6973
6974 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
6975
6976         * config/i386/i386.c (ix86_emit_binop): New static function.
6977         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
6978         instructions.
6979         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
6980
6981 2011-10-04  David S. Miller  <davem@davemloft.net>
6982
6983         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
6984         UNSPEC_XMUL): New unspecs.
6985         (muldi3_v8plus): Use output_v8plus_mult.
6986         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
6987         New VIS 3.0 combiner patterns.
6988         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
6989         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
6990         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
6991         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
6992         builtins patterns.
6993         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
6994         (output_v8plus_mult): New function.
6995         * config/sparc/sparc-protos.h: Declare it.
6996         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
6997         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
6998         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
6999         * doc/extend.texi: Document new builtins.
7000
7001 2011-10-04  Richard Henderson  <rth@redhat.com>
7002
7003         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
7004         Avoid save_expr unless two_arguments.
7005
7006 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
7007
7008         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
7009         * config/i386/mingw32.h (CPP_SPEC): Likewise.
7010
7011 2011-10-04  David S. Miller  <davem@davemloft.net>
7012
7013         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
7014         under Linux.
7015
7016 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
7017
7018         PR tree-optimization/50604
7019         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
7020         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
7021         last argument to memcpy has size_type_node type instead of ssizetype.
7022         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
7023         instead of TREE_TYPE (len) as type for newlen.
7024
7025         PR tree-optimization/50522
7026         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
7027         TYPE_RESTRICT.
7028         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
7029         unconditionally.
7030
7031         * fold-const.c (fold_unary_loc): Don't optimize
7032         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
7033         casting the inner pointer if it isn't TYPE_RESTRICT.
7034         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
7035         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
7036
7037 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
7038
7039         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
7040
7041 2011-10-04  Jan Hubicka  <jh@suse.cz>
7042
7043         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
7044         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
7045         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
7046         * lto-cgraph.c (order_base): New static var.
7047         (lto_output_node): Stream in order.
7048         (lto_output_varpool_node): Stream out order.
7049         (input_node): Stream in order.
7050         (input_varpool_node): Stream out order.
7051         (input_cgraph_1): Initialize order base; update call of
7052         lto_input_toplevel_asms.
7053
7054 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
7055
7056         PR target/50566
7057         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
7058         prototype.
7059         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
7060         from here...
7061         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
7062         function.  Log if avr_log.legitimize_reload_address.
7063
7064 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
7065
7066         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
7067
7068 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7069
7070         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
7071         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
7072
7073 2011-10-03  David S. Miller  <davem@davemloft.net>
7074
7075         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
7076         GSR_REG an input operand to UNSPEC instead of a parallel USE.
7077         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
7078         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
7079         Reference GSR_REG in DI mode, simplify convoluted expressions by using
7080         zero_extract.
7081         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
7082
7083 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
7084
7085         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
7086
7087 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
7088             Ian Lance Taylor  <iant@google.com>
7089
7090         * godump.c (go_output_typedef): Support printing enum values that
7091         don't fit in a signed HOST_WIDE_INT.
7092
7093 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
7094
7095         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
7096         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7097         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7098         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
7099
7100 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
7101
7102         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
7103         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7104         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7105         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
7106
7107 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
7108
7109         PR target/49967
7110         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
7111         (gcc_cv_ld_static_option): Ditto.
7112         (gcc_cv_ld_dynamic_option): Ditto.
7113         * configure: Regenerate.
7114
7115 2011-10-03  David S. Miller  <davem@davemloft.net>
7116
7117         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
7118         and 'si' patterns which describe the GSR changes explicitly in the
7119         RTL using zero_extract.
7120         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
7121
7122         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
7123         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
7124
7125 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
7126
7127         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
7128         if given expression can be expanded by the target.
7129         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
7130         using target vector instructions.
7131         * optabs.h: New optab vshuffle.
7132         (expand_vec_shuffle_expr_p): New prototype.
7133         (expand_vec_shuffle_expr): New prototype.
7134         (vshuffle_optab): New optab.
7135         * genopinit.c: Adjust to support vecshuffle.
7136         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
7137         * expr.c (expand_expr_real_2): Adjust.
7138         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
7139         recognizing the cases of two and three arguments.
7140         (convert_arguments) (build_binary_op)
7141         (scalar_to_vector) (build_array_ref): Spurious whitespace.
7142         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
7143         * tree.def: New tree code VEC_SHUFFLE_EXPR.
7144         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
7145         * tree-vect-generic.c (vector_element): New function. Returns an
7146         element of the vector at the given position.
7147         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
7148         by the backend or expand an expression piecewise.
7149         (expand_vector_operations_1): Adjusted.
7150         (gate_expand_vector_operations_noop): New gate function.
7151         * Makefile.in (tree-vect-generic.o): New include.
7152         * gimple.c (get_gimple_rhs_num_ops): Adjust.
7153         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
7154         * passes.c: Move veclower down.
7155         * tree-pretty-print.c (dump_generic_node): Recognize
7156         VEC_SHUFFLE_EXPR as valid expression.
7157         * c-parser.c (c_parser_get_builtin_args): Helper function for the
7158         builtins with variable number of arguments.
7159         (c_parser_postfix_expression): Use a new helper function for
7160         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
7161         * tree-ssa-operands: Adjust.
7162         * c-family/c-common.c: New __builtin_shuffle keyword.
7163         * c-family/c-common.h: New __builtin_shuffle keyword.
7164         * gcc/doc/extend.texi: Adjust.
7165
7166         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
7167         between the vector and the type of the mask when shuffling.
7168         (vecshuffle<mode>): New expansion.
7169         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
7170         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
7171         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
7172
7173 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
7174
7175         PR tree-optimization/50587
7176         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
7177         arg0 is not a SSA_NAME.
7178
7179 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
7180
7181         * ipa-inline-analysis.c (MAX_TIME): Update comment.
7182
7183 2011-10-02  Richard Henderson  <rth@redhat.com>
7184             David S. Miller  <davem@davemloft.net>
7185
7186         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
7187         conditional insn type setting, we always emit a shift.
7188         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
7189         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
7190         * config/sparc/predicates.md (const_one_operand): Delete.
7191
7192 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
7193
7194         * invoke.texi (SPARC Options): Refer to GNU/Linux.
7195
7196 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
7197
7198         * config/mips/mips.c (mips_frame_barrier): New function.
7199         (mips_expand_prologue): Call it after allocating stack space.
7200         (mips_deallocate_stack): New function.
7201         (mips_expand_epilogue): Call mips_frame_barrier and
7202         mips_deallocate_stack.
7203
7204 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
7205
7206         PR target/49696
7207         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
7208         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
7209         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
7210
7211 2011-10-02  Jan Hubicka  <jh@suse.cz>
7212
7213         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
7214
7215         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
7216         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
7217         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
7218         functions are reachable when address is taken.
7219         * tree-sra.c (modify_function): Free dominance info.
7220
7221 2011-10-02  Jan Hubicka  <jh@suse.cz>
7222
7223         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
7224
7225         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
7226         (reset_inline_summary): New function.
7227         (compute_inline_parameters, inline_node_removal_hook,
7228         inline_edge_removal_hook): Use it.
7229         (inline_free_summary): Reset holders correctly.
7230         (inline_generate_summary): Free summary before computing it.
7231
7232 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
7233
7234         PR preprocessor/36819
7235         * incpath.c (merge_include_chains): Call free_path on
7236         heads[QUOTE] and tails[QUOTE].
7237
7238 2011-10-02  Jan Hubicka  <jh@suse.cz>
7239
7240         PR lto/47247
7241         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
7242         when resolution is already availbale from plugin.
7243         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
7244         * cgraph.c (ld_plugin_symbol_resolution): Add
7245         prevailing_def_ironly_exp.
7246         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
7247         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
7248         externally visible.
7249         * varasm.c (resolution_to_local_definition_p): Add
7250         LDPR_PREVAILING_DEF_IRONLY_EXP.
7251         (resolution_local_p): Likewise.
7252
7253 2011-10-01  David S. Miller  <davem@davemloft.net>
7254
7255         * config/sparc/sparc.opt (VIS3): New option.
7256         * doc/invoke.texi: Document it.
7257         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
7258         not capable of such instructions.
7259         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
7260         to 0x300 when TARGET_VIS3.
7261         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
7262         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
7263         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
7264         (V64N8, VASS): New mode iterators.
7265         (vis3_shift, vis3_addsub_ss): New code iterators.
7266         (vbits, vconstr): New mode attributes.
7267         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
7268         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
7269         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
7270         fmean16_vis, fpadd64_vis, fpsub64_vis,
7271         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
7272         VIS 3.0 instruction patterns.
7273         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
7274         default when targetting capable cpus.  TARGET_VIS3 implies
7275         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
7276         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
7277         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
7278         is ignored.
7279         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
7280         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
7281         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
7282         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
7283         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
7284         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
7285         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
7286         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
7287         * doc/extend.texi: Document new VIS 3.0 builtins.
7288
7289 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
7290
7291         * ira-color.c (assign_hard_reg): Fix typo.
7292
7293 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
7294
7295         * doc/extend.texi: Add missing ','.
7296
7297 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
7298
7299         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
7300         Enable -fmodulo-sched at -O2 and above.
7301         * config/c6x/c6x.md (doloop_end): New expander.
7302         (mvilc, sploop, spkernel, loop_end): New patterns.
7303         (loop_end with memory destination splitter): New.
7304         * config/c6x/c6x.c: Include "hw-doloop.h".
7305         (enum unitreqs): New.
7306         (unit_req_table): New typedef.
7307         (unit_reqs): New static variable.
7308         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
7309         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
7310         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
7311         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
7312         (struct c6x_sched_context): New member last_scheduled_iter0.
7313         (init_sched_state): Initialize it.
7314         (c6x_variable_issue): Update it.
7315         (sploop_max_uid_iter0): New static variable.
7316         (c6x_sched_reorder_1): Be careful about issuing sploop.
7317         (c6x_reorg): Call c6x_hwlooops before the final schedule.
7318
7319 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
7320
7321         PR target/50566
7322         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
7323         * config/avr/avr.c (avr_address_cost): Use it.
7324         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
7325         (avr_log_vadump): Unknown %-codes finish printing.
7326
7327 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
7328
7329         PR inline-asm/50571
7330         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
7331         input constraints allow mem and not reg, pass true instead of
7332         false as second argument to maybe_fold_reference.
7333
7334         PR tree-optimization/46309
7335         * fold-const.c (make_range, merge_ranges): Remove prototypes.
7336         (make_range_step): New function.
7337         (make_range): Use it.
7338         * tree.h (make_range_step): New prototypes.
7339         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
7340         * tree-ssa-reassoc.c: Include diagnostic-core.h.
7341         (struct range_entry): New type.
7342         (init_range_entry, range_entry_cmp, update_range_test,
7343         optimize_range_tests): New functions.
7344         (reassociate_bb): Call optimize_range_tests.
7345
7346 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
7347             Richard Guenther  <rguenther@suse.de>
7348
7349         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
7350         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
7351         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
7352         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
7353         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
7354         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
7355
7356 2011-09-30  Jan Beulich  <jbeulich@suse.com>
7357
7358         * lto-cgraph.c (output_cgraph): Remove processing of
7359         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
7360         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
7361         lto_input_toplevel_asms() instead.
7362         * lto-section-in.c (lto_section_name): Add "asm" entry.
7363         * lto-streamer-in.c (lto_input_toplevel_asms): New.
7364         * lto-streamer-out.c (lto_output_toplevel_asms): New.
7365         * lto-streamer.h (LTO_minor_version): Bump.
7366         (enum lto_section_type): Add LTO_section_asm.
7367         (struct lto_asm_header): New.
7368         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
7369         * tree-streamer.h (streamer_write_string_cst): Declare.
7370         * tree-streamer-out.c (write_string_cst): Rename to
7371         streamer_write_string_cst and make global. Handle incoming string
7372         being NULL.
7373         (streamer_write_tree_header): Adjust call to renamed function.
7374
7375 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
7376
7377         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
7378         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
7379         modulo_last_stage): New static variables.
7380         (set_modulo_params, discard_delay_pairs_above): New functions.
7381         (struct delay_pair): New member stages.
7382         (htab_i2_traverse, htab_i1_traverse): New static functions.
7383         (record_delay_slot_pair): New arg stages.  All callers changed.
7384         Record it.
7385         (pair_delay): Take stages into account.
7386         (add_delay_dependencies): Don't do so for stage pairs.
7387         (struct sched_block_state): New member modulo_epilogue.
7388         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
7389         (unschedule_insns_until): Decrease modulo_insns_scheduled.
7390         Set HARD_DEP without using or.
7391         (resolve_dependencies): New static function.
7392         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
7393         If it is true, allow only insns with INSN_EXACT_TICK set.
7394         (schedule_block): Return bool, always true for normal scheduling,
7395         true or false depending on modulo scheduling success otherwise.
7396         Add bookkeeping for modulo scheduling, and call resolve_dependencies
7397         on everything left over after a modulo schedule.
7398         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
7399         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
7400         declarations.
7401         (set_modulo_params, discard_delay_pairs_above): Declare.
7402         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
7403         * doc/invoke.texi (--param): Document it.
7404
7405         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
7406         New arg modulo_scheduling.  All callers changed.  Move note handling
7407         code here from schedule_ebbs.
7408         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
7409         out of schedule_ebbs.
7410         (schedule_ebbs): Call them.  Remove note handling code moved to
7411         schedule_ebb.
7412         * sched-int.h (schedule_ebb, schedule_ebbs_init,
7413         schedule_ebbs_finish): Declare.
7414
7415 2011-09-30  Richard Guenther  <rguenther@suse.de>
7416
7417         PR middle-end/50574
7418         * tree-cfg.c (verify_gimple_comparison): Compare component
7419         mode sizes for vector comparisons.
7420
7421 2011-09-30  Revital Eres  <revital.eres@linaro.org>
7422
7423         * ddg.c (autoinc_var_is_used_p): New function.
7424         (create_ddg_dep_from_intra_loop_link,
7425         add_cross_iteration_register_deps): Call it.
7426         * ddg.h (autoinc_var_is_used_p): Declare.
7427         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
7428         (sms_schedule): Handle instructions with REG_INC.
7429
7430 2011-09-30  Revital Eres  <revital.eres@linaro.org>
7431
7432         * modulo-sched.c (generate_reg_moves): Skip instructions that
7433         do not set a register and verify no regmoves are created for
7434         !single_set instructions.
7435
7436 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
7437
7438         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
7439         insns.
7440
7441 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7442
7443         PR target/50099
7444         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
7445         (qhs_zextenddi_op): New.
7446         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
7447         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
7448         Distinguish between ARM and Thumb2 states.
7449
7450 2011-09-30  David S. Miller  <davem@davemloft.net>
7451
7452         * config/sparc/sparc.opt (VIS2): New option.
7453         * doc/invoke.texi: Document it.
7454         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
7455         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
7456         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
7457         (define_attr type): New insn type 'edgen'.
7458         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
7459         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
7460         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
7461         patterns.
7462         * niagara.md: Handle edgen.
7463         * niagara2.md: Likewise.
7464         * ultra1_2.md: Likewise.
7465         * ultra3.md: Likewise.
7466         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
7467         to 0x200 when TARGET_VIS2.
7468         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
7469         default when targetting capable cpus.  TARGET_VIS2 implies
7470         TARGET_VIS, clear and it when TARGET_FPU is disabled.
7471         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
7472         (sparc_expand_builtin): Fix predicate indexing when builtin returns
7473         void.
7474         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
7475         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
7476         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
7477         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
7478         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
7479         * doc/extend.texi: Document new VIS 2.0 builtins.
7480
7481 2011-09-29  Nick Clifton  <nickc@redhat.com>
7482             Bernd Schmidt  <bernds@codesourcery.com>
7483
7484         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
7485         * config/frv/frvend.c: Likewise.
7486         * config/frv/frv.c (frv_function_prologue): Move misplaced
7487         CALL_ARG_LOCATION notes back to their proper locations.
7488
7489 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
7490
7491         PR target/50566
7492         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
7493         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
7494         from avr_rtx_costs.
7495         (avr_legitimate_address_p): Use avr_edump to print log information
7496         filtered by avr_log.
7497         (extra_constraint_Q): Ditto.
7498         (avr_legitimize_address): Ditto.
7499         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
7500         (final_prescan_insn): Use avr_log.rtx_costs as filter.
7501
7502 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
7503
7504         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
7505         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
7506         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
7507         NEON vector and structure modes to be tied.
7508
7509 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7510
7511         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
7512         forward declaration.
7513         (remove_duplicate_close_phi): Detect and repair creation of
7514         duplicate close-phis for a containing loop.
7515
7516 2011-09-27   Andi Kleen <ak@linux.intel.com>
7517
7518         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
7519         /dev/urandom.  Add getpid call.
7520         (compare_debug_dump_opt_spec_function): Drop getpid call.
7521
7522 2011-09-26   Andi Kleen <ak@linux.intel.com>
7523
7524         * toplev.c (init_local_tick): Try reading random seed
7525         from /dev/urandom.
7526
7527 2011-09-26   Andi Kleen <ak@linux.intel.com>
7528
7529         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
7530         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
7531         Handle numerical random seed.
7532         * lto-streamer.h (lto_file_decl_data): Change id to
7533         unsigned HOST_WIDE_INT.
7534         * toplev.c (random_seed): Add.
7535         (init_random_seed): Change for numerical random seed.
7536         (get_random_seed): Return as HOST_WIDE_INT.
7537         (set_random_seed): Crc32 existing string.
7538         * toplev.h (get_random_seed): Change to numercal return.
7539         * tree.c (get_file_function_name): Remove CRC. Handle
7540         numerical random seed.
7541
7542 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
7543
7544         PR target/50566
7545         * config.gcc (extra_objs): Add avr-log.o for $target in:
7546         avr-*-rtems*, avr-*-*.
7547         * config/avr/t-avr (avr-log.o): New rule to compile...
7548         * config/avr/avr-log.c: ...this new file.
7549         * config/avr/avr.opt (mlog=): New option.
7550         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
7551         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
7552         (avr_log_set_avr_log): New prototype.
7553         (avr_log_t): New typedef.
7554         (avr_log): New declaration.
7555         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
7556
7557 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
7558
7559         * expr.c (do_store_flag): Expand vector comparison by
7560         building an appropriate VEC_COND_EXPR.
7561         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
7562         (c_objc_common_truthvalue_conversion): Adjust.
7563         * tree-vect-generic.c (do_compare): Helper function.
7564         (expand_vector_comparison): Check if hardware supports
7565         vector comparison of the given type or expand vector piecewise.
7566         (expand_vector_operation): Treat comparison as binary
7567         operation of vector type.
7568         (expand_vector_operations_1): Adjust.
7569
7570 2011-09-29  Richard Guenther  <rguenther@suse.de>
7571
7572         * tree.c (build_opaque_vector_type): Make opaque vectors
7573         variant types of the corresponding non-opaque type.  Make
7574         sure to share opaque vector types properly.
7575
7576 2011-09-29  David S. Miller  <davem@davemloft.net>
7577
7578         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
7579         UNSPEC_ARRAY32): New unspec.
7580         (define_attr type): New type 'array'.
7581         (array{8,16,32}<P:mode>_vis): New patterns.
7582         * config/sparc/ultra1_2.md: Add reservations for 'array'.
7583         * config/sparc/ultra3.md: Likewise.
7584         * config/sparc/niagara.md: Likewise.
7585         * config/sparc/niagara2.md: Likewise.
7586         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
7587         array builtins.
7588         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
7589         __vis_array32): New.
7590         * doc/extend.texi: Document new VIS builtins.
7591
7592         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
7593         (VIS pixel-compare insn): Just use <gcond:name>.
7594
7595         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
7596         code iterator used, so just use <code>.  There are two mode iterators
7597         so explicitly use <GCM:gcm_name>.
7598
7599 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
7600
7601         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
7602         Darwin >= 9.
7603
7604 2011-09-28  David S. Miller  <davem@davemloft.net>
7605
7606         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
7607         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
7608         (UNSPEC_FCMP): New unspec.
7609         (gcond): New code iterator.
7610         (gcond_name): New code attr.
7611         (GCM): New mode iterator.
7612         (gcm_name): New mode attr.
7613         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
7614
7615 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
7616
7617         PR target/49486
7618         * config/sh/sh.md (negdi2): Move expansion into split to
7619         allow more combination options.  Add T_REG clobber.
7620         (abssi2): New expander.
7621         (*negdi2, *abssi2, *negabssi2): New insns.
7622         (cneg): Change from insn to insn_and_split.  Rename to
7623         negsi_cond.  Add alternative for non-SH4.
7624
7625 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
7626
7627         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
7628         (neon_move_hi_quad_<mode>): Likewise.
7629         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
7630
7631 2011-09-28  Nick Clifton  <nickc@redhat.com>
7632
7633         * config/rx/predicates.md (rx_minmax_operand): New predicate.
7634         Accepts immediates and a restricted subset of MEMs.
7635         * config/rx/rx.md (int_modes): New iterator.
7636         (smaxsi3, sminsi3): Delete and replace with...
7637         (smax<int_mode>3, smin<int_mode>3): New patterns.
7638         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
7639
7640 2011-09-28  Richard Guenther  <rguenther@suse.de>
7641
7642         PR middle-end/50460
7643         * fold-const.c (try_move_mult_to_index): Handle &a.array the
7644         same as &a.array[0].
7645
7646 2011-09-28  Kai Tietz  <ktietz@redhat.com>
7647
7648         * configure.ac: Add test for new section attribute
7649         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
7650         * config.in: Regenerated.
7651         * configure: Regenerated.
7652         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
7653         new section flag "e" for excluded sections, if supported.
7654         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
7655
7656 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
7657
7658         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
7659         throughout file.
7660
7661 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
7662
7663         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
7664         throughout file.
7665
7666 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
7667
7668         * output.h (SECTION_EXCLUDE): New macro.
7669         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
7670
7671 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
7672
7673         * fwprop.c (forward_propagate_and_simplify): After checking
7674         reg/subreg combinations, check whether the modes are the same.
7675
7676 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
7677             Richard Sandiford  <rdsandiford@googlemail.com>
7678
7679         * config/mips/mips.c (mips_add_cfa_restore): New function.
7680         (mips16e_save_restore_reg): Use it.
7681         (mips_restore_reg): Likewise.  Split double FPRs for
7682         REG_CFA_RESTORE notes.
7683
7684 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
7685
7686         PR middle-end/50386
7687         PR middle-end/50326
7688         * tree-sra.c (build_ref_for_model): Use the type of the field as
7689         the type of the COMPONENT_REF.
7690
7691 2011-09-27  Jeff Law  <law@redhat.com>
7692
7693         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
7694         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
7695         (find_if_case_1): Use the probability of the THEN clause when
7696         determining if speculation is profitable.
7697         (find_if_case_2): Similarly for the ELSE clause.
7698
7699 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
7700
7701         * common.opt: Add -foptimize-strlen option.
7702         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
7703         (tree-sssa-strlen.o): Add dependencies.
7704         * opts.c (default_options_table): Enable -foptimize-strlen
7705         by default at -O2 if not -Os.
7706         * passes.c (init_optimization_passes): Add pass_strlen
7707         after pass_object_sizes.
7708         * timevar.def (TV_TREE_STRLEN): New timevar.
7709         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
7710         * tree-pass.h (pass_strlen): Declare.
7711         * tree-ssa-strlen.c: New file.
7712         * c-decl.c (merge_decls): If compatible stpcpy prototype
7713         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
7714
7715 2011-09-27  Tom de Vries  <tom@codesourcery.com>
7716
7717         PR middle-end/43864
7718         * tree-ssa-tail-merge.c: New file.
7719         (struct same_succ_def): Define.
7720         (same_succ, const_same_succ): New typedef.
7721         (struct bb_cluster_def): Define.
7722         (bb_cluster, const_bb_cluster): New typedef.
7723         (struct aux_bb_info): Define.
7724         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
7725         (gvn_uses_equal): New function.
7726         (same_succ_print, same_succ_print_traverse, update_dep_bb)
7727         (stmt_update_dep_bb, local_def, same_succ_hash)
7728         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
7729         (same_succ_reset): New function.
7730         (same_succ_htab, same_succ_edge_flags)
7731         (deleted_bbs, deleted_bb_preds): New var.
7732         (debug_same_succ): New function.
7733         (worklist): New var.
7734         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
7735         (init_worklist, delete_worklist, delete_basic_block_same_succ)
7736         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
7737         (print_cluster, debug_cluster, update_rep_bb)
7738         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
7739         (all_clusters): New var.
7740         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
7741         (merge_clusters, set_cluster): New function.
7742         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
7743         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
7744         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
7745         (find_clusters_1, find_clusters): New function.
7746         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
7747         (update_bbs): New var.
7748         (apply_clusters): New function.
7749         (update_debug_stmt, update_debug_stmts): New function.
7750         (tail_merge_optimize): New function.
7751         tree-pass.h (tail_merge_optimize): Declare.
7752         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
7753         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
7754         (tree-ssa-tail-merge.o): New rule.
7755         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
7756         default at OPT_LEVELS_2_PLUS.
7757         * tree-ssa-sccvn.c (vn_valueize): Move to ...
7758         * tree-ssa-sccvn.h (vn_valueize): Here.
7759         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
7760         * common.opt (ftree-tail-merge): New switch.
7761         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
7762         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
7763         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
7764         (-ftree-tail-merge, max-tail-merge-comparisons)
7765         (max-tail-merge-iterations): New item.
7766
7767 2011-09-27  Jan Hubicka  <jh@suse.cz>
7768
7769         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
7770
7771 2011-09-27  Jan Hubicka  <jh@suse.cz>
7772
7773         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
7774         parameters passed by reference; handle loads from non-SSA scalars
7775         and update comments.
7776
7777 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
7778
7779         PR rtl-optimization/50249
7780         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
7781         instead of opnum and type.  All callers changed.  Remove useless
7782         declaration.
7783         Search forward for other reloads of the same type for the same operand
7784         using the same register; if any are found, return false.
7785         (reload_regs_reach_end_p): Same argument changes; all callers changed.
7786
7787 2011-09-27  Andi Kleen  <ak@linux.intel.com>
7788             Jan Hubicka  <jh@suse.cz>
7789
7790         * doc/invoke.texi (ffat-lto-objects): Document.
7791         * toplev.c (compile_file): Do not output assembly when doing slim lto;
7792         Output __gnu_slim_lto when doing slim lto.
7793         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
7794         (cgraph_optimize): Return early when doing slim lto.
7795         * opts.c (finish_options): Complain about lack of linker plugin
7796         when doing slim lto.
7797         * common.opt (ffat-lto-objects): New.
7798
7799 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
7800
7801         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
7802         between signed and unsigned.
7803
7804 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
7805
7806         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
7807         vectorization.
7808         (vectorizable_type_promotion): Likewise.
7809         (vect_analyze_stmt): Call vectorizable_type_demotion and
7810         vectorizable_type_promotion for basic blocks.
7811         (supportable_widening_operation): Don't assume loop vectorization.
7812         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
7813         basic blocks.  Update vectorization factor for basic block
7814         vectorization.
7815         (vect_analyze_slp_instance): Allow multiple types for basic block
7816         vectorization.  Recheck unrolling factor after construction of SLP
7817         instance.
7818
7819 2011-09-27  Richard Guenther  <rguenther@suse.de>
7820
7821         * tree-object-size.c (compute_object_sizes): Fix dumping of
7822         folded statement.
7823
7824 2011-09-27  Richard Guenther  <rguenther@suse.de>
7825
7826         PR tree-optimization/50363
7827         * tree-ssa-pre.c (create_expression_by_pieces): Handle
7828         pointer conversions in POINTER_PLUS_EXPRs properly.
7829
7830 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
7831
7832         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
7833         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
7834         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
7835         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
7836         that produce subreg moves.  Define using VQX iterators.
7837
7838 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
7839
7840         * config/avr/avr.md (ashrqi3): Split alternative "n"
7841         into its remaining parts C03, C04, C05, C06, C07 and describe
7842         impact in CC by attribute "cc" appropriately.
7843         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
7844         by digging RTX.
7845
7846 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
7847
7848         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
7849         from 3 x MAX_MACHINE_MODE.
7850         (CONSTM1_RTX): Define.
7851         * emit-rtl.c (const_tiny_rtx): Change into array of
7852         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
7853         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
7854         CONSTM1_RTX.
7855         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
7856         MODE_VECTOR_INT modes.
7857         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
7858         Optimize if one operand is CONSTM1_RTX.
7859         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
7860         into mask | x.
7861
7862 2011-09-26  David S. Miller  <davem@davemloft.net>
7863
7864         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
7865         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
7866         * config/sparc/visintrin.h: Update edge and pixel-compare
7867         intrinsics to return 'long' instead of 'int'.
7868         * doc/extend.texi: Update documentation to match.
7869         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
7870         flat, allow any instruction.  Otherwise, when V9 allow parallels
7871         which consist only of sets to registers outside of %o0 to %o5.
7872         (sparc_vis_init_builtins): Update VIS builtin types for edge
7873         and pixel-compare.
7874
7875         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
7876         is enabled, mark %gsr as global.
7877         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
7878         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
7879
7880         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
7881         which will now define __VIS and __VIS__ when -mvis is enabled.
7882         * config/sparc/t-sparc: Likewise.
7883         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
7884         and add t-sparc to tmake_file for all sparc targets.
7885         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
7886         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
7887
7888         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
7889         builtins for VIS vector addition and subtraction.
7890         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
7891         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
7892         __vis_fpsub32, __vis_fpsub32s): New.
7893         * doc/extend.texi: Document new VIS intrinsics.
7894
7895 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
7896
7897         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
7898         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
7899         EQ/NE comparisons against +/-1 in the case of unused-after,
7900         non-ld-regs target.
7901
7902 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
7903
7904         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
7905         gctx.into_ssa after push_gimplify_context.
7906
7907         * gimple.c (gimple_build_call_valist): New function.
7908         * gimple.h (gimple_build_call_valist): New prototype.
7909         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
7910         (update_gimple_call): Likewise.
7911         (update_call_from_tree): Use finish_update_gimple_call.
7912         * tree-ssa-propagate.h (update_gimple_call): New prototype.
7913
7914 2011-09-26  Richard Guenther  <rguenther@suse.de>
7915
7916         PR tree-optimization/50472
7917         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
7918         volatile references.
7919
7920 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
7921
7922         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
7923         * target.def: (addr_space_subset_p): Likewise.
7924
7925 2011-09-26  Tom de Vries  <tom@codesourcery.com>
7926
7927         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
7928         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
7929         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
7930         of new var.
7931
7932 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
7933
7934         PR target/50465
7935         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
7936         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
7937         output_reload_insisf.
7938         (adjust_len): Set default to "no".
7939         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
7940         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
7941         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
7942         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
7943         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
7944         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
7945         *lshrsi3_const): Set attribute "adjust_len".
7946         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
7947         (output_movsisf): Don't pass insn to output_reload_insisf.
7948         (adjust_insn_length): Handle new alternatives to adjust_len.
7949         Remove handling of ADJUST_LEN_YES.  Clean-up code.
7950
7951 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
7952
7953         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
7954         may_trap_p to detect loads that may trap of fault.
7955
7956 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
7957
7958         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
7959         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
7960         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
7961         prototype.
7962         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
7963         * config/avr/avr.c: Rename output_reload_insisf_1 to
7964         output_reload_in_const.
7965         (avr_popcount_each_byte): Handle SFmode, too.
7966         (output_reload_in_const): Change so it can handle HI loads, too.
7967         Use avr_popcount_each_byte to work out if scratch register must be
7968         created on the fly.
7969         (output_reload_inhi): Rewrite using output_reload_in_const and...
7970         (output_movhi): ...use it to print constants' loads.
7971         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
7972
7973 2011-09-25  David S. Miller  <davem@davemloft.net>
7974
7975         * config/sparc/constraints.md (C, P, Z): New constraints for
7976         const_doube, const_int, and const_vector "all ones" values.
7977         Make unused constraint letters comment match reality.
7978         * config/sparc/predicates.md (const_all_ones_operand,
7979         register_or_zero_or_all_ones_operand): New predicates.
7980         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
7981         as well as zero constants when VIS.
7982         (sparc_legitimate_constant_p): Likewise.
7983         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
7984         (movsf_insn): Likewise
7985         (movdi_insn_sp64): Add fone alternative.
7986         (movdf_insn_sp32_v9): Likewise.
7987         (movdf_insn_sp64): Likewise.
7988
7989         * configure.ac: Add feature check to make sure the assembler
7990         supports the FMAF, HPC, and VIS 3.0 instructions found on
7991         Niagara-3 and later cpus.
7992         * configure: Rebuild.
7993         * config.in: Likewise.
7994         * config/sparc/sparc.opt: New option '-mfmaf'.
7995         * config/sparc/sparc.md: Add float fused multiply-add patterns.
7996         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
7997         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
7998         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
7999         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
8000         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
8001         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
8002         disabled.
8003         (sparc_rtx_costs): Handle 'FMA'.
8004         * doc/invoke.texi: Document -mfmaf.
8005
8006 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
8007
8008         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
8009         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
8010         DECL_BY_REFERENCE parameters.
8011
8012 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
8013
8014         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
8015         if there is no outgoing edge.
8016
8017         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
8018         integral types.
8019
8020 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
8021
8022         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
8023         of vect_analyze_bb here.
8024         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
8025
8026 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
8027
8028         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
8029         Allow not simple iv if analyzing basic block.
8030         (create_data_ref): Update call to dr_analyze_innermost.
8031         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
8032         * tree-loop-distribution.c (generate_memset_zero): Likewise.
8033         * tree-predcom.c (find_looparound_phi): Likewise.
8034         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
8035
8036 2011-09-24  David S. Miller  <davem@davemloft.net>
8037
8038         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
8039         (SPARC_GSR_REG): Define.
8040         (FIXED_REGISTERS): Mark GSR as fixed.
8041         (CALL_USED_REGISTERS): Mark GSR as call used.
8042         (HARD_REGNO_NREGS): GSR is always 1 register.
8043         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
8044         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
8045         (REGISTER_NAMES): Add "%gsr".
8046         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
8047         (UNSPEC_WRGSR): New unspec.
8048         (GSR_REG): New constant.
8049         (type): Add new insn type 'gsr'.
8050         (fpack16_vis, fpackfix_vis, fpack32_vis,
8051         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
8052         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
8053         rdgsr_v8plus): New expanders and insns.
8054         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
8055         using patterns which show that this is a plus in addition to a
8056         modification of GSR_REG, instead of an unspec.
8057         * config/sparc/ultra1_2.md: Handle 'gsr'.
8058         * config/sparc/ultra3.md: Likewise.
8059         * config/sparc/niagara.md: Likewise.
8060         * config/sparc/niagara2.md: Likewise.
8061         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
8062         end of table.
8063         (sparc_option_override): Make -mvis imply -mv8plus.
8064         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
8065         for %gsr.
8066         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
8067         __builtin_vis_read_gsr.
8068         (sparc_expand_buildin): Handle builtins that take one argument and
8069         return void.
8070         (sparc_fold_builtin): Never fold writes to %gsr.
8071         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
8072         * doc/extend.texi: Document new VIS intrinsics.
8073
8074 2011-09-23  Jan Hubicka  <jh@suse.cz>
8075
8076         * ipa-inline-transform.c (inline_call): Add comment.
8077         * ipa-inline.h (inline_param_summary): New structure and vector.
8078         (struct inline_edge_summary): Add param field.
8079         * ipa-inline-analysis.c (CHANGED): New constant.
8080         (add_clause): Handle CHANGED and NOT_CONSTANT.
8081         (predicate_probability): New function.
8082         (dump_condition): Dump CHANGED predicate.
8083         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
8084         of unknown function wide invariant.
8085         (evaluate_conditions_for_edge): Handle change probabilities.
8086         (inline_edge_duplication_hook): Copy param summaries.
8087         (inline_edge_removal_hook): Free param summaries.
8088         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
8089         sizes; dump param summaries.
8090         (will_be_nonconstant_predicate): Use CHANGED predicate.
8091         (record_modified_bb_info): New structure.
8092         (record_modified): New function.
8093         (param_change_prob): New function.
8094         (estimate_function_body_sizes): Compute param summaries.
8095         (estimate_edge_size_and_time): Add probability argument.
8096         (estimate_node_size_and_time): Add inline_param_summary argument;
8097         handle predicate probabilities.
8098         (remap_predicate): Fix formating.
8099         (remap_edge_change_prob): New function.
8100         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
8101         (remap_edge_predicates): ... this one.
8102         (inline_merge_summary): Remap edge summaries; handle predicate
8103         probabilities; remove param summaries after we are done.
8104         (do_estimate_edge_time): Update.
8105         (do_estimate_edge_growth): Update.
8106         (read_inline_edge_summary): Read param info.
8107         (inline_read_summary): Fix formating.
8108         (write_inline_edge_summary): Write param summaries.
8109
8110 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
8111
8112         * config/i386/i386.c (ix86_print_operand): Handle %~.
8113         (ix86_print_operand_punct_valid_p): Return true also for '~'.
8114         * config/i386/sse.md (i128): New mode_attr.
8115         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
8116         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
8117         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
8118         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
8119         patterns, use "<sseinsnmode>" for "mode" attribute.
8120         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
8121         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
8122         %~128 in the patterns, use "OI" for "mode" attribute.
8123
8124 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
8125
8126         PR target/50447
8127         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
8128         "tstsi", "compare".
8129         (*cmpqi_sign_extend): Use s8_operand.
8130         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
8131         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
8132         prototypes.
8133         (out_tsthi, out_tstsi): Remove prototypes.
8134         (avr_out_tsthi, avr_out_tstsi): New prototypes.
8135         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
8136         (avr_asm_len): Negative length now sets *plen to -length.
8137         (compare_sign_p): Return bool instead of int.
8138         (compare_diff_p, compare_eq_p): Ditto and make static.
8139         (avr_out_tsthi): New function.
8140         (avr_out_tstsi): New function.
8141         (avr_out_compare): New function.
8142         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
8143         ADJUST_LEN_COMPARE.
8144
8145 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
8146
8147         PR target/50447
8148         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
8149         (addsi3): Rewrite using QI scratch register.  Adjust text
8150         peepholes using plus:SI.
8151         (*addsi3_zero_extend.hi): New insn.
8152         (*subsi3_zero_extend.hi): New insn.
8153         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
8154         (*subsi3_zero_extend): Ditto.
8155         (subsi3): Change predicate #2 to register_operand.
8156         * config/avr/avr-protos.h (avr_out_plus): New prototype.
8157         (avr_out_plus_1): New static function.
8158         (avr_out_plus): New function.
8159         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
8160
8161 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
8162
8163         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
8164         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
8165
8166 2011-09-23  Ian Lance Taylor  <iant@google.com>
8167
8168         * godump.c (go_define): Treat a single character in single quotes,
8169         or a string, as an operand.
8170
8171 2011-09-23  Martin Jambor  <mjambor@suse.cz>
8172
8173         * ipa-prop.h (jump_func_type): Updated comments.
8174         (ipa_known_type_data): New type.
8175         (ipa_jump_func): Use it to describe known type jump functions.
8176         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
8177         reflect the new known type jump function contents.
8178         (compute_known_type_jump_func): Likewise.
8179         (combine_known_type_and_ancestor_jfs): Likewise.
8180         (try_make_edge_direct_virtual_call): Likewise.
8181         (ipa_write_jump_function): Likewise.
8182         (ipa_read_jump_function): Likewise.
8183         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
8184         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
8185         (propagate_accross_jump_function): Likewise.
8186
8187 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
8188
8189         PR target/50446
8190         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
8191         (rotlqi3_4): Turn insn into expander.
8192         (*rotlqi3): New insn.
8193         (rotlhi3, rotlsi3): Support rotate left/right by 1.
8194         (*rotlhi2.1, *rotlhi2.15): New insns.
8195         (*rotlsi2.1, *rotlsi2.31): New insns.
8196         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
8197
8198 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
8199
8200         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
8201
8202 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8203
8204         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
8205
8206 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8207
8208         * reload.c (find_reloads): Set operand_mode to Pmode for address
8209         operands consisting of just a CONST_INT.
8210
8211 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
8212
8213         PR target/50482
8214         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
8215         blendv, force op_true to register if it doesn't satisfy
8216         nonimmediate_operand predicate.
8217
8218 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
8219
8220         PR middle-end/50113
8221         PR middle-end/50061
8222         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
8223         get the locate.where_pad value for register-only arguments.
8224         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
8225         (arm_pad_reg_upward): Handle null types.
8226
8227 2011-09-22  Jan Hubicka  <jh@suse.cz>
8228
8229         * ipa-inline-analysis.c: Fix overly long lines.
8230
8231 2011-09-22  Jan Hubicka  <jh@suse.cz>
8232
8233         * ipa-inline-transform.c (inline_call): Always update jump functions
8234         after inlining.
8235         * ipa-inline.c (ipa_inline): Likewise; do not call
8236         ipa_create_all_structures_for_iinln.
8237         (ipa_inline): Always free jump functions.
8238         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
8239         (remap_edge_predicates): Fix pasto.
8240         (inline_merge_summary): Remove nlined edge predicate; remove hack.
8241         (inline_analyze_function): Always initialize jump functions.
8242         (inline_generate_summary): Likewise.
8243         (inline_write_summary): Always write jump functions when ipa-cp
8244         is not doing that.
8245         (inline_read_summary): Always read jump functions when ipa-cp
8246         is not doing that.
8247         * ipa-prop.c (iinlining_processed_edges): Remove.
8248         (update_indirect_edges_after_inlining): Do not use
8249         iinlining_processed_edges; instead set param_index to -1.
8250         (propagate_info_to_inlined_callees): Only try to indirect inlining
8251         when asked to do so; update jump functions of indirect calls, too;
8252         remove jump functions of the inlined edge.
8253         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
8254         (ipa_create_all_structures_for_iinln): Remove.
8255         (ipa_free_all_structures_after_iinln): Do not free
8256         iinlining_processed_edges.
8257         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
8258
8259 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
8260
8261         * config/arm/predicates.md (expandable_comparison_operator): New
8262         predicate, extracted from...
8263         (arm_comparison_operator): ...here.
8264         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
8265         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
8266         (movdfcc): Use expandable_comparison_operator.
8267
8268 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
8269
8270         PR target/50447
8271         PR target/50465
8272         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
8273         (avr_popcount_each_byte): New prototype.
8274         * config/avr/avr.c (avr_popcount): New static function.
8275         (avr_popcount_each_byte): New function.
8276         (avr_out_bitop): New function.
8277         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
8278         avr_out_bitop.  Cleanup code.
8279         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
8280         (Ca4, Co4, Cx4): New constraints.
8281         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
8282         alternative.
8283         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
8284         (andsi3, iorsi3, xorsi3): Ditto.
8285         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
8286
8287 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
8288
8289         PR tree-optimization/50451
8290         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
8291         constant operands in reduction.
8292         (vect_get_slp_defs): Don't create vector operand for NULL scalar
8293         operand.
8294
8295 2011-09-22  David S. Miller  <davem@davemloft.net>
8296
8297         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
8298         fpack16, fpack32, fpackfix as const.
8299
8300         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
8301         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
8302         constants.  Use them everywhere.
8303
8304 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
8305
8306         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
8307         Added AND special case.  Adapted comments.
8308         (sh_rtx_costs): Added XOR and IOR case.
8309
8310 2011-09-21  Jan Hubicka  <jh@suse.cz>
8311
8312         * ipa-inline-analsis.c (compute_inline_parameters): Set
8313         cfun and current_function_decl.
8314
8315 2011-09-21  Jan Hubicka  <jh@suse.cz>
8316
8317         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
8318         handled components in parameter of builtin_constant_p.
8319         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
8320
8321 2011-09-21  Jan Hubicka  <jh@suse.cz>
8322
8323         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
8324         * ipa-inline.h (estimate_edge_time): Fix pasto.
8325         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
8326
8327 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
8328
8329         * config/i386/i386.c (ix86_expand_sse_movcc): Use
8330         blendvps, blendvpd and pblendvb if possible.
8331
8332 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
8333
8334         PR target/50464
8335         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
8336         operand 1 predicate to register_operand and operand 2 predicate
8337         to nonimmediate_operand.
8338         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
8339         xop_pcmov, force op_true to register.  Also, force op_false to
8340         register if it doesn't satisfy nonimmediate_operand predicate.
8341
8342 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
8343
8344         * config/i386/bmi2intrin.h (_mulx_u64): New.
8345         (_mulx_u32): Ditto.
8346
8347 2011-09-21  Jan Hubicka  <jh@suse.cz>
8348
8349         PR tree-optimization/50433
8350         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
8351         Use get_base_address.
8352
8353 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
8354
8355         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
8356         nonimmediate_operand instead of register_operand predicate for operands
8357         1 and 2, force them into registers if expanding them as comparison.
8358         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
8359         V8HImode force into register just operand 1.
8360
8361 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
8362
8363         PR target/45099
8364         * config/avr/avr.c (avr_function_arg_advance): Change error to
8365         warning if a fixed register is needed as function argument.
8366
8367 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
8368
8369         PR target/50449
8370         PR target/50465
8371         * config/avr/avr.md (adjust_len): New insn attribute.
8372         (*reload_insi, *reload_insf): Use it.
8373         (*movsi, *movsf): Use new interface of output_movsisf.
8374         * config/avr/avr-protos.h (output_movsisf): Change prototype.
8375         * config/avr/avr.c (output_movsisf): Ditto.
8376         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
8377         lengths of insns *reload_insi, *reload_insf.
8378         (output_reload_insisf_1): New static function.
8379         (output_reload_insisf): Use it.
8380
8381 2011-09-21  David S. Miller  <davem@davemloft.net>
8382
8383         * config/sparc/sparc.c (def_builtin): Change from macro into function.
8384         (def_builtin_const): New.
8385         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
8386         other than alignaddr and falignaddr.
8387
8388         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
8389         UNSPEC_FCMPEQ): New unspec codes.
8390         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
8391         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
8392         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
8393         new pixel compare VIS patterns.
8394         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
8395         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
8396         __vis_fcmpeq16, __vis_fcmpeq32): New.
8397         * doc/extend.texi: Document new pixel compare VIS intrinsics.
8398
8399 2011-09-21  Tom de Vries  <tom@codesourcery.com>
8400
8401         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
8402
8403 2011-09-20  David S. Miller  <davem@davemloft.net>
8404
8405         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
8406         (aligneddrl<P:mode>_vis): New pattern.
8407         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
8408         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
8409         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
8410         alignaddrl insn, and adjust edge operations for updated types.
8411         * config/sparc/visintrin.h: Likewise.
8412         * doc/extend.texi: Make typing in VIS documentation match reality.
8413
8414 2011-09-20  Terry Guo  <terry.guo@arm.com>
8415
8416         * config/arm/arm-arches.def: Add armv6s-m.
8417         * config/arm/arm-tables.opt: Regenerate.
8418
8419 2011-09-20  Wei Guozhi  <carrot@google.com>
8420
8421         PR rtl-optimization/49452
8422         * postreload.c (reload_combine): Invalidate use information when across
8423         volatile insn.
8424
8425 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
8426
8427         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
8428         Remove maintenance overhead.
8429         (haifa_sched_init, sched_finish): Update.
8430
8431 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
8432
8433         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
8434         to calculate unit, prefix_rep and prefix_data16 attributes.
8435         (*mov<mode>_internal): Ditto for unit attribute.
8436         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
8437         (*movv2sf_internal): Ditto.
8438         * config/i386/sse.md (VI1248_256): Remove mode iterator.
8439         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
8440         (*avx2_eq<mode>3): Ditto.
8441         (avx2_gt<mode>3): Ditto.
8442
8443 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
8444
8445         * config/i386/i386.md (maxmin): New code iterator.
8446         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
8447         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
8448         code iterator.
8449         (*avx2_<maxmin:code><mode>3): Macroize isn from
8450         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
8451         maxmin code iterator.
8452         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
8453         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
8454         <umaxmin:code>v16qi3.
8455
8456 2011-09-19  Alan Modra  <amodra@gmail.com>
8457             Michael Meissner  <meissner@linux.vnet.ibm.com>
8458
8459         PR target/50341
8460         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
8461         split the load of the indirect function's TOC from the call to
8462         prevent the compiler from moving the load of the new TOC above
8463         code that references the current function's TOC.
8464         (call_indirect_aix<ptrsize>_internal): Ditto.
8465         (call_indirect_aix<ptrsize>_nor11): Ditto.
8466         (call_indirect_aix<ptrsize>_internal2): Ditto.
8467         (call_value_indirect_aix<ptrsize>): Ditto.
8468         (call_value_indirect_aix<ptrsize>_internal): Ditto.
8469         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8470         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8471
8472 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
8473
8474         * config/i386/sse.md (*sse4_1_extractps): Change into
8475         define_insn_and_split, add =x 0 n and =x x n alternatives
8476         and split them after reload.
8477
8478 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
8479
8480         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
8481
8482 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
8483
8484         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
8485
8486 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
8487
8488         PR tree-optimization/50413
8489         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
8490         a basic block if one of its data-refs can't be analyzed.
8491
8492 2011-09-19  Paul Brook  <paul@codesourcery.com>
8493
8494         * config/arm/predicates.md (shift_amount_operand): Check constant
8495         shift count is in range.
8496         (const_shift_operand): Remove.
8497
8498 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
8499             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
8500
8501         PR target/50091
8502         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
8503         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
8504
8505 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
8506
8507         * config/i386/bmiintrin.h: Remove tmp.
8508         * config/i386/tbmintrin.h: Likewise.
8509
8510 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
8511
8512         PR tree-optimization/50414
8513         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
8514         MIN_EXPR.
8515
8516 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
8517
8518         PR tree-optimization/50412
8519         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
8520         acceses that require epilogue loop if vectorizing outer loop.
8521
8522 2011-09-17  David S. Miller  <davem@davemloft.net>
8523
8524         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
8525         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
8526         New unspecs.
8527         (define_attr type): New type 'edge'.
8528         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
8529         edge32l_vis): New patterns.
8530         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
8531         * config/sparc/ultra3.md: Likewise.
8532         * config/sparc/niagara.md: Likewise.
8533         * config/sparc/niagara2.md: Likewise.
8534         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
8535         builtins for VIS edge instructions.
8536         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
8537         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
8538         intrinsics.
8539         (__v8qi, __v4qi): Make unsigned.
8540         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
8541         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
8542         __vis_fpack32): Fix types.
8543         * doc/extend.texi: Document new 'edge' VIS intrinsics.
8544
8545         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
8546         divide costs.
8547         (niagara3_costs): New.
8548         (sparc_option_override): Use it.
8549         * gcc/config/sparc/niagara2.md: Adjust with more accurate
8550         Niagara-3 reservations.
8551
8552 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
8553
8554         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
8555         (sse2_avx, sseinsnmode): Add V2TI.
8556         (REDUC_SMINMAX_MODE): New mode iterator.
8557         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
8558         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
8559         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
8560         (sse2_lshrv1ti3): Rename to...
8561         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
8562         iterator.  Move before umaxmin expanders.
8563         * config/i386/i386.h (VALID_AVX256_REG_MODE,
8564         SSE_REG_MODE_P): Accept V2TImode.
8565         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
8566         V16HImode, V8SImode and V4DImode.
8567
8568         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
8569         and V4DImode.
8570         (ix86_build_signbit_mask): Likewise.
8571         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
8572         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
8573         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
8574         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
8575         (<code><mode>3) ... this.
8576         (avx2_<code><mode>3 smaxmin expand): Rename to...
8577         (<code><mode>3) ... this.
8578         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
8579         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
8580         VI8_AVX2 mode iterator.
8581         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
8582         VI8_AVX2 mode iterator.
8583         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
8584         New expanders.
8585
8586 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
8587
8588         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
8589         throughout file.
8590
8591 2011-09-16  David S. Miller  <davem@davemloft.net>
8592
8593         * config/sparc/visintrin.h: New file.
8594         * config.gcc: Add it to extra_headers on sparc.
8595
8596 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
8597
8598         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
8599         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
8600         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
8601         reduc_smin_v4sf): Adjust callers.
8602         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
8603         New expanders.
8604
8605         * config/i386/sse.md (vec_extract_hi_<mode>,
8606         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
8607         vextracti128 instead of vextractf128 for -mavx2 and
8608         integer vectors.  For V4DFmode fix up mode attribute.
8609         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
8610         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
8611         instead of V8SF mode attribute.
8612         (avx2_extracti128): Change into define_expand.
8613         * config/i386/i386.c (ix86_expand_vector_extract): Handle
8614         32-byte vector modes if TARGET_AVX.
8615
8616 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
8617
8618         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
8619         (umulqi3_highpart, smulqi3_highpart): Ditto.
8620         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
8621         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
8622         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
8623
8624 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
8625
8626         PR target/50358
8627         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
8628         (*maddqi4, *maddqi4.const): New insns.
8629         (*msubqi4, *msubqi4.const): New insns.
8630         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
8631         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
8632         HImode by 1 in the case of multiplying with a CONST_INT.
8633         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
8634
8635 2011-09-15   Jan Hubicka  <jh@suse.cz>
8636
8637         PR lto/50430
8638         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
8639         error_mark_node in the DECL_INITIAL of vtable.
8640
8641 2011-09-15   Diego Novillo  <dnovillo@google.com>
8642
8643         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
8644         @SYSROOT_CFLAGS_FOR_TARGET@.
8645         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
8646         * configure: Regenerate.
8647         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
8648         Remove setting of GCC_UNDER_TEST.
8649
8650 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
8651
8652         * config/i386/i386.c (output_fp_compare): Return %v prefixed
8653         instruction mnemonics for TARGET_AVX.
8654
8655         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
8656         "type" attribute calculation.
8657         (*movdf_internal): Ditto.
8658         (*movsf_internal): Ditto.
8659
8660 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
8661
8662         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
8663
8664 2011-09-15  Jason Merrill  <jason@redhat.com>
8665
8666         PR c++/50361
8667         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
8668
8669 2011-09-15  Jan Hubicka  <jh@suse.cz>
8670
8671         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
8672         simplify obviously true clauses.
8673         (and_predicates, or_predicates): Add conditions parameter.
8674         (inline_duplication_hoook): Update.
8675         (mark_modified): New function.
8676         (unmodified_parm): New function.
8677         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
8678         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
8679         Use unmodified_parm.
8680         (estimate_function_body_sizes): Update.
8681         (remap_predicate): Update.
8682
8683 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
8684
8685         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
8686         read-after-read dependencies in basic block SLP.
8687
8688 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8689
8690         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
8691         throughout file.
8692
8693 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8694
8695         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
8696         throughout file.
8697
8698 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8699
8700         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
8701         throughout file.
8702
8703 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8704
8705         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
8706         throughout file.
8707         * config/rs6000/constraints.md: Likewise.
8708
8709 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8710
8711         * config/microblaze/microblaze.md: Use match_test rather than
8712         eq/ne symbol_ref throughout file.
8713
8714 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8715
8716         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
8717         throughout file.
8718
8719 2011-09-14  Tom de Vries  <tom@codesourcery.com>
8720
8721         PR middle-end/50251
8722         * explow.c (emit_stack_restore): Set crtl->need_drap if
8723         stack_restore is emitted.
8724
8725 2011-09-14  Julian Brown  <julian@codesourcery.com>
8726
8727         * config/arm/arm.c (arm_override_options): Add unaligned_access
8728         support.
8729         (arm_file_start): Emit attribute for unaligned access as appropriate.
8730         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
8731         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
8732         (insv, extzv): Add unaligned-access support.
8733         (extv): Change to expander. Likewise.
8734         (extzv_t1, extv_regsi): Add helpers.
8735         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
8736         (unaligned_storesi, unaligned_storehi): New.
8737         (*extv_reg): New (previous extv implementation).
8738         * config/arm/arm.opt (munaligned_access): Add option.
8739         * config/arm/constraints.md (Uw): New constraint.
8740         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
8741         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
8742         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
8743         volatile accesses when -fstrict-volatile-bitfields is in effect.
8744         (extract_bit_field_1): Likewise.
8745
8746 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
8747
8748         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
8749         a scalar integer before applying integer-only optimisations to
8750         inner arithmetic.
8751
8752 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
8753
8754         * config/mips/mips.c (mips_expand_epilogue): Generate a
8755         simple_return only if the return address is in r31.
8756
8757 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
8758
8759         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
8760         NULL for a jump that is a cc0 insn, pick the previous insn for
8761         move_before.
8762
8763 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8764
8765         * config/v850/v850.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/pa/pa.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/mn10300/mn10300.md: Use match_test rather than eq/ne
8776         symbol_ref throughout file.
8777
8778 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8779
8780         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
8781         throughout file.
8782
8783 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8784
8785         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
8786         throughout file.
8787
8788 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8789
8790         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
8791         throughout file.
8792         * config/arm/neon.md: Likewise.
8793         * config/arm/vfp.md: Likewise.
8794         * config/arm/thumb2.md: Likewise.
8795         * config/arm/cortex-m4.md: Likewise.
8796
8797 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
8798
8799         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
8800         define_insn patterns for combine.
8801
8802 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
8803
8804         * reorg.c: Always define make_return_insns.
8805
8806 2011-09-13  Jan Hubicka  <jh@suse.cz>
8807
8808         PR other/49533
8809         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
8810
8811 2011-09-13  Jan Hubicka  <jh@suse.cz>
8812
8813         PR other/49533
8814         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
8815
8816 2011-09-13  Paul Brook  <paul@codesourcery.com>
8817
8818         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8819         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
8820         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
8821         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
8822         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
8823         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
8824         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
8825         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
8826         enabling unwind tables.
8827         (c6x_debug_unwind_info): New function.
8828         (TARGET_ARM_EABI_UNWINDER): Define.
8829         (TARGET_DEBUG_UNWIND_INFO): Define.
8830         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
8831         (TARGET_EXTRA_CFI_SECTION): Remove.
8832         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
8833         * ginclude/unwind-arm-common.h: New file.
8834
8835 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
8836
8837         PR target/50358
8838         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
8839         * config/avr/avr.md: (extend_s): New code attribute.
8840         (mul_r_d): New code attribute.
8841         (*maddqihi4, *umaddqihi4): New insns.
8842         (*msubqihi4, *umsubqihi4): New insns.
8843         (*usmaddqihi4, *sumaddqihi4): New insns.
8844         (*usmsubqihi4, *susubdqihi4): New insns.
8845         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
8846         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
8847         (*umsubqihi4.uconst.ashift): New insn-and-split.
8848         (*msubqihi4.sconst.ashift): New insn-and-split.
8849         (*sumaddqihi4.uconst): New insn-and-split.
8850         (*sumsubqihi4.uconst): New insn-and-split.
8851         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
8852         PLUS:HI and MINUS:HI.
8853
8854 2011-09-13  Revital Eres  <revital.eres@linaro.org>
8855
8856         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
8857         (optimize_sc): Adjust call to remove_node_from_ps.
8858         (sms_schedule): Add print info.
8859
8860 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
8861
8862         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
8863         flags specially.
8864
8865 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
8866
8867         PR bootstrap/50010
8868         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
8869         NOTE_INSN_CFI notes, with the exception of
8870         NOTE_INSN_SWITCH_TEXT_SECTIONS.
8871
8872 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
8873             Richard Sandiford  <rdsandiford@googlemail.com>
8874
8875         * config/mips/mips.c (mips_epilogue): New structure.
8876         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
8877         restoring registers.
8878         (mips_epilogue_emit_cfa_restores): New function.
8879         (mips_epilogue_set_cfa): Likewise.
8880         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
8881         the current CFA register from the stack, redefine the CFA in terms
8882         of the stack pointer.
8883         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
8884         to the epilogue instructions.
8885
8886 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
8887
8888         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
8889         argument.
8890         (mips16e_build_save_restore): Update accordingly.
8891
8892 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
8893
8894         PR rtl-optimization/50212
8895         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8896         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
8897
8898         PR debug/50299
8899         * calls.c (load_register_parameters): Use use_reg_mode instead
8900         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
8901         entry.
8902         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
8903         for stack CALL_INSN_FUNCTION_USAGE uses.
8904         * expr.h (use_reg_mode): New prototype.
8905         (use_reg): Changed into inline around use_reg_mode.
8906         * expr.c (use_reg): Renamed to...
8907         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
8908         mode to that mode instead of VOIDmode.
8909         * var-tracking.c (prepare_call_arguments): Don't track parameters
8910         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
8911         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
8912         EXPR_LIST mode.
8913
8914 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
8915
8916         PR target/43746
8917         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
8918         (progmem_section): New Variable.
8919         (avr_asm_init_sections): Initialize it.
8920         (TARGET_ASM_SELECT_SECTION): Define to...
8921         (avr_asm_select_section): ... this new Function.
8922         (avr_replace_prefix): New Function.
8923         (avr_asm_function_rodata_section): Use it.
8924         (avr_insert_attributes): Don't add section attribute for PROGMEM.
8925         (avr_section_type_flags): Use avr_progmem_p instead of section
8926         name to detect if object is in PROGMEM.
8927         (avr_asm_named_section): Set section name prefix for objects in
8928         PROGMEM.
8929
8930 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
8931
8932         PR bootstrap/50352
8933         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
8934         sprintf format string.
8935
8936 2011-09-12  Richard Guenther  <rguenther@suse.de>
8937
8938         PR tree-optimization/50343
8939         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
8940         that the reduction is over an SSA name before checking its definition.
8941
8942 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
8943
8944         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
8945         throughout file.
8946
8947 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
8948
8949         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
8950         throughout file.
8951         * config/mips/sb1.md: Likewise.
8952         * config/mips/predicates.md: Replace (match_test "!...")
8953         with (not (match_test "..."))
8954         * config/mips/constraints.md: Likewise.
8955
8956 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
8957
8958         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
8959         * config/arm/arm-tables.opt: Regenerate.
8960         * config/arm/arm-tune.md: Regenerate.
8961         * config/arm/arm.c (arm_file_start): Output .arch directive when
8962         user passes -mcpu=generic-*.
8963         (arm_issue_rate): Add genericv7a support.
8964         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
8965         (ASM_CPU_SPEC): New define.
8966         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
8967         * config/arm/semi.h (ASM_SPEC): Likewise.
8968         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
8969         and -mtune=generic-*.
8970
8971 2011-09-09  Richard Guenther  <rguenther@suse.de>
8972
8973         PR tree-optimization/50328
8974         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
8975         constant or default-def operand.
8976
8977 2011-09-09  Richard Guenther  <rguenther@suse.de>
8978
8979         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
8980         last statement.
8981
8982 2011-09-09  Richard Guenther  <rguenther@suse.de>
8983
8984         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
8985         instead of a statement.
8986         * gimple-fold.c (fold_stmt_inplace): Likewise.
8987         * sese.c (graphite_copy_stmts_from_block): Adjust.
8988         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
8989         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
8990         fold_stmt.
8991         (forward_propagate_addr_into_variable_array_index): Likewise.
8992         (forward_propagate_addr_expr_1): adjust.
8993         (associate_plusminus): Likewise.
8994         (ssa_forward_propagate_and_combine): Likewise.
8995         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
8996         (execute_cse_reciprocals): Likewise.
8997         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
8998
8999 2011-09-09  Nick Clifton  <nickc@redhat.com>
9000
9001         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
9002         Return a positive value to indicate that the bits at the
9003         bottom of the register should be cleared.
9004
9005 2011-09-09  Richard Guenther  <rguenther@suse.de>
9006
9007         * tree-ssa-operands.c (swap_tree_operands): Always adjust
9008         existing operand positions.
9009
9010 2011-09-09  Richard Guenther  <rguenther@suse.de>
9011
9012         PR middle-end/50333
9013         * tree-data-ref.c (split_constant_offset): Do not try to handle
9014         ternary ops.
9015
9016 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
9017
9018         PR tree-optimization/50318
9019         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
9020         typo in use of mult_rhs1 and mult_rhs2.
9021
9022 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
9023
9024         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
9025         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
9026
9027 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
9028
9029         * config/arm/arm.md (push_multi): Emit predicates.
9030         (push_fp_multi): Likewise.
9031         * config/arm/arm.c (vfp_output_fstmd): Likewise.
9032
9033 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
9034
9035         PR c++/33255 - Support -Wunused-local-typedefs warning
9036         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
9037         (pushdecl): Use the new record_locally_defined_typedef.
9038         (store_parm_decls): Allocate cfun->language.
9039         (finish_function): Use the new maybe_warn_unused_local_typedefs,
9040         and free cfun->language.
9041         (c_push_function_context): Allocate cfun->language here only if needed.
9042         (c_pop_function_context): Likewise, mark cfun->language
9043         for collection only when it should be done.
9044         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
9045         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
9046         maybe_record_local_typedef_use.
9047         * doc/invoke.texi: Update documentation for
9048         -Wunused-local-typedefs.
9049
9050 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
9051
9052         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
9053         (ix86_avoid_lea_for_add): Likewise.
9054         (ix86_avoid_lea_for_addr): Likewise.
9055         (ix86_split_lea_for_addr): Likewise.
9056
9057         * config/i386/i386.c (LEA_MAX_STALL): New.
9058         (increase_distance): Likewise.
9059         (insn_defines_reg): Likewise.
9060         (insn_uses_reg_mem): Likewise.
9061         (distance_non_agu_define_in_bb): Likewise.
9062         (distance_agu_use_in_bb): Likewise.
9063         (ix86_lea_outperforms): Likewise.
9064         (ix86_ok_to_clobber_flags): Likewise.
9065         (ix86_avoid_lea_for_add): Likewise.
9066         (ix86_avoid_lea_for_addr): Likewise.
9067         (ix86_split_lea_for_addr): Likewise.
9068         (distance_non_agu_define): Search in pred BBs added.
9069         (distance_agu_use): Search in succ BBs added.
9070         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
9071         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
9072         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
9073
9074         * config/i386/i386.md: Split added to transform non destructive
9075         add into move and add.
9076         (lea_1): transformed into insn_and_split to avoid AGU stalls.
9077         (lea<mode>_2): Likewise.
9078
9079 2011-09-08  Martin Jambor  <mjambor@suse.cz>
9080
9081         PR tree-optimization/50287
9082         * ipa-split.c (split_function): Do not create SSA names for
9083         non-gimple-registers.
9084
9085 2011-09-08  Richard Guenther  <rguenther@suse.de>
9086
9087         PR tree-optimization/19831
9088         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
9089         skip builtins with vdefs that do not really store something.
9090         (propagate_necessity): For calls to free that we can associate
9091         with an allocation function do not mark the freed pointer
9092         definition necessary.
9093         (eliminate_unnecessary_stmts): Remove a call to free if
9094         the associated call to an allocation function is not necessary.
9095
9096 2011-09-08  Richard Guenther  <rguenther@suse.de>
9097
9098         PR tree-optimization/19831
9099         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
9100         allocation functions as necessary.
9101
9102 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
9103
9104         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
9105         cut from ...
9106         (darwin_default_min_version): Amended to provide defaults
9107         for the cross directory case.
9108         (darwin_driver_init): call darwin_default_min_version unconditionally.
9109         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
9110         * config/darwin9.h: Likewise.
9111         * config/darwin10.h: Likewise.
9112         * config/rs6000/darwin7.h: Likewise.
9113
9114 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
9115
9116         PR target/50310
9117         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
9118         code early if TARGET_AVX.
9119         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
9120
9121 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
9122
9123         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
9124         duplicates.
9125
9126         PR target/50310
9127         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
9128         "mode" attribute computation.
9129
9130 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
9131
9132         * regrename.c (struct du_head): Make nregs signed.
9133         (closed_chains): Remove.
9134         (create_new_chain): Return the new chain.
9135         (chain_from_id): New static function.
9136         (dump_def_use_chain): Change argument to be an int, indicating
9137         the first ID to print.  All callers changed.
9138         (merge_overlapping_regs): Use chain_from_id.  Assert that
9139         chains don't conflict with themselves.
9140         (rename_chains): Take no argument.  Iterate over id_to_chain
9141         rather to find chains to rename.  Clear tick before the main loop.
9142         (struct incoming_reg_info): New struct.
9143         (struct bb_rename_info): New struct.
9144         (init_rename_info, set_incoming_from_chain, merge_chains): New
9145         static functions.
9146         (regrename_analyze): New static function, broken out of
9147         regrename_optimize.  Record and make use of open chain information
9148         at basic block boundaries, and merge chains where possible.
9149         (scan_rtx_reg): Make this_nregs signed.  Don't update
9150         closed_chains.
9151         (build_def_use): Return a bool to indicate success.  All callers
9152         changed.  Don't initialize global data here.
9153         (regrename_optimize): Move most code out of here into
9154         regrename_analyze.
9155         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
9156         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
9157         static inline functions.
9158         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
9159
9160         * bb-reorder.c (insert_section_boundary_note): Don't check
9161         optimize_function_for_speed_p.
9162         (gate_handle_partition_blocks): Do it here instead.
9163         (gate_handle_reorder_blocks): Move preliminary checks here ...
9164         (rest_of_handle_reorder_blocks): ... from here.
9165
9166 2011-09-07  Martin Jambor  <mjambor@suse.cz>
9167
9168         PR middle-end/50301
9169         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
9170         function index bounds.
9171         (perhaps_add_new_callers): Likewise.
9172
9173 2011-09-07  Martin Jambor  <mjambor@suse.cz>
9174
9175         PR tree-optimization/49911
9176         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
9177         enumerations to the corresponding plain integer type.
9178
9179 2011-09-07  Richard Guenther  <rguenther@suse.de>
9180
9181         PR tree-optimization/50319
9182         * tree-if-conv.c (set_bb_predicate): Assert we only set
9183         canonical predicates.
9184         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
9185         around canonical predicates.
9186         (predicate_bbs): Do not re-gimplify already canonical
9187         predicates.  Properly unshare them though.
9188         (find_phi_replacement_condition): Simplify.
9189
9190 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
9191
9192         PR target/49030
9193         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
9194         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
9195         reusing the old code from get_arm_condition_code.  Return ARM_NV
9196         for invalid comparison codes.
9197         (get_arm_condition_code): Redefine in terms of
9198         maybe_get_arm_condition_code.
9199         * config/arm/predicates.md (arm_comparison_operator): Use
9200         maybe_get_arm_condition_code.
9201
9202 2011-09-07  Richard Guenther  <rguenther@suse.de>
9203
9204         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
9205         Canonicalize negated predicates by swapping edges.
9206         (forward_propagate_into_cond): Likewise.
9207
9208 2011-09-07  Richard Guenther  <rguenther@suse.de>
9209
9210         PR tree-optimization/50213
9211         * tree-flow.h (simple_iv_increment_p): Declare.
9212         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
9213         POINTER_PLUS_EXPR.
9214         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
9215         not propagate simple IV counter increments.
9216
9217 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
9218             Iain Sandoe  <iains@gcc.gnu.org>
9219
9220         * config/rs6000/rs6000.c (compute_save_world_info): Test
9221         cfun->has_nonlocal_label to determine if the out-of-line save
9222         world call may be used.
9223
9224 2011-09-07  Nick Clifton  <nickc@redhat.com>
9225
9226         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
9227         label on the parallel part of the insn.
9228
9229 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
9230
9231         PR debug/50191
9232         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
9233         avoid_constant_pool_reference first instead of last.
9234
9235 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
9236
9237         * doc/configfiles.texi (Configuration Files): Update documentation
9238         about tm_p.h and remove FIXME comment.
9239
9240 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
9241
9242         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
9243         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
9244
9245 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
9246
9247         * config/darwin10.h Remove duplicate LIB_SPEC.
9248
9249 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
9250
9251         PR middle-end/44382
9252         * target.def (reassociation_width): New hook.
9253
9254         * doc/tm.texi.in (reassociation_width): Likewise.
9255
9256         * doc/tm.texi (reassociation_width): Likewise.
9257
9258         * doc/invoke.texi (tree-reassoc-width): New param documented.
9259
9260         * hooks.h (hook_int_uint_mode_1): New default hook.
9261
9262         * hooks.c (hook_int_uint_mode_1): Likewise.
9263
9264         * config/i386/i386.h (ix86_tune_indices): Add
9265         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
9266
9267         (TARGET_REASSOC_INT_TO_PARALLEL): New.
9268         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
9269
9270         * config/i386/i386.c (initial_ix86_tune_features): Add
9271         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
9272
9273         (ix86_reassociation_width): New function.
9274
9275         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
9276
9277         * tree-ssa-reassoc.c (get_required_cycles): New function.
9278         (get_reassociation_width): Likewise.
9279         (swap_ops_for_binary_stmt): Likewise.
9280         (rewrite_expr_tree_parallel): Likewise.
9281
9282         (rewrite_expr_tree): Refactored.  Part of code moved into
9283         swap_ops_for_binary_stmt.
9284
9285         (reassociate_bb): Now checks reassociation width to be used and
9286         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
9287
9288 2011-09-06  Richard Guenther  <rguenther@suse.de>
9289
9290         PR tree-optimization/47025
9291         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
9292         uses nothing.
9293         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
9294         BUILT_IN_FREE.
9295         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
9296         definitely points to.
9297         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9298         BUILT_IN_VA_START doesn't let its va_list argument escape.
9299         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
9300         not make any previous stores necessary.
9301
9302 2011-09-06  Martin Jambor  <mjambor@suse.cz>
9303
9304         * ipa-inline.h (struct inline_summary): Move versionable flag...
9305         * cgraph.h (struct cgraph_local_info): ...here
9306         * ipa-cp.c (determine_versionability): Use the new versionable flag.
9307         (determine_versionability): Likewise.
9308         (ipcp_versionable_function_p): Likewise.
9309         (ipcp_generate_summary): Likewise.
9310         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
9311         versionable flag.
9312         (compute_inline_parameters): Do not clear the versionable flag.
9313         (inline_read_section): Do not stream the versionable flag.
9314         (inline_write_summary): Likewise.
9315         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
9316         (input_overwrite_node): Likewise.
9317
9318 2011-09-06  Richard Guenther  <rguenther@suse.de>
9319
9320         PR tree-optimization/48149
9321         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
9322         (vn_valueize): Move earlier.
9323         (valueize_expr): Use vn_valueize.
9324         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
9325         operands.
9326         (simplify_unary_expression): Simplify.
9327
9328 2011-09-06  Richard Guenther  <rguenther@suse.de>
9329
9330         PR tree-optimization/48317
9331         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
9332         trailing array.
9333         (sizeof_vn_nary_op): New inline function.
9334         (vn_nary_op_lookup_pieces): Adjust.
9335         (vn_nary_op_insert_pieces): Likewise.
9336         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
9337         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
9338         any number of operands.
9339         (vn_nary_length_from_stmt): New function.
9340         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
9341         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
9342         sized temporary.
9343         (vn_nary_op_lookup): Likewise.
9344         (vn_nary_op_lookup_stmt): Likewise.
9345         (vn_nary_op_insert_into): Likewise.
9346         (vn_nary_op_insert_stmt): Likewise.
9347         (visit_use): Handle CONSTRUCTOR as nary.
9348         * tree-ssa-pre.c (phi_translate_1): Adjust.
9349         (create_expression_by_pieces): Likewise.
9350         (compute_avail): Likewise.
9351
9352 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
9353
9354          * config/arm/arm.c (arm_preferred_simd_mode): Check
9355         TARGET_NEON_VECTORIZE_DOUBLE instead of
9356         TARGET_NEON_VECTORIZE_QUAD.
9357         (arm_autovectorize_vector_sizes): Likewise.
9358         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
9359         mask of mvectorize-with-neon-double.  Add RejectNegative.
9360         (mvectorize-with-neon-double): New.
9361
9362 2011-09-06  Richard Guenther  <rguenther@suse.de>
9363
9364         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
9365
9366 2011-09-06  Tom de Vries  <tom@codesourcery.com>
9367
9368         * recog.c (asm_labels_ok): New function.
9369         (check_asm_operands): Use asm_labels_ok.
9370
9371 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
9372
9373         PR target/49606
9374         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
9375         (PMODE_INSN): New macro.
9376         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
9377         (mips_got_load, mips_expand_synci_loop): Likewise.
9378         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
9379         cprestore patterns.
9380         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
9381         copygp_mips16 patterns.
9382         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
9383         and use_cprestore patterns.
9384         (mips_override_options): Check for incompatible -mabi and -mlong
9385         combinations.
9386         * config/mips/mips.md (unspec_got<mode>): Rename to...
9387         (unspec_got_<mode>): ...this.
9388         (copygp_mips16): Use the Pmode iterator.
9389         (potential_cprestore, cprestore, use_cprestore): Likewise.
9390         (clear_cache, indirect_jump): Use PMODE_INSN.
9391         (indirect_jump<mode>): Rename to...
9392         (indirect_jump_<mode>): ...this.
9393         (tablejump): Use PMODE_INSN.
9394         (tablejump<mode>): Rename to...
9395         (tablejump_<mode>): ...this.
9396         (exception_receiver): Handle restore_gp_si and restore_gp_di.
9397         (restore_gp): Use the Pmode iterator.
9398         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
9399         PMODE_INSN.
9400
9401 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
9402
9403         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
9404         Fix the type of the BIT_AND_EXPR.
9405
9406 2011-09-05  David S. Miller  <davem@davemloft.net>
9407
9408         * config.host: Add driver-sparc.o and sparc/x-sparc on
9409         native sparc*-*-linux* builds.
9410         * config/sparc/driver-sparc.c: Correct Linux strings.
9411         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
9412         * config/sparc/linux64.h: Likewise.
9413         * doc/invoke.texi: Document that Linux also supports
9414         -mcpu=native and -mtune=native on sparc.
9415
9416         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
9417         PROCESSOR_NIAGARA4): New.
9418         * config/sparc/sparc.opt: Handle new processor types.
9419         * config/sparc/sparc.md: Add to "cpu" attribute.
9420         * config/sparc/sparc.h (TARGET_CPU_niagara3,
9421         TARGET_CPU_niagara4): New, treat as niagara2.
9422         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
9423         * config/sparc/sol2.h: Likewise.
9424         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
9425         * config/sparc/sparc.c (sparc_option_override): Add
9426         niagara3 and niagara4 handling.
9427         (sparc32_initialize_trampoline): Likewise.
9428         (sparc64_initialize_trampoline): Likewise.
9429         (sparc_use_sched_lookahead): Likewise.
9430         (sparc_issue_rate): Likewise.
9431         (sparc_register_move_cost): Likewise.
9432         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
9433         and niagara4 as appropriate.
9434         * doc/invoke.texi: Document new processor types.
9435         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
9436         and --with-tune options.
9437
9438         * config/sparc/sol2-64.h: Move ...
9439         * config/sparc/default-64.h: ... to here.  Update comment.
9440         * config.gcc: Update Solaris sparc to use default-64.h, also
9441         prefix this header into the list on sparc64-*-linux.
9442         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
9443         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
9444         to MASK_HARD_QUAD.
9445
9446 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
9447
9448         PR target/50289
9449         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
9450         that contain global register variable.
9451
9452 2011-09-05  Richard Guenther  <rguenther@suse.de>
9453
9454         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
9455
9456 2011-09-05  Richard Guenther  <rguenther@suse.de>
9457
9458         * stor-layout.c (layout_type): Use size_binop for array size
9459         calculations.
9460
9461 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
9462
9463         * config/avr/avr.h (progmem_section): Remove Declaration.
9464         * config/avr/avr.c (progmem_section): Make static and rename to
9465         progmem_swtable_section.
9466         (avr_output_addr_vec_elt): No need to switch sections.
9467         (avr_asm_init_sections): Use output_section_asm_op as section
9468         callback for progmem_swtable_section.
9469         (avr_output_progmem_section_asm_op): Remove Function.
9470         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
9471         (avr_asm_function_rodata_section): New static Function.
9472         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
9473         alignment 2**1 for jump tables.
9474
9475 2011-09-04  Jan Hubicka  <jh@suse.cz>
9476
9477         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
9478         parameter is SSA name.
9479
9480 2011-09-04  Richard Guenther  <rguenther@suse.de>
9481
9482         Revert
9483         2011-08-31  Richard Guenther  <rguenther@suse.de>
9484
9485         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
9486         special-casing.
9487
9488 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
9489
9490         PR debug/49901
9491         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
9492
9493 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
9494             Ira Rosen  <ira.rosen@linaro.org>
9495
9496         PR tree-optimization/50208
9497         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
9498         argument.  Check that def_stmt is inside the loop.
9499         (vect_recog_widen_mult_pattern): Update calls to
9500         vect_handle_widen_mult_by_cons.
9501         (vect_operation_fits_smaller_type): Check that def_stmt is
9502         inside the loop.
9503
9504 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
9505
9506         * tree-vectorizer.c (vect_print_dump_info): Print line
9507         number when dumping to a file.
9508         (vectorize_loops): Add new messages to dump file.
9509
9510 2011-09-03  Martin Jambor  <mjambor@suse.cz>
9511
9512         * ipa-prop.h (ipa_jump_func_t): New typedef.
9513         (struct ipa_edge_args): Removed field argument_count, field
9514         jump_functions turned into a vector.
9515         (ipa_set_cs_argument_count): Removed.
9516         (ipa_get_cs_argument_count): Updated to work on vectors.
9517         (ipa_get_ith_jump_func): Likewise.
9518         * ipa-prop.c (ipa_count_arguments): Removed.
9519         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
9520         jump functions.  Update caller.
9521         (compute_pass_through_member_ptrs): Likewise.
9522         (compute_cst_member_ptr_arguments): Likewise.
9523         (ipa_compute_jump_functions_for_edge): Get number of arguments from
9524         the statement, allocate vector.
9525         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
9526         (duplicate_ipa_jump_func_array): Removed.
9527         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
9528         (ipa_read_node_info): Allocate vector.
9529
9530 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9531
9532         PR middle-end/50232
9533         * config/pa/pa.md (return): Define "return" insn pattern.
9534         (epilogue): Use it when no epilogue is needed.
9535         * config/pa/pa.c (pa_can_use_return_insn): New function.
9536         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
9537
9538 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
9539
9540         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
9541         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
9542         Force at least BITS_PER_UNIT alignment on the new variable.
9543
9544 2011-09-02  Gary Funck <gary@intrepid.com>
9545
9546         * opts.c (print_specific_help): Fix off-by-one compare in
9547         assertion check.
9548         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9549         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
9550         Increase by +5 to allow for more languages.
9551         * optc-gen.awk: Generate #if that ensures that the number of
9552         languages is within the implementation-defined limit.
9553
9554 2011-09-02  Michael Matz  <matz@suse.de>
9555
9556         PR middle-end/50260
9557         * ipa-split.c (split_function): Call add_referenced_var.
9558
9559         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
9560         (cond_if_else_store_replacement_1): Ditto.
9561         * tree-ssa-pre.c (get_representative_for): Ditto.
9562         (create_expression_by_pieces): Ditto.
9563         (insert_into_preds_of_block): Ditto.
9564         * tree-sra.c (create_access_replacement): Ditto.
9565         (get_replaced_param_substitute): Ditto.
9566
9567 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
9568
9569         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
9570         automata_options.
9571         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
9572         (l1w, s1w, l2w, s2w): Define in the main automaton.
9573         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
9574         units.
9575         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
9576         (c6x_unit_names): Add the new units.
9577         (c6x_unit_codes): New static array.
9578         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
9579         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
9580         UNIT_QID_SIDE_OFFSET): New macros.
9581         (RESERVATION_S2): Adjust value.
9582         (c6x_option_override): Compute c6x_unit_codes.
9583         (assign_reservations): Take the unit_mask of the last instruction
9584         into account.  Detect floating point reservations by looking for
9585         the new units.  Don't assign reservations if the field is already
9586         nonzero.
9587         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
9588         (init_sched_state): Initialize it.
9589         (c6x_clear_sched_context): Free it.
9590         (insn_set_clock): Clear reservation.
9591         (prev_cycle_state): New static variable.
9592         (c6x_init_sched_context): Save it.
9593         (c6x_sched_init): Allocate space for it and clear it.
9594         (c6x_sched_dfa_pre_cycle_insn): New static function.
9595         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
9596         (c6x_variable_issue): Only record units in the unit_mask that
9597         were not set at the start of the cycle.
9598         (c6x_variable_issue): Compute and store the unit_mask from the
9599         current state.
9600         (reorg_split_calls): Ensure the new information remains correct.
9601         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
9602         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
9603         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
9604         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
9605         Add special reservations.
9606         * config/c6x/c6x-sched.md: Regenerate.
9607
9608 2011-09-02  Martin Jambor  <mjambor@suse.cz>
9609
9610         * ipa-prop.h (ipa_node_params): Removed fields
9611         called_with_var_arguments and node_versionable.
9612         (ipa_set_called_with_variable_arg): Removed.
9613         (ipa_is_called_with_var_arguments): Likewise.
9614         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
9615         (determine_versionability): Do not check for type attributes and va
9616         builtins.  Record versionability into inline summary.
9617         (initialize_node_lattices): Do not check
9618         ipa_is_called_with_var_arguments.
9619         (propagate_constants_accross_call): Likewise, ignore arguments we do
9620         not have PARM_DECLs for, set variable flag for parameters that were
9621         not passed a value.
9622         (create_specialized_node): Dump info that we cannot change signature.
9623         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
9624         number of arguments.
9625         (ipa_make_edge_direct_to_target): Likewise.
9626         (ipa_update_after_lto_read): Likewise.
9627         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
9628         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
9629         they were remapped.
9630
9631 2011-09-02  Richard Guenther  <rguenther@suse.de>
9632
9633         PR tree-optimization/27460
9634         PR middle-end/29269
9635         * doc/md.texi (vcond): Document.
9636         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
9637         optab with two modes.
9638         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
9639         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
9640         (vcond_optab): Adjust.
9641         (vcondu_optab): Likewise.
9642         (expand_vec_cond_expr_p): Adjust prototype.
9643         * optabs.c (get_vcond_icode): Adjust.
9644         (expand_vec_cond_expr_p): Likewise.
9645         (expand_vec_cond_expr): Likewise.
9646         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
9647         vector type.
9648         (vectorizable_condition): Allow differing types for comparison
9649         and result.
9650         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
9651         for the comparison.
9652         * config/i386/sse.md (vcond<mode>): Split to
9653         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
9654         vcond<V_128:mode><VI124_128:mode> and
9655         vcondu<V_128:mode><VI124_128:mode>.
9656         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
9657         (vconduv2di): Likewise.
9658         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
9659         (vcondu<mode>): Likewise.
9660         * config/ia64/vect.md (vcond<mode>): Likewise.
9661         (vcondu<mode>): Likewise.
9662         (vcondv2sf): Likewise.
9663         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
9664         * config/rs6000/paired.md (vcondv2sf): Likewise.
9665         * config/rs6000/vector.md (vcond<mode>): Likewise.
9666         (vcondu<mode>): Likewise.
9667         * config/spu/spu.md (vcond<mode>): Likewise.
9668         (vcondu<mode>): Likewise.
9669
9670 2011-09-02  Richard Guenther  <rguenther@suse.de>
9671
9672         * pretty-print.h (pp_unsigned_wide_integer): New.
9673         * tree-pretty-print.c (dump_generic_node): Print unsigned
9674         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
9675
9676 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
9677
9678         PR target/49987
9679         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
9680         valid CONST_VECTOR operands.
9681         (rs6000_expand_vector_init): Likewise.
9682
9683 2011-09-02  Martin Jambor  <mjambor@suse.cz>
9684
9685         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
9686         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
9687         BINFO_VTABLE.  Parameter delta removed, all callers updated.
9688         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
9689         BINFO_VTABLE.
9690         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
9691         all calls.
9692         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
9693         handling of thunk_delta.
9694         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
9695         (devirtualization_time_bonus): Do not handle thunk deltas.
9696         (ipcp_discover_new_direct_edges): Likewise.
9697         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9698         (try_make_edge_direct_simple_call): Likewise.
9699         (try_make_edge_direct_virtual_call): Likewise.
9700         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
9701         parameter set as unused.
9702         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
9703         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
9704         parameter set as unused.
9705         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
9706         (input_edge_opt_summary): Likewise.
9707         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
9708         BINFO_VIRTUALS at all.
9709         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
9710
9711 2011-09-02  Richard Guenther  <rguenther@suse.de>
9712
9713         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
9714         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
9715
9716 2011-08-31  Richard Guenther  <rguenther@suse.de>
9717
9718         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
9719         handling here, from ...
9720         (expand_expr_real_1): ... here.
9721         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
9722         and VEC_COND_EXPR.
9723         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
9724         a GIMPLE_TERNARY_RHS.
9725         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
9726         and VEC_COND_EXPR here ...
9727         (verify_gimple_assign_single): ... not here.
9728         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
9729         * tree-object-size.c (cond_expr_object_size): Adjust.
9730         (collect_object_sizes_for): Likewise.
9731         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
9732         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
9733         (ssa_forward_propagate_and_combine): Adjust.
9734         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
9735         as ternary.
9736         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
9737         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
9738         * tree-vect-stmt.c (vectorizable_condition): Likewise.
9739         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
9740         (extract_range_from_assignment): Likewise.
9741
9742 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
9743
9744         * config/i386/i386.md: Use (match_test ...) for attribute tests.
9745         * config/i386/mmx.md: Likewise.
9746         * config/i386/sse.md: Likewise.
9747         * config/i386/predicates.md (call_insn_operand): Use
9748         (not (match_test "...")) instead of (match_test "!...")
9749         * config/i386/constraints.md (w): Likewise.
9750
9751 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
9752
9753         * doc/md.texi: Describe the use of match_tests in attribute tests.
9754         * rtl.def (MATCH_TEST): Update commentary.
9755         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
9756         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
9757
9758 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
9759
9760         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
9761         (attr_string): Use copy_md_ptr_loc.
9762
9763 2011-08-31  Martin Jambor  <mjambor@suse.cz>
9764
9765         PR middle-end/49886
9766         * ipa-inline-analysis.c (compute_inline_parameters): Set
9767         can_change_signature of noes with typde attributes.
9768         * ipa-split.c (split_function): Do not skip any arguments if
9769         can_change_signature is set.
9770
9771 2011-08-31  Martin Jambor  <mjambor@suse.cz>
9772
9773         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
9774         check removed.
9775
9776 2011-08-31  Richard Guenther  <rguenther@suse.de>
9777
9778         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
9779         special-casing.
9780
9781 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
9782
9783         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
9784
9785 2011-08-31  Tom de Vries  <tom@codesourcery.com>
9786
9787         PR middle-end/43513
9788         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
9789         * tree-ssa-ccp.c (params.h): Include.
9790         (fold_builtin_alloca_for_var): New function.
9791         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
9792
9793 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
9794
9795         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
9796         Handle FMA option.
9797
9798 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
9799
9800         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
9801         b3 and b4 unsigned.
9802
9803 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
9804
9805         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
9806         when code is SET.
9807
9808 2011-08-30  Richard Guenther  <rguenther@suse.de>
9809
9810         PR middle-end/48571
9811         * gimple.h (maybe_fold_offset_to_address): Remove.
9812         (maybe_fold_offset_to_reference): Likewise.
9813         (maybe_fold_stmt_addition): Likewise.
9814         (may_propagate_address_into_dereference): Likewise.
9815         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
9816         array references.
9817         * gimple-fold.c (canonicalize_constructor_val): Likewise.
9818         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
9819         addresses instead.
9820         (may_propagate_address_into_dereference): Remove.
9821         (maybe_fold_offset_to_array_ref): Likewise.
9822         (maybe_fold_offset_to_reference): Likewise.
9823         (maybe_fold_offset_to_address): Likewise.
9824         (maybe_fold_stmt_addition): Likewise.
9825         (fold_gimple_assign): Do not reconstruct array references but
9826         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
9827         MEM_REF addresses.
9828         (gimple_fold_stmt_to_constant_1): Likewise.
9829         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9830         * gimplify.c (gimplify_conversion): Likewise.
9831         (gimplify_expr): Likewise.
9832
9833 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
9834
9835         * config/i386/fmaintrin.h: New.
9836         * config.gcc: Add fmaintrin.h.
9837         * config/i386/i386.c
9838         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
9839         <IX86_BUILTIN_VFMADDSD3>: Likewise.
9840         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
9841         (*fmai_fmadd_<mode>): Likewise.
9842         (*fmai_fmsub_<mode>): Likewise.
9843         (*fmai_fnmadd_<mode>): Likewise.
9844         (*fmai_fnmsub_<mode>): Likewise.
9845         * config/i386/immintrin.h: Add fmaintrin.h.
9846
9847 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
9848
9849         * genautomata.c (NO_COMB_OPTION): New macro.
9850         (no_comb_flag): New static variable.
9851         (gen_automata_option): Handle NO_COMB_OPTION.
9852         (comb_vect_p): False if no_comb_flag.
9853         (add_vect): Move computation of min/max values.  Return early if
9854         no_comb_flag.
9855         * doc/md.texi (automata_option): Document no-comb-vect.
9856
9857         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
9858         "__x86.get_pc_thunk".
9859
9860         * bb-reorder.c (insert_section_boundary_note): Only do it if
9861         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
9862
9863 2011-08-30  Christian Bruel  <christian.bruel@st.com>
9864
9865         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
9866         flag_profile_use.
9867
9868 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
9869
9870         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
9871         to off.  Document switch.
9872         * doc/invoke.texi (-msave-toc-indirect): Ditto.
9873
9874 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
9875
9876         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
9877         conditionals and comments inside macro arguments.
9878
9879 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
9880             Richard Guenther  <rguenther@suse.de>
9881
9882         * tree.h (constant_boolean_node): Adjust prototype.
9883         * fold-const.c (fold_convert_loc): Move aggregate conversion
9884         leeway down.
9885         (constant_boolean_node): Make value parameter boolean, add
9886         vector type handling.
9887         (fold_unary_loc): Use constant_boolean_node.
9888         (fold_binary_loc): Preserve types properly when folding
9889         COMPLEX_EXPR <__real x, __imag x>.
9890         * gimplify.c (gimplify_expr): Handle vector comparison.
9891         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
9892         comparison.
9893         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
9894         comparisons.
9895
9896 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
9897
9898         PR middle-end/48722
9899         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
9900         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
9901         (verify_rtl_sharing): Likewise and verify_rtx_sharing
9902         in there too.
9903         (unshare_all_rtl_in_chain): For CALL_INSNs
9904         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
9905
9906 2011-08-29  Richard Guenther  <rguenther@suse.de>
9907
9908         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
9909         on the built ADDR_EXPR.
9910
9911 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
9912
9913         PR debug/50215
9914         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
9915         before adding ENTRY_VALUE to val->locs.
9916
9917 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
9918
9919         PR bootstrap/50218
9920         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
9921         comp.
9922
9923 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
9924
9925         * doc/rtl.texi (simple_return): Document.
9926         (parallel, PATTERN): Here too.
9927         * doc/md.texi (return): Mention it's allowed to expand to simple_return
9928         in some cases.
9929         (simple_return): Document standard pattern.
9930         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
9931         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
9932         * reorg.c (function_return_label, function_simple_return_label):
9933         New static variables, replacing...
9934         (end_of_function_label): ... this.
9935         (simplejump_or_return_p): New static function.
9936         (optimize_skip, steal_delay_list_from_fallthrough,
9937         fill_slots_from_thread): Use it.
9938         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
9939         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
9940         (find_end_label): Take a new arg which is one of the two return
9941         rtxs.  Depending on which, set either function_return_label or
9942         function_simple_return_label.  All callers changed.
9943         (make_return_insns): Make both kinds.
9944         (dbr_schedule): Adjust for two kinds of end labels.
9945         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
9946         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
9947         (gen_expand, gen_split): Use ANY_RETURN_P.
9948         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
9949         * rtl.def (SIMPLE_RETURN): New code.
9950         * ifcvt.c (find_if_case_1): Be more careful about
9951         redirecting jumps to the EXIT_BLOCK.
9952         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
9953         returnjump_p_1): Handle SIMPLE_RETURNs.
9954         * print-rtl.c (print_rtx): Likewise.
9955         * rtl.c (copy_rtx): Likewise.
9956         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
9957         * combine.c (simplify_set): Likewise.
9958         * resource.c (find_dead_or_set_registers, mark_set_resources):
9959         Likewise.
9960         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
9961         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
9962         (init_emit_regs): Initialize simple_return_rtx.
9963         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
9964         force_nonfallthru_and_redirect.
9965         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
9966         (GR_SIMPLE_RETURN): New enum value.
9967         (simple_return_rtx): New macro.
9968         * basic-block.h (force_nonfallthru_and_redirect): Adjust
9969         declaration.
9970         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
9971         argument.  All callers changed.  Be careful about what kinds of
9972         returnjumps to generate.
9973         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
9974         ix86_pad_short_function): Likewise.
9975         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
9976         of return.
9977         * config/mips/mips.md (any_return): New code_iterator.
9978         (optab): Add cases for return and simple_return.
9979         (return): Expand to a simple_return.
9980         (simple_return): New pattern.
9981         (*<optab>, *<optab>_internal for any_return): New patterns.
9982         (return_internal): Remove.
9983         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
9984         a simple_return_internal.
9985
9986 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
9987
9988         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
9989         (vec_extract_lo_<mode>): Prevent both operands in memory.
9990         (vec_extract_lo_v16hi): Ditto.
9991         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
9992
9993 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
9994
9995         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
9996         (*sse2_mulv4si3): Ditto.
9997         (mulv2di3): Ditto.
9998         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
9999         notes to REG_EQUAL.
10000
10001 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
10002
10003         PR target/50202
10004         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
10005         when all outputs are unused.
10006         (sse4_2_pcmpistr): Ditto.
10007
10008 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
10009
10010         * config/i386/i386.md (round<mode>2): New expander.
10011         * config/i386/i386.c (enum ix86_builtins): Add
10012         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
10013         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
10014         descriptions.
10015         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
10016         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
10017
10018 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
10019
10020         PR middle-end/50083
10021         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
10022         only when TARGET_C99_FUNCTIONS.
10023         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
10024         <BUILT_IN_RINT{,F,L}>: Ditto.
10025
10026 2011-08-26  Michael Matz  <matz@suse.de>
10027             Jakub Jelinek  <jakub@redhat.com>
10028
10029         PR lto/50165
10030         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
10031         don't call strlen twice, use memcpy.
10032
10033 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
10034
10035         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
10036         * config/i386/bmiintrin.h: Likewise.
10037         * config/i386/lzcntintrin.h: Likewise.
10038
10039         * config/i386/immintrin.h: Include <lzcntintrin.h>,
10040         <bmiintrin.h> and <bmi2intrin.h>.
10041
10042 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10043
10044         PR target/50166
10045         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
10046         * configure: Regenerate.
10047
10048 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
10049
10050         PR c/50179
10051         * c-typeck.c (c_process_expr_stmt): Skip over nops and
10052         call mark_exp_read even if exprv is ADDR_EXPR.
10053
10054 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
10055
10056         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
10057         to df_set_dead_notes_for_mw.
10058
10059 2011-08-26  Richard Guenther  <rguenther@suse.de>
10060
10061         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
10062
10063 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
10064             Tom de Vries  <tom@codesourcery.com>
10065
10066         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
10067         (struct ivopts_data): Add loop_single_exit_p field.
10068         (niter_for_exit): Change parameter desc_p into return value.  Return
10069         desc if desc->may_be_zero.  Free desc if unused.
10070         (niter_for_single_dom_exit): Change return type.
10071         (find_induction_variables): Handle changed return type of
10072         niter_for_single_dom_exit.  Dump may_be_zero.
10073         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
10074         (set_use_iv_cost): Add and handle comp parameter.
10075         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
10076         comp argument to set_use_iv_cost.
10077         (strip_wrap_conserving_type_conversions, expr_equal_p)
10078         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
10079         (may_eliminate_iv): Add comp parameter.  Handle new return type of
10080         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
10081         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
10082         and may_eliminate_iv.
10083         (rewrite_use_compare): Move call to iv_elimination_compare to ...
10084         (may_eliminate_iv): Here.
10085         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
10086
10087 2011-08-26  Tom de Vries  <tom@codesourcery.com>
10088
10089         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
10090         accessing TREE_TYPE.
10091
10092 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
10093
10094         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
10095         (*ior_scc_scc_cmp): Likewise
10096         (*and_scc_scc): Likewise.
10097         (*and_scc_scc_cmp): Likewise.
10098         (*and_scc_scc_nodom): Likewise.
10099         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
10100
10101 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
10102
10103         * rtlanal.c (nonzero_bits1): Handle CLRSB.
10104
10105 2011-08-26  Richard Guenther  <rguenther@suse.de>
10106
10107         * expr.c (string_constant): Handle &MEM_REF.
10108
10109 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
10110
10111         * config/arm/arm.c (struct four_ints): New type.
10112         (count_insns_for_constant): Delete function.
10113         (find_best_start): Delete function.
10114         (optimal_immediate_sequence): New function.
10115         (optimal_immediate_sequence_1): New function.
10116         (arm_gen_constant): Move constant splitting code to
10117         optimal_immediate_sequence.
10118         Rewrite constant negation/invertion code.
10119
10120 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
10121
10122         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
10123         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
10124         Remove prototype. Remove static function type.
10125         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
10126         Add arch attribute.
10127         * config/arm/constraints.md (Pj, PJ): New constraints.
10128
10129 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10130
10131         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
10132         ("cortex_a9_multiply_long"): New and use above.  Handle all
10133         long multiply cases.
10134         ("cortex_a9_multiply"): Handle smmul and smmulr.
10135         ("cortex_a9_mac"): Handle smmla.
10136
10137 2011-08-25  Richard Henderson  <rth@redhat.com>
10138
10139         PR 50132
10140         PR 49864
10141         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
10142         non-constant stack adjutment.
10143         * expr.c (find_args_size_adjust): Break out from ...
10144         (fixup_args_size_notes): ... here.
10145         * rtl.h (find_args_size_adjust): Declare.
10146
10147 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
10148
10149         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
10150         sse4 and sse4_noavx.
10151         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
10152         (*pushdf_rex64): Change Y2 register constraint to x.
10153         (*movdf_internal_rex64): Ditto.
10154         (*zero_extendsidi2_rex64): Ditto.
10155         (*movdi_internal): Change Y2 register constraint to x
10156         and update "isa" attribute.
10157         (*pushdf): Ditto.
10158         (*movdf internal): Ditto.
10159         (zero_extendsidi2_1): Ditto.
10160         (*truncdfdf_mixed): Ditto.
10161         (*truncxfdf2_mixed): Ditto.
10162         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
10163         register constraint to x.
10164         (*movv2sf_internal_rex64): Ditto.
10165         (*mov<mode>_internal): Change Y2 register constraint to x
10166         and add "isa" attribute.
10167         (*movv2sf_internal): Ditto.
10168         (*vec_extractv2si_1): Ditto.
10169         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
10170         constraints to x and update "isa" attribute.
10171         (*vec_interleave_highv2df): Change Y3 registerconstraint
10172         to x and update "isa" attribute.
10173         (*vec_interleave_lowv2df): Ditto.
10174         (*vec_concatv2df): Change Y2 register constraint to x and
10175         update "isa" attribute.
10176         (sse2_loadld): Ditto.
10177         (*vec_extractv2di_1): Ditto.
10178         (*vec_dupv4si): Ditto.
10179         (*vec_dupv2di): Ditto.
10180         (*vec_concatv4si): Ditto.
10181         (vec_concatv2di): Ditto.
10182         * config/i386/constraints.md (Y2): Remove.
10183         (Y3): Ditto.
10184         (Y4): Ditto.
10185
10186 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10187
10188         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
10189         dump_def_use_chain): Don't declare.
10190         (mark_conflict, create_new_chain): Move before users.
10191         (regrename_optimize): Move to near end of file.
10192
10193 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
10194
10195         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
10196         (secondary_input_reload_class): Remove Prototype.
10197         * config/avr/avr.c (byte_immediate_operand): Remove Function.
10198         * config/avr/avr.md (setmemhi): Use u8_operand.
10199         (strlenhi): Use const0_rtx for comparison.
10200         * config/avr/avr.h (avr_reg_order): Remove Declaration.
10201
10202 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
10203
10204         * config/avr/avr.c (reg_class_tab): Make local to
10205         avr_regno_reg_class.  Return smallest register class available.
10206
10207 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
10208
10209         * config/avr/avr.c (STR_PREFIX_P): New Define.
10210         (avr_asm_declare_function_name): Use it.
10211         (avr_asm_named_section): Use it.
10212         (avr_section_type_flags): Use it.
10213
10214 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10215
10216         * doc/md.texi (automata_option): Document collapse-ndfa.
10217         * genautomata.c (COLLAPSE_OPTION): New macro.
10218         (collapse_flag): New static variable.
10219         (struct description): New member normal_decls_num.
10220         (struct automaton): New members advance_ainsn and collapse_ainsn.
10221         (gen_automata_option): Check for COLLAPSE_OPTION.
10222         (collapse_ndfa_insn_decl): New static variable.
10223         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
10224         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
10225         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
10226         necessary.  Use normal_decls_num rather than decls_num, remove
10227         test for special decls.
10228         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
10229         (make_automaton); Likewise.  Use the new advance_cycle_insn member
10230         of struct automaton.
10231         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
10232         is set.
10233         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
10234         transition.  Create the necessary transitions for it.
10235         (create_ainsns): Return void.  Take an automaton_t argument, and
10236         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
10237         callers changed.
10238         (COLLAPSE_NDFA_VALUE_NAME): New macro.
10239         (output_tables): Output code to define it.
10240         (output_internal_insn_code_evaluation): Output code to accept
10241         const0_rtx as collapse-ndfa transition.
10242         (output_default_latencies, output_print_reservation_func,
10243         output_print_description): Reorganize loops to use normal_decls_num
10244         as loop bound; remove special case for advance_cycle_insn_decl.
10245         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
10246         (check_automata_insn_issues): Check for collapse_ainsn.
10247         (expand_automate): Allocate sufficient space.  Initialize
10248         normal_decls_num.
10249
10250 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
10251
10252         * config/avr/avr.md: Fix indentation from r177991.
10253
10254 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10255
10256         * regrename.c (struct du_head): Remove member terminated.
10257         (create_new_chain): Don't initialize it.
10258         (scan_rtx_reg): Don't set or test it, test the open_chains_set
10259         bitmap instead.
10260         (tick, this_tick): New global variables, moved out of
10261         regrename_optimize.
10262         (current_id, open_chains, closed_chains, open_chains_set,
10263         live_in_chains, live_hard_regs): Reorder declarations.
10264         (dump_def_use_chain): Move function earlier in the file.
10265         (rename_chains): New static function, broken out of
10266         regrename_optimize.
10267         (regrename_optimize): Use it.  Remove #if 0'ed code.
10268
10269 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10270
10271         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
10272
10273 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
10274
10275         PR target/50172
10276         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
10277
10278 2011-08-24  Richard Guenther  <rguenther@suse.de>
10279
10280         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
10281         ref in the basic-block case.  Move stripping array-refs
10282         to the place we create an access-function for it.  Remove
10283         bogus stripping down a MEM_REF to its base.
10284
10285 2011-08-24  Richard Guenther  <rguenther@suse.de>
10286
10287         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
10288         with -fno-strict-overflow.
10289
10290 2011-08-24  Richard Guenther  <rguenther@suse.de>
10291
10292         * tree-vectorizer.c (vect_print_dump_info): Avoid the
10293         file and location clutter when dumping to dump files.
10294
10295 2011-08-24  Simon Baldwin  <simonb@google.com>
10296
10297         * gengtype-state.c (write_state): Remove timestamped header line.
10298
10299 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
10300
10301         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
10302         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
10303         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
10304         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
10305         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
10306         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
10307         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
10308         rules.
10309         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
10310
10311 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
10312
10313         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
10314
10315 2011-08-24  Richard Guenther  <rguenther@suse.de>
10316
10317         PR tree-optimization/50067
10318         * tree-data-ref.c (dr_analyze_indices): Do not add an access
10319         function for a MEM_REF base that has no evolution in the loop
10320         nest or that is not analyzable.
10321
10322 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
10323
10324         * ira.c (ira_init_register_move_cost): Check small subclasses
10325         through ira_reg_class_max_nregs and ira_available_class_regs.
10326
10327 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
10328
10329         * config/i386/constraints.md (Yp): New register constraint.
10330         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
10331         Yp register constraint.
10332         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
10333         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
10334         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
10335
10336 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
10337
10338         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
10339
10340 2011-08-23  Mark Heffernan  <meheff@google.com>
10341
10342         PR middle-end/38509
10343         * common.opt (Wfree-nonheap-object): New option.
10344         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
10345         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
10346         to warning.
10347         (expand_builtin): Make warning conditional.
10348
10349 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
10350
10351         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
10352         (length_immediate): Handle imulx, ishiftx and rotatex.
10353         (imm_disp): Ditto.
10354         (isa): Add bmi2.
10355         (enabled): Handle bmi2.
10356         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
10357         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
10358         (*bmi2_umulditi3_1): New insn pattern.
10359         (*bmi2_umulsidi3_1): Ditto.
10360         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
10361         (*bmi2_ashl<mode>3_1): New insn pattern.
10362         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
10363         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
10364         (*bmi2_ashlsi3_1_zext): New insn pattern.
10365         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
10366         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
10367         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
10368         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
10369         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
10370         flags dependency.
10371         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
10372         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
10373         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
10374         flags dependency.
10375         (*bmi2_rorx<mode>3_1): New insn pattern.
10376         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
10377         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
10378         (*rotatert<mode>3_1 splitter): Ditto.
10379         (*bmi2_rorxsi3_1_zext): New insn pattern.
10380         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
10381         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
10382         (*rotatertsi3_1_zext splitter): Ditto.
10383
10384 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
10385
10386         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
10387         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
10388         (ix86_handle_option): Handle OPT_mbmi2 case.
10389         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
10390         (x86_64-*-*): Likewise.
10391         * config/i386/bmi2intrin.h: New file.
10392         * config/i386/cpuid.h (bit_BMI2): New.
10393         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10394         BMI2 feature.
10395         * config/i386/i386-c.c (ix86_target_macros_internal):
10396         Conditionally define __BMI2__.
10397         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
10398         Handle BMI2 option.
10399         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
10400         (print_reg): New code.
10401         (ix86_print_operand): Likewise.
10402         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
10403         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
10404         IX86_BUILTIN_PEXT64.
10405         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
10406         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
10407         IX86_BUILTIN_PEXT64.
10408         * config/i386/i386.h (TARGET_BMI2): New.
10409         * config/i386/i386.md (UNSPEC_PDEP): New.
10410         (UNSPEC_PEXT): Likewise.
10411         (*bmi2_bzhi_<mode>3): Likewise.
10412         (*bmi2_pdep_<mode>3): Likewise.
10413         (*bmi2_pext_<mode>3): Likewise.
10414         * config/i386/i386.opt (mbmi2): New.
10415         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
10416         is defined.
10417         * doc/extend.texi: Document BMI2 built-in functions.
10418         * doc/invoke.texi: Document -mbmi2.
10419
10420 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
10421
10422         PR middle-end/50161
10423         * simplify-rtx.c (simplify_const_unary_operation): If
10424         op is CONST_INT, don't look at op_mode, but use instead mode.
10425         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
10426         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
10427         operation and TRUNCATE/ZERO_EXTEND if needed.
10428         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
10429         Document that operand mode must be same as operation mode,
10430         or VOIDmode.
10431         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
10432         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
10433         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
10434         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
10435         use the mode of operand for the operation and add truncate
10436         or zero_extend around if needed.
10437         * config/c6x/c6x.md (ctzdi2): Likewise.
10438         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
10439
10440 2011-08-12  Michael Matz  <matz@suse.de>
10441
10442         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
10443         (gimple_expand_cfg): Merge alignment info for coalesced pointer
10444         SSA names.
10445
10446 2011-08-23  Richard Guenther  <rguenther@suse.de>
10447
10448         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
10449         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
10450         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
10451         from ...
10452         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
10453         (mem_refs_may_alias_p): Adjust.
10454         * tree-data-ref.h (dr_may_alias_p): Adjust.
10455         * tree-data-ref.c: Include tree-affine.h.
10456         (dr_analyze_indices): Do nothing for the non-loop case.
10457         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
10458         more cases in the non-loop case.
10459         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
10460         calls to dr_may_alias_p.
10461         (write_alias_graph_to_ascii_ecc): Likewise.
10462         (write_alias_graph_to_ascii_dot): Likewise.
10463         (build_alias_set_optimal_p): Likewise.
10464
10465 2011-08-23  Richard Guenther  <rguenther@suse.de>
10466
10467         PR tree-optimization/50162
10468         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
10469
10470 2011-08-23  Richard Guenther  <rguenther@suse.de>
10471
10472         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
10473         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
10474         (create_data_ref): Also dump access functions for the created data-ref.
10475
10476 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
10477             Kirill Yukhin  <kirill.yukhin@intel.com>
10478
10479         PR target/50155
10480         * config/i386/sse.md (VI_AVX2): New.
10481         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
10482         (*<plusminus_insn><mode>3): Ditto.
10483         (<sse2_avx2>_andnot<mode>3): Ditto.
10484         (*andnot<mode>3): Fix order of cond operands.
10485         Add asserts for correct TARGET_xxx.
10486         (*<any_logic:code><mode>3): Ditto.
10487
10488 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
10489
10490         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
10491         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
10492         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
10493         regclass argument type to reg_class_t. Change 'max' and 'v' vars
10494         and return types to unsigned char. Use reg_class_contents instead
10495         of class_contents.
10496         (TARGET_CLASS_MAX_NREGS): Define.
10497
10498 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
10499
10500         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
10501         to make computed_jump_p return true.
10502
10503 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10504
10505         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
10506         (PICFLAG_FOR_TARGET): Substitute.
10507         * aclocal.m4: Regenerate.
10508         * configure: Regenerate.
10509
10510 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
10511
10512         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
10513         after reading in the pch.
10514
10515 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
10516
10517         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
10518         * configure: Regenerated.
10519
10520 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
10521
10522         PR tree-optimization/50133
10523         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
10524         from stmt instead of some statement around gsi.
10525
10526         PR middle-end/50141
10527         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
10528         innerdecl is a VAR_DECL.
10529
10530 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10531
10532         * config/i386/avx2intrin.h: New file.
10533         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
10534         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
10535         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
10536         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
10537         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
10538         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
10539         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
10540         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
10541         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
10542         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
10543         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
10544         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
10545         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
10546         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
10547         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
10548         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
10549         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
10550         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
10551         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
10552         VOID_FTYPE_PV8SI_V8SI_V8SI,
10553         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
10554         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
10555         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
10556         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
10557         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
10558         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
10559         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
10560         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
10561         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
10562         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
10563         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
10564         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
10565         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
10566         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
10567         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
10568         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
10569         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
10570         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
10571         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
10572         V4DI_FTYPE_V4DI_INT_CONVERT,
10573         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
10574         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
10575         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
10576         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
10577         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
10578         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
10579         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
10580         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
10581         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
10582         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
10583         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
10584         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
10585         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
10586         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
10587         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
10588         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
10589         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
10590         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
10591         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
10592         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
10593         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
10594         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
10595         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
10596         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
10597         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
10598         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
10599         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
10600         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
10601         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
10602         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
10603         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
10604         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
10605         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
10606         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
10607         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
10608         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
10609         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
10610         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
10611         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
10612         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
10613         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
10614         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
10615         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
10616         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
10617         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
10618         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
10619         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
10620         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
10621         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
10622         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
10623         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
10624         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
10625         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
10626         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
10627         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
10628         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
10629         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
10630         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
10631         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
10632         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
10633         IX86_BUILTIN_VBROADCASTSS_PS256,
10634         IX86_BUILTIN_VBROADCASTSD_PD256,
10635         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
10636         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
10637         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
10638         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
10639         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
10640         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
10641         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
10642         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
10643         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
10644         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
10645         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
10646         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
10647         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
10648         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
10649         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
10650         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
10651         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
10652         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
10653         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
10654         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
10655         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
10656         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
10657         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
10658         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
10659         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
10660         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
10661         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
10662         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
10663         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
10664         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
10665         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
10666         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
10667         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
10668         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
10669         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
10670         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
10671         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
10672         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
10673         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
10674         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
10675         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
10676         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
10677         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
10678         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
10679         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
10680         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
10681         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
10682         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
10683         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
10684         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
10685         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
10686         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
10687         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
10688         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
10689         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
10690         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
10691         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
10692         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
10693         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
10694         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
10695         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
10696         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
10697         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
10698         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
10699         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
10700         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
10701         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
10702         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
10703         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
10704         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
10705         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
10706         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
10707         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
10708         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
10709         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
10710         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
10711         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
10712         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
10713         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
10714         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
10715         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
10716         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
10717         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
10718         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
10719         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
10720         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
10721         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
10722         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
10723         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
10724         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
10725         IX86_BUILTIN_VBROADCASTSD_PD256,
10726         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
10727         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
10728         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
10729         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
10730         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
10731         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
10732         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
10733         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
10734         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
10735         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
10736         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
10737         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
10738         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
10739         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
10740         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
10741         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
10742         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
10743         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
10744         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
10745         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
10746         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
10747         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
10748         IX86_BUILTIN_GATHERDIV8SI.
10749         (ix86_preferred_simd_mode): Support AVX2 modes.
10750         (ix86_expand_args_builtin): Support AVX2 builtins.
10751         (ix86_expand_special_args_builtin): Likewise.
10752         (ix86_expand_builtin): Likewise.
10753         * config/i386/i386.md (UNSPEC_VPERMSI): New.
10754         (UNSPEC_VPERMDF): Likewise.
10755         (UNSPEC_VPERMSF): Likewise.
10756         (UNSPEC_VPERMDI): Likewise.
10757         (UNSPEC_VPERMTI): Likewise.
10758         (UNSPEC_GATHER): Likewise.
10759         (ssemodesuffix): Extend.
10760         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
10761         is defined.
10762         * config/i386/predicates.md (const1248_operand): New.
10763         * config/i386/sse.md (VI1_AVX2): New mode iterator.
10764         (VI2_AVX2): Likewise.
10765         (VI4_AVX2): Likewise.
10766         (VI8_AVX2): Likewise.
10767         (VIMAX_AVX2): Likewise.
10768         (SSESCALARMODE): Likewise.
10769         (VI12_AVX2): Likewise.
10770         (VI24_AVX2): Likewise.
10771         (VI124_AVX2): Likewise.
10772         (VI248_AVX2): Likewise.
10773         (VI48_AVX2): Likewise.
10774         (VI4SD_AVX2): Likewise.
10775         (V48_AVX2): Likewise.
10776         (AVX256MODE2P): Likewise.
10777         (AVXMODE48P_DI): Likewise.
10778         (sse2_avx2): New mode attribute.
10779         (ssse3_avx2): Likewise.
10780         (sse4_1_avx2): Likewise.
10781         (avx_avx2): Likewise.
10782         (ssebytemode): Likewise.
10783         (AVXTOSSEMODE): Likewise.
10784         (AVXMODE48P_DI): Likewise.
10785         (gthrfirstp): Likewise.
10786         (gthrlastp): Likewise.
10787         (lshift): New code_iterator
10788         (lshift): New code attribute.
10789         (lshift): Likewise.
10790         (ssescalarmodesuffix): Update.
10791         (sseunpackmode): Likewise.
10792         (ssepackmode): Likewise.
10793         (avx2_vec_dupv4sf): New insn pattern.
10794         (avx2_vec_dupv8sf): Likewise.
10795         (avx2_interleave_highv4di): Likewise.
10796         (avx2_interleave_lowv4di): Likewise.
10797         (avx2_umulv4siv4di3): Likewise
10798         (*avx2_umulv4siv4di3): Likewise
10799         (avx2_pmaddwd): Likewise.
10800         (*avx2_pmaddwd): Likewise.
10801         (avx2_lshrqv4di3): Likewise.
10802         (avx2_lshlqv4di3): Likewise.
10803         (avx2_lshl<mode>3): Likewise.
10804         (avx2_<umaxmin:code><mode>3): Likewise.
10805         (*avx2_<umaxmin:code><mode>3): Likewise.
10806         (avx2_<smaxmin:code><mode>3): Likewise.
10807         (*avx2_<smaxmin:code><mode>3): Likewise.
10808         (avx2_eq<mode>3): Likewise.
10809         (*avx2_eq<mode>3): Likewise.
10810         (avx2_gt<mode>3): Likewise.
10811         (avx2_interleave_highv32qi): New.
10812         (avx2_interleave_lowv32qi): Likewise.
10813         (avx2_interleave_highv16hi): Likewise.
10814         (avx2_interleave_lowv16hi): Likewise.
10815         (avx2_interleave_highv8si): Likewise.
10816         (avx2_interleave_lowv8si): Likewise.
10817         (avx2_pshufd): Likewise.
10818         (avx2_pshufd_1): Likewise.
10819         (avx2_pshuflwv3): Likewise.
10820         (avx2_pshuflw_1): Likewise.
10821         (avx2_pshufhwv3): Likewise.
10822         (avx2_pshufhw_1): Likewise.
10823         (avx2_uavgv32qi3): Likewise.
10824         (*avx2_uavgv32qi3): Likewise.
10825         (avx2_uavgv16hi3): Likewise.
10826         (*avx2_uavgv16hi3): Likewise.
10827         (avx2_pmovmskb): Likewise.
10828         (avx2_phaddwv16hi3): Likewise.
10829         (avx2_phadddv8si3): Likewise.
10830         (avx2_phaddswv16hi3): Likewise.
10831         (avx2_phsubwv16hi3): Likewise.
10832         (avx2_phsubdv8si3): Likewise.
10833         (avx2_phsubswv16hi3): Likewise.
10834         (avx2_pmaddubsw256): Likewise.
10835         (avx2_umulhrswv16hi3): Likewise.
10836         (*avx2_umulhrswv16hi3): Likewise.
10837         (avx2_packusdw): Likewise.
10838         (avx2_pblendd<mode>): Likewise.
10839         (avx2_<code>v16qiv16hi2): Likewise.
10840         (avx2_<code>v8qiv8si2): Likewise.
10841         (avx2_<code>v8hiv8si2): Likewise.
10842         (avx2_<code>v4qiv4di2): Likewise.
10843         (avx2_<code>v4hiv4di2): Likewise.
10844         (avx2_<code>v4siv4di2): Likewise.
10845         (avx2_pbroadcast<mode>): Likewise.
10846         (avx2_permvarv8si): Likewise.
10847         (avx2_permv4df): Likewise.
10848         (avx2_permvarv8sf): Likewise.
10849         (avx2_permv4di): Likewise.
10850         (avx2_permv2ti): Likewise.
10851         (avx2_vec_dupv4df): Likewise.
10852         (avx2_vbroadcasti128_<mode>): Likewise.
10853         (avx2_vec_set_lo_v4di): Likewise.
10854         (avx2_vec_set_hi_v4di): Likewise.
10855         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
10856         (avx2_extracti128): Likewise.
10857         (avx2_inserti128): Likewise.
10858         (avx2_ashrvv8si): Likewise.
10859         (avx2_ashrvv4si): Likewise.
10860         (avx2_<lshift>vv8si): Likewise.
10861         (avx2_<lshift>v<mode>): Likewise.
10862         (avx2_<lshift>vv2di): Likewise.
10863         (avx2_gathersi<mode>): Likewise.
10864         (*avx2_gathersi<mode>): Likewise.
10865         (avx2_gatherdi<mode>): Likewise.
10866         (*avx2_gatherdi<mode>): Likewise.
10867         (avx2_gatherdi<mode>256): Likewise.
10868         (*avx2_gatherdi<mode>256): Likewise.
10869         (<plusminus_insn><mode>3): Use VI mode iterator.
10870         (*<plusminus_insn><mode>3): Use VI mode iterator.
10871         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
10872         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
10873         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
10874         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
10875         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
10876         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
10877         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
10878         Use VI2_AVX2 mode iterator.
10879         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
10880         Use VI2_AVX2 mode iterator.
10881         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
10882         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
10883         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
10884         Use VI4_AVX2 mode iterator.
10885         (ashr<mode>3): Use VI24_AVX2 mode iterator.
10886         (lshr<mode>3): Use VI248_AVX2 mode iterator.
10887         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
10888         Use VIMAX_AVX2 mode iterator.
10889         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
10890         Use VI mode iterator.
10891         (*andnot<mode>3): Update for AVX2.
10892         (*<any_logic:code><mode>3): Likewise.
10893         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
10894         Use VI1_AVX mode iterator.
10895         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
10896         Use VI2_AVX mode iterator.
10897         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
10898         Use VI1_AVX mode iterator.
10899         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
10900         Use VI8_AVX2 mode iterator.
10901         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
10902         Use VI1_AVX2 mode iterator.
10903         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
10904         Use VI124_AVX2 mode iterator.
10905         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
10906         Use SSESCALARMODE mode iterator.
10907         (abs<mode>2): Use VI124_AVX2 mode iterator.
10908         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
10909         Use VI8_AVX2 mode iterator.
10910         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
10911         Use VI1_AVX2 mode iterator.
10912         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
10913         Use VI1_AVX2 mode iterator.
10914         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
10915         Use VI2_AVX2 mode iterator.
10916         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
10917         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
10918         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
10919         avx_maskstore<ssemodesuffix><avxsizesuffix>.
10920         Use V48_AVX2 mode iterator.
10921         * doc/extend.texi: Document AVX2 built-in functions.
10922         * doc/invoke.texi: Document -mavx2.
10923
10924 2011-08-22  Matthias Klose <doko@debian.org>
10925
10926         Revert:
10927         2011-07-11  Arthur Loiret  <aloiret@debian.org>
10928                     Matthias Klose <doko@debian.org>
10929         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
10930         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
10931         convention.
10932         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
10933
10934 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
10935
10936         PR bootstrap/50146
10937         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
10938         to #ifndef HONOR_REG_ALLOC_ORDER block.
10939
10940 2011-08-21  Richard Henderson  <rth@redhat.com>
10941
10942         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
10943         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
10944         * resource.c (next_insn_no_annul): Likewise.
10945         (mark_set_resources): Likewise.
10946         * reorg.c (delete_from_delay_slot): Likewise.
10947         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
10948         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
10949
10950 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
10951
10952         * config/i386/i386.md (any_div): Remove.
10953         (sgnprefix): Update for removal.
10954         (u): Ditto.
10955
10956 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
10957
10958         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
10959         for ira_reg_class_max_nregs.  Increase pressure by 1.
10960         (mark_pseudo_regno_subword_dead): Use allocno class
10961         for ira_reg_class_max_nregs.
10962
10963 2011-08-20  Richard Henderson  <rth@redhat.com>
10964
10965         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
10966         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
10967         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
10968         config/c6x/ltf.c: Adjust include path for soft-fp.
10969
10970 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
10971
10972         PR other/46770
10973         * config.gcc (tm_file): Add initfini-array.h if
10974         .init_arrary/.fini_array are supported.
10975
10976         * crtstuff.c: Don't generate .ctors nor .dtors sections if
10977         USE_INITFINI_ARRAY is defined.
10978
10979         * output.h (default_elf_init_array_asm_out_constructor): New.
10980         (default_elf_fini_array_asm_out_destructor): Likewise.
10981         * varasm.c (elf_init_array_section): Likewise.
10982         (elf_fini_array_section): Likewise.
10983         (get_elf_initfini_array_priority_section): Likewise.
10984         (default_elf_init_array_asm_out_constructor): Likewise.
10985         (default_elf_fini_array_asm_out_destructor): Likewise.
10986
10987         * config/initfini-array.h: New.
10988
10989 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
10990
10991         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
10992         OK for ST_REGS and FP_REGS before taking those classes into account.
10993
10994 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
10995
10996         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
10997         before checking for annulled branches.
10998
10999 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
11000
11001         * config/i386/i386.c (ix86_binary_operator_ok): Use
11002         satisfies_constraint_L.
11003
11004 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
11005             Michael Matz  <matz@suse.de>
11006
11007         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
11008         trunc (a + copysign (nextafter (0.5, 0.0), a)).
11009
11010 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
11011
11012         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11013         * doc/tm.texi: Regenerate.
11014         * targhooks.c (default_preferred_output_reload_class): Don't use
11015         PREFERRED_OUTPUT_RELOAD_CLASS macro.
11016         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
11017
11018 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
11019
11020         PR tree-optimization/48739
11021         * tree-ssa.c: Include cfgloop.h.
11022         (execute_update_addresses_taken): When updating ssa, if in loop closed
11023         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
11024         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
11025
11026 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
11027
11028         PR rtl-optimization/49936
11029         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
11030         for calculation of max register move costs.
11031
11032 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
11033
11034         * c-parser.c (c_parser_postfix_expression): Convert operands of
11035         __builtin_complex to their semantic types.
11036
11037 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
11038
11039         PR middle-end/49721
11040         * explow.c (convert_memory_address_addr_space): Also permute the
11041         conversion and addition of constant for zero-extend.
11042
11043 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
11044
11045         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
11046         * doc/extend.texi (__builtin_complex): Document.
11047
11048 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11049
11050         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
11051         beyond conversions.
11052         (convert_mult_to_widen): Convert constant inputs to the right type.
11053         (convert_plusminus_to_widen): Don't automatically reject inputs that
11054         are not an SSA_NAME.
11055         Convert constant inputs to the right type.
11056
11057 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11058
11059         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
11060         to the correct type.
11061
11062 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11063
11064         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
11065         unsigned inputs of different modes.
11066         (convert_plusminus_to_widen): Likewise.
11067
11068 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11069
11070         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
11071         'type'.
11072         Use 'type' from caller, not inferred from 'rhs'.
11073         Don't reject non-conversion statements. Do return lhs in this case.
11074         (is_widening_mult_p): Add new argument 'type'.
11075         Use 'type' from caller, not inferred from 'stmt'.
11076         Pass type to is_widening_mult_rhs_p.
11077         (convert_mult_to_widen): Pass type to is_widening_mult_p.
11078         (convert_plusminus_to_widen): Likewise.
11079
11080 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11081
11082         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
11083         Ensure the the larger type is the first operand.
11084
11085 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11086
11087         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
11088         unsupported unsigned multiplies to signed.
11089         (convert_plusminus_to_widen): Likewise.
11090
11091 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11092
11093         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
11094         conversion statement separating multiply-and-accumulate.
11095
11096 2011-08-19  Richard Guenther  <rguenther@suse.de>
11097
11098         PR tree-optimization/50067
11099         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
11100         offset only if we accounted for it.
11101
11102 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11103
11104         * config/arm/arm.md (maddhidi4): Remove '*' from name.
11105         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
11106         * optabs.c (find_widening_optab_handler_and_mode): New function.
11107         (expand_widen_pattern_expr): Use find_widening_optab_handler.
11108         (expand_binop_directly): Likewise.
11109         (expand_binop): Likewise.
11110         * optabs.h (find_widening_optab_handler): New macro define.
11111         (find_widening_optab_handler_and_mode): New prototype.
11112         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
11113         type precision rules.
11114         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
11115         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
11116         (is_widening_mult_rhs_p): Allow widening by more than one mode.
11117         Explicitly disallow mis-matched input types.
11118         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
11119         input types to fit the new handler.
11120         (convert_plusminus_to_widen): Likewise.
11121
11122 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11123
11124         * expr.c (expand_expr_real_2): Use widening_optab_handler.
11125         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
11126         (gen_insn): $N now means $a must be wider than $b, not consecutive.
11127         * optabs.c (widened_mode): New function.
11128         (expand_widen_pattern_expr): Use widening_optab_handler.
11129         (expand_binop_directly): Likewise.
11130         (expand_binop): Likewise.
11131         * optabs.h (widening_optab_handlers): New struct.
11132         (optab_d): New member, 'widening'.
11133         (widening_optab_handler): New function.
11134         (set_widening_optab_handler): New function.
11135         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
11136         widening_optab_handler.
11137         (convert_plusminus_to_widen): Likewise.
11138
11139 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
11140
11141         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
11142         pedantic.
11143         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
11144         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
11145
11146 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
11147
11148         * opth-gen.awk: Do not declare target save/restore structures and
11149         functions if IN_RTS defined.
11150
11151 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11152
11153         PR target/49437
11154         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
11155         when stack was realigned in interrupt handler prologue.
11156
11157 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
11158
11159         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
11160         (quals_from_declspecs): Assert _Noreturn not present.
11161         (grokdeclarator): Handle _Noreturn.
11162         (build_null_declspecs): Initialize noreturn_p.
11163         (declspecs_add_scspec): Handle RID_NORETURN.
11164         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
11165         (c_parser_attributes): Handle RID_NORETURN.
11166         * c-tree.h (struct c_declspecs): Add noreturn_p.
11167         * ginclude/stdnoreturn.h: New.
11168         * Makefile.in (USER_H): Add stdnoreturn.h.
11169
11170 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
11171
11172         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
11173         (OPTION_MASK_ISA_AVX_UNSET): Update.
11174         (OPTION_MASK_ISA_AVX2_UNSET): New.
11175         (ix86_handle_option): Handle OPT_mavx2 case.
11176         * config/i386/cpuid.h (bit_AVX2): New.
11177         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
11178         AVX2 feature.
11179         * config/i386/i386-c.c (ix86_target_macros_internal):
11180         Conditionally define __AVX2__.
11181         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
11182         Define "core-avx2" processor alias.  Handle avx2 option.
11183         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
11184         * config/i386/i386.h (TARGET_AVX2): New.
11185         * config/i386/i386.opt (mavx2): New.
11186         * doc/invoke.texi: Document -mavx2.
11187
11188 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
11189
11190         PR rtl-optimization/49890
11191         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
11192         subclasses of class which is superset of a pressure class.
11193
11194 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
11195             Igor Zamyatin <igor.zamyatin@intel.com>
11196
11197         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
11198         with HOST_WIDE_INT for isa_flag.
11199         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
11200         isa variables.
11201
11202         * config/i386/i386.c (ix86_target_string): Replace int with
11203         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
11204         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
11205         (pta_flags): Removed.
11206         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
11207         (pta): Use HOST_WIDE_INT on flags.
11208         (builtin_isa): Use HOST_WIDE_INT on isa.
11209         (ix86_add_new_builtins): Likewise.
11210         (def_builtin): Use HOST_WIDE_INT on mask.
11211         (def_builtin_const): Likewise.
11212         (builtin_description): Likewise.
11213
11214         * config/i386/i386.opt (ix86_isa_flags): Replace int with
11215         HOST_WIDE_INT.
11216         (ix86_isa_flags_explicit): Likewise.
11217         (x_ix86_isa_flags_explicit): Likewise.
11218
11219 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
11220
11221         PR rtl-optimization/50107
11222         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
11223         (ira_hard_reg_in_set_p): New.
11224
11225         * ira-color.c (calculate_saved_nregs): New.
11226         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
11227         hard regs.
11228         (allocno_reload_assign, fast_allocation): Use
11229         ira_hard_reg_set_intersection_p instead of
11230         ira_hard_reg_not_in_set_p.
11231
11232         * ira.c (setup_reg_renumber): Use
11233         ira_hard_reg_set_intersection_p instead of
11234         ira_hard_reg_not_in_set_p.
11235         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
11236         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
11237
11238         * ira-costs.c (ira_tune_allocno_costs): Use
11239         ira_hard_reg_set_intersection_p instead of
11240         ira_hard_reg_not_in_set_p.
11241
11242 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
11243             Igor Zamyatin <igor.zamyatin@intel.com>
11244
11245         * hwint.h (HOST_WIDE_INT_1): New.
11246
11247         * opt-functions.awk (switch_bit_fields): Initialize the
11248         host_wide_int field.
11249         (host_wide_int_var_name): New.
11250         (var_type_struct): Check and return HOST_WIDE_INT.
11251
11252         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
11253
11254         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
11255
11256         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
11257         check masks for HOST_WIDE_INT.
11258
11259         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
11260         (option_enabled): Likewise.
11261         (get_option_state): Likewise.
11262
11263         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
11264         to HOST_WIDE_INT.
11265
11266 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11267             Marc Glisse  <marc.glisse@normalesup.org>
11268
11269         PR libstdc++-v3/1773
11270         * target.def (decl_mangling_context): New C++ hook.
11271         * doc/tm.texi: Regenerate.
11272         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
11273         * config/sol2-protos.h: Group by source file.
11274         (solaris_cxx_decl_mangling_context): Declare.
11275         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
11276         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
11277         Use $<.
11278         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
11279         Add sol2-stubs.o to extra_objs.
11280
11281 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
11282
11283         PR target/50009
11284         * stor-layout.c (update_alignment_for_field): Don't ICE on
11285         packed flexible array members if ms_bitfield_layout_p.
11286
11287         PR target/50092
11288         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
11289         on the result before returning it.
11290
11291         PR debug/50017
11292         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
11293         is a debug stmt, use location of the first non-debug stmt after it.
11294
11295 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11296
11297         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
11298         (arm_size_rtx_costs): Likewise.
11299
11300 2011-08-18  Richard Guenther  <rguenther@suse.de>
11301
11302         * tree.h (tree_int_cst_msb): Remove.
11303         * tree.c (tree_int_cst_msb): Likewise.
11304         (tree_int_cst_sign_bit): Move from ...
11305         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
11306
11307 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11308
11309         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
11310         * doc/tm.texi: Regenerate.
11311         * target.def (rtx_costs): Add an opno parameter.
11312         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
11313         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
11314         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
11315         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
11316         * cse.c (COST_IN): Add an opno parameter.
11317         (notreg_cost): Likewise.  Update call to rtx_cost.
11318         (COST, fold_rtx): Update accordingly.
11319         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
11320         * expmed.c (emit_store_flag): Likewise.
11321         * optabs.c (avoid_expensive_constant): Add an opno parameter.
11322         Update call to rtx_cost.
11323         (expand_binop_directly, expand_binop): Likewise.
11324         (expand_twoval_binop, prepare_cmp_insn): Likewise.
11325         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
11326         (set_src_cost, get_full_set_src_cost): Update accordingly.
11327         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
11328         to target hook.
11329         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
11330         (default_adress_cost): Update calls to rtx_cost.
11331
11332         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
11333         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
11334         (arm_rtx_costs): Add an opno parameter.
11335         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
11336         adjust any recursive rtx-cost calls.
11337         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
11338         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
11339         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
11340         * config/cris/cris.c (cris_rtx_costs): Likewise.
11341         * config/frv/frv.c (frv_rtx_costs): Likewise.
11342         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
11343         * config/i386/i386.c (ix86_rtx_costs): Likewise.
11344         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
11345         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
11346         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
11347         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
11348         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
11349         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
11350         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
11351         * config/mep/mep.c (mep_rtx_cost): Likewise.
11352         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
11353         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
11354         (mips_zero_extend_cost): Add an opno parameter.
11355         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
11356         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
11357         to rtx_cost.
11358         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
11359         rtx-cost calls.
11360         * config/pa/pa.c (hppa_rtx_costs): Likewise.
11361         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
11362         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
11363         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
11364         (rs6000_debug_rtx_costs): Likewise.
11365         * config/s390/s390.c (s390_rtx_costs): Likewise.
11366         * config/score/score-protos.h (score_rtx_costs): Likewise.
11367         * config/score/score.c (score_rtx_costs): Likewise.
11368         * config/sh/sh.c (andcosts): Update call to rtx_cost.
11369         (sh_rtx_costs): Add an opno parameter.
11370         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
11371         * config/spu/spu.c (spu_rtx_costs): Likewise.
11372         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
11373         * config/v850/v850.c (v850_rtx_costs): Likewise.
11374         * config/vax/vax.c (vax_rtx_costs): Likewise.
11375         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
11376
11377 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11378
11379         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
11380         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
11381         rtx_cost.
11382         * calls.c (precompute_register_parameters): Likewise.
11383         * combine.c (expand_compound_operation, make_extraction): Likewise.
11384         (force_to_mode, distribute_and_simplify_rtx): Likewise.
11385         * dse.c (find_shift_sequence): Likewise.
11386         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
11387         * expr.c (compress_float_constant): Likewise.
11388         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
11389         * gcse.c (want_to_gcse_p): Likewise.
11390         * ifcvt.c (noce_try_sign_mask): Likewise.
11391         * loop-doloop.c (doloop_optimize): Likewise.
11392         * loop-invariant.c (create_new_invariant): Likewise.
11393         * optabs.c (avoid_expensive_constant): Likewise.
11394         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
11395         (try_replace_in_use, reload_cse_move2add): Likewise.
11396         * reload1.c (calculate_elim_costs_all_insns): Likewise.
11397         (note_reg_elim_costly): Likewise.
11398         * rtlanal.c (insn_rtx_cost): Likewise.
11399         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11400         * stmt.c (lshift_cheap_p): Likewise.
11401         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
11402         * config/avr/avr.c (final_prescan_insn): Likewise.
11403         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
11404         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
11405
11406 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11407
11408         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
11409         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
11410         * cfgloopanal.c (seq_cost): Likewise.
11411         * loop-invariant.c (create_new_invariant): Likewise.
11412         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
11413         (reload_cse_move2add): Use get_full_set_rtx_cost.
11414
11415 2011-08-18  Richard Guenther  <rguenther@suse.de>
11416
11417         * expr.c (get_inner_reference): Fix typo in last change.
11418
11419 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
11420             Joseph Myers  <joseph@codesourcery.com>
11421
11422         PR tree-optimization/49963
11423         * hwint.c (absu_hwi): Define.
11424         * hwint.h (absu_hwi): Declare.
11425         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
11426         of abs_hwi.
11427         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
11428         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
11429
11430 2011-08-18  Richard Guenther  <rguenther@suse.de>
11431
11432         * expr.c (get_inner_reference): Sign-extend the constant
11433         twos-complement offset before doing arbitrary precision
11434         arithmetic on it.
11435         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
11436         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
11437         to get_constraint_for_ptr_offset.
11438
11439 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
11440
11441         PR target/50068
11442         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
11443
11444 2011-08-17  Richard Guenther  <rguenther@suse.de>
11445
11446         * tree.h (convert_to_ptrofftype_loc): New function.
11447         (convert_to_ptrofftype): Define.
11448         * builtins.c (expand_builtin_bzero): Use size_type_node.
11449         (fold_builtin_bzero): Likewise.
11450         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
11451         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
11452         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
11453         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
11454         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
11455         * fold-const.c (build_range_check): Negate using the original type.
11456         (fold_unary_loc): Use fold_build_pointer_plus_loc.
11457         * gimple-fold.c (gimple_adjust_this_by_delta): Use
11458         convert_to_ptrofftype.
11459         * gimplify.c (gimplify_self_mod_expr): Likewise.
11460         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
11461         (graphite_create_new_loop_guard): Likewise.
11462         * graphite-sese-to-poly.c (my_long_long): Remove.
11463         (scop_ivs_can_be_represented): Adjust.
11464         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
11465         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
11466         * tree-loop-distribution.c (build_size_arg_loc): Use
11467         size_type_node.
11468         (generate_memset_zero): Simplify.
11469         * tree-mudflap.c: Use fold_convert, not convert.
11470         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
11471         its own type.
11472         (determine_offset): Likewise for DR_STEP.
11473         (valid_initializer_p): Likewise.
11474         * tree-profile.c (prepare_instrumented_value): Convert the pointer
11475         to an integer type of same size.
11476         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
11477         to sizetype without need.
11478         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
11479         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
11480         * tree-ssa-loop-manip.c (create_iv): Likewise.
11481         (determine_exit_conditions): Adjust comment.
11482         * tree-ssa-pre.c (create_expression_by_pieces): Use
11483         convert_to_ptrofftype.
11484         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
11485         * varasm.c (array_size_for_constructor): Compute using double_ints.
11486
11487 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11488
11489         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
11490         when generating an integer result where possible.  Short-cut
11491         comparison against 0 also for QImode.
11492
11493 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11494
11495         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
11496         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
11497         prototype.
11498         * config/spu/spu.c (spu_legitimize_reload_address): New function.
11499         (spu_legitimate_address_p): Do not check displacement if the base
11500         is an eliminable stack register.
11501
11502 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
11503
11504         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
11505         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
11506         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
11507         m32c_preferred_output_reload_class): Remove.
11508         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
11509         Change rclass argument and return types to reg_class_t. Use
11510         reg_class_subset_p instead of class_sizes.
11511         (m32c_preferred_output_reload_class): Make static. Change rclass
11512         argument and return types to reg_class_t.
11513         (TARGET_PREFERRED_RELOAD_CLASS,
11514         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11515
11516 2011-08-16  Kai Tietz  <ktietz@redhat.com>
11517
11518         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
11519
11520 2011-08-16  Richard GUenther  <rguenther@suse.de>
11521
11522         PR tree-optimization/50082
11523         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
11524         warnings here, instead of ...
11525         (ssa_forward_propagate_and_combine): ... here.
11526         (forward_propagate_into_comparison_1): Adjust.
11527         (forward_propagate_into_comparison): Likewise.
11528         (forward_propagate_into_gimple_cond): Likewise.
11529         (forward_propagate_into_cond): Likewise.
11530
11531 2011-08-16  Andreas Schwab  <schwab@redhat.com>
11532
11533         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
11534         instead of ggc_alloc_zone_vec_rtvec_def.
11535
11536 2011-08-16  Richard Guenther  <rguenther@suse.de>
11537
11538         * tree.h (ptrofftype_p): New helper function.
11539         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
11540         offset verification.
11541         (verify_gimple_assign_binary): Likewise.
11542         * tree.c (build2_stat): Likewise.
11543         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
11544         (reset_evolution_in_loop): Likewise.
11545         * tree-chrec.h (build_polynomial_chrec): Likewise.
11546
11547 2011-08-16  Liang Wang  <lwang1@marvell.com>
11548
11549         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
11550         ggc_alloc_zone_vec_rtvec_def.
11551
11552 2011-08-16  Richard Guenther  <rguenther@suse.de>
11553
11554         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
11555         helper factored out from ...
11556         (extract_range_from_binary_expr_1): ... here.  Re-structure
11557         to not glob handling too different tree codes.
11558
11559 2011-08-15  Richard Henderson  <rth@redhat.com>
11560
11561         PR middle-end/50006
11562         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
11563         setting out to include allocate_stack named pattern as well.
11564         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
11565         * stmt.c (expand_stack_restore): Likewise.
11566
11567 2011-08-15  Richard Guenther  <rguenther@suse.de>
11568
11569         PR middle-end/50082
11570         * fold-const.c (maybe_canonicalize_comparison_1): Properly
11571         convert the modified operand to the other operand type.
11572         (fold_comparison): Call maybe_canonicalize_comparison_1 with
11573         useless conversions stripped from comparison operands.
11574
11575 2011-08-15  Richard Guenther  <rguenther@suse.de>
11576
11577         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
11578         (extract_range_from_unary_expr_1): Restructure.
11579
11580 2011-08-15  Richard Guenther  <rguenther@suse.de>
11581
11582         PR tree-optimization/50058
11583         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
11584         copy matching.
11585
11586 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11587
11588         PR target/50022
11589         * config/arm/arm.c (output_move_double): Add 2 parameters
11590         to count the number of insns emitted and whether to emit or not.
11591         Use the flag to decide when to emit and count number of instructions
11592         that will be emitted.
11593         Handle case where output_move_double might be called for calculating
11594         lengths with an invalid constant.
11595         (arm_count_output_move_double_insns): Define.
11596         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
11597         (output_move_double): Adjust prototype.
11598         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
11599         output_move_double.
11600         ("*movdi_vfp_cortexa8"): Likewise and add attribute
11601         for ce_count.
11602         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
11603         ("*movdf_soft_insn"): Likewise.
11604         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
11605         ("*cirrus_thumb2_movdi"): Likewise.
11606         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
11607         ("*cirrus_movdf_hard_insn"): Likewise.
11608         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
11609         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
11610         ("mov<mode>_internal VMMX"): Likewise.
11611         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
11612
11613 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
11614
11615         * config/i386/i386.c (ix86_expand_round_sse4): New function.
11616         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
11617         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
11618         for TARGET_ROUND.
11619
11620         (rint<mode>2): Simplify TARGET_ROUND check.
11621         (floor<mode>2): Ditto.
11622         (ceil<mode>2): Ditto.
11623         (btrunc<mode>2): Ditto.
11624
11625 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
11626
11627         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
11628         as mmix_preferred_output_reload_class.
11629
11630 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
11631
11632         * PR target/49903
11633         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
11634         (branch_unspec): New insn.
11635         (branch): Beauty farm.
11636         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
11637         to be IF_THEN_ELSE.
11638         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
11639         New static functions.
11640         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
11641         Use CONST_INT_P.  Beauty.
11642
11643 2011-08-12  Richard Henderson  <rth@redhat.com>
11644
11645         PR rtl-opt/49994
11646         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
11647         * sched-deps.c (init_deps): Clear it.
11648         (deps_analyze_insn): Consume it.
11649         (sched_analyze_insn): Fill it.
11650
11651 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11652
11653         PR target/48328
11654         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
11655         for tbh instructions.
11656
11657 2011-08-12  Diego Novillo  <dnovillo@google.com>
11658
11659         * data-streamer.h (streamer_write_zero): Rename from output_zero.
11660         (streamer_write_uhwi): Rename from lto_output_uleb128.
11661         (streamer_write_hwi): Rename from output_sleb128.
11662         (streamer_write_string): Rename from lto_output_string.
11663         (streamer_string_index): Rename from lto_string_index.
11664         (streamer_write_string_with_length): Rename from
11665         lto_output_string_with_length.
11666         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
11667         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
11668         (streamer_read_string): Rename from lto_input_string.
11669         (streamer_read_indexed_string): Rename from input_string_internal.
11670         (streamer_read_uhwi): Rename from lto_input_uleb128.
11671         (streamer_read_hwi): Rename from lto_input_sleb128.
11672         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
11673         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
11674         (streamer_write_enum): Rename from lto_output_enum.
11675         (streamer_read_enum): Rename from lto_input_enum.
11676         (streamer_write_record_start): Rename from output_record_start.
11677         (streamer_read_record_start): Rename from input_record_start.
11678         (streamer_write_bitpack): Rename from lto_output_bitpack.
11679         (streamer_read_bitpack): Rename from lto_input_bitpack.
11680         (streamer_write_char_stream): Rename from lto_output_1_stream.
11681         (streamer_read_uchar): Rename from lto_input_1_unsigned.
11682         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
11683         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
11684         (streamer_read_string_cst): Rename from input_string_cst.
11685         (streamer_read_chain): Rename from lto_input_chain.
11686         (streamer_alloc_tree): Rename from lto_materialize_tree.
11687         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
11688         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
11689         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
11690         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
11691         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
11692         (streamer_write_chain): Rename from lto_output_chain.
11693         (streamer_write_tree_header): Rename from lto_output_tree_header.
11694         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
11695         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
11696         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
11697         (streamer_write_builtin): Rename from lto_output_builtin_tree.
11698         (streamer_check_handled_ts_structures): Rename from
11699         check_handled_ts_structures.
11700         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
11701         (streamer_tree_cache_insert_at): Rename from
11702         lto_streamer_cache_insert_at.
11703         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
11704         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
11705         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
11706         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
11707         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
11708         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
11709         (write_identifier): Rename from output_identifier.
11710         (write_ts_common_tree_pointers): Rename from
11711         lto_output_ts_common_tree_pointers.
11712         (write_ts_vector_tree_pointers): Rename from
11713         lto_output_ts_vector_tree_pointers.
11714         (write_ts_complex_tree_pointers): Rename from
11715         lto_output_ts_complex_tree_pointers.
11716         (write_ts_decl_minimal_tree_pointers): Rename from
11717         lto_output_ts_decl_minimal_tree_pointers.
11718         (write_ts_decl_common_tree_pointers): Rename from
11719         lto_output_ts_decl_common_tree_pointers.
11720         (write_ts_decl_non_common_tree_pointers): Rename from
11721         lto_output_ts_decl_non_common_tree_pointers.
11722         (write_ts_decl_with_vis_tree_pointers): Rename from
11723         lto_output_ts_decl_with_vis_tree_pointers.
11724         (write_ts_field_decl_tree_pointers): Rename from
11725         lto_output_ts_field_decl_tree_pointers.
11726         (write_ts_function_decl_tree_pointers): Rename from
11727         lto_output_ts_function_decl_tree_pointers.
11728         (write_ts_type_common_tree_pointers): Rename from
11729         lto_output_ts_type_common_tree_pointers.
11730         (write_ts_type_non_common_tree_pointers): Rename from
11731         lto_output_ts_type_non_common_tree_pointers.
11732         (write_ts_list_tree_pointers): Rename from
11733         lto_output_ts_list_tree_pointers.
11734         (write_ts_vec_tree_pointers): Rename from
11735         lto_output_ts_vec_tree_pointers.
11736         (write_ts_exp_tree_pointers): Rename from
11737         lto_output_ts_exp_tree_pointers.
11738         (write_ts_block_tree_pointers): Rename from
11739         lto_output_ts_block_tree_pointers.
11740         (write_ts_binfo_tree_pointers): Rename from
11741         lto_output_ts_binfo_tree_pointers.
11742         (write_ts_constructor_tree_pointers): Rename from
11743         lto_output_ts_constructor_tree_pointers.
11744         (write_ts_target_option): Rename from lto_output_ts_target_option.
11745         (write_ts_translation_unit_decl_tree_pointers): Rename from
11746         lto_output_ts_translation_unit_decl_tree_pointers.
11747         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
11748         Rename from lto_streamer_cache_add_to_node_array.
11749         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
11750         (record_common_node): Rename from lto_record_common_node.
11751
11752         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
11753         declarations.
11754         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
11755         function.
11756         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
11757         unused function.
11758         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
11759         (ipa-reference.o): Likewise.
11760         * lto-section-out.c: Include data-streamer.h.
11761         * ipa-reference.c: Include data-streamer.h.
11762
11763 2011-08-12  Nick Clifton  <nickc@redhat.com>
11764
11765         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
11766         * doc/md.texi (cmpstrn): Note that the comparison stops if both
11767         fetched bytes are zero.
11768         (cmpstr): Likewise.
11769         (cmpmem): Note that the comparison does not stop if both of the
11770         fetched bytes are zero.
11771
11772 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
11773
11774         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
11775         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
11776         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
11777         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
11778         to integer_type_node.
11779         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
11780         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
11781         * builtins.c (expand_builtin_in): Ditto.
11782         (mathfn_built_in_1): Ditto.
11783         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
11784         BUILT_IN_IFLOOR.
11785         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
11786         BUILT_IN_IROUND.
11787         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
11788         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
11789         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
11790
11791 2011-08-12  Richard Guenther  <rguenther@suse.de>
11792
11793         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
11794
11795 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
11796
11797         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
11798
11799 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
11800
11801         * config/arm/arm.c (get_label_padding): New function.
11802         (create_fix_barrier, arm_reorg): Use it.
11803
11804 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
11805
11806         PR target/49781
11807         * config/i386/i386.md (*lea_5_zext): New.
11808         (*lea_6_zext): Ditto.
11809         * config/i386/predicates.md (const_32bit_mask): New predicate.
11810         (lea_address_operand): Reject AND.
11811         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
11812         const_32bit_mask immediate.
11813         (ix86_print_operand_address): Handle AND.
11814         (memory_address_length): Ditto.
11815
11816 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
11817             Brian Hackett  <bhackett1024@gmail.com>
11818
11819         * plugin.def: Add event for finish_decl.
11820         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
11821         * c-decl.c (finish_decl): Invoke callbacks on above event.
11822         * doc/plugins.texi: Document above event.
11823
11824 2011-08-11  Richard Guenther  <rguenther@suse.de>
11825
11826         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
11827         lookups, make looking through aggregate copies stronger.
11828
11829 2011-08-11  Richard Henderson  <rth@redhat.com>
11830
11831         PR bootstrap/50018
11832         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
11833
11834 2011-08-11  Richard Guenther  <rguenther@suse.de>
11835
11836         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
11837         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
11838         (vrp_visit_stmt): Likewise.
11839
11840 2011-08-11  Richard Guenther  <rguenther@suse.de>
11841
11842         PR middle-end/50040
11843         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
11844         load of the other piece with TREE_NO_WARNING.
11845         * tree-flow.h (warn_uninit): Adjust prototype.
11846         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
11847         the base variable and the expression that is used separately.
11848         Properly query all TREE_NO_WARNING flags.
11849         (struct walk_data): Remove.
11850         (warn_uninitialized_var): Likewise.
11851         (warn_uninitialized_vars): Do not walk gimple pieces but simply
11852         look at all SSA uses of the statement.  Handle unused memory
11853         separately.
11854         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
11855
11856 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
11857
11858         * config/rx/rx.md (movsicc): Allow register to register transfers.
11859         (*movsicc): Likewise.
11860         (*stcc): Restrict this pattern to EQ and NE compares.
11861         (*stcc_reg): New pattern.  Works for any comparison but only for
11862         register transfers.
11863
11864 2011-08-11   Diego Novillo  <dnovillo@google.com>
11865
11866         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
11867         Call stream_write_tree instead of output_record_start.
11868         (lto_output_ts_binfo_tree_pointers): Likewise.
11869
11870         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
11871         Convert it to a macro.
11872         (stream_read_tree): Likewise.
11873
11874         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
11875         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
11876
11877         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
11878         and tree_read_bitfields.
11879         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
11880         (lto_write_tree): Call it.
11881         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
11882         * streamer-hooks.h (struct streamer_hooks): Remove fields
11883         name, is_streamable and alloc_tree. Update all users.
11884         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
11885         (lto_materialize_tree): ... here.
11886         Handle CALL_EXPR codes.
11887         Remove call to lto_streamer_cache_append.
11888         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
11889         * tree-streamer.h (tree_read_bitfields): Declare.
11890
11891         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
11892         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
11893         * tree-streamer.h (stream_read_tree): New.  Replace all calls
11894         to lto_input_tree with it.
11895         (stream_write_tree): New.  Replace all calls to lto_output_tree,
11896         lto_output_tree_ref and lto_output_tree_or_ref with it.
11897         * lto-streamer-in.c (lto_read_tree): Inline code from
11898         lto_streamer_read_tree.
11899         (lto_input_tree): Move from tree-streamer-in.c.
11900         * lto-streamer-out.c (lto_output_tree_ref): Make static.
11901         Remove handling of NULL values for EXPR.
11902         Do not handle EXPRs that are not indexable.
11903         (lto_write_tree): Move from tree-streamer-out.c.
11904         Inline lto_streamer_write_tree.
11905         (lto_output_tree): Move from tree-streamer-out.c.
11906         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
11907         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
11908         (lto_preload_common_nodes): Likewise.
11909         Remove assertions and adjustments for nodes
11910         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
11911         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
11912         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
11913         * lto-streamer.h (lto_input_tree): Declare.
11914         (lto_output_tree_ref): Remove.
11915         * streamer-hooks.h (struct streamer_hooks): Remove fields
11916         preload_common_nodes, indexable_with_decls_p,
11917         pack_value_fields, unpack_value_fields and output_tree_header.
11918         Update all users.
11919         * tree-streamer-in.c (lto_materialize_tree): Make extern.
11920         (lto_input_tree_pointers): Likewise.
11921         (lto_read_tree): Move to lto-streamer-in.c.
11922         (lto_input_integer_cst): Make extern.
11923         (lto_get_pickled_tree): Likewise.
11924         (lto_get_builtin_tree): Likewise.
11925         (lto_input_tree): Move to lto-streamer-in.c.
11926         * tree-streamer-out.c (pack_value_fields): Make extern.
11927         (lto_output_tree_or_ref): Remove.  Replace all callers with
11928         calls to stream_write_tree.
11929         (lto_output_builtin_tree): Make extern.
11930         (lto_streamer_write_tree): Inline into lto_write_tree.
11931         (lto_output_tree_pointers): Make extern.
11932         (lto_output_tree_header): Likewise.
11933         (lto_output_integer_cst): Likewise.
11934         (lto_write_tree): Move to lto-streamer-out.c.
11935         (lto_output_tree): Likewise.
11936         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
11937         (preload_common_nodes): Likewise.
11938         (lto_streamer_cache_create): Call it.
11939         * tree-streamer.h: Include streamer-hooks.h.
11940         (stream_write_tree): New.
11941         (stream_read_tree): New.
11942         (lto_input_tree): Remove.
11943         (lto_materialize_tree): Declare.
11944         (lto_input_tree_pointers): Declare.
11945         (lto_get_pickled_tree): Declare.
11946         (lto_get_builtin_tree): Declare.
11947         (lto_input_integer_cst): Declare.
11948         (lto_output_tree_header): Declare.
11949         (pack_value_fields): Declare.
11950         (lto_output_tree_pointers): Declare.
11951         (lto_output_integer_cst): Declare.
11952         (lto_output_builtin_tree): Declare.
11953
11954 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
11955
11956         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
11957         only if producer writes to the register given by regno.
11958
11959 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
11960             Alexander Monakov  <amonakov@ispras.ru>
11961
11962         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
11963         (sched_get_condition_with_rev_uncached): ... this.  Factor out
11964         condition caching logic into ...
11965         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
11966         attempt to use cache for instructions with zero luid.
11967         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
11968         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
11969
11970 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
11971
11972         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
11973         get_seqno_for_a_jump.  Update the caller.
11974         (get_seqno_by_succs): New.  Use it ...
11975         (get_seqno_for_a_jump): ... here to find a seqno if looking at
11976         predecessors was not sufficient.
11977         (get_seqno_by_preds): Include head in iteration range, exclude insn.
11978
11979 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
11980
11981         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
11982
11983 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
11984
11985         * sel-sched-ir.h (register_unavailable_p): Declare.
11986         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
11987         (set_unavailable_target_for_expr): ... here to properly test
11988         availability of a register.
11989         (speculate_expr): Ditto.
11990         * sel-sched.c (substitute_reg_in_expr): Ditto.
11991         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
11992
11993 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
11994
11995         * sel-sched.c (verify_target_availability): Fix usage of
11996         hard_regno_nregs.
11997
11998 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
11999
12000         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
12001         recognized by cannot_copy_insn_p hook and volatile instructions.
12002
12003 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
12004
12005         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
12006
12007 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
12008
12009         * doc/md.texi (define_bypass): Say that the instruction names can
12010         be filename-style globs.
12011         * Makefile.in (FNMATCH_H): Define.
12012         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
12013         * genattrtab.c: Include fnmatch.h.
12014         (bypass_list): Change field name from "insn" to "pattern".
12015         (gen_bypass_1): Update accordingly.
12016         (process_bypasses): Use fnmatch to check for matches between
12017         insn reservations and define_bypasses.
12018         * genautomata.c: Include fnmatch.h.
12019         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
12020         and out_pattern respectively.
12021         (gen_bypass, insert_bypass): Update accordingly.
12022         (for_each_matching_insn, process_bypass_2, process_bypass_1)
12023         (process_bypass): New functions.
12024         (process_decls): Use process_bypass.  Update after field name changes.
12025
12026 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
12027
12028         PR target/49687
12029         * config/avr/avr.md (smulqi3_highpart): New insn.
12030         (umulqi3_highpart): New insn.
12031         (*subqi3.ashiftrt7): New insn.
12032         (smulhi3_highpart): New expander.
12033         (umulhi3_highpart): Nex expander.
12034         (*smulhi3_highpart_call): New insn.
12035         (*umulhi3_highpart_call): New insn.
12036         (extend_u): New code attribute.
12037         (extend_prefix): Rename code attribute to extend_su.
12038         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
12039         widening QI/HI multiply.
12040
12041 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
12042
12043         PR tree-optimization/50039
12044         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
12045         that DEF_STMT has a stmt_vec_info.
12046
12047 2011-08-10  Richard Guenther  <rguenther@suse.de>
12048
12049         * tree.h (can_trust_pointer_alignment): Remove.
12050         * builtins.c (can_trust_pointer_alignment): Remove.
12051
12052 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
12053
12054         * c-typeck.c (scalar_to_vector): New function. Try scalar to
12055         vector conversion.
12056         (stv_conv): New enum for scalar_to_vector return type.
12057         (build_binary_op): Adjust.
12058         * doc/extend.texi: Description of scalar to vector expansion.
12059
12060 2011-08-10  Richard Guenther  <rguenther@suse.de>
12061
12062         * tree.h (get_pointer_alignment): Remove max-align argument.
12063         (get_object_alignment): Likewise.
12064         * builtins.c (get_object_alignment_1): Adjust.
12065         (get_object_alignment): Remove max-align argument.
12066         (get_pointer_alignment): Likewise.
12067         (expand_builtin_strlen): Adjust.
12068         (expand_builtin_memcpy): Likewise.
12069         (expand_builtin_mempcpy_args): Likewise.
12070         (expand_builtin_strncpy): Likewise.
12071         (expand_builtin_memset_args): Likewise.
12072         (expand_builtin_memcmp): Likewise.
12073         (expand_builtin_strcmp): Likewise.
12074         (expand_builtin_strncmp): Likewise.
12075         (get_builtin_sync_mem): Likewise.
12076         (fold_builtin_memset): Likewise.
12077         (fold_builtin_memory_op): Likewise.
12078         (expand_builtin_memory_chk): Likewise.
12079         * emit-rtl.c (get_mem_align_offset): Likewise.
12080         (set_mem_attributes_minus_bitpos): Likewise.
12081         * expr.c (expand_assignment): Likewise.
12082         (expand_expr_real_1): Likewise.
12083         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
12084         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
12085         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
12086         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
12087         * value-prof.c (gimple_stringops_transform): Likewise.
12088
12089 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
12090
12091         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
12092         * doc/tm.texi: Regenerate.
12093
12094 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
12095
12096         PR target/29560
12097         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
12098         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
12099         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
12100         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
12101         shift target is unused.
12102
12103 2011-08-10  Richard Guenther  <rguenther@suse.de>
12104
12105         PR tree-optimization/49937
12106         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
12107         using get_object_alignment_1.
12108
12109 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
12110
12111         * config/i386/i386.c (ix86_emit_i387_round): New function.
12112         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
12113         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
12114         Use ix86_emit_i387_round to expand round function for i387 math.
12115         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
12116         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
12117
12118 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12119
12120         * config/sync.c: Move to ../libgcc.
12121         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
12122         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
12123         Remove.
12124
12125 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
12126
12127         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
12128         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
12129         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
12130         Change 'from' and 'to' arguments type to reg_class_t.
12131         (TARGET_REGISTER_MOVE_COST): Define.
12132
12133 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
12134
12135         PR target/50026
12136         Revert:
12137         PR rtl-optimization/49990
12138         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
12139         ignore classes which can not change mode.
12140         (find_costs_and_classes): Ditto.
12141
12142 2011-08-09  Richard Guenther  <rguenther@suse.de>
12143
12144         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
12145         information for ranges with only negative values.
12146         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
12147         BIT_AND_EXPR handling to handle ranges with negative values.
12148
12149 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
12150
12151         * config/i386/i386.c: Remove traling spaces.
12152         * config/i386/sse.md: Likewise.
12153         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
12154         (*fma_fmsub_<mode>): Likewise.
12155         (*fma_fnmadd_<mode>): Likewise.
12156         (*fma_fnmsub_<mode>): Likewise.
12157
12158 2011-08-09  Nick Clifton  <nickc@redhat.com>
12159
12160         * config/rx/rx.md: Disable extender peepholes at -O3.
12161
12162 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
12163
12164         PR target/49781
12165         * config/i386/i386.md (reload_noff_load): New.
12166         (reload_noff_store): Ditto.
12167         * config/i386/i386.c (ix86_secondary_reload): Use
12168         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
12169         double-word moves from/to non-offsetable addresses instead of
12170         generating XMM temporary.
12171
12172 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
12173
12174         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
12175
12176 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
12177
12178         PR tree-optimization/50014
12179         * tree-vect-loop.c (vectorizable_reduction): Get def type before
12180         calling vect_get_vec_def_for_stmt_copy ().
12181
12182 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
12183
12184         PR rtl-optimization/49990
12185         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
12186         ignore classes which can not change mode.
12187         (find_costs_and_classes): Ditto.
12188
12189 2011-08-08  Richard Henderson  <rth@redhat.com>
12190
12191         PR middle-end/49990
12192         * config/i386/i386.c (ix86_expand_prologue): Call
12193         for SEH target gen_prologue_use instead of gen_blockage
12194         at prologue's end.
12195
12196 2011-08-08  Martin Jambor  <mjambor@suse.cz>
12197
12198         PR middle-end/49923
12199         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
12200         memory alignment.
12201
12202 2011-08-08   Diego Novillo  <dnovillo@google.com>
12203
12204         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
12205         (DATA_STREAMER_H): New.
12206         (GIMPLE_STREAMER_H): New.
12207         (TREE_STREAMER_H): New.
12208         (STREAMER_HOOKS_H): New.
12209         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
12210         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
12211         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
12212         (data-streamer.o): New.
12213         (data-streamer-in.o): New.
12214         (data-streamer-out.o): New.
12215         (gimple-streamer-in.o): New.
12216         (gimple-streamer-out.o): New.
12217         (streamer-hooks.o): New.
12218         (tree-streamer.o): New.
12219         (tree-streamer-in.o): New.
12220         (tree-streamer-out.o): New.
12221         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
12222         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
12223         GIMPLE_STREAMER_H and TREE_STREAMER_H.
12224         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
12225         GIMPLE_STREAMER_H and TREE_STREAMER_H.
12226         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
12227         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
12228         (ipa-inline-analysis.o): Likewise.
12229         (ipa-pure-const.o): Likewise.
12230         * data-streamer-in.c: New.
12231         * data-streamer-out.c: New.
12232         * data-streamer.c: New.
12233         * data-streamer.h: New.
12234         * gimple-streamer-in.c: New.
12235         * gimple-streamer-out.c: New.
12236         * gimple-streamer.h: New.
12237         * ipa-inline-analysis.c: Include data-streamer.h.
12238         * ipa-prop.c: Include data-streamer.h.
12239         * ipa-pure-const.c: Include data-streamer.h.
12240         * lto-cgraph.c: Include data-streamer.h.
12241         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
12242         (lto_input_widest_uint_uleb128): Likewise.
12243         (lto_input_sleb128): Likewise.
12244         (bp_unpack_var_len_unsigned): Likewise.
12245         (bp_unpack_var_len_int): Likewise.
12246         * lto-section-out.c (lto_output_uleb128_stream): Move to
12247         data-streamer-out.c.
12248         (lto_output_widest_uint_uleb128_stream): Likewise.
12249         (lto_output_sleb128_stream): Likewise.
12250         (bp_pack_var_len_unsigned): Likewise.
12251         (bp_pack_var_len_int): Likewise.
12252         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
12253         (struct string_slot): Remove.  Update all users.
12254         (lto_tag_check_set): Make extern.
12255         (lto_tag_check_range): Move to lto-streamer.h.
12256         (lto_tag_check): Likewise.
12257         (hash_string_slot_node): Remove.  Update all users.
12258         (eq_string_slot_node): Remove.  Update all users.
12259         (string_for_index): Move to data-streamer-in.c
12260         (input_string_internal): Likewise.
12261         (input_string_cst): Move to tree-streamer-in.c.
12262         (input_identifier): Likewise.
12263         (lto_input_string): Move to data-streamer-in.c
12264         (input_record_start): Move to data-streamer.h
12265         (canon_file_name): Use new definition of struct string_slot
12266         from data-streamer.h.  Set S_SLOT.LEN.
12267         (lto_input_location): Make extern.
12268         (lto_input_chain): Move to tree-streamer-in.c.
12269         (lto_init_eh): Make extern.
12270         (input_phi): Move to gimple-streamer-in.c.
12271         (input_gimple_stmt): Likewise.
12272         (input_bb): Likewise.
12273         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
12274         (unpack_ts_real_cst_value_fields): Likewise.
12275         (unpack_ts_fixed_cst_value_fields): Likewise.
12276         (unpack_ts_decl_common_value_fields): Likewise.
12277         (unpack_ts_decl_wrtl_value_fields): Likewise.
12278         (unpack_ts_decl_with_vis_value_fields): Likewise.
12279         (unpack_ts_function_decl_value_fields): Likewise.
12280         (unpack_ts_type_common_value_fields): Likewise.
12281         (unpack_ts_block_value_fields): Likewise.
12282         (unpack_ts_translation_unit_decl_value_fields): Likewise.
12283         (unpack_value_fields): Likewise.
12284         (lto_materialize_tree): Likewise.
12285         (lto_input_ts_common_tree_pointers): Likewise.
12286         (lto_input_ts_vector_tree_pointers): Likewise.
12287         (lto_input_ts_complex_tree_pointers): Likewise.
12288         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
12289         (lto_input_ts_decl_common_tree_pointers): Likewise.
12290         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
12291         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
12292         (lto_input_ts_field_decl_tree_pointers): Likewise.
12293         (lto_input_ts_function_decl_tree_pointers): Likewise.
12294         (lto_input_ts_type_common_tree_pointers): Likewise.
12295         (lto_input_ts_type_non_common_tree_pointers): Likewise.
12296         (lto_input_ts_list_tree_pointers): Likewise.
12297         (lto_input_ts_vec_tree_pointers): Likewise.
12298         (lto_input_ts_exp_tree_pointers): Likewise.
12299         (lto_input_ts_block_tree_pointers): Likewise.
12300         (lto_input_ts_binfo_tree_pointers): Likewise.
12301         (lto_input_ts_constructor_tree_pointers): Likewise.
12302         (lto_input_ts_target_option): Likewise.
12303         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
12304         (lto_input_tree_pointers): Likewise.
12305         (lto_get_pickled_tree): Likewise.
12306         (lto_get_builtin_tree): Likewise.
12307         (lto_read_tree): Likewise.
12308         (lto_input_integer_cst): Likewise.
12309         (lto_input_tree): Likewise.
12310         * lto-streamer-out.c: Include data-streamer.h,
12311         gimple-streamer.h and streamer-hooks.h.
12312         (struct string_slot): Move to data-streamer.h.
12313         (hash_string_slot_node): Likewise.
12314         (eq_string_slot_node): Likewise.
12315         (lto_string_index): Move to data-streamer-out.c.
12316         (lto_output_string_with_length): Likewise.
12317         (lto_output_string): Likewise.
12318         (output_string_cst): Move to tree-streamer-out.c.
12319         (output_identifier): Likewise.
12320         (output_zero): Move to data-streamer-out.c
12321         (output_uleb128): Likewise.
12322         (output_sleb128): Likewise.
12323         (output_record_start): Move to data-streamer.h
12324         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
12325         (pack_ts_real_cst_value_fields): Likewise.
12326         (pack_ts_fixed_cst_value_fields): Likewise.
12327         (pack_ts_decl_common_value_fields): Likewise.
12328         (pack_ts_decl_wrtl_value_fields): Likewise.
12329         (pack_ts_decl_with_vis_value_fields): Likewise.
12330         (pack_ts_function_decl_value_fields): Likewise.
12331         (pack_ts_type_common_value_fields): Likewise.
12332         (pack_ts_block_value_fields): Likewise.
12333         (pack_ts_translation_unit_decl_value_fields): Likewise.
12334         (pack_value_fields): Likewise.
12335         (lto_output_chain): Likewise.
12336         (lto_output_ts_common_tree_pointers): Likewise.
12337         (lto_output_ts_vector_tree_pointers): Likewise.
12338         (lto_output_ts_complex_tree_pointers): Likewise.
12339         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
12340         (lto_output_ts_decl_common_tree_pointers): Likewise.
12341         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
12342         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
12343         (lto_output_ts_field_decl_tree_pointers): Likewise.
12344         (lto_output_ts_function_decl_tree_pointers): Likewise.
12345         (lto_output_ts_type_common_tree_pointers): Likewise.
12346         (lto_output_ts_type_non_common_tree_pointers): Likewise.
12347         (lto_output_ts_list_tree_pointers): Likewise.
12348         (lto_output_ts_vec_tree_pointers): Likewise.
12349         (lto_output_ts_exp_tree_pointers): Likewise.
12350         (lto_output_ts_block_tree_pointers): Likewise.
12351         (lto_output_ts_binfo_tree_pointers): Likewise.
12352         (lto_output_ts_constructor_tree_pointers): Likewise.
12353         (lto_output_ts_target_option): Likewise.
12354         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
12355         (lto_output_tree_pointers): Likewise.
12356         (lto_output_tree_header): Likewise.
12357         (lto_output_builtin_tree): Likewise.
12358         (lto_write_tree): Likewise.
12359         (lto_output_integer_cst): Likewise.
12360         (lto_output_tree): Likewise.
12361         (output_phi): Move to gimple-streamer-out.c.
12362         (output_gimple_stmt): Likewise.
12363         (output_bb): Likewise.
12364         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
12365         (streamer_hooks): Move to streamer-hooks.c.
12366         (check_handled_ts_structures): Move to tree-streamer.c
12367         (lto_streamer_cache_add_to_node_array): Likewise.
12368         (lto_streamer_cache_insert_1): Likewise.
12369         (lto_streamer_cache_insert): Likewise.
12370         (lto_streamer_cache_insert_at): Likewise.
12371         (lto_streamer_cache_append): Likewise.
12372         (lto_streamer_cache_lookup): Likewise.
12373         (lto_streamer_cache_get): Likewise.
12374         (lto_record_common_node): Likewise.
12375         (lto_preload_common_nodes): Likewise.
12376         (lto_streamer_cache_create): Likewise.
12377         (lto_streamer_cache_delete): Likewise.
12378         (streamer_hooks_init): Move to streamer-hooks.c.
12379         * lto-streamer.h: Include diagnostic.h
12380         (struct output_block, struct lto_input_block,
12381         struct data_in, struct bitpack_d): Remove forward declarations.
12382         (struct bitpack_d): Move to data-streamer.h.
12383         (struct lto_streamer_cache_d): Move to tree-streamer.h.
12384         (struct streamer_hooks): Move to streamer-hooks.h.
12385         (bp_pack_var_len_unsigned): Move to data-streamer.h.
12386         (bp_pack_var_len_int): Likewise.
12387         (bp_unpack_var_len_unsigned): Likewise.
12388         (bp_unpack_var_len_int): Likewise.
12389         (lto_input_location): Declare.
12390         (lto_tag_check_set): Declare.
12391         (lto_init_eh): Declare.
12392         (lto_output_tree_ref): Declare.
12393         (lto_output_location): Declare.
12394         (bitpack_create): Move to data-streamer.h.
12395         (bp_pack_value): Likewise.
12396         (lto_output_bitpack): Likewise.
12397         (lto_input_bitpack): Likewise.
12398         (bp_unpack_value): Likewise.
12399         (lto_output_1_stream): Likewise.
12400         (lto_input_1_unsigned): Likewise.
12401         (lto_output_int_in_range): Likewise.
12402         (lto_input_int_in_range): Likewise.
12403         (bp_pack_int_in_range): Likewise.
12404         (bp_unpack_int_in_range): Likewise.
12405         (lto_output_enum): Likewise.
12406         (lto_input_enum): Likewise.
12407         (bp_pack_enum): Likewise.
12408         (bp_unpack_enum): Likewise.
12409         * streamer-hooks.c: New.
12410         * streamer-hooks.h: New.
12411         * tree-streamer-in.c: New.
12412         * tree-streamer-out.c: New.
12413         * tree-streamer.c: New.
12414         * tree-streamer.h: New.
12415
12416 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12417
12418         * gthr-posix95.h: Remove.
12419         * gthr.h [_PTHREADS95]: Remove.
12420         * configure.ac (enable_threads): Remove posix95.
12421         * configure: Regenerate.
12422         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
12423
12424 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
12425
12426         PR target/49781
12427         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
12428         SImode addresses.
12429         (ix86_print_operand_address): Handle zero-extended addresses.
12430         (memory_address_length): Add length of addr32 prefix for
12431         zero-extended addresses.
12432         (ix86_secondary_reload): Handle moves to/from double-word general
12433         registers from/to zero-extended addresses.
12434         * config/i386/predicates.md (lea_address_operand): Reject
12435         zero-extended operands.
12436
12437 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
12438
12439         PR other/48007
12440         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
12441
12442         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
12443         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
12444
12445         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
12446         (_Unwind_Context_Reg_Val): Likewise.
12447         (_Unwind_Get_Unwind_Word): Likewise.
12448         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
12449         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
12450         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
12451         for EXTENDED_CONTEXT_BIT.
12452         (__frame_state_for): Likewise.
12453         (uw_init_context_1): Likewise.
12454         (_Unwind_GetGR): Updated.
12455         (_Unwind_SetGR): Likewise.
12456         (_Unwind_GetGRPtr): Likewise.
12457         (_Unwind_SetGRPtr): Likewise.
12458         (_Unwind_SetGRValue): Likewise.
12459         (_Unwind_GRByValue): Likewise.
12460         (uw_install_context_1): Likewise.
12461
12462         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
12463         ASSUME_EXTENDED_UNWIND_CONTEXT.
12464         * doc/tm.texi: Regenerated.
12465
12466 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12467
12468         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
12469
12470 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12471
12472         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
12473         Linux/GNU-specific.
12474         (DEC Alpha Options, -mtune): Likewise.
12475         (MIPS Options, -march): native is supported on IRIX.
12476
12477 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12478
12479         * config/sparc/driver-sparc.c: New file.
12480         * config/sparc/x-sparc: New file.
12481         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
12482         * config/sparc/sparc.opt (native): New value for enum processor_type.
12483         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
12484         * config/sparc/sparc.c (sparc_option_override): Abort if
12485         PROCESSOR_NATIVE gets here.
12486         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
12487         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
12488         DRIVER_SELF_SPECS): Define.
12489         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
12490         (SPARC Options, -mtune): Likewise.
12491         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
12492         Substitute result.
12493         * configure: Regenerate.
12494         * Makefile.in (EXTRA_GCC_LIBS): Set.
12495         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
12496         (cpp$(exeext)): Likewise.
12497
12498 2011-08-08  Richard Guenther  <rguenther@suse.de>
12499
12500         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
12501         split out from ...
12502         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
12503         by composition.
12504
12505 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
12506
12507         PR tree-optimization/50005
12508         * ipa-inline-analysis (remap_predicate): Add cast to
12509         silence signed/unsigned comparison warning.
12510
12511 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
12512
12513         * modulo-sched.c (get_sched_window): Use a table for the debug output.
12514         Print the current ii.
12515         (sms_schedule_by_order): Reduce whitespace in dump line.
12516
12517 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
12518
12519         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
12520         and one loop for successors.  Fix upper bound of memory range.
12521
12522 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
12523
12524         PR target/50001
12525         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
12526         (TARGET_INSTANTIATE_DECLS): New define.
12527
12528 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
12529             Mikael Morin   <mikael.morin@sfr.fr>
12530
12531         * Makefile.in (INCLUDES_FOR_TARGET): New.
12532         (LIBGCC2_CFLAGS): Use it.
12533         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
12534
12535 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
12536
12537         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
12538         frame->save_regs_using_mov calculation.
12539
12540 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
12541
12542         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
12543         * config/i386/sse.md (castmode): New mode attribute.
12544         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
12545         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
12546
12547 2011-08-05  Jan Hubicka  <jh@suse.cz>
12548
12549         PR middle-end/49494
12550         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
12551
12552 2011-08-05  Jan Hubicka  <jh@suse.cz>
12553
12554         PR middle-end/49500
12555         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
12556         handle aliases.
12557         (create_emultls_var):New function.
12558         (ipa_lower_emutls): Handle aliases correctly.
12559
12560 2011-08-05  Jan Hubicka  <jh@suse.cz>
12561
12562         PR middle-end/49735
12563         * ipa-inline.c (recursive_inlining): Look through aliases.
12564
12565 2011-08-05  Jason Merrill  <jason@redhat.com>
12566
12567         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
12568         declarations to beginning of function.
12569
12570 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
12571
12572         PR rtl-optimization/49900
12573         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
12574         ensure basic blocks stay in the same order.
12575
12576 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
12577
12578         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
12579         store_bit_field.
12580         (s390_expand_atomic): Same.
12581
12582 2011-08-05  Richard Henderson  <rth@redhat.com>
12583
12584         PR rtl-opt/49977
12585         * dwarf2cfi.c (scan_insn_after): Split out of ...
12586         (scan_trace): ... here.  Correctly place notes wrt sequences.
12587
12588 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
12589             Richard Henderson  <rth@redhat.com>
12590
12591         PR rtl-opt/49982
12592         * expr.c (fixup_args_size_notes): Look through no-op moves.
12593
12594 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
12595
12596         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
12597         of "m" for operand 0.  Add type and mode attribute.
12598         (*pushxf_nointeger"): Use "<" constraint for operand 0.
12599         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
12600         constraint instead of "o" for opreand 1.
12601         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
12602         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
12603         operand 0, alternative 4.
12604         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
12605
12606 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
12607
12608         * config/i386/predicates.md (lea_address_operand): Rename from
12609         no_seg_address_operand.
12610         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
12611         (*lea_1_zext): Ditto.
12612         (*lea_2): Ditto.
12613         (*lea_2_zext): Ditto.
12614
12615 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
12616
12617         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
12618         parts.base and parts.index.
12619         * config/i386/predicates.md (aligned_operand): Ditto.
12620         (cmpxchg8b_pic_memory_operand): Ditto.
12621
12622 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12623
12624         * config/soft-fp: Move to ../libgcc.
12625         * Makefile.in (SFP_MACHINE): Remove.
12626         (libgcc-support): Remove $(SFP_MACHINE) dependency.
12627         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
12628         * config/arm/t-arm-softfp: Move to
12629         ../libgcc/config/arm/t-softfp.
12630         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
12631         * config/c6x/t-c6x-softfp: Remove.
12632         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
12633         * config/i386/t-fprules-softfp: Move to
12634         ../libgcc/config/t-softfp-tf.
12635         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
12636         * config/ia64/t-fprules-softfp: Remove.
12637         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
12638         * config/lm32/t-fprules-softfp: Remove.
12639         * config/moxie/sfp-machine.h: Remove.
12640         * config/moxie/t-moxie-softfp: Remove.
12641         * config/rs6000/darwin-ldouble-format: Move to
12642         ../libgcc/config/rs6000/ibm-ldouble-format.
12643         * config/rs6000/darwin-ldouble.c: Move to
12644         ../libgcc/config/rs6000/ibm-ldouble.c
12645         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
12646         * config/rs6000/libgcc-ppc64.ver: Likewise.
12647         * config/rs6000/sfp-machine.h: Likewise.
12648         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
12649         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
12650         (LIB2FUNCS_EXTRA): Remove.
12651         (TARGET_LIBGCC2_CFLAGS): Remove.
12652         * config/rs6000/t-aix52: Likewise
12653         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
12654         $(srcdir)/config/rs6000/darwin-ldouble.c.
12655         (SHLIB_MAPFILES): Remove.
12656         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
12657         $(srcdir)/config/rs6000/darwin-ldouble.c.
12658         * config/rs6000/t-fprules-softfp: Move to
12659         ../libgcc/config/t-softfp-sfdf.
12660         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
12661         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
12662         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
12663         $(srcdir)/config/rs6000/darwin-ldouble.c.
12664         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
12665         * config/score/t-score-softfp: Remove.
12666         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
12667         soft-fp/t-softfp from tmake_file.
12668         (arm*-*-uclinux*): Likewise.
12669         (arm*-*-ecos-elf): Likewise.
12670         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
12671         (arm*-*-rtems*): Likewise.
12672         (arm*-*-elf): Likewise.
12673         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
12674         tmake_file.
12675         (moxie-*-uclinux*): Likewise.
12676         (moxie-*-rtems*): Likewise.
12677         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
12678         tmake_file.
12679         (lm32-*-rtems*): Likewise.
12680         (lm32-*-uclinux*): Likewise.
12681         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
12682         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
12683         (powerpc-*-linux*, powerpc64-*-linux*): Remove
12684         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
12685         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
12686         tmake_file.
12687         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
12688         tmake_file.
12689         (tic6x-*-uclinux): Likewise.
12690         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
12691         soft-fp/t-softfp from tmake_file.
12692         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
12693         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
12694         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
12695         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
12696         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
12697
12698 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12699
12700         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
12701         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
12702         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
12703         TPBIT, TPBIT_FUNCS.
12704         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
12705         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
12706         Remove.
12707         * config/arm/t-vxworks: Likewise.
12708         * config/arm/t-wince-pe: Likewise.
12709         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
12710         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12711         * config/bfin/t-bfin-elf: Likewise.
12712         * config/bfin/t-bfin-linux: Likewise.
12713         * config/bfin/t-bfin-uclinux: Likewise.
12714         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
12715         Remove.
12716         * config/fr30/t-fr30: Likewise.
12717         * config/frv/t-frv: Likewise.
12718         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
12719         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12720         * config/m32c/t-m32c: Likewise.
12721         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
12722         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12723         * config/mcore/t-mcore: Likewise.
12724         * config/mep/t-mep: Likewise.
12725         * config/microblaze/t-microblaze: Likewise.
12726         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
12727         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12728         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
12729         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12730         * config/mn10300/t-linux: Remove.
12731         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12732         * config/pdp11/t-pdp11: Likewise.
12733         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
12734         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
12735         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12736         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
12737         * config/rs6000/t-aix52: Likewise.
12738         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
12739         $(srcdir)/config/rs6000/ppc64-fp.c.
12740         * config/rs6000/t-fprules-fpbit: Remove.
12741         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
12742         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12743         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
12744         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12745         * config/sparc/t-elf: Likewise.
12746         * config/sparc/t-leon: Likewise.
12747         * config/sparc/t-leon3: Likewise.
12748         * config/spu/t-spu-elf: Likewise.
12749         (DPBIT_FUNCS): Remove.
12750         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12751         * config/v850/t-v850: Likewise.
12752         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
12753         (avr-*-*): Likewise.
12754         (h8300-*-rtems*): Set libgcc_tm_file.
12755         (h8300-*-elf*): Likewise.
12756         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
12757         tmake_file.
12758         (powerpc-*-eabisim*): Likewise.
12759         (powerpc-*-elf*): Likewise.
12760         (powerpc-*-eabialtivec*): Likewise.
12761         (powerpc-xilinx-eabi*): Likewise.
12762         (powerpc-*-eabi*): Likewise.
12763         (powerpc-*-rtems*): Likewise.
12764         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
12765         (powerpcle-*-elf*): Likewise.
12766         (powerpcle-*-eabisim*): Likewise.
12767         (powerpcle-*-eabi*): Likewise.
12768         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
12769         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
12770         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
12771         Remove.
12772
12773 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12774
12775         * Makefile.in (UNWIND_H): Remove.
12776         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
12777         ../libgcc/Makefile.in.
12778         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
12779         (LIBUNWINDDEP): Remove.
12780         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
12781         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
12782         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
12783         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
12784         Don't copy $(UNWIND_H).
12785         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
12786         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
12787         * aclocal.m4: Regenerate.
12788         * configure: Regenerate.
12789         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
12790         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
12791         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
12792         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
12793         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
12794         * config/arm/libunwind.S, config/arm/pr-support.c,
12795         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
12796         ../libgcc/config/arm.
12797         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
12798         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
12799         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
12800         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
12801         ($(T)frvend$(objext)): Likewise.
12802         * config/ia64/t-glibc (LIB2ADDEH): Remove.
12803         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
12804         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
12805         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
12806         ../libgcc/config/ia64.
12807         * config/ia64/t-hpux (LIB2ADDEH): Remove.
12808         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
12809         * config/ia64/t-vms (LIB2ADDEH): Remove.
12810         * config/ia64/vms.h (UNW_IVMS_MODE,
12811         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
12812         * config/picochip/t-picochip (LIB2ADDEH): Remove.
12813         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
12814         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
12815         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
12816         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
12817         $(srcdir)/../libgcc to refer to unwinder sources.
12818         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
12819         * config/t-darwin (LIB2ADDEH): Remove.
12820         * config/t-freebsd (LIB2ADDEH): Remove.
12821         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
12822         * config/t-libunwind-elf: Move to ../libgcc/config.
12823         * config/t-linux (LIB2ADDEH): Remove.
12824         * config/t-sol2 (LIB2ADDEH): Remove.
12825         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
12826         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
12827
12828 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
12829
12830         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
12831
12832         * doc/invoke.texi: Document core-avx-i.
12833
12834 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12835
12836         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
12837
12838 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
12839
12840         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
12841         result of multiple results reduction when extracting the final
12842         value using scalar code.
12843
12844 2011-08-05  Richard Guenther  <rguenther@suse.de>
12845
12846         PR tree-optimization/49984
12847         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
12848
12849 2011-08-05  Richard Guenther  <rguenther@suse.de>
12850
12851         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
12852         return true for constant integer ranges.
12853         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
12854         BIT_IOR_EXPR handling.
12855
12856 2011-08-04  Kai Tietz  <ktietz@redhat.com>
12857
12858         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
12859         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
12860
12861 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
12862
12863         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
12864         pattern def statement, and its access macro.
12865         (NUM_PATTERNS): Set to 5.
12866         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
12867         pattern def statement.
12868         (vect_transform_loop): Likewise.
12869         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
12870         function vect_recog_over_widening_pattern ().
12871         (vect_operation_fits_smaller_type): New function.
12872         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
12873         Likewise.
12874         (vect_pattern_recog_1): Move the code that marks pattern
12875         statements to vect_mark_pattern_stmts (), and call it.  Update
12876         documentation.
12877         * tree-vect-stmts.c (vect_supportable_shift): New function.
12878         (vect_analyze_stmt): Handle pattern def statement.
12879         (new_stmt_vec_info): Initialize pattern def statement.
12880
12881 2011-08-04  Richard Henderson  <rth@redhat.com>
12882
12883         PR target/49964
12884         * config/i386/i386.c (ix86_expand_call): Don't create nested
12885         PARALLELs for TARGET_VZEROUPPER.
12886         (ix86_split_call_vzeroupper): Fix extraction of the original call.
12887         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
12888         recognize nested PARALLELs.
12889         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
12890         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
12891         *sibcall_value_pop_vzeroupper): Likewise.
12892
12893 2011-08-04  Richard Henderson  <rth@redhat.com>
12894
12895         PR middle-end/49968
12896         * calls.c (expand_call): Use fixup_args_size_notes for
12897         emit_stack_restore.
12898         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
12899         in non-standard modes.
12900
12901 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
12902
12903         * gcc.c (self_spec): New variable.
12904         (static_specs): Add self_spec.
12905         (main): Call do_self_spec on "self_spec" specs after reading
12906         user specs files.  Move compare_debug handling right after that.
12907
12908 2011-08-04  Richard Guenther  <rguenther@suse.de>
12909
12910         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
12911         (value_range_nonnegative_p): New function.
12912         (ssa_name_nonnegative_p): Use it.
12913         (value_range_constant_singleton): New function.
12914         (op_with_constant_singleton_value_range): Use it.
12915         (extract_range_from_binary_expr_1): New function, split out from ...
12916         (extract_range_from_binary_expr): ... this.  Remove fallback
12917         constant folding done here.
12918
12919 2011-08-04  Richard Guenther  <rguenther@suse.de>
12920
12921         PR tree-optimization/49806
12922         * tree-vrp.c (op_with_boolean_value_range_p): New function.
12923         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
12924         a new statement for a final conversion to bool.
12925
12926 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
12927
12928         * gengtype-state.c: Include "bconfig.h" if
12929         GENERATOR_FILE is defined, "config.h" otherwise.
12930         * gengtype.c: Likewise.
12931         * gengtype-lex.l: Likewise.
12932         * gengtype-parse.c: Likewise.
12933         * Makefile.in (gengtype-lex.o-warn): New variable.
12934         (plugin_resourcesdir): Likewise.
12935         (plugin_bindir): Likewise.
12936         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
12937         (MOSTLYCLEANFILES): Add gengtype$(exeext).
12938         (native): Depend on gengtype$(exeext) is $enable_plugin
12939         is set to "yes".
12940         (gtype.state): Depend on s-gtype. Use temporary file.
12941         (gengtype-lex.o): New rule.
12942         (gengtype-parse.o): Likewise.
12943         (gengtype-state.o): Likewise.
12944         (gengtype$(exeext)): Likewise.
12945         (install-gengtype): Likewise.
12946         (gengtype.o): Likewise.
12947         (build/gengtype.o): Depend on version.h.
12948         (build/gengtype-state): Depend on double-int.h, version.h,
12949         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
12950         (install-plugin): Depend on install-gengtype.
12951
12952 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
12953
12954         PR middle-end/49905
12955         * tree.h (init_attributes): New prototype.
12956         * attribs.c (init_attributes): No longer static.
12957
12958 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12959
12960         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
12961         maybe_suffix.
12962
12963 2011-08-03   David Li  <davidxl@google.com>
12964
12965         * tree-optimize.c (execute_fixup_cfg): Fix up entry
12966         outgoing edge counts after inlining.
12967
12968 2011-08-03   David Li  <davidxl@google.com>
12969
12970         * profile.c (compute_branch_probabilities): Compute
12971         function frequency after profile annotation.
12972
12973 2011-08-04  Alan Modra  <amodra@gmail.com>
12974
12975         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
12976         use_backchain_to_restore_sp initialisation.
12977         (rs6000_legitimate_offset_address_p): Simplify offset test.
12978
12979 2011-08-03  Richard Henderson  <rth@redhat.com>
12980
12981         * config/spu/spu.md: Use define_c_enum instead of define_constants.
12982         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
12983         (UNSPECV_NOP): New.
12984
12985 2011-08-03  Richard Henderson  <rth@redhat.com>
12986
12987         PR target/34888
12988         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
12989
12990 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
12991
12992         PR tree-optimization/49948
12993         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
12994
12995 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
12996
12997         * config/m32c/m32c.c (class_sizes): Remove.
12998         (reduce_class): Change arguments and return type to reg_class_t.
12999         Change type cc var to HARD_REG_SET. Change type best var to
13000         reg_class_t. Change type best_size var to unsigned int. Remove
13001         initialization class_sizes var. Use reg_class_size array instead
13002         of class_sizes. Use reg_class_contents array instead
13003         of class_contents.
13004
13005 2011-08-03  Richard Guenther  <rguenther@suse.de>
13006
13007         PR middle-end/49958
13008         * fold-const.c (fold_binary_loc): Only associate
13009         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
13010         overflow wraps.
13011
13012 2011-08-03  Alan Modra  <amodra@gmail.com>
13013
13014         PR rtl-optimization/49941
13015         * jump.c (mark_jump_label): Comment.
13016         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
13017         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
13018         (mark_used_flags): Don't mark RETURN.
13019
13020 2011-08-03  Richard Guenther  <rguenther@suse.de>
13021
13022         PR tree-optimization/49938
13023         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
13024         deal with a POLYNOMIAL_CHREC.
13025
13026 2011-08-03  Revital Eres  <revital.eres@linaro.org>
13027
13028         * modulo-sched.c (calculate_stage_count,
13029         calculate_must_precede_follow, get_sched_window,
13030         try_scheduling_node_in_cycle, remove_node_from_ps): Add
13031         declaration.
13032         (update_node_sched_params, set_must_precede_follow, optimize_sc):
13033         New functions.
13034         (reset_sched_times): Call update_node_sched_params.
13035         (sms_schedule): Call optimize_sc.
13036         (get_sched_window): Change function arguments.
13037         (sms_schedule_by_order): Update call to get_sched_window.
13038         Call set_must_precede_follow.
13039         (calculate_stage_count): Add function argument.
13040
13041 2011-08-02  Richard Henderson  <rth@redhat.com>
13042
13043         PR target/49864
13044         PR target/49879
13045         * reg-notes.def (REG_ARGS_SIZE): New.
13046         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
13047         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
13048         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
13049         different stack levels.
13050         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
13051         (maybe_move_args_size_note): New.
13052         (combine_stack_adjustments_for_block): Use it.
13053         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
13054         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
13055         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
13056         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
13057         (cur_cfa): New.
13058         (queued_args_size): Remove.
13059         (add_cfi_args_size): Assert size is non-negative.
13060         (stack_adjust_offset, dwarf2out_args_size): Remove.
13061         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
13062         (notice_args_size, notice_eh_throw): New.
13063         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
13064         (dwarf2out_frame_debug_adjust_cfa): Likewise.
13065         (dwarf2out_frame_debug_cfa_offset): Likewise.
13066         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
13067         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
13068         (change_cfi_row): Don't emit args_size.
13069         (maybe_record_trace_start_abnormal): Split out from ...
13070         (maybe_record_trace_start): Here.  Set args_size_undefined.
13071         (create_trace_edges): Update to match.
13072         (scan_trace): Handle REG_ARGS_SIZE.
13073         (connect_traces): Connect args_size between EH insns.
13074         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
13075         * explow.c (suppress_reg_args_size): New.
13076         (adjust_stack_1): Split out from ...
13077         (adjust_stack): ... here.
13078         (anti_adjust_stack): Use it.
13079         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
13080         * expr.c (mem_autoinc_base): New.
13081         (fixup_args_size_notes): New.
13082         (emit_single_push_insn_1): Rename from emit_single_push_insn.
13083         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
13084         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
13085         * reload1.c (reload_as_needed): Likewise.
13086         * rtl.h (fixup_args_size_notes): Declare.
13087
13088 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
13089
13090         PR bootstrap/49914
13091         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
13092         of abs.
13093         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
13094         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
13095
13096 2011-08-02  Richard Henderson  <rth@redhat.com>
13097
13098         * config/h8300/h8300.c (push, pop): Return the insn.
13099         (h8300_swap_into_er6): Generate correct unwind info.
13100         (h8300_swap_out_of_er6): Likewise.
13101         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
13102         complex cfa expression.
13103         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
13104
13105 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
13106
13107         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
13108
13109 2011-08-02  Richard Henderson  <rth@redhat.com>
13110
13111         PR target/49878
13112         * config/h8300/h8300.c (h8300_move_ok): New.
13113         * config/h8300/h8300-protos.h: Declare it.
13114         * config/h8300/h8300.md (P): New mode iterator.
13115         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
13116         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
13117         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
13118         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
13119         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
13120         and pushqi1_h8300hs_normal; use PRE_MODIFY and
13121         register_no_sp_elim_operand.
13122         (*pushhi1_h8300hs_<P>): Similarly.
13123         (pushqi1, pushhi1, pushhi1_h8300): Remove.
13124         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
13125
13126 2011-08-02  Richard Henderson  <rth@redhat.com>
13127
13128         PR target/49881
13129         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
13130
13131 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
13132
13133         * c-parser.c (enum c_parser_prec): New enum, moved from within
13134         c_parser_binary_expression.
13135         (c_parser_binary_expression): Add PREC argument.  Stop parsing
13136         if operator has lower or equal precedence than PREC.
13137         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
13138         callers.
13139         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
13140         Adjust c_finish_omp_atomic caller.
13141         (c_parser_omp_taskyield): New function.
13142         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
13143         (c_parser_omp_clause_name): Handle final and mergeable clauses.
13144         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
13145         functions.
13146         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
13147         and PRAGMA_OMP_CLAUSE_MERGEABLE.
13148         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
13149         (c_parser_omp_clause_reduction): Handle min and max.
13150         * c-typeck.c (c_finish_omp_clauses): Don't complain about
13151         const qualified predetermined vars in firstprivate clause.
13152         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
13153         Handle MIN_EXPR and MAX_EXPR.
13154         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
13155         and OMP_CLAUSE_MERGEABLE.
13156         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
13157         and OMP_ATOMIC_CAPTURE_NEW.
13158         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
13159         OMP_CLAUSE_MERGEABLE.
13160         (omp_clause_code_name): Likewise.
13161         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
13162         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
13163         and OMP_CLAUSE_MERGEABLE.
13164         (OMP_CLAUSE_FINAL_EXPR): Define.
13165         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
13166         OMP_CLAUSE_MERGEABLE.
13167         (expand_task_call): Likewise.
13168         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
13169         (expand_omp_atomic_fetch_op): Handle cases where old or new
13170         value is needed afterwards.
13171         (expand_omp_atomic): Call expand_omp_atomic_load resp.
13172         expand_omp_atomic_store.
13173         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
13174         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
13175         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
13176         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
13177         * tree-nested.c (convert_nonlocal_omp_clauses,
13178         convert_local_omp_clauses): Likewise.
13179         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
13180         OMP_ATOMIC_CAPTURE_NEW): New.
13181         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
13182         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
13183         New inlines.
13184         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
13185         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
13186         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
13187
13188 2011-08-02  Kai Tietz  <ktietz@redhat.com>
13189
13190         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
13191         boolean-type.
13192         (ssa_forward_propagate_and_combine): Interprete result of
13193         forward_propagate_comparison.
13194         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
13195         boolean-typed operands for comparisons.
13196
13197 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
13198
13199         * config/avr/libgcc.S: Gather related function in the
13200         same input section.
13201         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
13202         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
13203         references.
13204         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
13205         __udivmodsi4, __divmodsi4, __prologue_saves__,
13206         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
13207         __do_copy_data, __do_clear_bss, __do_global_ctors,
13208         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
13209
13210 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
13211
13212         PR target/47766
13213         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
13214         (stack_protect_test): The pattern compares ptr_mode value.
13215
13216 2011-08-02  Alan Modra  <amodra@gmail.com>
13217
13218         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
13219         note for save_LR_around_toc_setup sequence.
13220
13221 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
13222
13223         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
13224
13225 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
13226             Joseph Myers  <joseph@codesourcery.com>
13227
13228         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
13229         * hwint.c: Include diagnostic-core.h.
13230         (abs_hwi): New.
13231         (gcd): Moved here...
13232         (pos_mul_hwi): New.
13233         (mul_hwi): New.
13234         (least_common_multiple): Moved here...
13235         * hwint.h (gcd): ... from here.
13236         (least_common_multiple): ... from here.
13237         (HOST_WIDE_INT_MIN): New.
13238         (HOST_WIDE_INT_MAX): New.
13239         (abs_hwi): Declared.
13240         (gcd): Declared.
13241         (pos_mul_hwi): Declared.
13242         (mul_hwi): Declared.
13243         (least_common_multiple): Declared.
13244         * omega.c (check_pos_mul): Removed.
13245         (check_mul): Removed.
13246         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
13247         mul_hwi instead of check_mul.
13248
13249 2011-08-01  Richard Henderson  <rth@redhat.com>
13250
13251         PR target/49881
13252         * config/avr/avr.h (PUSH_ROUNDING): New.
13253         * config/avr/avr.md (pushqi1): Rename from *pushqi.
13254         (*pushhi, *pushsi, *pushsf): Remove.
13255         (MPUSH): New mode iterator.
13256         (push<MPUSH>1): New expander.
13257
13258 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
13259
13260         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
13261         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
13262         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
13263         mmix_preferred_output_reload_class): Remove.
13264         * config/mmix/mmix.c (mmix_preferred_reload_class,
13265         mmix_preferred_output_reload_class): Make static. Change rclass
13266         argument and return type to reg_class_t.
13267         (TARGET_PREFERRED_RELOAD_CLASS,
13268         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13269
13270 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13271
13272         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
13273         handling.
13274
13275 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
13276
13277         PR target/47766
13278         * config/i386/i386.md (PTR): New.
13279         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
13280         (stack_protect_test): Likewise.
13281         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
13282         (stack_tls_protect_set_<mode>): Likewise.
13283         (stack_tls_protect_test_<mode>): Likewise.
13284
13285 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
13286
13287         PR target/49927
13288         * config/i386/i386.c (ix86_address_subreg_operand): New.
13289         (ix86_decompose_address): Use ix86_address_subreg_operand.
13290         (ix86_legitimate_address_p): Do not assert that subregs satisfy
13291         register_no_elim_operand in DImode.
13292
13293 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
13294
13295         PR tree-optimization/49926
13296         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
13297         in a chain doesn't have uses both inside and outside the loop.
13298
13299 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
13300
13301         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
13302         * config/avr/avr-devices.c (avr_mcu_types): Use it.
13303         * config/avr/avr-mcus.def (AVR_MCU): Use it.
13304         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
13305         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
13306         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
13307         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
13308         to detect if XJMP must not be skipped.
13309
13310 2011-08-02  Alan Modra  <amodra@gmail.com>
13311
13312         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
13313         Delete.
13314         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
13315         (rs6000_emit_prologue): Don't prematurely return when
13316         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
13317         save_toc_in_prologue case.
13318         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
13319         calls_alloca.
13320
13321 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
13322
13323         * config/avr/avr-devices.c: Delete SVN property svn:executable.
13324         * config/avr/predicates.md: Ditto.
13325         * config/avr/driver-avr.c: Ditto.
13326         * config/avr/genopt.sh: Set SVN property svn:executable to *.
13327
13328 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
13329
13330         * calls.c (emit_library_call_value_1): Declare size only if
13331         BLOCK_REG_PADDING is defined.
13332
13333 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
13334
13335         PR target/49547
13336         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
13337         (x86_64-*-*): Likewise.
13338         * config/i386/i386.opt (mlzcnt): New.
13339         * config/i386/abmintrin.h: File removed.
13340         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
13341         * config/i386/lzcntintrin.h: ... here.  New file.
13342         (__lzcnt): Rename to ...
13343         (__lzcnt32): ... this.
13344         * config/i386/bmiintrin.h (head): Update copyright year.
13345         (__lzcnt_u16): Removed.
13346         (__lzcnt_u32): Likewise.
13347         (__lzcnt_u64): Likewise.
13348         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
13349         is defined, remove abmintrin.h.
13350         * config/i386/cpuid.h (bit_LZCNT): New.
13351         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13352         LZCNT feature.
13353         * config/i386/i386-c.c (ix86_target_macros_internal): Define
13354         __LZCNT__ if needed.
13355         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
13356         (ix86_option_override_internal): Handle LZCNT option.
13357         (ix86_valid_target_attribute_inner_p): Likewise.
13358         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
13359         * config/i386/i386.h (TARGET_LZCNT): New.
13360         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
13361         * config/i386/i386.md (clz<mode>2): Update insn constraint.
13362         (clz<mode>2_lzcnt): Likewise.
13363         * doc/invoke.texi: Mention -mlzcnt option.
13364         * doc/extend.texi: Likewise.
13365
13366 2011-08-01  Julian Brown  <julian@codesourcery.com>
13367
13368         * configure.ac (fixed-point): Add ARM support.
13369         * configure: Regenerate.
13370         * config/arm/arm.c (arm_fixed_mode_set): New struct.
13371         (arm_set_fixed_optab_libfunc): New.
13372         (arm_set_fixed_conv_libfunc): New.
13373         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
13374         ARM-specific names.
13375         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
13376         return values in SImode.
13377         (arm_return_in_msb): Return fixed-point types in the msb.
13378         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
13379         upwards.
13380         (arm_scalar_mode_supported_p): Support fixed-point modes.
13381         (arm_vector_mode_supported_p): Support vector fixed-point modes.
13382         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
13383         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
13384         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
13385         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
13386         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
13387         New mode iterators.
13388         (qaddsub_suf): New mode attribute.
13389         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
13390         vector modes.
13391         * config/arm/predicates.md (sat_shift_operator): New predicate.
13392         * config/arm/arm-fixed.md: New.
13393         * config/arm/arm.md: Include arm-fixed.md.
13394         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
13395
13396 2011-08-01  Julian Brown  <julian@codesourcery.com>
13397
13398         * calls.c (emit_library_call_value_1): Support padding for libcall
13399         arguments and return values.
13400         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
13401         downwards in big-endian mode.
13402
13403 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13404
13405         PR debug/49887
13406         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
13407         * config/sol2-protos.h: Likewise.
13408         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
13409         solaris_code_end.
13410         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
13411         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
13412         solaris_file_end.
13413         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
13414
13415 2011-08-01  Julian Brown  <julian@codesourcery.com>
13416
13417         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
13418
13419 2011-08-01  Julian Brown  <julian@codesourcery.com>
13420
13421         * final.c (output_addr_const): Print fixed-point constants as
13422         decimal not hex.
13423
13424 2011-08-01  Richard Guenther  <rguenther@suse.de>
13425
13426         * stor-layout.c (initialize_sizetypes): Properly sign-extend
13427         bitsiztype TYPE_MAX_VALUE.
13428
13429 2011-08-01  Julian Brown  <julian@codesourcery.com>
13430
13431         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
13432         comparison helpers.
13433
13434 2011-07-31  Richard Henderson  <rth@redhat.com>
13435
13436         * config/h8300/crti.asm: Add flags to .section directive.
13437         * config/h8300/crtn.asm: Likewise.
13438
13439 2011-07-31  Richard Henderson  <rth@redhat.com>
13440
13441         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
13442         * tree.c (build_common_tree_nodes): Likewise.
13443
13444 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
13445
13446         PR target/49880
13447         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
13448         (divsi3_i1): Likewise.
13449
13450 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13451
13452         PR tree-optimization/49749
13453         * tree-ssa-reassoc.c (get_rank): New forward declaration.
13454         (PHI_LOOP_BIAS): New macro.
13455         (phi_rank): New function.
13456         (loop_carried_phi): Likewise.
13457         (propagate_rank): Likewise.
13458         (get_rank): Add calls to phi_rank and propagate_rank.
13459
13460 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
13461
13462         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
13463         of TARGET_64BIT.
13464         (PTRDIFF_TYPE): Likewise.
13465
13466 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
13467
13468         PR target/49920
13469         * config/i386/i386.md (strset): Do not expand strset_singleop
13470         when %eax or $edi are fixed.
13471         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
13472         (*strsetsi_1): Ditto.
13473         (*strsethi_1): Ditto.
13474         (*strsetqi_1): Ditto.
13475         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
13476         (*rep_stossi): Ditto.
13477         (*rep_stosqi): Ditto.
13478         (*strlenqi_1): Ditto.
13479         (cmpstrnsi): Also fail when %ecx is fixed.
13480         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
13481         (*cmpstrnqi_1): Ditto.
13482         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
13483         (*strmovsi_1): Ditto.
13484         (*strmovhi_1): Ditto.
13485         (*strmovqi_1): Ditto.
13486         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
13487         (*rep_movsi): Ditto.
13488         (*rep_movqi): Ditto.
13489
13490 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
13491
13492         PR target/47908
13493         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
13494         Disable instruction scheduling for non-ColdFire targets.
13495         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
13496
13497 2011-07-31  Revital Eres  <revital.eres@linaro.org>
13498
13499         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
13500         of anti-dep edge from a branch.
13501         (add_cross_iteration_register_deps): Create anti-dep edge from
13502         a branch.
13503
13504 2011-07-31  Revital Eres  <revital.eres@linaro.org>
13505
13506         * modulo-sched.c: Change comment.
13507         (reset_sched_times): Fix print message.
13508         (print_partial_schedule): Add print info.
13509
13510 2011-07-31  Tom de Vries  <tom@codesourcery.com>
13511
13512         PR middle-end/43513
13513         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
13514         get_object_alignment and TYPE_ALIGN.
13515
13516 2011-07-30  Tom de Vries  <tom@codesourcery.com>
13517
13518         PR middle-end/43513
13519         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
13520         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
13521
13522 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13523
13524         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
13525         <sys/sbd.h>.
13526         (cpu_types): New array.
13527         (cputype): New function.
13528         (host_detect_local_cpu): Only define buf, f if !__sgi__.
13529         Use scaninvent instead of /proc/cpuinfo if __sgi__.
13530         * config.host: Also use driver-native.o, mips/x-native on
13531         mips-sgi-irix*.
13532         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
13533         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
13534         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
13535
13536 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
13537
13538         PR middle-end/49897
13539         PR middle-end/49898
13540         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
13541         in nested parallel and outer is a gimple_reg, mark it as addressable
13542         and set its bit in task_shared_vars bitmap too.
13543
13544 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
13545
13546         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
13547
13548 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13549
13550         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
13551         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
13552         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
13553         AMASK_LOCKPFTCHOK): Define.
13554         (host_detect_local_cpu): Remove buf, f, cpu_names.
13555         Define cpu_types, implver, amask.
13556         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
13557         native CPU.
13558         * config.host: Also use driver-alpha.o, alpha/x-alpha on
13559         alpha*-dec-osf*.
13560         * config/alpha/osf5.h [__alpha__ || __alpha]
13561         (host_detect_local_cpu): Declare.
13562         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
13563         (DRIVER_SELF_SPECS): Define.
13564
13565 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
13566
13567         PR target/47715
13568         * config/i386/i386.md (*load_tp_x32): New.
13569         (*load_tp_x32_zext): Ditto.
13570         (*add_tp_x32): Ditto.
13571         (*add_tp_x32_zext): Ditto.
13572         (*load_tp_<mode>): Disable for TARGET_X32 targets.
13573         (*add_tp_<mode>): Ditto.
13574         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
13575         ptr_mode and convert to Pmode if needed.
13576
13577 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
13578
13579         PR target/49687
13580         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
13581         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
13582         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
13583         Add X to register footprint: Clobber r26/r27.
13584
13585 2011-07-29  Richard Guenther  <rguenther@suse.de>
13586
13587         * builtins.c (fold_builtin_signbit): Build the comparison
13588         with a proper type.
13589
13590 2011-07-29  Richard Guenther  <rguenther@suse.de>
13591
13592         PR tree-optimization/49893
13593         * tree-predcom.c (suitable_reference_p): Volatile references
13594         are not suitable.
13595
13596 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
13597
13598         PR target/49313
13599         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
13600         (__ctzsi2): Result for 0 may be undefined.
13601         (__ctzhi2): Result for 0 may be undefined.
13602         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
13603         (__popcountsi2): Ditto. And don't clobber r26.
13604         (__popcountdi2): Ditto. And don't clobber r27.
13605         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
13606         (parityhi2): New expand.
13607         (paritysi2): New expand.
13608         (popcounthi2): New expand.
13609         (popcountsi2): New expand.
13610         (clzhi2): New expand.
13611         (clzsi2): New expand.
13612         (ctzhi2): New expand.
13613         (ctzsi2): New expand.
13614         (ffshi2): New expand.
13615         (ffssi2): New expand.
13616         (copysignsf3): New insn.
13617         (bswapsi2): New expand.
13618         (*parityhi2.libgcc): New insn.
13619         (*parityqihi2.libgcc): New insn.
13620         (*paritysihi2.libgcc): New insn.
13621         (*popcounthi2.libgcc): New insn.
13622         (*popcountsi2.libgcc): New insn.
13623         (*popcountqi2.libgcc): New insn.
13624         (*popcountqihi2.libgcc): New insn-and-split.
13625         (*clzhi2.libgcc): New insn.
13626         (*clzsihi2.libgcc): New insn.
13627         (*ctzhi2.libgcc): New insn.
13628         (*ctzsihi2.libgcc): New insn.
13629         (*ffshi2.libgcc): New insn.
13630         (*ffssihi2.libgcc): New insn.
13631         (*bswapsi2.libgcc): New insn.
13632
13633 2011-07-29  Richard Guenther  <rguenther@suse.de>
13634
13635         * tree-vrp.c (get_value_range): Only set parameter default
13636         definitions to varying, leave others at undefined.
13637         (extract_range_from_binary_expr): Fix undefined handling.
13638         (vrp_visit_phi_node): Handle merged undefined state.
13639
13640 2011-07-29  Wei Guozhi  <carrot@google.com>
13641
13642         PR rtl-optimization/49799
13643         * combine.c (make_compound_operation): Check if the bit field is valid
13644         before change it to bit field extraction.
13645
13646 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
13647
13648         PR rtl-optimization/49891
13649         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
13650         newly created returnjumps.
13651
13652 2011-07-28  DJ Delorie  <dj@redhat.com>
13653
13654         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
13655         local frame in a naked function, and produce a suitable error for
13656         that specific case.
13657
13658         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
13659         registers to be reloaded in HI classes when the target is HI.
13660
13661 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
13662
13663         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
13664         bound_one, bound_two.
13665
13666 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
13667
13668         PR middle-end/48648
13669         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
13670         CLAST assignments.
13671         (translate_clast): Same.
13672         (translate_clast_assignment): New.
13673
13674 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
13675
13676         PR tree-optimization/49876
13677         * sese.c (rename_uses): Do not return false on gloog_error: set
13678         the new_expr to integer_zero_node and continue code generation.
13679         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
13680
13681 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
13682
13683         PR debug/49846
13684         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
13685         arguments also check if they aren't initialized with a MODE_INT
13686         mode of the same size.
13687
13688 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
13689
13690         * expr.c (get_bit_range): Handle *MEM_REF's.
13691
13692 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
13693
13694         * rtlanal.c (tablejump_p): False for returns.
13695         * reorg.c (first_active_target_insn): New static function.
13696         (find_end_label): Set JUMP_LABEL for a new returnjump.
13697         (optimize_skip, get_jump_flags, rare_destination,
13698         mostly_true_jump, get_branch_condition,
13699         steal_delay_list_from_target, own_thread_p,
13700         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
13701         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
13702         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
13703         * jump.c (delete_related_insns): Likewise.
13704         (jump_to_label_p): New function.
13705         (redirect_target): New static function.
13706         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
13707         (redirect_jump_1): Assert that the new label is nonnull.
13708         (redirect_jump): Likewise.
13709         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
13710         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
13711         exit block.
13712         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
13713         changed.  Ensure that the right label is passed to redirect_jump.
13714         * function.c (emit_return_into_block,
13715         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
13716         ret_rtx in their JUMP_LABEL.
13717         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
13718         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
13719         pass ret_rtx as label.
13720         * cfglayout.c (fixup_reorder_chain): Use
13721         force_nonfallthru_and_redirect rather than force_nonfallthru.
13722         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
13723         * rtl.h (ANY_RETURN_P): New macro.
13724         (jump_to_label_p): Declare.
13725         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
13726         JUMP_LABELs.
13727         (mark_target_live_regs): Likewise.
13728         * basic-block.h (force_nonfallthru_and_redirect): Declare.
13729         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
13730         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
13731         alpha_tablejump_best_label): Remove functions.
13732         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
13733         alpha_tablejump_best_label): Remove declarations.
13734         * config/sh/sh.c (barrier_align, split_branches): Adjust for
13735         ret_rtx in JUMP_LABELs.
13736         * config/arm/arm.c (is_jump_table): Likewise.
13737
13738 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
13739
13740         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
13741         special predicate.  Remove explicit mode checks.
13742
13743 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
13744
13745         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
13746         DW_AT_data_member_location containing just DW_OP_plus_uconst.
13747
13748         PR debug/49871
13749         * dwarf2out.c (size_of_die, value_format, output_die): Use
13750         DW_FORM_udata instead of DW_FORM_data[48] for
13751         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
13752
13753 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
13754
13755         * config/i386/i386.md (*tls_global_dynamic_64): Update
13756         length attribute.
13757
13758 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
13759
13760         PR target/47715
13761         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
13762         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
13763         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
13764         (tls_dynamic_gnu2_64): Ditto.
13765         (*tls_dynamic_gnu2_lea_64): Ditto.
13766         (*tls_dynamic_gnu2_call_64): Ditto.
13767         (*tls_dynamic_gnu2_combine_64): Ditto.
13768
13769 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
13770
13771         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
13772
13773 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
13774
13775         PR target/47364
13776         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
13777
13778 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13779
13780         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
13781         before the core constraints. Adjust attributes.
13782         ("*thumb2_movdf_vfp"): Likewise.
13783
13784 2011-07-28  Kai Tietz  <ktietz@redhat.com>
13785
13786         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
13787         (simplify_truth_ops_using_ranges): Likewise.
13788         (build_assert_expr_for): Likewise.
13789         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
13790         and handle BIT_NOT_EXPR for truth-operation.
13791
13792 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
13793
13794         PR target/49313
13795         Undo r176835 from trunk
13796         2011-07-27  Georg-Johann Lay
13797
13798 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
13799
13800         PR target/49687
13801         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
13802         Add _muluhisi3, _mulshisi3, _usmulhisi3.
13803         * config/avr/libgcc.S (__mulsi3): Rewrite.
13804         (__mulhisi3): Rewrite.
13805         (__umulhisi3): Rewrite.
13806         (__usmulhisi3): New.
13807         (__muluhisi3): New.
13808         (__mulshisi3): New.
13809         (__mulohisi3): New.
13810         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
13811         declare.
13812         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
13813         (pseudo_register_or_const_int_operand): New.
13814         (combine_pseudo_register_operand): New.
13815         (u16_operand): New.
13816         (s16_operand): New.
13817         (o16_operand): New.
13818         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
13819         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
13820         (any_extend, any_extend2): New code iterators.
13821         (extend_prefix): New code attribute.
13822         (mulsi3): Rewrite. Turn insn to expander.
13823         (mulhisi3): Ditto.
13824         (umulhisi3): Ditto.
13825         (usmulhisi3): New expander.
13826         (*mulsi3): New insn-and-split.
13827         (mulu<mode>si3): New insn-and-split.
13828         (muls<mode>si3): New insn-and-split.
13829         (mulohisi3): New insn-and-split.
13830         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
13831         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
13832         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
13833         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
13834         insn-and-split.
13835         (*mulsi3_call): Rewrite.
13836         (*mulhisi3_call): Rewrite.
13837         (*umulhisi3_call): Rewrite.
13838         (*usmulhisi3_call): New insn.
13839         (*muluhisi3_call): New insn.
13840         (*mulshisi3_call): New insn.
13841         (*mulohisi3_call): New insn.
13842         (extendqihi2): Use combine_pseudo_register_operand as predicate
13843         for operand 1.
13844         (extendqisi2): Ditto.
13845         (zero_extendqihi2): Ditto.
13846         (zero_extendqisi2): Ditto.
13847         (zero_extendhisi2): Ditto.
13848         (extendhisi2): Ditto. Don't early-clobber operand 0.
13849
13850 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
13851
13852         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
13853
13854 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
13855
13856         PR tree-optimization/49471
13857         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
13858         iv only when the largest type is unsigned.  Do not call
13859         lang_hooks.types.type_for_size.
13860
13861 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
13862
13863         PR middle-end/45450
13864         * graphite-poly.c (apply_poly_transforms): Disable legality check
13865         after an openscop read.
13866
13867 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
13868
13869         PR middle-end/47691
13870         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
13871         copy_bb_and_scalar_dependences.
13872         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
13873         (graphite_copy_stmts_from_block): Update call to rename_uses.
13874         (copy_bb_and_scalar_dependences): Update call to
13875         graphite_copy_stmts_from_block.
13876         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
13877
13878 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
13879
13880         PR target/49313
13881         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
13882         (__ctzsi2): Result for 0 may be undefined.
13883         (__ctzhi2): Result for 0 may be undefined.
13884         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
13885         (__popcountsi2): Ditto. And don't clobber r26.
13886         (__popcountdi2): Ditto. And don't clobber r27.
13887         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
13888         (parityhi2): New expand.
13889         (paritysi2): New expand.
13890         (popcounthi2): New expand.
13891         (popcountsi2): New expand.
13892         (clzhi2): New expand.
13893         (clzsi2): New expand.
13894         (ctzhi2): New expand.
13895         (ctzsi2): New expand.
13896         (ffshi2): New expand.
13897         (ffssi2): New expand.
13898         (copysignsf3): New insn.
13899         (bswapsi2): New expand.
13900         (*parityhi2.libgcc): New insn.
13901         (*parityqihi2.libgcc): New insn.
13902         (*paritysihi2.libgcc): New insn.
13903         (*popcounthi2.libgcc): New insn.
13904         (*popcountsi2.libgcc): New insn.
13905         (*popcountqi2.libgcc): New insn.
13906         (*popcountqihi2.libgcc): New insn-and-split.
13907         (*clzhi2.libgcc): New insn.
13908         (*clzsihi2.libgcc): New insn.
13909         (*ctzhi2.libgcc): New insn.
13910         (*ctzsihi2.libgcc): New insn.
13911         (*ffshi2.libgcc): New insn.
13912         (*ffssihi2.libgcc): New insn.
13913         (*bswapsi2.libgcc): New insn.
13914
13915 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
13916
13917         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
13918         the mode of symbolic_opreand RTXes.
13919
13920 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
13921
13922         * config/i386/predicates.md (x86_64_movabs_operand): Return false
13923         for pic_32bit_operand RTXes.
13924         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
13925         in DImode.
13926
13927 2011-07-27  Kai Tietz  <ktietz@redhat.com>
13928
13929         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
13930         for 32-bit, too.
13931         (ix86_handle_abi_attribute): Allow function attributes
13932         ms_abi/sysv_abi in 32-bit mode, too.
13933         * doc/extend.texi: Adjust attribute documentation.
13934
13935         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
13936         expression handling.
13937         (and_var_with_comparison_1): Likewise.
13938
13939 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
13940
13941         * params.h (ALLOW_STORE_DATA_RACES): New.
13942         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
13943         * Makefile.in (expr.o): Depend on PARAMS_H.
13944         * machmode.h (get_best_mode): Add argument.
13945         * fold-const.c (optimize_bit_field_compare): Add argument to
13946         get_best_mode.
13947         (fold_truthop): Same.
13948         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
13949         * expr.c (emit_group_store): Same.
13950         (copy_blkmode_from_reg): Same.
13951         (write_complex_part): Same.
13952         (optimize_bitfield_assignment_op): Add argument.
13953         Add argument to get_best_mode.
13954         (get_bit_range): New.
13955         (expand_assignment): Calculate maxbits and pass it down accordingly.
13956         (store_field): New argument.
13957         (expand_expr_real_2): New argument to store_field.  Include params.h.
13958         * expr.h (store_bit_field): New argument.
13959         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
13960         into account maxbits.
13961         * calls.c (store_unaligned_arguments_into_pseudos): New argument
13962         to store_bit_field.
13963         * expmed.c (store_bit_field_1): New argument.  Use it.
13964         (store_bit_field): Same.
13965         (store_fixed_bit_field): Same.
13966         (store_split_bit_field): Same.
13967         (extract_bit_field_1): Pass new argument to get_best_mode.
13968         (extract_bit_field): Same.
13969         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
13970         * doc/invoke.texi: Document parameter allow-store-data-races.
13971
13972 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
13973
13974         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
13975
13976 2011-07-27  Kai Tietz  <ktietz@redhat.com>
13977
13978         * tree-vrp.c (extract_range_from_binary_expr): Remove
13979         TRUTH-binary cases and add new bitwise-cases.
13980         (extract_range_from_assignment): Likewise.
13981         (register_edge_assert_for_1): Likeiwise.
13982         (register_edge_assert_for): Likewise.
13983         (simplify_truth_ops_using_ranges): Likewise.
13984         (simplify_stmt_using_ranges): Likewise.
13985
13986 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
13987
13988         PR target/47372
13989         * config/i386/i386.c (ix86_delegitimize_address): Call
13990         simplify_gen_subreg for PIC with mode of x only if modes of
13991         x and orig_x are different.
13992
13993 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
13994
13995         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
13996         to GC allocated copy of the string.
13997         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
13998         before .debug_line, not after it.
13999
14000 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
14001
14002         PR middle-end/47046
14003         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
14004         evolution_function_is_affine_p on CHREC_RIGHT.
14005
14006 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
14007
14008         * tree-data-ref.c (max_stmt_executions_tree): Do not call
14009         lang_hooks.types.type_for_size.
14010
14011 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
14012
14013         PR middle-end/47653
14014         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
14015         loops using wrapping semantics.
14016
14017 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
14018
14019         PR middle-end/48805
14020         * tree-scalar-evolution.c (instantiate_scev_r): Return
14021         chrec_dont_know for ADDR_EXPR.
14022
14023 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
14024             H.J. Lu  <hongjiu.lu@intel.com>
14025
14026         PR target/47369
14027         PR target/49853
14028         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
14029         if legitimize_tls_address returned operand in wrong mode. Allow
14030         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
14031         if legitimize_pic_address returned operand in wrong mode.
14032
14033 2011-07-26  Martin Jambor  <mjambor@suse.cz>
14034
14035         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
14036         return false for invariants.
14037
14038 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
14039
14040         * config/i386/i386.md (add->lea splitter): Implement using SWI
14041         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
14042         (add->lea zext splitter): Change operand 2 predicate to
14043         x86_64_nonmemory_operand.
14044
14045 2011-07-26  Richard Guenther  <rguenther@suse.de>
14046
14047         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
14048         frequency makes everything hot.
14049
14050 2011-07-26  Richard Guenther  <rguenther@suse.de>
14051
14052         PR tree-optimization/49840
14053         * tree-vrp.c (range_fits_type_p): Properly handle full
14054         double-int precision.
14055
14056 2011-07-26  Martin Jambor  <mjambor@suse.cz>
14057
14058         PR bootstrap/49786
14059         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
14060         counts.
14061         (update_specialized_profile): Likewise.
14062
14063 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
14064             H.J. Lu  <hongjiu.lu@intel.com>
14065
14066         PR target/47381
14067         PR target/49832
14068         PR target/49833
14069         * config/i386/i386.md (i): Change SImode attribute to "e".
14070         (g): Change SImode attribute to "rme".
14071         (di): Change SImode attribute to "nF".
14072         (general_operand): Change SImode attribute to x86_64_general_operand.
14073         (general_szext_operand): Change SImode attribute to
14074         x86_64_szext_general_operand.
14075         (immediate_operand): Change SImode attribute to
14076         x86_64_immediate_operand.
14077         (nonmemory_operand): Change SImode attribute to
14078         x86_64_nonmemory_operand.
14079         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
14080         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
14081         (*lea_1): Use SWI48 mode iterator.
14082         (*lea_1_zext): New insn pattern.
14083         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
14084         (*bt<mode>): Ditto.
14085         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
14086         Update operand constraints.
14087         (addsi_1_zext): Ditto.
14088         (*add<mode>2): Ditto.
14089         (*addsi_3_zext): Ditto.
14090         (*subsi_1_zext): Ditto.
14091         (*subsi_2_zext): Ditto.
14092         (*subsi_3_zext): Ditto.
14093         (*addsi3_carry_zext): Ditto.
14094         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
14095         (*mulsi3_1_zext): Ditto.
14096         (*andsi_1): Ditto.
14097         (*andsi_1_zext): Ditto.
14098         (*andsi_2_zext): Ditto.
14099         (*<any_or:code>si_1_zext): Ditto.
14100         (*<any_or:code>si_2_zext): Ditto.
14101         (*test<mode>_1): Use <general_operand> predicate for operand 1.
14102         (*and<mode>_2): Ditto.
14103         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
14104         (add->lea splitter): Check operand modes in insn constraint.  Extend
14105         operands less than SImode wide to SImode.
14106         (add->lea zext splitter): Do not extend input operands to DImode.
14107         (*lea_general_1): Handle only QImode and HImode operands.
14108         (*lea_general_2): Ditto.
14109         (*lea_general_3): Ditto.
14110         (*lea_general_1_zext): Remove.
14111         (*lea_general_2_zext): Ditto.
14112         (*lea_general_3_zext): Ditto.
14113         (*lea_general_4): Check operand modes in insn constraint.  Extend
14114         operands less than SImode wide to SImode.
14115         (ashift->lea splitter): Ditto.
14116         * config/i386/i386.c (ix86_print_operand_address): Print address
14117         registers with 'q' modifier on 64bit targets.
14118         * config/i386/predicates.md (pic_32bit_opreand): Define as special
14119         predicate.  Reject non-SI and non-DI modes.
14120
14121 2011-07-25  Andrew Pinski  <apinski@cavium.com>
14122
14123         PR tree-opt/49671
14124         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
14125         TREE_THIS_NOTRAP into the inner most MEM_REF.
14126         Always copy TREE_THIS_VOLATILE.
14127         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
14128         arguments are not volatile references.
14129
14130 2011-07-25  Richard Henderson  <rth@redhat.com>
14131
14132         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
14133         * final.c (final_scan_insn): Don't test for it.
14134         (rest_of_clean_state): Likewise.
14135
14136 2011-07-25  Richard Henderson  <rth@redhat.com>
14137
14138         PR debug/49841
14139         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
14140         (emit_frame_save): Likewise.
14141         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
14142         insn onto a dummy blockage insn after the join label.
14143
14144 2011-07-25  Richard Henderson  <rth@redhat.com>
14145
14146         * dwarf2cfi.c (dw_trace_info): Add ID member.
14147         (get_trace_index): Remove.  Change users to use ID member.
14148         (before_next_cfi_note): New.
14149         (connect_traces): Remove unreachable traces before the main loop.
14150         Look across one trace and generate remember/restore_state if needed.
14151
14152 2011-07-25  Richard Henderson  <rth@redhat.com>
14153
14154         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
14155
14156 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
14157
14158         * genattr.c (write_upcase, gen_attr <enum definition writing>):
14159         Move to ...
14160         * genattr-common.c ... here.
14161         (main): Call gen_attr.
14162         * optc-gen.awk: Make generated program include insn-attr-common.h .
14163         * Makefile.in (oprions.o): Depend on insn-attr-common.h
14164
14165 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
14166
14167         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
14168         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
14169         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
14170         m32c_print_operand, m32c_print_operand_address): Remove.
14171         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
14172         Change return type to bool. Change argument type to bool.
14173         (m32c_print_operand, m32c_print_operand_address): Make static.
14174         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
14175         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14176
14177 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14178
14179         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
14180         attributes): Document mmap.
14181
14182 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
14183
14184         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
14185         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
14186         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
14187         mmix_print_operand, mmix_print_operand_address): Remove.
14188         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
14189         Change return type to bool. Change argument type to bool.
14190         (mmix_print_operand, mmix_print_operand_address): Make static.
14191         (mmix_intval, mmix_output_condition): Change 'x' argument type
14192         to const_rtx.
14193         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
14194         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14195
14196 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
14197
14198         PR target/39386
14199         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
14200         shift counter for x << x and x >> x shifts.
14201
14202 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14203
14204         PR target/47124
14205         * config.gcc: Reject *-*-solaris2 configuration.
14206
14207 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
14208
14209         PR tree-optimization/49809
14210         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
14211         gimple_get_lhs instead of gimple_assign_lhs.
14212
14213 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14214
14215         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
14216
14217 2011-07-25  Richard Guenther  <rguenther@suse.de>
14218
14219         PR tree-optimization/49822
14220         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
14221         more.  Make sure to preserve stmts with side-effects.  Properly
14222         handle virtual defs, follow a longer def chain.
14223
14224 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
14225
14226         PR plugins/45348
14227         PR plugins/48425
14228         PR plugins/46577
14229         * Makefile.in: Do not flatten c-family directory when installing
14230         plugin headers.
14231
14232 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
14233
14234         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
14235         original nodes if we are dealing with virtual clones.
14236
14237 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
14238
14239         * common/config/c6x/c6x-common.c: New file.
14240
14241 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
14242
14243         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
14244
14245 2011-07-25  Richard Guenther  <rguenther@suse.de>
14246
14247         PR tree-optimization/49715
14248         * tree-vrp.c: Include expr.h and optabs.h.
14249         (range_fits_type_): New function.
14250         (simplify_float_conversion_using_ranges): Likewise.
14251         (simplify_stmt_using_ranges): Call it.
14252         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
14253         * optabs.c (can_float_p): Export.
14254         * optabs.h (can_float_p): Declare.
14255
14256 2011-07-25  Richard Guenther  <rguenther@suse.de>
14257
14258         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
14259         (get_value_range): For out-of-range SSA names or names created
14260         after propagation return a read-only varying range.
14261         (dump_all_value_ranges): Adjust.
14262         (vrp_initialize): Likewise.
14263         (vrp_finalize): Likewise.
14264
14265 2011-07-24  Richard Henderson  <rth@redhat.com>
14266
14267         PR debug/49831
14268         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
14269         them entirely.
14270
14271 2011-07-24  Richard Henderson  <rth@redhat.com>
14272
14273         PR debug/49825
14274         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
14275         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
14276
14277 2011-07-24  Richard Henderson  <rth@redhat.com>
14278
14279         PR debug/49827
14280         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
14281
14282 2011-07-24  Richard Henderson  <rth@redhat.com>
14283
14284         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
14285         Zero args_size for abnormal edges.  Adjust all callers.
14286
14287 2011-07-24  Richard Henderson  <rth@redhat.com>
14288
14289         PR debug/49825
14290         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
14291
14292 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
14293
14294         PR bootstrap/49835
14295         * collect2.c (demangle_flag): Removed.
14296
14297 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
14298
14299         * configure.ac (demangler_in_ld): Default to yes.
14300         * configure: Regenerated.
14301         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
14302         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
14303         --no-demangle options straight through to ld.  When
14304         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
14305         way that has the intended effect on Windows.
14306
14307 2011-07-23  Richard Henderson  <rth@redhat.com>
14308
14309         * dwarf2cfi.c: Include basic-block.h.
14310         (dw_label_info): Remove.
14311         (trace_work_list, trace_index): New.
14312         (remember_row, emit_cfa_remember): Remove.
14313         (dw_trace_info_hash, dw_trace_info_eq): New.
14314         (get_trace_index, get_trace_info): New.
14315         (save_point_p): New.
14316         (free_cfi_row): Remove.
14317         (add_cfi): Do not emit DW_CFA_remember_state.
14318         (cfa_row_equal_p): New.
14319         (barrier_args_size): Remove.
14320         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
14321         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
14322         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
14323         (dwarf2out_cfi_begin_epilogue): Remove.
14324         (dwarf2out_frame_debug_restore_state): Remove.
14325         (connect_traces, create_pseudo_cfg): New.
14326         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
14327         * Makefile.in (dwarf2cfi.o): Update.
14328
14329 2011-07-23  Richard Henderson  <rth@redhat.com>
14330
14331         * dwarf2cfi.c (dw_trace_info): New.
14332         (dw_label_info): New.
14333         (cie_return_save): New.
14334         (cur_trace): New.
14335         (queued_args_size): Rename from args_size.  Update all users.
14336         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
14337         (def_cfa_1): Use cur_trace instead of cfa_*.
14338         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
14339         (clobbers_queued_reg_save, reg_saved_in): Likewise.
14340         (dwarf2out_frame_debug_expr): Likewise.
14341         (create_cie_data): Split out from ...
14342         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
14343
14344 2011-07-23  Richard Henderson  <rth@redhat.com>
14345
14346         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
14347         Update all users to match.
14348         (execute_dwarf2_frame): Free reg_saved_in_data.
14349
14350 2011-07-23  Richard Henderson  <rth@redhat.com>
14351
14352         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
14353         (queued_reg_saves): Don't GTY.  Change to a VEC.
14354         (queue_reg_save): Update to match.
14355         (dwarf2out_flush_queued_reg_saves): Likewise.
14356         (clobbers_queued_reg_save): Likewise.
14357         (reg_saved_in): Likewise.
14358         (execute_dwarf2_frame): Free queued_reg_saves.
14359
14360 2011-07-23  Richard Henderson  <rth@redhat.com>
14361
14362         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
14363
14364 2011-07-23  Richard Henderson  <rth@redhat.com>
14365
14366         * dwarf2cfi.c (add_cfi_args_size): Split out from...
14367         (dwarf2out_args_size): ... here.
14368         (add_cfi_restore): Split out from ...
14369         (dwarf2out_frame_debug_cfa_restore): ... here.
14370         (def_cfa_0): Split out from ...
14371         (def_cfa_1): ... here.
14372         (cfi_oprnd_equal_p, cfi_equal_p): New.
14373         (change_cfi_row): New.
14374         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
14375         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
14376         (output_cfis): Remove.
14377         * dwarf2out.c (output_fde): Simplify output_cfi loop.
14378         (dwarf2out_switch_text_section): Don't call output_cfis.
14379         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
14380         * dwarf2out.h: Update decls.
14381         (enum dw_val_class): Add dw_val_class_none.
14382
14383 2011-07-23  Richard Henderson  <rth@redhat.com>
14384
14385         * dwarf2cfi.c (update_row_reg_save): New.
14386         (dwarf2out_frame_debug_cfa_expression): Use it.
14387         (dwarf2out_frame_debug_cfa_restore): Likewise.
14388         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
14389
14390 2011-07-23  Richard Henderson  <rth@redhat.com>
14391
14392         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
14393
14394 2011-07-23  Richard Henderson  <rth@redhat.com>
14395
14396         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
14397         (cie_cfi_row): New.
14398         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
14399         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
14400         (cur_row, remember_row): New.
14401         (def_cfa_1): Use cur_row instead of the old_* variables.
14402         (dwarf2out_frame_debug_restore_state): Similarly.
14403         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
14404         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
14405         (dwarf2out_frame_debug_adjust_cfa): Likewise.
14406         (dwarf2out_frame_debug_cfa_offset): Likewise.
14407         (dwarf2out_frame_debug_expr): Likewise.
14408         (execute_dwarf2_frame): Set up cur_row.
14409         * dwarf2out.h (struct cfa_loc): Mark for GTY.
14410
14411 2011-07-23  Richard Henderson  <rth@redhat.com>
14412
14413         * basic-block.h (EDGE_PRESERVE): New.
14414         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
14415         * bb-reorder.c: Include except.h.
14416         (fix_up_crossing_landing_pad): New.
14417         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
14418         landing pads in the right partition.  Duplicate as necessary.
14419         (partition_hot_cold_basic_blocks): Fix up DF info after
14420         duplicating landing pads.
14421         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
14422         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
14423         is set properly.  Validate that EH edges are not CROSSING.
14424         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
14425         (dw2_build_landing_pads): ... here.
14426         (convert_to_eh_region_ranges): Remove code to fixup crossing
14427         landing pads.
14428         * except.h (expand_dw2_landing_pad_for_region): Declare.
14429         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
14430
14431 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
14432
14433         PR target/49816
14434         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
14435
14436 2011-07-22  Jason Merrill  <jason@redhat.com>
14437
14438         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
14439
14440 2011-07-22  Richard Henderson  <rth@redhat.com>
14441
14442         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
14443
14444 2011-07-22  Richard Henderson  <rth@redhat.com>
14445
14446         * jump.c (maybe_propagate_label_ref): Split out of...
14447         (mark_all_labels): ... here.  Do not attempt label_ref
14448         propagation while in cfglayout mode.
14449
14450 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
14451
14452         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
14453         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
14454         (dwarf_attr_name): Handle DW_AT_GNU_macros.
14455         (dwarf2out_define): If the vector is empty and
14456         lineno is 0, emit a dummy entry first.
14457         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
14458         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
14459         optimize_macinfo_range): New functions.
14460         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
14461         mergeable, optimize longer strings using
14462         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
14463         optimize longer sequences of define/undef ops from headers
14464         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
14465         emit a section headers.
14466         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
14467         and macinfo_section_label to DEBUG_MACRO_SECTION
14468         resp. DEBUG_MACRO_SECTION_LABEL.
14469         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
14470         instead of DW_AT_macro_info.
14471
14472         PR other/32998
14473         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
14474         options.
14475         * dwarf2out.c: Include opts.h.
14476         (dchar_p): New typedef.  Define heap VEC for it.
14477         (producer_string): New variable.
14478         (gen_producer_string): New function.
14479         (gen_compile_unit_die): Use it.
14480         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
14481         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
14482         * doc/invoke.texi: Document -grecord-gcc-switches and
14483         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
14484         to -frecord-gcc-switches description.
14485
14486 2011-07-22  Jason Merrill  <jason@redhat.com>
14487
14488         PR c++/30112
14489         * c-decl.c (c_linkage_bindings): Define.
14490
14491 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
14492
14493         PR debug/49815
14494         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
14495
14496 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
14497
14498         * config/i386/i386.c (ix86_option_override_internal): Disallow
14499         MS ABI in x32 mode.
14500         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
14501         only for TARGET_LP64.
14502         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
14503
14504 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
14505
14506         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
14507         avoid warnings when GCC is built with a C++ compiler.
14508
14509 2011-07-22  Martin Jambor  <mjambor@suse.cz>
14510
14511         PR lto/49796
14512         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
14513         if decl node is in another partition, call cgraph_get_node only once.
14514
14515 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
14516
14517         * config.gcc (x86_64-*-linux*): Set
14518         default_gnu_indirect_function to yes.
14519
14520 2011-07-22  Richard Guenther  <rguenther@suse.de>
14521
14522         PR tree-optimization/45819
14523         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
14524         preserve volatile and notrap flags.
14525
14526 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14527             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14528
14529         PR bootstrap/49794
14530         * configure.ac: Test AM_ICONV with CXX.
14531         * configure: Regenerate.
14532         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
14533
14534 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14535
14536         PR bootstrap/49797
14537         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
14538         (set_cloog_options): Use it.
14539
14540 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
14541
14542         PR c++/49756
14543         * gcc.c (main): Call stack_limit_increase (64MB).
14544         * toplev.c (toplev_main): Likewise.
14545
14546 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
14547
14548         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
14549         instead of force_reg.
14550
14551 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
14552
14553         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
14554         needed and use force_reg after convert.
14555         (ix86_expand_call): Likewise.
14556         (ix86_expand_special_args_builtin): Likewise.
14557         (ix86_expand_builtin): Likewise.
14558
14559 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14560
14561         PR middle-end/47654
14562         PR middle-end/49649
14563         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
14564         in parameter.  Initialize v1 and v2 based on the values returned
14565         by clast_name_to_lb_ub.
14566         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
14567         values.
14568         (type_for_clast_bin): Same.
14569         (type_for_clast_expr): Same.
14570         (type_for_clast_eq): Update calls to type_for_clast_expr.
14571         (type_for_clast_for): Same.
14572         (build_iv_mapping): Same.
14573         * graphite-ppl.h (value_min): New.
14574
14575 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14576
14577         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
14578         types whenever possible.
14579
14580 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14581
14582         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
14583         and ub fields.
14584         (new_clast_name_index): Add lb and ub parameters.
14585         (free_clast_name_index): New.
14586         (clast_name_to_lb_ub): New.
14587         (save_clast_name_index): Add lb and ub parameters.
14588         (compute_bounds_for_param): New.
14589         (type_for_level): Removed.
14590         (type_for_clast_for): Removed level parameter.  Do not call
14591         type_for_level.
14592         (graphite_create_new_loop): Store the lb and ub for the clast_name
14593         of the iterator of the loop that has been generated.
14594         (graphite_create_new_loop_guard): Remove parameter level.
14595         (create_params_index): Store the lb and ub of each parameter.
14596         (gloog): Use free_clast_name_index.  Pass to create_params_index
14597         the current scop.
14598
14599 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14600
14601         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
14602         (max_precision_type): Inline max_signed_precision_type.
14603         (type_for_clast_red): Use max_precision_type.
14604         (type_for_clast_bin): Same.
14605         (type_for_clast_for): Same.
14606
14607 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14608
14609         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
14610         type_for_interval.
14611         (gcc_type_for_value): Renamed type_for_value.
14612         (gcc_type_for_clast_term): Renamed type_for_clast_term.
14613         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
14614         (gcc_type_for_clast_red): Renamed type_for_clast_red.
14615         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
14616         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
14617         (graphite_translate_clast_equation): Update calls.
14618         (compute_type_for_level): Renamed type_for_level.
14619         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
14620         (build_iv_mapping): Update calls.
14621         (graphite_create_new_loop_guard): Same.
14622
14623 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14624
14625         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
14626         comment.
14627
14628 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14629
14630         * graphite-clast-to-gimple.c (struct ivs_params): New.
14631         (clast_name_to_gcc): Use ivs_params to pass around parameters.
14632         (clast_to_gcc_expression): Same.
14633         (clast_to_gcc_expression_red): Same.
14634         (gcc_type_for_clast_term): Same.
14635         (gcc_type_for_clast_expr): Same.
14636         (gcc_type_for_clast_red): Same.
14637         (gcc_type_for_clast_bin): Same.
14638         (gcc_type_for_clast_eq): Same.
14639         (graphite_translate_clast_equation): Same.
14640         (graphite_create_guard_cond_expr): Same.
14641         (graphite_create_new_guard): Same.
14642         (graphite_create_new_loop): Same.
14643         (build_iv_mapping): Same.
14644         (translate_clast_user): Same.
14645         (graphite_create_new_loop_guard): Same.
14646         (translate_clast): Same.
14647         (translate_clast_for_loop): Same.
14648         (translate_clast_for): Same.
14649         (translate_clast_guard): Same.
14650         (initialize_cloog_names): Fix typo.
14651         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
14652
14653 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14654
14655         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
14656         (new_clast_name_index): Add level parameter.
14657         (clast_name_to_level): New.
14658         (save_clast_name_index): Add level parameter.
14659         (newivs_to_depth_to_newiv): Removed.
14660         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
14661         (graphite_create_new_loop): Add level parameter.  Pass level to
14662         save_clast_name_index.
14663         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
14664         (create_params_index): Pass level to save_clast_name_index.
14665
14666 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14667
14668         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
14669         recompute type, lb, and ub.  Get them from...
14670         (graphite_create_new_loop_guard): ...here.  Pass in parameter
14671         pointers to type, lb, and ub.
14672         (translate_clast_for_loop): Update function calls.
14673         (translate_clast_for): Same.
14674
14675 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14676
14677         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
14678         psct_dynamic_dim.
14679         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
14680         (gcc_type_for_iv_of_clast_loop): Update use of level.
14681         (gloog): Start counting nesting level from 0.
14682         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
14683         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
14684         psct_dynamic_dim on level.
14685
14686 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
14687
14688         * config/i386/i386.c (ix86_legitimize_address): Convert to
14689         Pmode if needed.
14690
14691 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
14692
14693         * config/i386/i386.c (function_value_64): Always return pointers
14694         in Pmode.
14695         (ix86_promote_function_mode): New.
14696         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
14697
14698 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14699
14700         PR tree-optimization/49749
14701         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
14702         remove no-longer-used maxrank variable.
14703
14704 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
14705
14706         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
14707
14708 2011-07-21  Jason Merrill  <jason@redhat.com>
14709
14710         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
14711         * recog.h (struct insn_data_d): Check it instead of
14712         HAVE_DESIGNATED_INITIALIZERS.
14713         * genoutput.c (output_insn_data): Likewise.
14714
14715 2011-07-21  Richard Guenther  <rguenther@suse.de>
14716
14717         PR tree-optimization/49770
14718         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
14719         valueized any operand.  Renamed from ...
14720         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
14721         (valueize_shared_reference_ops_from_ref): Return whether we
14722         valueized any operand.
14723         (vn_reference_lookup): Only when we valueized any operand
14724         use the valueized reference for alias analysis.  Do not preserve
14725         the original reference tree in this case.
14726
14727 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
14728
14729         * config/i386/i386.c (ix86_decompose_address): Reject all but
14730         register operands and subregs of DImode hard registers in index.
14731
14732 2011-07-21  Kai Tietz  <ktietz@redhat.com>
14733
14734         * fold-const.c (fold_unary_loc): Preserve indirect
14735         comparison cast to none-boolean type.
14736         * tree-ssa.c (useless_type_conversion_p): Preserve cast
14737         from/to boolean-type.
14738         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
14739         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
14740         * tree-cfg.c (verify_gimple_comparison): Check result
14741         type of comparison expression.
14742         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
14743         of condition result and disallow type-cast sinking into comparison.
14744
14745 2011-07-21  Richard Guenther  <rguenther@suse.de>
14746
14747         * tree-ssa-forwprop.c (combine_conversions): Return whether
14748         we have to run cfg-cleanup.  Properly remove dead stmts.
14749         (ssa_forward_propagate_and_combine): Adjust.
14750
14751 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
14752
14753         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
14754
14755 2011-07-21  Kai Tietz  <ktietz@redhat.com>
14756
14757         * tree-ssa-propagate.c (substitute_and_fold): Use
14758         do_dce flag to deside, if BB's statements are scanned
14759         in last to first, or first to last order.
14760
14761 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
14762
14763         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
14764
14765 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14766             Uros Bizjak  <ubizjak@gmail.com>
14767             Richard Henderson  <rth@redhat.com>
14768
14769         * config/i386/constraints.md (w): New.
14770
14771         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
14772         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
14773
14774         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
14775         instead of TARGET_64BIT.
14776
14777         * config/i386/i386.md (indirect_jump): Replace
14778         nonimmediate_operand with indirect_branch_operand.
14779         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
14780         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
14781         Convert operand 0 to Pmode for x32 if not PIC.
14782         (*tablejump_1): Replace nonimmediate_operand with
14783         indirect_branch_operand.  Replace constraint "m" with "w".
14784         (*call_vzeroupper): Replace constraint "m" with "w".
14785         (*call): Likewise.
14786         (*call_rex64_ms_sysv_vzeroupper): Likewise.
14787         (*call_rex64_ms_sysv): Likewise.
14788         (*call_value_vzeroupper): Likewise.
14789         (*call_value): Likewise.
14790         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
14791         (*call_value_rex64_ms_sysv): Likewise.
14792         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
14793
14794         * config/i386/predicates.md (indirect_branch_operand): New.
14795         (call_insn_operand): Support x32.
14796
14797 2011-07-20  Michael Eager  <eager@eagercon.com>
14798
14799         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
14800
14801 2011-07-20  Richard Henderson  <rth@redhat.com>
14802
14803         * cfg.c (dump_bb_info): Dump basic_block->flags.
14804         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
14805
14806 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
14807
14808         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
14809         of DImode hard registers in index.
14810         (ix86_legitimate_address_p): Allow subregs of base and index to span
14811         more than a word.  Assert that subregs of base and index satisfy
14812         register_no_elim_operand predicates.  Reject addresses where
14813         base and index have different modes.
14814
14815 2011-07-20  Robert Millan  <rmh@gnu.org>
14816
14817         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
14818
14819 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14820
14821         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
14822         removing now-unnecessary assignment.
14823
14824 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14825
14826         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
14827         memory address space to the type's address space.
14828
14829 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
14830
14831         PR target/36467
14832         PR target/49687
14833         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
14834         and expand appropriately if there is a CONST_INT in operand2.
14835         (usmulqihi3): New insn.
14836         (*sumulqihi3): New insn.
14837         (*osmulqihi3): New insn.
14838         (*oumulqihi3): New insn.
14839         (*muluqihi3.uconst): New insn_and_split.
14840         (*muluqihi3.sconst): New insn_and_split.
14841         (*mulsqihi3.sconst): New insn_and_split.
14842         (*mulsqihi3.uconst): New insn_and_split.
14843         (*mulsqihi3.oconst): New insn_and_split.
14844         (*ashifthi3.signx.const): New insn_and_split.
14845         (*ashifthi3.signx.const7): New insn_and_split.
14846         (*ashifthi3.zerox.const): New insn_and_split.
14847         (mulsqihi3): New insn.
14848         (muluqihi3): New insn.
14849         (muloqihi3): New insn.
14850         * config/avr/predicates.md (const_2_to_7_operand): New.
14851         (const_2_to_6_operand): New.
14852         (u8_operand): New.
14853         (s8_operand): New.
14854         (o8_operand): New.
14855         (s9_operand): New.
14856         (register_or_s9_operand): New.
14857
14858 2011-07-20  Kai Tietz  <ktietz@redhat.com>
14859
14860         * builtins.c (fold_builtin_expect): See through the cast
14861         from truthvalue_type_node to long.
14862
14863 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
14864
14865         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
14866         where we can use them from the standard and altivec instruction
14867         sets, instead of always using the 3 operand VSX forms that require
14868         the destination to overlap one of the inputs.
14869         (vsx_fms*): Ditto.
14870         (vsx_fnma*): Ditto.
14871         (vsx_fnms*): Ditto.
14872
14873         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
14874         for DF types.
14875         (fmsdf4_fpr): Ditto.
14876         (nfmadf4_fpr): Ditto.
14877         (nfmsdf4_fpr): Ditto.
14878
14879 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
14880
14881         * genrecog.c (make_insn_sequence): Correct position numbering
14882         when filtering out match_scratch and match_dup.
14883
14884 2011-07-20  Richard Guenther  <rguenther@suse.de>
14885
14886         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
14887         against already removed statements.
14888         (forward_propagate_into_comparison): Remove dead defining stmts.
14889         (forward_propagate_into_gimple_cond): Likewise.
14890         (forward_propagate_into_cond): Simplify.
14891         (ssa_forward_propagate_and_combine): Handle changed cfg from
14892         forward_propagate_into_comparison.
14893         * tree-ssa-phiopt.c (conditional_replacement): Use proper
14894         locations for newly built statements.
14895
14896 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
14897
14898         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
14899
14900 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14901
14902         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
14903         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
14904
14905 2011-07-20  Richard Guenther  <rguenther@suse.de>
14906
14907         PR middle-end/18908
14908         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
14909         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
14910         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
14911
14912 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
14913
14914         * config/frv/frv.c (frv_register_move_cost): Define explicitly
14915         costs for subclasses of GR_REGS.
14916
14917 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
14918
14919         PR target/49780
14920         * config/i386/predicates.md (no_seg_addres_operand): No more special.
14921         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
14922         of DImode hard registers in base.
14923         (ix86_legitimate_address_p): Allow SImode and DImode base and index
14924         registers.
14925
14926 2011-07-20  Richard Guenther  <rguenther@suse.de>
14927
14928         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
14929         (unify_nodes): Deal with that.
14930         (solve_graph): Likewise.
14931
14932 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
14933
14934         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
14935         canonicalize left operand from ZERO_EXTEND to AND.
14936
14937 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
14938
14939         * target.def (class_max_nregs): New hook.
14940         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
14941         * doc/tm.texi: Regenerate.
14942         * targhooks.c (default_class_max_nregs): New function.
14943         * targhooks.h (default_class_max_nregs): Declare.
14944         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
14945         x_ira_reg_class_min_nregs arrays to unsigned char.
14946         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
14947         hook instead of CLASS_MAX_NREGS macro.
14948         * reginfo.c (restore_register_info): Ditto.
14949         * ira-conflicts.c (process_regs_for_copy): Use
14950         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
14951         Change type rclass and aclass vars to reg_class_t.
14952         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
14953         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
14954         reg_class_t.
14955         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
14956         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
14957
14958         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
14959         * config/i386/i386.c (ix86_class_max_nregs): New function.
14960         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
14961         instead of CLASS_MAX_NREGS macro.
14962         (TARGET_CLASS_MAX_NREGS): Define.
14963         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
14964         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
14965         * config/avr/avr.c (class_max_nregs): Remove function.
14966         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
14967         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
14968         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
14969         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
14970         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
14971         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
14972         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
14973         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
14974         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
14975         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
14976         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
14977         * config/score/score.h (CLASS_MAX_NREGS): Remove.
14978         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
14979         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
14980         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
14981
14982 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
14983
14984         * cif-code.def (OVERWRITABLE): Fix typo and move around.
14985         (TARGET_OPTIMIZATION_MISMATCH): Delete.
14986         (EH_PERSONALITY): Fix typo.
14987         (NON_CALL_EXCEPTIONS): Fix message.
14988         (OPTIMIZATION_MISMATCH): Adjust message.
14989         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
14990
14991 2011-07-19  Ian Lance Taylor  <iant@google.com>
14992
14993         * doc/install.texi (Configuration): Document
14994         --enable-build-poststage1-with-cxx.
14995
14996 2011-07-19  Robert Millan  <rmh@gnu.org>
14997
14998         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
14999         (GLIBC_DYNAMIC_LINKER): Remove.
15000
15001         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
15002         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
15003         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
15004         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
15005         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
15006         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
15007
15008         * config/mips/linux.h: Remove everything except for ...
15009         (GLIBC_DYNAMIC_LINKER): ... this macro.
15010
15011         * config/mips/linux64.h: Remove everything except for ...
15012         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
15013         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
15014         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
15015         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
15016         (GNU_USER_LINK_EMULATIONN32): New macros.
15017
15018         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
15019         Use the new headers.
15020
15021 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15022
15023         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
15024         Add offset_known_p and size_known_p fields.
15025         (MEM_OFFSET_KNOWN_P): Update accordingly.
15026         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
15027         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
15028         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
15029         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
15030         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
15031         (init_emit_regs): Likewise.
15032
15033 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15034
15035         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
15036         (MEM_OFFSET): Change from returning an rtx to returning a
15037         HOST_WIDE_INT.
15038         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
15039         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
15040         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
15041         (clear_mem_offset): Declare.
15042         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
15043         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
15044         MEM_OFFSET to get a HOST_WIDE_INT offset.
15045         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
15046         (adjust_offset_for_component_ref): Take a bool "known_p"
15047         parameter and a HOST_WIDE_INT "offset" parameter.
15048         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
15049         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
15050         than an rtx.  Use clear_mem_offset to clear the offset.
15051         * cfgcleanup.c (merge_memattrs): Likewise.
15052         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
15053         * function.c (assign_parm_find_stack_rtl): Likewise.
15054         (assign_parm_setup_stack): Likewise.
15055         * print-rtl.c (print_rtx): Likewise.
15056         * reload.c (find_reloads_subreg_address): Likewise.
15057         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
15058         * var-tracking.c (INT_MEM_OFFSET): Likewise.
15059         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
15060         (get_mem_align_offset): Likewise.
15061         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
15062         (clear_mem_offset): New function.
15063         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
15064         offset rather than an rtx.  Assume both the expressio and offset
15065         are available.
15066         (r10k_needs_protection_p_1): Update accordingly, checking the
15067         expression and offset availability here instead.
15068
15069 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15070
15071         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
15072         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
15073         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
15074         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
15075         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
15076         (clear_mem_size): Declare.
15077         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
15078         (clear_mem_size): New function.
15079         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
15080         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
15081         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
15082         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
15083         to clear the size.
15084         (nonoverlapping_memrefs_p): Likewise.
15085         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
15086         (expand_builtin_init_trampoline): Likewise.
15087         * calls.c (compute_argument_addresses): Likewise.
15088         * cfgcleanup.c (merge_memattrs): Likewise.
15089         * dce.c (find_call_stack_args): Likewise.
15090         * dse.c (record_store, scan_insn): Likewise.
15091         * dwarf2out.c (dw_sra_loc_expr): Likewise.
15092         * expr.c (emit_block_move_hints): Likewise.
15093         * function.c (assign_parm_find_stack_rtl): Likewise.
15094         * print-rtl.c (print_rtx): Likewise.
15095         * reload.c (find_reloads_subreg_address): Likewise.
15096         * rtlanal.c (may_trap_p_1): Likewise.
15097         * var-tracking.c (track_expr_p): Likewise.
15098         * varasm.c (assemble_trampoline_template): Likewise.
15099         * config/arm/arm.c (arm_print_operand): Likewise.
15100         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
15101         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
15102         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
15103         (expand_constant_setmem_prologue): Likewise.
15104         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
15105         * config/rs6000/rs6000.c (expand_block_move): Likewise.
15106         (adjacent_mem_locations): Likewise.
15107         * config/s390/s390.c (s390_expand_setmem): Likewise.
15108         (s390_expand_insv): Likewise.
15109         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
15110         (*extendqi<mode>2_short_displ): Likewise.
15111         * config/sh/sh.c (expand_block_move): Likewise.
15112         * config/sh/sh.md (extv, extzv): Likewise.
15113
15114 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15115
15116         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
15117         (mem_attrs_htab_eq): ...here.
15118         (find_mem_attrs): Replace with...
15119         (set_mem_attrs): ...this function.  Take a mem_attrs structure
15120         rather than individual fields.
15121         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
15122         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
15123         (set_mem_size, change_address, adjust_address_1, offset_address)
15124         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
15125         Update accordingly.
15126
15127 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15128
15129         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
15130         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
15131         Provide a dummy definition of MEM_ADDR_SPACE for generators.
15132         (target_rtl): Add x_mode_mem_attrs.
15133         (mode_mem_attrs): New macro.
15134         (get_mem_attrs): New function.
15135         * emit-rtl.c (get_mem_attrs): Rename to...
15136         (find_mem_attrs): ...this.
15137         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
15138         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
15139         (set_mem_size, change_address, adjust_address_1, offset_address)
15140         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
15141         Update accordingly.
15142         (init_emit_regs): Initialize mode_mem_attrs.
15143
15144 2011-07-19  Richard Guenther  <rguenther@suse.de>
15145
15146         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
15147         TRUTH_*_EXPR handling.
15148         * tree-ssa-operands.c (get_expr_operands): Likewise.
15149         * tree-ssa-pre.c (fully_constant_expression): Likewise.
15150         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
15151         Likewise.
15152         (is_and_or_or): Likewise.
15153         (is_norm_cond_subset_of): Likewise.
15154
15155 2011-07-19  Richard Guenther  <rguenther@suse.de>
15156
15157         * tree.h (fold_build_pointer_plus_loc): New helper function.
15158         (fold_build_pointer_plus_hwi_loc): Likewise.
15159         (fold_build_pointer_plus): Define.
15160         (fold_build_pointer_plus_hwi): Likewise.
15161         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
15162         (fold_builtin_memory_op): Likewise.
15163         (fold_builtin_stpcpy): Likewise.
15164         (fold_builtin_memchr): Likewise.
15165         (fold_builtin_strstr): Likewise.
15166         (fold_builtin_strchr): Likewise.
15167         (fold_builtin_strrchr): Likewise.
15168         (fold_builtin_strpbrk): Likewise.
15169         (fold_builtin_strcat): Likewise.
15170         (expand_builtin_memory_chk): Likewise.
15171         (fold_builtin_memory_chk): Likewise.
15172         * c-typeck.c (build_unary_op): Likewise.
15173         * cgraphunit.c (thunk_adjust): Likewise.
15174         * fold-const.c (build_range_check): Likewise.
15175         (fold_binary_loc): Likewise.
15176         * omp-low.c (extract_omp_for_data): Likewise.
15177         (expand_omp_for_generic): Likewise.
15178         (expand_omp_for_static_nochunk): Likewise.
15179         (expand_omp_for_static_chunk): Likewise.
15180         * tree-affine.c (add_elt_to_tree): Likewise.
15181         * tree-data-ref.c (split_constant_offset_1): Likewise.
15182         * tree-loop-distribution.c (generate_memset_zero): Likewise.
15183         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
15184         * tree-predcom.c (ref_at_iteration): Likewise.
15185         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
15186         (add_to_parts): Likewise.
15187         (create_mem_ref): Likewise.
15188         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
15189         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
15190         (number_of_iterations_le): Likewise.
15191         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
15192         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
15193         (vect_create_addr_base_for_vector_ref): Likewise.
15194         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
15195         (vect_create_cond_for_alias_checks): Likewise.
15196         * tree-vrp.c (extract_range_from_assert): Likewise.
15197         * config/alpha/alpha.c (alpha_va_start): Likewise.
15198         (alpha_gimplify_va_arg_1): Likewise.
15199         * config/i386/i386.c (ix86_va_start): Likewise.
15200         (ix86_gimplify_va_arg): Likewise.
15201         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15202         * config/mep/mep.c (mep_expand_va_start): Likewise.
15203         (mep_gimplify_va_arg_expr): Likewise.
15204         * config/mips/mips.c (mips_va_start): Likewise.
15205         (mips_gimplify_va_arg_expr): Likewise.
15206         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15207         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
15208         (rs6000_gimplify_va_arg): Likewise.
15209         * config/s390/s390.c (s390_va_start): Likewise.
15210         (s390_gimplify_va_arg): Likewise.
15211         * config/sh/sh.c (sh_va_start): Likewise.
15212         (sh_gimplify_va_arg_expr): Likewise.
15213         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15214         * config/spu/spu.c (spu_va_start): Likewise.
15215         (spu_gimplify_va_arg_expr): Likewise.
15216         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
15217         Likewise.
15218         (xstormy16_gimplify_va_arg_expr): Likewise.
15219         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
15220         (xtensa_gimplify_va_arg_expr): Likewise.
15221
15222 2011-07-19  Richard Guenther  <rguenther@suse.de>
15223
15224         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
15225         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
15226         handling.
15227
15228         PR middle-end/18908
15229         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
15230         result of BIT_*_EXPR to bitfield precision.
15231
15232 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
15233
15234         PR tree-optimization/49742
15235         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
15236         as a potential write.
15237
15238 2011-07-19  Richard Guenther  <rguenther@suse.de>
15239
15240         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
15241         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
15242         (forward_propagate_comparison): Simplify, remove obsolete code.
15243
15244 2011-07-19  Richard Guenther  <rguenther@suse.de>
15245
15246         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
15247         BIT_XOR_EXPR, same as the RTL expander does.
15248         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
15249         (verify_gimple_assign_unary): Likewise.
15250         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
15251         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
15252         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
15253
15254 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
15255
15256         PR tree-optimization/49768
15257         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
15258         if offset is smaller than bitoffset, but offset+size is bigger
15259         than bitoffset.
15260
15261 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
15262
15263         PR tree-optimization/49771
15264         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
15265         zero step, set segment length to the size of the data-ref's type.
15266
15267 2011-07-18  Martin Jambor  <mjambor@suse.cz>
15268
15269         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
15270         comments.
15271         (ipcp_values_pool): Declare.
15272         (ipcp_sources_pool): Likewise.
15273         (ipcp_lattice): Changed to forward declaration.
15274         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
15275         cannot_devirtualize.
15276         (ipa_node_params): New fields descriptors, lattices, known_vals,
15277         clone_for_all_contexts and node dead, removed fields params and
15278         count_scale.
15279         (ipa_set_param_count): Removed.
15280         (ipa_get_param_count): Made to work with descriptors vector.
15281         (ipa_get_param): Updated.
15282         (ipa_param_cannot_devirtualize_p): Removed.
15283         (ipa_param_types_vec_empty): Likewise.
15284         (ipa_set_param_used): New function.
15285         (ipa_get_param_used): Updated to use descriptors vector.
15286         (ipa_func_list): Removed.
15287         (ipa_init_func_list): Removed declaration.
15288         (ipa_push_func_to_list_1): Likewise.
15289         (ipa_pop_func_from_list): Likewise.
15290         (ipa_push_func_to_list): Removed.
15291         (ipa_lattice_from_jfunc): Remove declaration.
15292         (ipa_get_jf_pass_through_result): Declare.
15293         (ipa_get_jf_ancestor_result): Likewise.
15294         (ipa_value_from_jfunc): Likewise.
15295         (ipa_get_lattice): Update.
15296         (ipa_lat_is_single_const): New function.
15297         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
15298         (ipa_init_func_list): Likewise.
15299         (ipa_pop_func_from_list): Likewise.
15300         (ipa_get_param_decl_index): Fix coding style.
15301         (count_formal_params): Removed.
15302         (count_formal_params_1): Renamed to count_formal_params.
15303         (ipa_populate_param_decls): Update to use descriptors vector.
15304         (ipa_initialize_node_params): Likewise.
15305         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
15306         (ipa_analyze_params_uses): Likewise.
15307         (ipa_free_node_params_substructures): Likewise and free also lattices
15308         and known values.
15309         (duplicate_array): Removed.
15310         (ipa_edge_duplication_hook): Add the new edge to the list of edge
15311         clones.
15312         (ipa_node_duplication_hook): Update to use new lattices.
15313         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
15314         (ipa_free_all_structures_after_iinln): Likewise.
15315         (ipa_write_node_info): Update to use new lattices.
15316         (ipa_read_node_info): Likewise.
15317         (ipa_get_jf_pass_through_result): New function.
15318         (ipa_get_jf_ancestor_result): Likewise.
15319         (ipa_value_from_jfunc): Likewise.
15320         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
15321         * ipa-cp.c: Reimplemented.
15322         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
15323         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
15324         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
15325         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
15326         * doc/invoke.texi (devirt-type-list-size): Removed description.
15327         (ipa-cp-value-list-size): Added description.
15328
15329 2011-07-18  Richard Henderson  <rth@redhat.com>
15330
15331         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
15332         before calling create_basic_block.
15333
15334 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
15335
15336         PR middle-end/49675
15337         * tree.c (build_common_builtin_nodes): Register
15338         __builtin_return_address, __cyg_profile_func_enter
15339         and __cyg_profile_func_exit.
15340
15341 2011-07-18  Richard Henderson  <rth@redhat.com>
15342
15343         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
15344         (add_labels_and_missing_jumps): ... here.
15345         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
15346
15347 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
15348
15349         PR target/47744
15350         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
15351         of DImode hard registers in PLUS address chains.
15352
15353 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15354
15355         PR bootstrap/49769
15356         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
15357         (alpha*-*-freebsd*): Likewise.
15358         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
15359         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
15360         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
15361         crtprec80.o, crtfastmath.o to extra_parts for all targets.
15362         (ia64*-*-elf*): Remove extra_parts.
15363         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
15364         (sparc64-*-linux*): Likewise.
15365         (sparc64-*-freebsd*): Likewise.
15366
15367         Revert:
15368         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
15369         (ia64*-*-linux*): Likewise.
15370         (mips64*-*-linux*): Likewise.
15371         (mips*-*-linux*): Likewise.
15372
15373 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
15374
15375         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
15376
15377 2011-07-18  Richard Guenther  <rguenther@suse.de>
15378
15379         * gimplify.c (gimplify_expr): Use input_location, not saved_location
15380         when building new trees.
15381
15382 2011-07-18  Richard Guenther  <rguenther@suse.de>
15383
15384         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
15385         expansion result to bitfield precision if required.
15386
15387 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15388
15389         * config.gcc (i[3456x]86-*-netware*): Remove.
15390
15391         * gthr-nks.h: Remove.
15392         * configure.ac (enable_threads): Remove nks.
15393         * configure: Regenerate.
15394
15395         * config/i386/i386.c (ix86_encode_section_info): Remove netware
15396         reference.
15397         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
15398         <netware.h> reference.
15399
15400         * config/i386/netware-libgcc.c,
15401         gcc/config/i386/netware-libgcc.def,
15402         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
15403         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
15404         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
15405         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
15406
15407         * doc/extend.texi (Function Attributes,
15408         callee_pop_aggregate_return): Remove i?86-netware reference.
15409         * doc/install.texi (Configuration, --enable-threads): Remove nks.
15410
15411 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15412
15413         PR target/49746
15414         Revert:
15415         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15416
15417         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
15418         patterns.
15419
15420 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
15421
15422         PR middle-end/49732
15423         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
15424
15425 2011-07-16  Matthias Klose  <doko@ubuntu.com>
15426
15427         * doc/install.texi: Document --enable-static-libjava.
15428
15429 2011-07-15  Richard Henderson  <rth@redhat.com>
15430
15431         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
15432         Replace all three arguments by returning a VEC of edges.
15433         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
15434         pointers and counts.
15435         (fix_edges_for_rarely_executed_code): Merge ...
15436         (rest_of_handle_partition_blocks): ... into...
15437         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
15438         any work was performed.
15439         (pass_partition_blocks): Clear todo_flags_finish.
15440
15441 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
15442             Jakub Jelinek  <jakub@redhat.com>
15443             Jonathan Wakely  <jwakely.gcc@gmail.com>
15444
15445         PR libstdc++/49745
15446         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
15447         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
15448
15449 2011-07-15  Jason Merrill  <jason@redhat.com>
15450
15451         PR testsuite/49741
15452         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
15453         rather than --tool_opts.
15454
15455 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
15456
15457         * doc/plugins.texi (Building GCC plugins): gengtype needs its
15458         corresponding gtype.state.
15459
15460 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15461
15462         PR target/49723
15463         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
15464
15465 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
15466
15467         PR target/48220
15468         * doc/md.texi (Standard Names): Document window_save.
15469         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
15470         expand_debug_expr and expand_debug_source_expr.  If the target has
15471         a window_save instruction, adjust the ENTRY_VALUE_EXP.
15472         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
15473         SSA_NAME_VAR is a parameter.
15474         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
15475         * var-tracking.c (parm_reg_t): New type and associated vector type.
15476         (windowed_parm_regs): New variable.
15477         (adjust_insn): If the target has a window_save instruction and this
15478         is the instruction, make its effect on parameter registers explicit.
15479         (next_non_note_insn_var_location): New function.
15480         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
15481         (vt_add_function_parameter): If the target has a window_save insn,
15482         adjust the incoming RTL and record that in windowed_parm_regs.
15483         (vt_finalize): Free windowed_parm_regs.
15484
15485 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
15486
15487         * doc/invoke.texi (C6X Options): New section.
15488         * doc/md.texi (TI C6X family): New section.
15489         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
15490         tic6x-*-uclinux.
15491         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
15492         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
15493         Provide C6X definitions.
15494         * config/c6x/c6x.md: New file.
15495         * config/c6x/constraints.md: New file.
15496         * config/c6x/predicates.md: New file.
15497         * config/c6x/c6x-sched.md.in: New file.
15498         * config/c6x/c6x-sched.md: New file.
15499         * config/c6x/gensched.sh: New file.
15500         * config/c6x/c6x-mult.md.in: New file.
15501         * config/c6x/genmult.sh: New file.
15502         * config/c6x/c6x-mult.md: New file.
15503         * config/c6x/sync.md: New file.
15504         * config/c6x/c6x-protos.h: New file.
15505         * config/c6x/sfp-machine.h: New file.
15506         * config/c6x/c6x.c: New file.
15507         * config/c6x/c6x.h: New file.
15508         * config/c6x/crti.s: New file.
15509         * config/c6x/crtn.s: New file.
15510         * config/c6x/lib1funcs.asm: New file.
15511         * config/c6x/c6x-modes.def: New file.
15512         * config/c6x/genopt.sh: New file.
15513         * config/c6x/c6x.opt: New file.
15514         * config/c6x/c6x-tables.opt: New file.
15515         * config/c6x/c6x-opts.h: New file.
15516         * config/c6x/c6x-isas.def: New file.
15517         * config/c6x/elf.h: New file.
15518         * config/c6x/elf-common.h: New file.
15519         * config/c6x/uclinux-elf.h: New file.
15520         * config/c6x/t-c6x: New file.
15521         * config/c6x/t-c6x-elf: New file.
15522         * config/c6x/t-c6x-uclinux: New file.
15523         * config/c6x/t-c6x-softfp: New file.
15524         * config/c6x/gtd.c: New file.
15525         * config/c6x/gtf.c: New file.
15526         * config/c6x/ltd.c: New file.
15527         * config/c6x/ltf.c: New file.
15528         * config/c6x/ged.c: New file.
15529         * config/c6x/gef.c: New file.
15530         * config/c6x/led.c: New file.
15531         * config/c6x/lef.c: New file.
15532         * config/c6x/eqd.c: New file.
15533         * config/c6x/eqf.c: New file.
15534         * config/c6x/libgcc-c6xeabi.ver: New file.
15535
15536         Revert
15537         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
15538         PR rtl-optimization/11320
15539         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
15540         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
15541         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
15542         current_sched_info->compute_jump_reg_dependencies. Record which
15543         registers are used and which registers are set by the jump.
15544         Clear deps->reg_conditional_sets after a barrier.
15545         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
15546         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
15547         (init_deps): Initialize reg_conditional_sets.
15548         (free_deps): Clear reg_conditional_sets.
15549         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
15550         Mark registers live on entry of the fallthrough block and conditionally
15551         set as set by the jump. Mark registers live on entry of non-fallthrough
15552         blocks as used by the jump.
15553         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
15554         Mark new parameters as unused.
15555
15556 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
15557
15558         PR tree-opt/49309
15559         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
15560         Use fold_build2_loc instead of build2.
15561         Use the correct type for the new tree.
15562
15563 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15564
15565         PR rtl-optimization/11320
15566         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
15567         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
15568
15569 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
15570
15571         PR target/49487
15572         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
15573         of REG.
15574         (*rotw<mode>): Use const_int_operand for operand2.
15575         Use match_scatch for operand3.
15576         (*rotb<mode>): Ditto
15577         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
15578
15579 2011-07-14  Richard Guenther  <rguenther@suse.de>
15580
15581         PR tree-optimization/49651
15582         * tree-ssa-structalias.c (get_constraint_for_1): Properly
15583         handle dereferences with subvariables.
15584
15585 2011-07-14  Richard Guenther  <rguenther@suse.de>
15586
15587         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
15588         (fold_stmt_1): Do it here directly on gimple and as a first thing.
15589
15590 2011-07-14  Richard Guenther  <rguenther@suse.de>
15591
15592         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
15593         not bool_var when folding bool_var != 1 or bool_var == 0.
15594
15595 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15596
15597         * haifa-sched.c (schedule_insns): Remove outdated comment.
15598         (schedule_block): When computing a known value for TODO_SPEC,
15599         just set it rather than using logical operations.
15600         (try_ready): Likewise.  Use a local variable rather than a
15601         pointer to TODO_SPEC.  Reorder an if statement to move the
15602         easy case to the then block.
15603         * sched-deps.c (dep_spec_p): New static function.
15604         (update_dep): Use it to decide whether to call
15605         change_spec_dep_to_hard.
15606         (get_back_and_forw_lists): Use it.
15607         (sd_resolve_dep): Likewise.
15608         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
15609         (haifa_note_mem_dep): Likewise.
15610         (check_dep): Likewise.
15611         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
15612         (sched_free_deps): Free in two passes.
15613
15614 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
15615
15616         PR middle-end/49736
15617         * expr.c (all_zeros_p): Undo bogus part of last change.
15618
15619 2011-07-14  Matthias Klose <doko@ubuntu.com>
15620
15621         * doc/extend.texi (optimize attribute): Fix typo.
15622
15623 2011-07-14  Richard Guenther  <rguenther@suse.de>
15624
15625         * gimplify.c (gimplify_expr): Only do required conversions.
15626
15627 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
15628
15629         PR target/43746
15630         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
15631         i.e. use default_elf_select_section.
15632         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
15633         (READONLY_DATA_SECTION_ASM_OP): Remove.
15634         (TARGET_ASM_NAMED_SECTION): Move from here...
15635         * config/avr/avr.c: ...to here.
15636         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
15637         (avr_asm_named_section): Make static.
15638
15639 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15640
15641         PR bootstrap/49739
15642         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
15643         and crtfastmath.o for Linux/x86.
15644
15645 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15646
15647         * haifa-sched.c: Include "hashtab.h"
15648         (sched_no_dce): New global variable.
15649         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
15650         SHADOW_P): New macros.
15651         (last_clock_var, cycle_issued_insns): Move declarations.
15652         (must_backtrack): New static variable.
15653         (struct delay_pair): New structure.
15654         (delay_htab, delay_htab_i2): New static variables.
15655         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
15656         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
15657         functions.
15658         (dep_cost_1): If delay pairs exist, try to look up the insns and
15659         use the correct pair delay if we find them.
15660         (rank-for_schedule): Tweak priority for insns that must be scheduled
15661         soon to avoid backtracking.
15662         (queue_insn): Detect conditions which force backtracking.
15663         (ready_add): Likewise.
15664         (struct sched_block_state): Add member shadows_only_p.
15665         (struct haifa_save_data): New structure.
15666         (backtrack_queue): New static variable.
15667         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
15668         unschedule_insns_until, restore_last_backtrack_point,
15669         free_topmost_backtrack_point, free_backtrack_queue,
15670         estimate_insn_tick, estimate_shadow_tick): New functions.
15671         (prune_ready_list): New arg shadows_only_p.  All callers changed.
15672         If true, remove everything that isn't SHADOW_P.  Look up delay
15673         pairs and estimate ticks to avoid scheduling the first insn too early.
15674         (verify_shadows): New function.
15675         (schedule_block): Add machinery to enable backtracking.
15676         (sched_init): Take sched_no_dce into account when setting
15677         DF_LR_RUN_DCE.
15678         (free_delay_pairs): New function.
15679         (init_h_i_d): Initialize INSN_EXACT_TICK.
15680         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
15681         * sched-deps.c (sd_unresolve_dep): New function.
15682         * sched-int. (struct haifa_sched_info): New fields save_state
15683         and restore_state.
15684         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
15685         feeds_backtrack_insn and shadow_p.
15686         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
15687         (sched_no_dce): Declare variable.
15688         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
15689         sd_unresolve_dep): Declare functions.
15690         * modulo-sched.c (sms_sched_info): Clear the two new fields.
15691         * sched-rgn.c (rgn_const_sched_info): Likewise.
15692         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
15693         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
15694         (ebb_sched_info): Add them for the two new fields.
15695         (add_deps_for_risky_insns): Call add_delay_dependencies.
15696
15697 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15698
15699         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
15700         Rename -mr11.
15701         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
15702         (rs6000_call_indirect_aix): Ditto.
15703         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
15704         (call_indirect_aix<ptrsize>_internal): Ditto.
15705         (call_indirect_aix<ptrsize>_nor11): Ditto.
15706         (call_indirect_aix<ptrsize>_internal2): Ditto.
15707         (call_value_indirect_aix<ptrsize>): Ditto.
15708         (call_value_indirect_aix<ptrsize>_internal): Ditto.
15709         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
15710         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
15711         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
15712
15713 2011-07-13  Jason Merrill  <jason@redhat.com>
15714
15715         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
15716
15717 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15718
15719         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
15720         * config/spu/spu.md ("clrsb<mode>2"): New expander.
15721
15722 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
15723
15724         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
15725         * configure: Regenerate.
15726
15727 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15728
15729         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
15730         (asm_file_start): Remove.
15731         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
15732         free_bb_for_insn around code that modifies insns before
15733         restarting df analysis.
15734
15735 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15736
15737         PR target/49541
15738         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
15739         (LINK_SPEC): ... here.
15740
15741 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
15742
15743         * haifa-sched.c (struct sched_block_state): New.
15744         (schedule_block): Move some local variables into such a structure.
15745
15746 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15747
15748         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
15749         * config/i386/t-crtpc: Remove.
15750         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
15751         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
15752         tmake_file.
15753         (x86_64-*-darwin*): Likewise.
15754         (i[34567]86-*-linux*): Likewise.
15755         (x86_64-*-linux*): Likewise.
15756
15757         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
15758         Handle -mpc32, -mpc64, -mpc80.
15759
15760 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15761
15762         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
15763         * config/alpha/t-crtfm: Remove.
15764         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
15765         * config/i386/t-crtfm: Remove.
15766         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
15767         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
15768         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
15769         * config/sparc/t-crtfm: Remove.
15770
15771         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
15772         (alpha*-*-freebsd*): Likewise.
15773         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
15774         (x86_64-*-darwin*): Likewise.
15775         (i[34567]86-*-linux*): Likewise.
15776         (x86_64-*-linux*): Likewise.
15777         (x86_64-*-mingw*): Likewise.
15778         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
15779         (ia64*-*-freebsd*): Likewise.
15780         (ia64*-*-linux*): Likewise.
15781         (mips64*-*-linux*): Likewise.
15782         (mips*-*-linux*): Likewise.
15783         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
15784         (sparc64-*-linux*): Likewise.
15785         (sparc64-*-freebsd*): Likewise.
15786
15787 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15788
15789         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
15790         * config/darwin-crt3.c: Move to ../libgcc/config.
15791         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
15792         ($(T)crt3$(objext)): Remove.
15793         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
15794         ($(T)crt2$(objext)): Remove.
15795         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
15796         (powerpc64-*-darwin*): Likewise.
15797
15798 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
15799
15800         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
15801
15802         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
15803         (addsi_1_zext): This.
15804
15805 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
15806
15807         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
15808         * doc/tm.texi: Regenerate.
15809         * target.def (mergeable_rodata_prefix): New defhookpod.
15810         * varasm.c (mergeable_string_section, mergeable_constant_section):
15811         Use it. Allocate name with alloca.
15812
15813 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
15814
15815         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
15816
15817 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
15818
15819         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
15820         overlap check.
15821
15822 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
15823
15824         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
15825         (count_type_elements): Delete.
15826         (complete_ctor_at_level_p): Declare.
15827         * expr.c (flexible_array_member_p): New function, split out from...
15828         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
15829         parameter with for_ctor_p.  When for_ctor_p is true, return the
15830         number of elements that should appear in the top-level constructor,
15831         otherwise return an estimate of the number of scalars.
15832         (categorize_ctor_elements): Replace p_must_clear with p_complete.
15833         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
15834         (complete_ctor_at_level_p): New function, borrowing union logic
15835         from old categorize_ctor_elements_1.
15836         (mostly_zeros_p): Return true if the constructor is not complete.
15837         (all_zeros_p): Update call to categorize_ctor_elements.
15838         * gimplify.c (gimplify_init_constructor): Update call to
15839         categorize_ctor_elements.  Don't call count_type_elements.
15840         Unconditionally prevent clearing for variable-sized types,
15841         otherwise rely on categorize_ctor_elements to detect
15842         incomplete initializers.
15843
15844 2011-07-13  Richard Guenther  <rguenther@suse.de>
15845
15846         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
15847         the final type is integral.
15848
15849 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
15850
15851         * sched-int.h (struct _dep): Add member cost.
15852         (DEP_COST, UNKNOWN_DEP_COST): New macros.
15853         * sched-deps.c (init_dep_1): Initialize DEP_COST.
15854         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
15855         (sched_change_pattern): Reset it for dependent insns.
15856
15857 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15858
15859         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
15860         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
15861         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
15862         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
15863         (CRT0_S, MCRT0_S): Remove.
15864         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
15865         Remove.
15866         (s-crt0): Remove.
15867         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
15868
15869 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
15870
15871         * cse.c (insert_with_costs): Put semi-colon after empty loop body
15872         on the next line.
15873         * emit-rtl.c (push_to_sequence): Likewise.
15874         * haifa-sched.c (max_issue): Likewise.
15875         * matrix-reorg.c (add_allocation_site): Likewise.
15876         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
15877         * reload.c (alternative_allows_const_pool_ref): Likewise.
15878         * sched-rgn.c (rgn_add_block): Likewise.
15879         (rgn_fix_recovery_cfg): Likewise.
15880         * tree.c (attribute_list_contained): Likewise.
15881
15882 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
15883
15884         * config/i386/i386.c: Tidy processor feature bitmasks.
15885         (m_P4_NOCONA): New.
15886
15887 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
15888
15889         PR rtl-opt/49474
15890         * cprop.c (find_implicit_sets): Correct the condition.
15891
15892 2011-07-12  Richard Henderson  <rth@redhat.com>
15893
15894         PR target/49713
15895         * dwarf2out.h (dwarf_frame_regnum): Remove.
15896         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
15897         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
15898         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
15899         (execute_dwarf2_frame): Initialize them.
15900         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
15901         users of the macros with the variables.
15902         (expand_builtin_dwarf_sp_column): Revert last change.
15903         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
15904         result of DWARF_FRAME_REGNUM into a local variable.
15905
15906 2011-07-12  Richard Henderson  <rth@redhat.com>
15907
15908         PR target/49714
15909         * config/i386/i386.c (x86_output_mi_thunk): Use
15910         machopic_indirect_call_target instead of machopic_indirection_name
15911         directly.
15912
15913 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
15914             Eric Botcazou  <ebotcazou@adacore.com>
15915
15916         * prefix.h: Wrap up in extern "C" block.
15917
15918 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
15919
15920         AMD bdver2 Enablement
15921         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
15922         (case ${target}): Add bdver2.
15923         * config/i386/driver-i386.c (host_detect_local_cpu): Let
15924         -march=native recognize bdver2 processors.
15925         * config/i386/i386-c.c (ix86_target_macros_internal): Add
15926         bdver2 def_and_undef
15927         * config/i386/i386.c (struct processor_costs bdver2_cost): New
15928         bdver2 cost table.
15929         (m_BDVER2): New definition.
15930         (m_AMD_MULTIPLE): Includes m_BDVER2.
15931         (initial_ix86_tune_features): Add bdver2 tuning.
15932         (processor_target_table): Add bdver2 entry.
15933         (static const char *const cpu_names): Add bdver2 entry.
15934         (ix86_option_override_internal): Add bdver2 instruction sets.
15935         (ix86_issue_rate): Add bdver2.
15936         (ix86_adjust_cost): Add bdver2.
15937         (has_dispatch): Add bdver2.
15938         * config/i386/i386.h (TARGET_BDVER2): New definition.
15939         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
15940         (enum processor_type): Add PROCESSOR_BDVER2.
15941         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
15942         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
15943         description.
15944
15945 2011-07-12  Richard Henderson  <rth@redhat.com>
15946
15947         PR target/49714
15948         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
15949         destination address in memory on some paths.
15950
15951 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
15952
15953         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
15954         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
15955         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
15956         * function.c (locate_and_pad_parm): Take it into account.
15957         * target.def (function_arg_round_boundary): New hook.
15958         * targhooks.c (default_function_arg_round_boundary): New function.
15959         * targhooks.h (default_function_arg_round_boundary): Declare.
15960         * doc/tm.texi: Regenerate.
15961
15962 2011-07-12  Richard Guenther  <rguenther@suse.de>
15963
15964         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
15965         Do not perform no-op changes.
15966
15967 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
15968
15969         * config/arm/predicates.md (neon_struct_operand): Make a normal
15970         predicate.
15971         (neon_struct_or_register_operand): New predicate.
15972         * config/arm/neon.md (movmisalign<mode>): Replace predicates
15973         with neon_struct_or_register_operand.
15974         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
15975         neon_struct_operand instead of memory_operand.
15976
15977 2011-07-12  Martin Jambor  <mjambor@suse.cz>
15978
15979         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
15980         * cgraph.c (cgraph_get_node_or_alias): Removed.
15981         (change_decl_assembler_name): Changed all calls to
15982         cgraph_get_node_or_alias to a call to cgraph_get_node.
15983         (cgraph_make_decl_local): Likewise.
15984         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
15985         * varasm.c (default_binds_local_p_1): Likewise.
15986         (decl_binds_to_current_def_p): Likewise.
15987
15988 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
15989
15990         PR tree-optimization/49712
15991         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
15992
15993 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
15994
15995         * genautomata.c (add_arc): Return void.  All callers changed.
15996         (make_automaton): Remove dead code.
15997
15998 2011-07-11  Richard Henderson  <rth@redhat.com>
15999
16000         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
16001         (DW_FRAME_POINTER_REGNUM): New.
16002         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
16003         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
16004         (dwf_regno): New.
16005         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
16006         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
16007         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
16008         Use it.
16009         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
16010         * dwarf2out.h (dwarf_frame_regnum): New.
16011         (struct cfa_loc): Document the domain of the reg member.
16012
16013 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
16014
16015         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
16016         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
16017
16018 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
16019
16020         PR debug/49676
16021         * dwarf2out.c (int_shift_loc_descriptor): New function.
16022         (int_loc_descriptor): If shorter, emit i as
16023         (i >> shift), shift, DW_OP_shl for suitable shift value.
16024         Similarly, try to optimize large negative values using
16025         DW_OP_neg of a positive value if shorter.
16026         (size_of_int_shift_loc_descriptor): New function.
16027         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
16028         changes.
16029         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
16030         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
16031         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
16032         is shorter.
16033         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
16034         addend as added DW_OP_plus if it is shorter.
16035
16036 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16037
16038         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
16039         (DTORS_SECTION_ASM_OP): Define.
16040
16041 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16042
16043         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
16044         * config/t-dfprules: Move to ../libgcc/config.
16045         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
16046         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
16047         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
16048         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
16049         Likewise.
16050         (i[34567]86-*-cygwin*): Likewise.
16051         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
16052         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
16053         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
16054         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
16055         D64PBIT_FUNCS, D128PBIT_FUNCS.
16056
16057 2011-07-11  Richard Guenther  <rguenther@suse.de>
16058
16059         * tree-vrp.c (simplify_conversion_using_ranges): Manually
16060         translate the source value-range through the conversion chain.
16061
16062 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
16063
16064         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
16065
16066 2011-07-11  Arthur Loiret  <aloiret@debian.org>
16067
16068         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
16069         a bi-arch compiler defaulting to 31-bit. In this case:
16070         (tmake_file): Add s390/t-linux64.
16071         * doc/install.texi: Add s390-linux to the list of targets supporting
16072         --enable-targets=all.
16073
16074 2011-07-11  Arthur Loiret  <aloiret@debian.org>
16075             Matthias Klose <doko@debian.org>
16076
16077         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
16078         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
16079         (tm_file): Add mips/linux64.h.
16080         (tmake_file): Add mips/t-linux64.
16081         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
16082         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
16083         instead of hardcoded mabi=n32.
16084         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
16085         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
16086         convention.
16087
16088 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16089
16090         * passes.c (init_optimization_passes): Add invariant motion pass
16091         after induction variable optimization.
16092
16093 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
16094
16095         PR target/39633
16096         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
16097         offsets 1..5 set cc0 in a usable way.
16098
16099 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
16100
16101         * tree.h (call_expr_arg): Remove.
16102         (call_expr_argp): Likewise.
16103
16104 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
16105
16106         * config/sparc/sparc.md (save_register_window_1): Rename to...
16107         (window_save): ...this.
16108         * config/sparc/sparc.c (emit_save_register_window): Rename to...
16109         (emit_window_save): ...this.
16110         (sparc_expand_prologue): Adjust to above renaming.
16111
16112 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
16113
16114         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
16115         of movabs for x32.
16116
16117 2011-07-10  Richard Henderson  <rth@redhat.com>
16118
16119         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
16120         run final, instead of emitting text directly.
16121
16122 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
16123
16124         * config/i386/i386.c (ix86_option_override_internal): Turn on
16125         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
16126         small PIC models for TARGET_X32.
16127
16128 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
16129
16130         PR target/49684
16131         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
16132         $(LIBGCC2_CFLAGS).
16133
16134         PR bootstrap/49680
16135         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
16136         stray notes and debug insns by using prev_nonnote_nondebug_insn
16137         instead of PREV_INSN.
16138
16139 2011-07-09  Richard Henderson  <rth@redhat.com>
16140
16141         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
16142         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
16143         * dwarf2out.c: ... here.
16144         (output_all_cfis): Remove.
16145         (dwarf2out_switch_text_section): Use output_cfis directly.
16146         (size_of_locs): Export.
16147         (output_loc_sequence, output_loc_sequence_raw): Export.
16148         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
16149         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
16150         output_cfa_loc_raw): Move to ...
16151         * dwarfcfi.c: ... here.
16152         * dwarf2out.h: Update decls.
16153
16154 2011-07-09  Richard Henderson  <rth@redhat.com>
16155
16156         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
16157         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
16158         * dwarf2cfi.c: ... here.
16159         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
16160         (DWARF_ROUND, DWARF_CIE_ID): Remove.
16161         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
16162         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
16163         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
16164
16165 2011-07-09  Richard Henderson  <rth@redhat.com>
16166
16167         * dwarf2cfi.c (cie_return_save): New.
16168         (queue_reg_save): Use compare_reg_or_pc.
16169         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
16170         (dwarf2out_frame_debug_expr): Likewise.
16171         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
16172         (initial_return_save): Likewise.
16173         (execute_dwarf2_frame): Save and restore initial return save from
16174         the cie to the fde.
16175         * config/mips/mips.c (mips_frame_set): Remove special case for
16176         DWARF_FRAME_RETURN_COLUMN.
16177
16178 2011-07-09  Richard Henderson  <rth@redhat.com>
16179
16180         * dwarf2cfi.c (lookup_cfa): Remove.
16181         (execute_dwarf2_frame): Assert queues are empty on entry.
16182         Setup initial cfa directly, not via lookup_cfa.
16183         Don't clear args_size state here.
16184
16185 2011-07-09  Richard Henderson  <rth@redhat.com>
16186
16187         * dwarf2cfi.c (add_cfi_vec): New.
16188         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
16189         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
16190         (execute_dwarf2_frame): Set add_cfi_vec.
16191
16192 2011-07-09  Richard Henderson  <rth@redhat.com>
16193
16194         * defaults.h (ASM_COMMENT_START): Move here...
16195         * dwarf2asm.c: ... from here.
16196         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
16197         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
16198         * varasm.c: Likewise.
16199
16200 2011-07-09  Richard Henderson  <rth@redhat.com>
16201
16202         PR debug/49686
16203         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
16204         (create_cfi_notes): ... do it here instead.
16205
16206 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
16207
16208         PR debug/49676
16209         * dwarf2out.c (size_of_int_loc_descriptor): New function.
16210         (address_of_int_loc_descriptor): Use it.
16211         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
16212
16213 2011-07-09  Richard Henderson  <rth@redhat.com>
16214
16215         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
16216         (prologue, epilogue): New.
16217         (return, *rts): New.
16218         (blockage, setd, seti): New.
16219         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
16220         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
16221         (pdp11_saved_regno): New.
16222         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
16223         generate rtl instead of text.
16224         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
16225         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
16226         * config/pdp11/pdp11-protos.h: Update.
16227
16228 2011-07-09  Richard Henderson  <rth@redhat.com>
16229
16230         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
16231         try to insert an rtl prologue here.
16232         (rs6000_output_function_epilogue): Similarly.
16233         * config/rs6000/rs6000.md (prologue): Emit a barrier to
16234         satisfy !TARGET_SCHED_PROLOG.
16235         (epilogue, sibcall_epilogue): Likewise.
16236
16237 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
16238
16239         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
16240         (FP_REG_P): Delete.
16241         (IN_OR_GLOBAL_P): Likewise.
16242
16243 2011-07-08  Jason Merrill  <jason@redhat.com>
16244
16245         PR c++/45437
16246         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
16247         compound assignment.
16248
16249         * cgraph.c (cgraph_add_to_same_comdat_group): New.
16250         * cgraph.h: Declare it.
16251         * ipa.c (function_and_variable_visibility): Make sure thunks
16252         have the right visibility.
16253
16254 2011-07-08  Richard Henderson  <rth@redhat.com>
16255
16256         PR bootstrap/49680
16257         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
16258         any tablejump vector.
16259
16260         PR bootstrap/49680
16261         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
16262         end of the prologue.
16263
16264 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
16265
16266         PR target/49621
16267         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
16268         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
16269         * config/rs6000/vector.md (vector_select_<mode>,
16270         vector_select_<mode>_uns): Change second operand of NE to
16271         CONST0_RTX (<MODE>mode) instead of const0_rtx.
16272         * config/rs6000/altivec.md (*altivec_vsel<mode>,
16273         *altivec_vsel<mode>_uns): Expect second operand of NE to be
16274         zero_constant of the corresponding vector mode.
16275         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
16276         Likewise.
16277
16278 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
16279
16280         * graphite-dependences.c (build_alias_set_powerset): Remove
16281         continue from loop, add one more assert.
16282
16283 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
16284
16285         PR target/46779
16286         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
16287         In particular, allow 8-bit values in r28 and r29.
16288         (avr_hard_regno_scratch_ok): Disallow any register that might be
16289         part of the frame pointer.
16290         (avr_hard_regno_rename_ok): Same.
16291         (avr_legitimate_address_p): Don't allow SUBREGs.
16292
16293 2011-07-08  Julian Brown  <julian@codesourcery.com>
16294
16295         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
16296         big-endian mode.
16297         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
16298         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
16299         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
16300         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
16301         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
16302         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
16303         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
16304         registers in big-endian mode.
16305
16306 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
16307
16308         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
16309         in terms of another.
16310         (write_attr_value): Write a cast if necessary.
16311
16312         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
16313         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
16314         (REG_WORDS_BIG_ENDIAN): Document.
16315         * doc/tm.texi: Regenerate.
16316         * reload.c (operands_match_p): Take it into account.
16317         (reload_adjust_reg_for_mode): Likewise.
16318         * rtlanal.c (subreg_get_info): Likewise.
16319
16320 2011-07-08  Richard Guenther  <rguenther@suse.de>
16321
16322         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
16323         folding.
16324
16325 2011-07-08  Kai Tietz  <ktietz@redhat.com>
16326
16327         * fold-const.c (fold_truth_andor): Factored out truth_andor
16328         label from fold_binary as function.
16329         (fold_binary_loc): Replace truth_andor lable
16330         by function fold_truth_andor.
16331
16332 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
16333
16334         PR middle-end/49519
16335         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
16336         check if address is stored in register. If so - give up.
16337         (check_sibcall_argument_overlap_1): Do not perform check of
16338         overlapping when it is call to address.
16339
16340 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
16341
16342         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
16343         of magic '31'.
16344
16345 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
16346
16347         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
16348         GET_MODE_BITSIZE where appropriate.
16349         (widen_leading, expand_parity, expand_ctz, expand_ffs,
16350         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
16351         expand_float, expand_fix): Likewise.
16352         * expr.c (convert_move, convert_modes, expand_expr_real_2,
16353         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
16354         * stor-layout.c (get_mode_bounds): Likewise.
16355         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
16356         Likewise.
16357         * convert.c (convert_to_integer): Likewise.
16358         * expmed.c (expand_shift_1): Likewise.
16359
16360         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
16361         a bitsize.
16362
16363         * optabs.c (expand_binop): Tighten conditions for doubleword
16364         expansions.
16365         (widen_bswap): Assert that mode bitsize and precision are the same.
16366         * stor-layout.c (get_best_mode): Skip modes that have lower
16367         precision than bitsize.
16368         * recog.c (simplify_while_replacing): Assert that bitsize and
16369         precision are the same.
16370
16371 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16372
16373         * Makefile.in (LIBGCOV): Remove.
16374         (libgcc.mvars): Remove LIBGCOV.
16375         * libgov.c: Move to ../libgcc.
16376
16377 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16378
16379         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
16380
16381 2011-07-08  Martin Jambor  <mjambor@suse.cz>
16382
16383         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
16384         is too big for total scalarization.
16385
16386 2011-07-07  Richard Henderson  <rth@redhat.com>
16387
16388         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
16389         (DBX_DEBUGGING_INFO): Undef.
16390
16391 2011-07-07  Richard Henderson  <rth@redhat.com>
16392
16393         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
16394         Handle some opcodes specially for debugging.
16395         * print-rtl.c: Include dwarf2out.h
16396         (print_rtx): Handle NOTE_INSN_CFI.
16397         * Makefile.in (print-rtl.o): Update.
16398
16399 2011-07-07  Richard Henderson  <rth@redhat.com>
16400
16401         * tree-pass.h (pass_dwarf2_frame): Declare.
16402         * passes.c (init_optimization_passes): Add it.
16403         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
16404         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
16405         make static, do not call add_cfis_to_fde.
16406         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
16407         dwarf2out_frame_init): Merge into...
16408         (execute_dwarf2_frame): ... here.  New function.
16409         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
16410         saved_do_cfi_asm to a tri-state variable.
16411         (gate_dwarf2_frame, pass_dwarf2_frame): New.
16412         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
16413         if it has yet to be done.  Don't call dwarf2cfi_function_init.
16414         * dwarf2out.h, debug.h: Update decls.
16415         * final.c (final_start_function): Don't call
16416         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
16417         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
16418         * toplev.c (lang_dependent_init): Likewise.
16419
16420 2011-07-07  Richard Henderson  <rth@redhat.com>
16421
16422         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
16423         FDE_TABLE_INCREMENT): Replace with...
16424         (fde_vec): ... this, a new vector.
16425         (current_fde): Remove.  Replace all users with cfun->fde.
16426         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
16427         (size_of_aranges, dwarf2out_finish): Likewise.
16428         (dwarf2out_alloc_current_fde): Break out from ...
16429         (dwarf2out_begin_prologue): ... here.
16430         (dwarf2out_frame_init): Remove.
16431         * dwarf2cfi.c: Update all users of current_fde.
16432         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
16433         * dwarf2out.h: Update decls.
16434         (dw_fde_node): Add fde_index member.
16435         * function.h (struct function): Add fde member.
16436
16437 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16438             Richard Henderson  <rth@redhat.com>
16439
16440         * dwarf2cfi.c (add_cfi): Remove.
16441         (dwarf2out_cfi_label): Remove force argument.  Only generate the
16442         label name.
16443         (add_fde_cfi): Simplify the different code paths.
16444         (add_cie_cfi): New.
16445         (old_cfa, old_cfa_remember): New.
16446         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
16447         (last_reg_save_label): Remove.
16448         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
16449         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
16450         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
16451         dwarf2out_frame_debug_cfa_expression,
16452         dwarf2out_frame_debug_cfa_restore,
16453         dwarf2out_frame_debug_cfa_window_save,
16454         dwarf2out_frame_debug_expr): Remove label parameter.
16455         (cfi_label_required_p, add_cfis_to_fde): New.
16456         (dwarf2out_frame_debug_after_prologue): New.
16457         (dwarf2cfi_frame_init): Initialize old_cfa.
16458         (dwarf2out_frame_debug_restore_state): Likewise.
16459         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
16460         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
16461         * final.c (final_start_function): Call
16462         dwarf2out_frame_debug_after_prologue.
16463
16464 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16465             Richard Henderson  <rth@redhat.com>
16466
16467         * dwarf2cfi.c (cfi_insn): New.
16468         (dwarf2out_cfi_label): Don't emit cfi label here.
16469         (add_fde_cfi): Create a NOTE_INSN_CFI.
16470         (dwarf2out_frame_debug): Setup cfi_insn.
16471         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
16472         (dwarf2out_cfi_begin_epilogue): Make static.
16473         (dwarf2out_frame_debug_restore_state): Make static.
16474         * dwarf2out.c (output_cfi_directive): Make static.
16475         (dwarf2out_emit_cfi): New.
16476         * dwarf2out.h: Update.
16477         * final.c (final): Remove CFI notes.
16478         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
16479         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
16480         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
16481         * insn-notes.def (NOTE_INSN_CFI): New.
16482         (NOTE_INSN_CFI_LABEL): New.
16483         * rtl.h (union rtunion_def): Add rt_cfi member.
16484         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
16485
16486 2011-07-07  Richard Henderson  <rth@redhat.com>
16487
16488         * dwarf2cfi.c: New file.
16489         * Makefile.in (OBJS): Add it.
16490         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
16491         * gengtype.c (open_base_files): Include dwarf2out.h.
16492         * coretypes.h (enum var_init_status): Move from ...
16493         * rtl.h: ... here.
16494         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
16495         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
16496         expand_builtin_dwarf_sp_column, init_return_column_size,
16497         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
16498         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
16499         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
16500         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
16501         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
16502         compute_barrier_args_size, dwarf2out_args_size,
16503         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
16504         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
16505         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
16506         queue_reg_save, dwarf2out_flush_queued_reg_saves,
16507         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
16508         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
16509         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
16510         dwarf2out_frame_debug_cfa_expression,
16511         dwarf2out_frame_debug_cfa_restore,
16512         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
16513         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
16514         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
16515         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
16516         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
16517         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
16518         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
16519         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
16520         dw_loc_descr_node): Move to dwarf2out.h.
16521         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
16522         mem_loc_descriptor): Export.
16523         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
16524         (dwarf2out_frame_init): Extract CIE generation code to
16525         dwarf2cfi_frame_init.
16526
16527 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
16528
16529         PR target/49660
16530         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
16531         MASK_V8PLUS, remove commented out flag and reorder.
16532
16533 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
16534
16535         PR c/49644
16536         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
16537         one non-complex and one complex argument, call c_save_expr on both
16538         operands.
16539
16540 2011-07-07  Martin Jambor  <mjambor@suse.cz>
16541
16542         PR middle-end/49495
16543         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
16544         (verify_cgraph_node): Some functinality moved to
16545         verify_edge_corresponds_to_fndecl, call it.
16546
16547 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
16548
16549         * config.gcc (*local*): Remove.
16550         * doc/install-old.texi: Don't mention local configurations.
16551
16552 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
16553
16554         PR debug/49522
16555         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
16556         referencing debug insns that have been reset.
16557         (dead_debug_insert_before): Don't assert reg is non-NULL,
16558         instead return immediately if it is NULL.
16559
16560 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
16561
16562         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
16563
16564 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16565
16566         * hw-doloop.c: New file.
16567         * hw-doloop.h: New file.
16568         * Makefile.in (OBJS): Add hw-doloop.o.
16569         (hw-doloop.o): New rule.
16570         ($(obj_out_file)): Add hw-doloop.h dependency.
16571         * config/bfin/bfin.c: Include "hw-doloop.h".
16572         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
16573         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
16574         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
16575         type changed to hwloop_info.  Return bool, true if the loop was
16576         successfully optimized.  Remove code that was moved to
16577         hw-doloop.c, and adjust other parts.
16578         (hwloop_fail): New static function, containing parts that used
16579         to be in bfin_optimize_loop.
16580         (bfin_discover_loop, bfin_discover_loops, free_loops,
16581         bfin_reorder_loops): Remove.
16582         (hwloop_pattern_reg): New static function.
16583         (bfin_doloop_hooks): New variable.
16584         (bfin_reorg_loops): Remove most code, call reorg_loops.
16585         * config/bfin/bfin.md (doloop_end splitter): Also enable if
16586         loop counter is a memory_operand.
16587
16588 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
16589
16590         * config.gcc: Support --with-multilib-list for x86 Linux targets.
16591
16592         * configure.ac: Mention x86-64 for --with-multilib-list.
16593         * configure: Regenerated.
16594
16595         * config/i386/gnu-user64.h (SPEC_64): Support x32.
16596         (SPEC_32): Likewise.
16597         (ASM_SPEC): Likewise.
16598         (LINK_SPEC): Likewise.
16599         (TARGET_THREAD_SSP_OFFSET): Likewise.
16600         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
16601         (SPEC_X32): New.
16602
16603         * config/i386/i386.h (TARGET_X32): New.
16604         (TARGET_LP64): New.
16605         (LONG_TYPE_SIZE): Likewise.
16606         (POINTER_SIZE): Likewise.
16607         (POINTERS_EXTEND_UNSIGNED): Likewise.
16608         (OPT_ARCH64): Support x32.
16609         (OPT_ARCH32): Likewise.
16610
16611         * config/i386/i386.opt (mx32): New.
16612
16613         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
16614         (GLIBC_DYNAMIC_LINKERX32): Likewise.
16615         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
16616         (GLIBC_DYNAMIC_LINKERX32): Likewise.
16617
16618         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
16619         (BIONIC_DYNAMIC_LINKERX32): Likewise.
16620         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
16621
16622         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
16623
16624         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
16625
16626         * doc/invoke.texi: Document -mx32.
16627
16628 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
16629
16630         * doc/invoke.texi (mwords-little-endian): Deprecate.
16631         * config/arm/arm.opt (mwords-little-endian): Likewise.
16632         * config/arm/arm.c (arm_option_override): Warn about the deprecation
16633         of -mwords-little-endian.
16634
16635 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
16636
16637         * reload1.c (choose_reload_regs): Use mode sizes to check whether
16638         an old reload register completely defines the required value.
16639
16640 2011-07-07  Richard Guenther  <rguenther@suse.de>
16641
16642         * fold-const.c (fold_unary_loc): Do not strip sign-changes
16643         for NEGATE_EXPR.
16644
16645 2011-07-07  Richard Guenther  <rguenther@suse.de>
16646
16647         * tree-vrp.c (simplify_conversion_using_ranges): New function.
16648         (simplify_stmt_using_ranges): Call it.
16649
16650 2011-07-07  Kai Tietz  <ktietz@redhat.com>
16651
16652         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
16653         (lookup_logical_inverted_value): Likewise.
16654         (simplify_bitwise_binary_1): Likewise.
16655         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
16656
16657 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
16658
16659         * gcc.c (%[Spec]): Don't document.
16660         (struct spec_list): Update comment.
16661         (do_spec_1): Don't handle %[Spec].
16662         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
16663
16664 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
16665
16666         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
16667         default based on TARGET_ASM_NAMED_SECTION.
16668         * common/common-target.def (have_named_sections): Default to true.
16669         * common/config/default-common.c: Don't include tm.h.
16670         * common/config/picochip/picochip-common.c
16671         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
16672         * common/config/m32c/m32c-common.c: Remove.
16673         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
16674         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16675         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16676         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16677         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16678         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16679         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16680
16681 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
16682
16683         PR middle-end/49640
16684         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
16685         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
16686
16687 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16688
16689         PR libmudflap/49550
16690         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
16691
16692 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16693
16694         PR target/39150
16695         * configure.ac (gcc_cv_as_hidden): Also accept
16696         x86_64-*-solaris2.1[0-9]*.
16697         (gcc_cv_as_cfi_directive): Likewise.
16698         (gcc_cv_as_comdat_group_group): Likewise.
16699         (set_have_as_tls): Likewise.
16700         * configure: Regenerate.
16701         * config.gcc (i[34567]86-*-solaris2*): Also handle
16702         x86_64-*-solaris2.1[0-9]*.
16703         * config.host (i[34567]86-*-solaris2*): Likewise.
16704         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
16705         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
16706         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
16707         (TARGET_LD_EMULATION): Use it.
16708         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
16709         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
16710         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
16711         (ASM_CPU64_DEFAULT_SPEC): Define.
16712         (ASM_CPU_SPEC): Use %(asm_cpu_default).
16713         (ASM_SPEC): Redefine.
16714         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
16715         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
16716         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
16717         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
16718         configuration.
16719         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
16720
16721 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16722
16723         * config/sol2.h (ASM_SPEC): Split into ...
16724         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
16725         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
16726         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
16727         (ASM_SPEC): Use ASM_SPEC_BASE.
16728         * config/sparc/sol2.h (ASM_SPEC): Redefine.
16729
16730 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
16731
16732         * config/avr/avr.md (*reload_insi): Change predicate #1 to
16733         const_int_operand.  Ditto for peep2 producing this insn.
16734         Add argument to output_reload_insisf call.
16735         (*movsi,*movsf): Add argument to output_movsisf call.
16736         (*reload_insf): New insn and new peep2 to produce it.
16737         * config/avr/avr-protos.h (output_movsisf): Change prototype.
16738         (output_reload_insisf): Change prototype.
16739         * config/avr/avr.c (avr_asm_len): New function.
16740         (output_reload_insisf): Rewrite.
16741         (output_movsisf): Change prototype.  output_reload_insisf for
16742         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
16743         (adjust_insn_length): Add argument to output_movsisf and
16744         output_reload_insisf call.
16745
16746 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16747
16748         * emit-rtl.c (paradoxical_subreg_p): New function.
16749         * rtl.h (paradoxical_subreg_p): Declare.
16750         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
16751         apply_distributive_law, simplify_comparison, simplify_set): Use it.
16752         * cse.c (record_jump_cond, cse_insn): Likewise.
16753         * expr.c (force_operand): Likewise.
16754         * rtlanal.c (num_sign_bit_copies1): Likewise.
16755         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
16756         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
16757         (push_reload): Use precision to check for paradoxical subregs.
16758         * expmed.c (extract_bit_field_1): Likewise.
16759
16760         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
16761         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
16762         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
16763         simplify_set, simplify_logical, expand_compound_operation,
16764         make_extraction, force_to_mode, if_then_else_cond, extended_count,
16765         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
16766         record_value_for_reg): Likewise.
16767         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
16768         * simplify-rtx. c (simplify_unary_operation_1,
16769         simplify_binary_operation_1, simplify_const_relational_operation):
16770         Likewise.
16771
16772         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
16773         instead of GET_MODE_BITSIZE where appropriate.
16774         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
16775         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
16776         init_num_sign_bit_copies_in_rep): Likewise.
16777         * cse.c (fold_rtx, cse_insn): Likewise.
16778         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
16779         * simplify-rtx.c (simplify_unary_operation_1,
16780         simplify_const_unary_operation, simplify_binary_operation_1,
16781         simplify_const_binary_operation, simplify_ternary_operation,
16782         simplify_const_relational_operation, simplify_subreg): Likewise.
16783         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
16784         simplify_if_then_else, simplify_set, expand_compound_operation,
16785         expand_field_assignment, make_extraction, if_then_else_cond,
16786         make_compound_operation, force_to_mode, make_field_assignment,
16787         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
16788         extended_count, try_widen_shift_mode, simplify_shift_const_1,
16789         simplify_comparison, record_promoted_value, simplify_compare_const,
16790         record_dead_and_set_regs_1): Likewise.
16791
16792         Revert:
16793         * simplify-rtx.c (simplify_const_binary_operation): Use the
16794         shift_truncation_mask hook instead of performing modulo by width.
16795         Compare against mode precision, not bitsize.
16796         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
16797         Use shift_truncation_mask instead of constructing the value manually.
16798
16799 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
16800
16801         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
16802         declaration.
16803         (rs6000_save_toc_in_prologue_p): Ditto.
16804
16805         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
16806         up the static chain (r11) during indirect function calls.
16807         (-msave-toc-indirect): New undocumented debug switch.
16808
16809         * config/rs6000/rs6000.c (struct machine_function): Add
16810         save_toc_in_prologue field to note whether the prologue needs to
16811         save the TOC value in the reserved stack location.
16812         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
16813         to save the TOC in the prologue, do so.
16814         (rs6000_trampoline_init): Don't allow creating AIX style
16815         trampolines if -mno-r11 is in effect.
16816         (rs6000_call_indirect_aix): New function to create AIX style
16817         indirect calls, adding support for -mno-r11 to suppress loading
16818         the static chain, and saving the TOC in the prologue instead of
16819         the call body.
16820         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
16821         TOC in the prologue.
16822
16823         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
16824         register numbers.
16825         (TOC_REGNUM): Ditto.
16826         (STATIC_CHAIN_REGNUM): Ditto.
16827         (ARG_POINTER_REGNUM): Ditto.
16828         (SFP_REGNO): Delete, unused.
16829         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
16830         function descriptor offsets.
16831         (TOC_SAVE_OFFSET_64BIT): Ditto.
16832         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
16833         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
16834         (AIX_FUNC_DESC_SC_32BIT): Ditto.
16835         (AIX_FUNC_DESC_SC_64BIT): Ditto.
16836         (ptrload): New mode attribute for the appropriate load of a pointer.
16837         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
16838         (call_indirect_aix64): Ditto.
16839         (call_value_indirect_aix32): Ditto.
16840         (call_value_indirect_aix64): Ditto.
16841         (call_indirect_nonlocal_aix32_internal): Ditto.
16842         (call_indirect_nonlocal_aix32): Ditto.
16843         (call_indirect_nonlocal_aix64_internal): Ditto.
16844         (call_indirect_nonlocal_aix64): Ditto.
16845         (call): Rewrite AIX indirect function calls.  Add support for
16846         eliminating the static chain, and for moving the save of the TOC
16847         to the function prologue.
16848         (call_value): Ditto.
16849         (call_indirect_aix<ptrsize>): Ditto.
16850         (call_indirect_aix<ptrsize>_internal): Ditto.
16851         (call_indirect_aix<ptrsize>_internal2): Ditto.
16852         (call_indirect_aix<ptrsize>_nor11): Ditto.
16853         (call_value_indirect_aix<ptrsize>): Ditto.
16854         (call_value_indirect_aix<ptrsize>_internal): Ditto.
16855         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
16856         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
16857         (call_nonlocal_aix32): Relocate in the rs6000.md file.
16858         (call_nonlocal_aix64): Ditto.
16859
16860         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
16861         -mno-r11 documentation.
16862
16863 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
16864
16865         PR other/49658
16866         * doc/extend.texi (Compound Literals): Fix typo.
16867
16868 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
16869
16870         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
16871
16872 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
16873
16874         * configure.ac (plugin-version.h): Generate
16875         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
16876         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
16877         macros.
16878
16879         * configure: Regenerate.
16880
16881         * doc/plugins.texi (Building GCC plugins): Mention
16882         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
16883
16884 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
16885
16886         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
16887         * combine.c (make_extraction, gen_lowpart_or_truncate,
16888         apply_distributive_law, simplify_comparison,
16889         reg_truncated_to_mode, record_truncated_value): Use it.
16890         * cse.c (notreg_cost): Likewise.
16891         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
16892         * expr.c (convert_move, convert_modes): Likewise.
16893         * optabs.c (expand_binop, expand_unop): Likewise.
16894         * postreload.c (move2add_last_label): Likewise.
16895         * regmove.c (optimize_reg_copy_3): Likewise.
16896         * rtlhooks.c (gen_lowpart_general): Likewise.
16897         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
16898
16899 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
16900
16901         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
16902
16903 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
16904
16905         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
16906         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
16907         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
16908         (simplify_const_unary_operation, simplify_binary_operation_1,
16909         simplify_const_binary_operation, simplify_const_relational_operation):
16910         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
16911         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
16912         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
16913         simplify_shift_const_1, simplify_comparison): Likewise.
16914         * expr.c (convert_modes): Likewise.
16915         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
16916         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
16917         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
16918
16919         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
16920
16921 2011-07-06  Richard Guenther  <rguenther@suse.de>
16922
16923         PR tree-optimization/49645
16924         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
16925         register variables.
16926         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
16927         in type qualification here ...
16928         (copy_reference_ops_from_ref): ... not here.
16929         (vn_reference_lookup_3): ... or here.
16930         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
16931         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
16932
16933 2011-07-06  Ian Lance Taylor  <iant@google.com>
16934
16935         * doc/install.texi (Configuration): It's
16936         --enable-gnu-indirect-function, not --enable-indirect-function.
16937
16938 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
16939
16940         * simplify-rtx.c (simplify_const_binary_operation): Use the
16941         shift_truncation_mask hook instead of performing modulo by width.
16942         Compare against mode precision, not bitsize.
16943         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
16944         Use shift_truncation_mask instead of constructing the value manually.
16945
16946 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
16947
16948         PR middle-end/47383
16949         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
16950         address computation and convert to address_mode if needed.
16951
16952 2011-07-06  Richard Guenther  <rguenther@suse.de>
16953
16954         * tree.c (build_common_tree_nodes_2): Merge with
16955         build_common_tree_nodes.
16956         * tree.h (build_common_tree_nodes): Adjust prototype.
16957         (build_common_tree_nodes_2): Remove.
16958         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
16959         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
16960
16961 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
16962
16963         PR tree-optimization/49618
16964         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
16965         t recurse on the decl.
16966         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
16967         return true if expr isn't known to be defined in current
16968         TU or some other LTO partition.
16969
16970 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
16971
16972         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
16973         override CASE_VALUES_THRESHOLD.
16974
16975         * stmt.c (toplevel): Include params.h.
16976         (case_values_threshold): Use the --param case-values-threshold
16977         value if non-zero, otherwise use machine dependent value.
16978         (expand_case): Use case_values_threshold.
16979
16980         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
16981
16982         * doc/invoke.texi (--param case-values-threshold): Document.
16983
16984 2011-07-05  Richard Henderson  <rth@redhat.com>
16985
16986         * dwarf2out.c (dwarf2out_cfi_label): Make static.
16987         (dwarf2out_flush_queued_reg_saves): Make static.
16988         (dwarf2out_reg_save): Remove.
16989         (dwarf2out_return_save): Remove.
16990         (dwarf2out_return_reg): Remove.
16991         (dwarf2out_reg_save_reg): Remove.
16992         (dwarf2out_def_cfa): Merge into ...
16993         (dwarf2out_frame_init): ... here.
16994         * dwarf2out.h, tree.h: Remove declarations as necessary.
16995
16996 2011-07-05  Richard Henderson  <rth@redhat.com>
16997
16998         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
16999         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
17000         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
17001         the alloc insn.
17002
17003         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
17004         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
17005         (process_epilogue): Don't call dwarf2out_def_cfa.
17006
17007         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
17008         indicate the return address save.
17009         (process_cfa_register): Likewise.
17010
17011         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
17012         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
17013
17014         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
17015         for ar.pfs save at alloc insn.
17016
17017 2011-07-05  Richard Henderson  <rth@redhat.com>
17018
17019         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
17020         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
17021         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
17022         stack pointer save.
17023         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
17024         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
17025         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
17026         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
17027
17028 2011-07-05  Richard Henderson  <rth@redhat.com>
17029
17030         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
17031         VUNSPEC_* constants here instead of via define_constants.
17032         (VUNSPEC_PEM): New constant.
17033         (procedure_entry_mask): New insn.
17034         (prologue): New expander.
17035         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
17036         (vax_expand_prologue): Rename from vax_output_function_prologue;
17037         emit rtl instead of text.
17038         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
17039         (print_operand): Add 'x' prefix.
17040
17041 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
17042
17043         PR middle-end/47715
17044         * calls.c (precompute_register_parameters): Promote the function
17045         argument before checking non-legitimate constant.
17046
17047 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
17048
17049         PR tree-optimization/47654
17050         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
17051         (lst_do_strip_mine_loop): Return an int.
17052         (lst_do_strip_mine): Same.
17053         (scop_do_strip_mine): Same.
17054         (scop_do_block): Loop blocking should strip-mine at least two loops.
17055         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
17056         (scop_do_interchange): Same.
17057         * graphite-poly.h (scop_do_interchange): Update declaration.
17058         (scop_do_strip_mine): Same.
17059
17060 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
17061
17062         * graphite-clast-to-gimple.c (precision_for_value): Removed.
17063         (precision_for_interval): Removed.
17064         (gcc_type_for_interval): Use mpz_sizeinbase.
17065
17066 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
17067
17068         * graphite-ppl.h (value_max): Correct computation of max.
17069
17070 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
17071
17072         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
17073
17074 2011-07-05  Richard Guenther  <rguenther@suse.de>
17075
17076         * c-decl.c (c_init_decl_processing): Defer building common
17077         tree nodes to c_common_nodes_and_builtins.
17078
17079 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
17080
17081         PR tree-optimization/49580
17082         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
17083         the loop's number of iterations.
17084         * tree-parloops.c (transform_to_exit_first_loop): Add the
17085         handling of the loop's number of iterations before the call
17086         to gimple_duplicate_sese_tail.
17087         Insert the stmt caclculating the new rhs of the loop's
17088         condition stmt to the preheader instead of iters_bb.
17089
17090 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
17091
17092         PR rtl-optimization/47449
17093         * fwprop.c (forward_propagate_subreg): Don't propagate hard
17094         register nor zero/sign extended hard register.
17095
17096 2011-07-05  Richard Guenther  <rguenther@suse.de>
17097
17098         PR tree-optimization/49518
17099         PR tree-optimization/49628
17100         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
17101         irrelevant and invariant data-references.
17102         (vect_analyze_data_ref_access): For invariant loads clear the
17103         group association.
17104
17105 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
17106
17107         PR rtl-optimization/49619
17108         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
17109         pass VOIDmode as op0_mode to recursive call, and return temp even
17110         when different from tor, just if it is not IOR of the original
17111         PLUS arguments.
17112
17113         PR rtl-optimization/49472
17114         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
17115         negating MULT, negate the second operand instead of first.
17116         (simplify_binary_operation_1) <case MULT>: If one operand is
17117         a NEG and the other is MULT, don't attempt to optimize by negation
17118         of the MULT operand if it only moves the NEG operation around.
17119
17120         PR debug/49602
17121         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
17122         get_current_def return value if it can't be trusted to be
17123         the current value of the variable in the current bb.
17124
17125 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
17126
17127         PR target/49600
17128         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
17129         general register to memory for !TARGET_INTER_UNIT_MOVES.
17130
17131 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
17132
17133         PR target/44643
17134         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
17135         instead of TREE_READONLY.
17136
17137 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
17138
17139         * doc/extend.texi (AVR Built-in Functions): Update documentation
17140         of __builtin_avr_fmul*.
17141         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
17142         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
17143         * config/avr/avr.md (fmul): Rename to fmul_insn.
17144         (fmuls): Rename to fmuls_insn.
17145         (fmulsu): Rename to fmulsu_insn.
17146         (fmul,fmuls,fmulsu): New expander.
17147         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
17148         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
17149         * config/avr/libgcc.S (__fmul): New function.
17150         (__fmuls): New function.
17151         (__fmulsu,__fmulsu_exit): New function.
17152
17153 2011-07-04  Richard Guenther  <rguenther@suse.de>
17154
17155         PR tree-optimization/49615
17156         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
17157         basic-block index check.
17158
17159 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
17160
17161         * longlong.h (count_leading_zeros, count_trailing_zeros,
17162         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
17163         resp. 64.
17164
17165 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
17166
17167         PR tree-optimization/49610
17168         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
17169         a basic block.
17170
17171 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
17172             Olivier Hainque  <hainque@adacore.com>
17173             Nicolas Setton  <setton@adacore.com>
17174
17175         * tree.h (TYPE_ARTIFICIAL): New flag.
17176         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
17177         the DIE of the type if it is artificial.
17178         (gen_array_type_die): Likewise.
17179         (gen_enumeration_type_die): Likewise.
17180         (gen_struct_or_union_type_die): Likewise.
17181         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
17182         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
17183
17184 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
17185
17186         * tree-object-size.c (pass_through_call): Handle
17187         BUILT_IN_ASSUME_ALIGNED.
17188
17189 2011-07-01  Martin Jambor  <mjambor@suse.cz>
17190
17191         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
17192
17193 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
17194
17195         PR middle-end/48016
17196         * explow.c (update_nonlocal_goto_save_area): Use proper mode
17197         for stack save area.
17198         * function.c (expand_function_start): Likewise.
17199
17200 2011-07-01  Richard Guenther  <rguenther@suse.de>
17201
17202         PR middle-end/49596
17203         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
17204         may have unknown refs.
17205
17206 2011-07-01  Kai Tietz  <ktietz@redhat.com>
17207
17208         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
17209
17210 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17211
17212         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
17213         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
17214         (Specific, mips-sgi-irix6): Likewise.
17215
17216 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17217
17218         PR libmudflap/49549
17219         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
17220
17221 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
17222
17223         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
17224         [idx]= and [idx1 ... idx2]= before initializers if needed for
17225         array initializers.
17226
17227 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
17228
17229         * config.gcc (score-*-elf): Remove score7.o.
17230         * config/score/t-score-elf: Likewise.
17231         * config/score/score.c: Merge score7 to score.c and
17232         remove forwarding functions.
17233         * config/score/score7.c: Deleted.
17234         * config/score/score7.h: Deleted.
17235
17236 2011-07-01  Richard Guenther  <rguenther@suse.de>
17237
17238         PR tree-optimization/49603
17239         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
17240
17241 2011-06-30  Martin Jambor  <mjambor@suse.cz>
17242
17243         * tree-sra.c (struct access): Rename total_scalarization to
17244         grp_total_scalarization
17245         (completely_scalarize_var): New function.
17246         (sort_and_splice_var_accesses): Set total_scalarization in the
17247         representative access.
17248         (analyze_access_subtree): Propagate total scalarization accross the
17249         tree, no holes in totally scalarized trees, simplify coverage
17250         computation.
17251         (analyze_all_variable_accesses): Call completely_scalarize_var instead
17252         of completely_scalarize_record.
17253
17254 2011-06-30  Richard Henderson  <rth@redhat.com>
17255
17256         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
17257         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
17258         * config/i386/i386.c: Don't include dwarf2out.h.
17259         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
17260         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
17261         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
17262         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
17263         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
17264
17265 2011-06-30  Richard Henderson  <rth@redhat.com>
17266
17267         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
17268         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
17269         * final.c (final_scan_insn): Look for it, and invoke
17270         dwarf2out_frame_debug before the insn if found.
17271
17272 2011-06-30  Richard Henderson  <rth@redhat.com>
17273
17274         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
17275         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
17276
17277 2011-06-30  Richard Henderson  <rth@redhat.com>
17278
17279         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
17280         Define a vector of this type.
17281         (regs_saved_in_regs): Use a VEC.
17282         (num_regs_saved_in_regs): Remove.
17283         (compare_reg_or_pc): New.
17284         (record_reg_saved_in_reg): Split out from...
17285         (dwarf2out_flush_queued_reg_saves): ... here.
17286         (clobbers_queued_reg_save): Update for VEC.
17287         (reg_saved_in): Likewise.
17288         (dwarf2out_frame_debug_init): Likewise.
17289         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
17290         (dwarf2out_frame_debug_cfa_register): Likewise.
17291
17292 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
17293
17294         PR tree-optimization/49572
17295         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
17296         type of the RHS instead of that of the LHS for the expression type.
17297
17298 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
17299
17300         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
17301         unconditionally.
17302
17303 2011-06-30  Richard Guenther  <rguenther@suse.de>
17304
17305         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
17306         * tree-ssa-structalias.c (create_variable_info_for): Do not
17307         add initial constraints for non-var-decls.  Properly handle
17308         globals in other ltrans partitions.
17309         (intra_create_variable_infos): Manually create constraints for
17310         the fake no-alias parameter.
17311         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
17312         and assert there are no clones.
17313
17314 2011-06-30  Richard Guenther  <rguenther@suse.de>
17315
17316         PR tree-optimization/46787
17317         * tree-data-ref.c (dr_address_invariant_p): Remove.
17318         (find_data_references_in_stmt): Invariant accesses are ok now.
17319         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
17320         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
17321         invariant loads.
17322
17323 2011-06-30  Martin Jambor  <mjambor@suse.cz>
17324
17325         PR tree-optimization/49094
17326         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
17327         (build_accesses_from_assign): Use it.
17328
17329 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
17330
17331         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
17332         handling of BUILT_IN_ASSUME_ALIGNED.
17333
17334         PR debug/49364
17335         * dwarf2out.c (output_abbrev_section): Don't return early
17336         if abbrev_die_table_in_use is 1.
17337         (dwarf2out_finish): Instead don't call output_abbrev_section
17338         nor emit abbrev_section_label in that case.
17339
17340 2011-06-30  Nick Clifton  <nickc@redhat.com>
17341
17342         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
17343         for the V850E.
17344
17345 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
17346
17347         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
17348         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
17349
17350 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
17351
17352         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
17353         both pattern and original statements if necessary.
17354         (vect_transform_loop): Likewise.
17355         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
17356         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
17357         Mark the pattern statement only if the original statement doesn't
17358         have its own uses.
17359         (process_use): Call vect_mark_relevant with additional parameter.
17360         (vect_mark_stmts_to_be_vectorized): Likewise.
17361         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
17362         (vect_analyze_stmt): Handle both pattern and original statements
17363         if necessary.
17364         (vect_transform_stmt): Don't store vectorized pattern statement
17365         in the original statement.
17366         (vect_is_simple_use_1): Use related pattern statement only if the
17367         original statement is irrelevant.
17368         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
17369
17370 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
17371
17372         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
17373         option.
17374         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
17375         entry.
17376         (TARGET_AVX128_OPTIMAL): New definition.
17377         * config/i386/i386.c (initial_ix86_tune_features): Initialize
17378         X86_TUNE_AVX128_OPTIMAL entry.
17379         (ix86_option_override_internal): Enable the generation
17380         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
17381         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
17382         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
17383
17384 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
17385
17386         PR tree-optimization/49539
17387         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
17388         names by means of stmt_references_abnormal_ssa_name.
17389         (associate_plusminus): Call can_propagate_from before propagating
17390         from definition statements.
17391         (ssa_forward_propagate_and_combine): Remove superfluous newline.
17392
17393 2011-06-29  Richard Guenther  <rguenther@suse.de>
17394
17395         * doc/invoke.texi: Document -scev dump modifier.
17396         * tree-pass.h (TDF_SCEV): New dump flag.
17397         * tree-dump.c (dump_option_value_in): Add scev.
17398         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
17399         * tree-scalar-evolution.c: Likewise.
17400
17401 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
17402
17403         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
17404         (cxa_type_match): Correct declaration.
17405         (__gnu_unwind_pr_common): Reconstruct additional indirection
17406         when __cxa_type_match returns succeeded_with_ptr_to_base.
17407
17408 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17409
17410         PR rtl-optimization/49114
17411         * reload.c (struct replacement): Remove SUBREG_LOC member.
17412         (push_reload): Do not set it.
17413         (push_replacement): Likewise.
17414         (subst_reload): Remove dead code.
17415         (copy_replacements): Remove assertion.
17416         (copy_replacements_1): Do not handle SUBREG_LOC.
17417         (move_replacements): Likewise.
17418         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
17419         Detect subregs via recursive descent instead of via SUBREG_LOC.
17420
17421 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
17422
17423         * config/avr/avr.c (avr_encode_section_info): Dispatch to
17424         default_encode_section_info.
17425
17426 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
17427
17428         PR tree-optimization/49545
17429         * builtins.c (get_object_alignment_1): Update function comment.
17430         Do not use DECL_ALIGN for functions, but test
17431         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
17432         * fold-const.c (get_pointer_modulus_and_residue): Don't check
17433         for functions here.
17434         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
17435
17436 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
17437
17438         PR debug/49567
17439         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
17440         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
17441
17442 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
17443
17444         PR target/34734
17445         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
17446         about uninitialized data attributed 'progmem' from here...
17447         (avr_encode_section_info): ...to this new function.
17448         (TARGET_ENCODE_SECTION_INFO): New define.
17449         (avr_section_type_flags): For data in ".progmem.data", remove
17450         section flag SECTION_WRITE.
17451
17452 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
17453
17454         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
17455         _xmulhisi3_exit.
17456         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
17457         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
17458         (__umulhisi3): Ditto.
17459         * config/avr/avr.md (mulhisi3): New insn expender.
17460         (umulhisi3): New insn expender.
17461         (*mulhisi3_call): New insn.
17462         (*umulhisi3_call): New insn.
17463
17464 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
17465
17466         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
17467
17468 2011-06-28  Richard Henderson  <rth@redhat.com>
17469
17470         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
17471         all code and arguments that handled pushes.  Update all callers.
17472
17473 2011-06-28  Richard Henderson  <rth@redhat.com>
17474
17475         * config/arm/arm.c (arm_output_function_prologue): Don't call
17476         thumb1_output_function_prologue.
17477         (arm_expand_prologue): Avoid dead store.
17478         (number_of_first_bit_set): Use ctz_hwi.
17479         (thumb1_emit_multi_reg_push): New.
17480         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
17481         to emit the entire prologue as rtl.
17482         (thumb1_output_interwork): Split out from
17483         thumb1_output_function_prologue.
17484         (thumb1_output_function_prologue): Remove.
17485         (arm_attr_length_push_multi): Handle thumb1.
17486         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
17487         (prologue_thumb1_interwork): New.
17488         (*push_multi): Allow thumb1; use push_mult_memory_operand.
17489         * config/arm/predicates.md (push_mult_memory_operand): New.
17490
17491 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
17492
17493         * config/sparc/sync.md (*stbar): Delete.
17494         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
17495
17496 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
17497
17498         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
17499
17500 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17501
17502         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
17503         (TARGET_64BIT_DEFAULT): Define.
17504         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
17505         of tm_file.
17506         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
17507
17508 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
17509
17510         * common.opt (in_lto_p): New Variable entry.
17511         * flags.h (in_lto_p): Move to common.opt.
17512         * gcc.c: Include params.h.
17513         (set_option_handlers): Also use common_handle_option and
17514         target_handle_option.
17515         (main): Call global_init_params, finish_params and init_options_struct.
17516         * opts.c (debug_type_names): Move from toplev.c.
17517         (print_filtered_help): Access quiet_flag through opts pointer.
17518         (common_handle_option): Return early in the driver for some options.
17519         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
17520         opts pointer.
17521         * toplev.c (in_lto_p): Move to common.opt.
17522         (debug_type_names): Move to opts.c.
17523         * Makefile.in (OBJS): Remove opts.o.
17524         (OBJS-libcommon-target): Add opts.o.
17525         (gcc.o): Update dependencies.
17526
17527 2011-06-28  Kai Tietz  <ktietz@redhat.com>
17528
17529         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
17530
17531 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17532
17533         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
17534         with '=' constraint modifier.
17535         (*divdf3_vfp): Likewise.
17536         ("*mulsf3_vfp"): Likewise.
17537         ("*muldf3_vfp"): Likewise.
17538         ("*mulsf3negsf_vfp"): Likewise.
17539         ("*muldf3negdf_vfp"): Likewise.
17540
17541 2011-06-28  Nick Clifton  <nickc@redhat.com>
17542
17543         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
17544         relaxation when performing an incremental link.
17545
17546 2011-06-28  Kai Tietz  <ktietz@redhat.com>
17547
17548         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
17549         within BB from last to first.
17550
17551 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
17552
17553         * genattr-common.c: New.  Based on genattr.c.
17554         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
17555         (MOSTLYCLEANFILES): Add insn-attr-common.h.
17556         (opts.o): Update dependencies.
17557         (.PRECIOUS): Add insn-attr-common.h.
17558         (simple_rtl_generated_h): Add insn-attr-common.h.
17559         (build/genattr-common.o): New.
17560         (genprogrtl): Add attr-common.
17561         * genattr.c (main): Include insn-attr-common.h.  Don't generate
17562         definitions of DELAY_SLOTS or INSN_SCHEDULING.
17563         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
17564
17565 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
17566
17567         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
17568         avr-*-* and avr-*-rtems* targets.
17569
17570         * config/avr/elf.h: New file.
17571         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
17572         (TARGET_ASM_SELECT_SECTION): Define.
17573         (INIT_SECTION_ASM_OP): Undefine.
17574         (FINI_SECTION_ASM_OP): Undefine.
17575         (READONLY_DATA_SECTION_ASM_OP): Undefine.
17576         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
17577         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
17578         * config/avr/avr.h:
17579         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
17580         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
17581         (MAX_OFILE_ALIGNMENT): Move to elf.h.
17582         (STRING_LIMIT): Move to elf.h.
17583         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
17584         (ASM_DECLARE_OBJECT_NAME): Remove.
17585         (ESCAPES): Remove.
17586         (ASM_OUTPUT_SKIP): Remove.
17587         (DWARF2_DEBUGGING_INFO): Remove.
17588         (OBJECT_FORMAT_ELF): Remove.
17589         (USER_LABEL_PREFIX): Remove.
17590         (ASM_OUTPUT_EXTERNAL): Remove.
17591         (ASM_OUTPUT_ASCII): Remove.
17592         (TYPE_ASM_OP): Remove.
17593         (SIZE_ASM_OP): Remove.
17594         (WEAK_ASM_OP): Remove.
17595         (STRING_ASM_OP): Remove.
17596         (SET_ASM_OP): Remove.
17597         (ASM_WEAKEN_LABEL): Remove.
17598         (TYPE_OPERAND_FMT): Remove.
17599         (ASM_DECLARE_FUNCTION_SIZE): Remove.
17600         (ASM_FINISH_DECLARE_OBJECT): Remove.
17601         (NO_DOLLAR_IN_LABEL): Remove.
17602         (ASM_GENERATE_INTERNAL_LABEL): Remove.
17603         (ASM_OUTPUT_CASE_LABEL): Remove.
17604         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
17605         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
17606         (gas_output_ascii): Remove.
17607         (gas_output_limited_string): Remove.
17608         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
17609         * config/avr/avr-protos.h
17610         (gas_output_ascii): Remove prototye.
17611         (gas_output_limited_string): Remove prototype.
17612
17613 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
17614
17615         PR target/48637
17616         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
17617         asm operands.
17618
17619 2011-06-27  Jan Hubicka  <jh@suse.cz>
17620
17621         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
17622         node instead of references in node.
17623
17624 2011-06-27  Richard Henderson  <rth@redhat.com>
17625
17626         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
17627         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
17628         inside ifdef.
17629
17630 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
17631
17632         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
17633
17634         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
17635         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
17636         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
17637         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
17638         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
17639         (evaluate_stmt, execute_fold_all_builtins): Handle
17640         BUILT_IN_ASSUME_ALIGNED.
17641         * tree-ssa-dce.c (propagate_necessity): Likewise.
17642         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
17643         call_may_clobber_ref_p_1): Likewise.
17644         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
17645         (expand_builtin_assume_aligned): New function.
17646         * doc/extend.texi (__builtin_assume_aligned): Document.
17647
17648         PR debug/49544
17649         * cselib.c (promote_debug_loc): If cselib_preserve_constants
17650         and l has two DEBUG_INSN owned locs instead of just one, adjust
17651         the second location's setting_insn too.
17652
17653 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17654
17655         PR libmudflap/38738
17656         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
17657
17658 2011-06-27  Nick Clifton  <nickc@redhat.com>
17659
17660         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
17661         bit position of highest bit set into a count of the high zero bits.
17662
17663 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
17664
17665         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
17666
17667 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
17668
17669         PR lto/48492
17670         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
17671         to a NULL parent.
17672
17673 2011-06-27  Richard Guenther  <rguenther@suse.de>
17674
17675         PR tree-optimization/49394
17676         * passes.c (execute_one_pass): Restore current_pass after
17677         applying IPA transforms.
17678
17679 2011-06-27  Kai Tietz  <ktietz@redhat.com>
17680
17681         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
17682         out of type precision after operation.
17683         (find_bswap): Take for limit value the integer auto-promotion
17684         into account.
17685
17686 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
17687
17688         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
17689         forward scan as well.
17690
17691 2011-06-27  Tristan Gingold  <gingold@adacore.com>
17692
17693         PR target/44241
17694         * config/vms/vms-protos.h: New file.
17695         * config/vms/vms-crtlmap.map: New file.
17696         * config/vms/vms.c: New file.
17697         * config/vms/make-crtlmap.awk: New file.
17698         * config/vms/vms-crtl.h: File removed.
17699         * config/vms/vms-crtl-64.h: File removed.
17700         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
17701         * config/alpha/vms64.h: Do not include vms-crtl-64.h
17702         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
17703         clear some builtins on VMS.  Calls vms_patch_builtins.
17704         (avms_asm_output_external): Remove.
17705         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
17706         (struct crtl_name_spec): Remove
17707         (DO_CTRL_NAMES): Remove.
17708         * config/ia64/vms.h (struct crtl_name_spec): Remove
17709         (DO_CTRL_NAMES): Remove.
17710         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
17711         clear some builtins on VMS.  Calls vms_patch_builtins.
17712         (ia64_asm_output_external): Remove DO_CRTL_NAME.
17713         * config/ia64/vms64.h: Do not include vms-crtl-64.h
17714         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
17715
17716 2011-06-27  Tristan Gingold  <gingold@adacore.com>
17717
17718         * config/alpha/alpha.c (alpha_end_function): Always generate .end
17719         directive on VMS.
17720
17721 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
17722
17723         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
17724         the function receives nonlocal gotos.
17725
17726 2011-06-27  Richard Guenther  <rguenther@suse.de>
17727
17728         PR tree-optimization/49536
17729         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
17730         For non-scalar inner types use a scalar type according to
17731         the scalar inner mode.
17732
17733 2011-06-27  Richard Guenther  <rguenther@suse.de>
17734
17735         PR tree-optimization/49365
17736         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
17737
17738 2011-06-27  Richard Guenther  <rguenther@suse.de>
17739
17740         PR tree-optimization/49169
17741         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
17742         the alignment of function decls.
17743
17744 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
17745
17746         PR target/47997
17747         * config/darwin.c (darwin_mergeable_string_section): Place string
17748         constants in '.cstring' rather than '.const' when CF/NSStrings are
17749         active.
17750
17751 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
17752
17753         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
17754         (emit_save_register_window): Likewise.
17755         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
17756         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
17757         Swap back %o7/%i7 in register naming.
17758
17759 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
17760
17761         PR driver/49371
17762         * config/darwin.c (darwin_override_options): Improve warning when
17763         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
17764         is given with fpie/fPIE.
17765         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
17766         * config/darwin9.h (PIE_SPEC): New.
17767
17768 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
17769
17770         * timevar.c (timevar_print): Increase width for display of timevar
17771         name.
17772
17773 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
17774
17775         PR c++/46400
17776         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
17777         instead of TYPE_CHAIN for chain_next for types.
17778
17779 2011-06-24  Richard Henderson  <rth@redhat.com>
17780
17781         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
17782         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
17783         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
17784         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
17785         (sparc_flat_expand_prologue): Emit individual instructions
17786         instead of one of the above.
17787
17788 2011-06-24  Easwaran Raman  <eraman@google.com>
17789
17790         PR rtl-optimization/49429
17791         PR target/49454
17792         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
17793         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
17794         used to copy y into x.
17795         * calls.c (initialize_argument_information): Mark
17796         an argument addressable if it is passed by invisible reference.
17797         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
17798         if it is passed by reference.
17799
17800 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17801
17802         PR rtl-optimization/49504
17803         * rtlanal.c (nonzero_bits1): Properly handle addition or
17804         subtraction of a pointer in Pmode if pointers extend unsigned.
17805         (num_sign_bit_copies1): Likewise.
17806
17807 2011-06-24  Martin Jambor  <mjambor@suse.cz>
17808
17809         PR tree-optimizations/49516
17810         * tree-sra.c (sra_modify_assign): Choose the safe path for
17811         aggregate copies if we also did scalar replacements.
17812
17813 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17814
17815         PR target/49335
17816         * config/arm/predicates.md (add_operator): New.
17817         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
17818
17819 2011-06-24  Andi Kleen  <ak@linux.intel.com>
17820
17821         * tree-sra.c (type_internals_preclude_sra_p): Add msg
17822         parameter. Split up ifs and report reason in *msg.
17823         (reject): Add.
17824         (find_var_candiate): Add msg variable.
17825         Split up ifs and report reason to reject.
17826         (find_param_candidates): Add msg variable.
17827         Pass msg to type_internals_preclude_sra_p.
17828
17829 2011-06-23  Jeff Law  <law@redhat.com>
17830
17831         PR middle-end/48770
17832         * reload.h (reload): Change to return a bool.
17833         * ira.c (ira): If requested by reload, run a fast DCE pass after
17834         reload has completed.  Fix comment typo.
17835         * reload1.c (need_dce): New file scoped static.
17836         (reload): Set reload_completed here.  Return whether or not a DCE
17837         pass after reload is needed.
17838         (delete_dead_insn): Set need_dce as needed.
17839
17840         PR middle-end/49465
17841         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
17842         to detect threading through joiner block.  If there was already
17843         an edge to the new target, then do not change the PHI nodes.
17844
17845 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
17846
17847         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
17848         get_pointer_alignment to see if base isn't sufficiently aligned.
17849
17850 2011-06-23  Jan Hubicka  <jh@suse.cz>
17851
17852         PR tree-optimize/49373
17853         * tree-pass.h (all_late_ipa_passes): Declare.
17854         * cgraphunit.c (init_lowered_empty_function): Fix properties.
17855         (cgraph_optimize): Execute late passes; remove unreachable funcions
17856         after materialization.
17857         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
17858         LTOing.
17859         * passes.c (all_late_ipa_passes): Declare.
17860         (dump_passes, register_pass): Handle late ipa passes.
17861         (init_optimization_passes): Move ipa_pta to late passes; schedule
17862         fixup_cfg at beggining of all_passes.
17863         (apply_ipa_transforms): New function.
17864         (execute_one_pass): When doing simple ipa pass, apply all transforms.
17865
17866 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
17867
17868         * params.c: Include common/common-target.h.  Don't include tm.h.
17869         (lang_independent_params): Move from toplev.c.
17870         (global_init_params): New.
17871         * params.h (global_init_params): Declare.
17872         * target.def (default_params): Move to common-target.def.
17873         * toplev.c (lang_independent_options): Remove.
17874         (lang_independent_params): Move to params.c.
17875         (general_init): Use global_init_params.
17876         * common/common-target.def (option_default_params): Move from
17877         target.def.
17878         * common/config/ia64/ia64-common.c: Include params.h.
17879         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17880         from ia64.c.
17881         * common/config/rs6000/rs6000-common.c: Include params.h.
17882         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17883         from rs6000.c.
17884         * common/config/sh/sh-common.c: Include params.h.
17885         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17886         from sh.c.
17887         * common/config/spu/spu-common.c: Include params.h.
17888         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17889         from spu.c.
17890         * config/ia64/ia64.c (ia64_option_default_params,
17891         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
17892         * config/rs6000/rs6000.c (rs6000_option_default_params,
17893         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
17894         * config/sh/sh.c (sh_option_default_params,
17895         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
17896         * config/spu/spu.c (spu_option_default_params,
17897         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
17898         * Makefile.in (OBJS): Remove params.o.
17899         (OBJS-libcommon-target): Add params.o.
17900         (params.o, $(common_out_object_file)): Update dependencies.
17901         * doc/tm.texi: Regenerate.
17902
17903 2011-06-23  Alan Modra  <amodra@gmail.com>
17904
17905         PR bootstrap/49383
17906         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
17907         invocation for 2011-06-09 changes.
17908
17909 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
17910
17911         PR libgomp/49490
17912         * omp-low.c (expand_omp_for_static_nochunk): Only
17913         use n ceil/ nthreads size for the first n % nthreads threads in the
17914         team instead of all threads except for the last few ones which
17915         get less work or none at all.
17916
17917         PR debug/49496
17918         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
17919         uses.
17920
17921 2011-06-22  Richard Guenther  <rguenther@suse.de>
17922
17923         PR tree-optimization/49493
17924         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
17925         Refer to the alias target of variables.
17926         (associate_varinfo_to_alias_1): Remove.
17927         (ipa_pta_execute): Do not associate aliases with anything.
17928         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
17929         (cgraph_function_node): Likewise.
17930         (cgraph_function_or_thunk_node): Likewise.
17931         (varpool_variable_node): Likewise.
17932
17933 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
17934
17935         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
17936         * config.gcc (arm*-*-linux*): Default to gnu tls.
17937         (arm*-*-*): Add --with-tls option.
17938         (all_defaults): Add 'tls'.
17939
17940 2011-06-22  Richard Henderson  <rth@redhat.com>
17941
17942         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
17943         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
17944         (dwarf2out_frame_debug_cfa_window_save): Rename from
17945         dwarf2out_window_save; make static.
17946         * tree.h (dwarf2out_window_save): Don't declare.
17947
17948         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
17949         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
17950         (emit_save_register_window): Rename from gen_save_register_window;
17951         emit the insn and add REG_CFA_* notes.
17952         (sparc_expand_prologue): Update to match.
17953         * config/sparc/sparc.md (save_register_window_1): Simplify from
17954         save_register_window<P:mode>.
17955
17956 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17957
17958         PR target/49497
17959         * config/i386/i386.md (*lea_general_2): Always allow SImode.
17960         (*lea_general_2_zext): Likewise.
17961         (imul to lea peepholes): Use const359_operand and check
17962         TARGET_PARTIAL_REG_STALL.
17963
17964         * config/i386/predicates.md (const359_operand): New.
17965
17966 2011-06-22  Michael Matz  <matz@suse.de>
17967
17968         * cgraphunit.c (assemble_thunk): Use correct return type.
17969
17970 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
17971             Dmitry Melnik  <dm@ispras.ru>
17972
17973         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
17974         (neon_output_shift_immediate): Ditto.
17975         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
17976         prototype.
17977         (neon_output_shift_immediate): Ditto.
17978         * config/arm/neon.md (vashl<mode>3): Modified constraint.
17979         (vashr<mode>3_imm): New insn pattern.
17980         (vlshr<mode>3_imm): Ditto.
17981         (vashr<mode>3): Modified constraint.
17982         (vlshr<mode>3): Ditto.
17983         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
17984         predicate.
17985         (imm_for_neon_rshift_operand): Ditto.
17986         (imm_lshift_or_reg_neon): Ditto.
17987         (imm_rshift_or_reg_neon): Ditto.
17988
17989         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
17990
17991 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
17992
17993         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
17994         builtin calls even if likelyvalue is not CONSTANT.
17995         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
17996         Return get_value_for_expr of first operand
17997         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
17998         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17999         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
18000         their non-checking counterparts.
18001         (call_may_clobber_ref_p_1): Likewise.
18002         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
18003         like their non-checking counterparts.
18004         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18005         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
18006         like their non-checking counterparts.
18007         (find_func_clobbers): Likewise.
18008         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
18009         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
18010
18011         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
18012         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
18013         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
18014         of base type reference as argument.
18015         (resolve_addr_in_expr): Likewise.  Fix keep computation.
18016         (convert_descriptor_to_signed): Renamed to...
18017         (convert_descriptor_to_mode): ... this.  For wider types convert to
18018         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
18019         (typed_binop): New function.
18020         (scompare_loc_descriptor, ucompare_loc_descriptor,
18021         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
18022         default to unsigned type instead of signed.
18023
18024         PR debug/47858
18025         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
18026         (gimple_build_debug_source_bind_stat): New prototype.
18027         (gimple_build_debug_source_bind): Define.
18028         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
18029         gimple_debug_source_bind_get_value,
18030         gimple_debug_source_bind_get_value_ptr,
18031         gimple_debug_source_bind_set_var,
18032         gimple_debug_source_bind_set_value): New inlines.
18033         * gimple.c (gimple_build_debug_source_bind_stat): New function.
18034         * gimple-pretty-print.c (dump_gimple_debug): Handle
18035         GIMPLE_DEBUG_SOURCE_BIND.
18036         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
18037         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18038         * tree-parloops.c (eliminate_local_variables,
18039         separate_decls_in_region): Likewise.
18040         (separate_decls_in_region_debug): Renamed from
18041         separate_decls_in_region_debug_bind.  Handle
18042         gimple_debug_source_bind_p.
18043         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
18044         prototypes.
18045         (DECL_HAS_DEBUG_ARGS_P): Define.
18046         (struct tree_function_decl): Add has_debug_args_flag field.
18047         * tree.c (debug_args_for_decl): New variable.
18048         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
18049         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
18050         (rewrite_debug_stmt_uses): New function.
18051         (rewrite_stmt): Use it to rewrite debug stmt uses.
18052         * rtl.def (DEBUG_PARAMETER_REF): New.
18053         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
18054         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
18055         DEBUG_PARAMETER_REF.
18056         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
18057         * print-rtl.c (print_rtx): Likewise.
18058         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
18059         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
18060         debug stmts in the first bb.
18061         * tree-inline.c (remap_ssa_name): If remapping default def
18062         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
18063         a source bind debug stmt.
18064         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
18065         (maybe_move_debug_stmts_to_successors): Likewise.
18066         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
18067         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
18068         debug args vector from old_decl to new_decl.
18069         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
18070         or modified parameters, add debug bind stmts before call
18071         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
18072         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
18073         on DECL_DEBUG_EXPRs from debug args vector.
18074         (expand_debug_source_expr): New function.
18075         (expand_debug_locations): Use it for source bind insns.
18076         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
18077         * var-tracking.c (prepare_call_arguments): Add debug args
18078         to call_arguments if any.
18079         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
18080         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
18081         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
18082         (get_ref_die_offset, parameter_ref_descriptor): New functions.
18083         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
18084         (gen_subprogram_die): Handle parameters identified by
18085         DEBUG_PARAMETER_REF.
18086
18087 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
18088
18089         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
18090         * doc/install.texi (Configuration): Document --with-tls.
18091         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
18092         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
18093         (arm_tls_descseq_addr): New.
18094         (legitimize_tls_address): Add tlsdesc support.
18095         (arm_cannot_copy_insn_p): Check for tlscall.
18096         (arm_emit_tls_decoration): Likewise.
18097         * config/arm/arm.h (TARGET_GNU2_TLS): New.
18098         (OPTION_DEFAULT_SPECS): Add with-tls support.
18099         * config/arm/arm.md (R1_REGNUM): Define.
18100         (tlscall): New.
18101         * config/arm/arm.opt (tls_type): New enumeration type and values.
18102         (mtls-dialect): New switch.
18103         * config/arm/arm-opts.h (enum tls_type): New.
18104
18105 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
18106
18107         * attribs.c (register_attribute): Added assert to check that all
18108         attribute specs are registered with a name that is not empty and
18109         does not start with '_'.
18110         (decl_attributes): Avoid the lookup of the "naked" attribute spec
18111         if the function has no attributes.
18112         * tree.c (is_attribute_with_length_p): Removed.
18113         (is_attribute_p): Removed.
18114         (private_is_attribute_p): New.
18115         (private_lookup_attribute): New.
18116         (lookup_attribute): Removed.
18117         (lookup_ident_attribute): New.
18118         (remove_attribute): Require the first argument to be in the form
18119         'text', not '__text__'.  Updated asserts.
18120         (merge_attributes): Use lookup_ident_attributes instead of
18121         lookup_attribute.
18122         (merge_dllimport_decl_attributes): Use remove_attribute.
18123         (attribute_list_contained): Likewise.
18124         (attribute_list_equal): Immediately return 1 if the arguments are
18125         identical pointers.
18126         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
18127         'int'.  Require the first argument to be in the form 'text', not
18128         '__text__'.  Require the second argument to be an identifier.
18129         (lookup_attribute): Made inline.  Require the first argument to be
18130         in the form 'text', not '__text__'.
18131         (private_is_attribute_p, private_lookup_attribute): New.
18132         Updated comments.
18133
18134 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
18135
18136         * builtins.c: Add sync_ or SYNC__ to builtin names.
18137         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
18138         * omp-low.c: Add sync_ or SYNC__ to builtin names.
18139
18140 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
18141
18142         PR target/33049
18143         * config/avr/avr.md (extzv): New expander.
18144         (*extzv): New insn.
18145         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
18146         * config/avr/constraints.md (C04): New constraint.
18147         * doc/md.texi (Machine Constraints): Document it.
18148
18149 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
18150
18151         PR middle-end/49489
18152         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
18153         unsignedp argument instead of 1 for clrsb_optab.
18154         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
18155         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
18156         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
18157         * optabs.c (widen_leading): Call widen_operand and expand_unop
18158         with 0 as unsignedp argument instead of 1 for clrsb_optab.
18159         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
18160
18161 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
18162
18163         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
18164
18165 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
18166
18167         * gensupport.c (add_define_attr): New static function.
18168         (is_predicable): Allow multi-alternative lists for the "predicable"
18169         attribute.
18170         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
18171         (process_one_cond_exec): Call alter_attrs_for_insn.
18172         * doc/md.texi (Defining Attributes): Mention some standard names.
18173         (Conditional Execution): Update documentation for "predicable".
18174
18175         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
18176         __builtin_clrsbll): Document.
18177         * doc/rtl.texi (clrsb): New entry.
18178         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
18179         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
18180         (expand_unop): Handle clrsb_optab.
18181         (init_optabs): Initialize it.
18182         * optabs.h (enum optab_index): New entry OTI_clrsb.
18183         (clrsb_optab): Define.
18184         * genopinit.c (optabs): Add an entry for it.
18185         * builtins.c (expand_builtin): Handle clrsb builtin functions.
18186         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
18187         BUILT_IN_CLRSBLL): New.
18188         * rtl.def (CLRSB): New code.
18189         * dwarf2out.c (mem_loc_descriptor): Handle it.
18190         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
18191         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
18192         and popcount.
18193         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
18194         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
18195         (__ctzDI2): Move declaration.
18196         * config/bfin/bfin.md (clrsbsi2): New expander.
18197         (signbitssi2): Use the CLRSB rtx.
18198         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
18199         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
18200
18201 2011-06-21  Richard Guenther  <rguenther@suse.de>
18202
18203         * ipa-inline-transform.c (inline_transform): Fix previous change.
18204
18205 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
18206
18207         PR tree-optimization/49478
18208         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
18209         with constant operand.
18210
18211 2011-06-21  Richard Guenther  <rguenther@suse.de>
18212
18213         * ipa-inline-transform.c (inline_transform): Fix typo.
18214
18215 2011-06-21  Richard Guenther  <rguenther@suse.de>
18216
18217         PR tree-optimization/49483
18218         * tree-vect-stmts.c (vectorizable_assignment): Also handle
18219         VIEW_CONVERT_EXPR conversions.
18220
18221 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
18222
18223         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
18224         * config/avr/avr-tables.opt: New file (generated).
18225         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
18226         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
18227         avr-mcus.def.
18228         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
18229         (avr_option_override): Don't process -mmcu= argument here.  Set
18230         avr_current_device using avr_mcu_index.
18231         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
18232         * config/avr/avr.opt (mmcu=): Use Enum.
18233         * config/avr/t-avr (avr-devices.o): Update dependencies.
18234         ($(srcdir)/config/avr/avr-tables.opt): New.
18235         * target.def (help): Remove.
18236         * doc/tm.texi.in (TARGET_HELP): Remove.
18237         * doc/tm.texi: Regenerate.
18238         * opts.c: Don't include target.h.
18239         (common_handle_option): Don't call targetm.help.
18240         * system.h (TARGET_HELP): Poison.
18241         * Makefile.in (opts.o): Update dependencies.
18242
18243 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18244
18245         * config/usegld.h: New file.
18246         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
18247         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
18248         (LIB_SPEC): Likewise.  Search /lib.
18249         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
18250         (RDYNAMIC_SPEC): Handle GNU ld.
18251         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
18252         Define.
18253         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
18254         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
18255         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
18256         (STACK_CHECK_STATIC_BUILTIN): Define.
18257         * config/sol2.opt (compat-bsd): Remove.
18258         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
18259         * config/sol2-bi.h: New file.
18260         * config/sol2-gld.h: Remove.
18261         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
18262         (NO_DBX_BNSYM_ENSYM): Remove.
18263         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
18264         (STACK_CHECK_STATIC_BUILTIN): Remove.
18265         Test USE_GLD instead of TARGET_GNU_LD.
18266         * config/i386/sol2-10.h: Rename to ...
18267         * config/i386/sol2-bi.h .. this.
18268         (SUBTARGET_EXTRA_SPECS): Redefine.
18269         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
18270         (MULTILIB_DEFAULTS): Remove.
18271         (DEFAULT_ARCH32_P): Define.
18272         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
18273         (ARCH64_SUBDIR): Define.
18274         Test USE_GLD instead of TARGET_GNU_LD.
18275         (I386_EMULATION): Rename to ...
18276         (ARCH32_EMULATION): ... this.
18277         (X86_64_EMULATION): Rename to ...
18278         (ARCH64_EMULATION): ... this.
18279         (TARGET_LD_EMULATION): Remove.
18280         (LINK_ARCH_SPEC): Remove.
18281         * config/i386/sol2-gas.h: Remove.
18282         * config/i386/t-sol2-10: Rename to ...
18283         * config/i386/t-sol2-64: ... this.
18284         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
18285         (AS_SPARC64_FLAG): Define.
18286         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
18287         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
18288         depending on TARGET_CPU_DEFAULT.
18289         (CPP_CPU_SPEC): Redefine.
18290         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
18291         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
18292         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
18293         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
18294         ASM_ARCH_DEFAULT_SPEC): Redefine.
18295         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18296         LINK_ARCH_DEFAULT_SPEC.
18297         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
18298         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
18299         (ARCH64_SUBDIR): Define.
18300         (LINK_ARCH64_SPEC): Redefine.
18301         (CC1_SPEC): Redefine.
18302         (OPTION_DEFAULT_SPECS): Redefine.
18303         (MULTILIB_DEFAULTS): Define.
18304         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
18305         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
18306         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
18307         (NO_DBX_BNSYM_ENSYM): Remove.
18308         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
18309         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
18310         (TARGET_ASM_NAMED_SECTION): Likewise.
18311         (STACK_CHECK_STATIC_BUILTIN): Remove.
18312         * config/sparc/sol2-bi.h: Remove.
18313         * config/sparc/sol2-gas-bi.h: Remove.
18314         * config/sparc/sol2-gas.h: Remove.
18315         * config/sparc/sol2-gld-bi.h: Remove.
18316         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
18317         common parts ...
18318         (*-*-solaris2*): ... here.
18319
18320 2011-06-21  Christian Bruel  <christian.bruel@st.com>
18321
18322         PR other/43564
18323         * ipa-inline.c (can_inline_edge_p): Check
18324         !DECL_DISREGARD_INLINE_LIMITS.
18325
18326 2011-06-21  Christian Bruel  <christian.bruel@st.com>
18327
18328         PR middle-end/49139
18329         * cgraphunit.c (process_function_and_variable_attributes): warn when
18330         always_inline functions that are not inline.
18331         * ipa-inline-transform.c (inline_transform): Always call
18332         optimize_inline.
18333         * tree-inline.c (tree_inlinable_function_p): Use error instead
18334         of sorry.
18335         (expand_call_inline): Likewise.
18336
18337 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
18338
18339         * Makefile.in (dg_target_exps): Set.
18340         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
18341         instead of 7, try to divide it more evenly.
18342
18343 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
18344
18345         PR target/49089
18346         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
18347         (avx256_split_unaligned_store): New definition.
18348         (ix86_option_override_internal): Enable avx256 unaligned load/store
18349         splitting only when avx256_split_unaligned_load/store is set.
18350
18351 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
18352
18353         * regrename.c (scan_rtx_reg): Handle the case where we write to an
18354         open chain in a smaller mode without failing the entire block.
18355
18356 2011-06-21  Alan Modra  <amodra@gmail.com>
18357
18358         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
18359         CONST high part large-toc address.
18360         (rs6000_tls_referenced_p): Make static.
18361         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
18362
18363 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18364
18365         PR target/49385
18366         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
18367         one of the operands is a register.
18368
18369 2011-06-20  Kai Tietz  <ktietz@redhat.com>
18370
18371         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
18372         operations in combination with binary and.
18373
18374 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
18375
18376         * regrename.c (do_replace): Don't update notes.
18377
18378 2011-06-20  Alan Modra  <amodra@gmail.com>
18379
18380         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
18381         of toc-relative address in CONST.
18382         (rs6000_delegitimize_address): Recognize changed address.
18383         (rs6000_legitimize_reload_address): Likewise.
18384         (rs6000_emit_move): Don't force these constants to memory.
18385         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
18386         toc-relative address in CONST.
18387         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
18388         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
18389
18390 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18391
18392         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
18393         (count_trailing_zeros): Likewise.
18394
18395 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18396
18397         PR other/49325
18398         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
18399         .init_array can be used with .ctors on targets.
18400         * configure: Regenerated.
18401
18402 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
18403
18404         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
18405         if the element type is volatile.
18406
18407 2011-06-18  Jan Hubicka  <jh@suse.cz>
18408
18409         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
18410         extra name aliases.
18411         (lto_symtab_resolve_can_prevail_p): Likewise.
18412         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
18413         * cgraphbuild.c (record_reference): Remove extra body alias code.
18414         (mark_load): Likewise.
18415         (mark_store): Likewise.
18416         * cgraph.h (varpool_node): Remove extra_name filed;
18417         add alias_of and extraname_alias.
18418         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
18419         (varpool_alias_aliased_node): New inline function.
18420         (varpool_variable_node): New function.
18421         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
18422         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
18423         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
18424         (input_varpool_node): Likewise.
18425         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
18426         (varpool_externally_visible_p): Remove extra body alias code.
18427         (function_and_variable_visibility): Likewise.
18428         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
18429         (ipa_pta_execute): Use it.
18430         * varpool.c (varpool_remove_node): Remove extra name alias code.
18431         (varpool_mark_needed_node): Likewise.
18432         (varpool_analyze_pending_decls): Analyze aliases.
18433         (assemble_aliases): New functoin.
18434         (varpool_assemble_decl): Use it.
18435         (varpool_create_variable_alias): New function.
18436         (varpool_extra_name_alias): Rewrite.
18437         (varpool_for_node_and_aliases): New function.
18438
18439 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
18440
18441         PR target/49411
18442         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
18443         last_arg_constant and last argument doesn't match its predicate,
18444         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
18445         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
18446         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
18447         spelling of error message.
18448         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
18449         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
18450         const_0_to_255_operand instead of const_int_operand.
18451
18452         Revert:
18453         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18454
18455         * config/i386/sse.md (blendbits): Remove mode attribute.
18456         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
18457         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
18458         Check integer value of operand 3 in insn constraint.
18459
18460 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
18461
18462         PR rtl-optimization/48542
18463         * reload.c (find_equiv_reg): Stop looking when finding a
18464         setjmp-type call.
18465         * reload1.c (reload_as_needed): Invalidate all reload
18466         registers when crossing a setjmp-type call.
18467
18468 2011-06-16  Jeff Law  <law@redhat.com>
18469
18470         * tree-ssa-threadupdate.c (struct redirection_data): New field
18471         intermediate_edge.
18472         (THREAD_TARGET2): Define.
18473         (redirection_data_eq): Also check that the intermediate edge is equal.
18474         (lookup_redirection_data): Drop useless argument.  Extract the
18475         outgoing_edge and intermediate edge from E.  Callers updated.
18476         (copy_phi_args, update_destination_phis): New functions.
18477         (fix_duplicate_block_edges): Likewise.
18478         (create_edge_and_update_destination_phis): Duplicate all the edges
18479         hung off e->aux.  Use copy_phi_args.
18480         (create_duplicates): Use fix_duplicate_block_edges.
18481         (fixup_template_block): Likewise.
18482         (redirect_edges): If necessary, redirect the joiner block's incoming
18483         edge to the duplicate of the joiner block.
18484         (thread_block): Don't muck up loops when threading through a joiner
18485         block.
18486         (thread_through_loop_header): Handle threading through a joiner block.
18487         (mark_threaded_blocks, register_jump_thread): Likewise.
18488         * tree-flow.h (register_jump_thread): Add new argument.  Callers
18489         updated.
18490         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
18491         (thread_across_edge): Handle threading through a joiner block.
18492
18493 2011-06-16  Martin Jambor  <mjambor@suse.cz>
18494
18495         PR tree-optimization/49343
18496         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
18497         calculate offset, provide 2nd operand for the new COMPONENT_REF.
18498
18499 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
18500
18501         * config/darwin-protos.h (machopic_select_rtx_section): Move to
18502         inside RTX_CODE ifdef.
18503
18504 2011-06-16  Tom de Vries  <tom@codesourcery.com>
18505
18506         PR target/45098
18507         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
18508         Disallow NULL pointer for pointer arithmetic.
18509
18510 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18511
18512         PR target/49398
18513         Revert.
18514         2011-06-10  Wei Guozhi  <carrot@google.com>
18515
18516         PR target/45335
18517         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
18518         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
18519         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
18520         related peephole2.
18521         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
18522         related peephole2.
18523         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
18524         (arm_legitimate_ldrd_p): New prototype.
18525         (arm_output_ldrd): New prototype.
18526         * config/arm/arm.c (arm_check_ldrd_operands): New function.
18527         (arm_legitimate_ldrd_p): New function.
18528         (arm_output_ldrd): New function.
18529
18530 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
18531
18532         PR middle-end/46500
18533         * doc/tm.texi.in: Update Copyright date.
18534         * doc/tm.texi: Regenerate.
18535         * targhooks.c (default_setup_incoming_varargs): Replace
18536         CUMULATIVE_ARGS* argument type with cumulative_args_t.
18537         (default_pretend_outgoing_varargs_named): Likewise.
18538         (hook_pass_by_reference_must_pass_in_stack): Likewise.
18539         (hook_callee_copies_named): Likewise.
18540         (default_function_arg_advance): Likewise.
18541         (default_function_arg): Likewise.
18542         (default_function_incoming_arg): Likewise.
18543         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
18544         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
18545         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
18546         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
18547         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
18548         * targhooks.h (default_setup_incoming_varargs): Likewise.
18549         (default_pretend_outgoing_varargs_named): Likewise.
18550         (hook_pass_by_reference_must_pass_in_stack): Likewise.
18551         (hook_callee_copies_named): Likewise.
18552         (default_function_arg_advance): Likewise.
18553         (default_function_arg): Likewise.
18554         (default_function_incoming_arg): Likewise.
18555         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
18556         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
18557         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
18558         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
18559         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
18560         * target.def (pass_by_reference): Likewise.
18561         (setup_incoming_varargs, strict_argument_naming): Likewise.
18562         (pretend_outgoing_varargs_named, callee_copies): Likewise.
18563         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
18564         (function_incoming_arg): Likewise.
18565         * target.h: Don't include "tm.h" .
18566         (cumulative_args_t): New typedef.
18567         [GCC_TM_H] (get_cumulative_args): New static inline function.
18568         [GCC_TM_H] (pack_cumulative_args): Likewise.
18569         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
18570         argument type with cumulative_args_t.
18571         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
18572         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
18573         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
18574         (frv_arg_partial_bytes, frv_function_arg): Likewise.
18575         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
18576         (frv_function_arg_1): Likewise.
18577         * config/s390/s390.c (s390_pass_by_reference): Likewise.
18578         (s390_function_arg_advance, s390_function_arg): Likewise.
18579         * config/m32c/m32c.c (m32c_function_arg): Likewise.
18580         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
18581         (m32c_strict_argument_naming): Likewise.
18582         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
18583         (spu_function_arg_advance): Likewise.
18584         (spu_setup_incoming_varargs): Likewise.  Make static.
18585         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
18586         Remove prototype.
18587         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
18588         CUMULATIVE_ARGS* argument type with cumulative_args_t.
18589         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
18590         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
18591         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
18592         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
18593         (mep_pass_by_reference, mep_function_arg): Likewise.
18594         (mep_function_arg_advance): Likewise.
18595         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
18596         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
18597         (m32r_function_arg, m32r_function_arg_advance): Likewise.
18598         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
18599         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
18600         (ix86_function_arg, ix86_pass_by_reference): Likewise.
18601         (ix86_setup_incoming_varargs): Likewise.
18602         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
18603         (sh_strict_argument_naming): Likewise.
18604         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
18605         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
18606         (sh_function_arg_advance, sh_function_arg): Likewise.
18607         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
18608         (pdp11_function_arg_advance): Likewise.
18609         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
18610         Likewise.
18611         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
18612         * config/avr/avr.c (avr_function_arg): Likewise.
18613         (avr_function_arg_advance): Likewise.
18614         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
18615         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
18616         (xtensa_function_arg_1): Likewise.
18617         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
18618         Likewise.
18619         (xstormy16_function_arg): Likewise.
18620         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
18621         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
18622         (fr30_function_arg_advance): Likewise.
18623         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
18624         (lm32_function_arg, lm32_function_arg_advance): Likewise.
18625         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
18626         (moxie_function_arg, moxie_function_arg_advance): Likewise.
18627         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
18628         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
18629         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
18630         (cris_function_arg, cris_function_incoming_arg): Likewise.
18631         (cris_function_arg_advance, cris_function_arg_1): Likewise.
18632         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
18633         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
18634         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
18635         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
18636         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
18637         (mn10300_arg_partial_bytes): Likewise.
18638         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
18639         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
18640         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
18641         (ia64_function_arg_1): Likewise.
18642         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
18643         (m68k_function_arg): Likewise.
18644         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
18645         (rs6000_function_arg, setup_incoming_varargs): Likewise.
18646         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
18647         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
18648         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
18649         (picochip_arg_advance): Likewise.
18650         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
18651         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
18652         (mcore_function_arg_advance): Likewise.
18653         * config/score/score.c (score_pass_by_reference): Likewise.
18654         (score_function_arg_advance): Likewise.
18655         (score_arg_partial_bytes): Likewise.  Make static.
18656         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
18657         * config/arm/arm.c (arm_arg_partial_bytes): Replace
18658         CUMULATIVE_ARGS* argument type with cumulative_args_t.
18659         (arm_function_arg, arm_function_arg_advance): Likewise.
18660         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
18661         * config/pa/pa.c (pa_pass_by_reference): Likewise.
18662         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
18663         (pa_function_arg): Likewise.
18664         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
18665         (mips_function_arg, mips_function_arg_advance): Likewise.
18666         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
18667         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
18668         * config/vax/vax.c (vax_function_arg): Likewise.
18669         (vax_function_arg_advance): Likewise.
18670         * config/h8300/h8300.c (h8300_function_arg): Likewise.
18671         (h8300_function_arg_advance): Likewise.
18672         * config/v850/v850.c (v850_pass_by_reference): Likewise.
18673         (v850_strict_argument_naming, v850_function_arg): Likewise.
18674         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
18675         (v850_setup_incoming_varargs): Likewise.
18676         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
18677         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
18678         (mmix_function_arg, mmix_pass_by_reference): Likewise.
18679         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
18680         with const void *.
18681         * config/bfin/bfin.c (setup_incoming_varargs): Replace
18682         CUMULATIVE_ARGS* argument type with cumulative_args_t.
18683         (bfin_function_arg_advance, bfin_function_arg): Likewise.
18684         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
18685         * calls.c (emit_call_1): Change type of args_so_far to
18686         cumulative_args_t.  Changed all callers.
18687         (initialize_argument_information): Likewise.
18688         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
18689         * dse.c (get_call_args): Likewise.
18690         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
18691         * function.c (pass_by_reference, reference_callee_copied): Likewise.
18692         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
18693         New member args_so_far_v.  Changed all users.
18694         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
18695         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
18696         * config/mips/mips.c (mips_output_args_xfer): Likewise.
18697         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
18698         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18699         * config/microblaze/microblaze.c (microblaze_expand_prologue):
18700         Likewise.
18701         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
18702         m32r_pass_by_reference.
18703
18704 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
18705
18706         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
18707         argument to be a VEC of statements.
18708         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
18709         assert that pattern statements have to have their vector type set.
18710         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
18711         Change the first argument to be a VEC of statements.  Update
18712         documentation.
18713         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
18714         (vect_handle_widen_mult_by_const): New function.
18715         (vect_recog_widen_mult_pattern):  Change the first argument to be a
18716         VEC of statements.  Update documentation.  Check that the constant is
18717         INTEGER_CST.  Support multiplication by a constant that fits an
18718         intermediate type - call vect_handle_widen_mult_by_const.
18719         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
18720         call.  Handle additional pattern statements if necessary.
18721
18722 2011-06-16  Nick Clifton  <nickc@redhat.com>
18723
18724         PR target/49427
18725         * config.gcc: Set cpu_type to v850 for any V850 architecture.
18726         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
18727         md_file, extra_modes, out_file and extra_options are these are all
18728         deduced from cpu_type.
18729
18730 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
18731
18732         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
18733         truncation mask to 63.
18734
18735 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
18736
18737         PR target/49313
18738         PR target/29524
18739         * longlong.h: Add AVR support:
18740         (count_leading_zeros): New macro.
18741         (count_trailing_zeros): New macro.
18742         (COUNT_LEADING_ZEROS_0): New macro.
18743         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
18744         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
18745         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
18746         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
18747         (LIB2FUNCS_EXCLUDE): Add _clz.
18748         * config/avr/libgcc.S (XCALL): Move up in file.
18749         (XJMP): New C Macro.
18750         (DEFUN): New asm macro.
18751         (ENDF): New asm macro.
18752         (__ffssi2): New function.
18753         (__ffshi2): New function.
18754         (__loop_ffsqi2): New function.
18755         (__ctzsi2): New function.
18756         (__ctzhi2): New function.
18757         (__clzdi2): New function.
18758         (__clzsi2): New function.
18759         (__clzhi2): New function.
18760         (__paritydi2): New function.
18761         (__paritysi2): New function.
18762         (__parityhi2): New function.
18763         (__parityqi2): New function.
18764         (__popcounthi2): New function.
18765         (__popcountsi2): New function.
18766         (__popcountdi2): New function.
18767         (__popcountqi2): New function.
18768         (__bswapsi2): New function.
18769         (__bswapdi2): New function.
18770         (__ashldi3): New function.
18771         (__ashrdi3): New function.
18772         (__lshrdi3): New function.
18773         Fix suspicous lines.
18774
18775 2011-06-16  Richard Guenther  <rguenther@suse.de>
18776
18777         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
18778         the same as x != 0.
18779         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
18780         to (bool) X & 1.
18781         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
18782         equality compares against zero for the lower bit.
18783
18784 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
18785
18786         PR tree-optimization/49419
18787         * tree-vrp.c (execute_vrp): Call init_range_assertions
18788         before estimate_numbers_of_iterations, call
18789         free_number_of_iterations_estimates before calling
18790         remove_range_assertions.
18791
18792 2011-06-16  Revital Eres  <revital.eres@linaro.org>
18793
18794         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
18795         (struct partial_schedule): Add rows_length field.
18796         (verify_partial_schedule): Check rows_length.
18797         (ps_insert_empty_row): Handle rows_length.
18798         (create_partial_schedule): Likewise.
18799         (free_partial_schedule): Likewise.
18800         (reset_partial_schedule): Likewise.
18801         (create_ps_insn): Remove rest_count argument.
18802         (remove_node_from_ps): Update rows_length.
18803         (add_node_to_ps): Update rows_length and call create_ps_insn
18804         without passing row_rest_count.
18805         (rotate_partial_schedule): Update rows_length.
18806
18807 2011-06-16  Revital Eres  <revital.eres@linaro.org>
18808
18809         * ddg.c (add_intra_loop_mem_dep): New function.
18810         (build_intra_loop_deps): Call it.
18811
18812 2011-06-13  Jeff Law  <law@redhat.com>
18813
18814         * df-problems.c (df_lr_local_compute): Manually CSE
18815         PIC_OFFSET_TABLE_REGNUM.
18816         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
18817         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
18818
18819 2011-06-13  Jan Hubicka  <jh@suse.cz>
18820
18821         * cgraphunit.c (handle_alias_pairs): New function.
18822         (cgraph_finalize_compilation_unit): Use it.
18823         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
18824         as externally visible.
18825
18826 2011-06-15  Richard Guenther  <rguenther@suse.de>
18827
18828         * expr.c (expand_expr_real_2): Reduce all integral types to
18829         bitfield precision.
18830         (expand_expr_real_1): Likewise.
18831
18832 2011-06-15  Martin Jambor  <mjambor@suse.cz>
18833
18834         PR tree-optimization/48613
18835         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
18836         ipa_node_params_vector is NULL.
18837
18838 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
18839
18840         PR debug/49382
18841         * dwarf2out.c (dw_loc_list_node): Add force field.
18842         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
18843         location in the list, even if it is modified before first real insn.
18844         (output_loc_list): Emit empty ranges with force flag set.
18845         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
18846
18847 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
18848
18849         PR target/49349
18850         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
18851         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
18852         above a fence.  Update comments.
18853         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
18854         placed just above it.  Do not allow NULL place_to_insert.
18855
18856 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
18857
18858         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
18859         (slpeel_tree_peel_loop_to_edge): Don't call
18860         remove_dead_stmts_from_loop.
18861         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
18862         remove irrelevant pattern statements.  For irrelevant statements
18863         check if it is the last statement of a detected pattern, use
18864         corresponding pattern statement instead.
18865         (destroy_loop_vec_info): No need to remove pattern statements,
18866         only free stmt_vec_info.
18867         (vect_transform_loop): For irrelevant statements check if it is
18868         the last statement of a detected pattern, use corresponding
18869         pattern statement instead.
18870         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
18871         pattern statements.  Set basic block for the new statement.
18872         (vect_pattern_recog): Update documentation.
18873         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
18874         operands of pattern statements.
18875         (vectorizable_call): Fix printing.  In case of a pattern statement
18876         use the lhs of the original statement when creating a dummy
18877         statement to replace the original call.
18878         (vect_analyze_stmt): For irrelevant statements check if it is
18879         the last statement of a detected pattern, use corresponding
18880         pattern statement instead.
18881         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
18882         statements use gsi of the original statement.
18883
18884 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
18885
18886         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
18887         common/common-target-def.h.
18888         * target.def (default_target_flags, handle_option,
18889         supports_split_stack, optimization_table, init_struct,
18890         except_unwind_info, unwind_tables_default, have_named_sections):
18891         Move to common/common-target.def.
18892         * target.h (enum opt_levels, struct default_options): Move to
18893         common/common-target.h.
18894         * targhooks.c (default_except_unwind_info,
18895         dwarf2_except_unwind_info, sjlj_except_unwind_info,
18896         default_target_handle_option, empty_optimization_table): Move to
18897         common/common-targhooks.c.
18898         * targhooks.h (default_except_unwind_info,
18899         dwarf2_except_unwind_info, sjlj_except_unwind_info,
18900         default_target_handle_option, empty_optimization_table): Move to
18901         common/common-targhooks.h.
18902         * common/common-target-def.h: Include common/common-targhooks.h.
18903         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
18904         defined.
18905         * common/common-target.def (handle_option, option_init_struct,
18906         option_optimization_table, default_target_flags,
18907         except_unwind_info, supports_split_stack, unwind_tables_default,
18908         have_named_sections): Move from target.def.
18909         (HOOK_PREFIX): Undefine at end of file.
18910         * common/common-target.h: Include input.h.
18911         (enum opt_levels, struct default_options): Move from target.h.
18912         * common/common-targhooks.c, common/common-targhooks.h: New.
18913         * config.gcc (target_has_targetm_common): Default to yes.
18914         (moxie*): Set target_has_targetm_common=no.
18915         (hppa*-*-*): Don't set target_has_targetm_common=yes.
18916         * doc/tm.texi: Regenerate.
18917         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
18918         (C_TARGET_DEF_H): Add common/common-targhooks.h.
18919         (GCC_OBJS): Remove vec.o.
18920         (OBJS): Remove hooks.o and vec.o.
18921         (OBJS-libcommon-target): Add vec.o, hooks.o and
18922         common/common-targhooks.o.
18923         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
18924         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
18925         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
18926         cfglayout.o, $(out_object_file), $(common_out_object_file)):
18927         Update dependencies.
18928         (common/common-targhooks.o): New.
18929         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
18930         * common/config/pa/pa-common.c: Include more headers.  Take
18931         copyright dates from pa.c.
18932         (pa_option_optimization_table, pa_handle_option,
18933         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
18934         TARGET_HANDLE_OPTION): Move from pa.c.
18935         * common/config/alpha/alpha-common.c,
18936         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
18937         common/config/bfin/bfin-common.c,
18938         common/config/cris/cris-common.c,
18939         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
18940         common/config/h8300/h8300-common.c,
18941         common/config/i386/i386-common.c,
18942         common/config/ia64/ia64-common.c,
18943         common/config/iq2000/iq2000-common.c,
18944         common/config/lm32/lm32-common.c,
18945         common/config/m32c/m32c-common.c,
18946         common/config/m32r/m32r-common.c,
18947         common/config/m68k/m68k-common.c,
18948         common/config/mcore/mcore-common.c,
18949         common/config/mep/mep-common.c,
18950         common/config/microblaze/microblaze-common.c,
18951         common/config/mips/mips-common.c,
18952         common/config/mmix/mmix-common.c,
18953         common/config/mn10300/mn10300-common.c,
18954         common/config/pdp11/pdp11-common.c,
18955         common/config/picochip/picochip-common.c,
18956         common/config/rs6000/rs6000-common.c,
18957         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
18958         common/config/score/score-common.c, common/config/sh/sh-common.c,
18959         common/config/sparc/sparc-common.c,
18960         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
18961         common/config/vax/vax-common.c,
18962         common/config/xstormy16/xstormy16-common.c,
18963         common/config/xtensa/xtensa-common.c: New.
18964         * config/alpha/alpha.c: Include common/common-target.h.
18965         (alpha_option_optimization_table, alpha_handle_option,
18966         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18967         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
18968         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
18969         * config/arm/arm.c (arm_option_optimization_table,
18970         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18971         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
18972         arm-common.c.
18973         * config/avr/avr.c (avr_option_optimization_table,
18974         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
18975         to avr-common.c.
18976         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
18977         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
18978         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
18979         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
18980         * config/cris/cris.c (cris_option_optimization_table,
18981         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18982         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
18983         cris-common.c.
18984         * config/fr30/fr30.c (fr30_option_optimization_table,
18985         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
18986         to fr30-common.c.
18987         * config/frv/frv.c (frv_option_optimization_table,
18988         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
18989         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
18990         * config/h8300/h8300.c (h8300_option_optimization_table,
18991         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18992         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
18993         * config/i386/i386-protos.h (ix86_handle_option): Declare.
18994         * config/i386/i386.c: Include common/common-target.h.
18995         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
18996         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
18997         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
18998         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
18999         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
19000         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
19001         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
19002         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
19003         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
19004         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
19005         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
19006         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
19007         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
19008         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
19009         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
19010         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
19011         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
19012         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
19013         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
19014         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
19015         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
19016         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
19017         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
19018         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
19019         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
19020         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
19021         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
19022         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
19023         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
19024         ix86_option_optimization_table, ix86_option_init_struct,
19025         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
19026         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
19027         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
19028         i386-common.c.
19029         * config/i386/t-i386 (i386.o): Update dependencies.
19030         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
19031         * config/ia64/ia64.c (ia64_option_optimization_table,
19032         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
19033         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19034         ia64_handle_option): Move to ia64-common.c.
19035         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
19036         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
19037         * config/lm32/lm32.c (lm32_option_optimization_table,
19038         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
19039         to lm32-common.c.
19040         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
19041         m32c-common.c.
19042         * config/m32r/m32r.c (m32r_option_optimization_table,
19043         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19044         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
19045         m32r_handle_option): Move to m32r-common.c.
19046         (m32r_memory_move_cost): Remove comment referring to
19047         TARGET_HANDLE_OPTION.
19048         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
19049         Move to m68k-common.c.
19050         * config/mcore/mcore.c (mcore_option_optimization_table,
19051         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
19052         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
19053         * config/mep/mep.c (mep_option_optimization_table,
19054         mep_handle_option, TARGET_HANDLE_OPTION,
19055         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
19056         Move to mep-common.c.
19057         * config/microblaze/microblaze.c
19058         (microblaze_option_optimization_table,
19059         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
19060         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
19061         * config/mips/mips.c (mips_handle_option,
19062         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
19063         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
19064         mips-common.c.
19065         * config/mmix/mmix.c (mmix_option_optimization_table,
19066         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
19067         Move to mmix-common.c.
19068         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
19069         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
19070         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19071         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
19072         * config/pa/pa.c: Include common/common-target.h.
19073         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
19074         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19075         pa_handle_option): Move to pa-common.c.
19076         (pa_option_override): Use targetm_common.except_unwind_info.
19077         (pa_asm_output_mi_thunk, pa_function_section): Use
19078         targetm_common.have_named_sections.
19079         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
19080         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19081         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
19082         pdp11_handle_option, pdp11_option_init_struct): Move to
19083         pdp11-common.c.
19084         * config/picochip/picochip.c (picochip_option_optimization_table,
19085         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
19086         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
19087         * config/rs6000/rs6000.c: Include common/common-target.h.
19088         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
19089         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
19090         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
19091         rs6000_handle_option): Move to rs6000-common.c.
19092         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
19093         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
19094         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
19095         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
19096         * config/s390/s390.c (processor_flags_table,
19097         s390_option_optimization_table, s390_option_init_struct,
19098         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
19099         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
19100         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
19101         * config/s390/s390.h (processor_flags_table): Declare.
19102         * config/score/score.c (score_option_optimization_table,
19103         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19104         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
19105         score_handle_option): Move to score-common.c.
19106         * config/sh/sh.c (sh_option_optimization_table,
19107         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
19108         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19109         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
19110         * config/sparc/sparc.c: Include common/common-target.h.
19111         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
19112         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
19113         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
19114         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
19115         spu_option_init_struct): Move to spu-common.c.
19116         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
19117         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
19118         * config/v850/v850.c (small_memory_physical_max,
19119         v850_handle_memory_optionn v850_handle_option,
19120         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
19121         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
19122         v850-common.c.
19123         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
19124         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
19125         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
19126         Move to xtensa-common.c.
19127         * cfglayout.c: Include common/common-target.h.
19128         (fixup_reorder_chain): Use targetm_common.have_named_sections.
19129         * cfgrtl.c: Include common/common-target.h.
19130         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
19131         targetm_common.have_named_sections.
19132         * dbxout.c: Include common/common-target.h.
19133         (dbxout_function_end): Use targetm_common.have_named_sections.
19134         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
19135         targetm_common.except_unwind_info.
19136         * dwarf2out.c: Include common/common-target.h.
19137         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
19138         dwarf2out_begin_prologue, dwarf2out_frame_init,
19139         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
19140         targetm_common.except_unwind_info.
19141         * except.c: Include common/common-target.h.
19142         (init_eh, finish_eh_generation,
19143         output_one_function_exception_table): Use
19144         targetm_common.except_unwind_info.
19145         (switch_to_exception_section): Use targetm_common.have_named_sections.
19146         * explow.c: Include common/common-target.h.
19147         * expr.c: Include common/common-target.h.
19148         (build_personality_function): Use targetm_common.except_unwind_info.
19149         * function.c: Include common/common-target.h.
19150         (expand_function_end): Use targetm_common.except_unwind_info.
19151         * haifa-sched.c: Include common/common-target.h.
19152         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
19153         * lto-opts.c: Include common/common-target.h instead of target.h.
19154         (lto_reissue_options): Use targetm_common.handle_option.
19155         * opts.c: Include common/common-target.h.
19156         (target_handle_option): Use targetm_common.handle_option.
19157         (init_options_struct): Update comment referring to
19158         targetm.target_option.optimization.  Use
19159         targetm_common.default_target_flags,
19160         targetm_common.unwind_tables_default and
19161         targetm_common.option_init_struct.
19162         (default_options_optimization): Use
19163         targetm_common.option_optimization_table.
19164         (finish_options): Use targetm_common.except_unwind_info,
19165         targetm_common.unwind_tables_default,
19166         targetm_common.have_named_sections and
19167         targetm_common.supports_split_stack.
19168         * toplev.c: Include common/common-target.h.
19169         (process_options): Use targetm_common.have_named_sections.
19170         * tree-tailcall.c: Include common/common-target.h.
19171         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
19172         * tree.c: Include common/common-target.h.
19173         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
19174         * varasm.c: Include common/common-target.h.
19175         (resolve_unique_section, hot_function_section,
19176         default_function_section): Use targetm_common.have_named_sections.
19177
19178 2011-06-14  Easwaran Raman  <eraman@google.com>
19179
19180         PR rtl-optimization/44194
19181         * dse.c: Include tree-flow.h
19182         (insn_info): Add new field non_frame_wild_read.
19183         (group_info): Add new fields escaped_n and escaped_p.
19184         (kill_on_calls): New variable.
19185         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
19186         (dse_step0): Initialize kill_on_calls.
19187         (can_escape): New function.
19188         (set_usage_bits): Add additional parameter; record information
19189         about escaped locations.
19190         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
19191         (dse_step2_nospill): Set kill_on_calls based on
19192         group->escaped_n and group->escaped_n.
19193         (add_wild_read): Refactor into...
19194         (reset_active_stores): ... New function, and
19195         (free_read_records): ... New function.
19196         (add_non_frame_wild_read): New function.
19197         (scan_insn): Call add_non_frame_wild_read on non-const calls.
19198         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
19199         (dse_step5_nospill): Call scan_reads_nospill for instructions
19200         marked as non_frame_wild_read.
19201         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
19202
19203 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
19204
19205         * common/common-target-def.h, common/common-target.def,
19206         common/common-target.h, common/config/default-common.c,
19207         common/config/pa/pa-common.c: New files.
19208         * Makefile.in (common_out_file, common_out_object_file,
19209         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
19210         (OBJS-libcommon-target): Include $(common_out_object_file).
19211         (prefix.o): Update dependencies.
19212         ($(common_out_object_file), common/common-target-hooks-def.h,
19213         s-common-target-hooks-def-h): New.
19214         (s-tm-texi): Also check timestamp on common-target.def.
19215         (build/genhooks.o): Update dependencies.
19216         * config.gcc (common_out_file, target_has_targetm_common): Define.
19217         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
19218         TARGET_ALWAYS_STRIP_DOTDOT.
19219         * configure.ac (common_out_object_file): Define.
19220         (common_out_file, common_out_object_file): Substitute.
19221         (common): Create directory.
19222         * configure: Regenerate.
19223         * doc/tm.texi.in (targetm_common): Document.
19224         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
19225         * doc/tm.texi: Regenerate.
19226         * genhooks.c (hook_array): Also include common/common-target.def.
19227         * prefix.c (tm.h): Don't include.
19228         (common/common-target.h): Include.
19229         (ALWAYS_STRIP_DOTDOT): Don't define.
19230         (update_path): Use targetm_common.always_strip_dotdot instead of
19231         ALWAYS_STRIP_DOTDOT.
19232         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
19233
19234 2011-06-14  David Li  <davidxl@google.com>
19235
19236         * passes.c (execute_function_todo): Remove TODO_dump_func.
19237         (execute_one_pass): Remove TODO_dump_func.
19238         (execute_function_dump): New function.
19239         * tree-vrp.c: Remove TODO_dump_func.
19240         * regrename.c: Remove TODO_dump_func.
19241         * fwprop.c: Remove TODO_dump_func.
19242         * tree-into-ssa.c: Remove TODO_dump_func.
19243         * tree-complex.c: Remove TODO_dump_func.
19244         * tracer.c: Remove TODO_dump_func.
19245         * tree-loop-distribution.c: Remove TODO_dump_func.
19246         * postreload-gcse.c: Remove TODO_dump_func.
19247         * postreload.c: Remove TODO_dump_func.
19248         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
19249         * tree-tailcall.c: Remove TODO_dump_func.
19250         * ipa-cp.c: Remove TODO_dump_func.
19251         * final.c: Remove TODO_dump_func.
19252         * tree-emutls.c: Remove TODO_dump_func.
19253         * omp-low.c: Remove TODO_dump_func.
19254         * tree-ssa-dse.c: Remove TODO_dump_func.
19255         * tree-ssa-uncprop.c: Remove TODO_dump_func.
19256         * auto-inc-dec.c: Remove TODO_dump_func.
19257         * reorg.c: Remove TODO_dump_func.
19258         * tree-ssa-copyrename.c: Remove TODO_dump_func.
19259         * tree-ssa-ccp.c: Remove TODO_dump_func.
19260         * compare-elim.c: Remove TODO_dump_func.
19261         * mode-switching.c: Remove TODO_dump_func.
19262         * modulo-sched.c: Remove TODO_dump_func.
19263         * tree-call-cdce.c: Remove TODO_dump_func.
19264         * cse.c: Remove TODO_dump_func.
19265         * web.c: Remove TODO_dump_func.
19266         * tree-stdarg.c: Remove TODO_dump_func.
19267         * lto-streamer-out.c: Remove TODO_dump_func.
19268         * tree-ssa-math-opts.c: Remove TODO_dump_func.
19269         * tree-ssa-dom.c: Remove TODO_dump_func.
19270         * tree-nrv.c: Remove TODO_dump_func.
19271         * loop-init.c: Remove TODO_dump_func.
19272         * gimple-low.c: Remove TODO_dump_func.
19273         * ipa-inline.c: Remove TODO_dump_func.
19274         * tree-ssa-sink.c: Remove TODO_dump_func.
19275         * jump.c: Remove TODO_dump_func.
19276         * ifcvt.c: Remove TODO_dump_func.
19277         * tree-ssa-loop.c: Remove TODO_dump_func.
19278         * recog.c: Remove TODO_dump_func.
19279         * dse.c: Remove TODO_dump_func.
19280         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
19281         * matrix-reorg.c: Remove TODO_dump_func.
19282         * tree-eh.c: Remove TODO_dump_func.
19283         * regmove.c: Remove TODO_dump_func.
19284         * function.c: Remove TODO_dump_func.
19285         * tree-vectorizer.c: Remove TODO_dump_func.
19286         * ipa-split.c: Remove TODO_dump_func.
19287         * gcse.c: Remove TODO_dump_func.
19288         * tree-if-conv.c: Remove TODO_dump_func.
19289         * init-regs.c: Remove TODO_dump_func.
19290         * tree-ssa-phiopt.c: Remove TODO_dump_func.
19291         * implicit-zee.c: Remove TODO_dump_func.
19292         * lower-subreg.c: Remove TODO_dump_func.
19293         * bt-load.c: Remove TODO_dump_func.
19294         * tree-dfa.c: Remove TODO_dump_func.
19295         * except.c: Remove TODO_dump_func.
19296         * emit-rtl.c: Remove TODO_dump_func.
19297         * store-motion.c: Remove TODO_dump_func.
19298         * cfgexpand.c: Remove TODO_dump_func.
19299         * tree-cfgcleanup.c: Remove TODO_dump_func.
19300         * cfgcleanup.c: Remove TODO_dump_func.
19301         * tree-ssa-pre.c: Remove TODO_dump_func.
19302         * tree-sra.c: Remove TODO_dump_func.
19303         * tree-mudflap.c: Remove TODO_dump_func.
19304         * tree-ssa-copy.c: Remove TODO_dump_func.
19305         * cfglayout.c: Remove TODO_dump_func.
19306         * tree-ssa-forwprop.c: Remove TODO_dump_func.
19307         * tree-ssa-dce.c: Remove TODO_dump_func.
19308         * ira.c: Remove TODO_dump_func.
19309         * tree-ssa.c: Remove TODO_dump_func.
19310         * integrate.c: Remove TODO_dump_func.
19311         * tree-optimize.c: Remove TODO_dump_func.
19312         * tree-ssa-phiprop.c: Remove TODO_dump_func.
19313         * tree-object-size.c: Remove TODO_dump_func.
19314         * combine.c: Remove TODO_dump_func.
19315         * bb-reorder.c: Remove TODO_dump_func.
19316         * cprop.c: Remove TODO_dump_func.
19317         * var-tracking.c: Remove TODO_dump_func.
19318         * tree-profile.c: Remove TODO_dump_func.
19319         * tree-vect-generic.c: Remove TODO_dump_func.
19320         * reg-stack.c: Remove TODO_dump_func.
19321         * sched-rgn.c: Remove TODO_dump_func.
19322         * tree-ssa-structalias.c: Remove TODO_dump_func.
19323         * tree-switch-conversion.c: Remove TODO_dump_func.
19324         * tree-cfg.c: Remove TODO_dump_func.
19325         * tree-ssa-reassoc.c: Remove TODO_dump_func.
19326         * combine-stack-adj.c: Remove TODO_dump_func.
19327         * dce.c: Remove TODO_dump_func.
19328         * tree-ssanames.c: Remove TODO_dump_func.
19329         * regcprop.c: Remove TODO_dump_func.
19330
19331 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
19332
19333         PR middle-end/47364
19334         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
19335         and properly handle result not in Pmode.
19336
19337 2011-06-14  Robert Millan  <rmh@gnu.org>
19338
19339         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
19340         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
19341         `config/linux.h'.
19342
19343         * config/i386/kfreebsd-gnu64.h: New file.
19344         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
19345         with `i386/kfreebsd-gnu64.h'.
19346
19347         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
19348         (GNU_USER_LINK_EMULATION64): New macros.
19349         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
19350         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
19351         of hardcoding `elf_i386' and `elf_x86_64'.
19352
19353 2011-06-14  Nick Clifton  <nickc@redhat.com>
19354
19355         PR target/49403
19356         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
19357
19358         PR target/49402
19359         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
19360
19361 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
19362
19363         PR fortran/49103
19364         * tree.h (DECL_NONSHAREABLE): Define.
19365         (struct tree_decl_common): Change decl_common_unused to
19366         decl_nonshareable_flag.
19367         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
19368         Ignore vars with DECL_NONSHAREABLE bit set.
19369         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
19370         on stores to automatic aggregate vars.
19371
19372         PR rtl-optimization/49390
19373         Revert:
19374         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
19375
19376         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
19377         MEM_ALIAS_SET.
19378
19379 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
19380             Tom de Vries  <tom@codesourcery.com>
19381
19382         PR target/45098
19383         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
19384         Document changed semantics.
19385         (max_stmt_executions, max_stmt_executions_int): Declare.
19386         * tree-data-ref.c (estimated_loop_iterations)
19387         (estimated_loop_iterations_int): Move functions...
19388         * tree-ssa-loop-niter.c (estimated_loop_iterations)
19389         (estimated_loop_iterations_int): here.
19390         (record_estimate): Change nb_iterations_upper_bound and
19391         nb_iterations_estimate semantics.
19392         (max_stmt_executions, max_stmt_executions_int): New function.
19393         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
19394         (max_stmt_executions_tree): this.
19395         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
19396         estimated_loop_iterations_tree.
19397         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
19398         max_stmt_executions_int instead of estimated_loop_iterations_int.
19399         * predict.c (predict_loops): Idem.
19400         * tree-parloops.c (parallelize_loops): Idem.
19401         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
19402         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
19403         (init_omega_for_ddr_1): Idem.
19404         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
19405         (loop_prefetch_arrays): Idem
19406         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
19407         max_stmt_executions instead of estimated_loop_iterations.
19408         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
19409         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
19410         instead of nb_iterations_upper_bound.
19411
19412 2011-06-13  Jan Hubicka  <jh@suse.cz>
19413
19414         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
19415
19416 2011-06-14  Richard Henderson  <rth@redhat.com>
19417
19418         PR debug/48459
19419         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
19420         (based_loc_descr): Assert it's true.
19421         (compute_frame_pointer_to_fb_displacement): Set it, rather than
19422         aborting immediately.
19423
19424 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
19425             Mingfeng Wu  <mingfeng@faraday-tech.com>
19426
19427         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
19428
19429 2011-06-13  Jan Hubicka  <jh@suse.cz>
19430
19431         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
19432
19433 2011-06-13  Jan Hubicka  <jh@suse.cz>
19434
19435         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
19436         similarly to DECL_COMDAT.
19437         * cgraphunit.c (cgraph_analyze_function): Likewise.
19438         * ipa.c (function_and_variable_visibility): Likewise.
19439
19440 2011-06-13  Jan Hubicka  <jh@suse.cz>
19441
19442         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
19443         BINFO_VIRTUALS when streaming for ltrans unit.
19444
19445 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
19446
19447         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
19448         (movdi_internal64): Same.
19449
19450 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
19451
19452         PR target/44618
19453         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
19454         a set of similar patterns, where the MATCH_OPERAND for the function
19455         argument is replaced with individual references to hardware registers.
19456         (save_fpregs_<mode>): Ditto
19457         (restore_gpregs_<mode>): Ditto
19458         (return_and_restore_gpregs_<mode>): Ditto
19459         (return_and_restore_fpregs_<mode>): Ditto
19460         (return_and_restore_fpregs_aix_<mode>): Ditto
19461
19462 2011-06-13  Jan Hubicka  <jh@suse.cz>
19463
19464         * ipa-utils.c (postorder_stack): New structure.
19465         (ipa_reverse_postorder): Handle aliases.
19466
19467 2011-06-13  Jan Hubicka  <jh@suse.cz>
19468
19469         * ipa-inline.c (reset_edge_caches): Walk aliases.
19470         (update_caller_keys): Do not test inlinability of aliases.
19471         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
19472         (do_estimate_growth): Fix typo.
19473
19474 2011-06-13  Jan Hubicka  <jh@suse.cz>
19475
19476         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
19477         (can_remove_node_now_p): ... here; handle same comdat groups.
19478         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
19479         (inline_call): Update use of can_remove_node_now_p.
19480
19481 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
19482
19483         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
19484         condition to disallow non-identical memory locations.
19485         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
19486         preference to bit manipulation instructions.
19487
19488 2011-06-13  Jan Hubicka  <jh@suse.cz>
19489
19490         * cgraph.c (cgraph_for_node_thunks_and_aliases,
19491         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
19492         (nonremovable_p): New function.
19493         (cgraph_can_remove_if_no_direct_calls_p): New function.
19494         (used_from_object_file_p): New functoin.
19495         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
19496         references from aliases.
19497         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
19498         * ipa-inline.c (check_caller_edge): New function.
19499         (want_inline_function_called_once_p): Use it; accept aliases called
19500         once, too.
19501         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
19502
19503 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19504
19505         PR target/48454
19506         * config/arm/neon.md (vec_pack_trunc): Set the lengths
19507         correctly for the case with Quad vectors.
19508
19509 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
19510            Ira Rosen  <ira.rosen@linaro.org>
19511
19512         PR tree-optimization/49352
19513         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
19514         all, make sure loop_use_stmt after the loop is a def stmt of a used
19515         SSA_NAME that is the only one defined inside of the loop.  Don't
19516         check for COND_EXPR and GIMPLE_BINARY_RHS.
19517         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
19518         check_reduction is true.
19519
19520 2011-06-11  Jan Hubicka  <jh@suse.cz>
19521
19522         PR middle-end/49373
19523         * ipa.c (cgraph_externally_visible_p): Check resolution info.
19524
19525 2011-06-11  Jan Hubicka  <jh@suse.cz>
19526
19527         PR middle-end/48836
19528         * ipa-inline-transform.c: Include tree-pass.h
19529         (inline_transform): Set TODO_update_ssa_only_virtuals.
19530         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
19531
19532 2011-06-11  Jan Hubicka  <jh@suse.cz>
19533
19534         PR middle-end/49378
19535         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
19536         aliases and thunks.
19537
19538 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
19539
19540         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
19541         Take number of iterations to peel into account for equally frequent
19542         misalignment values.
19543
19544 2011-06-11  Jan Hubicka  <jh@suse.cz>
19545
19546         * lto-streamer-out.c (produce_symtab): Stream out the newly
19547         represented aliases.
19548
19549 2011-06-11  Jan Hubicka  <jh@suse.cz>
19550
19551         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
19552         varying args.
19553         (ipa_update_after_lto_read): Likewise.
19554         (ipa_write_node_info): Do not sream call_with_var_arguments.
19555         (ipa_read_node_info): Likewise.
19556
19557 2011-06-11  Jan Hubicka  <jh@suse.cz>
19558
19559         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
19560
19561 2011-06-11  Jan Hubicka  <jh@suse.cz>
19562
19563         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
19564         (lto_symtab_resolve_can_prevail_p): Likewise.
19565         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
19566         * cgraph.c (same_body_aliases_done): New global var.
19567         (cgraph_same_body_alias_1): Rename to ...
19568         (cgraph_create_function_alias): ... this one; reorg to new
19569         representation.
19570         (cgraph_same_body_alias): Use cgraph_create_function_alias;
19571         record references when asked to.
19572         (cgraph_add_thunk): Fix formating.
19573         (cgraph_get_node): Kill same body alias code.
19574         (cgraph_node_for_asm): Likewise.
19575         (cgraph_remove_same_body_alias): Remove.
19576         (cgraph_remove_node): Kill same body alias code.
19577         (cgraph_mark_address_taken_node): Mark also the aliased function
19578         as having address taken.
19579         (dump_cgraph_node): Dump same body aliases.
19580         (cgraph_for_node_thunks_and_aliases): Update for new alias
19581         representation.
19582         (cgraph_for_node_and_aliases): Likewise.
19583         * cgraph.h (same_body): Kll pointer.
19584         (same_body_alias): Update comment.
19585         (same_body_aliases_done): Declare.
19586         (cgraph_remove_same_body_alias): Remove declaration.
19587         (cgraph_create_function_alias): Declare.
19588         (cgraph_process_same_body_aliases): Declare.
19589         (cgraph_function_with_gimple_body_p): Check for alias.
19590         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
19591         (cgraph_alias_aliased_node): New function.
19592         (cgraph_function_node): Update for new aliases.
19593         (cgraph_function_or_thunk_node): Likewise.
19594         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
19595         (inline_call): Remove dead aliases.
19596         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
19597         name hack for same body aliases.
19598         (clone_of_p): Look through aliases.
19599         (verify_cgraph_node): Verify aliases.
19600         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
19601         (cgraph_process_same_body_aliases): New function.
19602         (process_function_and_variable_attributes): Disable weakref warning on
19603         alias.
19604         (cgraph_analyze_functions): Handle aliases.
19605         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
19606         (assemble_thunks): Rename to ...
19607         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
19608         (cgraph_expand_function): Remove alias output code.
19609         (cgraph_output_in_order): Skip aliases.
19610         (cgraph_preserve_function_body_p): Aliases don't need preserving.
19611         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
19612         (ipa_record_reference): Do not assert on alias references.
19613         (ipa_ref_has_aliases_p): New function.
19614         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
19615         (ipa_ref_has_aliases_p): Declare.
19616         * lto-cgraph.c (lto_output_node): Handle aliases.
19617         (input_node): Likewise.
19618         * lto-streamer-out.c (lto_output): Skip aliases.
19619         (produce_symtab): Kill same_body_alias code.
19620         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
19621         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
19622         * ipa-inline.c (update_caller_keys): Walk aliases.
19623         (inline_small_functions): Fix thinko in previous patch.
19624         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
19625         (function_and_variable_visibility): Do not walk same body aliases.
19626         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
19627         (ipa_pta_execute): Use it.
19628
19629 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
19630
19631         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
19632         (*vec_dupv2df): Rename from vec_dupv2df.
19633         (vec_dupv2df): New expander.
19634
19635 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
19636
19637         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
19638
19639 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
19640
19641         * config/i386/i386.md: Use default value in "isa" attribute.
19642         * config/i386/sse.md: Ditto.
19643         * config/i386/mmx.md: Ditto.
19644
19645 2011-06-10  Wei Guozhi  <carrot@google.com>
19646
19647         PR target/45335
19648         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
19649         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
19650         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
19651         related peephole2.
19652         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
19653         related peephole2.
19654         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
19655         (arm_legitimate_ldrd_p): New prototype.
19656         (arm_output_ldrd): New prototype.
19657         * config/arm/arm.c (arm_check_ldrd_operands): New function.
19658         (arm_legitimate_ldrd_p): New function.
19659         (arm_output_ldrd): New function.
19660
19661 2011-06-10  David Li  <davidxl@google.com>
19662
19663         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
19664         * passes.c (passr_eq): New function.
19665         (create_pass_tab): New function.
19666         (pass_traverse): New function.
19667         (dump_one_pass): New function.
19668         (dump_pass_list): New function.
19669         (dump_passes): New function.
19670
19671 2011-06-10  Jan Hubicka  <jh@suse.cz>
19672
19673         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
19674         setting the nothrow flag.
19675         * ipa-reference.c (propagate): Skip aliases.
19676         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
19677         (propagate_nothrow): Skip aliases; do not update cgraph.
19678         (local_pure_const): Do not update cgraph.
19679         * tree-profile.c (tree_profiling): Do fixup_cfg.
19680
19681 2011-06-10  Jan Hubicka  <jh@suse.cz>
19682
19683         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
19684         (cgraph_local_node_p): ... here; handle aliases.
19685         (has_addr_references_p): Break out from ...;
19686         (cgraph_remove_unreachable_nodes) ... here.
19687
19688 2011-06-10  Jan Hubicka  <jh@suse.cz>
19689
19690         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
19691         * common.opt (flag_inline_functions_called_once): Do not
19692         initialize to 1.
19693
19694 2011-06-10  Jan Hubicka  <jh@suse.cz>
19695
19696         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
19697         (ipcp_initialize_node_lattices): Do not deal with aliases;
19698         Do not try to propagate through thunks.
19699         (ipcp_change_tops_to_bottom): Do not deal with aliases.
19700
19701 2011-06-10  Jan Hubicka  <jh@suse.cz>
19702
19703         * ipa-prop.c (ipa_write_node_info): Stream jump functions
19704         for indirect calls.
19705         (ipa_read_node_info): Likewise.
19706
19707 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19708
19709         PR lto/49302
19710         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
19711         (build_and_insert_call): Likewise.
19712         (build_and_insert_ref): New.
19713         (gimple_expand_builtin_pow): Minor cleanup.
19714         (gimple_expand_builtin_cabs): New.
19715         (execute_cse_sincos): Add case for BUILT_IN_CABS.
19716
19717 2011-06-10  Jan Hubicka  <jh@suse.cz>
19718
19719         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
19720         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
19721         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
19722         (ipcp_propagate_stage): Skip aliases when propagating.
19723         (ipcp_need_redirect_p): Skip aliases.
19724         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
19725         collect_callers_of_node.
19726         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
19727         for aliases.
19728         (ipa_compute_jump_functions): Look through aliases.
19729
19730 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19731
19732         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
19733
19734 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
19735
19736         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
19737         Adjust comments.
19738         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
19739
19740 2011-06-10  Jan Hubicka  <jh@suse.cz>
19741
19742         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
19743         Update call of gimple_get_virt_method_for_binfo.
19744         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
19745         refuse_thunks parameter.
19746         (gimple_fold_call): Update.
19747         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
19748
19749 2011-06-10  Jan Hubicka  <jh@suse.cz>
19750
19751         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
19752         (not_all_callers_have_enough_arguments_p): ... this one; turn into
19753         worker for cgraph_for_node_and_aliases.
19754         (convert_callers_for_node): Break out from ...
19755         (convert_callers): ... here.
19756         (modify_function): Use collect_callers_of_node.
19757         (ipa_early_sra): Use cgraph_for_node_and_aliases.
19758
19759 2011-06-10  Richard Guenther  <rguenther@suse.de>
19760
19761         PR tree-optimization/49361
19762         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
19763         when not already in gimple form.
19764
19765 2011-06-10  Richard Guenther  <rguenther@suse.de>
19766
19767         PR bootstrap/49344
19768         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
19769         FOR_EACH_PHI_OR_STMT_USE.
19770
19771 2011-06-10  Jan Hubicka  <jh@suse.cz>
19772
19773         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
19774         (clone_inlined_nodes): ... here.
19775         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
19776         to real destination prior inlining.
19777         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
19778         can_early_inline_edge_p, want_early_inline_function_p,
19779         want_early_inline_function_p, want_inline_small_function_p,
19780         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
19781         edge_badness, update_all_callee_keys, lookup_recursive_calls,
19782         add_new_edges_to_heap, inline_small_functions, flatten_function,
19783         inline_always_inline_functions, early_inline_small_functions): Use
19784         cgraph_function_or_thunk_node.
19785         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
19786         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
19787         (do_estimate_edge_growth_1): Break out from ...
19788         (do_estimate_growth) ... here; walk aliases.
19789         (inline_generate_summary): Skip aliases.
19790
19791 2011-06-10  Richard Guenther  <rguenther@suse.de>
19792
19793         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
19794         forward when combining, visit inserted stmts when a stmt was changed.
19795
19796 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
19797
19798         * tree.h (error_operand_p): Add.
19799         * dbxout.c (dbxout_type_fields): Use the latter.
19800         * c-decl.c (add_stmt): Likewise.
19801         * gimplify.c (omp_add_variable, omp_notice_variable,
19802         gimplify_scan_omp_clauses): Likewise.
19803
19804 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
19805
19806         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
19807         when a value is actually passed in regs.
19808
19809 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
19810             Laurent Rougé  <laurent.rouge@menta.fr>
19811
19812         * doc/invoke.texi (SPARC options): Add -mflat.
19813         * config/sparc/sparc.opt: Likewise.
19814         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
19815         (sparc_flat_expand_prologue): Declare.
19816         (sparc_flat_expand_epilogue): Likewise.
19817         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
19818         (CPP_ENDIAN_SPEC): Replace with...
19819         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
19820         (CPP_SPEC): Adjust to above change.
19821         (EXTRA_SPECS): Likewise.
19822         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
19823         (INCOMING_REGNO): Likewise.
19824         (OUTGOING_REGNO): Likewise.
19825         (LOCAL_REGNO): Likewise.
19826         (SETUP_FRAME_ADDRESSES): Likewise.
19827         (FIXED_REGISTERS): Set 0 for %fp.
19828         (CALL_USED_REGISTERS): Likewise.
19829         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
19830         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
19831         (RETURN_ADDR_REGNUM): Define.
19832         (RETURN_ADDR_RTX): Use it.
19833         (INCOMING_RETURN_ADDR_REGNUM): Define.
19834         (INCOMING_RETURN_ADDR_RTX): Use it.
19835         (DWARF_FRAME_RETURN_COLUMN): Likewise.
19836         (EH_RETURN_REGNUM): Define.
19837         (EH_RETURN_STACKADJ_RTX): Use it.
19838         (EH_RETURN_HANDLER_RTX): Delete.
19839         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
19840         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
19841         Delete.
19842         (struct machine_function): Add frame_size, apparent_frame_size,
19843         frame_base_reg, frame_base_offset, n_global_fp_regs and
19844         save_local_in_regs_p fields.
19845         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
19846         sparc_frame_base_offset, sparc_n_global_fp_regs,
19847         sparc_save_local_in_regs_p): New macros.
19848         (sparc_option_override): Error out if -fcall-saved-REG is specified
19849         for Out registers.
19850         (eligible_for_restore_insn): Fix formatting.
19851         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
19852         (eligible_for_sibcall_delay): Likewise.
19853         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
19854         (sparc_legitimate_address_p): Adjust to above change.
19855         (save_global_or_fp_reg_p): New predicate.
19856         (return_addr_reg_needed_p): Likewise.
19857         (save_local_or_in_reg_p): Likewise.
19858         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
19859         (SORR_SAVE, SORR_RESTORE): Delete.
19860         (sorr_pred_t): New typedef.
19861         (sorr_act_t): New enum.
19862         (save_or_restore_regs): Rename to...
19863         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
19864         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
19865         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
19866         mechanism.  Add CFI information for double-word saves in 32-bit mode.
19867         (emit_adjust_base_to_offset): New function extracted from...
19868         (emit_save_or_restore_regs): ...this.  Rename the rest to...
19869         (emit_save_or_restore_regs_global_fp_regs): ...this.
19870         (emit_save_or_restore_regs_local_in_regs): New function.
19871         (gen_create_flat_frame_[123]): New functions.
19872         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
19873         (sparc_flat_expand_prologue): New function.
19874         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
19875         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
19876         (sparc_flat_expand_epilogue): New function.
19877         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
19878         (output_return): Likewise.
19879         (output_sibcall): Likewise.
19880         (sparc_output_mi_thunk): Likewise.
19881         (sparc_frame_pointer_required): Likewise.
19882         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
19883         function optimization.
19884         * config/sparc/sparc.md (flat): New attribute.
19885         (prologue): Add TARGET_FLAT handling.
19886         (save_register_window): Disable if TARGET_FLAT.
19887         (create_flat_frame_[123]): New patterns.
19888         (epilogue): Add TARGET_FLAT handling.
19889         (sibcall_epilogue): Likewise.
19890         (eh_return): New expander.
19891         (eh_return_internal): New insn and splitter.
19892         (return_internal): Add TARGET_FLAT handling.
19893         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
19894         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
19895         (nonlocal_goto): Add TARGET_FLAT handling.
19896         * config/sparc/t-elf: Add -mflat multilib.
19897         * config/sparc/t-leon: Likewise.
19898
19899 2011-06-10  Jan Hubicka  <jh@suse.cz>
19900
19901         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
19902         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
19903         (self_recursive_p): Use cgraph_function_node.
19904         (propagate_pure_const): Likewise.
19905         (propagate_nothrow): Likewise.
19906         * ipa-reference.c (ipa_reference_get_not_read_global): Use
19907         cgraph_function_node.
19908         (propagate_bits): Likewise.
19909         (propagate): Likewise.
19910
19911 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19912             Richard Earnshaw  <rearnsha@arm.com>
19913
19914         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
19915         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
19916         (*thumb2_movdi_vfp): Delete.
19917         (*arm_movdi_vfp_cortexa8): Delete.
19918         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
19919         (*movdi_vfp_cortexa8): Likewise.
19920
19921 2011-06-10  Richard Guenther  <rguenther@suse.de>
19922
19923         * stor-layout.c (initialize_sizetypes): Give names to all
19924         sizetype kinds.
19925
19926 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
19927
19928         PR tree-optimization/49318
19929         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
19930         irrelevant pattern statements.
19931
19932 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
19933
19934         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
19935
19936         PR bootstrap/49354
19937         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
19938         to last assignment.
19939
19940 2011-06-09  Jan Hubicka  <jh@suse.cz>
19941
19942         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
19943         do not recompute reachable flag.
19944         (cgraph_finalize_function, cgraph_analyze_functions): Set
19945         redefined_extern_inline here.
19946
19947 2011-06-09  Jan Hubicka  <jh@suse.cz>
19948
19949         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
19950         (cgraph_only_called_directly_p): ... this one; bring offline.
19951         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
19952         varpool_used_from_object_file_p): Drop names from the declaratoin.
19953         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
19954         collect_callers_of_node): New.
19955         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
19956         (cgraph_edge_recursive_p): Use cgraph_function_node.
19957         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
19958         (cgraph_node_cannot_be_local_p_1): Break out from ...
19959         (cgraph_node_can_be_local_p): ... here; walk aliases.
19960         (cgraph_for_node_thunks_and_aliases): New function.
19961         (cgraph_for_node_and_aliases): New function.
19962         (cgraph_make_node_local_1): Break out from ...
19963         (cgraph_make_node_local) ... here; use
19964         cgraph_for_node_thunks_and_aliases.
19965         (cgraph_set_nothrow_flag_1): Break out from ...
19966         (cgraph_set_nothrow_flag) ... here;
19967         use cgraph_for_node_thunks_and_aliases.
19968         (cgraph_set_const_flag_1): Break out from ...
19969         (cgraph_set_const_flag) ... here;
19970         use cgraph_for_node_thunks_and_aliases.
19971         (cgraph_set_pure_flag_1): Break out from ...
19972         (cgraph_set_pure_flag) ... here;
19973         use cgraph_for_node_thunks_and_aliases.
19974         (cgraph_propagate_frequency_1): Break out from ...
19975         (cgraph_propagate_frequency) ... here; use
19976         cgraph_for_node_thunks_and_aliases.
19977         (cgraph_used_from_object_file_p): Do not care about aliases.
19978         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
19979         New functions.
19980         (collect_callers_of_node_1, collect_callers_of_node): New functions.
19981
19982 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
19983
19984         PR rtl-optimization/49154
19985         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
19986         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
19987         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
19988         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
19989         * config/cris/cris.h (cris_register_move_cost): Remove
19990         !TARGET_V32 code.  Tweak comments.
19991
19992 2011-06-09  Jan Hubicka  <jh@suse.cz>
19993
19994         * cgraphbuild.c (record_eh_tables): Mark personality function as having
19995         address taken.
19996
19997 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
19998
19999         PR rtl-optimization/49154
20000         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
20001         is a matching slot in the hashtable, assign it to classes_ptr.
20002
20003         PR rtl-optimization/49154
20004         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
20005         register classes.
20006         * doc/tm.texi: Regenerate.
20007
20008 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
20009
20010         PR target/49307
20011         * config/sh/sh.md (UNSPEC_CHKADD): New.
20012         (chk_guard_add): New define_insn_and_split.
20013         (symGOT_load): Use chk_guard_add instead of blockage.
20014
20015 2011-06-09  Kai Tietz  <ktietz@redhat.com>
20016
20017         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
20018
20019 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
20020
20021         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
20022
20023 2011-06-09  Wei Guozhi  <carrot@google.com>
20024
20025         PR target/46975
20026         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
20027         (peephole2 for conditional move): Generate 16 bit instructions.
20028
20029 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
20030
20031         * config/i386/i386.md (*movdi_internal_rex64): Merge
20032         alternatives 6 and 8.
20033
20034 2011-06-09  David Li  <davidxl@google.com>
20035
20036         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
20037         * passes.c (passr_eq): New function.
20038         (create_pass_tab): New function.
20039         (pass_traverse): New function.
20040         (dump_one_pass): New function.
20041         (dump_pass_list): New function.
20042         (dump_passes): New function.
20043
20044 2011-06-09  David Li  <davidxl@google.com>
20045
20046         * tree-complex.c (tree_lower_complex): Gate cleanup.
20047         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
20048         (execute_optimize_stdarg): Ditto.
20049         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
20050         (execute_cleanup_eh_1): Ditto.
20051         (execute_cleanup_eh): Ditto.
20052         * gcse.c (gate_rtl_pre): Ditto.
20053         (execute_rtl_pre): Ditto.
20054         * except.c (finish_eh_generation): Ditto.
20055         (convert_to_eh_region_ranges): Ditto.
20056         * cprop.c (one_cprop_pass): Ditto.
20057
20058 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
20059
20060         PR target/48673
20061         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
20062         in all basic blocks.
20063
20064 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20065
20066         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
20067         (HAVE_ENABLE_EXECUTE_STACK): Define.
20068         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
20069         (HAVE_ENABLE_EXECUTE_STACK): Define.
20070         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
20071         (HAVE_ENABLE_EXECUTE_STACK): Define.
20072         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
20073         (ENABLE_EXECUTE_STACK): Remove.
20074         (HAVE_ENABLE_EXECUTE_STACK): Define.
20075         [IN_LIBGCC2]: Don't include <windows.h>.
20076         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
20077         (HAVE_ENABLE_EXECUTE_STACK): Define.
20078         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
20079         (HAVE_ENABLE_EXECUTE_STACK): Define.
20080         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
20081         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
20082         (HAVE_ENABLE_EXECUTE_STACK): Define.
20083         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
20084         (HAVE_ENABLE_EXECUTE_STACK): Define.
20085         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
20086         (HAVE_ENABLE_EXECUTE_STACK): Define.
20087         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
20088         (HAVE_ENABLE_EXECUTE_STACK): Define.
20089         * config/alpha/alpha.c (alpha_trampoline_init): Test
20090         HAVE_ENABLE_EXECUTE_STACK.
20091         * config/i386/i386.c (ix86_trampoline_init): Likewise.
20092         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
20093         (sparc64_initialize_trampoline): Likewise.
20094         * libgcc2.c [L_enable_execute_stack]: Remove.
20095         * system.h (ENABLE_EXECUTE_STACK): Poison.
20096         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
20097         * doc/tm.texi: Regenerate.
20098         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
20099
20100 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
20101
20102         PR middle-end/49308
20103         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
20104         variable.  After resetting and rescanning insn continue with previous
20105         statement.
20106
20107 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20108
20109         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
20110         (gcc_cv_ld_hidden): Likewise.
20111         * configure: Regenerate.
20112         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
20113         (ix86_stack_protect_fail): Mark unused.
20114         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
20115         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
20116         [TARGET_MACHO]: Don't define.
20117         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
20118         (TARGET_STACK_PROTECT_FAIL): Likewise.
20119         (rs6000_stack_protect_fail): Mark unused.
20120         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
20121         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
20122
20123 2011-06-08  Andi Kleen  <ak@linux.intel.com>
20124
20125         * varasm.c (get_section): Print location of other conflict
20126         for section conflicts.
20127
20128 2011-06-08  Andi Kleen  <ak@linux.intel.com>
20129
20130         * config/i386/driver-i386.c (host_detect_local_cpu):
20131         Add model 0x2d Intel CPU.
20132
20133 2011-06-08  Andi Kleen  <ak@linux.intel.com>
20134
20135         * reginfo.c (global_regs_decl): Add.
20136         (globalize_reg): Add decl parameter. Compute location.  Pass location
20137         to warnings and add inform. Store decl in global_regs_decl.
20138         * rtl.h (globalize_reg): Update prototype.
20139         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
20140
20141 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
20142
20143         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
20144
20145 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
20146
20147         PR target/49305
20148         * config/sh/predicates.md (general_movsrc_operand): Check
20149         mode for memory with indexed address for QI and HImode.
20150         (general_movdst_operand): Likewise.
20151
20152 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
20153
20154         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
20155
20156 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
20157
20158         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
20159         (num_ssa_operands): Likewise.
20160         (op_iter_init_phiuse): Forward-declare.
20161         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
20162
20163 2011-06-08  Nick Clifton  <nickc@redhat.com>
20164
20165         * doc/invoke.texi (ARM Options): Update description of
20166         -mthumb-interwork.
20167
20168 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
20169
20170         * config/i386/driver-i386.c (host_detect_local_cpu): Support
20171         unknown Intel family 0x6 CPUs.
20172
20173 2011-06-08  Martin Jambor  <mjambor@suse.cz>
20174
20175         * tree-sra.c (mark_rw_status): Removed.
20176         (analyze_access_subtree): New parameter parent instead of
20177         mark_read and mark_write, propagate from that.
20178
20179 2011-06-08  Julian Brown  <julian@codesourcery.com>
20180
20181         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
20182         for double-precision helper functions in hard-float mode if only
20183         single-precision arithmetic is supported in hardware.
20184
20185 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
20186
20187         PR rtl-optimization/49303
20188         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
20189         code_motion_path_driver returned 0 or 1.
20190         (sel_region_finish): Clear h_d_i_d.
20191
20192 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
20193
20194         * config/sh/sh.c (prepare_move_operands): Set pic register
20195         appropriately for global and local dynamic tls models even
20196         if flag_pic is unset.
20197
20198 2011-06-07  Jason Merrill  <jason@redhat.com>
20199
20200         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
20201
20202 2011-06-07  Xinliang David Li  <davidxl@google.com>
20203         * passes.c (enable_disable_pass): Handle assembler name.
20204         (is_pass_explicitly_enabled_or_disabled): Ditto.
20205
20206 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20207
20208         PR tree-optimization/48497
20209         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
20210
20211 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20212
20213         PR tree-optimization/46728
20214         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
20215         to use gimple_val_nonnegative_real_p.
20216         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
20217         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
20218
20219 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
20220
20221         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
20222
20223 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
20224
20225         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
20226         constant vectors.
20227
20228 2011-06-07  Richard Guenther  <rguenther@suse.de>
20229
20230         * stor-layout.c (initialize_sizetypes): Initialize all
20231         sizetypes based on target definitions.
20232         (set_sizetype): Remove.
20233         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
20234         * tree.h (set_sizetype): Remove.
20235
20236 2011-06-07  Nick Clifton  <nickc@redhat.com>
20237
20238         * config.gcc: Unify V850 architecture options and add support for
20239         newer V850 architectures.
20240         * config/v850/t-v850e: Delete.
20241
20242 2011-06-07  Richard Guenther  <rguenther@suse.de>
20243
20244         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
20245         Call set_sizetype from here.
20246
20247 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
20248
20249         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
20250         (*maddhisi4tb, *maddhisi4tt): New define_insns.
20251
20252 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
20253             Andrew Stubbs  <ams@codesourcery.com>
20254
20255         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
20256         multiplies.
20257         * doc/md.texi (Canonicalization of Instructions): Document widening
20258         multiply canonicalization.
20259
20260 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
20261
20262         PR gcov-profile/49299
20263         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
20264
20265 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
20266
20267         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
20268         a pointer.
20269         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
20270         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
20271         vect_recog_pow_pattern): Likewise.
20272         (vect_pattern_recog_1): Remove declaration.
20273         (widened_name_p): Remove declaration.  Add new argument to specify
20274         whether to check that both types are either signed or unsigned.
20275         (vect_recog_widen_mult_pattern): Update documentation.  Handle
20276         unsigned patterns and multiplication by constants.
20277         (vect_pattern_recog_1): Update vect_recog_func references.  Use
20278         statement information from the statement returned from pattern
20279         detection functions.
20280         (vect_pattern_recog): Update vect_recog_func reference.
20281         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
20282         multiplication by a constant use the type of the other operand.
20283
20284 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
20285
20286         PR rtl-optimization/49145
20287         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
20288
20289 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
20290
20291         PR debug/49262
20292         * dwarf2out.c (native_encode_initializer): Decrement count in each
20293         iteration.
20294
20295         PR debug/49294
20296         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
20297         non-MODE_INT modes.
20298
20299         PR c++/49264
20300         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
20301         if stmt folded into nothing.
20302         * tree-inline.c (fold_marked_statements): If a builtin at the end of
20303         a bb folded into nothing, just update cgraph edges and move to next bb.
20304         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
20305         to be NULL.  Don't compute count and frequency if new_call is NULL.
20306
20307 2011-06-04  Diego Novillo  <dnovillo@google.com>
20308
20309         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
20310         (cgraph.o): Likewise.
20311         (cgraphunit.o): Likewise.
20312         * cgraphunit.c: Include lto-streamer.h
20313         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
20314         if LTO is enabled.
20315         * lto-streamer-in.c (unpack_value_fields): Call
20316         streamer_hooks.unpack_value_fields if set.
20317         (lto_materialize_tree): For unhandled nodes, first try to
20318         call lto_streamer_hooks.alloc_tree, if it exists.
20319         (lto_input_ts_decl_common_tree_pointers): Move reading of
20320         DECL_INITIAL to lto_streamer_read_tree.
20321         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
20322         (lto_streamer_read_tree): New.
20323         (lto_reader_init): Rename from lto_init_reader.
20324         Move initialization code to lto/lto.c.
20325         * lto-streamer-out.c (pack_value_fields): Call
20326         streamer_hooks.pack_value_fields if set.
20327         (lto_output_tree_ref): For tree nodes that are not normally indexable,
20328         call streamer_hooks.indexable_with_decls_p before giving up.
20329         (lto_output_ts_decl_common_tree_pointers): Move handling
20330         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
20331         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
20332         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
20333         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
20334         (lto_streamer_write_tree): New.
20335         (lto_output): Call lto_streamer_init directly.
20336         (lto_writer_init): Remove.
20337         * lto-streamer.c (streamer_hooks): New.
20338         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
20339         instead of lto_preload_common_nodes.
20340         (lto_is_streamable): Move from lto-streamer.h
20341         (lto_streamer_hooks_init): New.
20342         (streamer_hooks): New.
20343         (streamer_hooks_init): New.
20344         * lto-streamer.h (struct output_block): Forward declare.
20345         (struct lto_input_block): Likewise.
20346         (struct data_in): Likewise.
20347         (struct bitpack_d): Likewise.
20348         (struct streamer_hooks): Declare.
20349         (streamer_hooks): Declare.
20350         (lto_streamer_hooks_init): Declare.
20351         (lto_streamer_write_tree): Declare.
20352         (lto_streamer_read_tree): Declare.
20353         (streamer_hooks_init): Declare.
20354         (lto_is_streamable): Move to lto-streamer.c
20355
20356 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20357
20358         * longlong.h (smul_ppmm): The resulting register pair contains the
20359         higher order word first.
20360
20361 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20362
20363         PR tree-optimization/46728
20364         * builtins.c (powi_table): Remove.
20365         (powi_lookup_cost): Remove.
20366         (powi_cost): Remove.
20367         (expand_powi_1): Remove.
20368         (expand_powi): Remove.
20369         (expand_builtin_pow_root): Remove.
20370         (expand_builtin_pow): Remove.
20371         (expand_builtin_powi): Eliminate handling of constant exponent.
20372         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
20373
20374 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20375
20376         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
20377
20378 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20379
20380         * dce.c (reset_unmarked_insns_debug_uses): New.
20381         (delete_unmarked_insns): Skip debug insns.
20382         (prescan_insns_for_dce): Likewise.
20383         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
20384         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
20385         active reg can be found.
20386         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
20387         (convert_regs_1): Use it.
20388
20389 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20390
20391         * tree-pretty-print.c (dump_function_header): Add flags.
20392         Don't dump decl_uid with nouid.
20393         * tree-pretty-print.h (dump_function_header): Adjust.
20394         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
20395         * passes.c (pass_init_dump_file): Pass dump_flags on.
20396         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
20397
20398 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20399
20400         PR bootstrap/49270
20401         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
20402
20403 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
20404
20405         PR tree-optimization/49243
20406         * calls.c (setjmp_call_p): Also check if fndecl has the
20407         returns_twice attribute.
20408
20409 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20410
20411         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
20412         -ffast-math etc.
20413
20414 2011-06-06  Richard Henderson  <rth@redhat.com>
20415             Georg-Johann Lay  <avr@gjlay.de>
20416
20417         PR target/42210
20418         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
20419         New predicates.
20420         * config/avr/avr.md ("insv"): New insn expander.
20421         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
20422         "*insv.not.io", "*insv.reg"): New insns.
20423
20424 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
20425
20426         PR target/49285
20427         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
20428         to nonimmediate_operand from memory_operand for the operand that is to
20429         be forced to memory by the expander.  Lose the constraints.
20430
20431 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
20432
20433         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
20434         EH return when delayed branches are disabled.
20435
20436 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
20437
20438         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
20439         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
20440         calculation.
20441         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
20442         Simplify MODE_V1DF and MODE_V2SF handling.
20443         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
20444         Simplify MODE_SF handling.
20445
20446 2011-06-04  Jan Hubicka  <jh@suse.cz>
20447
20448         PR tree-optimization/48893
20449         PR tree-optimization/49091
20450         PR tree-optimization/49179
20451         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
20452         Bounds check.
20453
20454 2011-06-04  Jan Hubicka  <jh@suse.cz>
20455
20456         PR lto/48954
20457         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
20458         bitmaps.
20459
20460 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
20461
20462         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
20463
20464 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
20465
20466         PR target/49281
20467         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
20468         to be strictly smaller than 1 << shiftcount.
20469
20470 2011-06-04  Jan Hubicka  <jh@suse.cz>
20471
20472         PR tree-optimize/48929
20473         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
20474         of empty predicate.
20475
20476 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
20477
20478         PR debug/48333
20479         * calls.c (emit_call_1): Prefer the __builtin declaration of
20480         builtin functions.
20481
20482 2011-06-03   Diego Novillo  <dnovillo@google.com>
20483
20484         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
20485         (lto_input_tree_pointers): Likewise.
20486         * lto-streamer-out.c (pack_value_fields): Likewise.
20487         (lto_output_tree_pointers): Likewise.
20488         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
20489         and OPTIMIZATION_NODE.
20490
20491 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20492
20493         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
20494         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
20495         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
20496         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
20497         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
20498         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
20499         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
20500         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
20501         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
20502         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
20503         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
20504         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
20505         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
20506         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
20507         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
20508         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
20509         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
20510         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
20511         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
20512         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
20513         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
20514         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
20515         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
20516         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
20517         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
20518         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
20519         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
20520         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
20521         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
20522         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
20523         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
20524         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
20525         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
20526         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
20527         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
20528         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
20529         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
20530         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
20531         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
20532         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
20533         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
20534         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
20535         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
20536         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
20537         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
20538         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
20539         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
20540         * system.h (MD_UNWIND_SUPPORT): Poison.
20541         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
20542         * doc/tm.texi: Regenerate.
20543         * unwind-dw2.c: Include md-unwind-support.h instead of
20544         MD_UNWIND_SUPPORT.
20545         * config/ia64/unwind-ia64.c: Likewise.
20546         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
20547
20548 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
20549
20550         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
20551
20552 2011-06-03  Richard Henderson  <rth@redhat.com>
20553             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20554
20555         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
20556         (sigill_hdlr): Correct insn, insn size.
20557         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
20558
20559 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20560
20561         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
20562         t-slibgcc-dummy.
20563         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
20564         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
20565         * config/mips/t-iris: Remove.
20566         * config/mips/t-irix6: New file.
20567         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
20568
20569 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20570
20571         * Makefile.in (LIB2ADDEHDEP): Remove.
20572         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
20573         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
20574         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
20575         * config/t-darwin (LIB2ADDEHDEP): Remove.
20576         * config/t-freebsd (LIB2ADDEHDEP): Remove.
20577         * config/t-linux (LIB2ADDEHDEP): Remove.
20578
20579 2011-06-03  Diego Novillo  <dnovillo@google.com>
20580
20581         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
20582         (lto_register_var_decl_in_symtab): Likewise.
20583         (lto_register_function_decl_in_symtab): Likewise.
20584         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
20585         logic to uniquify_nodes.
20586
20587 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20588
20589         * config/alpha/t-osf5: Remove.
20590         * config/alpha/t-osf-pthread: Remove.
20591         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
20592         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
20593
20594 2011-06-03  Julian Brown  <julian@codesourcery.com>
20595
20596         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
20597         (strongarm1110): Use strongarm tuning.
20598         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
20599         * config/arm/arm.c (arm_strongarm_tune): New.
20600         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
20601         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
20602         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
20603         setting, using previous defaults or 1 for Cortex-A5.
20604         (arm_option_override): Set max_insns_skipped from current tuning.
20605
20606 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
20607
20608         * doc/install.texi (Options specification): Document --with-specs.
20609
20610 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20611
20612         * config/arm/neon.md (orndi3_neon): Actually split it.
20613
20614 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
20615
20616         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
20617         * var-tracking.c (reverse_op): Limite recurse depth to 5.
20618
20619 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
20620
20621         PR debug/47590
20622         * target.def (delay_sched2, delay_vartrack): New.
20623         * doc/tm.texi.in: Update.
20624         * doc/tm.texi: Rebuild.
20625         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
20626         * var-tracking.c (gate_handle_var_tracking): Likewise.
20627         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
20628         (bfin_flag_var_tracking): Drop.
20629         (output_file_start): Don't save and override flag_var_tracking.
20630         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
20631         (bfin_reorg): Test original variables.
20632         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
20633         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
20634         (ia64_flag_var_tracking): Drop.
20635         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
20636         (ia64_file_start): Don't save and override flag_var_tracking.
20637         (ia64_override_options_after_change): Ditto
20638         flag_schedule_insns_after_reload.
20639         (ia64_reorg): Test original variables.
20640         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
20641         (picochip_flag_var_tracking): Drop.
20642         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
20643         (picochip_option_override): Don't save and override
20644         flag_schedule_insns_after_reload.
20645         (picochip_asm_file_start): Ditto flag_var_tracking.
20646         (picochip_reorg): Test original variables.
20647         * config/spu/spu.c (spu_flag_var_tracking): Drop.
20648         (TARGET_DELAY_VARTRACK): Define.
20649         (spu_var_tracking): New.
20650         (spu_machine_dependent_reorg): Call it.
20651         (asm_file_start): Don't save and override flag_var_tracking.
20652
20653 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
20654
20655         PR target/49163
20656         * config/sh/predicates.md (general_movsrc_operand): Return 0
20657         for memory and memory subreg of which address is an invalid
20658         indexed address for QI and HImode.
20659         (general_movdst_operand): Likewise.
20660
20661 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
20662
20663         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
20664         edges only, when there is a non-local label in the function.
20665         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
20666
20667 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
20668
20669         * config/i386/constraints.md (Y3): New register constraint.
20670         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
20671         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
20672         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
20673         *sse2_interleave_lowv2df.
20674
20675 2011-06-02  Julian Brown  <julian@codesourcery.com>
20676
20677         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
20678         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
20679         (arm_cortex_a5_tune): New.
20680
20681 2011-06-02  Julian Brown  <julian@codesourcery.com>
20682
20683         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
20684         * config/arm/arm.c (arm_default_branch_cost): New.
20685         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
20686         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
20687         (arm_fa726_tune): Set branch_cost field using
20688         arm_default_branch_cost.
20689         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
20690         current_tune structure.
20691         * dojump.c (tm_p.h): Include file.
20692
20693 2011-06-02  Julian Brown  <julian@codesourcery.com>
20694
20695         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
20696         tuning.
20697         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
20698         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
20699         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
20700         field.
20701         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
20702         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
20703         (arm_fa726te_tune): Add prefer_constant_pool setting.
20704         (arm_v6t2_tune, arm_cortex_tune): New.
20705         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
20706         prefer_constant_pool setting.
20707
20708 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
20709
20710         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
20711         switch statement.
20712         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
20713         (*movdf_internal) <case 6,7,8>: Ditto.
20714
20715         * config/i386/constraints.md (Y4): New register constraint.
20716         * config/i386/sse.md (vec_set<mode>_0): Merge with
20717         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
20718         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
20719         *vec_extractv2di_1_sse.
20720         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
20721         and *vec_concatv2di_rex64_sse.
20722
20723 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
20724
20725         PR target/48807
20726         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
20727         of cgraph_local_info for null before attempting to use it.
20728
20729 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
20730
20731         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
20732         (current_function_dynamic_alloc_count): Delete.
20733         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
20734         (expand_builtin_nonlocal_goto): Remove obsolete comment.
20735         (expand_builtin_update_setjmp_buf): Remove dead code.
20736         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
20737         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
20738         support.
20739         * function.c (instantiate_virtual_regs): Likewise.
20740         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
20741         for a block with a single abnormal incoming edge.
20742         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
20743         (SETJMP_VIA_SAVE_AREA): Delete.
20744         * config/sparc/sparc-protos.h (load_got_register): Declare.
20745         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
20746         (load_got_register): Make global.
20747         (sparc_frame_pointer_required): Add 'static'.
20748         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
20749         (sparc_builtin_setjmp_frame_value): New function.
20750         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
20751         (save_stack_nonlocal): New expander.
20752         (restore_stack_nonlocal): Likewise.
20753         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
20754         (nonlocal_goto_internal): New insn.
20755         (goto_handler_and_restore): Delete.
20756         (builtin_setjmp_setup): Likewise.
20757         (do_builtin_setjmp_setup): Likewise.
20758         (setjmp): Likewise.
20759         (builtin_setjmp_receiver): New expander.
20760
20761 2011-06-01  David Li  <davidxl@google.com>
20762
20763         PR middle-end/49261
20764         * tree-pretty-print.c (dump_function_header): Format cleanup.
20765
20766 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
20767
20768         PR target/49238
20769         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
20770         needed when original operands are used for msw_skip comparison.
20771
20772 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
20773
20774         PR debug/49250
20775         * var-tracking.c (add_uses, add_stores): Don't call
20776         cselib_subst_to_values on ENTRY_VALUE.
20777
20778 2011-06-01  Diego Novillo  <dnovillo@google.com>
20779
20780         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
20781         output_record_start with LTO_null instead of output_zero.
20782         (lto_output_ts_binfo_tree_pointers): Likewise.
20783         (lto_output_tree): Likewise.
20784         (output_eh_try_list): Likewise.
20785         (output_eh_region): Likewise.
20786         (output_eh_lp): Likewise.
20787         (output_eh_regions): Likewise.
20788         (output_bb): Likewise.
20789         (output_function): Likewise.
20790         (output_unreferenced_globals): Likewise.
20791         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
20792         instead of NUM_TREE_CODES.
20793         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
20794         (lto_output_int_in_range): Change << to >> when shifting VAL.
20795
20796 2011-06-01  Diego Novillo  <dnovillo@google.com>
20797
20798         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
20799         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
20800
20801 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
20802
20803         PR target/45074
20804         * optabs.h (valid_multiword_target_p): Declare.
20805         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
20806         doing multi-word operations.
20807         * optabs.c (expand_binop): Likewise.
20808         (expand_doubleword_bswap): Likewise.
20809         (expand_absneg_bit): Likewise.
20810         (expand_unop): Likewise.
20811         (expand_copysign_bit): Likewise.
20812         (multiword_target_p): New function.
20813
20814 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
20815
20816         PR rtl-optimization/48830
20817         PR rtl-optimization/48808
20818         PR rtl-optimization/48792
20819         * reload.c (push_reload): Check contains_reg_of_mode.
20820         * reload1.c (strip_paradoxical_subreg): New function.
20821         (gen_reload_chain_without_interm_reg_p): Use it to handle
20822         paradoxical subregs.
20823         (emit_output_reload_insns, gen_reload): Likewise.
20824
20825 2011-06-01  David Li  <davidxl@google.com>
20826
20827         * predict.c : Change pass name
20828         * ipa.c: Ditto.
20829         * dce.c: Ditto.
20830         * tree-profile.c: Ditto.
20831         * except.c: Ditto.
20832
20833 2011-06-01  David Li  <davidxl@google.com>
20834
20835         * tree-pretty-print.c (dump_function_header): New function.
20836         * final.c (rest_of_clean_state): Use header dumper.
20837         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
20838         * passes.c (pass_init_dump_file): Use header dumper.
20839
20840 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
20841
20842         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
20843         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
20844         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
20845         New functions.
20846         (mem_loc_descriptor): Use them.
20847
20848         * var-tracking.c (create_entry_value): New function.
20849         (vt_add_function_parameter): Use it.
20850
20851 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20852
20853         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
20854         Include <signal.h>, <ucontext.h>.
20855         (sigill_caught): Define.
20856         (sigill_hdlr): New function.
20857         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
20858         insns can be executed.
20859         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
20860         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
20861
20862 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20863
20864         * config/t-slibgcc-darwin: Move to ...
20865         * config/t-slibgcc-dummy: ... this.  Clarify comments.
20866         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
20867         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
20868         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
20869         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
20870         Remove i386/t-crtstuff from tmake_file.
20871         (i[34567]86-*-solaris2*): Remove t-svr4,
20872         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
20873         t-slibgcc-dummy.
20874         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
20875         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
20876         sparc/t-crtfm from tmake_file.
20877         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
20878         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
20879         Remove extra_parts.
20880         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
20881         * config/i386/t-nwld (SHLIB_LINK): Remove.
20882         * config/i386/t-rtems-i386: Rename to ...
20883         * config/i386/t-rtems: ... this.
20884         ($(T)crti.o, $(T)crtn.o): Remove.
20885         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
20886         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
20887         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
20888         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
20889         EXTRA_MULTILIB_PARTS): Remove.
20890         * config/sparc/t-sol2-64: Likewise.
20891         * config/sparc/t-sol2: Remove.
20892         * config/sparc/t-crtin: Remove.
20893         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
20894         * config/i386/gmon-sol2.c: Remove.
20895         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
20896         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
20897         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
20898         * config/i386/sol2-gc1.asm: Remove.
20899         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
20900         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
20901         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
20902         * config/t-slibgcc-sld: Remove.
20903
20904 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
20905
20906         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
20907         base_type_for_mode with op_mode instead of mode.
20908
20909 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
20910
20911         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
20912         Cortex-A15.
20913         * config/arm/arm-tune.md: Regenerate.
20914         * config/arm/arm-tables.opt: Regenerate.
20915         * config/arm/arm.c (FL_DIV): Rename...
20916         (FL_THUMB_DIV): ... to this.
20917         (FL_ARM_DIV): Define.
20918         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
20919         (arm_arch_hwdiv): Remove.
20920         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
20921         (arm_issue_rate): Add cortexr5.
20922         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
20923         __ARM_ARCH_EXT_IDIV__.
20924         (TARGET_IDIV): Define.
20925         (arm_arch_hwdiv): Remove.
20926         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
20927         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
20928         (divsi3, udivsi3): New patterns.
20929         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
20930         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
20931
20932 2011-06-01  Martin Jambor  <mjambor@suse.cz>
20933
20934         * ipa-utils.c (ipa_dfs_info): New field scc_no.
20935         * ipa-utils.c (searchc): Set scc_no.
20936
20937 2011-06-01  Martin Jambor  <mjambor@suse.cz>
20938
20939         * ipa-utils.c (searchc_env): New field allow_overwritable.
20940         (searchc): do not ignore edges to overwritable nodes if indicated
20941         by env->allow_overwritable.
20942         (ipa_reduced_postorder): Set env.allow_overwritable.
20943
20944 2011-06-01  Richard Guenther  <rguenther@suse.de>
20945
20946         * tree.c (free_lang_data): Do not reset boolean_type_node nor
20947         char_type_node.
20948         * lto-streamer.c (lto_record_common_node): Take node pointer,
20949         do not register types.
20950         (lto_preload_common_nodes): Explicitly skip preloading nodes
20951         that differ between frontends.
20952
20953 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
20954
20955         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
20956         NON_FLOAT_REGS.
20957
20958 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
20959
20960         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
20961         parameter value for dump. Dump cost on outermost call only.
20962         (rs6000_memory_move_cost): Dump cost on outermost call only.
20963
20964 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
20965
20966         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
20967         DW_OP_GNU_convert ops.
20968
20969         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
20970         cselib_preserve_constants.
20971         (cselib_lookup_1): If cselib_preserve_constants,
20972         a new VALUE is being created for REG and there is a VALUE for the
20973         same register in wider mode, add another loc with lowpart SUBREG of
20974         the wider VALUE.
20975         (cselib_subst_to_values): Handle ENTRY_VALUE.
20976         * var-tracking.c  (replace_expr_with_values): Return NULL for
20977         ENTRY_VALUE too.
20978         * dwarf2out.c (convert_descriptor_to_signed): New function.
20979         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
20980         instead of two shifts.
20981         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
20982         the right mode if needed.
20983         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
20984         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
20985         convert_descriptor_to_signed.
20986         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
20987         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
20988
20989         PR target/48688
20990         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
20991
20992 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
20993
20994         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
20995         of X87MODEI12 and SWI48x instead of SSEMODEI24.
20996         (SWI248x): New mode iterator, rename from X87MODEI.
20997         (X87MODEI): Remove mode iterator.
20998         (X87MODEI12): Ditto.
20999         (SSEMODEI24): Ditto.
21000
21001 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
21002
21003         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
21004         * doc/invoke.texi: Document max-vartrack-expr-depth.
21005         * var-tracking.c (EXPR_DEPTH): New.
21006         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
21007
21008 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
21009
21010         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
21011         * config/i386/sse.md: Add n to negated FMA pattern names.
21012
21013 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
21014
21015         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
21016
21017 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
21018
21019         * gengtype-state.c (read_state_params_structs): Initialize previous.
21020
21021 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
21022
21023         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
21024         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
21025
21026 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
21027
21028         * config/i386/i386.md (*movtf_internal): Avoid allocating general
21029         registers.  Penalize F*r->o alternative to prevent partial memory
21030         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
21031         CONST_DOUBLE immediates when optimizing function for size.  Do not move
21032         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
21033         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
21034         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
21035         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
21036         alternatives.
21037         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
21038
21039         (fp_register_operand splitters): Use fp_register_operand
21040         constraint.  Do not use FP_REG_P in insn condition.
21041         (any_fp_register_operand splitters): Use any_fp_register_operand
21042         constraint.  Do not use ANY_FP_REG_P in insn condition.
21043
21044 2011-05-31  Jan Hubicka  <jh@suse.cz>
21045
21046         * cgraph.h (cgraph_inline_failed_t): Give enum a name
21047         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
21048         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
21049         (lto_output_edge): Use output_enum and var_len_unsigned.
21050         (lto_output_varpool_node): Likewise.
21051         (input_overwrite_node): Do not take resolution parameter;
21052         extract it from a bitpack.
21053         (input_node): Do not read resolution; use input_enum and
21054         var_len_unsigned.
21055         (input_varpool_node): Likewise.
21056         (input_edge): Likewise.
21057         (input_cgraph_1): Likewise.
21058
21059 2011-05-31  Richard Guenther  <rguenther@suse.de>
21060
21061         * gimple.c (gimple_register_canonical_type): Do not register
21062         any types via gimple_register_type.
21063
21064 2011-05-31  Jan Hubicka  <jh@suse.cz>
21065
21066         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
21067         of thunks.
21068
21069 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
21070
21071         PR rtl-optimization/49235
21072         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
21073         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
21074
21075 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
21076
21077         PR tree-optimization/49093
21078         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
21079         data references.
21080
21081 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
21082
21083         PR debug/49047
21084         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
21085         for concrete functions containing the code of cloned functions.
21086
21087 2011-05-31  Richard Guenther  <rguenther@suse.de>
21088
21089         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
21090         to ...
21091         (forward_propagate_into_comparison_1): ... this.
21092         (forward_propagate_comparison): Rename to ...
21093         (forward_propagate_into_comparison): ... this.  Split out
21094         real forward propagation code to ...
21095         (forward_propagate_comparison): ... this.
21096         (forward_propagate_into_gimple_cond): Remove looping.
21097         (forward_propagate_into_cond): Likewise.
21098         (simplify_not_neg_expr): Return whether we have done something.
21099         (simplify_gimple_switch): Likewise.
21100         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
21101         (ssa_forward_propagate_and_combine): ... this.  Re-structure
21102         to do a forward forward-propagation walk on BBs and a backward
21103         stmt combining walk on BBs.  Consistently re-scan changed statements.
21104         (pass_forwprop): Adjust.
21105
21106 2011-05-30  Ian Lance Taylor  <iant@google.com>
21107
21108         * godump.c (go_format_type): Correct length of name added to
21109         obstack for anonymous field.
21110
21111 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
21112
21113         PR target/49186
21114         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
21115         part of the second operand is 0.
21116
21117 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
21118
21119         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
21120         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
21121         to memory for !TARGET_MEMORY_MISMATCH_STALL.
21122         (*movdf_internal_rex64): Do not penalize F->r alternative.
21123         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
21124         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
21125         when optimizing function for size.  Do not move CONST_DOUBLEs
21126         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
21127         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
21128         SUBREGs.  Do not check for MEM_P operands in the insn condition,
21129         check for ANY_FP_REGNO_P instead.
21130         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
21131         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
21132         function for speed.
21133         * config/i386/i386.c (ix86_option_override_internal): Do not
21134         set TARGET_INTEGER_DFMODE_MOVES here.
21135
21136 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
21137
21138         PR target/49168
21139         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
21140
21141 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
21142
21143         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
21144         DW_TAG_rvalue_reference_type even for
21145         -gdwarf-4 -fno-debug-types-section.
21146
21147 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21148
21149         PR tree-optimization/46728
21150         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
21151         (build_and_insert_binop): New.
21152         (gimple_expand_builtin_pow): Reorder args for
21153         build_and_insert_call; use build_and_insert_binop; add more
21154         optimizations for fractional exponents.
21155
21156 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
21157
21158         PR bootstrap/49190
21159
21160         Revert:
21161         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
21162
21163         * tree.h (struct tree_identifier): Inherit from tree_typed, not
21164         tree_common.
21165         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
21166         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
21167         TS_BASE instead of TS_COMMON.
21168         * varasm.c (assemble_name): Remove assert.
21169
21170 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
21171
21172         * config.gcc: Keep obselete list sorted.
21173
21174 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
21175             Eric Botcazou  <ebotcazou@adacore.com>
21176
21177         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
21178         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
21179         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
21180         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
21181         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
21182
21183 2011-05-30  Richard Guenther  <rguenther@suse.de>
21184
21185         * gimple.c (gimple_types_compatible_p_1): Compare record
21186         and union type members properly.
21187
21188 2011-05-30  Richard Guenther  <rguenther@suse.de>
21189
21190         PR tree-optimization/49210
21191         * ipa-split.c (split_function): Care for the case where the call
21192         result is not trivially convertible to the result holding variable.
21193
21194 2011-05-30  Richard Guenther  <rguenther@suse.de>
21195
21196         PR tree-optimization/49218
21197         * tree-vrp.c (adjust_range_with_scev): Properly check whether
21198         overflow occured.
21199
21200 2011-05-30  Richard Guenther  <rguenther@suse.de>
21201
21202         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
21203         New function split out from ...
21204         (forward_propagate_into_gimple_cond): ... here.  Adjust.
21205         (forward_propagate_into_cond): Likewise.
21206         (forward_propagate_comparison): Also propagate into
21207         comparisons on assignment RHS.  Change return value to
21208         behave similar to forward_propagate_into_cond.
21209         (tree_ssa_forward_propagate_single_use_vars): Handle
21210         strict-overflow warnings properly for forward_propagate_comparison.
21211
21212 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21213
21214         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
21215         from plugin linker.
21216         * configure: Regenerate.
21217
21218 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
21219
21220         PR tree-optimization/49199
21221         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
21222         non-reduction operands are either defined in the loop or by induction.
21223
21224 2011-05-29  Xinliang David Li  <davidxl@google.com>
21225
21226         * opts-global.c (handle_common_deferred_options): Handle new options.
21227         * passes.c (register_one_dump_file): Call register_pass_name.
21228         (execute_one_pass): Check explicit enable/disable flag.
21229         (passr_hash): New function.
21230         (passr_eq): Ditto.
21231         (register_pass_name): Ditto.
21232         (get_pass_by_name): Ditto.
21233         (pass_hash): Ditto.
21234         (pass_eq): Ditto.
21235         (enable_pass): Ditto.
21236         (disable_pass): Ditto.
21237         (is_pass_explicitly_enabled_or_disabled): Ditto.
21238
21239 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
21240
21241         * config/i386/i386.md (*movoi_internal_avx): Use
21242         standard_sse_constant_opcode for alternative 0.
21243         (*movti_internal_sse): Ditto.
21244         (*movti_internal_rex64): Use standard_sse_constant_opcode for
21245         alternative 2.
21246         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
21247         sselog1 type moves.
21248         (*movsi_internal): Ditto.
21249         (*movdi_internal): Ditto.  Add ssecvt type moves.
21250
21251 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
21252
21253         PR target/48830
21254         * rtlanal.c (simplify_subreg_regno): Adjust comment.
21255
21256 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
21257
21258         PR rtl-optimization/49095
21259         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
21260         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
21261
21262 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
21263
21264         PR target/43995
21265         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
21266         recurse_p argument.  Only follow register copies if it is set,
21267         and prevent mips_find_pic_call_symbol from recursing.
21268         (mips_find_pic_call_symbol): Add a recurse_p argument.
21269         Pass it to mips_pic_call_symbol_from_set.
21270         (mips_annotate_pic_calls): Update accordingly.
21271
21272 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
21273
21274         * emit-rtl.c (try_split): Use a loop to search for
21275         NOTE_INSN_CALL_ARG_LOCATIONs.
21276
21277 2011-05-29  Richard Guenther  <rguenther@suse.de>
21278
21279         PR tree-optimization/49217
21280         * ipa-pure-const.c (propagate_pure_const): Fix typos.
21281
21282 2011-05-28  Jan Hubicka  <jh@suse.cz>
21283
21284         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
21285         length.
21286         (string_slot_free): Remove
21287         (create_output_block): Initialize obstack.
21288         (destroy_output_block): Free obstack.
21289         (lto_string_index): Add PERSISTENT parameter; do not duplicate
21290         the string unless it needs to be added into the hash.
21291         (lto_output_string_with_length): Add persistent attribute;
21292         handle NULL strings.
21293         (lto_output_string): Add PERSISTENT parameter.
21294         (output_string_cst, output_identifier): Simplify.
21295         (lto_output_location_bitpack): Update.
21296         (lto_output_builtin_tree): Update.
21297         * lto-streamer.h (struct output_block): Add obstack.
21298         (lto_output_string, lto_output_string_with_length): Remove
21299         declarations; functions are static now.
21300
21301 2011-05-28  Jan Hubicka  <jh@suse.cz>
21302
21303         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
21304         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
21305         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
21306         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
21307         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
21308         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
21309         unpack_ts_decl_with_vis_value_fields,
21310         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
21311         lto_get_builtin_tree): Use enum and variable length i/o.
21312         * basic-block.h (profile_status_d): Add PROFILE_LAST.
21313         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
21314         New functions.
21315         (bp_pack_enum, bp_unpack_enum): New macros.
21316
21317 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21318
21319         * genrecog.c: Remove redundant forward declarations.
21320
21321 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21322
21323         * config.gcc: Deprecate mips*-*-openbsd*.
21324
21325 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21326
21327         PR bootstrap/49195
21328         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
21329         for match_op_dup.
21330
21331 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
21332
21333         PR middle-end/48981
21334         * gengtype.c (vec_prefix_type): New function.
21335         (note_def_vec): Use vec_prefix_type and change the length
21336         attribute to be based on the prefix.
21337         * vec.c: Include coretypes.h before vec.h.
21338         (struct vec_prefix): Remove.
21339         (vec_gc_p_reserve): Change the offsetof to sizeof.
21340         (vec_gc_p_reserve_exact): Likewise.
21341         (vec_heap_p_reserve): Likewise.
21342         (vec_heap_p_reserve_exact): Likewise.
21343         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
21344         (vec_stack_p_reserve): Change the offsetof to sizeof.
21345         (vec_stack_p_reserve_exact): Likewise.
21346         * vec.h (struct vec_prefix): New struct definition.
21347         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
21348         (VEC_T_GTY(T,B)): Likewise.
21349         (DEF_VEC_FUNC_P(T)): Use prefix field.
21350         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
21351         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
21352
21353 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21354
21355         PR tree-optimization/46728
21356         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
21357         (powi_as_mults): Add gimple_set_location.
21358         (build_and_insert_call): New.
21359         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
21360         0.5, 0.25, 0.75, 1./3., or 1./6.
21361
21362 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
21363
21364         * doc/contrib.texi: Update copyright years.
21365         (Contributors): Add Zdenek Sojka.
21366
21367 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
21368
21369         * c-decl.c (c_push_function_context): Copy the current statement
21370         list stack.
21371         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
21372         (finish_struct): Call building_stmt_list_p instead of checking
21373         cur_stmt_list.
21374         * c-parser.c (c_parser_postfix_expression): Likewise.
21375         * c-typeck.c (c_end_compound_stmt): Likewise.
21376         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
21377         * tree-iterator.c (stmt_list_cache): Change to a VEC.
21378         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
21379         (free_stmt_list): Likewise.
21380         * tree.h (struct tree_statement_list): Include typed_tree instead
21381         of tree_common.
21382         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
21383         as TS_TYPED instead of TS_COMMON.
21384
21385 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21386             Uros Bizjak  <ubizjak@gmail.com>
21387
21388         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
21389         (HAVE_AS_IX86_TLSGDPTL): Define.
21390         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
21391         (HAVE_AS_IX86_TLSLDMPLT): Define.
21392         * configure: Regenerate.
21393         * config.in: Regenerate.
21394         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
21395         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
21396         TARGET_SUN_TLS, use @tlsgdplt or @plt.
21397         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
21398         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
21399         @tlsldmplt or @plt.
21400         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
21401
21402 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
21403
21404         * sched-int.h (struct _haifa_deps_insn_data): New members cond
21405         and reverse_cond.
21406         (INSN_COND, INSN_REVERSE_COND): New macros.
21407         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
21408         once.
21409         (sched_get_condition_with_rev): Cache the results, and look them up
21410         if possible.
21411         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
21412         are clobbered by the current insn.
21413         * target.def (exposed_pipline): New sched data hook.
21414         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
21415         * doc/tm.texi: Regenerate.
21416
21417 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21418
21419         PR tree-optimization/49170
21420         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
21421         sincos or cexp.
21422
21423 2011-05-27  Richard Guenther  <rguenther@suse.de>
21424
21425         PR middle-end/49189
21426         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
21427         of comparisons.
21428
21429 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
21430
21431         * haifa-sched.c (sched_scan_info): Remove.
21432         (schedule_block): Call sched_extend_luids rather than sched_init_luids
21433         with NULL args.
21434         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
21435         Remove functions.
21436         (sched_scan): Remove.
21437         (sched_extend_luids): Renamed from luids_extend_insn and no longer
21438         static.  All callers changed.
21439         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
21440         static.  All callers changed.
21441         (sched_init_luids): Remove all arguments except the first.  All
21442         callers changed.  Don't use sched_scan.
21443         (haifa_init_h_i_d): Likewise.
21444         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
21445         manually rather than using sched_init_luids.  Likewise with
21446         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
21447         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
21448         rather than sched_init_luids with NULL args.
21449         * sel-sched-ir.c (new_insns): Remove variable.
21450         (sched_scan): New static function, previously in haifa-sched.c.  Remove
21451         all arguments but the first two; all callers changed.
21452         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
21453         rather than sched_init_luids.
21454         (sel_init_bbs): Remove second argument.  All callers changed.
21455         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
21456         with NULL arguments.
21457         (create_insn_rtx_from_pattern): Likewise.
21458         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
21459         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
21460         (sched_init_insn_luid, sched_extend_luids): Declare.
21461         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
21462         declarations.
21463
21464 2011-05-27  Richard Guenther  <rguenther@suse.de>
21465
21466         PR middle-end/49177
21467         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
21468         A CMP B ? (T) true : (T) false for non-integral types T again.
21469
21470 2011-05-27  Jan Hubicka  <jh@suse.cz>
21471
21472         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
21473         so 0 means NULL string.
21474         (lto_output_string_with_length): ... here.
21475         (lto_output_string, output_string_cst, output_identifier): Update
21476         handling of NULL strings.
21477         (lto_output_location_bitpack): New function.
21478         (lto_output_location): Use it.
21479         (lto_output_tree_ref): Use output_record_start.
21480         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
21481         len values.
21482         * lto-streamer-in.c (string_for_index): Break out from ...; offset
21483         values by 1.
21484         (input_string_internal): ... here;
21485         (input_string_cst, input_identifier, lto_input_string): Update handling
21486         of NULL strings.
21487         (lto_input_location_bitpack): New function
21488         (lto_input_location): Use it.
21489         (unpack_ts_type_common_value_fields): Pack align & alias in var len
21490         values.
21491         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
21492         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
21493         (bp_pack_value): Sanity check the value range.
21494         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
21495         New functions.
21496         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
21497         New functions.
21498
21499 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
21500
21501         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
21502         call_arg_location instructions down the floor.
21503
21504 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
21505
21506         PR rtl-optimization/49154
21507         * ira.c (setup_pressure_classes): Process class without sublcasses
21508         as a candidate for pressure classes.
21509
21510 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
21511
21512         PR rtl-optimization/48575
21513         * genrecog.c (position_type): New enum.
21514         (position): New structure.
21515         (decision): Use position structure instead of a string.
21516         (root_pos, peep2_insn_pos_list): New variables.
21517         (next_position, compare_positions): New functions.
21518         (new_decision): Use position structures instead of strings.
21519         (maybe_both_true): Likewise.
21520         (change_state): Likewise.
21521         (write_tree): Likewise.
21522         (make_insn_sequence): Likewise.
21523
21524 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
21525
21526         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
21527         TS_BASE instead of TS_COMMON.
21528         (find_decls_types_r): Check for TS_TYPED structure before looking at
21529         TREE_TYPE.
21530         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
21531         Add chain field.
21532         (BLOCK_CHAIN): Use new chain field.
21533
21534 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
21535
21536         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
21537         moves expensive on Power7 also.
21538
21539 2011-05-26  Richard Guenther  <rguenther@suse.de>
21540
21541         * fold-const.c (fold_unary_loc): Remove bogus code.
21542
21543 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
21544
21545         * tree.h (struct tree_identifier): Inherit from tree_typed, not
21546         tree_common.
21547         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
21548         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
21549         TS_BASE instead of TS_COMMON.
21550         * varasm.c (assemble_name): Remove assert.
21551
21552 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
21553
21554         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
21555         substituted first.
21556         * libgcc-std.ver: Delete file.
21557
21558 2011-05-26  Richard Guenther  <rguenther@suse.de>
21559
21560         PR tree-optimization/48702
21561         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
21562         only when we know the base address is within bounds.
21563         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
21564         assume the base address of TARGET_MEM_REFs is in bounds.
21565
21566 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21567
21568         PR target/49099
21569         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
21570         declaration in TARGET_SOLARIS.
21571
21572 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
21573
21574         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
21575         The instruction is then expanded explicitly.
21576         (supported_compare): Callable instruction.
21577         (compare): Likewise.
21578
21579 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
21580
21581         PR c++/49165
21582         * gimplify.c (shortcut_cond_r): Don't special case
21583         COND_EXPRs if they have void type on one of their arms.
21584
21585 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
21586
21587         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
21588         to reduce duplication, and to achieve a slightly more logical order
21589         of operations.
21590
21591 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
21592
21593         PR tree-optimization/49161
21594         * tree-vrp.c (struct case_info): New type.
21595         (compare_case_labels): Sort case_info structs instead of
21596         trees, and not primarily by CASE_LABEL uids but by
21597         label_for_block indexes.
21598         (find_switch_asserts): Put case labels into struct case_info
21599         array instead of TREE_VEC, adjust sorting, compare label_for_block
21600         values instead of CASE_LABELs.
21601
21602 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
21603
21604         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
21605         ("orndi3_neon"): Likewise.
21606         ("bic<mode>3_neon"): Likewise.
21607
21608 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
21609
21610         PR tree-optimization/49038
21611         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
21612         Ensure at least one epilogue iteration if required by data
21613         accesses with gaps.
21614         * tree-vectorizer.h (struct _loop_vec_info): Add new field
21615         to mark loops that require peeling for gaps.
21616         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
21617         (vect_get_known_peeling_cost): Take peeling for gaps into
21618         account.
21619         (vect_transform_loop): Generate epilogue if required by data
21620         access with gaps.
21621         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
21622         loop as requiring an epilogue if there are gaps in the end of
21623         the strided group.
21624
21625 2011-05-25  Ian Lance Taylor  <iant@google.com>
21626
21627         * godump.c (go_format_type): Output the first field with a usable
21628         Go type, if any.
21629
21630 2011-05-25  Ian Lance Taylor  <iant@google.com>
21631
21632         * godump.c (go_format_type): Check for invalid type names, pointer
21633         target types, and struct field types.
21634
21635 2011-05-25  Jason Merrill  <jason@redhat.com>
21636
21637         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
21638
21639 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
21640
21641         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
21642
21643 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
21644
21645         * config/i386/i386.md (*movqi_extv_1)): Put back
21646         "register_operand" check in "type" calculation.
21647         (*movqi_extzv_2): Likewise.
21648
21649 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
21650
21651         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
21652
21653 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
21654
21655         PR bootstrap/49160
21656         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
21657         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
21658         __divxc3, __divtc3): Wrap definitions in #ifndef.
21659
21660 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
21661
21662         PR target/49142
21663         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
21664         "register_operand" check and replace q_regs_operand with
21665         QIreg_operand in "type" calculation.
21666         (*movqi_extv_1): Likewise.
21667         (*movqi_extzv_2_rex64): Likewise.
21668         (*movqi_extzv_2): Likewise.
21669
21670         * config/i386/predicates.md (QIreg_operand): New.
21671
21672 2011-05-25  Richard Guenther  <rguenther@suse.de>
21673
21674         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
21675         type-based offset disambiguation, streamline MEM_REF and
21676         TARGET_MEM_REF handling.
21677
21678 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
21679
21680         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
21681         (bdesc_special_args): Add pause intrinsic.
21682
21683         * config/i386/i386.md (UNSPEC_PAUSE): New.
21684         (pause): Likewise.
21685         (*pause): Likewise.
21686         * config/i386/ia32intrin.h (__pause): Likewise.
21687
21688         * doc/extend.texi (X86 Built-in Functions): Add documentation for
21689         pause intrinsic.
21690
21691 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21692
21693         PR tree-optimization/46728
21694         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
21695         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
21696
21697 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
21698
21699         * tree.h (struct tree_exp): Inherit from struct tree_typed.
21700         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
21701         instead of TS_COMMON.
21702
21703 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
21704
21705         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
21706         LIBGCC2_GNU_PREFIX is defined.
21707         (__N): New macro.
21708         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
21709         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
21710         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
21711         __clz_tab): Define using __N.
21712         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
21713         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
21714         * target.def (libfunc_gnu_prefix): New hook.
21715         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
21716         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
21717         * doc/tm.texi: Regenerate.
21718         * system.h (LIBGCC2_GNU_PREFIX): Poison.
21719         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
21720         account.
21721         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
21722         (init_optabs): Likewise for the bswap libfuncs.
21723         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
21724         and divide.
21725         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
21726         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
21727         * libgcc-std.ver: Remove.
21728         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
21729         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
21730         libgcc-std.ver.
21731         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
21732         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
21733         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
21734         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
21735         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
21736         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
21737         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
21738         * config/fixed-bit.h (FIXED_OP): Define differently depending on
21739         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
21740         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
21741
21742 2011-05-25  Jan Hubicka  <jh@suse.cz>
21743
21744         * lto-streamer-out.c (output_record_start): Use lto_output_enum
21745         (lto_output_tree): Use output_record_start.
21746         * lto-streamer-in.c (input_record_start): Use lto_input_enum
21747         (lto_get_pickled_tree): Use input_record_start.
21748         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
21749         (lto_value_range_error): New function.
21750         * lto-streamer.h (lto_value_range_error): Declare.
21751         (lto_output_int_in_range, lto_input_int_in_range): New functions.
21752         (lto_output_enum, lto_input_enum): New macros.
21753
21754 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
21755
21756         * common.opt (flag_stack_usage_info): New variable.
21757         (-Wstack-usage): New option.
21758         * doc/invoke.texi (Warning options): Document -Wstack-usage.
21759         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
21760         <OPT_fstack_usage>: Likewise.
21761         * toplev.c (output_stack_usage): Handle -Wstack-usage.
21762         * calls.c (expand_call): Test flag_stack_usage_info variable instead
21763         of flag_stack_usage.
21764         (emit_library_call_value_1): Likewise.
21765         * explow.c (allocate_dynamic_stack_space): Likewise.
21766         * function.c (instantiate_virtual_regs ): Likewise.
21767         (prepare_function_start): Likewise.
21768         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
21769         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
21770         * config/arm/arm.c (arm_expand_prologue): Likewise.
21771         (thumb1_expand_prologue): Likewise.
21772         * config/avr/avr.c (expand_prologue): Likewise.
21773         * config/i386/i386.c (ix86_expand_prologue): Likewise.
21774         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
21775         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
21776         * config/mips/mips.c (mips_expand_prologue): Likewise.
21777         * config/pa/pa.c (hppa_expand_prologue): Likewise.
21778         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
21779         * config/s390/s390.c (s390_emit_prologue): Likewise.
21780         * config/sh/sh.c (sh_expand_prologue): Likewise.
21781         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
21782         * config/spu/spu.c (spu_expand_prologue): Likewise.
21783
21784 2011-05-25  Richard Guenther  <rguenther@suse.de>
21785
21786         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
21787         (gimple_canonical_types_compatible_p): Likewise.
21788
21789 2011-05-25  Jan Hubicka  <jh@suse.cz>
21790
21791         PR middle-end/49062
21792         * ipa.c (function_and_variable_visibility): Only add to same
21793         comdat group list if DECL_ONE_ONLY.
21794
21795 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
21796
21797         PR rtl-optimization/49014
21798         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
21799
21800 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
21801
21802         PR target/49128
21803         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
21804
21805 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
21806
21807         PR rtl-optimization/48757
21808         * ira-build.c (loop_with_eh_edge_p): Rename to
21809         loop_with_complex_edge_p, check edges on complexity, make function
21810         conditional.
21811         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
21812         conditional.
21813
21814 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
21815
21816         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
21817         force flag_ira_share_save_slots to 0.
21818
21819 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
21820
21821         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
21822         (vt_initialize): Set PROLOGUE_BB unconditionally.
21823         Add block comment about CFA_BASE_RTX machinery.
21824         Reset FP_CFA_OFFSET to -1 on all invalid paths.
21825         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
21826
21827 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
21828
21829         PR objc/48187
21830         * c-parser.c (c_parser_objc_class_instance_variables): More robust
21831         parsing of syntax error in ObjC instance variable lists.  In
21832         particular, avoid an infinite loop if there is a stray ']'.
21833         Updated error message.
21834
21835 2011-05-24  Ian Lance Taylor  <iant@google.com>
21836
21837         * godump.c (go_define): Don't accept a string immediately after
21838         another operand.
21839
21840 2011-05-24  Ian Lance Taylor  <iant@google.com>
21841
21842         * godump.c (struct godump_container): Add invalid_hash field.
21843         (go_format_type): Return false if type is found in invalid_hash.
21844         (go_output_typedef): Add invalid type to invalid_hash.
21845         (go_finish): Create and delete invalid_hash.
21846
21847 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21848
21849         PR tree-optimization/46728
21850         * tree-ssa-math-opts.c (powi_table): New.
21851         (powi_lookup_cost): New.
21852         (powi_cost): New.
21853         (powi_as_mults_1): New.
21854         (powi_as_mults): New.
21855         (gimple_expand_builtin_powi): New.
21856         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
21857         (gate_cse_sincos): Remove sincos/cexp restriction.
21858
21859 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21860
21861         PR target/3746
21862         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
21863         mips-tdump native.
21864         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
21865         * mips-tdump.c: Likewise.
21866
21867 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
21868
21869         PR target/49128
21870         * config/i386/driver-i386.c (host_detect_local_cpu): Always
21871         add -mno-XXX.  Handle FMA.
21872
21873 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
21874
21875         PR rtl-optimization/48633
21876         * ira-build.c (loop_with_eh_edge_p): New function.
21877         (mark_loops_for_removal): Use it.
21878
21879 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
21880
21881         PR rtl-optimization/48971
21882         * ira.c (setup_pressure_classes): Don't check register move cost
21883         for classes with one registers.  Don't add pressure class if there
21884         is a pressure class with the same available hard registers.
21885         Check contains_reg_of_mode.  Fix a typo in collecting
21886         temp_hard_regset.  Ignore hard registers not belonging to a class.
21887
21888 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
21889
21890         PR target/49133
21891         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
21892
21893 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
21894             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21895
21896         PR gcov-profile/48845
21897         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
21898
21899 2011-05-24  Richard Guenther  <rguenther@suse.de>
21900
21901         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
21902         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
21903         (gimple_types_compatible_p_1): Adjust.
21904         (iterative_hash_canonical_type): Do not bother about complete vs.
21905         incomplete types.
21906         (gimple_canonical_types_compatible_p): Likewise.
21907
21908 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21909
21910         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
21911
21912 2011-05-24  Richard Guenther  <rguenther@suse.de>
21913
21914         PR bootstrap/49078
21915         * gimple.c (gimple_register_canonical_type): Revert
21916         previous change.
21917         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
21918         does not for a tree for the case where it matters.  Cache
21919         pointer-type alias-sets.
21920
21921 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
21922
21923         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
21924         (OBJS): Remove options.o, opts-common.o and prefix.o.
21925         (OBJS-libcommon-target): New.
21926         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
21927         (BACKEND): Include libcommon-target.a.
21928         (MOSTLYCLEANFILES): Include libcommon-target.a.
21929         (libcommon-target.a): New.
21930         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
21931         prefix.o.
21932
21933 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
21934
21935         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
21936         parts of output shared with the driver.
21937         * optc-gen.awk: Don't generate parts of output not shared with the
21938         driver.
21939         * opth-gen.awk: Remove GCC_DRIVER conditionals.
21940         * doc/options.texi (SourcerInclude): Mention options-save.c.
21941         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
21942         (OBJS): Add options-save.o.
21943         (options-save.c, options-save.o): New.
21944         (options.o): Update dependencies.
21945         (gcc-options.o): Remove.
21946         (mostlyclean): Remove options-save.c.
21947
21948 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
21949
21950         PR debug/49032
21951         * dbxout.c: Include cgraph.h.
21952         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
21953         and without value expr, return NULL if no varpool node exists for
21954         it or if it is not needed.
21955         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
21956
21957         PR c/49120
21958         * c-decl.c (start_decl): Convert expr to void_type_node.
21959
21960 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
21961
21962         PR rtl-optimization/48826
21963         * emit-rtl.c (try_split): When splitting a call that is followed
21964         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
21965
21966 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
21967
21968         * cfgexpand.c (expand_debug_expr): For unused non-addressable
21969         parameters passed in memory prefer using DECL_INCOMING_RTL over
21970         the pseudos it will be copied into.
21971
21972 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
21973
21974         PR target/47315
21975         * config/i386/i386.c (ix86_option_override_internal): Save the
21976         initial options after checking vzeroupper.
21977
21978 2011-05-23  David Li  <davidxl@google.com>
21979
21980         PR tree-optimization/48988
21981         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
21982         Initialize has_valid_pred for each pred chain.
21983
21984 2011-05-23  Richard Guenther  <rguenther@suse.de>
21985
21986         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
21987         (iterative_hash_gimple_type): Always hash type names.
21988
21989 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
21990
21991         * c-typeck.c (build_function_call_vec): Tweak call to
21992         check_function_arguments.
21993
21994 2011-05-23  Richard Guenther  <rguenther@suse.de>
21995
21996         PR tree-optimization/49115
21997         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
21998         is not necessarily carried out, do not claim it kills the ref.
21999         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
22000
22001 2011-05-23  Richard Guenther  <rguenther@suse.de>
22002
22003         PR middle-end/15419
22004         * builtins.c (fold_builtin_memory_op): Be less restrictive about
22005         what pointer types we accept for folding.
22006
22007 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22008
22009         * gthr-gnat.c: Remove.
22010         * gthr-gnat.h: Remove.
22011         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
22012         * config/t-freebsd (LIB2ADDEH): Likewise.
22013         * config/t-linux (LIB2ADDEH): Likewise.
22014         * config/t-sol2 (LIB2ADDEH): Likewise.
22015         * config/ia64/t-vms (LIB2ADDEH): Likewise.
22016         * configure.ac (target_thread_file): Remove gnat handling.
22017         * configure: Regenerate.
22018         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
22019
22020 2011-05-23  Tristan Gingold  <gingold@adacore.com>
22021             Eric Botcazou  <ebotcazou@adacore.com>
22022
22023         * gcov.c (create_file_names): If no object directory is specified,
22024         keep the directory of the file.
22025
22026 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22027
22028         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
22029         * configure: Regenerate.
22030
22031 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
22032
22033         PR middle-end/48973
22034         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
22035         failed and the comparison has a single bit signed type, use
22036         constm1_rtx instead of const1_rtx for true value.
22037         (do_store_flag): If ops->type is single bit signed type, disable
22038         signel bit test optimization and pass -1 instead of 1 as last
22039         parameter to emit_store_flag_force.
22040
22041 2011-05-23  Tom de Vries  <tom@codesourcery.com>
22042
22043         PR target/45098
22044         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
22045         function.
22046         (infer_loop_bounds_from_undefined): Use new function.
22047
22048 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
22049
22050         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
22051         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
22052         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
22053         and -O0 otherwise.
22054         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
22055
22056 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
22057
22058         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
22059         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
22060         returns true.
22061
22062 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
22063
22064         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
22065
22066 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
22067
22068         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
22069         UNSPEC_MOVE_PIC pattern.
22070
22071 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
22072
22073         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
22074         (sparc-*-rtems*): Likewise.
22075         (sparc64-*-elf*): Likewise.
22076         (sparc64-*-rtems*): Likewise.
22077         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
22078         * config/sparc/t-crtin: New file.
22079         * config/sparc/t-sol2 (crti.o): Delete rule.
22080         (crtn.o): Likewise.
22081         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
22082         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
22083         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
22084         (ENDFILE_SPEC): Add crtn.o.
22085
22086 2011-05-22  Tom de Vries  <tom@codesourcery.com>
22087
22088         PR middle-end/48689
22089         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
22090         CODE_CONTAINS_STRUCT (TS_COMMON).
22091
22092 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
22093
22094         PR middle-end/49029
22095         * expmed.c (extract_fixed_bit_field): Test whether target can be used
22096         only after deciding which mode to use.
22097
22098 2011-05-22  Tom de Vries  <tom@codesourcery.com>
22099
22100         PR target/45098
22101         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
22102         for call to get_shiftadd_cost.
22103
22104 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
22105
22106         PR target/49104
22107         * config/i386/cpuid.h (bit_MMXEXT): New define.
22108
22109 2011-05-22  Nick Clifton  <nickc@redhat.com>
22110
22111         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
22112         initialisation of non-existant args[2] element.  Use args[] array
22113         not arg[] array to pass arguments to build_function_type_list.
22114
22115 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
22116
22117         PR tree-optimization/49087
22118         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
22119
22120 2011-05-21  Jason Merrill  <jason@redhat.com>
22121
22122         PR c++/49092
22123         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
22124         static storage duration.
22125
22126 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
22127
22128         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
22129         frame pointer.
22130
22131 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
22132
22133         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
22134         false if there are call-saved registers here...
22135         (sparc_can_use_return_insn_p): ...but here instead.
22136         (save_or_restore_regs): Fix thinko.
22137         (sparc_expand_prologue): Use current_function_is_leaf.
22138         (sparc_frame_pointer_required): Likewise.
22139
22140 2011-05-21  Nick Clifton  <nickc@redhat.com>
22141
22142         PR target/49098
22143         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
22144
22145 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
22146
22147         * gengtype.c (walk_type): Implemented "atomic" GTY option.
22148         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
22149
22150 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
22151
22152         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
22153         * optc-gen.awk: Move common code to opt-read.awk.
22154         * opth-gen.awk: Likewise.
22155         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
22156
22157 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
22158
22159         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
22160
22161 2011-05-20  Tom de Vries  <tom@codesourcery.com>
22162
22163         PR target/45098
22164         * tree-ssa-loop-ivopts.c: Include expmed.h.
22165         (get_shiftadd_cost): New function.
22166         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
22167
22168 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
22169
22170         PR bootstrap/49086
22171         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
22172         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
22173
22174 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
22175
22176         * Makefile.in: Update comment referring to $(OBJS-common).
22177
22178 2011-05-20  Ian Lance Taylor  <iant@google.com>
22179
22180         * godump.c (go_output_typedef): Put enum constants in the macro
22181         hash table to avoid duplicate Go const definitions.
22182
22183 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
22184
22185         * Makefile.in (LIBDEPS): Add libcommon.a.
22186         (LIBS): Likewise.
22187         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
22188         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
22189         pretty-print.o and version.o.
22190         (OBJS-libcommon): New.
22191         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
22192         (BACKEND): Add libcommon.a.
22193         (MOSTLYCLEANFILES): Likewise.
22194         (libcommon.a): New.
22195         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
22196         (cpp$(exeext)): Likewise.
22197         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
22198         pretty-print.o and input.o.
22199         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
22200         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
22201         (errors.o): Remove.
22202         (mips-tfile): Don't explicitly use version.o.
22203         (mips-tdump): Likewise.
22204         (gcov.o): Depend on $(DIAGNOSTIC_H).
22205         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
22206         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
22207         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
22208         * gcov-dump.c: Include intl.h and diagnostic.h.
22209         (main): Initialize diagnostics.
22210         * gcov.c: Include diagnostic.h.
22211         (fnotice): Remove.
22212         (main): Initialize diagnostics.
22213         * lto-wrapper.c: Include diagnostic.h.
22214         (main): Initialize diagnostics.
22215
22216 2011-05-20  Michael Matz  <matz@suse.de>
22217
22218         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
22219
22220 2011-05-20  Michael Matz  <matz@suse.de>
22221             Richard Guenther  <rguenther@suse.de>
22222
22223         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
22224         use lto_streamer_cache_append directly instead of returning a VEC.
22225         (preload_common_node): Remove.
22226         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
22227         track seen nodes.
22228         (lto_streamer_cache_create): Call lto_preload_common_nodes.
22229
22230 2011-05-20  Richard Guenther  <rguenther@suse.de>
22231
22232         PR tree-optimization/49079
22233         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
22234         MEM_REFs correctly for the trailing array access detection.
22235         Special case constants the same way as decls for overall size
22236         constraining.
22237
22238 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
22239
22240         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
22241         argument expansion.
22242
22243 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
22244
22245         PR tree-optimization/49073
22246         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
22247         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
22248         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
22249
22250 2011-05-20  Richard Guenther  <rguenther@suse.de>
22251
22252         PR middle-end/48849
22253         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
22254         of pointer types the same way the middle-end does.
22255
22256 2011-05-20  Richard Guenther  <rguenther@suse.de>
22257
22258         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
22259         or pointer-to chains.  Delay all fixup to uniquify_nodes.
22260
22261 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
22262
22263         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
22264         (fma4_fmaddsub): Likewise
22265
22266 2011-05-19  Jan Hubicka  <jh@suse.cz>
22267
22268         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
22269         (GIMPLE_TYPE_PAIR_SIZE): New macro.
22270         (type_pair_cache): New static var.
22271         (lookup_type_pair): Use fixed sized custom hash; make inline.
22272         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
22273         calls of lookup_type_pair.
22274         (print_gimple_types_stats): Remove cache stats.
22275         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
22276         and gtc_ob.
22277
22278 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
22279
22280         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
22281         when TARGET_RDRND is active.
22282         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
22283         Generate dummy SImode target register when target is NULL.
22284
22285 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
22286
22287         * config/arm/arm-fpus.def: New.
22288         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
22289         arm-fpus.def.
22290         * config/arm/arm-tables.opt: Regenerate.
22291         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
22292         (arm_option_override): Don't decode FPU name to string here.
22293         * config/arm/arm.opt (mfpu=): Use Enum.
22294         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
22295         Update dependencies.
22296
22297 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
22298
22299         * collect2.c: Include diagnostic.h.
22300         (fatal_perror, fatal, error, fancy_abort): Remove.
22301         (main): Set progname.  Call xmalloc_set_program_name and
22302         diagnostic_initialize.
22303         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
22304         scan_libraries, resolve_lib_name): Call fatal_error instead of
22305         fatal and fatal_perror.
22306         * collect2.h (error, fatal, fatal_perror): Don't declare.
22307         * tlink.c: Include diagnostic-core.h.
22308         (recompile_files): Call fatal_error instead of fatal_perror.
22309         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
22310         pretty-print.o and input.o.
22311         (collect2.o, tlink.o): Update dependencies.
22312
22313 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22314
22315         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
22316
22317 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22318
22319         PR target/40483
22320         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
22321         COMDAT group syntax, both SPARC and x86 variants.
22322         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
22323         * configure: Regenerate.
22324         * config/sol2.h (TARGET_SOLARIS): Define.
22325         (PUSHSECTION_FORMAT): Remove.
22326         (SECTION_NAME_FORMAT): Define.
22327         * config/sol2.c: Include hashtab.h.
22328         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
22329         expansion, using SECTION_NAME_FORMAT.
22330         (solaris_comdat_htab): New variable.
22331         (struct comdat_entry): Define.
22332         (comdat_hash): New function.
22333         (comdat_eq): New function.
22334         (solaris_elf_asm_comdat_section): New function.
22335         (solaris_define_comdat_signature): New function.
22336         (solaris_code_end): New function.
22337         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
22338         (solaris_code_end): Declare.
22339         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
22340         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
22341         solaris_code_end.
22342         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
22343         Remove ATTRIBUTE_UNUSED.
22344         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
22345         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
22346         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
22347         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
22348         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
22349         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
22350         (PUSHSECTION_FORMAT): Remove.
22351         (SECTION_NAME_FORMAT): Redefine.
22352
22353 2011-05-19  Kai Tietz  <ktietz@redhat.com>
22354
22355         * tree-cfg.c (verify_gimple_assign_binary): Barf on
22356         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
22357         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
22358
22359 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
22360             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22361
22362         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
22363
22364 2011-05-19  Richard Guenther  <rguenther@suse.de>
22365
22366         PR middle-end/48985
22367         * tree-object-size.c (addr_object_size): If the pointed-to
22368         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
22369
22370 2011-05-19  Richard Guenther  <rguenther@suse.de>
22371
22372         * gimple.c (gimple_types_compatible_p_1): Compare names of
22373         the types themselves.
22374         (iterative_hash_gimple_type): And hash them that way.
22375         (gimple_register_type_1): If we register a main variant properly
22376         initialize the leader to ourselves.
22377
22378 2011-05-19  Tom de Vries  <tom@codesourcery.com>
22379
22380         PR target/45098
22381         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
22382         get_loop_invariant_expr_id.
22383         (get_loop_invariant_expr_id): Use get_expr_id.
22384         (parm_decl_cost): New function.
22385         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
22386         Improve bound cost estimation.  Use different inv_expr_id for elim and
22387         express cases.
22388
22389 2011-05-19  Tom de Vries  <tom@codesourcery.com>
22390
22391         PR target/45098
22392         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
22393         cost_base.cost == 0.
22394
22395 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
22396
22397         PR target/49002
22398         * config/i386/sse.md
22399         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
22400         load cast.
22401
22402 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
22403
22404         PR tree-optimization/49039
22405         * tree-vrp.c (extract_range_from_binary_expr): For
22406         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
22407         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
22408
22409 2011-05-18  Tom de Vries  <tom@codesourcery.com>
22410
22411         PR target/45098
22412         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
22413
22414 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
22415
22416         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
22417         (*tls_global_dynamic_64): Ditto.
22418         (*tls_local_dynamic_base_32_gnu): Ditto.
22419         (*tls_local_dynamic_base_64): Ditto.
22420         (tls_initial_exec_64_sun): Ditto.
22421
22422 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
22423
22424         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
22425         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
22426         bf592-none.
22427         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
22428         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
22429         * config/bfin/bfin.c (bfin_cpus): Add bf592.
22430         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
22431         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
22432         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
22433         * config/bfin/elf.h (LIB_SPEC): Add bf592.
22434
22435 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
22436
22437         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
22438         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
22439         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
22440         target_thread_pointer, arm_structure_size_boundary, struct
22441         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
22442         struct abi_name, arm_all_abis): Remove.
22443         (arm_option_override) Don't process most enumerated option values here.
22444         Don't process target_fpe_name here.  Work with integer not string for
22445         structure size boundary; use separate diagnostics for each case.
22446         * config/arm/arm.h (enum float_abi_type, enum
22447         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
22448         to arm-opts.h.
22449         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
22450         arm_structure_size_boundary): Remove.
22451         * config/arm/arm.opt (mabi=): Use Enum and Init.
22452         (arm_abi_type): New Enum and EnumValue entries.
22453         (mfloat-abi=): Use Enum and Init.
22454         (float_abi_type): New Enum and EnumValue entries.
22455         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
22456         (mfp16-format=): Use Enum and Init.
22457         (arm_fp16_format_type): New Enum and EnumValue entries.
22458         (mstructure-size-boundary=): Use UInteger and Init.
22459         (mtp=): Use Enum and Init.
22460         (arm_tp_type): New Enum and EnumValue entries.
22461
22462 2011-05-18  Richard Guenther  <rguenther@suse.de>
22463
22464         PR tree-optimization/49018
22465         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
22466         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
22467         gimple_has_side_effects.
22468
22469 2011-05-18  Richard Guenther  <rguenther@suse.de>
22470
22471         * gimple.c (gimple_register_type_1): New function, split out from ...
22472         (gimple_register_type): ... here.  Avoid infinite recursion.
22473
22474 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
22475
22476         PR tree-optimization/41881
22477         * tree-vectorizer.h (struct _loop_vec_info): Add new field
22478         reduction_chains along with a macro for its access.
22479         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
22480         (destroy_loop_vec_info): Free reduction chains.
22481         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
22482         (vect_is_slp_reduction): New function.
22483         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
22484         (vect_create_epilog_for_reduction): Support SLP reduction chains.
22485         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
22486         definition types for reduction chains.
22487         (vect_supported_load_permutation_p): Don't allow permutations for
22488         reduction chains.
22489         (vect_analyze_slp_instance): Support reduction chains.
22490         (vect_analyze_slp): Try to build SLP instance from reduction chains.
22491         (vect_get_constant_vectors):  Handle reduction chains.
22492         (vect_schedule_slp_instance): Mark the first statement of the
22493         reduction chain as reduction.
22494
22495 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
22496
22497         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
22498         names for group elements access.
22499         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
22500         reduction chains as well.  Remove data reference and interleaving
22501         related words from the fields names.
22502         * tree-vect-loop.c (vect_transform_loop): Use new names for group
22503         elements access.
22504         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
22505         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
22506         vect_update_interleaving_chain, vect_same_range_drs,
22507         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
22508         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
22509         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
22510         vect_analyze_group_access, vect_analyze_data_ref_access,
22511         vect_create_data_ref_ptr, vect_transform_strided_load,
22512         vect_record_strided_load_vectors): Likewise.
22513         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
22514         vect_model_load_cost, vectorizable_store, vectorizable_load,
22515         vect_remove_stores, new_stmt_vec_info): Likewise.
22516         * tree-vect-slp.c (vect_build_slp_tree,
22517         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
22518
22519 2011-05-18  Richard Guenther  <rguenther@suse.de>
22520
22521         PR middle-end/48989
22522         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
22523         operand verification.
22524         (verify_gimple_assign_binary): Likewise.
22525         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
22526         to non-1-precision BOOLEAN_TYPEs.
22527
22528 2011-05-18  Tom de Vries  <tom@codesourcery.com>
22529
22530         PR target/45098
22531         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
22532
22533 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
22534
22535         PR tree-optimization/49000
22536         * tree-ssa.c (execute_update_addresses_taken): Call
22537         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
22538         be rewritten and decl has been marked for renaming, reset
22539         the debug stmt.
22540
22541 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
22542
22543         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
22544         enum_opts_set when testing if attributes have set -mfpmath=.
22545
22546 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
22547
22548         * config/mips/mips.c (mips_handle_option): Remove unused variable.
22549
22550 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
22551
22552         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
22553         info->entry with 0
22554         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
22555         id.transform_lang_insert_block with NULL.
22556
22557 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
22558
22559         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
22560         (output_fp_compare): Change args 3 and 4 to bool.
22561         (ix86_expand_call): Change arg 6 to bool.
22562         (ix86_attr_length_immediate_default): Change arg 2 to bool.
22563         (ix86_attr_length_vex_default): Change arg 3 to bool.
22564         * config/i386/i386.md: Update all uses.
22565         * config/i386/i386.c: Ditto.
22566         (ix86_flags_dependent): Change return type to bool.
22567
22568 2011-05-17  Richard Guenther  <rguenther@suse.de>
22569
22570         * gimple.c (type_hash_pair_compare): Fix comparison.
22571
22572 2011-05-17  Richard Guenther  <rguenther@suse.de>
22573
22574         * gimple.c (iterative_hash_gimple_type): Simplify singleton
22575         case some more, fix final hash value of the non-singleton case.
22576
22577 2011-05-17  Richard Guenther  <rguenther@suse.de>
22578
22579         PR bootstrap/49013
22580         Revert
22581         2011-05-16  Richard Guenther  <rguenther@suse.de>
22582
22583         * gimple.c (gimple_types_compatible_p_1): Use names of the
22584         type itself, not its main variant.
22585         (iterative_hash_gimple_type): Likewise.
22586
22587 2011-05-17  Richard Guenther  <rguenther@suse.de>
22588
22589         * gimple.c (gimple_register_canonical_type): Use the main-variant
22590         leader for computing the canonical type.
22591
22592 2011-05-17  Nick Clifton  <nickc@redhat.com>
22593
22594         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
22595         moves.
22596
22597         * config/rx/rx.md: Add peephole to remove redundant extensions
22598         after loads.
22599         (bitset_in_memory): Use rx_restricted_mem_operand.
22600         (bitinvert_in_memory): Likewise.
22601         (bitclr_in_memory): Likewise.
22602
22603 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
22604             Nick Clifton  <nickc@redhat.com>
22605
22606         * config/rx/rx.md: Add peepholes to match a register move followed
22607         by a comparison of the moved register.  Replace these with an
22608         addition of zero that does both actions in one instruction.
22609
22610 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
22611
22612         PR target/48986
22613         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
22614         predicate to allow CONST_INT.
22615         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
22616
22617 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
22618
22619         * opts-common.c (opt_enum_arg_to_value): New.
22620         * opts.h (opt_enum_arg_to_value): Declare.
22621         * config/i386/i386.opt (fpmath): Remove.
22622         (mfpmath=): Use Enum, Init and Save.
22623         (fpmath_unit): New Enum and EnumValue entries.
22624         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
22625         name for function fpmath state.
22626         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
22627         * config/i386/i386.c: Include diagnostic.h.
22628         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
22629         (ix86_target_string): Take enum fpmath_unit value instead of string.
22630         (ix86_debug_options): Update call to ix86_target_string.
22631         (ix86_option_override_internal): Don't process fpmath strings here.
22632         (x86_function_specific_save, ix86_function_specific_restore):
22633         Don't handle fpmath state specially.
22634         (ix86_function_specific_print): Pass fpmath state to
22635         ix86_target_string instead of printing in this function.
22636         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
22637         Handle enum attributes.
22638         (IX86_ATTR_ENUM, ix86_opt_enum): New.
22639         (ix86_valid_target_attribute_tree): Update option_strings
22640         handling.  Handle fpmath as enum option.
22641         (ix86_can_inline_p): Update field names for function fpmath state.
22642         (ix86_expand_builtin): Update call to ix86_target_string.
22643         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
22644         (ix86_fpmath): Remove.
22645         * config/i386/t-i386 (i386.o): Update dependencies.
22646
22647 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
22648
22649         PR preprocessor/48677
22650         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
22651         from decoded_options[0], not from itself.
22652
22653 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
22654
22655         * config/i386/constraints.md (z): New constraint.
22656         * config/i386/i386.c (c): New mode attribute.
22657         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
22658         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
22659         constraint for operand 0.
22660         (*call_vzeroupper): Ditto.
22661         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
22662         (*call_rex64_ms_sysv_vzeroupper): Ditto.
22663         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
22664         Use "lzm" constraint for operand 0.
22665         (*call_pop_vzeroupper): Ditto.
22666         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
22667         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
22668         constraint for operand 0.
22669         (*sibcall_vzeroupper): Ditto.
22670         (*sibcall_rex64_ms_sysv): Ditto.
22671         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
22672         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
22673         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
22674         (*sibcall_pop_vzeroupper): Ditto.
22675         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
22676         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
22677         mode iterator.  Use "<c>zm" constraint for operand 1.
22678         (*call_value_vzeroupper): Ditto.
22679         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
22680         for operand 1.
22681         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
22682         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
22683         *call_value_pop_1.  Use "lzm" constraint for operand 1.
22684         (*call_value_pop_vzeroupper): Ditto.
22685         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
22686         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
22687         mode iterator.  Use "Uz" constraint for operand 1.
22688         (*sibcall_value_vzeroupper): Ditto.
22689         (*sibcall_value_rex64_ms_sysv): Ditto.
22690         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
22691         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
22692         constraint for operand 1.
22693         (*sibcall_value_pop_vzeroupper): Ditto.
22694         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
22695         and "z" constraint for operand 2.
22696         (*tls_global_dynamic_32_gnu): Ditto.
22697         (*tls_local_dynamic_base_32_gnu): Ditto.
22698         (*tls_local_dynamic_base_64): Ditto.
22699         (*tls_local_dynamic_32_once): Ditto.
22700         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
22701         Update all callers.
22702         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
22703
22704 2011-05-16  Richard Guenther  <rguenther@suse.de>
22705
22706         * gimple.c (gimple_types_compatible_p_1): Use names of the
22707         type itself, not its main variant.
22708         (iterative_hash_gimple_type): Likewise.
22709
22710 2011-05-16  Richard Guenther  <rguenther@suse.de>
22711
22712         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
22713         always visit pointer target and function result and argument types.
22714
22715 2011-05-16  Jason Merrill  <jason@redhat.com>
22716
22717         PR c++/48999
22718         * tree-inline.c (copy_statement_list): Put back recursion.
22719
22720 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
22721
22722         PR target/27663
22723         PR target/41076
22724         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
22725         * config/avr/avr.md ("*ior<mode>qi.byte0",
22726         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
22727
22728 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
22729
22730         PR target/45099
22731         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
22732         register is needed for a function argument.
22733
22734 2011-05-16  Richard Guenther  <rguenther@suse.de>
22735
22736         * gimple.c (struct type_hash_pair): New type.
22737         (type_hash_pair_compare): New function.
22738         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
22739
22740 2011-05-16  Revital Eres  <revital.eres@linaro.org>
22741
22742         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
22743
22744 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
22745
22746         * config/i386/i386.md (floating point move splitters): Fix
22747         usage of standard_80387_constant_p.
22748         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
22749
22750 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
22751
22752         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
22753
22754 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
22755
22756         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
22757         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
22758         (tree_ssa_lim_finalize): Likewise.
22759
22760 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
22761
22762         * config/i386/constraint.md (Yd, Yx): New register constraints.
22763         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
22764         Yd conditional register constraint.
22765         (*movtf_internal): Use standard_sse_constant_opcode.
22766         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
22767         Yx conditional register constraint.
22768         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
22769         Yd conditional register constraint.  Use standard_sse_constant_p to
22770         check for valid SSE constants and call standard_sse_constant_opcode to
22771         output SSE insn.
22772         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
22773         constants and call standard_sse_constant_opcode to output SSE insn.
22774         * config/i386/i386.c (ix86_option_ovverride_internal): Set
22775         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
22776         optimize_size is set.
22777         (standard_sse_constant_opcode): Output conditional AVX insn templates.
22778
22779 2011-05-14  Tobias Burnus  <burnus@net-b.de>
22780
22781         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
22782
22783 2011-05-13  Martin Jambor  <mjambor@suse.cz>
22784
22785         * ipa-prop.c (ipa_cst_from_jfunc): New function.
22786         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
22787         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
22788         (evaluate_conditions_for_ipcp_clone): Removed.
22789         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
22790         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
22791         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
22792
22793 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
22794
22795         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
22796         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
22797         lieu of MAY_HAVE_DEBUG_STMTS.
22798         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
22799         debug statements if !MAY_HAVE_DEBUG_STMTS.
22800
22801 2011-05-13  Martin Thuresson  <martint@google.com>
22802
22803         PR gcov-profile/47793
22804         * libgcov.c (gcov_exit): Support relative profile paths.
22805         * doc/invoke.texi (-fprofile-dir): Update for above change.
22806
22807 2011-05-13  Richard Guenther  <rguenther@suse.de>
22808
22809         * gimple.c (gimple_canonical_types_compatible_p): Do not use
22810         type-pair caching, do not compare hashes.
22811
22812 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
22813
22814         PR middle-end/48965
22815         * tree-cfg.c (edge_to_cases_cleanup): Return true.
22816         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
22817
22818 2011-05-13  Kai Tietz  <ktietz@redhat.com>
22819
22820         * gimplify.c (gimplify_expr): Make sure operand is boolified.
22821         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
22822         compatible type for TRUTH_NOT_EXPR.
22823
22824 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
22825
22826         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
22827         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
22828         can_create_pseudo_p ().
22829
22830 2011-05-13  Richard Guenther  <rguenther@suse.de>
22831
22832         PR lto/48978
22833         * gimple.c (iterative_hash_gimple_type): Revert change in
22834         pointer target and function result and argument hashing.
22835
22836 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
22837
22838         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
22839         (*movxf_internal_nointeger): Ditto.
22840         (*movdf_internal_rex64): Ditto.
22841         (*movdf_internal): Ditto.
22842         (*movdf_internal_nointeger): Ditto.
22843         (*movsf_internal): Ditto.
22844         (sincos splitters): Use can_create_pseudo ().
22845
22846 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
22847
22848         * config/i386/i386-opts.h: New.
22849         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
22850         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
22851         ix86_section_threshold): Remove.
22852         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
22853         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
22854         OPT_mbranch_cost_.
22855         (ix86_option_override_internal): Don't decode strings for options
22856         other than -march=, -mtune= and -mfpmath=.  Don't allow for
22857         __attribute__ uses in remaining diagnostics for options with
22858         string arguments.  Don't check for integer arguments being negative.
22859         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
22860         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
22861         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
22862         ix86_branch_cost, ix86_section_threshold): Remove.
22863         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
22864         HeaderInclude.
22865         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
22866         but not Var.
22867         (masm=): Use Enum and Init.
22868         (asm_dialect): New Enum and EnumValue entries.
22869         (mbranch-cost=): Use UInteger.
22870         (mlarge-data-threshold=): Use UInteger and Init.
22871         (mcmodel=): Use Enum and Init.
22872         (cmodel): New Enum and EnumValue entries.
22873         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
22874         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
22875         mregparm=): Use UInteger.
22876         (mstringop-strategy=): Use Enum and Init.
22877         (stringop_alg): New Enum and EnumValue entries.
22878         (mtls-dialect=): Use Enum and Init.
22879         (tls_dialect): New Enum and EnumValue entries.
22880         (mabi=): Use Enum and Init.
22881         (calling_abi): New Enum and EnumValue entries.
22882         (mveclibabi=): Use Enum and Init.
22883         (ix86_veclibabi): New Enum and EnumValue entries.
22884
22885 2011-05-13  Nick Clifton  <nickc@redhat.com>
22886
22887         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
22888         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
22889
22890 2011-05-13  Kai Tietz  <ktietz@redhat.com>
22891
22892         PR middle-end/48984
22893         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
22894         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
22895         (gimple_boolify): Check for cast for boolean_type_node instead for
22896         BOOLEAN_TYPE.
22897
22898 2011-05-13  Richard Guenther  <rguenther@suse.de>
22899
22900         PR tree-optimization/48172
22901         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
22902         multiplying by number of iterations for equal step.
22903         (vect_create_cond_for_alias_checks): Likewise.
22904
22905 2011-05-13  Andreas Schwab  <schwab@redhat.com>
22906
22907         * configure.ac: Use AS_HELP_STRING throughout.
22908         * configure: Regenerate.
22909
22910 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
22911
22912         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
22913         (ix86_emit_restore_regs_using_mov): Likewise.
22914         (ix86_emit_restore_sse_regs_using_mov): Likewise.
22915
22916 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
22917
22918         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
22919         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
22920         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
22921         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
22922         RTX_OK_FOR_OLO10_P): ...here.
22923         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
22924         SYMBOLIC_CONST.
22925
22926 2011-05-12  Kai Tietz  <ktietz@redhat.com>
22927
22928         * gimplify.c (gimple_boolify): Re-boolify expression
22929         arguments even if expression type is of kind BOOLEAN_TYPE.
22930         (gimplify_boolean_expr): Removed.
22931         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
22932         and XOR. Additional take care that we keep expression's type.
22933         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
22934         of TRUTH_AND|OR|XOR_EXPR.
22935
22936 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
22937
22938         PR tree-optimization/48975
22939         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
22940         on all bbs here and free and clear ifc_bbs at the end.
22941
22942 2011-05-12  Richard Guenther  <rguenther@suse.de>
22943
22944         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
22945         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
22946         until after simple checks.
22947         (gimple_types_compatible_p): Likewise.
22948         (iterative_hash_gimple_type): Always hash pointer targets
22949         and function return and argument types.
22950         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
22951         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
22952         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
22953         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
22954         completely in the simple compare section.
22955         (gimple_register_canonical_type): Query the cache again after
22956         registering.
22957
22958 2011-05-12  Richard Guenther  <rguenther@suse.de>
22959
22960         PR tree-optimization/48172
22961         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
22962         the number of iterations from the segment size calculation.
22963         (vect_create_cond_for_alias_checks): Adjust.
22964
22965 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
22966
22967         PR debug/48967
22968         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
22969         if validate_subreg fails.
22970
22971 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
22972
22973         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
22974         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
22975         early.
22976
22977 2011-05-12  DJ Delorie  <dj@redhat.com>
22978
22979         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
22980         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
22981         created builtin into rx_builtins array.
22982         (rx_builtin_decl): New function.
22983         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
22984
22985 2011-05-12  DJ Delorie  <dj@redhat.com>
22986             Nick Clifton  <nickc@redhat.com>
22987
22988         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
22989         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
22990         (rx_is_legitimate_address): Add pre-decrement and post-increment
22991         addressing in HImode and QImode.  Fix test for out of range
22992         REG+INT addressing.
22993         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
22994         (rx_align_for_label): Test label before extracting its usage count.
22995         (rx_adjust_insn_lengths): Fix selection of insn codes.
22996         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
22997
22998 2011-05-11  Jason Merrill  <jason@redhat.com>
22999
23000         * tree.c (type_hash_canon): Use struct tree_type_non_common.
23001
23002 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
23003
23004         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
23005         reindent the subsequent block.
23006
23007 2011-05-11  Satoru Takabayashi  <satorux@google.com>
23008             Paul Pluzhnikov  <ppluzhnikov@google.com>
23009
23010         * doc/install.texi (Configuration): Document --with-linker-hash-style.
23011         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
23012         * config.in: Add LINKER_HASH_STYLE.
23013         * configure.ac: Add --with-linker-hash-style.
23014         * configure: Regenerate.
23015
23016 2011-05-11  Richard Guenther  <rguenther@suse.de>
23017
23018         PR middle-end/48964
23019         * gimple.c (iterative_hash_canonical_type): Fix typo.
23020
23021 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
23022
23023         * config/i386/i386.c (legitimize_tls_address)
23024         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
23025         expanders directly for TARGET_GNU2_TLS.  Determine pic and
23026         __tls_get_addr symbol reference here.  Update call to
23027         gen_tls_global_dynamic_{32,64} for added arguments.
23028         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
23029         expanders directly for TARGET_GNU2_TLS.  Determine
23030         __tls_get_addr symbol reference here.  Update call to
23031         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
23032         unique UNSPEC REG_EQUIV to libcall block.
23033         (ix86_tls_get_addr): Declare static.
23034         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
23035         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
23036         Do not determine pic and __tls_get_addr symbol reference here. Do not
23037         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
23038         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
23039         (tls_global_dynamic_64): Add operand 2.  Do not determine
23040         __tls_get_addr symbol reference here.  Do not call
23041         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
23042         (tls_local_dynamic_base64): Ditto for operand 1.
23043
23044 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
23045
23046         * function.c (expand_function_start): Initialize stack_check_probe_note
23047         only if the generic stack checking mechanism is used.
23048
23049 2011-05-11  Richard Guenther  <rguenther@suse.de>
23050
23051         PR tree-optimization/15256
23052         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
23053         (A & B) | C, combine (A op CST1) op CST2.
23054         (tree_ssa_forward_propagate_single_use_vars): Only bother to
23055         visit assigns that have uses.
23056
23057 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
23058
23059         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
23060         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
23061         (unpack_ts_type_common_value_fields): ...this.  Update comment.
23062         (unpack_value_fields): Adjust for renaming.
23063         (lto_input_ts_type_tree_pointers): Split into...
23064         (lto_input_ts_type_common_tree_pointer): ...this and...
23065         (lto_input_ts_type_non_common_tree_pointers): ...this.
23066         (lto_input_tree_pointers): Adjust for above split.
23067         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
23068         (pack_ts_type_common_value_fields): ...this.  Update comment.
23069         (lto_output_ts_type_tree_pointers): Split into...
23070         (lto_output_ts_type_common_tree_pointers): ...this and...
23071         (lto_output_ts_type_non_common_tree_pointers): ...this.
23072         (lto_output_tree_pointers): Adjust for above split.
23073         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
23074         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
23075         * stor-layout.c (vector_type_mode): Adjust location of mode field.
23076         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
23077         Define.
23078         (struct tree_type): Split into...
23079         (struct tree_type_common: ...this and...
23080         (struct tree_type_with_lang_specific): ...this and...
23081         (struct tree_type_non_common): ...this.  Adjust accessor macros
23082         accordingly.
23083         (TYPE_VALUES_RAW): Define.
23084         (union tree_node): Update for above changes.
23085         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
23086         TS_TYPE_NON_COMMON.
23087         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
23088         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
23089         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
23090         * treestructu.def (TS_TYPE): Remove.
23091         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
23092         Define.
23093
23094 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
23095
23096         PR debug/48159
23097         * tree-ssa.c (reset_debug_uses): New function.
23098         * tree-flow.h (reset_debug_uses): New prototype.
23099         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
23100         * tree-loop-distribution.c (generate_loops_for_partition): Call
23101         reset_debug_uses on the stmts that will be removed.  Keep around
23102         all debug stmts, don't count them as bits in partition bitmap.
23103         (generate_builtin): Don't count debug stmts or labels as bits in
23104         partition bitmap.
23105
23106 2011-05-11  Richard Guenther  <rguenther@suse.de>
23107
23108         * gimple.c (gimple_type_hash_1): Merge with ...
23109         (gimple_type_hash): ... this.
23110         (gtc_visit): Remove mode parameter and simplify accordingly.
23111         (gimple_types_compatible_p_1): Likewise.
23112         (gimple_types_compatible_p): Likewise.
23113         (iterative_hash_gimple_type): Likewise.
23114         (visit): Likewise.
23115         (gimple_type_eq): Adjust.
23116
23117 2011-05-11  Revital Eres  <revital.eres@linaro.org>
23118
23119         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
23120         enters the branch create an anti edge in the opposite direction
23121         to prevent the creation of reg-moves.
23122         * modulo-sched.c: Adjust comment to reflect the fact we are
23123         scheduling closing branch.
23124         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
23125         (stage_count): New field in struct partial_schedule.
23126         (calculate_stage_count): New function.
23127         (normalize_sched_times): Rename to reset_sched_times and handle
23128         incrementing the sched time of the nodes by a constant value
23129         passed as parameter.
23130         (duplicate_insns_of_cycles): Skip closing branch.
23131         (sms_schedule_by_order): Schedule closing branch.
23132         (ps_insn_find_column): Handle closing branch.
23133         (sms_schedule): Call reset_sched_times and adjust the code to
23134         support scheduling of the closing branch.
23135         (ps_insert_empty_row): Update calls to normalize_sched_times
23136         and rotate_partial_schedule functions.
23137
23138 2011-05-11  Richard Guenther  <rguenther@suse.de>
23139
23140         PR middle-end/48953
23141         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
23142
23143 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
23144
23145         * opts.c (finish_options): Move warning settings from process_options.
23146         * toplev.c (process_options): Move warning settings to finish_options.
23147
23148 2011-05-11  Richard Guenther  <rguenther@suse.de>
23149
23150         PR tree-optimization/18041
23151         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
23152         (simplify_bitwise_binary): ... this.  Handle operand conversions
23153         by applying them to the result instead.
23154         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
23155
23156 2011-05-11  Richard Guenther  <rguenther@suse.de>
23157
23158         * gimple.c (gimple_canonical_types_compatible_p): Split out
23159         from gimple_types_compatible_p and friends.  Do not recurse
23160         to pointed-to types.
23161         (gimple_canonical_type_eq): Use it.
23162         (iterative_hash_canonical_type): Split out from
23163         iterative_hash_gimple_type and friends.  Do not recurse
23164         to pointed-to types.
23165         (gimple_canonical_type_hash): Use it, allocate the hash here.
23166
23167 2011-05-11  Revital Eres  <revital.eres@linaro.org>
23168
23169         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
23170         recognizing doloop.
23171
23172 2011-05-11  Revital Eres  <revital.eres@linaro.org>
23173
23174         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
23175         instead of PREV_INSN.
23176
23177 2011-05-11  Revital Eres  <revital.eres@linaro.org>
23178
23179         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
23180         * loop-doloop.c (doloop_condition_get): Likewise.
23181         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
23182         (doloop_end): New.
23183         * config/arm/arm.md (*addsi3_compare0): Remove "*".
23184
23185 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
23186
23187         * tree.def (CASE_LABEL_EXPR): Add an operand.
23188         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
23189
23190 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23191
23192         * c-decl.c (c_override_global_bindings_to_false): Remove.
23193         (global_bindings_p): Don't check
23194         c_override_global_bindings_to_false.
23195         * c-tree.h (c_override_global_bindings_to_false): Remove.
23196         * c-typeck.c (composite_type): Don't set
23197         c_override_global_bindings_to_false.
23198
23199 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
23200
23201         PR target/48857, 48495
23202         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
23203         (VSX_MODE): Ditto.
23204         (VSX_MOVE_MODE): Ditto.
23205         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
23206         VSX vector types.  Add V2DImode.
23207         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
23208         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
23209         (MODES_TIEABLE_P): Ditto.
23210
23211         * config/rs6000/rs6000.c (rs6000_emit_move): Use
23212         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
23213         VSX_VECTOR_MODE.
23214         (init_cumulative_args): Ditto.
23215         (rs6000_function_arg_boundary): Ditto.
23216         (rs6000_function_arg_advance_1): Ditto.
23217         (rs6000_function_arg): Ditto.
23218         (rs6000_function_ok_for_sibcall): Ditto.
23219         (emit_frame_save): Ditto.
23220         (rs6000_function_value): Ditto.
23221         (rs6000_libcall_value): Ditto.
23222
23223 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23224
23225         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
23226         i386/darwin-lib.h to $libgcc_tm_file.
23227         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
23228
23229 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23230
23231         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
23232
23233 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23234
23235         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
23236         * config/rs6000/rs6000-tables.opt: New file (generated).
23237         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
23238         rs6000/rs6000-tables.opt to extra_options.
23239         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
23240         * config/rs6000/rs6000.c (rs6000_select): Remove.
23241         (processor_target_table): Move contents to rs6000-cpus.def.
23242         (darwin_rs6000_override_options): Check
23243         global_options_set.x_rs6000_cpu_index instead of
23244         rs6000_select[1].string.
23245         (rs6000_option_override_internal): Likewise.
23246         (rs6000_handle_option): Don't assert that global structures are in
23247         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
23248         (rs6000_default_cpu): New variable.
23249         (rs6000_file_start): Set it instead of local default_cpu.  Check
23250         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
23251         global_options_set.x_rs6000_tune_index instead of rs6000_select.
23252         (rs6000_darwin_file_start): Check rs6000_default_cpu and
23253         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
23254         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
23255         rs6000_select): Remove.
23256         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
23257         Remove.
23258         (mcpu=, mtune=): Use Var, Init, Enum and Save.
23259         * config/rs6000/t-rs6000
23260         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
23261         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
23262         global_options_set.x_rs6000_cpu_index instead of
23263         rs6000_select[1].string.
23264         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
23265         global_options_set.x_rs6000_cpu_index instead of
23266         rs6000_select[1].string.
23267
23268 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23269
23270         * config.gcc (libgcc_tm_file): Define instead of including files
23271         from ../../libgcc/config/ in tm_file.
23272         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
23273         * configure: Regenerate.
23274         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
23275         libgcc_tm.h, cs-libgcc_tm.h): New.
23276         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
23277         (clean): Remove libgcc_tm.h.
23278         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
23279         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
23280         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
23281
23282 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
23283
23284         PR target/48896
23285         * config/avr/avr.c (avr_ret_register): Return unsigned int
23286         instead of int.
23287         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
23288         it to avr_libcall_value.
23289         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
23290         expand_expr.
23291         (avr_expand_binop_builtin): Ditto.
23292         (avr_expand_unop_builtin): Ditto.
23293
23294 2011-05-10  DJ Delorie  <dj@redhat.com>
23295
23296         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
23297         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
23298         * config/rx/rx.c (rx_align_for_label): Add label and
23299         uses_threshold parameters.  Do not align when the label is not
23300         used enough.
23301         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
23302
23303 2011-05-10  Richard Guenther  <rguenther@suse.de>
23304
23305         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
23306         a series of conversions and apply foldings similar to what
23307         fold-const does.
23308         (tree_ssa_forward_propagate_single_use_vars): Call it.
23309
23310 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
23311
23312         PR tree-optimization/48611
23313         PR tree-optimization/48794
23314         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
23315         referenced from RESX or EH_DISPATCH arguments.
23316
23317         PR debug/48928
23318         * dfp.c (decimal_to_decnumber): Handle conversion from
23319         dconst{1,2,m1,half}.
23320
23321 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23322
23323         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
23324         for !flag_prefer_avx128.
23325         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
23326
23327 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
23328
23329         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
23330         (fold_ternary_loc): Use expr_location_or.
23331
23332 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
23333
23334         PR debug/48853
23335         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
23336         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
23337         Pmode and mem_mode is not VOIDmode.
23338
23339 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
23340
23341         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
23342         TYPE_QUAL_RESTRICT): Convert to enum.
23343
23344 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23345
23346         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
23347         (const_pow2_1_to_8_operand): Ditto.
23348         (const_pow2_1_to_128_operand): Ditto.
23349         (const_pow2_1_to_32768_operand): Ditto.
23350         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
23351         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
23352         in insn constraint to check integer value of operand 3.
23353         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
23354
23355         (PINSR_MODE): New mode iterator.
23356         (sse2p4_1): New mode attribute.
23357         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
23358         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
23359         iterator.  Use const_int_operand instead of
23360         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
23361         exact_log2 in insn constraint to check integer value of operand 3.
23362
23363 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23364
23365         * config/i386/sse.md (blendbits): Remove mode attribute.
23366         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
23367         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
23368         Check integer value of operand 3 in insn constraint.
23369
23370 2011-05-09  Richard Guenther  <rguenther@suse.de>
23371
23372         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
23373         for diagnostics.
23374         (lto_symtab_merge): Likewise.  Do not register types here.
23375         (lto_symtab_merge_decls_2): Likewise.
23376         (lto_symtab_merge_decls_1): Likewise.
23377         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
23378         * gimple.c (enum gtc_mode): Declare.
23379         (gimple_types_compatible_p): Make static.
23380
23381 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23382
23383         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
23384         temporary register to match Pmode.
23385
23386 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23387
23388         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
23389         and *vec_concatv4si_1_avx.
23390
23391 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23392
23393         PR rtl-optimization/48927
23394         * ira-conflicts.c (commutative_constraint_p): Use
23395         recog_data.alternative_enabled_p to disable alternatives where
23396         "enabled" attribute is false.
23397         (get_dup_num): Ditto.
23398         * ira-lives.c (single_reg_class): Ditto.
23399         (ira_implicitly_set_insn_hard_regs): Ditto.
23400
23401 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
23402
23403         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
23404         (dataflow_set_preserve_mem_locs): Likewise.
23405
23406 2011-05-09  Philipp Thomas  <pth@suse.de>
23407
23408         * config/mep/mep.c (mep_validate_vliw): Syntax description
23409         should not be translated.
23410
23411 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
23412
23413         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
23414         * config/mips/mips-tables.opt: New file (generated).
23415         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
23416         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
23417         MIPS_ARCH_OPTION_NATIVE): Define.
23418         * config/mips/mips.c (mips_cpu_info_table): Move contents to
23419         mips-cpus.def.
23420         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
23421         mips_parse_cpu): Remove.
23422         (mips_cpu_info_from_opt, mips_default_arch): New.
23423         (mips_handle_option): Don't assert that global structures are in
23424         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
23425         (mips_option_override): Use new variables and functions to set
23426         state of these options.  Use strcmp to check for individual CPU names.
23427         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
23428         definition.
23429         * config/mips/mips.opt (march=): Use ToLower and Enum.
23430         (mips): Use ToLower, Enum and Var.
23431         (mtune=): Use ToLower and Enum.
23432         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
23433
23434 2011-05-08  Jan Hubicka  <jh@suse.cz>
23435
23436         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
23437         Arrange type pairs to be UID ordered.
23438         (gimple_lookup_type_leader): Make inline.
23439
23440 2011-05-09  Nick Clifton  <nickc@redhat.com>
23441
23442         PR target/48899
23443         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
23444         PROCESSOR_DEFAULT.
23445
23446         PR target/48897
23447         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
23448         variable 's'.
23449
23450 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
23451
23452         * combine.c (simplify_comparison): Abstract out parts into...
23453         (simplify_compare_const): ... new function.
23454         (try_combine): Generalize parallel arithmetic/compare combining
23455         to call simplify_compare_const() and CANONICALIZE_COMPARE().
23456
23457 2011-05-08  Jan Hubicka  <jh@suse.cz>
23458
23459         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
23460         (cgraph_create_virtual_clone): Call hooks once virtual clone
23461         is finished.
23462         * cgraph.h (cgraph_clone_node): Update prototype.
23463         * ipa-cp.c (ipcp_estimate_growth): Use
23464         estimate_ipcp_clone_size_and_time.
23465         * ipa-inline-transform.c (clone_inlined_nodes): Update.
23466         * lto-cgraph.c (input_node): Update.
23467         * ipa-inline.c (recursive_inlining): Update.
23468         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
23469         (evaluate_conditions_for_known_args): Break out from ...
23470         (evaluate_conditions_for_edge): ... here.
23471         (evaluate_conditions_for_ipcp_clone): New function.
23472         (inline_node_duplication_hook): Update clone summary based
23473         on parameter map.
23474         (estimate_callee_size_and_time): Rename to ...
23475         (estimate_node_size_and_time): take NODE instead of EDGE;
23476         take POSSIBLE_TRUTHS as argument.
23477         (estimate_callee_size_and_time): Update.
23478         (estimate_ipcp_clone_size_and_time): New function.
23479         (do_estimate_edge_time): Update.
23480
23481 2011-05-08  Richard Guenther  <rguenther@suse.de>
23482
23483         PR middle-end/48908
23484         PR middle-end/48905
23485         * expmed.c (expand_shift_1): Compute adjusted constant shift
23486         amount manually.
23487
23488 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
23489
23490         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
23491
23492 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
23493
23494         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
23495
23496 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
23497
23498         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
23499
23500 2011-05-07  Jan Hubicka  <jh@suse.cz>
23501
23502         * ipa-inline-transform.c (inline_call): Account when program size
23503         decreases.
23504         * ipa-inline.c (relative_time_benefit): New function.
23505         (edge_badness): Reorganize to be power 2 based; fix thinko when
23506         computing badness for negative growth; update comments to match
23507         reality; better dumps.
23508
23509 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
23510
23511         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
23512         type to bool and adjust comment.
23513         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
23514         (fold_mathfn_compare): Remove calls to global_bindings_p.
23515         (fold_inf_compare): Likewise.
23516         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
23517         * c-tree.h (global_bindings_p): Adjust prototype.
23518         * c-decl.c (global_bindings_p): Return bool and simplify.
23519
23520 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
23521
23522         PR tree-optimization/48837
23523         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
23524         when accumulator transformation is performed.
23525
23526 2011-05-06  Jan Hubicka  <jh@suse.cz>
23527
23528         * i386.h (ix86_tune_indices): Add
23529         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
23530         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
23531         * i386.c (initial_ix86_tune_features): Add
23532         X86_SOFTARE_PREFETCHING_BENEFICIAL.
23533         (software_prefetching_beneficial_p): Remove predicate.
23534         (ix86_option_override_internal): Use new macro.
23535
23536 2011-05-06  Jan Hubicka  <jh@suse.cz>
23537
23538         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
23539
23540 2011-05-06  Jan Hubicka  <jh@suse.cz>
23541
23542         * cgraph.c (cgraph_add_thunk): Create real function node instead
23543         of alias node; finalize it and mark needed/reachale; arrange visibility
23544         to be right and add it into the corresponding same comdat group list.
23545         (dump_cgraph_node): Dump thunks.
23546         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
23547         cgraph_function_with_gimple_body_p,
23548         cgraph_first_function_with_gimple_body,
23549         cgraph_next_function_with_gimple_body): New functions.
23550         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
23551         New macros.
23552         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
23553         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
23554         * cgraphunit.c (cgraph_finalize_function): Only look into possible
23555         devirtualization when optimizing.
23556         (verify_cgraph_node): Verify thunks.
23557         (cgraph_analyze_function): Analyze thunks.
23558         (cgraph_mark_functions_to_output): Output thunks only in combination
23559         with function they are assigned to.
23560         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
23561         alias into normal node.
23562         (assemble_thunks): New functoin.
23563         (cgraph_expand_function): Use it.
23564         * lto-cgraph.c (lto_output_node): Stream thunks.
23565         (input_overwrite_node): Stream in thunks.
23566         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
23567         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
23568         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
23569         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
23570         (inline_analyze_function): Do not care about thunk jump functions.
23571         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
23572         * ipa-prop.c (ipa_prop_write_jump_functions): Use
23573         cgraph_function_with_gimple_body_p.
23574         * passes.c (do_per_function_toporder): Use
23575         cgraph_function_with_gimple_body_p.
23576         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
23577         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
23578         (function_called_by_processed_nodes_p): Likewise.
23579
23580 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
23581
23582         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
23583         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
23584         entries.
23585         (mabi=): Replace with separate entries for mabi=altivec,
23586         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
23587         mabi=ieeelongdouble and mabi=ibmlongdouble.
23588         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
23589         check for -mabi=spe without SPE ABI support here.
23590         (rs6000_handle_option): Replace OPT_mabi_ handling with
23591         OPT_mabi_altivec and OPT_mabi_spe handling.
23592
23593 2011-05-06  Cary Coutant  <ccoutant@google.com>
23594
23595         * dwarf2out.c (contains_subprogram_definition): New function.
23596         (should_move_die_to_comdat): Call it.
23597
23598 2011-05-06  Jeff Law  <law@redhat.com>
23599
23600         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
23601         remove_ctrl_stmt_and_useless_edges.
23602         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
23603         (fixup_template_block, thread_single_edge): Likewise.
23604         (mark_threaded_blocks): Use THREAD_TARGET.
23605
23606 2011-05-06  Alan Modra  <amodra@gmail.com>
23607
23608         PR target/48900
23609         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
23610         const0_rtx as the arg to the dummy __tls_get_addr libcall.
23611
23612 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
23613
23614         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
23615         constraint modifier to "r".
23616
23617 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
23618
23619         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
23620         fall through for OPT_mcmodel_.
23621
23622 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23623
23624         * config/s390/s390.c (s390_asm_trampoline_template): Comment
23625         instruction sizes.
23626         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
23627
23628 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23629
23630         PR target/47930
23631         * config/arm/arm.opt (marm): Document it.
23632         (mthumb): Reject negative variant.
23633
23634 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
23635
23636         PR target/48898
23637         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
23638         Fix typo in "ccvt" variable name.
23639
23640 2011-05-06  Tristan Gingold  <gingold@adacore.com>
23641
23642         PR target/48895
23643         * config/vms/vms-ar.c (main): Remove cwd variable.
23644
23645 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
23646
23647         PR debug/48902
23648         * var-tracking.c (prepare_call_arguments): Move else before #endif.
23649
23650 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
23651
23652         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
23653         * gimplify.c (gimplify_switch_expr): Likewise.
23654         * omp-low.c (expand_omp_sections): Likewise.
23655         * tree-eh.c (lower_try_finally_switch): Likewise.
23656         (lower_eh_dispatch): Likewise.
23657         * tree.h (build_case_label): Declare.
23658         * tree.c (build_case_label): Define.
23659
23660 2011-05-05  Jason Merrill  <jason@redhat.com>
23661
23662         PR c++/40975
23663         * tree-inline.c (copy_tree_r): Use copy_statement_list.
23664         (copy_statement_list): Don't recurse.
23665         * stor-layout.c (copy_self_referential_tree_r): Don't allow
23666         STATEMENT_LIST.
23667
23668 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
23669
23670         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
23671         through from -mfpu= handling.
23672         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
23673
23674 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
23675
23676         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
23677         POST_MODIFY.
23678
23679 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
23680
23681         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
23682         for 11.31.
23683         (hppa[12]*-*-hpux11*): Ditto.
23684         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
23685         * config/ia64/hpux-unix2003.h: New.
23686         * config/pa/pa-hpux1131.opt: New.
23687         * config/pa/pa-hpux1131.h: New.
23688         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
23689         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
23690         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
23691
23692 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
23693
23694         PR debug/48853
23695         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
23696         instead of mode as 3rd argument to recursive call.
23697         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
23698         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
23699         VOIDmode.
23700         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
23701         don't give up if mode is Pmode and mem_mode is not VOIDmode.
23702         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
23703         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
23704
23705 2011-05-05  Julian Brown  <julian@codesourcery.com>
23706
23707         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
23708         parenthesis in D-register case.
23709
23710 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
23711
23712         * opt-functions.awk (var_type_struct): Handle Enum options.
23713         * optc-gen.awk: Don't check range of variables of character type.
23714         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
23715         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
23716         rs6000_sdata_name, rs6000_explicit_options): Remove.
23717         (rs6000_option_override_internal): Check for -malign-power here.
23718         Use global_options_set instead of rs6000_explicit_options.
23719         (rs6000_parse_fpu_option): Remove.
23720         (rs6000_handle_option): Access variables via opts and opts_set
23721         pointers.  Use error_at and warning_at.  Add fall-through
23722         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
23723         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
23724         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
23725         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
23726         here.  Don't use rs6000_parse_fpu_option.
23727         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
23728         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
23729         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
23730         (mrecip=): Use Var.
23731         (mspe): Use Var and Save.
23732         (mtraceback=): Use Enum and Var.
23733         (rs6000_traceback_type): New Enum and EnumValue entries.
23734         (mfloat-gprs=): Use Enum, Var and Save.
23735         (rs6000_float_gprs): New Enum and EnumValue entries.
23736         (mlong-double-): use Var and Save.
23737         (msched-costly-dep=, minsert-sched-nops=): Use Var.
23738         (malign-): Use Enum and Var.
23739         (rs6000_alignment_flags): New Enum and EnumValue entries.
23740         (mfpu=): Use Enum.
23741         (fpu_type_t): New Enum and EnumValue entries.
23742         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23743         global_options_set instead of rs6000_explicit_options.
23744         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23745         global_options_set instead of rs6000_explicit_options.
23746         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23747         global_options_set instead of rs6000_explicit_options.
23748         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23749         global_options_set instead of rs6000_explicit_options.
23750         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
23751         global_options_set instead of rs6000_explicit_options.
23752         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
23753         global_options_set instead of rs6000_explicit_options.
23754         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
23755         definition.
23756         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
23757         global_options_set instead of rs6000_explicit_options.
23758         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
23759         (rs6000_cmodel): New Enum and EnumValue entries.
23760         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
23761         global_options_set instead of rs6000_explicit_options.
23762         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
23763         (mtls-size=): Use Enum and Var.
23764         (rs6000_tls_size): New Enum and EnumValue entries.
23765
23766 2011-05-05  Michael Matz  <matz@suse.de>
23767
23768         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
23769         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
23770         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
23771         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
23772         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
23773         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
23774         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
23775         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
23776         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
23777         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
23778         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
23779         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
23780         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
23781         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
23782         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
23783         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
23784
23785 2011-05-05  Richard Guenther  <rguenther@suse.de>
23786
23787         * expmed.c (expand_variable_shift): Rename to ...
23788         (expand_shift_1): ... this.  Take an expanded shift amount.
23789         For rotates recurse directly not building trees for the shift amount.
23790         (expand_variable_shift): Wrap around expand_shift_1.
23791         (expand_shift): Adjust.
23792
23793 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
23794
23795         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
23796
23797 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
23798
23799         * tree.h (get_pending_sizes): Remove prototype.
23800         (put_pending_size): Likewise.
23801         (put_pending_sizes): Likewise.
23802         * stor-layout.c (pending_sizes): Delete.
23803         (get_pending_sizes): Likewise.
23804         (put_pending_size): Likewise.
23805         (put_pending_sizes): Likewise.
23806         (variable_size): Do not call put_pending_size and tidy up.
23807         * function.h (struct function): Remove dont_save_pending_sizes_p.
23808         * lto-streamer-in.c (input_function): Do not stream it.
23809         * lto-streamer-out.c (output_function): Likewise.
23810         * tree-inline.c (initialize_cfun): Do not copy it.
23811         * c-decl.c (store_parm_decls): Do not set it.
23812         * omp-low.c (create_task_copyfn): Likewise.
23813         * tree-optimize.c (tree_rest_of_compilation): Likewise.
23814
23815 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
23816
23817         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
23818         conditions.
23819         (*movdf_internal): Ditto.
23820         (*movdf_internal_nointeger): Ditto.
23821         (*movsf_internal): Ditto.
23822
23823 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
23824
23825         * c-decl.c (finish_decl): Don't call get_pending_sizes.
23826         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
23827         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
23828         (c_variable_size): Remove.
23829         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
23830         call put_pending_sizes.
23831         (get_parm_info): Add parameter expr.  Use it to set
23832         arg_info->pending_sizes.
23833         (store_parm_decls): Use arg_info->pending_sizes instead or calling
23834         get_pending_sizes.
23835         * c-parser.c (c_parser_parms_declarator): Update call to
23836         c_parser_parms_list_declarator.
23837         (c_parser_parms_list_declarator): Take parameter expr.  Update
23838         call to push_parm_decl.  Update recursive call.  Don't call
23839         get_pending_sizes.  Update calls to get_parm_info.
23840         (c_parser_objc_method_definition): Update calls to
23841         c_parser_objc_method_decl and objc_start_method_definition.
23842         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
23843         (c_parser_objc_method_decl): Add parameter expr.  Update call to
23844         grokparm.
23845         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
23846         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
23847         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
23848
23849 2011-05-05  Michael Hope  <michael.hope@linaro.org>
23850
23851         PR pch/45979
23852         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
23853         __ARM_EABI__ hosts.
23854
23855 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23856
23857         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
23858         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
23859         (spu_output_mi_thunk): New function.
23860
23861 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23862
23863         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
23864         targetm.asm_out.print_operand.
23865         * config/sol2.c: Include target.h.
23866
23867 2011-05-04  Jan Hubicka  <jh@suse.cz>
23868
23869         * ipa-inline.c (reset_edge_caches): New function.
23870         (update_caller_keys): Add check_inlinablity_for; do not
23871         reset edge caches; remove now unnecesary loop.
23872         (update_callee_keys): Add comments; reset node_growth_cache of callee.
23873         (update_all_callee_keys): Likewise.
23874         (inline_small_functions): Sanity check cache; update code
23875         recomputing it.
23876
23877 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
23878
23879         PR rtl-optimization/47612
23880         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
23881         as the last insn of the sequence to be moved.
23882
23883 2011-05-04  Tobias Burnus  <burnus@net-b.de>
23884
23885         PR fortran/48864
23886         * doc/invoke.texi (Ofast): Document that it
23887         enables Fortran's -fno-protect-parens.
23888
23889 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
23890
23891         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
23892
23893 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
23894
23895         * stor-layout.c (variable_size): Do not issue errors.
23896
23897 2011-05-04  Richard Guenther  <rguenther@suse.de>
23898
23899         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
23900         for array-ref indices.
23901         (tree_coverage_counter_addr): Likewise.
23902         (build_fn_info_type): Use size_int for index types.
23903         (build_gcov_info): Likewise.
23904
23905 2011-05-04  Richard Guenther  <rguenther@suse.de>
23906
23907         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
23908         to build_int_cst.
23909         * c-typeck.c (really_start_incremental_init): Use bitsize_int
23910         for constructor indices.
23911         (push_init_level): Likewise.
23912
23913 2011-05-04  Richard Guenther  <rguenther@suse.de>
23914
23915         * explow.c (promote_mode): Move variable declarations before code.
23916
23917 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
23918
23919         * tree.h (build_function_type_array): Declare.
23920         (build_varargs_function_type_array): Declare.
23921         (build_function_type_vec, build_varargs_function_type_vec): Define.
23922         * tree.c (build_function_type_array_1): New function.
23923         (build_function_type_array): New function.
23924         (build_varargs_function_type_array): New function.
23925
23926 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
23927
23928         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
23929         before setting STMT_VINFO_TYPE.
23930
23931 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23932
23933         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
23934         instead of spu_pass_by_reference.
23935
23936 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23937
23938         * calls.c (emit_library_call_value_1): Invoke
23939         promote_function_mode hook on libcall arguments.
23940         * explow.c (promote_function_mode, promote_mode): Handle TYPE
23941         argument being NULL.
23942         * targhooks.c (default_promote_function_mode): Lisewise.
23943         * config/s390/s390.c (s390_promote_function_mode): Likewise.
23944         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
23945
23946         * doc/tm.texi: Document that TYPE argument might be NULL.
23947
23948 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
23949
23950         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
23951
23952 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
23953
23954         From Bernd Schmidt
23955         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
23956
23957 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23958
23959         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
23960         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
23961         Move ...
23962         * mips-tfile.c: ... here.
23963         Don't include coretypes.h, tm.h, filenames.h.
23964         (saber_stop): Remove definition and all calls.
23965         [__SABER__]: Remove.
23966         (__LINE__): Remove default.
23967         (Size_t, Ptrdiff_t): Remove definitions.
23968         Replace by size_t, ptrdiff_t.
23969         [!MIPS_DEBUGGING_INFO]: Remove.
23970         (SHASH_SIZE, THASH_SIZE): Remove defaults.
23971         (progname): Add const.
23972         (STATIC): Remove.
23973         Replace all uses by static.
23974         (ALIGN_SYMTABLE_OFFSET): Remove default.
23975         * mips-tdump.c: Don't include coretypes.h, tm.h.
23976         Remove !MIPS_IS_STAB guard.
23977         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
23978         $(TM_H), filenames.h dependencies.
23979         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
23980
23981 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
23982
23983         From Jie Zhang
23984         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
23985         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
23986
23987 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
23988
23989         From Bernd Schmidt
23990         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
23991         account and save/restore RETS.
23992         (PROFILE_BEFORE_PROLOGUE): Define.
23993         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
23994         the push insn to use predecrement.
23995
23996 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
23997
23998         From Jie Zhang
23999         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
24000
24001 2011-05-04  Nick Clifton  <nickc@redhat.com>
24002
24003         * config/mn10300/mn10300.c: Include cfgloop.h.
24004         (DUMP): New macro.
24005         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
24006         Lcc or a FLcc insn into the instruction stream.
24007         (mn10300_block_contains_call): New function.  Returns true if the
24008         given basic block contains a CALL insn.
24009         (mn10300_loop_contains_call_insn): New function.  Returns true if
24010         the given loop contains a CALL insn.
24011         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
24012         to use the SETLB and Lcc or FLcc insns.
24013         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
24014         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
24015         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
24016         disable the SETLB optimization.
24017         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
24018         __SETLB__ or __NO_SETLB__.
24019         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
24020         (movsf_internal): Handle MDR register.
24021         (cmpsi): Make visible.
24022         (setlb): New pattern.
24023         (Lcc): New pattern.
24024         (FLcc): New pattern.
24025
24026 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
24027
24028         PR target/48860
24029         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
24030         for reg<->xmm moves.
24031         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
24032         (vec_concatv2di_rex64_sse): Ditto.
24033         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
24034         (*vec_extractv2di_1_rex64): Ditto.
24035
24036         Revert:
24037         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
24038
24039         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
24040         reg<->xmm moves.
24041         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
24042
24043 2011-05-04  Richard Guenther  <rguenther@suse.de>
24044
24045         * tree.h (int_const_binop): Remove notrunc argument.
24046         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
24047         create integer constants that are properly truncated.
24048         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
24049         (const_binop): Remove zero notrunc argument to int_const_binop.
24050         (size_binop_loc): Likewise.
24051         (fold_div_compare): Likewise.
24052         (maybe_canonicalize_comparison_1): Likewise.
24053         (fold_comparison): Likewise.
24054         (fold_binary_loc): Likewise.
24055         (multiple_of_p): Likewise.
24056         * expr.c (store_constructor): Likewise.
24057         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
24058         (maybe_fold_stmt_addition): Likewise.
24059         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
24060         * stor-layout.c (layout_type): Likewise.
24061         * tree-data-ref.c (tree_fold_divides_p): Likewise.
24062         * tree-sra.c (build_ref_for_offset): Likewise.
24063         (build_user_friendly_ref_for_offset): Likewise.
24064         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
24065         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
24066         * tree-ssa-loop-niter.c (inverse): Likewise.
24067         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
24068         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
24069         * tree-switch-conversion.c (check_range): Likewise.
24070         (build_constructors): Likewise.
24071         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
24072         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
24073         (extract_range_from_assert): Likewise.
24074         (vrp_int_const_binop): Likewise.
24075         (extract_range_from_binary_expr): Likewise.
24076         (extract_range_from_unary_expr): Likewise.
24077         (check_array_ref): Likewise.
24078         (find_case_label_range): Likewise.
24079         (simplify_div_or_mod_using_ranges): Likewise.
24080         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
24081         comparing case labels for merging.
24082
24083 2011-05-03  Mark Wielaard  <mjw@redhat.com>
24084
24085         * dwarf2out.c (debug_str_hash_forced): Removed.
24086         (gen_label_for_indirect_string): Removed.
24087         (get_debug_string_label): Removed.
24088         (AT_string_form): Generate label directly.
24089         (output_indirect_string): Test indirect_string_node for
24090         DW_FORM_strp instead of checking label and refcount.
24091         (prune_indirect_string): Removed.
24092         (prune_unused_types): Don't check debug_str_hash_forced or
24093         call prune_indirect_string.
24094
24095 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
24096
24097         PR other/48093
24098         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
24099
24100 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
24101
24102         PR debug/47994
24103         PR debug/47919
24104         * combine.c (try_combine): Skip debug insns at m_split tests.
24105
24106 2011-04-26  Mark Wielaard  <mjw@redhat.com>
24107
24108         PR42288
24109         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
24110         when info_section_emitted.
24111
24112 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
24113
24114         * config/mips/mips-opts.h: New.
24115         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
24116         to mips-opts.h.
24117         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
24118         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
24119         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
24120         via opts pointer.
24121         * config/mips/mips.h (enum mips_code_readable_setting): Move to
24122         mips-opts.h.
24123         (mips_abi, mips_code_readable): Don't declare.
24124         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
24125         (mabi=): Use Enum and Var.
24126         (mips_abi): New Enum and EnumValue entries.
24127         (mcode-readable=): Use Enum and Var.
24128         (mips_code_readable_setting): New Enum and EnumValue entries.
24129         (mr10k-cache-barrier=): Use Enum and Var.
24130         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
24131
24132 2011-05-03  Jan Hubicka  <jh@suse.cz>
24133
24134         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
24135         replace hash by pointer map.
24136         (cgraph_node_set_element_def, cgraph_node_set_element,
24137         const_cgraph_node_set_element, varpool_node_set_element_def,
24138         varpool_node_set_element, const_varpool_node_set_element): Remove.
24139         (free_cgraph_node_set, free_varpool_node_set): New function.
24140         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
24141         * tree-emutls.c: Free varpool node set.
24142         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
24143         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
24144         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
24145         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
24146         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
24147         Move here from ipa.c; implement using pointer_map
24148         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
24149         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
24150         debug_cgraph_node_set, varpool_node_set_new,
24151         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
24152         dump_varpool_node_set, debug_varpool_node_set):
24153         Move to ipa-uitls.c.
24154         * passes.c (ipa_write_summaries): Update.
24155
24156 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24157
24158         From Mike Frysinger:
24159         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
24160         bf542/bf544/bf547/bf548/bf549.
24161
24162 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
24163
24164         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
24165
24166 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24167
24168         From Bernd Schmidt:
24169         * config/bfin/bfin.md (MOVCC): New mode_macro.
24170         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
24171         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
24172         comments from generated assembly.
24173
24174 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24175
24176         From Bernd Schmidt
24177         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
24178         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
24179         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
24180         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
24181         * config/bfin/lib1funcs.asm (___muldi3): New function.
24182
24183 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24184
24185         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
24186         build_function_type_list instead of build_function_type.
24187         Rearrange initialization of `args' to do so.
24188
24189 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24190
24191         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
24192         instead of build_function_type.
24193
24194 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24195
24196         * config/rs6000/rs6000.c (spe_init_builtins): Call
24197         build_function_type_list instead of build_function_type.
24198         (paired_init_builtins, altivec_init_builtins): Likewise.
24199         (builtin_function_type): Likewise.
24200
24201 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24202
24203         * config/sh/sh.c (sh_media_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/sparc/sparc.c (sparc_file_end): Call
24209         build_function_type_list instead of build_function_type.
24210
24211 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24212
24213         * config/alpha/alpha.c (alpha_init_builtins): Call
24214         build_function_type_list instead of build_function_type.
24215
24216 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24217
24218         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
24219         build_function_type_list instead of build_function_type.
24220
24221 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24222
24223         * config/iq2000/i2000.c (iq2000_init_builtins): Call
24224         build_function_type_list instead of build_function_type.
24225         Delete `endlink' variable.
24226
24227 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24228
24229         * config/avr/avr.c (avr_init_builtins): Call
24230         build_function_type_list instead of build_function_type.
24231
24232 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24233
24234         * config/picochip/picochip.c (picochip_init_builtins): Call
24235         build_function_type_list instead of build_function_type.
24236         Delete `endlink' variable.
24237
24238 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24239
24240         * config/bfin/bfin.c (bfin_init_builtins): Call
24241         build_function_type_list instead of build_function_type.
24242
24243 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24244
24245         From Bernd Schmidt
24246         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
24247         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
24248
24249 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24250
24251         From Jie Zhang:
24252         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
24253         libbffastfp overrides libgcc when -mfast-fp.
24254
24255 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24256
24257         Originally from Bernd Schmidt
24258         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
24259         * config/bfin/bfin.c (override_options): Test it and error if
24260         TARGET_FDPIC.
24261
24262 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24263
24264         Originally From Bernd Schmidt
24265         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
24266         FD-PIC.
24267
24268 2011-05-03  Jeff Law  <law@redhat.com>
24269
24270         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
24271         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
24272         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
24273         than accessing AUX field directly.  Free the AUX field before
24274         clearing it.
24275         (thread_block, thread_through_loop_header): Likewise.
24276         (thread_single_edge, mark_threaded_blocks): Likewise.
24277         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
24278         (register_jump_thread): Do not attempt to thread to a NULL edge.
24279
24280 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
24281
24282         * function.c (init_function_start): Call decide_function_section.
24283         * varasm.c (decide_function_section): New function.
24284         (assemble_start_function): When not using
24285         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
24286         or first_function_block_is_cold.
24287         * rtl.h (decide_function_section): Declare.
24288
24289 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
24290             Jakub Jelinek  <jakub@redhat.com>
24291
24292         PR target/48774
24293         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
24294         only succeed if req_mode is the same as set_mode.
24295
24296 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
24297
24298         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
24299         * genemit.c (gen_exp): Handle RETURN.
24300         * emit-rtl.c (verify_rtx_sharing): Likewise.
24301         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
24302         * rtl.c (copy_rtx): RETURN is shared.
24303         * rtl.h (enum global_rtl_index): Add GR_RETURN.
24304         (ret_rtx): New.
24305         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
24306         * config/s390/s390.c (s390_emit_epilogue): Likewise.
24307         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
24308         * config/cris/cris.c (cris_expand_return): Likewise.
24309         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
24310         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
24311         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
24312         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
24313         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
24314         Likewise.
24315         * config/v850/v850.c (expand_epilogue): Likewise.
24316         * config/bfin/bfin.c (bfin_expand_call): Likewise.
24317         * config/arm/arm.md (epilogue): Likewise.
24318         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
24319         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
24320         variable to ret_reg.
24321
24322 2011-05-03  Richard Guenther  <rguenther@suse.de>
24323
24324         PR lto/48846
24325         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
24326         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
24327         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
24328
24329 2011-05-03  Richard Guenther  <rguenther@suse.de>
24330
24331         * c-decl.c (grokdeclarator): Instead of looking at
24332         TREE_OVERFLOW check if the constant fits in the index type.
24333
24334 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
24335
24336         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
24337         (vec_store_lanes<mode><mode>): Likewise.
24338
24339 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
24340
24341         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
24342         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
24343         convert_optab_index values.
24344         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
24345         * genopinit.c (optabs): Initialize the new optabs.
24346         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
24347         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
24348         (expand_STORE_LANES): New functions.
24349         * tree.h (build_array_type_nelts): Declare.
24350         * tree.c (build_array_type_nelts): New function.
24351         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
24352         (vect_model_load_cost): Likewise.
24353         (vect_store_lanes_supported, vect_load_lanes_supported)
24354         (vect_record_strided_load_vectors): Declare.
24355         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
24356         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
24357         (vect_transform_strided_load): Split out statement recording into...
24358         (vect_record_strided_load_vectors): ...this new function.
24359         * tree-vect-stmts.c (create_vector_array, read_vector_array)
24360         (write_vector_array, create_array_ref): New functions.
24361         (vect_model_store_cost): Add store_lanes_p argument.
24362         (vect_model_load_cost): Add load_lanes_p argument.
24363         (vectorizable_store): Try to use store-lanes functions for
24364         interleaved stores.
24365         (vectorizable_load): Likewise load-lanes and loads.
24366         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
24367         to vect_model_store_cost.
24368         (vect_build_slp_tree): Likewise vect_model_load_cost.
24369
24370 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
24371
24372         * hooks.h (hook_bool_mode_uhwi_false): Declare.
24373         * hooks.c (hook_bool_mode_uhwi_false): New function.
24374         * target.def (array_mode_supported_p): New hook.
24375         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
24376         * doc/tm.texi: Regenerate.
24377         * stor-layout.c (mode_for_array): New function.
24378         (layout_type): Use it.
24379         * config/arm/arm.c (arm_array_mode_supported_p): New function.
24380         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
24381
24382 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
24383
24384         PR target/48723
24385         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
24386         for -fstack-check if the size to allocate is negative.
24387
24388 2011-05-02  Lawrence Crowl  <crowl@google.com>
24389
24390         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
24391         (timevar_cond_start): New for starting a timer only when it is not
24392         already running.
24393         (timevar_cond_stop): New for stopping a timer when it was not already
24394         running.
24395
24396         * timevar.c (timevar_stop): Enable start/stop timers to start again.
24397         (timevar_cond_start): New as above.
24398         (timevar_cond_stop): New as above.
24399
24400         * timevar.def: Add start/stop timers for compiler phases,
24401         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
24402         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
24403         and TV_PHASE_FINALIZE.
24404         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
24405         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
24406         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
24407         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
24408         Make unused TV_OVERLOAD into a start/stop timer.
24409
24410         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
24411         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
24412         to indicate that they are start/stop timers.
24413
24414         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
24415         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
24416         Move initialization to do_compile.
24417         (do_compile): Add initialization from above.
24418         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
24419
24420         * c-decl.c (c_write_global_declarations): Add start/stop of
24421         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
24422
24423         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
24424         or TV_PARSE_INLINE, as appropriate.
24425         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
24426         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
24427
24428 2011-05-02  Jason Merrill  <jason@redhat.com>
24429
24430         PR c++/40975
24431         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
24432
24433 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
24434
24435         PR c/35445
24436         * c-decl.c (finish_decl): Only create a composite if the types are
24437         compatible.
24438
24439 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
24440
24441         * config/fr30/fr30-protos.h (Mmode): Don't define.
24442         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
24443         definition where used.
24444         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
24445         define.  Expand definitions where used.
24446         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
24447         Expand definitions where used.
24448         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
24449         rx_function_arg, rx_function_arg_advance,
24450         rx_function_arg_boundary): Expand definitions of those macros.
24451         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
24452         definition where used.
24453
24454 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
24455
24456         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
24457         reg<->xmm moves.
24458         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
24459         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
24460         with *movv2sf_internal_rex64_avx.
24461         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
24462         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
24463         Use %v prefix in insn mnemonic to handle TARGET_AVX.
24464         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
24465         "vex" in "prefix" attribute calculation.
24466         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
24467
24468 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
24469
24470         PR target/47951
24471         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
24472         inputs match the output.
24473
24474 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
24475
24476         PR target/47955
24477         * config/m68k/m68k.c (m68k_expand_prologue): Set
24478         current_function_static_stack_size.
24479
24480 2011-05-02   Jan Hubicka  <jh@suse.cz>
24481
24482         * lto-streamer.c (lto_streamer_cache_insert_1,
24483         lto_streamer_cache_lookup, lto_streamer_cache_create,
24484         lto_streamer_cache_delete): Use pointer map instead of hashtable.
24485         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
24486
24487 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
24488
24489         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
24490         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
24491         config/m68k/t-opts: New files.
24492         * config/m68k/m68k-tables.opt: New file (generated).
24493         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
24494         extra_options and m68k/t-opts to tmake_file.
24495         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
24496         (all_isas): Initialize using m68k-isas.def.
24497         (all_microarchs): Initialize using m68k-microarchs.def.
24498         (m68k_find_selection): Remove.
24499         (m68k_handle_option): Don't assert that global structures are in
24500         use.  Use error_at.  Access variables via opts pointer.  Don't
24501         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
24502         directly for -m68020-40 and -m68020-60.
24503         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
24504         m68k_tune_entry here.
24505         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
24506         to m68k-opts.h.
24507         (m68k_library_id_string): Remove declaration.
24508         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
24509         (m68k_library_id_string): New Variable.
24510         (march=, mcpu=, mtune=): Use Enum and Var.
24511
24512 2011-05-02  Richard Guenther  <rguenther@suse.de>
24513
24514         * varasm.c (output_constructor_regular_field): Compute zero-based
24515         index with double-ints.  Make sure to ICE instead of producing
24516         wrong code.
24517         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
24518         in asserts.  Properly use a signed type.
24519
24520 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
24521
24522         * config/i386/sse.md (V): New mode iterator.
24523         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
24524         TARGET_SSE2.
24525         (V_256): Rename from AVX256MODE.
24526         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
24527         condition to all users.
24528         (VF1): Ditto.
24529         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
24530         condition to all users.
24531         (VF_128): Make V4SF mode unconditional.
24532         (VF_256): Rename from AVX256MODEF2P.
24533         (VI4F_128): Rename from SSEMODE4S.
24534         (VI8F_128): Rename from SSEMODE2D.
24535         (VI4F_256): Rename from AVX256MODE8P.
24536         (VI8F_256): Rename from AVX256MODE4P.
24537         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
24538         (ssescalarmodesuffix): Remove SF and DF modes.
24539         (SSEMODE124): Remove.
24540         (SSEMODE1248): Ditto.
24541         (SSEMODEF2P): Ditto.
24542         (AVXMODEF2P): Ditto.
24543         (AVXMODEFDP): Ditto.
24544         (AVXMODEFSP): Ditto.
24545         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
24546         unconditional.
24547         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
24548         unconditional.
24549         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
24550         xop_pcmov_<mode>256.  Use V mode iterator.
24551
24552         Adjust RTX patterns globally for renamed mode attributes.
24553
24554 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24555
24556         * haifa-sched.c (sched_emit_insn): Emit insn before first
24557         non-scheduled insn.  Inform back-end about new insn.  Add
24558         new insn to scheduled_insns list.
24559
24560 2011-05-02  Richard Guenther  <rguenther@suse.de>
24561
24562         PR tree-optimization/48822
24563         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
24564         (process_scc): Indicate which iteration we start.
24565
24566 2011-05-02  Jan Hubicka  <jh@suse.cz>
24567
24568         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
24569         (lto_section_overrun): New.
24570         * lto-section-out.c (append_block): Rename to ...
24571         (lto_append_block): ... this one; export.
24572         (lto_output_1_stream): Move lto lto-streamer.h
24573         (lto_output_data_stream): Update.
24574         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
24575         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
24576         functions.
24577
24578 2011-05-02  Richard Guenther  <rguenther@suse.de>
24579
24580         * tree.c (tree_code_counts): New global array.
24581         (record_node_allocation_statistics): Count individual tree codes.
24582         (dump_tree_statistics): Dump individual code stats.
24583
24584 2011-05-01  Jan Hubicka  <jh@suse.cz>
24585
24586         * ipa-inline.c (caller_growth_limits): Fix thinko when
24587         looking for largest stack frame.
24588         * ipa-inline.h (dump_inline_summary): Declare.
24589         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
24590         on stack usage.
24591         (dump_inline_summary): Export.
24592         (debug_inline_summary): Declare as DEBUG_FUNCTION.
24593
24594 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
24595
24596         * reginfo.c (memory_move_cost): Change rclass argument type form
24597         'enum reg_class' to reg_class_t.
24598         * reload.h (memory_move_cost): Update prototype.
24599         * postreload.c reload_cse_simplify_set): Change type dclass var to
24600         reg_class_t.
24601         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
24602         Update prototype.
24603         (ira_allocate_and_set_costs): Change aclass argument type form
24604         'enum reg_class' to reg_class_t.
24605         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
24606         Change aclass argument type to reg_class_t.
24607         (update_conflict_hard_reg_costs): Change type aclass and pref vars
24608         to reg_class_t.
24609         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
24610         memory_move_cost call.
24611
24612         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
24613         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
24614         Change type tmp var to reg_class_t.
24615
24616 2011-04-30  Jan Hubicka  <jh@suse.cz>
24617
24618         * ipa-inline.c (can_inline_edge_p): Disregard limits when
24619         inlining into function with flatten attribute.
24620         (want_inline_small_function_p): Be more realistic about inlining
24621         cold calls where callee size grows.
24622
24623 2011-04-30  Jan Hubicka  <jh@suse.cz>
24624
24625         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
24626         flags.
24627
24628 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
24629
24630         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
24631         PRINT_OPERAND_PUNCT_VALID_P): Remove.
24632         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
24633         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
24634         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24635         (print_operand): Rename to...
24636         (sparc_print_operand): ...this. Make static. Adjust
24637         sparc_print_operand function call.
24638         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
24639         functions.
24640
24641 2011-04-30  Jan Hubicka  <jh@suse.cz>
24642
24643         PR middle-end/48752
24644         * ipa-inline.c (early_inliner): Disable when doing late
24645         addition of function.
24646
24647 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
24648
24649         * dwarf2out.c (get_address_mode): New inline.
24650         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
24651         if not dwarf_strict emit
24652         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
24653         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
24654         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
24655         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
24656         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
24657         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
24658         mem_loc_descriptor callers.
24659         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
24660         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
24661         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
24662         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
24663         (base_types): New variable.
24664         (get_base_type_offset, calc_base_type_die_sizes,
24665         base_type_for_mode, mark_base_types, base_type_cmp,
24666         move_marked_base_types): New functions.
24667         (calc_die_sizes): Assert that die_offset is 0 or equal to
24668         next_die_offset.
24669         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
24670         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
24671         callers.  If not dwarf_strict, call mem_loc_descriptor even for
24672         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
24673         (gen_subprogram_die): Don't give up on call site parameters
24674         with non-integral or large integral modes.  Adjust
24675         mem_loc_descriptor callers.
24676         (prune_unused_types): Call prune_unused_types_mark on base_types
24677         vector entries.
24678         (resolve_addr): Call mark_base_types.
24679         (dwarf2out_finish): Call move_marked_base_types.
24680
24681         PR tree-optimization/48809
24682         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
24683         type.
24684         (gen_inbound_check): Don't compute index_expr - range_min in utype
24685         again, instead reuse SSA_NAME initialized in build_arrays.
24686         Remove two useless gsi_for_stmt calls.
24687
24688 2011-04-29  Jeff Law  <law@redhat.com>
24689
24690         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
24691
24692 2011-04-29  Martin Jambor  <mjambor@suse.cz>
24693
24694         * cgraph.h (cgraph_postorder): Remove declaration.
24695         * ipa-utils.h (ipa_free_postorder_info): Declare.
24696         (ipa_reverse_postorder): Likewise.
24697         * cgraphunit.c: Include ipa-utils.h.
24698         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
24699         * ipa-inline.c: Include ipa-utils.h.
24700         (ipa_inline): Update call to ipa_reverse_postorder.
24701         * ipa-pure-const.c (propagate_pure_const): Update call to
24702         ipa_reduced_postorder and ipa_print_order.  Call
24703         ipa_free_postorder_info to clean up.
24704         (propagate_nothrow): Likewise.
24705         * ipa-reference.c (propagate): Removed a useless call to
24706         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
24707         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
24708         * ipa.c: Include ipa-utils.h.
24709         (ipa_profile): Update call to ipa_reverse_postorder.
24710         (cgraph_postorder): Moved to...
24711         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
24712         (ipa_utils_print_order): Renamed to ipa_print_order.
24713         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
24714         comments.
24715         (ipa_free_postorder_info): New function.
24716         * passes.c: Include ipa-utils.h.
24717         (do_per_function_toporder): Update call to ipa_reverse_postorder.
24718         (ipa_write_summaries): Likewise.
24719         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
24720         (cgraphunit.o): Likewise.
24721         (ipa.o): Likewise.
24722         (ipa-inline.o): Likewise.
24723
24724 2011-04-29  Jan Hubicka  <jh@suse.cz>
24725
24726         * ipa-inline.h (clause_t): Turn into unsigned int.
24727         * ipa-inline-analysis.c (add_clause): Do more simplification.
24728         (and_predicates): Shortcut more cases.
24729         (predicates_equal_p): Move forward; check that clauses are properly
24730         ordered.
24731         (or_predicates): Shortcut more cases.
24732         (edge_execution_predicate): Rewrite as...
24733         (set_cond_stmt_execution_predicate): ... this function; handle
24734         __builtin_constant_p.
24735         (set_switch_stmt_execution_predicate): New .
24736         (compute_bb_predicates): New.
24737         (will_be_nonconstant_predicate): Update TODO.
24738         (estimate_function_body_sizes): Use compute_bb_predicates
24739         and free them later, always try to estimate if stmt is constant.
24740         (estimate_time_after_inlining, estimate_size_after_inlining):
24741         Gracefully handle optimized out edges.
24742         (read_predicate): Fix off by one error.
24743
24744 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
24745
24746         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
24747
24748 2011-04-27  Xinliang David Li  <davidxl@google.com>
24749
24750         * tree-profile.c (init_ic_make_global_vars): Set
24751         tls attribute on ic vars.
24752         * coverage.c (coverage_end_function): Initialize
24753         function_list with zero.
24754
24755 2011-04-29  Richard Guenther  <rguenther@suse.de>
24756
24757         * builtins.c (fold_builtin_classify_type): Use integer_type_node
24758         for the type of the result.
24759         (fold_builtin_isascii): Likewise.
24760         (fold_builtin_toascii): Use integer_type_node where appropriate.
24761         (fold_builtin_logb): Likewise.
24762         (fold_builtin_frexp): Likewise.
24763         (fold_builtin_strstr): Likewise.
24764         (fold_builtin_strpbrk): Likewise.
24765         (fold_builtin_fputs): Likewise.
24766         (fold_builtin_sprintf): Likewise.
24767         (fold_builtin_snprintf): Likewise.
24768         (fold_builtin_printf): Likewise.
24769         (do_mpfr_remquo): Use a proper type for the assigned constant.
24770         (do_mpfr_lgamma_r): Likewise.
24771         * dwarf2out.c (resolve_one_addr): Use size_int.
24772         * except.c (init_eh): Likewise.
24773         (assign_filter_values): Use integer_type_node for filter values.
24774         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
24775         indices.
24776         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
24777         for EH region numbers.
24778         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
24779         for the shift amount.
24780
24781 2011-04-29  Richard Guenther  <rguenther@suse.de>
24782
24783         * expr.h (expand_shift): Rename to ...
24784         (expand_variable_shift): ... this.
24785         (expand_shift): Take a constant shift amount.
24786         * expmed.c (expand_shift): Rename to ...
24787         (expand_variable_shift): ... this.
24788         (expand_shift): New wrapper around expand_variable_shift.
24789         * expr.c (convert_move, emit_group_load_1, emit_group_store,
24790         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
24791         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
24792         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
24793         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
24794         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
24795         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
24796         emit_store_flag_1, emit_store_flag): Likewise.
24797         * builtins.c (expand_builtin_signbit): Likewise.
24798         * calls.c (load_register_parameters): Likewise.
24799         * function.c (assign_parm_setup_block): Likewise.
24800         * lower-subreg.c (resolve_shift_zext): Likewise.
24801         * optabs.c (widen_bswap, expand_abs_nojump,
24802         expand_one_cmpl_abs_nojump, expand_float): Likewise.
24803         * spu/spu.c (spu_expand_extv): Likewise.
24804         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
24805
24806 2011-04-29  Richard Guenther  <rguenther@suse.de>
24807
24808         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
24809         for the remapped region number.
24810         * predict.c (build_predict_expr): Use integer_type_node for the
24811         predict kind.
24812         * fold-const.c (fold_binary_loc): Use integer_type_node for
24813         the shift amount.  Use a proper type for the PLUS_EXPR operand.
24814
24815 2011-04-29  Michael Matz  <matz@suse.de>
24816
24817         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
24818         other trees that just builtins.
24819         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
24820
24821 2011-04-29  Richard Guenther  <rguenther@suse.de>
24822
24823         * tree-nested.c (get_trampoline_type): Use size_int.
24824         (get_nl_goto_field): Likewise.
24825         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
24826         for all indexes.
24827         (lower_eh_constructs_2): Likewise.
24828         (lower_resx): Likewise.
24829         (lower_eh_dispatch): Likewise.
24830         * tree-mudflap.c (mf_build_string): Use size_int.
24831         (mudflap_register_call): Use integer_type_node for the flag.
24832         (mudflap_enqueue_constant): Use size_int.
24833         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
24834         instead of rebuilding it.
24835
24836 2011-04-29  Richard Guenther  <rguenther@suse.de>
24837
24838         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
24839         Handle OBJ_TYPE_REF.
24840         (find_func_aliases_for_call): Use it more consistently.
24841
24842 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
24843
24844         * haifa-sched.c (last_nondebug_scheduled_insn): New.
24845         (rank_for_schedule): Use it.
24846         (schedule_block): Set it.
24847
24848 2011-04-28  David Li  <davidxl@google.com>
24849
24850         * tree.c (crc32_string): Use crc32_byte.
24851         (crc32_byte): New function.
24852         * tree.h (crc32_byte): New function.
24853         * gcov.c (read_graph_file): Handle new cfg_cksum.
24854         (read_count_file): Ditto.
24855         * profile.c (instrument_values): Ditto.
24856         (get_exec_counts): Ditto.
24857         (read_profile_edge_counts): Ditto.
24858         (compute_branch_probabilities): Ditto.
24859         (compute_value_histograms): Ditto.
24860         (branch_prob): Ditto.
24861         (end_branch_prob): Ditto.
24862         * coverage.c (read_counts_file): Ditto.
24863         (get_coverage_counts): Ditto.
24864         (tree_coverage_counter_addr): Ditto.
24865         (coverage_checksum_string): Ditto.
24866         (coverage_begin_output): Ditto.
24867         (coverage_end_function): Ditto.
24868         (build_fn_info_type): Ditto.
24869         (build_fn_info_value): Ditto.
24870         * libgcov.c (gcov_exit): Ditto.
24871         * gcov-dump.c (tag_function): Ditto.
24872         (compute_checksum): Remove.
24873
24874 2011-04-29  Alan Modra  <amodra@gmail.com>
24875
24876         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
24877         unspec plus offset.  Tidy macho code.
24878
24879 2011-04-29  Martin Jambor  <mjambor@suse.cz>
24880
24881         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
24882         node instead of a decl.  Update all callers.
24883         * cgraph.h: Update declaration.
24884
24885 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
24886
24887         PR tree-optimization/48765
24888         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
24889         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
24890         to indicate if loop aware SLP is being used.  Scan the statements
24891         and update the vectorization factor according to the type of
24892         vectorization before statement analysis.
24893         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
24894         pass it to vect_analyze_loop_operations.
24895         (vectorizable_reduction): Set number of copies to 1 in case of pure
24896         SLP statement.
24897         * tree-vect-stmts.c (vectorizable_conversion,
24898         vectorizable_assignment, vectorizable_shift,
24899         vectorizable_operation, vectorizable_type_demotion,
24900         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
24901         Likewise.
24902         (vectorizable_condition): Move the check that it is not SLP
24903         vectorization before the number of copies check.
24904         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
24905         to vectorize the loop using SLP.
24906
24907 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
24908
24909         PR middle-end/48597
24910         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
24911         inline asm.
24912
24913 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
24914
24915         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
24916         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
24917         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
24918         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
24919         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
24920         linux*.h headers.
24921         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
24922         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
24923         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
24924         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
24925         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
24926         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
24927         REG_NAME.
24928         * config/i386/linux.h (REG_NAME): Don't define.
24929         * config/i386/linux64.h (REG_NAME): Don't define.
24930         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
24931         Undefine before defining.
24932
24933 2011-04-28  Jan Hubicka  <jh@suse.cz>
24934
24935         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
24936         nonconstant_names array.
24937         (estimate_function_body_sizes): Build nonconstant_names array; handle
24938         BUILT_IN_CONSTANT_P.
24939
24940 2011-04-28  Richard Guenther  <rguenther@suse.de>
24941
24942         PR bootstrap/48804
24943         Revert
24944         2011-04-28  Richard Guenther  <rguenther@suse.de>
24945
24946         * tree-ssa-structalias.c (solve_constraints): Build succ graph
24947         as late as possible.
24948
24949 2011-04-28  Richard Guenther  <rguenther@suse.de>
24950
24951         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
24952         (debug_constraint): Do it here.
24953         (dump_constraints): And here.
24954         (rewrite_constraints): And here.
24955         (dump_constraint_edge): Remove.
24956         (dump_constraint_graph): Rewrite to produce DOT output.
24957         (solve_constraints): Build succ graph as late as possible.
24958         Dump constraint graphs before and after solving.
24959
24960 2011-04-28  Richard Guenther  <rguenther@suse.de>
24961
24962         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24963         New function split out from ...
24964         (find_func_aliases): ... here.  Call it.
24965         (find_func_aliases_for_call): Likewise.
24966
24967 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
24968
24969         * internal-fn.h (internal_fn_name_array): Declare.
24970         (internal_fn_flags_array): Likewise.
24971
24972 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
24973
24974         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
24975         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
24976         Move from sse.md.
24977         (ssemodefsuffix): Remove.
24978         (ssevecmodesuffix): New mode attribute.
24979         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
24980         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
24981         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
24982         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
24983         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
24984         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
24985         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
24986         ssemodesuffix mode attribute.
24987         (float splitters): Use ssevecmodesuffix mode attribute.
24988         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
24989         (sseinsmode): Rename from avxvecmode.
24990         (avxsizesuffix): Rename from avxmodesuffix.
24991         (sseintvecmode): Rename from avxpermvecmode.
24992         (ssedoublevecmode): Rename from ssedoublesizemode.
24993         (ssehalfvecmode): Rename from avxhalfvecmode.
24994         (ssescalarmode): Rename from avxscalarmode.
24995         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
24996         templates for ssemodesuffix mode attribute.
24997         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
24998         mode attribute.
24999
25000         Adjust RTX patterns globally for renamed mode attributes.
25001
25002 2011-04-27  Jan Hubcika  <jh@suse.cz>
25003
25004         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
25005         * ipa-inline-analysis.c: Include alloc-pool.h.
25006         (edge_predicate_pool): New.
25007         (trye_predicate_p): New function
25008         (false_predicate_p): New function.
25009         (add_clause): Sanity check that false clauses are "optimized";
25010         never add clauses to predicate that is already known to be false.
25011         (and_predicate): Use flase_predicate_p.
25012         (evaulate_predicate): Rename to ...
25013         (evaluate_predicate): ... this one; update all callers; assert
25014         that false is not listed among possible truths.
25015         (dump_predicate): Use true_predicate_p.
25016         (account_size_time): Use false_predicate_p.
25017         (evaulate_conditions_for_edge): Rename to ...
25018         (evaluate_conditions_for_edge) ... this one.
25019         (edge_set_predicate): New function.
25020         (inline_edge_duplication_hook): Duplicate edge predicates.
25021         (inline_edge_removal_hook): Free edge predicates.
25022         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
25023         (dump_inline_summary): Update.
25024         (estimate_function_body_sizes): Set edge predicates.
25025         (estimate_calls_size_and_time): Handle predicates.
25026         (estimate_callee_size_and_time): Update.
25027         (remap_predicate): Add toplev_predicate; update comment.
25028         (remap_edge_predicates): New function.
25029         (inline_merge_summary): Compute toplev predicate; update.
25030         (read_predicate): New function.
25031         (read_inline_edge_summary): Use it.
25032         (inline_read_section): Likewise.
25033         (write_predicate): New function.
25034         (write_inline_edge_summary): Use it.
25035         (inline_write_summary): Likewise.
25036         (inline_free_summary): Free alloc pool and edge summary vec.
25037
25038 2011-04-27  Richard Guenther  <rguenther@suse.de>
25039
25040         * tree-ssa-structalias.c (changed_count): Remove.
25041         (changed): Use a bitmap.
25042         (unify_nodes): Adjust.
25043         (do_sd_constraint): Likewise.
25044         (do_ds_constraint): Likewise.
25045         (do_complex_constraint): Likewise.
25046         (solve_graph): Likewise.
25047
25048 2011-04-27  Jan Hubicka  <jh@suse.cz>
25049
25050         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
25051
25052 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
25053
25054         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
25055         (avx_vperm2f128_*_operand): Ditto.
25056         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
25057         Use avx_vpermilp_parallel in insn condition.
25058         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
25059         Use avx_vperm2f128_parallel in insn condition.
25060
25061 2011-04-27  Richard Guenther  <rguenther@suse.de>
25062
25063         * Makefile.in (tree-ssa-structalias.o): Remove
25064         gt-tree-ssa-structalias.h dependency.
25065         (GTFILES): Remove tree-ssa-structalias.c.
25066         * tree.c (allocate_decl_uid): New function.
25067         (make_node_stat): Use it.
25068         (copy_node_stat): Likewise.
25069         * tree.h (allocate_decl_uid): Declare.
25070         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
25071         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
25072         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
25073         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
25074         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
25075         (struct heapvar_map): Likewise.
25076         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
25077         heapvar_insert): Likewise.
25078         (make_heapvar_for): Rename to ...
25079         (make_heapvar): ... this.  Simplify.
25080         (fake_var_decl_obstack): New global var.
25081         (build_fake_var_decl): New function.
25082         (make_constraint_from_heapvar): Adjust.
25083         (handle_lhs_call): Likewise.
25084         (create_function_info_for): Likewise.
25085         (intra_create_variable_infos): Likewise.
25086         (init_alias_vars): Allocate fake_var_decl_obstack.
25087         (init_alias_heapvars, delete_alias_heapvars): Remove.
25088         (compute_points_to_sets): Do not call init_alias_heapvars.
25089         (ipa_pta_execute): Likewise.
25090         (delete_points_to_sets): Free fake_var_decl_obstack.
25091
25092 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25093
25094         * config/spu/divmovti4.c (union qword_UTItype): New data type.
25095         (si_from_UTItype, si_to_UTItype): New functions.
25096         (__udivmodti4): Use them to implement type-punning.
25097         * config/spu/multi3.c (union qword_TItype): New data type.
25098         (si_from_TItype, si_to_TItype): New functions.
25099         (__multi3): Use them to implement type-punning.
25100
25101 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25102
25103         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
25104
25105 2011-04-27  Jan Hubicka  <jh@suse.cz>
25106
25107         * ipa-prop.c (function_insertion_hook_holder): New holder.
25108         (ipa_add_new_function): New function.
25109         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
25110         Register/deregister holder.
25111
25112 2011-04-27  Richard Guenther  <rguenther@suse.de>
25113
25114         PR tree-optimization/48772
25115         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
25116
25117 2011-04-27  Richard Guenther  <rguenther@suse.de>
25118
25119         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
25120         TARGET_MEM_REF handling.
25121
25122 2011-04-27  Nick Clifton  <nickc@redhat.com>
25123
25124         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
25125         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
25126         (REG_CLASS_NAMES): Likewise.
25127         (REG_CLASS_CONTENTS): Likewise.
25128         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
25129         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
25130         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
25131         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
25132         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
25133         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
25134         duplicate register classes.
25135         (frv_class_likely_spilled_p): Likewise.
25136         (frv_register_move_cost): Likewise.
25137
25138         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
25139         end of the regno_reg_class array.
25140
25141 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
25142
25143         PR c/48742
25144         * c-typeck.c (build_binary_op): Don't wrap arguments if
25145         int_operands is true.
25146
25147 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
25148
25149         PR target/48767
25150         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
25151         targetm.calls.must_pass_in_stack for void type.
25152
25153 2011-04-26  Jan Hubicka  <jh@suse.cz>
25154
25155         * cgraphbuild.c (build_cgraph_edges): Update call
25156         of cgraph_create_edge and cgraph_create_indirect_edge.
25157         * cgraph.c (cgraph_create_edge_including_clones,
25158         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
25159         cgraph_update_edges_for_call_stmt_node): Do not take nest
25160         argument; do not initialize call_stmt_size/time.
25161         (dump_cgraph_node): Do not dump nest.
25162         (cgraph_clone_edge): Do not take loop_nest argument;
25163         do not propagate it; do not clone call_stmt_size/time.
25164         (cgraph_clone_node): Likewise.
25165         (cgraph_create_virtual_clone): Update.
25166         * cgraph.h (struct cgraph_edge): Remove
25167         call_stmt_size/call_stmt_time/loop_nest.
25168         (cgraph_create_edge, cgraph_create_indirect_edge,
25169         cgraph_create_edge_including_clones, cgraph_clone_node): Update
25170         prototype.
25171         * tree-emutls.c (gen_emutls_addr): Update.
25172         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
25173         loop_nest; handle indirect calls, too.
25174         (clone_inlined_nodes): Do not care about updating inline summaries.
25175         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
25176         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
25177         stream call_stmt_size/call_stmt_time/loop_nest.
25178         * ipa-inline.c (edge_badness): Update.
25179         (ipa_inline): dump summaries after inlining.
25180         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
25181         New.
25182         (inline_edge_summary): New function.
25183         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
25184         (inline_edge_removal_hook): Handle edge summaries.
25185         (inline_edge_duplication_hook): New hook.
25186         (inline_summary_alloc): Alloc hooks.
25187         (initialize_growth_caches): Do not register removal hooks.
25188         (free_growth_caches); Do not free removal hook.
25189         (dump_inline_edge_summary): New function.
25190         (dump_inline_summary): Use it.
25191         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
25192         (inline_update_callee_summaries): New function.
25193         (inline_merge_summary): Use it.
25194         (do_estimate_edge_time, do_estimate_edge_growth): Update.
25195         (read_inline_edge_summary): New function.
25196         (inline_read_section): Use it.
25197         (write_inline_edge_summary): New function.
25198         (inline_write_summary): Use it.
25199         (inline_free_summary): Free edge new holders.
25200         * tree-inline.c (copy_bb): Update.
25201
25202 2011-04-26  Jason Merrill  <jason@redhat.com>
25203
25204         * tree-eh.c (lower_try_finally_switch): Create the label along with
25205         the CASE_LABEL_EXPR.
25206
25207 2011-04-26  David S. Miller  <davem@davemloft.net>
25208             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25209
25210         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
25211         * configure: Regenerate.
25212
25213 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
25214
25215         PR target/48258
25216         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
25217         reduction.
25218         (VEC_reduc): New code iterator and splitters for vector reduction.
25219         (VEC_reduc_name): Ditto.
25220         (VEC_reduc_rtx): Ditto.
25221         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
25222         (reduc_<VEC_reduc_name>_v4sf): Ditto.
25223
25224         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
25225         support for extracting SF on VSX.
25226
25227         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
25228         generating xscvspdp.
25229         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
25230         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
25231         double add, minimum, maximum vector reduction.
25232         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
25233         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
25234         optimize double vector reduction.
25235         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
25236
25237 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
25238
25239         * config/fr30/fr30.h (inhibit_libc): Don't define.
25240         * config/m32r/m32r-protos.h: Correct comment.
25241         * config/v850/v850.h (GHS_default_section_names,
25242         GHS_current_section_names): Use tree, not union tree_node *.
25243
25244 2011-04-26  Xinliang David Li  <davidxl@google.com>
25245
25246         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
25247         * c-family/c-opts.c (c_common_handle_option): Set
25248         warn_maybe_uninitialized.
25249         * opts.c (common_handle_option): Ditto.
25250         * common.opt:  New option.
25251         * tree-ssa.c (warn_uninit): Add one more parameter.
25252         (warn_uninitialized_var): Pass warning code.
25253         * tree-flow.h: Interface change.
25254
25255 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25256
25257         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
25258         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
25259         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
25260
25261 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25262
25263         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
25264         * config/mips/mips.opt (mmips-tfile): Remove.
25265
25266         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
25267         mips-tdump reference to ...
25268         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
25269         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
25270         reference by Tru64 UNIX.
25271
25272 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
25273
25274         PR debug/48768
25275         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
25276         is error_mark_node, set value to NULL.
25277
25278         PR tree-optimization/48734
25279         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
25280         if return value from maybe_fold_*_comparsions isn't something
25281         the code is prepared to handle.
25282
25283 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
25284
25285         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
25286         mode check.
25287         (ext_QIreg_nomode_operands): Remove.
25288         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
25289         (*andsi_1): Ditto.
25290         (*andhi_1): Ditto.
25291
25292 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
25293
25294         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
25295
25296 2011-04-26  Richard Guenther  <rguenther@suse.de>
25297
25298         * c-typeck.c (build_unary_op): Do not expand array-refs via
25299         pointer arithmetic.  Only adjust qualifiers for function types.
25300
25301 2011-04-26  Richard Guenther  <rguenther@suse.de>
25302
25303         PR middle-end/48694
25304         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
25305         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
25306         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
25307         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
25308
25309 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
25310
25311         * doc/extend.texi: Document __underlying_type.
25312
25313 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
25314
25315         * config/rs6000/titan.md (automata_option "progress"): Remove.
25316
25317 2011-04-25  Jeff Law  <law@redhat.com>
25318
25319         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
25320
25321 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
25322
25323         * system.h (ENUM_BITFIELD): Remove.
25324
25325 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
25326             Eric Botcazou  <ebotcazou@adacore.com>
25327
25328         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
25329         for STORE_FLAG_VALUE==-1 case.
25330
25331 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
25332
25333         PR target/43804
25334         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
25335         LEGITIMATE_PIC_OPERAND_P.
25336
25337 2011-04-24  Jan Hubicka  <jh@suse.cz>
25338
25339         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
25340         WPA hack.
25341         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
25342         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
25343         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
25344         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
25345         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
25346         Sanity check predicate length.
25347         (remap_predicate): Likewise; sanity check jump functions.
25348         (inline_read_section, inline_write_summary): Sanity check
25349         predicate length.
25350
25351 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
25352
25353         PR other/48748
25354         * doc/extend.texi (Type Traits): Document __is_standard_layout,
25355         __is_literal_type, and __is_trivial; update throughout about
25356         possibly cv-qualified void types.
25357
25358 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
25359
25360         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
25361         testsuite and make it version agnostic.
25362
25363 2011-04-22  Jan Hubicka  <jh@suse.cz>
25364
25365         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
25366
25367 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
25368
25369         PR c/48685
25370         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
25371         to VOID_TYPE even around MODIFY_EXPR.
25372
25373 2011-04-22  Mike Stump  <mikestump@comcast.net>
25374
25375         * gensupport.c (read_md_rtx): Fix typo in comment.
25376         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
25377         comment.
25378
25379 2011-04-22  Jan Hubicka  <jh@suse.cz>
25380
25381         * gengtype.c (open_base_files): Add ipa-inline.h include.
25382         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
25383         ipa-prop.c; update all uses.
25384         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
25385         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
25386         merge summary of inlined function into former caller.
25387         * ipa-inline.c (max_benefit): Remove.
25388         (edge_badness): Compensate for removal of benefits.
25389         (update_caller_keys): Use
25390         reset_node_growth_cache/reset_edge_growth_cache.
25391         (update_callee_keys): Likewise.
25392         (update_all_callee_keys): Likewise.
25393         (inline_small_functions): Do not collect max_benefit; do not reset
25394         estimated_growth; call free_growth_caches and initialize_growth_caches.
25395         * ipa-inline.h (struct condition, type clause_t, struct predicate,
25396         struct size_time_entry): New structures.
25397         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
25398         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
25399         and estimated_growth.
25400         (edge_growth_cache_entry): New structure.
25401         (node_growth_cache, edge_growth_cache): New global vars.
25402         (estimate_growth): Turn into inline.
25403         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
25404         initialize_growth_caches, free_growth_caches): Declare.
25405         (estimate_edge_growth): Rewrite.
25406         (estimate_edge_time): Implement as inline cache lookup.
25407         (reset_node_growth_cache, reset_edge_growth_cache): New inline
25408         functions.
25409         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
25410         (NUM_CONDITIONS): New constant.
25411         (predicate_conditions): New enum.
25412         (IS_NOT_CONSTANT): New constant.
25413         (edge_removal_hook_holder): New var.
25414         (node_growth_cache, edge_growth_cache): New global vars.
25415         (true_predicate, single_cond_predicate, false_predicate,
25416         not_inlined_predicate, add_condition, add_clause, and_predicates,
25417         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
25418         dump_clause, dump_predicate, account_size_time,
25419         evaulate_conditions_for_edge): New functions.
25420         (inline_summary_alloc): Move to heap.
25421         (inline_node_removal_hook): Clear condition and entry vectors.
25422         (inline_edge_removal_hook): New function.
25423         (initialize_growth_caches, free_growth_caches): New function.
25424         (dump_inline_summary): Update.
25425         (edge_execution_predicate): New function.
25426         (will_be_nonconstant_predicate): New function.
25427         (estimate_function_body_sizes): Compute BB and constantness predicates.
25428         (compute_inline_parameters): Do not clear estimated_growth.
25429         (estimate_edge_size_and_time): New function.
25430         (estimate_calls_size_and_time): New function.
25431         (estimate_callee_size_and_time): New function.
25432         (remap_predicate): New function.
25433         (inline_merge_summary): New function.
25434         (do_estimate_edge_time): New function based on...
25435         (estimate_edge_time): ... this one.
25436         (do_estimate_edge_growth): New function.
25437         (do_estimate_growth): New function based on....
25438         (estimate_growth): ... this one.
25439         (inline_analyze_function): Analyze after deciding on jump functions.
25440         (inline_read_section): New function.
25441         (inline_read_summary): Use it.
25442         (inline_write_summary): Write all the new data.
25443         * ipa-prop.c (ipa_get_param_decl_index): Export.
25444         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
25445         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
25446         Declare.
25447         (ipa_get_lattice): Move here from ipa-cp.c
25448         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
25449         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
25450         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
25451         cgraph_edge_inlinable_p): Remove.
25452         * cgraphunit.c: Include ipainline.h
25453         (cgraph_process_new_functions): Update call of
25454         compute_inline_parameters.
25455
25456 2011-04-22  Richard Guenther  <rguenther@suse.de>
25457
25458         * tree.c (build_int_cst): Properly create canonicalized integer
25459         constants.
25460         (build_int_cst_type): Remove scary comments.
25461
25462 2011-04-22  Xinliang David Li  <davidxl@google.com>
25463
25464         * toplev.c (process_options): Enable -Werror=coverage-mismatch
25465         by default when -Wno-error is not specified.
25466         * opts-global.c (decode_options): Remove call to
25467         control_warning_options.
25468
25469 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
25470
25471         PR tree-optimization/48717
25472         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
25473         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
25474
25475 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
25476
25477         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
25478         definition where used.
25479
25480 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
25481
25482         PR c/48716
25483         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
25484         TREE_STATIC variables declared inside of some OpenMP construct.
25485
25486 2011-04-22  Martin Jambor  <mjambor@suse.cz>
25487
25488         PR middle-end/48585
25489         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
25490
25491 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
25492
25493         PR c/36750
25494         * c-typeck.c (pop_init_level): Do not warn about initializing
25495         with ` = {0}'.
25496
25497 2011-04-22  Alan Modra  <amodra@gmail.com>
25498
25499         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
25500         when returning call_cookie.
25501         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
25502         pointers, to functions with no more vector args than the current
25503         function, and some non-local calls for ABI_V4.
25504         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
25505         sibcall_nonlocal_aix64): Combine to ..
25506         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
25507         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
25508         (sibcall_value_nonlocal_aix<mode>): ..likewise.
25509         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
25510         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
25511         operand.
25512         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
25513         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
25514         sibcall_value_symbolic_64): Delete.
25515
25516 2011-04-21  Xinliang David Li  <davidxl@google.com>
25517
25518         * cgraph.h: Remove pid.
25519         * cgraph.c: Remove pid.
25520         * value-prof.c (init_node_map): New function.
25521         (del_node_map): New function.
25522         (find_func_by_funcdef_no): New function.
25523         (gimple_ic_transform): Call new function.
25524         * cgraphunit.c (cgraph_finalize_function): Remove pid.
25525         * function.c (get_last_funcdef_no): New function.
25526         * function.h (get_last_funcdef_no): New function.
25527         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
25528         to libgcov function.
25529         (tree-profiling): Call node map init and delete function.
25530
25531 2011-04-21  Ian Lance Taylor  <iant@google.com>
25532
25533         * godump.c (go_format_type): Use exported Go name for anonymous
25534         field name.
25535
25536 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
25537
25538         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
25539         Call builtin_function_type_list instead of builtin_function_type.
25540         (UNARY, BINARY, TRINARY, QUAD): Likewise.
25541
25542 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
25543
25544         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
25545         build_function_type_list instead of build_function_type.
25546         Delete variable `endlink'.
25547
25548 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
25549
25550         * config/s390/s390.c (s390_init_builtins): Call
25551         build_function_type_list instead of build_function_type.
25552
25553 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
25554
25555         * config/ia64/ia64.c (ia64_init_builtins): Call
25556         build_function_type_list instead of builtin_function_type.
25557
25558 2011-04-21  Easwaran Raman  <eraman@google.com>
25559
25560         * cfgexpand.c (stack_var): Remove OFFSET...
25561         (add_stack_var): ...and its reference here...
25562         (expand_stack_vars): ...and here.
25563         (stack_var_cmp): Sort by descending order of size.
25564         (partition_stack_vars): Change heuristic.
25565         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
25566         (dump_stack_var_partition): Add newline after each partition.
25567
25568 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
25569             Jeff Law  <law@redhat.com>
25570
25571         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
25572         * gengtype.c (matching_file_name_substitute): Likewise.
25573
25574 2011-04-21  Richard Guenther  <rguenther@suse.de>
25575
25576         PR lto/48703
25577         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
25578
25579 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
25580
25581         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
25582
25583 2011-04-21  Richard Guenther  <rguenther@suse.de>
25584
25585         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
25586         file name.
25587
25588 2011-04-21  Richard Guenther  <rguenther@suse.de>
25589
25590         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
25591         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
25592         Use DECL_P, not SSA_VAR_P.
25593         (ptr_derefs_may_alias_p): Likewise.
25594         (ptr_deref_may_alias_ref_p_1): Likewise.
25595         (decl_refs_may_alias_p): Likewise.
25596         (refs_may_alias_p_1): Likewise.
25597         (ref_maybe_used_by_call_p_1): Likewise.
25598         (call_may_clobber_ref_p_1): Likewise.
25599         (indirect_ref_may_alias_decl_p): Assume indirect refrences
25600         are either MEM_REF or TARGET_MEM_REF.
25601         (indirect_refs_may_alias_p): Likewise.
25602         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
25603         for MEM_EXPR of indirect calls.
25604
25605 2011-04-21  Tristan Gingold  <gingold@adacore.com>
25606
25607         * vmsdbgout.c (write_srccorr): Compute file length from the string.
25608         (dst_file_info_struct): Remove flen field.
25609         (lookup_filename): Remove code that set flen field.
25610
25611 2011-04-21  Tristan Gingold  <gingold@adacore.com>
25612
25613         * config/ia64/ia64.c (ia64_start_function): Add a guard.
25614
25615 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
25616
25617         PR target/48708
25618         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
25619         vec_extract and vec_concat for non-SSE4_1 targets.
25620
25621 2011-04-21  Richard Guenther  <rguenther@suse.de>
25622
25623         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
25624         return statements.
25625
25626 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
25627
25628         * config/i386/cygming.h (union tree_node, TREE): Don't define or
25629         undefine.
25630         (FILE): Don't undefine.
25631
25632 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
25633
25634         * config/alpha/alpha.c (struct machine_function): Use rtx, not
25635         struct rtx_def *.
25636         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
25637         struct rtx_def *.
25638         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
25639         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
25640         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
25641         rtx_def *.
25642         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
25643         definitions where used.
25644         * config/microblaze/microblaze.h (struct microblaze_args): Use
25645         rtx, not struct rtx_def *.
25646         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
25647         rtx_def *.
25648         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
25649         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
25650         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
25651         not struct rtx_def *.
25652         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
25653         struct rtx_def *.
25654         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
25655         rtx_def *.
25656         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
25657
25658 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
25659
25660         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
25661         operand_equal_p to compare DR_BASE_ADDRESSes.
25662         (vect_check_interleaving): Likewise.
25663
25664 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
25665
25666         PR target/46329
25667         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
25668         for all Neon struct constants.
25669
25670 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
25671
25672         * target.def (legitimate_constant_p): New hook.
25673         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
25674         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
25675         * doc/tm.texi: Regenerate.
25676         * hooks.h (hook_bool_mode_rtx_true): Declare.
25677         * hooks.c (hook_bool_mode_rtx_true): Define.
25678         * system.h (LEGITIMATE_CONSTANT_P): Poison.
25679         * calls.c (precompute_register_parameters): Replace uses of
25680         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
25681         (emit_library_call_value_1): Likewise.
25682         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
25683         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
25684         * ira-costs.c (scan_one_insn): Likewise.
25685         * recog.c (general_operand, immediate_operand): Likewise.
25686         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
25687         * reload1.c (init_eliminable_invariants): Likewise.
25688
25689         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
25690         mode argument.
25691         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
25692         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
25693         argument.
25694         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25695         * config/alpha/predicates.md (input_operand): Update call to
25696         alpha_legitimate_constant_p.
25697
25698         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
25699         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
25700         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
25701         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25702         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
25703         (arm_legitimate_constant_p): New functions.
25704         (arm_cannot_force_const_mem): Make static.
25705
25706         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
25707
25708         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
25709         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
25710         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
25711         instead of bfin_legitimate_constant_p.
25712         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
25713         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25714
25715         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
25716
25717         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
25718
25719         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
25720         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
25721         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25722         (frv_legitimate_constant_p): Make static.  Add a mode argument.
25723
25724         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
25725         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
25726         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
25727
25728         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
25729         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
25730         * config/i386/i386.c (legitimate_constant_p): Rename to...
25731         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
25732         argument.
25733         (ix86_cannot_force_const_mem): Update accordingly.
25734         (ix86_legitimate_address_p): Likewise.
25735         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25736         * config/i386/i386.md: Update commentary.
25737
25738         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
25739         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
25740         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25741         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
25742
25743         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
25744
25745         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
25746         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
25747         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25748         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
25749
25750         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
25751         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
25752         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
25753
25754         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
25755         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25756         (m32r_legitimate_constant_p): New function.
25757
25758         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
25759         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
25760         LEGITIMATE_CONSTANT_P.
25761         (LEGITIMATE_CONSTANT_P): Delete.
25762         * config/m68k/m68k.c (m68k_expand_prologue): Call
25763         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
25764         (m68k_legitimate_constant_p): New function.
25765         * config/m68k/m68k.md: Update comments.
25766
25767         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
25768         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25769         (mcore_legitimate_constant_p): New function.
25770
25771         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
25772         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
25773         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
25774         Add a mode argument.
25775         (mep_legitimate_address): Update accordingly.
25776         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25777
25778         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
25779         Delete.
25780         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
25781         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
25782         static.  Check OP's mode for VOIDmode.
25783         (microblaze_legitimate_constant_p): New function.
25784         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25785
25786         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
25787         * config/mips/mips.c (mips_legitimate_constant_p): New function.
25788         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
25789         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25790         * config/mips/predicates.md: Update comments.
25791
25792         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
25793         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
25794         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25795         (mmix_legitimate_constant_p): Make static, return a bool, and take
25796         a mode argument.
25797         (mmix_print_operand_address): Update accordingly.
25798
25799         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
25800         Delete.
25801         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
25802         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
25803         static.  Add a mode argument.
25804         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25805
25806         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
25807
25808         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
25809         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25810         (pa_legitimate_constant_p): New function.
25811
25812         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
25813
25814         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
25815         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25816         (pdp11_legitimate_constant_p): New function.
25817
25818         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
25819         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25820         (rs6000_legitimate_constant_p): New function.
25821
25822         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
25823         (rx_legitimate_constant_p): ...this.
25824         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
25825         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
25826         (rx_legitimate_constant_p): ...this.
25827         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25828         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
25829
25830         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
25831         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
25832         * config/s390/s390.c (legitimate_constant_p): Rename to...
25833         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
25834         and add a mode argument.
25835         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25836
25837         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
25838
25839         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
25840         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25841         (sh_legitimate_constant_p): New function.
25842
25843         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
25844         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
25845         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25846         (legitimate_constant_p): Rename to...
25847         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
25848         argument.
25849         (constant_address_p): Update accordingly.
25850
25851         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
25852         argument and return a bool.
25853         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
25854         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25855         (spu_legitimate_constant_p): Add a mode argument and return a bool.
25856         (spu_rtx_costs): Update accordingly.
25857         * config/spu/predicates.md (vec_imm_operand): Likewise.
25858
25859         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
25860
25861         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
25862         * config/v850/v850.c (v850_legitimate_constant_p): New function.
25863         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25864
25865         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
25866         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
25867         * config/vax/vax.c (legitimate_constant_p): Likewise.
25868
25869         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
25870         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25871         (xtensa_legitimate_constant_p): New function.
25872
25873 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
25874
25875         * target.def (cannot_force_const_mem): Add a mode argument.
25876         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
25877         * doc/tm.texi: Regenerate.
25878         * hooks.h (hook_bool_mode_rtx_false): Declare.
25879         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
25880         (hook_bool_mode_const_rtx_true): Likewise.
25881         (hook_bool_mode_rtx_false): New function.
25882         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
25883         to be non-VOID.  Update call to cannot_force_const_mem.
25884         (find_reloads): Update accordingly.
25885         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
25886         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
25887         argument.
25888         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
25889         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
25890         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
25891         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
25892         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
25893         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
25894         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
25895         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
25896         (m68k_cannot_force_const_mem): ...this new function.
25897         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
25898         argument.
25899         (mips_const_insns, mips_legitimize_const_move): Update calls.
25900         (mips_secondary_reload_class): Likewise.
25901         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
25902         (pa_cannot_force_const_mem): ...this new function.
25903         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
25904         (rs6000_cannot_force_const_mem): ...this new function.
25905         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
25906         argument.
25907         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
25908         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
25909         to...
25910         (xtensa_cannot_force_const_mem): ...this new function.
25911
25912 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
25913
25914         * config/mips/mips.c (mips16_build_function_stub): Call
25915         build_function_type_list instead of build_function_type.
25916         (mips16_build_call_stub): Likewise.
25917
25918 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
25919
25920         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
25921         instead of build_function_type.
25922
25923 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
25924
25925         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
25926         instead of build_function_type.
25927
25928 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
25929
25930         PR target/48678
25931         * config/i386/i386.md (insv): Change operand 0 constraint to
25932         "register_operand".  Change operand 1 and 2 constraint to
25933         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
25934         * config/i386/sse.md (sse4_1_pinsrb): Export.
25935         (sse2_pinsrw): Ditto.
25936         (sse4_1_pinsrd): Ditto.
25937         (sse4_1_pinsrq): Ditto.
25938         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
25939         * config/i386/i386.c (ix86_expand_pinsr): New.
25940
25941 2011-04-20  Easwaran Raman  <eraman@google.com>
25942
25943         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
25944         containing union type only with -fstrict-aliasing.
25945
25946 2011-04-20  Jim Meyering  <meyering@redhat.com>
25947
25948         Remove useless if-before-free tests.
25949         * calls.c (expand_call, save_area): Likewise.
25950         * cfgcleanup.c (try_forward_edges): Likewise.
25951         * collect2.c (collect_execute): Likewise.
25952         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
25953         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
25954         * coverage.c (coverage_checksum_string): Likewise.
25955         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
25956         * cselib.c (cselib_init): Likewise.
25957         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
25958         (df_set_clean_cfg): Likewise.
25959         * function.c (free_after_compilation): Likewise.
25960         * gcc.c (do_spec_1, main): Likewise.
25961         * gcov.c (create_file_names): Likewise.
25962         * gensupport.c (identify_predicable_attribute): Likewise.
25963         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
25964         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
25965         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
25966         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
25967         * ipa-pure-const.c (local_pure_const): Likewise.
25968         * ipa-reference.c (propagate): Likewise.
25969         * ira-costs.c (free_ira_costs): Likewise.
25970         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
25971         * matrix-reorg.c (mat_free): Likewise.
25972         * prefix.c (get_key_value): Likewise.
25973         * profile.c (compute_value_histograms): Likewise.
25974         * reload1.c (free_reg_equiv): Likewise.
25975         * sched-deps.c (free_deps): Likewise.
25976         * sel-sched-ir.c (fence_clear): Likewise.
25977         * sese.c (set_rename, if_region_set_false_region): Likewise.
25978         * tree-data-ref.c (free_rdg): Likewise.
25979         * tree-eh.c (lower_try_finally): Likewise.
25980         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
25981         * tree-ssa-live.c (delete_var_map): Likewise.
25982         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
25983         * tree-ssa-pre.c (phi_trans_add): Likewise.
25984
25985 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
25986
25987         PR tree-optimization/48611
25988         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
25989         beyond ERT_MUST_NOT_THROW region.
25990
25991 2011-04-20  Catherine Moore  <clm@codesourcery.com>
25992
25993         * config/mips/mips.opt (mfix-24k): New.
25994         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
25995         * config/mips/mips.md (length): Increase by 4 for stores if
25996         fixing 24K errata.
25997         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
25998         all noreorder if fixing 24K errata.
25999         * doc/invoke.texi: Document mfix-24k.
26000
26001 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
26002
26003         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
26004         quad-word modes, reduce to 9-bit index range when above 1016 limit.
26005
26006 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
26007
26008         * config/arm/arm.c (arm_gen_constant): Move movw support ....
26009         (const_ok_for_op): ... to here.
26010
26011 2011-04-20  Kai Tietz  <ktietz@redhat.com>
26012
26013         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
26014         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
26015
26016 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
26017
26018         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
26019
26020 2011-04-20  Richard Guenther  <rguenther@suse.de>
26021
26022         PR tree-optimization/47892
26023         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
26024         are if-convertible.
26025
26026 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
26027
26028         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
26029
26030 2011-04-20  Tristan Gingold  <gingold@adacore.com>
26031
26032         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
26033
26034 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
26035
26036         PR target/18145
26037
26038         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
26039         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
26040         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
26041         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
26042         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
26043
26044         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
26045         New prototype.
26046
26047         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
26048         (avr_asm_named_section, avr_asm_output_aligned_common,
26049         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
26050         New functions to update...
26051         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
26052         (avr_asm_init_sections): Overwrite section callbacks for
26053         data_section, bss_section.
26054         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
26055         from here to...
26056         (avr_file_end): ...here.
26057
26058 2011-04-20  Richard Guenther  <rguenther@suse.de>
26059
26060         PR middle-end/48695
26061         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
26062         objects and types here.  Adjust for their offset before comparing.
26063
26064 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
26065
26066         * tree-vect-stmts.c (vectorizable_store): Only chain one related
26067         statement per copy.
26068
26069 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
26070
26071         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
26072         (GIMPLE_H): Include $(INTERNAL_FN_H).
26073         (OBJS-common): Add internal-fn.o.
26074         (internal-fn.o): New rule.
26075         * internal-fn.def: New file.
26076         * internal-fn.h: Likewise.
26077         * internal-fn.c: Likewise.
26078         * gimple.h: Include internal-fn.h.
26079         (GF_CALL_INTERNAL): New gf_mask.
26080         (gimple_statement_call): Put fntype into a union with a new
26081         internal_fn field.
26082         (gimple_build_call_internal): Declare.
26083         (gimple_build_call_internal_vec): Likewise.
26084         (gimple_call_same_target_p): Likewise.
26085         (gimple_call_internal_p): New function.
26086         (gimple_call_internal_fn): Likewise.
26087         (gimple_call_fntype): Return null for internal calls.
26088         (gimple_call_set_fntype): Assert that the function is not internal.
26089         (gimple_call_set_fn): Likewise.
26090         (gimple_call_set_fndecl): Likewise.
26091         (gimple_call_set_internal_fn): New function.
26092         (gimple_call_addr_fndecl): Handle null functions.
26093         (gimple_call_return_type): Likewise null types.
26094         * gimple.c (gimple_build_call_internal_1): New function.
26095         (gimple_build_call_internal): Likewise.
26096         (gimple_build_call_internal_vec): Likewise.
26097         (gimple_call_same_target_p): Likewise.
26098         (gimple_call_flags): Handle calls to internal functions.
26099         (gimple_call_fnspec): New function.
26100         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
26101         (gimple_has_side_effects): Handle null functions.
26102         (gimple_rhs_has_side_effects): Likewise.
26103         (gimple_call_copy_skip_args): Handle calls to internal functions.
26104         * cfgexpand.c (expand_call_stmt): Likewise.
26105         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
26106         * gimple-fold.c (gimple_fold_call): Handle null functions.
26107         (gimple_fold_stmt_to_constant_1): Don't fold
26108         calls to internal functions.
26109         * gimple-low.c (gimple_check_call_args): Handle calls to internal
26110         functions.
26111         * gimple-pretty-print.c (dump_gimple_call): Likewise.
26112         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
26113         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
26114         (do_warn_unused_result): Likewise.
26115         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
26116         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
26117         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
26118         the target of a call.
26119         (initialize_hash_element): Update accordingly.
26120         (hashable_expr_equal_p): Use gimple_call_same_target_p.
26121         (iterative_hash_hashable_expr): Handle calls to internal functions.
26122         (print_expr_hash_elt): Likewise.
26123         * tree-ssa-pre.c (can_value_number_call): Likewise.
26124         (eliminate): Handle null functions.
26125         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
26126         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
26127         (find_func_aliases): Likewise.
26128         * value-prof.c (gimple_ic_transform): Likewise.
26129         (gimple_indirect_call_to_profile): Likewise.
26130         * lto-streamer-in.c (input_gimple_stmt): Likewise.
26131         * lto-streamer-out.c (output_gimple_stmt): Likewise.
26132
26133 2011-04-19  Jan Hubicka  <jh@suse.cz>
26134
26135         * ipa-inline-transform.c (save_inline_function_body): Add comments.
26136         * ipa-inline.c (inline_small_functions): Compute summaries first,
26137         populate heap later.
26138
26139 2011-04-19  Jan Hubicka  <jh@suse.cz>
26140
26141         * cgraph.h (save_inline_function_body): Remove.
26142         * ipa-inline-transform.c: New file, broke out of...
26143         * ipa-inline.c: ... this one; Update toplevel comment.
26144         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
26145         make global.
26146         (update_noncloned_frequencies): Move to ipa-inline-transform.c
26147         (cgraph_mark_inline_edge): Rename to inline_call; move to
26148         ipa-inline-transform.c.
26149         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
26150         move to ipa-inline-transform.c
26151         (recursive_inlining, inline_small_functions, flatten_function,
26152         ipa_inline, inline_always_inline_functions,
26153         early_inline_small_functions): Update.
26154         (inline_transform): Move to ipa-inline-transform.c.
26155         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
26156         Declare.
26157         * Makefile.in (ipa-inline-transform.o): New file.
26158         * cgraphunit.c (save_inline_function_body): Move to
26159         ipa-inline-transform.c
26160
26161 2011-04-19  DJ Delorie  <dj@redhat.com>
26162
26163         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
26164         registers if we already know there aren't any.
26165         (m32c_emit_epilogue): Don't emit a barrier here.
26166         (m32c_emit_eh_epilogue): Likewise.
26167         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
26168         operands at expand time.
26169         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
26170         int" wchar type.
26171         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
26172         duplicates.  Provide aliases instead.
26173         * config/m32c/prologue.md (eh_return): Emit a barrier here.
26174         (eh_epilogue): Add a "(return)" here as a hint to other parts of
26175         the compiler.
26176
26177 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
26178
26179         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
26180         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
26181         (general_or_i64_p, sparc_register_move_cost): New function.
26182
26183 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26184
26185         * doc/install.texi (Configuration, --enable-threads): Remove mach.
26186         Add lynx, mipssde.  Sort table.
26187
26188 2011-04-19  Xinliang David Li  <davidxl@google.com>
26189
26190         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
26191         not negative.
26192
26193 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
26194
26195         PR target/48678
26196         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
26197         is a SUBREG with non-MODE_INT mode inside of it.
26198
26199 2011-04-19  Martin Jambor  <mjambor@suse.cz>
26200
26201         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
26202         also according to actual contants.
26203         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
26204         (gimple_fold_call): Use it.
26205         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
26206
26207 2011-04-19  Martin Jambor  <mjambor@suse.cz>
26208
26209         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
26210         non-pointer assignments.
26211
26212 2011-04-19  Martin Jambor  <mjambor@suse.cz>
26213
26214         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
26215         account anc_offset and otr_type from the indirect edge info.
26216         * ipa-prop.c (get_ancestor_addr_info): New function.
26217         (compute_complex_ancestor_jump_func): Assignment analysis moved to
26218         get_ancestor_addr_info, call it.
26219         (ipa_note_param_call): Do not initialize information about polymorphic
26220         calls, return the indirect call graph edge.  Remove the last
26221         parameter, adjust all callers.
26222         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
26223         parameters.  Initialize polymorphic information in the indirect edge.
26224
26225 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
26226
26227         PR lto/48148
26228         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
26229         the types if they have different enumeration identifiers.
26230
26231 2011-04-19  Jan Hubicka  <jh@suse.cz>
26232
26233         * cgraph.h (cgraph_optimize_for_size_p): Declare.
26234         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
26235         * predict.c (cgraph_optimize_for_size_p): Break out from ...
26236         (optimize_function_for_size_p) ... here.
26237
26238 2011-04-19  Richard Guenther  <rguenther@suse.de>
26239
26240         PR lto/48207
26241         * tree.c (free_lang_data): Do not reset the decl-assembler-name
26242         langhook.
26243
26244 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
26245
26246         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
26247         if DECL_NO_INLINE_WARNING_P is set on the function.
26248
26249 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
26250
26251         PR fortran/47976
26252         * reload1.c (inc_for_reload): Return void. All callers changed.
26253         (emit_input_reload_insns): Don't try to delete previous output
26254         reloads to a register, or record spill_reg_store for autoincs.
26255
26256 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
26257
26258         * gengtype.h: Updated copyright year.
26259         (struct input_file_st): Add inpisplugin field.
26260         (type_fileloc): New function.
26261         * gengtype.c
26262         (write_typed_struct_alloc_def): Add gcc_assert.
26263         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
26264         (write_typed_alloc_defns): Don't output for plugin files.
26265         (input_file_by_name): Clear inpisplugin field.
26266         (main): Set inpisplugin field for plugin files.
26267
26268 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
26269
26270         * gengtype-state.c (string_eq): New.
26271         (read_state): Use string_eq instead of strcmp when creating the
26272         state_ident_tab.
26273
26274 2011-04-19  Wei Guozhi  <carrot@google.com>
26275
26276         PR target/47855
26277         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
26278         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
26279         linkage.
26280         * config/arm/constraints.md (Uu): New constraint.
26281         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
26282
26283 2011-04-19  Tristan Gingold  <gingold@adacore.com>
26284
26285         * config.gcc (-*-*-*vms): Added.
26286         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
26287         definitions moved.
26288         * config/vms/vms-ld.c: New file.
26289         * config/vms/vms-ar.c: New file.
26290         * config/vms/t-vmsnative: New file.
26291
26292 2011-04-18  Xinliang David Li  <davidxl@google.com>
26293
26294         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
26295
26296 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
26297
26298         PR middle-end/48661
26299         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
26300         if TREE_TYPE (v) is non-NULL.
26301
26302         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
26303         gimple_get_virt_mehtod_for_binfo.
26304         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
26305         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
26306         callers.
26307         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26308
26309 2011-04-18  Michael Matz  <matz@suse.de>
26310             Steve Ellcey  <sje@cup.hp.com>
26311
26312         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
26313         use its mode as source mode if it isn't VOIDmode.
26314
26315 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
26316
26317         * doc/passes.texi: Fill crossref nodes.
26318
26319 2011-04-18  Jim Meyering  <meyering@redhat.com>
26320
26321         Fix doubled-word typos in comments and strings
26322         * config/alpha/vms-unwind.h: s/for for/for/
26323         * config/arm/unwind-arm.h: Likewise.
26324         * config/microblaze/microblaze.c: Likewise.
26325         * config/sh/constraints.md: s/in in/in/
26326         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
26327
26328 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
26329
26330         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
26331         (AVX_FLOAT_MODE_P): Ditto.
26332         (AVX128_VEC_FLOAT_MODE_P): Ditto.
26333         (AVX256_VEC_FLOAT_MODE_P): Ditto.
26334         (AVX_VEC_FLOAT_MODE_P): Ditto.
26335         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
26336         (UNSPEC_MASKSTORE): Ditto.
26337         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
26338         Merge from <sse>_movmsk<ssemodesuffix> and
26339         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
26340         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
26341         iterator.
26342         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
26343         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
26344         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
26345
26346 2011-04-18  Jan Hubicka  <jh@suse.cz>
26347
26348         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
26349
26350         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
26351         (want_inline_function_called_once_p): Break out the logic from
26352         ipa_inline.
26353         (edge_badness): Ensure that profile is not misupdated.
26354         (lookup_recursive_calls): Prioritize by call frequencies.
26355         (inline_small_functions): Move program size estimates here;
26356         actually process whole queue even when unit growth has been
26357         met. (to properly compute inline_failed reasons and for the
26358         case unit size decrease.) Revisit comments on recursive inlining.
26359         (ipa_inline): Remove unit summary code; first inline hot calls
26360         of functions called once, cold calls next.
26361         (order, nnodes): Remove unused variables.
26362         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
26363         (GTFILES): Remove ipa-inline.c
26364         * sel-sched.c (fill_insns): Silence uninitialized var warning.
26365
26366 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
26367
26368         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
26369
26370 2011-04-18  Jie Zhang  <jie@codesourcery.com>
26371             Richard Earnshaw  <rearnsha@arm.com>
26372
26373         * arm.c (neon_builtin_type_bits): Remove.
26374         (typedef enum neon_builtin_mode): New.
26375         (T_MAX): Don't define.
26376         (typedef enum neon_builtin_datum): Remove bits, codes[],
26377         num_vars and base_fcode.  Add mode, code and fcode.
26378         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
26379         VAR10): Change accordingly.
26380         (neon_builtin_data[]): Change accordingly
26381         (arm_init_neon_builtins): Change accordingly.
26382         (neon_builtin_compare): Remove.
26383         (locate_neon_builtin_icode): Remove.
26384         (arm_expand_neon_builtin): Change accordingly.
26385
26386         * arm.h (enum arm_builtins): Move to ...
26387         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
26388
26389         * arm.c (arm_builtin_decl): Declare.
26390         (TARGET_BUILTIN_DECL): Define.
26391         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
26392         (arm_builtin_decls[]): New.
26393         (arm_init_neon_builtins): Store builtin declarations in
26394         arm_builtin_decls[].
26395         (arm_init_tls_builtins): Likewise.
26396         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
26397         (arm_builtin_decl): New.
26398
26399 2011-04-18  Richard Guenther  <rguenther@suse.de>
26400
26401         * tree.c (upper_bound_in_type): Build properly canonicalized
26402         INTEGER_CSTs.
26403         (lower_bound_in_type): Likewise.
26404
26405 2011-04-18  Richard Guenther  <rguenther@suse.de>
26406
26407         * gimple.h (gimple_call_addr_fndecl): New function.
26408         (gimple_call_fndecl): Use it.
26409         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
26410         for direct calls.
26411         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
26412         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
26413
26414 2011-04-18  Richard Guenther  <rguenther@suse.de>
26415
26416         PR middle-end/48650
26417         * tree.c (build_string): STRING_CST is now derived from tree_typed.
26418
26419 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
26420
26421         PR lto/48492
26422         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
26423         DECL_IN_CONSTANT_POOL without RTL.
26424
26425 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
26426             Ira Rosen  <ira.rosen@linaro.org>
26427
26428         PR target/48252
26429         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
26430         to match neon_vzip/vuzp/vtrn_internal.
26431         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
26432         outputs explicitly dependent on both inputs.
26433         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
26434
26435 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
26436
26437         PR tree-optimization/48616
26438         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
26439         whether the shift is by scalar or vector based on whether all SLP
26440         scalar stmts have the same rhs.
26441
26442 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
26443
26444         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
26445         memory operands.
26446
26447 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
26448
26449         PR target/43700
26450         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
26451         registers.
26452
26453 2011-04-17  Jan Hubicka  <jh@suse.cz>
26454
26455         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
26456         * cgrpahunit.c (cgraph_finalize_function): Do not set
26457         finalized_by_frontend.
26458         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
26459         finalized_by_frontend.
26460
26461 2011-04-17  Jan Hubicka  <jh@suse.cz>
26462
26463         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
26464         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
26465         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
26466         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
26467         method.
26468         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
26469         gimple-fold.c
26470         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
26471
26472 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
26473
26474         PR lto/48538
26475         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
26476         is non-null before accessing it.
26477         (input_cgraph): Remove trailing spaces.
26478
26479 2011-04-17  Revital Eres  <revital.eres@linaro.org>
26480
26481         * params.def (sms-min-sc): New param flag.
26482         * modulo-sched.c (sms_schedule): Use it.
26483         * doc/invoke.texi (sms-min-sc): Document it.
26484
26485 2011-04-17  Jan Hubicka  <jh@suse.cz>
26486
26487         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
26488         present, also set gimple_call_set_cannot_inline.
26489         * ipa-inline.c: Update toplevel comment.
26490         (MAX_TIME): Remove.
26491         (cgraph_clone_inlined_nodes): Fix linebreaks.
26492         (cgraph_check_inline_limits): Restructure to ...
26493         (caller_growth_limits): ... this one; be more tolerant
26494         on growth in nested inline chains; add explanatory comment;
26495         fix stack accounting thinko introduced by previous patch.
26496         (cgraph_default_inline_p): Remove.
26497         (report_inline_failed_reason): New function.
26498         (can_inline_edge_p): New function.
26499         (can_early_inline_edge_p): New function.
26500         (leaf_node_p): Move upwards in file.
26501         (want_early_inline_function_p): New function.
26502         (want_inline_small_function_p): New function.
26503         (want_inline_self_recursive_call_p): New function.
26504         (cgraph_edge_badness): Rename to ...
26505         (edge_badness) ... this one; fix linebreaks.
26506         (update_edge_key): Update call of edge_baddness; add
26507         detailed dump about queue updates.
26508         (update_caller_keys): Use can_inline_edge_p and
26509         want_inline_small_function_p.
26510         (cgraph_decide_recursive_inlining): Rename to...
26511         (recursive_inlining): Use can_inline_edge_p and
26512         want_inline_self_recursive_call_p; simplify and remove no longer
26513         valid FIXME.
26514         (cgraph_set_inline_failed): Remove.
26515         (add_new_edges_to_heap): Use can_inline_edge_p and
26516         want_inline_small_function_p.
26517         (cgraph_decide_inlining_of_small_functions): Rename to ...
26518         (inline_small_functions): ... this one; cleanup; use
26519         can/want predicates; cleanup debug ouput; work edges till fibheap
26520         is exhausted and do not stop once unit growth is reached; remove
26521         later loop processing remaining edges.
26522         (cgraph_flatten): Rename to ...
26523         (flatten_function): ... this one; use can_inline_edge_p
26524         and can_early_inline_edge_p predicates.
26525         (cgraph_decide_inlining): Rename to ...
26526         (ipa_inline): ... this one; remove unreachable nodes before
26527         inlining functions called once; simplify the pass.
26528         (cgraph_perform_always_inlining): Rename to ...
26529         (inline_always_inline_functions): ... this one; use
26530         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
26531         (cgraph_decide_inlining_incrementally): Rename to ...
26532         (early_inline_small_functions): ... this one; simplify
26533         using new predicates; cleanup; make dumps prettier.
26534         (cgraph_early_inlining): Rename to ...
26535         (early_inliner): newer inline regular functions into always-inlines;
26536         fix updating of call stmt summaries.
26537         (pass_early_inline): Update for new names.
26538         (inline_transform): Fix formating.
26539         (gate_cgraph_decide_inlining): Rename to ...
26540         (pass_ipa_inline): ... this one.
26541         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
26542         * ipa-inline-analysis.c (dump_inline_summary): Update.
26543         (compute_inline_parameters): Do not compute disregard_inline_limits;
26544         look for mismatching arguments.
26545         (estimate_growth): Fix handlig of non-trivial self recursion.
26546         (inline_read_summary): Do not read info->disregard_inline_limits.
26547         (inline_write_summary): Do not write info->disregard_inline_limits.
26548         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
26549         and move all checks into can_inline_edge_p predicate; re-enable code
26550         comparing optimization levels.
26551         (expand_call_inline): Do not test inline_forbidden_into_p.
26552         * Makefile.in (ipa-inline.o): Update arguments.
26553
26554 2011-04-17  Revital Eres  <revital.eres@linaro.org>
26555
26556         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
26557
26558 2011-04-17  Revital Eres  <revital.eres@linaro.org>
26559
26560         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
26561
26562 2011-04-17  Michael Matz  <matz@suse.de>
26563
26564         PR tree-optimization/48622
26565         PR lto/48645
26566         * ipa-inline-analysis.c (inline_read_summary): Read size/time
26567         in same order as they're written.
26568
26569 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26570
26571         * config/pa/predicates.md: Reorganize and simplify predicates.
26572         Eliminate duplicate code checks.
26573         (arith_operand): Rename to arith14_operand
26574         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
26575         * config/pa/pa.md: Use renamed operands.
26576         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
26577         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
26578         arith11_operand, adddi3_operand, indexed_memory_operand,
26579         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
26580         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
26581         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
26582         move_dest_operand, move_src_operand, prefetch_cc_operand,
26583         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
26584         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
26585         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
26586         div_operand, int5_operand, movb_comparison_operator,
26587         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
26588         arith_double_operand, ireg_operand, lhs_lshift_operand,
26589         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
26590         integer_store_memory_operand): Likewise.
26591         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
26592         (integer_store_memory_operand, read_only_operand,
26593         function_label_operand, borx_reg_operand,
26594         non_hard_reg_operand): Likewise.
26595         (eq_neq_comparison_operator): Delete unused operator.
26596         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
26597         function_label_operand.
26598         (emit_move_sequence): Likewise.
26599
26600 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
26601
26602         * config/i386/sse.md (sseunpackmode): New mode attribute.
26603         (ssepackmode): Ditto.
26604         (vec_pack_trunc_<mode>): Macroize expander from
26605         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
26606         (vec_unpacks_lo_<mode>): Macroize expander from
26607         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26608         (vec_unpacks_hi_<mode>): Macroize expander from
26609         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26610         (vec_unpacku_lo_<mode>): Macroize expander from
26611         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26612         (vec_unpacku_hi_<mode>): Macroize expander from
26613         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26614         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
26615         ix86_expand_sse4_unpack.
26616         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
26617
26618 2011-04-16  Jan Hubicka  <jh@suse.cz>
26619
26620         * cgraphbuild.c: Include ipa-inline.h.
26621         (reset_inline_failed): Use initialize_inline_failed.
26622         * cgraph.c: Include ipa-inline.h.
26623         (cgraph_create_node_1): Do not initialize estimated_growth.
26624         (initialize_inline_failed): More to ipa-inline-analysis.c
26625         (dump_cgraph_node): Do not dump inline flags.
26626         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
26627         and disregard_inline_limits flags.
26628         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
26629         time, size, estimated_growth.
26630         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
26631         Update.
26632         * cgraphunit.c (cgraph_decide_is_function_needed): Use
26633         DECL_DISREGARD_INLINE_LIMITS.
26634         (cgraph_analyze_function): Do not initialize
26635         node->local.disregard_inline_limits.
26636         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
26637         inlinable, versionable and disregard_inline_limits.
26638         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
26639         cgraph_check_inline_limits, cgraph_default_inline_p,
26640         cgraph_edge_badness, update_caller_keys, update_callee_keys,
26641         add_new_edges_to_heap): Update.
26642         (cgraph_decide_inlining_of_small_function): Update; set
26643         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
26644         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
26645         cgraph_decide_inlining_incrementally): Update.
26646         * ipa-inline.h (inline_summary): Add inlinable, versionable,
26647         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
26648         time, size and estimated_growth parameters.
26649         (estimate_edge_growth): Update.
26650         (initialize_inline_failed): Declare.
26651         * ipa-split.c: Include ipa-inline.h
26652         (execute_split_functions): Update.
26653         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
26654         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
26655         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
26656         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
26657         estimated_growth to INT_MIN.
26658         (inline_node_duplication_hook): Likewise.
26659         (dump_inline_summary): Dump new fields.
26660         (compute_inline_parameters): Update.
26661         (estimate_edge_time, estimate_time_after_inlining,
26662         estimate_size_after_inlining, estimate_growth, inline_read_summary,
26663         inline_write_summary):
26664         (initialize_inline_failed): Move here from cgraph.c.
26665         * tree-sra.c: Include ipa-inline.h.
26666         (ipa_sra_preliminary_function_checks): Update.
26667         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
26668         ipa-inline.h.
26669
26670 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
26671
26672         * config/i386/sse.md (V16): New mode iterator.
26673         (VI1, VI8): Ditto.
26674         (AVXMODEQI, AVXMODEDI): Remove.
26675         (sse2, sse3): New mode attribute.
26676         (mov<mode>): Use V16 mode iterator.
26677         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
26678         (push<mode>1): Use V16 mode iterator.
26679         (movmisalign<mode>): Ditto.
26680         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
26681         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
26682         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
26683         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
26684         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
26685         avx_movdqu<avxmodesuffix>.
26686         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
26687         *avx_movdqu<avxmodesuffix>.
26688         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
26689         avx_lddqu<avxmodesuffix>.
26690         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
26691         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
26692         avx_movnt<AVXMODEDI:mode>.
26693         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
26694         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
26695
26696 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
26697
26698         PR target/48629
26699         * haifa-sched.c (prune_ready_list, schedule_block): Use
26700         sched_pressure_p rather than flag_sched_pressure.
26701
26702 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
26703
26704         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
26705         cgraph_get_node instead of cgraph_get_create_node.
26706
26707 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
26708
26709         * cfgexpand.c (expand_debug_expr): Use
26710         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
26711
26712 2011-04-15  Michael Matz  <matz@suse.de>
26713
26714         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
26715         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
26716         * function.c (gimplify_parameters): Ditto.
26717         * gimplify.c (gimplify_vla_decl): Ditto.
26718
26719         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
26720         (gimple_call_set_alloca_for_var): New inline function.
26721         (gimple_call_alloca_for_var_p): Ditto.
26722         * gimple.c (gimple_build_call_from_tree): Remember
26723         CALL_ALLOCA_FOR_VAR_P state.
26724         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
26725
26726         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
26727         calls if they were for VLA objects.
26728
26729 2011-04-15  Martin Jambor  <mjambor@suse.cz>
26730
26731         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
26732         of ADR_EXPRs.
26733
26734 2011-04-15  Martin Jambor  <mjambor@suse.cz>
26735
26736         PR middle-end/48601
26737         * tree-emutls.c (lower_emutls_function_body): Call
26738         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
26739         result is non-NULL.
26740
26741 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
26742
26743         * c-decl.c (detect_field_duplicates): Call
26744         objc_detect_field_duplicates instead of objc_get_interface_ivars.
26745
26746 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
26747
26748         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
26749         * gimple.c (gimple_asm_clobbers_memory_p): Define.
26750         * ipa-pure-const.c (check_stmt): Call it.
26751         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
26752
26753 2011-04-15  Richard Guenther  <rguenther@suse.de>
26754
26755         PR tree-optimization/48290
26756         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
26757         Properly decide inhibiting propagation based on the valueized
26758         operand.  Do loop-closed SSA form preserving here ...
26759         (init_copy_prop): ... not here.
26760
26761 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
26762
26763         PR target/48612
26764         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
26765         (*ieee_smax<mode>3): Likewise.
26766
26767 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26768
26769         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
26770         Replace match_operand with match_dup for the third operand in
26771         these expanders.
26772
26773 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
26774
26775         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
26776         to track processing of conditionals.  Update all callers.
26777         (try_combine, simplify_if_then_else): Update.
26778
26779 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
26780
26781         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
26782         -fsched-pressure.
26783
26784 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
26785
26786         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
26787         instead of match_operand for operand 3.
26788
26789 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
26790
26791         * recog.h (insn_operand_data): Add an "allows_mem" field.
26792         * genoutput.c (output_operand_data): Initialize it.
26793         * optabs.c (maybe_legitimize_operand_same_code): New function.
26794         (maybe_legitimize_operand): Use it when matching the original
26795         op->value.
26796
26797 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
26798
26799         * gimplify.c: Fix issues in comments throughout.
26800         (voidify_wrapper_expr): Fix long line.
26801         (build_stack_save_restore): Likewise.
26802         (gimplify_loop_expr): Likewise.
26803         (gimplify_compound_lval): Likewise.
26804         (gimplify_init_ctor_eval): Likewise.
26805         (gimplify_modify_expr_rhs): Likewise.
26806         (omp_notice_threadprivate_variable): Likewise.
26807
26808 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
26809
26810         * cfgexpand.c (expand_call_stmt): Convert the function type to the
26811         original one if this is not a builtin function.
26812
26813 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
26814
26815         PR target/48605
26816         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
26817         offset it as needed based on top 2 bits in operands[3], change
26818         MEM mode to SFmode and mask those 2 bits away from operands[3].
26819
26820 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
26821
26822         * c-parser.c (c_parser_objc_protocol_definition): Updated for
26823         change from objc_declare_protocols() to objc_declare_protocol().
26824
26825 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
26826
26827         * config/i386/sse.md (sse4_1): New mode attribute.
26828         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
26829         avx_blend<ssemodesuffix><avxmodesuffix> and
26830         sse4_1_blend<ssemodesuffix> using VF mode iterator.
26831         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
26832         avx_blendv<ssemodesuffix><avxmodesuffix> and
26833         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
26834         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
26835         avx_dp<ssemodesuffix><avxmodesuffix> and
26836         sse4_1_dp<ssemodesuffix> using VF mode iterator.
26837         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
26838         (sse4_1_packusdw): Merge with *avx_packusdw.
26839         (sse4_1_pblendvb): Merge with *avx_pblendvb.
26840         (sse4_1_pblendw): Merge with *avx_pblendw.
26841         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
26842         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
26843         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
26844         VF mode iterator.
26845         (sse4_1_round<ssescalarmodesuffix>): Merge with
26846         *avx_round<ssescalarmodesuffix>.
26847         (aesenc): Merge with *avx_aesenc.
26848         (aesenclast): Merge with *avx_aesenclast.
26849         (aesdec): Merge with *avx_aesdec.
26850         (aesdeclast): Merge with *avx_aesdeclast.
26851         (pclmulqdq): Merge with *pclmulqdq.
26852         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
26853         New predicate.
26854         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
26855
26856 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
26857
26858         PR middle-end/48608
26859         * cfgexpand.c (get_decl_align_unit): Renamed to ...
26860         (align_local_variable): This.  Update DECL_ALIGN.
26861         (add_stack_var): Updated.
26862         (expand_one_stack_var): Likewise.
26863
26864 2011-04-14  Richard Guenther  <rguenther@suse.de>
26865
26866         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
26867         Remove.
26868         (dse_initialize_block_local_data, dse_leave_block,
26869         record_voperand_set, get_stmt_uid): Likewise.
26870         (dse_possible_dead_store_p): Allow any kind of killing stmt.
26871         (dse_optimize_stmt): Remove voperand set handling code.
26872         Simplify and improve to handle any kind of killing stmt.
26873         (dse_record_phi): Remove.
26874         (dse_enter_block): Simplify.
26875         (tree_ssa_dse): Likewise.
26876         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
26877
26878 2011-04-14  Jan Hubicka  <jh@suse.cz>
26879
26880         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
26881         * cgraph.h (struct inline_summary): Move to ipa-inline.h
26882         (cgraph_local_info): Remove inline_summary.
26883         * ipa-cp.c: Include ipa-inline.h.
26884         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
26885         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
26886         accesor.
26887         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
26888         (input_overwrite_node): Do not set inline summary.
26889         (input_node): Do not stream inline summary.
26890         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
26891         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
26892         growth; we do not have inline parameters computed for that anyway.
26893         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
26894         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
26895         (inline_summary_t): New type and VECtor.
26896         (debug_inline_summary, dump_inline_summaries): Declare.
26897         (inline_summary): Use VOCtor.
26898         (estimate_edge_growth): Kill hack computing call stmt size directly.
26899         * lto-section-in.c (lto_section_name): Add inline section.
26900         * ipa-inline-analysis.c: Include lto-streamer.h
26901         (node_removal_hook_holder, node_duplication_hook_holder): New holders
26902         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
26903         (inline_summary_vec): Define.
26904         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
26905         dump_inline_summaries): New functions.
26906         (estimate_function_body_sizes): Properly compute size/time of outgoing
26907         calls.
26908         (compute_inline_parameters): Alloc inline_summary; do not compute
26909         size/time of incomming calls.
26910         (estimate_edge_time): Avoid missing time summary hack.
26911         (inline_read_summary): Read inline summary info.
26912         (inline_write_summary): Write inline summary info.
26913         (inline_free_summary): Free all hooks and inline summary vector.
26914         * lto-streamer.h: Add LTO_section_inline_summary section.
26915         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
26916         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
26917
26918 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
26919
26920         * tree-vectorizer.h (vect_strided_store_supported): Add a
26921         HOST_WIDE_INT argument.
26922         (vect_strided_load_supported): Likewise.
26923         (vect_permute_store_chain): Return void.
26924         (vect_transform_strided_load): Likewise.
26925         (vect_permute_load_chain): Delete.
26926         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
26927         count argument.  Check that the count is a power of two.
26928         (vect_strided_load_supported): Likewise.
26929         (vect_permute_store_chain): Return void.  Update after above changes.
26930         Assert that the access is supported.
26931         (vect_permute_load_chain): Likewise.
26932         (vect_transform_strided_load): Return void.
26933         * tree-vect-stmts.c (vectorizable_store): Update calls after
26934         above interface changes.
26935         (vectorizable_load): Likewise.
26936         (vect_analyze_stmt): Don't check for strided powers of two here.
26937
26938 2011-04-14  Richard Guenther  <rguenther@suse.de>
26939
26940         PR tree-optimization/48590
26941         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
26942         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
26943         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
26944         BUILT_IN_STACK_SAVE.
26945         * tree-ssa-dce.c (propagate_necessity): Handle
26946         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
26947
26948 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
26949
26950         * c-parser.c (c_parser_objc_class_declaration): Updated call to
26951         objc_declare_class.
26952
26953 2011-04-14  Richard Guenther  <rguenther@suse.de>
26954
26955         * tree.h (get_object_alignment_1): Declare.
26956         * builtins.c (get_object_alignment_1): Split out worker from ...
26957         (get_object_alignment): ... here.
26958         * fold-const.c (get_pointer_modulus_and_residue): Use
26959         get_object_alignment_1.
26960
26961 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
26962
26963         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
26964         type parameter.
26965         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
26966         parameter.  Generalise code to handle arrays as well as vectors.
26967         (vect_setup_realignment): Update accordingly.
26968         * tree-vect-stmts.c (vectorizable_store): Likewise.
26969         (vectorizable_load): Likewise.
26970
26971 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
26972
26973         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
26974         within the per-copy loop.
26975
26976 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
26977
26978         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
26979         in the dump file.
26980
26981 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
26982
26983         * doc/options.texi (Negative): Explicitly mention that the
26984         Negative chain must be circular.
26985
26986 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
26987
26988         * function.h (block_chainon): Declare.
26989         * function.c (block_chainon): Define.
26990
26991 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
26992             Eric Weddington  <eric.weddington@atmel.com>
26993             Georg-Johann Lay  <avr@gjlay.de>
26994
26995         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
26996         New Includes
26997         (avr_init_builtins, avr_expand_builtin,
26998         avr_expand_delay_cycles, avr_expand_unop_builtin,
26999         avr_expand_binop_builtin ): New functions.
27000         (avr_builtin_id): New enum
27001         (struct avr_builtin_description): New struct
27002         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
27003         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
27004
27005         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
27006         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
27007         UNSPECV_DELAY_CYCLES): new enumeration values
27008         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
27009         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
27010         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
27011         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
27012         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
27013         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
27014         "fmulsu"): New insns
27015
27016         * config/avr/avr-c.c: fix line endings
27017         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
27018         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
27019         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
27020         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
27021         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
27022
27023         * doc/extend.texi (AVR Built-in Functions): New node
27024         (Target Builtins): Add documentation of AVR
27025         built-in functions.
27026
27027 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
27028
27029         PR target/44643
27030         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
27031         alone. Error if non-const data has attribute progmem.
27032
27033 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
27034
27035         * tree.h (struct tree_constructor): Include tree_typed instead of
27036         tree_common.
27037         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
27038         TS_TYPED instead of TS_COMMON.
27039
27040 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
27041
27042         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
27043         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
27044         (sse2_psadbw): Merge with *avx_psadbw.
27045         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
27046         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
27047         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
27048         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
27049         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
27050         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
27051         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
27052         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
27053         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
27054         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
27055         (ssse3_palignrti): Merge with *avx_palignrti.
27056
27057 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
27058
27059         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
27060         * tree-ssanames.c (fini_ssanames): VEC_free it.
27061         (make_ssa_name_fn): Update for VECness of free_ssanames.
27062         (release_ssa_name, release_dead_ssa_names): Likewise.
27063         * tree.h (struct tree_ssa_name): Include tree_typed instead of
27064         tree_common.
27065         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
27066         TS_TYPED instead of TS_COMMON.
27067
27068 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
27069
27070         * postreload-gcse.c (gcse_after_reload_main): Add calls to
27071         statistics_counter_event.
27072         * tree-ssa-copyrename.c (stats): Define.
27073         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
27074         statistics_counter_event.
27075         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
27076         (bswap_stats, widen_mul_stats): Define.
27077         (insert_reciprocals): Increment rdivs_inserted.
27078         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
27079         rfuncs_inserted.  Add calls to statistics_counter_event.
27080         (execute_cse_sincos_1): Increment inserted.
27081         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
27082         statistics_counter_event.
27083         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
27084         of bswap_stats.  Add calls to statistics_counter_event.
27085         (convert_mult_to_widen): Increment widen_mults_inserted.
27086         (convert_plusminus_to_widen): Increment maccs_inserted.
27087         (convert_mult_to_fma): Increment fmas_inserted.
27088         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
27089         calls to statistics_counter_event.
27090
27091 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
27092
27093         PR rtl-optimization/48455
27094         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
27095         `temp_costs->mem_cost'.
27096
27097 2011-04-13  Jan Hubicka  <jh@suse.cz>
27098
27099         * ipa-inline.h: New file.
27100         * ipa-inline-analysis.c: New file. Broken out of ...
27101         * ipa-inline.c: ... this file; update toplevel comment;
27102         include ipa-inline.h
27103         (inline_summary): Move to ipa-inline.h
27104         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
27105         ipa-inline-analysis.c.
27106         (cgraph_estimate_time_after_inlining): Rename to
27107         estiamte_time_after_inlining; move to ipa-inline-analysis.c
27108         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
27109         to estimate_edge_growth.
27110         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
27111         rename to estimate_size_after_inlining.
27112         (cgraph_mark_inline_edge): Update for new naming convention.
27113         (cgraph_check_inline_limits): Likewise.
27114         (cgraph_edge_badness): Likewise.
27115         (cgraph_decide_recursive_inlining): Likewise.
27116         (cgraph_decide_inlining_of_small_functions): Likewise.
27117         (cgraph_decide_inlining_incrementally): Likewise.
27118         (cgraph_estimate_growth): Rename to estimate_growth; move to
27119         ipa-inline-analysis.c.
27120         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
27121         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
27122         (compute_inline_parameters): Likewise.
27123         (compute_inline_parameters_for_current): Likewise.
27124         (pass_inline_parameters): Likewise.
27125         (inline_indirect_intraprocedural_analysis): Likewise.
27126         (analyze_function): Rename to inline_analyze_function; likewise.
27127         (add_new_function): Move to ipa-inline-analysis.c.
27128         (inline_generate_summary): Likewise.
27129         (inline_read_summary): Likewise.
27130         (inline_write_summary): Likewise.
27131         * Makefile.in (ipa-inline-analysis.c): New file.
27132
27133 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27134
27135         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
27136         * configure: Regenerate.
27137
27138 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
27139
27140         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
27141         instead of tree_common.
27142         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
27143         Likewise.
27144         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
27145         TS_TYPED rather than TS_COMMON.
27146         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
27147
27148 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
27149
27150         PR target/45263
27151         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
27152         r20 around calls of __tablejump_elpm__
27153
27154 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
27155
27156         PR middle-end/48591
27157         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
27158         NULL.
27159         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
27160
27161 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
27162
27163         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
27164         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
27165         (cfi_vec): New typedef.
27166         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
27167         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
27168         (cie_cfi_vec): New static variable.
27169         (cie_cfi_head): Delete.
27170         (add_cfi): Accept a cfi_vec * as first argument. All callers and
27171         declaration changed. Use vector rather than list operations.
27172         (new_cfi): Don't initialize the dw_cfi_next field.
27173         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
27174         rather than list operations.
27175         (lookup_cfa): Use vector rather than list operations.
27176         (output_cfis): New argument upto. Accept a cfi_vec rather than
27177         a dw_cfi_ref list head as argument. All callers changed.
27178         Iterate over the vector using upto as a maximum index.
27179         (output_all_cfis): New static function.
27180         (output_fde): Use vector rather than list operations. Use the
27181         new upto argument for output_cfis rather than manipulating a
27182         list.
27183         (dwarf2out_begin_prologue): Change initializations to match
27184         new struct members.
27185         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
27186         from the vector length rather than searching for the end of a list.
27187         Use output_all_cfis.
27188         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
27189
27190 2011-04-13  Nick Clifton  <nickc@redhat.com>
27191
27192         * config/rx/rx.md (movmemsi): Do not use this pattern when
27193         volatile pointers are involved.
27194
27195 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
27196
27197         * config/i386/sse.md (pinsrbits): Remove.
27198         (sse2_packsswb): Merge with *avx_packsswb.
27199         (sse2_packssdw): Merge with *avx_packssdw.
27200         (sse2_packuswb): Merge with *avx_packuswb.
27201         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
27202         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
27203         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
27204         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
27205         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
27206         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
27207         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
27208         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
27209         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
27210         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
27211         (sse2_loadld): Merge with *avx_loadld.
27212         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
27213         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
27214         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
27215         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
27216         (vec_concatv2di): Merge with *vec_concatv2di_avx.
27217
27218 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
27219
27220         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
27221         calling TREE_CHAIN.
27222         * print-tree.c (print_node): Likewise.
27223         * tree-inline.c (copy_tree_r): Likewise.
27224         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
27225         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
27226         instead of TS_COMMON.
27227         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
27228         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
27229         (copy_node_stat): Zero TREE_CHAIN only if necessary.
27230         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
27231         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
27232         ...and these...
27233         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
27234         * tree.h: ...here.
27235         (TREE_CHAIN): Check for a TS_COMMON structure.
27236         (TREE_TYPE): Check for a TS_TYPED structure.
27237
27238 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
27239
27240         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
27241         cgraph_get_create_node instead of cgraph_node.
27242
27243 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27244
27245         * c-parser.c (c_parser_initelt): Updated call to
27246         objc_build_message_expr.
27247         (c_parser_postfix_expression): Likewise.
27248
27249 2011-04-12  Kai Tietz  <ktietz@redhat.com>
27250
27251         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
27252         MASK_MS_BITFIELD_LAYOUT bit.
27253
27254 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
27255
27256         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
27257         assert it is always true.
27258         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
27259         moves.
27260
27261 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27262
27263         * c-parser.c (c_lex_one_token): Rewritten conditional used when
27264         compiling Objective-C to be more efficient.
27265
27266 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
27267
27268         * opts-common.c (decode_cmdline_options_to_array): Remove variable
27269         argv_copied.
27270
27271 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27272
27273         * recog.h, genoutput.c, optabs.c: Revert last patch.
27274
27275 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
27276
27277         PR target/48090
27278         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
27279
27280 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27281
27282         * recog.h (insn_operand_data): Add an "allows_mem" field.
27283         * genoutput.c (output_operand_data): Initialize it.
27284         * optabs.c (maybe_legitimize_operand_same_code): New function.
27285         (maybe_legitimize_operand): Use it when matching the original
27286         op->value.
27287
27288 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27289
27290         * genpreds.c (process_define_predicate): Move most processing
27291         to gensupport.c.  Continue to validate the expression.
27292         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
27293         (process_define_predicate): Move processing to gensupport.c.
27294         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
27295         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
27296         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
27297         argument.
27298         (valid_predicate_name_p): New function, split out from old
27299         genpreds.c:process_define_predicate.
27300         (process_define_predicate): New function, combining code from
27301         old genpreds.c and genrecog.c functions.
27302         (process_rtx): Call it for DEFINE_PREDICATE and
27303         DEFINE_SPECIAL_PREDICATE.
27304
27305 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27306
27307         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
27308         size of a '%A' memory reference.
27309         (T_DREG, T_QREG): New neon_builtin_type_bits.
27310         (arm_init_neon_builtins): Assert that the load and store operands
27311         are neon_struct_operands.
27312         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
27313         (NEON_ARG_MEMORY): New builtin_arg.
27314         (neon_dereference_pointer): New function.
27315         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
27316         Handle NEON_ARG_MEMORY.
27317         (arm_expand_neon_builtin): Update after above interface changes.
27318         Use NEON_ARG_MEMORY for loads and stores.
27319         * config/arm/predicates.md (neon_struct_operand): New predicate.
27320         * config/arm/iterators.md (V_two_elem): Tweak formatting.
27321         (V_three_elem): Use BLKmode for accesses that have no associated mode.
27322         (V_four_elem): Tweak formatting.
27323         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
27324         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
27325         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
27326         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
27327         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
27328         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
27329         (neon_vst4<mode>): Replace pointer operand with a memory operand.
27330         Use %A in the output template.
27331         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
27332         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
27333         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
27334         the width of the memory access.  Remove post-increment.
27335         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
27336
27337 2011-04-12  Nick Clifton  <nickc@redhat.com>
27338
27339         * config/v850/v850.c (expand_prologue): Do not use the CALLT
27340         instruction for interrupt handlers if the target is the basic V850
27341         architecture.
27342         (expand_epilogue): Likewise.
27343
27344 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
27345
27346         PR rtl-optimization/48549
27347         * combine.c (propagate_for_debug): Also stop after BB_END of
27348         this_basic_block.  Process LAST and just stop processing after it.
27349         (combine_instructions): If last_combined_insn has been deleted,
27350         set last_combined_insn to its PREV_INSN.
27351
27352 2011-04-12  Richard Guenther  <rguenther@suse.de>
27353
27354         PR tree-optimization/46076
27355         * gimple.h (struct gimple_statement_call): Add fntype field.
27356         (gimple_call_fntype): Adjust.
27357         (gimple_call_set_fntype): New function.
27358         * gimple.c (gimple_build_call_1): Set the call function type.
27359         * gimplify.c (gimplify_call_expr): Preserve the function
27360         type the frontend used for the call.
27361         (gimplify_modify_expr): Likewise.
27362         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
27363         function type.
27364         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
27365         function type.
27366         * tree-ssa.c (useless_type_conversion_p): Function pointer
27367         conversions are useless.
27368
27369 2011-04-12  Martin Jambor  <mjambor@suse.cz>
27370
27371         * cgraph.h (cgraph_node): Remove function declaration.
27372         (cgraph_create_node): Declare.
27373         (cgraph_get_create_node): Likewise.
27374         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
27375         Updated all callers.
27376         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
27377         the decl does not already exist.  Call cgraph_get_create_node instead
27378         of cgraph_node.
27379         (cgraph_get_create_node): New function.
27380         (cgraph_same_body_alias): Update comment.
27381         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
27382         assert it does not return NULL.
27383         (cgraph_update_edges_for_call_stmt): Likewise.
27384         (cgraph_clone_edge): Likewise.
27385         (cgraph_create_virtual_clone): Likewise.
27386         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
27387         instead of cgraph_node.
27388         (cgraph_add_new_function): Call cgraph_create_node or
27389         cgraph_get_create_node instead of cgraph_node.
27390         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
27391         instead of cgraph_node.
27392         (record_eh_tables): Likewise.
27393         (mark_address): Likewise.
27394         (mark_load): Likewise.
27395         (build_cgraph_edges): Call cgraph_get_create_node instead
27396         of cgraph_node.
27397         (rebuild_cgraph_edges): Likewise.
27398         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
27399         instead of cgraph_node.
27400         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
27401         cgraph_node.
27402         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
27403         cgraph_create_node instead of cgraph_node.
27404         * c-decl.c (finish_function): Call cgraph_get_create_node instead
27405         of cgraph_node.
27406         * lto-cgraph.c (input_node): Likewise.
27407         * lto-streamer-in.c (input_function): Likewise.
27408         * varasm.c (mark_decl_referenced): Likewise.
27409         (assemble_alias): Likewise.
27410
27411 2011-04-12  Martin Jambor  <mjambor@suse.cz>
27412
27413         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
27414         instead of cgraph_node and assert it does not return NULL.
27415         * lto-streamer-in.c (lto_read_body): Likewise.
27416         * omp-low.c (new_omp_context): Likewise.
27417         (create_task_copyfn): Likewise.
27418         * tree-emutls.c (lower_emutls_function_body): Likewise.
27419         * matrix-reorg.c (transform_allocation_sites): Likewise.
27420
27421 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
27422
27423         PR c/48552
27424         * c-typeck.c (build_asm_expr): Error out on attempts to use
27425         void type outputs or inputs for constraints that allow reg or
27426         don't allow memory.
27427
27428 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
27429             Richard Earnshaw  <rearnsha@arm.com>
27430
27431         PR target/48250
27432         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
27433         to use sign-magnitude offsets. Reject unsupported unaligned
27434         cases. Add detailed description in comments.
27435         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
27436         condition from TARGET_32BIT to TARGET_ARM.
27437
27438 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
27439
27440         * tree.h (struct typed_tree): New.
27441         (struct tree_common): Include it instead of tree_base.
27442         (TREE_TYPE): Update for new location of type field.
27443         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
27444         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
27445         (union tree_node): Add typed field.
27446         * treestruct.def (TS_TYPED): New.
27447         * lto-streamer.c (check_handled_ts_structures): Handle it.
27448         * tree.c (MARK_TS_TYPED): New macro.
27449         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
27450
27451 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
27452
27453         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
27454         (force_nonfallthru): Do not alter the loop nest if no basic block
27455         was created.
27456
27457 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
27458
27459         * config/i386/sse.md (VI): New mode iterator.
27460         (SSEMODEI): Remove.
27461         (AVX256MODEI): Ditto.
27462         (AVXMODEF4P): Ditto.
27463         (avxvecpsmode): Ditto.
27464         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
27465         (sse2_andnot<mode>3): New expander.
27466         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
27467         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
27468         (<any_logic:code><mode>3): Use VI mode iterator.
27469         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
27470         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
27471         (*andnottf3): Handle AVX three-operand constraints.
27472         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
27473
27474 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27475             Robert Millan  <rmh@gnu.org>
27476
27477         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
27478         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
27479         GNU_USER_DYNAMIC_LINKER64): Define.
27480         (REG_NAME): Don't undefine.
27481         (MD_UNWIND_SUPPORT): Undefine.
27482         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
27483         (REG_NAME): Don't undefine.
27484         (MD_UNWIND_SUPPORT): Undefine.
27485         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
27486
27487 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27488
27489         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
27490         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
27491
27492 2011-04-11  Xinliang David Li  <davidxl@google.com>
27493
27494         * value-profile.c (check_ic_target): New function.
27495         (gimple_ic_transform): Sanity check indirect call target.
27496         * gimple-low.c (gimple_check_call_args): Interface change.
27497         (gimple_check_call_matching_types): New function.
27498         * tree-inline.c (tree_can_inline_p): Call new function.
27499
27500 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
27501
27502         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
27503         tree-pretty-print.h & realmpfr.h.
27504
27505 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
27506
27507         PR middle-end/48464
27508         * ira.c (setup_pressure_classes): Fix typo in loop condition.
27509         (setup_allocno_and_important_classes): Ditto.
27510
27511 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27512
27513         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
27514         GNU_USER_DYNAMIC_LINKER.
27515         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
27516         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27517         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
27518         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
27519         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
27520         GNU_USER_TARGET_OS_CPP_BUILTINS.
27521         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
27522         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27523         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
27524         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27525         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
27526         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
27527         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
27528         GNU_USER_TARGET_OS_CPP_BUILTINS.
27529         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27530         GNU_USER_DYNAMIC_LINKER.
27531         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
27532         GNU_USER_TARGET_OS_CPP_BUILTINS.
27533         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
27534         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27535         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
27536         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27537         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
27538         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
27539         GNU_USER_DYNAMIC_LINKER64): Remove.
27540         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
27541         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27542         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27543         GNU_USER_DYNAMIC_LINKER.
27544         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
27545         GNU_USER_TARGET_OS_CPP_BUILTINS.
27546         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
27547         GNU_USER_TARGET_OS_CPP_BUILTINS.
27548         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
27549         to GNU_USER_TARGET_OS_CPP_BUILTINS.
27550         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
27551         GNU_USER_TARGET_OS_CPP_BUILTINS.
27552         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
27553         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
27554         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
27555         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
27556         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27557         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27558         GNU_USER_DYNAMIC_LINKER.
27559         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
27560         GNU_USER_TARGET_OS_CPP_BUILTINS.
27561         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
27562         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27563         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27564         GNU_USER_DYNAMIC_LINKER.
27565         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
27566         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27567         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
27568         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27569         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27570         GNU_USER_DYNAMIC_LINKER.
27571         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
27572         GNU_USER_DYNAMIC_LINKERN32.
27573         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
27574         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
27575         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
27576         GNU_USER_DYNAMIC_LINKER32.
27577         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
27578         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27579         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27580         GNU_USER_DYNAMIC_LINKER.
27581         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
27582         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27583         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
27584         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27585         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
27586         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
27587         GNU_USER_DYNAMIC_LINKER32.
27588         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
27589         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
27590         GNU_USER_DYNAMIC_LINKER.
27591         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
27592         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27593         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
27594         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
27595         GNU_USER_DYNAMIC_LINKER64.
27596         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
27597         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27598         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27599         GNU_USER_DYNAMIC_LINKER.
27600         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
27601         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27602         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27603         GNU_USER_DYNAMIC_LINKER.
27604         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
27605         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27606         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
27607         GNU_USER_DYNAMIC_LINKER32.
27608         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
27609         GNU_USER_DYNAMIC_LINKER64.
27610         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
27611         GNU_USER_DYNAMIC_LINKER64.
27612         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
27613         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27614         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
27615         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27616         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
27617
27618 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27619
27620         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
27621         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
27622         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
27623         GNU_USER_DYNAMIC_LINKER.
27624         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
27625         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
27626         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
27627         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
27628         GNU_USER_DYNAMIC_LINKER64.
27629         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
27630         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
27631         GNU_USER_LINK_EMULATION.
27632         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
27633         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
27634         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
27635         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
27636         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
27637         CPP_SPEC, CC1_SPEC): Remove.
27638         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
27639         (GNU_USER_DYNAMIC_LINKER): Define.
27640         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
27641         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
27642         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
27643         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
27644         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
27645         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
27646         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
27647         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
27648         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
27649         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
27650         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
27651         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
27652         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
27653         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
27654         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
27655         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
27656         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27657         GNU_USER_DYNAMIC_LINKER.
27658         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27659         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
27660         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27661         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
27662         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27663         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
27664         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
27665         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
27666         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
27667         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
27668
27669 2011-04-11  Kai Tietz  <ktietz@redhat.com>
27670
27671         PR target/9601
27672         PR target/11772
27673         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
27674         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
27675         comment.
27676         (ix86_is_msabi_thiscall): Removed.
27677         (ix86_is_type_thiscall): Likewise.
27678         (ix86_get_callcvt): New function.
27679         (ix86_comp_type_attributes): Simplify check.
27680         (ix86_function_regparm): Use ix86_get_callcvt for calling
27681         convention attribute checks.
27682         (ix86_return_pops_args): Likewise.
27683         (ix86_static_chain): Likewise.
27684         (x86_this_parameter): Likewise.
27685         (x86_output_mi_thunk): Likewise.
27686         (ix86_function_type_abi): Optimize check for types without attributes.
27687         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
27688         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
27689         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
27690         by flag-values.
27691         (IX86_BASE_CALLCVT): Helper macro.
27692         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
27693         Use ix86_get_callcvt for calling convention attribute checks and avoid
27694         symbol-decoration for stdcall in TARGET_RTD case.
27695         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
27696         Likewise.
27697         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
27698         for declaration.
27699
27700 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
27701
27702         * config/i386/sse.md (VI_128): New mode iterator.
27703         (VI12_128): Rename from SSEMODE12.
27704         (VI14_128): Rename from SSEMODE14.
27705         (VI124_128): New mode iterator.
27706         (VI24_128): Rename from SSEMODE248.
27707         (VI248_128): Rename from SSEMODE248.
27708         (SSEMODE124C8): Remove.
27709         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
27710         (*sse2_<plusminus_insn><mode>3): Merge with
27711         *avx_<plusminus_insn><mode>3.
27712         (*mulv8hi3): Merge with *avx_mulv8hi3.
27713         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
27714         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
27715         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
27716         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
27717         (ashr<mode>3): Merge with *avx_ashr<mode>3.
27718         (lshr<mode>3): Merge with *avx_lshr<mode>3.
27719         (ashl<mode>3): Merge with *avx_ashl<mode>3.
27720         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
27721         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
27722         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
27723         (*<smaxmin:code>v8hi3): Ditto.
27724         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
27725         (*<smaxmin:code>v16qi3): Ditto.
27726         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
27727         (*sse2_eq<mode>3): Ditto.
27728         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
27729         (*sse2_gt<mode>3): Ditto.
27730         (vcondv2di): Split out of vcond<mode>.
27731         (vconduv2di): Split out of vcondu<mode>.
27732
27733 2011-04-11  Richard Guenther  <rguenther@suse.de>
27734
27735         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
27736         before calling tree_low_cst.
27737
27738 2011-04-11  Richard Guenther  <rguenther@suse.de>
27739
27740         * stor-layout.c (layout_type): Compute all array index size operations
27741         in the original type.
27742         (initialize_sizetypes): Add comment.
27743         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
27744
27745 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27746
27747         * common.opt (Tbss=, Tdata=, Ttext=): New options.
27748
27749 2011-04-11  Martin Jambor  <mjambor@suse.cz>
27750
27751         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
27752         of cgraph_node, handle NULL return value.
27753         (cgraph_global_info): Likewise.
27754         (cgraph_rtl_info): Likewise.
27755         * tree-inline.c (estimate_num_insns): Likewise.
27756         * gimplify.c (unshare_body): Likewise.
27757         (unvisit_body): Likewise.
27758         (gimplify_body): Likewise.
27759         * predict.c (optimize_function_for_size_p): Likewise.
27760         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27761         (call_may_clobber_ref_p_1): Likewise.
27762         * varasm.c (function_section_1): Likewise.
27763         (assemble_start_function): Likewise.
27764
27765 2011-04-11  Martin Jambor  <mjambor@suse.cz>
27766
27767         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
27768         of cgraph_node.
27769         * final.c (rest_of_clean_state): Likewise.
27770         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
27771         * passes.c (pass_init_dump_file): Likewise.
27772         (execute_all_ipa_transforms): Likewise.
27773         (function_called_by_processed_nodes_p): Likewise.
27774         * predict.c (maybe_hot_frequency_p): Likewise.
27775         (probably_never_executed_bb_p): Likewise.
27776         (compute_function_frequency): Likewise.
27777         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
27778         (unnest_nesting_tree_1): Likewise.
27779         (lower_nested_functions): Likewise.
27780         * tree-optimize.c (execute_fixup_cfg): Likewise.
27781         (tree_rest_of_compilation): Likewise.
27782         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
27783         * tree-sra.c (ipa_early_sra): Likewise.
27784         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
27785         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
27786         * ipa.c (record_cdtor_fn): Likewise.
27787         * ipa-inline.c (cgraph_early_inlining): Likewise.
27788         (compute_inline_parameters_for_current): Likewise.
27789         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
27790         * ipa-pure-const.c (local_pure_const): Likewise.
27791         * ipa-split.c (split_function): Likewise.
27792         (execute_split_functions): Likewise.
27793         * cgraphbuild.c (build_cgraph_edges): Likewise.
27794         (rebuild_cgraph_edges): Likewise.
27795         (cgraph_rebuild_references): Likewise.
27796         (remove_cgraph_callee_edges): Likewise.
27797         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
27798         (verify_cgraph_node): Likewise.
27799         (cgraph_analyze_functions): Likewise.
27800         (cgraph_preserve_function_body_p): Likewise.
27801         (save_inline_function_body): Likewise.
27802         (save_inline_function_body): Likewise.
27803         * tree-inline.c (copy_bb): Likewise.
27804         (optimize_inline_calls): Likewise.
27805
27806 2011-04-11  Martin Jambor  <mjambor@suse.cz>
27807
27808         PR tree-optimization/48195
27809         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
27810         ipa_check_create_edge_args.
27811         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
27812         ipa_check_create_edge_args.
27813         * ipa-inline.c (inline_generate_summary): Do not call
27814         ipa_check_create_node_params and ipa_check_create_edge_args.
27815         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
27816         ipa_check_create_edge_args.
27817
27818 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
27819
27820         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
27821         instead of loop.
27822         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
27823         * function.c (record_hard_reg_sets): Likewise.
27824         * ira.c (compute_regs_asm_clobbered): Likewise.
27825         * sched-deps.c (sched_analyze_1): Likewise.
27826         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
27827
27828 2011-04-09  Xinliang David Li  <davidxl@google.com>
27829
27830         PR tree-optimization/PR48484
27831         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
27832         has_valid_pred lazily
27833
27834 2011-04-09  Duncan Sands  <baldrick@free.fr>
27835
27836         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
27837
27838 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
27839
27840         * combine.c (combine_validate_cost): Adjust comments.  Set registered
27841         cost of I0 to zero at the end, if any.
27842
27843 2011-04-08  Xinliang David Li  <davidxl@google.com>
27844
27845         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
27846         to insane profile data.
27847
27848 2011-04-08  Xinliang David Li  <davidxl@google.com>
27849
27850         * ipa-cp.c (ipcp_update_profiling): Correct
27851          negative scale factor due to insane profile data.
27852
27853 2011-04-08  Xinliang David Li  <davidxl@google.com>
27854
27855         * final.c (dump_basic_block_info): New function.
27856         (final): Dump basic block.
27857         (final_scan_insn): Remove old dump.
27858
27859 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
27860
27861         PR target/47829
27862         * config.gcc (i386-*-freebsd): Disable unwind table generation for
27863         crtbegin/crtend.
27864
27865 2011-04-08  Michael Matz  <matz@suse.de>
27866
27867         PR middle-end/48389
27868         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
27869         functions.
27870         (rebuild_jump_labels): Call rebuild_jump_labels_1.
27871         * rtl.h (rebuild_jump_labels_chain): Declare.
27872         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
27873         insns inserted on edges.
27874
27875 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
27876
27877         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
27878         * config/arm/arm-arches.def: New.
27879         * config/arm/arm-opts.h: New.
27880         * config/arm/genopt.sh: New.
27881         * config/arm/arm-tables.opt: New (generated).
27882         * config/arm/arm.c (arm_handle_option, arm_target_help,
27883         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
27884         (all_architectures): Get most table contents from arm-arches.def.
27885         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
27886         arm_selected_tune here.
27887         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
27888         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
27889         (march=, mcpu=, mtune=): Use Enum and Var.
27890         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
27891         (arm.o): Update dependencies.
27892
27893 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
27894
27895         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
27896         of header_file.
27897         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
27898         (write_typed_alloc_defns): Likewise.
27899         (main): Calls write_typed_alloc_defns with output_header.
27900
27901 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
27902
27903         PR inline-asm/48435
27904         * ira-color.c (setup_profitable_hard_regs): Add comments.
27905         Don't take prohibited hard regs into account.
27906         (setup_conflict_profitable_regs): Rename to
27907         get_conflict_profitable_regs.
27908         (check_hard_reg_p): Check prohibited hard regs.
27909
27910 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
27911
27912         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
27913         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
27914         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
27915
27916 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27917
27918         PR target/48366
27919         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
27920         move from floating point to shift amount register.
27921         (emit_move_sequence): Remove secondary reload support for floating
27922         point to shift amount amount register copies.
27923         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
27924         amount register copies.
27925         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
27926         register, return false if mode isn't a scalar integer mode.
27927         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
27928
27929 2011-04-08  Richard Guenther  <rguenther@suse.de>
27930
27931         * gimple.c (gimple_call_flags): Remove kludge.
27932
27933 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
27934
27935         * sel-sched.c (sel_region_init): Move call to
27936         sel_setup_region_sched_flags after setup_current_loop_nest.
27937
27938 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
27939
27940         PR rtl-optimization/48272
27941         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
27942         init_insn_reg_pressure_info.  Adjust a caller.
27943         * sched-int.h (init_insn_reg_pressure_info): Declare.
27944         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
27945         when sched-pressure is enabled.
27946
27947 2011-04-08  Richard Guenther  <rguenther@suse.de>
27948
27949         * gimple.c (gimple_set_modified): Do not queue calls to
27950         MODIFIED_NORETURN_CALLS here ...
27951         * tree-ssa-operands.c (update_stmt_operands): ... but here.
27952
27953 2011-04-08  Richard Guenther  <rguenther@suse.de>
27954
27955         PR lto/48467
27956         * toplev.c (lang_dependent_init): Do not open asm_out_file
27957         in WPA mode, nor perform debug machinery initialization.
27958         (finalize): Do not unlink asm_out_file in WPA mode.
27959
27960 2011-04-08  Richard Guenther  <rguenther@suse.de>
27961
27962         * gimple.h (gimple_call_fntype): New function.
27963         (gimple_call_return_type): Use it.
27964         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
27965         * gimple-low.c (gimple_check_call_args): Likewise.
27966         * gimple.c (gimple_call_flags): Likewise.
27967         (gimple_call_arg_flags): Likewise.
27968         (gimple_call_return_flags): Likewise.
27969         * tree-cfg.c (verify_gimple_call): Likewise.
27970         (do_warn_unused_result): Likewise.
27971         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
27972         * value-prof.c (gimple_ic_transform): Fix fndecl check.
27973
27974 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
27975
27976         PR rtl-optimization/48235
27977         * sel-sched.c (code_motion_process_successors): Recompute the last
27978         insn in basic block if control flow changed.
27979         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
27980         Update condition for ilist_remove.
27981
27982 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
27983
27984         PR rtl-optimization/48302
27985         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
27986         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
27987         it to record added preheader blocks.
27988         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
27989         on to sel_add_loop_preheaders.
27990         (sel_region_init): Move call to setup_current_loop_nest after
27991         sel_init_bbs.
27992
27993 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
27994
27995         PR target/48273
27996         * cfgloop.h (loop_has_exit_edges): New helper.
27997         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
27998         non-clonable.
27999         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
28000         that have no exit edges.
28001
28002 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
28003
28004         PR rtl-optimization/48442
28005         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
28006         all callers.  Adjust assert.
28007
28008 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
28009
28010         PR tree-optimization/48377
28011         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
28012         is_packed to true even for types with smaller TYPE_ALIGN than
28013         TYPE_SIZE.
28014
28015 2011-04-08  Richard Guenther  <rguenther@suse.de>
28016
28017         PR bootstrap/48513
28018         * doc/tm.texi: Re-generate.
28019
28020 2011-04-08  Wei Guozhi  <carrot@google.com>
28021
28022         PR target/47855
28023         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
28024         * config/arm/arm.c (arm_attr_length_push_multi): New function.
28025         * config/arm/arm.md (*push_multi): Change the length computation to
28026         call a C function.
28027
28028 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
28029
28030         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
28031         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
28032         * doc/tm.texi: Regenerate.
28033         * system.h (ASM_OUTPUT_BSS): Poison.
28034         * varasm.c (asm_output_bss): Remove function.
28035         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
28036
28037         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
28038         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
28039         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
28040         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28041         Likewise.
28042         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28043         Likewise.
28044         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28045         Likewise.
28046         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
28047
28048 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
28049
28050         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
28051         EnumValue lines.
28052
28053 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
28054
28055         * config/m68k/m68k.c (m68k_handle_option): Don't handle
28056         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
28057         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
28058         OPT_mcpu32.
28059         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
28060         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
28061         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
28062         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
28063         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
28064         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
28065         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
28066         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
28067         options.  Don't map other m68k options manually.  Don't handle
28068         old-style options as canonical.
28069         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
28070         * doc/install.texi (m68k-*-*): Document binutils version requirement.
28071
28072 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
28073
28074         * basic-block.h (force_nonfallthru): Move to...
28075         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
28076         (force_nonfallthru): ...here.
28077         * cfghooks.c (force_nonfallthru): New function.
28078         * cfgrtl.c (force_nonfallthru): Rename into...
28079         (rtl_force_nonfallthru): ...this.
28080         (commit_one_edge_insertion): Do not set AUX field.
28081         (commit_edge_insertions): Do not discover new basic blocks.
28082         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
28083         (cfg_layout_rtl_cfg_hooks): Likewise.
28084         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
28085         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
28086         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
28087
28088 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
28089
28090         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
28091         Remove macros.
28092
28093 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
28094
28095         * config/i386/sse.md: Update copyright year.
28096         (avxcvtvecmode): Remove.
28097         (sse_movhlps): Merge with *avx_movhlps.
28098         (sse_movlhps): Merge with *avx_movlhps.
28099         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
28100         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
28101         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
28102         (sse_loadhps): Merge with *avx_loadhps.
28103         (sse_storelps): Merge with *avx_storelps.
28104         (sse_loadlps): Merge with *avx_loadlps.
28105         (sse_movss): Merge with *avx_movss.
28106         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
28107         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
28108         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
28109         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
28110         (vec_set<mode>_0): Ditto.
28111         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
28112         (sse4_1_insertps): Merge with *avx_insertps.
28113         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
28114         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
28115         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
28116         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
28117         (sse2_storehpd): Merge with *avx_storehpd.
28118         (sse2_loadhpd): Merge with *avx_loadhpd.
28119         (sse2_loadlpd): Merge with *avx_loadlpd.
28120         (sse2_movsd): Merge with *avx_movsd.
28121         (*vec_concatv2df): Merge with *vec_concatv2df.
28122
28123 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
28124
28125         PR debug/48343
28126         * combine.c (combine_instructions): Add last_combined_insn,
28127         update it if insn is after it, pass it to all try_combine calls.
28128         (try_combine): Add last_combined_insn parameter, pass it instead of
28129         i3 to propagate_for_debug.
28130
28131 2011-04-07  Nick Clifton  <nickc@redhat.com>
28132
28133         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
28134         to handle MDR <-> data register transfers.
28135         (movhi_internal): Likewise.
28136
28137 2011-04-07  Alan Modra  <amodra@gmail.com>
28138
28139         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
28140         previous stack info.
28141
28142 2011-04-07  Tom de Vries  <tom@codesourcery.com>
28143
28144         PR target/43920
28145         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
28146         flow_find_cross_jump.  Swap variables to implement backward replacement.
28147         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
28148
28149 2011-04-07  Tom de Vries  <tom@codesourcery.com>
28150
28151         PR target/43920
28152         * cfgcleanup.c (walk_to_nondebug_insn): New function.
28153         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
28154         and bb2.
28155         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
28156         src1 or src2.  Redirect edges to the last basic block.  Update
28157         frequency and count on multiple basic blocks in case of fallthru.
28158
28159 2011-04-07  Tom de Vries  <tom@codesourcery.com>
28160
28161         PR target/43920
28162         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
28163         function.
28164         (old_insns_match_p): Change return type.  Replace return false/true
28165         with return dir_none/dir_both.  Use can_replace_by.
28166         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
28167         direction from dir_p.  Register replacement direction in dir, last_dir
28168         and afterlast_dir.  Handle new return type of old_insns_match_p using
28169         merge_dir.  Return replacement direction in dir_p.
28170         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
28171         return type of old_insns_match_p.
28172         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
28173         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
28174         flow_find_cross_jump.
28175         * basic-block.h (enum replace_direction): New type.
28176         (flow_find_cross_jump): Add parameter to declaration.
28177
28178 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
28179
28180         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
28181         (AVXMODEDCVTPS2DQ): Ditto.
28182         (VEC_FLOAT_MODE): Ditto.
28183         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
28184         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
28185         (<any_logic:code><mode>3): Use VF mode iterator.
28186         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
28187         Use VF mode iterator.
28188         (copysign<mode>3): Use VF mode iterator.
28189         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
28190         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
28191         (*<any_logic:code><MODEF:mode>3): Merge with
28192         *avx_<any_logic:code><MODEF:mode>3.
28193         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
28194         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
28195         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
28196         (avx_cvtdq2ps<avxmodesuffix>): Remove.
28197         (sse2_cvtdq2ps): Use %v modifier.
28198         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
28199         (avx_cvtps2dq<avxmodesuffix>): Remove.
28200         (sse2_cvtps2dq): Use %v modifier.
28201         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
28202         (avx_cvttps2dq<avxmodesuffix>): Remove.
28203         (sse2_cvttps2dq): Use %v modifier.
28204         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
28205         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
28206         (sse2_cvtsd2siq): Fix insn template.
28207         (sse2_cvtsd2siq_2): Ditto.
28208         (sse2_cvttsd2siq): Ditto.
28209         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
28210         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
28211
28212 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
28213
28214         * gcov-io.c: Use GCC Runtime Library Exception.
28215
28216 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
28217
28218         PR debug/48466
28219         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
28220         as base_reg whatever register reg has been eliminated to, instead
28221         of hardcoding STACK_POINTER_REGNUM.
28222
28223 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
28224
28225         * doc/tm.texi.in: Document C target hooks as separate from general
28226         target hooks.
28227         * doc/tm.texi: Regenerate.
28228         * genhooks.c (struct hook_desc): Add docname field.
28229         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
28230         docname field.
28231         (hook_array): Include c-target.def.
28232         (emit_documentation): Use docname field in output.
28233         (emit_init_macros): Take docname argument.  Only emit definitions
28234         for hooks matching docname.
28235         (main): Expect additional arguments in all cases.  Pass argument
28236         to emit_init_macros.
28237         * target.def: Move initial macro definitions and comments to
28238         target-hooks-macros.h.
28239         (gcc_targetcm): Move to c-family/c-target.def.
28240         * target.h (targetcm): Move declaration to c-family/c-target.h.
28241         * targhooks.c (default_handle_c_option): Move to
28242         c-family/c-opts.c.
28243         * targhooks.h (default_handle_c_option): Move declaration to
28244         c-family/c-common.h.
28245         * target-hooks-macros.h: New file.
28246         * config.gcc (target_has_targetcm): Define and use to add to
28247         c_target_objs and cxx_target_objs.
28248         * config/default-c.c: New file.
28249         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
28250         of target.h and target-def.h.
28251         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
28252         (darwin_objc_construct_string, darwin_cfstring_ref_p,
28253         darwin_check_cfstring_format_arg): Make static.
28254         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
28255         TARGET_STRING_OBJECT_REF_TYPE_P,
28256         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
28257         * config/darwin-protos.h (darwin_objc_construct_string,
28258         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
28259         declare.
28260         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
28261         TARGET_STRING_OBJECT_REF_TYPE_P,
28262         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
28263         * config/t-darwin (darwin-c.o): Update dependencies.
28264         * system.h (TARGET_HAS_TARGETCM): Poison.
28265         * Makefile.in (TARGET_H): Update.
28266         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
28267         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
28268         (default-c.o): New target.
28269         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
28270         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
28271         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
28272         c-target.def.
28273         (build/genhooks.o): Update dependencies.
28274
28275 2011-04-06  Richard Guenther  <rguenther@suse.de>
28276
28277         * ipa-inline.c (enum inlining_mode): Remove.
28278         (cgraph_flatten): Use some other token.
28279         (cgraph_edge_early_inlinable_p): New function, split out from ...
28280         (cgraph_perform_always_inlining): New function, split out from ...
28281         (cgraph_decide_inlining_incrementally): ... here.
28282         (cgraph_mark_inline_edge): Adjust.
28283         (cgraph_early_inlining): Re-structure.
28284         (pass_early_inline): Require SSA form.
28285
28286 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
28287             Julian Brown  <julian@codesourcery.com>
28288             Mark Shinwell  <shinwell@codesourcery.com>
28289
28290         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
28291         LO_REGS only for Thumb-1.
28292         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
28293         be used in short instructions when optimising for size on Thumb-2.
28294
28295 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
28296
28297         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
28298         associated with user returns to be preserved.
28299
28300 2011-04-06  Tristan Gingold  <gingold@adacore.com>
28301
28302         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
28303         symbol_queue_size, DBXOUT_DECR_NESTING,
28304         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
28305         if XCOFF_DEBUGGING_INFO.
28306
28307 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
28308
28309         * config/i386/i386.md (attribute isa): New.
28310         (attribute enabled): New.
28311         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
28312         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
28313         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
28314         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
28315         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
28316         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
28317         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
28318         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
28319
28320         * config/i386/sse.md (VF): New mode iterator.
28321         (VF1): Ditto.
28322         (VF2): Ditto.
28323         (VF_128): Ditto.
28324         (SSEMODEF4): Remove.
28325         (attribute sse): Handle V8SF and V4DF modes.
28326         (<absneg:code><mode>2): Use VF mode iterator.
28327         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
28328         mode iterator.
28329         (<plusminus_insn><mode>3): Use VF mode iterator.
28330         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
28331         Use VF mode iterator.
28332         (<sse>_vm<plusminus_insn><mode>3): Merge with
28333         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
28334         (mul<mode>3): Use VF mode iterator.
28335         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
28336         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
28337         mode iterator.
28338         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
28339         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
28340         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
28341         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
28342         mode iterator.
28343         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
28344         Use VF1 mode iterator.
28345         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
28346         (sqrt<VF2:mode>2): New expander.
28347         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
28348         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
28349         and sqrtv2df2.  Use VF mode iterator.
28350         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
28351         mode iterator.
28352         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
28353         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
28354         Use VF1 mode iterator.
28355         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
28356         (<smaxmin:code><mode>3): Use VF mode iterator.
28357         (*<smaxmin:code><mode>3_finite): Merge with
28358         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
28359         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
28360         (<sse>_vm<smaxmin:code><mode>2): Merge with
28361         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
28362         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
28363         mode iterator.
28364         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
28365         mode iterator.
28366         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
28367         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
28368         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
28369         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
28370         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
28371         VF mode iterator.
28372         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
28373         Use VF_128 mode iterator.
28374         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
28375         mode iterator.
28376         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
28377         VF_128 mode iterator.
28378         (vcond<mode>): Use VF mode iterator.
28379         * config/i386/predicates.md (sse_comparison_operator): Merge with
28380         avx_comparison_float_operator.  Do not declare as special_predicate.
28381         * config/i386/i386.c (struct builtin_description): Update for renamed
28382         compare patterns.
28383         (ix86_expand_args_builtin): Ditto.
28384         (ix86_expand_sse_compare_mask): Ditto.
28385
28386 2011-04-06  Richard Guenther  <rguenther@suse.de>
28387
28388         * tree-inline.c (estimate_num_insns): For calls simply account
28389         for all passed arguments and a used return value.
28390
28391 2011-04-06  Richard Guenther  <rguenther@suse.de>
28392
28393         PR tree-optimization/47663
28394         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
28395         call_stmt_time fields.
28396         (cgraph_edge_inlinable_p): Declare.
28397         (cgraph_edge_recursive_p): New inline function.
28398         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
28399         (cgraph_clone_edge): Copy it.
28400         * ipa-inline.c (cgraph_estimate_edge_time): New function.
28401         Account for call stmt time.
28402         (cgraph_estimate_time_after_inlining): Take edge argument.
28403         (cgraph_estimate_edge_growth): Account call stmt size.
28404         (cgraph_estimate_size_after_inlining): Take edge argument.
28405         (cgraph_mark_inline_edge): Adjust.
28406         (cgraph_check_inline_limits): Likewise.
28407         (cgraph_recursive_inlining_p): Remove.
28408         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
28409         (cgraph_decide_recursive_inlining): Take edge argument and
28410         adjust.
28411         (cgraph_decide_inlining_of_small_functions): Do not avoid
28412         diags for recursive inlining here.
28413         (cgraph_flatten): Adjust.
28414         (cgraph_decide_inlining_incrementally): Likewise.
28415         (estimate_function_body_sizes): Remove call cost handling.
28416         (compute_inline_parameters): Initialize caller edge call costs.
28417         (cgraph_estimate_edge_growth): New function.
28418         (cgraph_estimate_growth): Use it.
28419         (cgraph_edge_badness): Likewise.
28420         (cgraph_check_inline_limits): Take an edge argument.
28421         (cgraph_decide_inlining_of_small_functions): Adjust.
28422         (cgraph_decide_inlining): Likewise.
28423         * tree-inline.c (estimate_num_insns): Only account for call
28424         return value if it is used.
28425         (expand_call_inline): Avoid diagnostics on recursive inline
28426         functions here.
28427         * lto-cgraph.c (lto_output_edge): Output edge call costs.
28428         (input_edge): Input edge call costs.
28429
28430 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28431
28432         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
28433
28434 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
28435
28436         * doc/invoke.texi (Spec Files): Fix typo.
28437
28438 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
28439
28440         * profile.c (branch_prob): Move declaration of local variable.  Remove
28441         obsolete ??? comment.  Expand the location explicitly instead of using
28442         the LOCATION_FILE and LOCATION_LINE macros.
28443
28444 2011-04-06  Wei Guozhi  <carrot@google.com>
28445
28446         PR target/47855
28447         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
28448         (arm_cond_branch): Likewise.
28449         (arm_cond_branch_reversed): Likewise.
28450         (arm_jump): Likewise.
28451         (push_multi): Likewise.
28452         * config/arm/constraints.md (Py): New constraint.
28453
28454 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28455
28456         PR bootstrap/48471
28457         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
28458         Move these...
28459         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
28460         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
28461         #ifdef DBX_DEBUGGING_INFO.
28462
28463 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
28464
28465         PR bootstrap/48403
28466         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
28467         if old and new states differ.
28468
28469 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
28470
28471         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
28472         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
28473         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
28474         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
28475         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
28476         mcfv4e): Use Alias.
28477         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
28478         ColdFire options to -mcpu= options.
28479
28480 2011-04-05  Jeff Law  <law@redhat.com>
28481
28482         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
28483         check if BB is a successor of LOOP->header and return
28484         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
28485
28486 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
28487
28488         * cprop.c (struct reg_use): Remove.
28489         (reg_use_table): Make an array of RTX.
28490         (find_used_regs, constprop_register, local_cprop_pass,
28491         bypass_block): Simplify users of reg_use_table.
28492         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
28493         on one of the uses found by find_used_regs.
28494
28495 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28496
28497         PR bootstrap/48469
28498         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
28499         declaration.
28500
28501 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28502
28503         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
28504         as an rtx.
28505         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
28506
28507 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
28508
28509         PR middle-end/48441
28510         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
28511
28512 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28513
28514         * combine.c: Include obstack.h.
28515         (struct insn_link): Define.
28516         (uid_log_links): Adjust type.
28517         (FOR_EACH_LOG_LINK): New macro.
28518         (insn_link_obstack): Declare.
28519         (alloc_insn_link): Define.
28520         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
28521         type of link variables.
28522         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
28523         (try_combine, record_promoted_values, distribute_notes): Likewise.
28524         (distribute_links): Likewise.  Tweak prototype.
28525         (clear_log_links): Delete.
28526         (adjust_for_new_dest): Call alloc_insn_link.
28527         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
28528
28529 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28530
28531         * gcse.c (modify_mem_list): Convert to an array of VECs.
28532         (canon_modify_mem_list, compute_transp): Tweak formatting.
28533         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
28534         (load_killed_in_block_p): Likewise.
28535         (record_last_mem_set_info): Likewise.
28536         (clear_modify_mem_tables): Likewise.
28537
28538 2011-04-05  Tom de Vries  <tom@codesourcery.com>
28539
28540         PR middle-end/48461
28541         * function.c (emit_use_return_register_into_block): Only define if
28542         HAVE_return.
28543
28544 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
28545
28546         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
28547
28548 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
28549
28550         * config/rx/rx-opts.h: New.
28551         * config/rx/rx.c (rx_cpu_type): Remove.
28552         (rx_handle_option): Don't assert that global structures are in
28553         use.  Access variables via opts pointer.  Defer most handling of
28554         OPT_mint_register_.  Use error_at.
28555         (rx_option_override): Handle deferred OPT_mint_register_ here.
28556         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
28557         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
28558         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
28559         (rx_cpu_types): New Enum and EnumValue entries.
28560         (mint-register=): Use Defer and use Var accordingly.
28561
28562 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28563
28564         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
28565         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
28566         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
28567         Move these...
28568         (debug_free_queue, debug_nesting, symbol_queue_index):
28569         ...and these...
28570         * dbxout.c: ...to here.  Make static.
28571
28572 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28573
28574         * gcse.c (modify_pair): Define.  Define a VEC of it.
28575         (canon_modify_mem_list): Convert to an array of VECs.
28576         (free_insn_expr_list_list): Delete.
28577         (clear_modify_mem_tables): Call VEC_free instead.
28578         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
28579         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
28580         (canon_list_insert, compute_transp): Likewise.
28581
28582 2011-04-05  Tom de Vries  <tom@codesourcery.com>
28583
28584         PR target/43920
28585         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
28586         for size.
28587
28588 2011-04-05  Tom de Vries  <tom@codesourcery.com>
28589
28590         PR target/43920
28591         * function.c (emit_use_return_register_into_block): New function.
28592         (thread_prologue_and_epilogue_insns): Use
28593         emit_use_return_register_into_block.
28594
28595 2011-04-05  Tom de Vries  <tom@codesourcery.com>
28596
28597         PR target/43920
28598         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
28599         insn.
28600
28601 2011-04-05  Tom de Vries  <tom@codesourcery.com>
28602
28603         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
28604
28605 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
28606
28607         * config/arm/arm.md (define_constants for unspec): Replace with
28608         define_c_enum.
28609         (define_constants for unspecv): Replace with define_c_enum.
28610         * config/arm/neon.md (define_constants for unspec): Replace with
28611         define_c_enum.
28612
28613 2011-04-04  Richard Henderson  <rth@redhat.com>
28614
28615         PR bootstrap/48400
28616         * dwarf2out.c (output_line_info): Always emit line info from
28617         at least one section.
28618         (dwarf2out_init): Create text_section_line_info here ...
28619         (set_cur_line_info_table): ... not here.
28620
28621 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
28622
28623         PR target/48380
28624         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
28625         not called.
28626
28627         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
28628
28629 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
28630
28631         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
28632         (expr_equiv_p): Remove.
28633         (insert_set_in_table): Look at <dest, src> pair instead of expr.
28634         (hash_scan_set): Update call to insert_set_in_table.
28635         (dump_hash_table): Dump <dest, src> pair.
28636         (lookup_set): Simplify.  Lookup <dest, src> pair.
28637         (compute_transp): Remove, fold heavily simplified code into...
28638         (compute_local_properties): ...here.  Expect COMP and TRANSP
28639         unconditionally.
28640         (find_avail_set): Take set directly from struct expr.
28641         (find_bypass-set): Likewise.
28642         (bypass_block): Likewise.
28643         (cprop_insn): Likewise.  Remove redundant INSN_P test.
28644
28645         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
28646         checks on form of COND from find_implicit_sets to here.
28647         (find_implicit_sets): Cleanup control flow. Split critical edges
28648         if it exposes implicit sets.  Allocate/resize implicit_sets as
28649         necessary.
28650         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
28651         changed something.  Run df_analyze after find_implicit_sets if any
28652         edges were split.  Do not allocate implicit_sets here.
28653
28654         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
28655         (gcse_obstack): Renamed to cprop_obstack.
28656         (GNEW, GNEWVEC, GNEWVAR): Remove.
28657         (gmalloc): Remove.
28658         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
28659         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
28660         (gcse_alloc): Likewise, and rename to cprop_alloc.
28661         (alloc_gcse_men, free_gcse_mem): Remove.
28662         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
28663         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
28664         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
28665
28666         * cprop.c (oprs_not_set_p): Remove.
28667         (mark_set, mark_clobber): Remove.
28668         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
28669         (reg_not_set_p): New function.
28670         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
28671         (cprop_insn): Likewise.
28672         (cprop_jump): Use FOR_EACH_EDGE.
28673
28674 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
28675
28676         PR bootstrap/48403
28677         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
28678         (rank_for_schedule): Use scheduled_insns vector instead of
28679         last_scheduled_insn.
28680         (ok_for_early_queue_removal): Likewise.
28681         (queue_to_ready): Search forward in nonscheduled_insns_begin if
28682         we have a dbg_cnt.
28683         (choose_ready): Likewise.
28684         (commit_schedule): Use VEC_iterate.
28685         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
28686         a dbg_cnt, use it and ensure the first insn is in the ready list.
28687         (haifa_sched_init): Allocate scheduled_insns.
28688         (sched_extend_ready_list): Don't allocate it; reserve space.
28689         (haifa_sched_finish): Free it.
28690
28691 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
28692
28693         * optc-gen.awk: Always remove type from Variable entry before
28694         recording in var_seen.
28695
28696 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
28697
28698         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
28699         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
28700         call to tidy_fallthru_edges.
28701
28702 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
28703
28704         * doc/options.texi (ToLower): Document.
28705         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
28706         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
28707         * opts.h (cl_option): Add cl_tolower field.
28708         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
28709         arguments with lowercase strings.
28710         * config/rx/rx.opt (mcpu=): Add ToLower.
28711         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
28712         argument.
28713
28714 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
28715
28716         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
28717
28718 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
28719
28720         * config/vax/vax.c: Include reload.h.
28721
28722 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
28723
28724         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
28725         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
28726         (sparc_preferred_reload_class): New function.
28727
28728 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
28729
28730         PR debug/48401
28731         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
28732         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
28733
28734 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
28735
28736         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
28737         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
28738
28739 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
28740
28741         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
28742         (ASM_OUTPUT_ALIGNED_BSS): Define.
28743
28744 2011-04-03  Michael Matz  <matz@suse.de>
28745
28746         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
28747         and next_slot members.
28748         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
28749         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
28750         (lto_streamer_cache_append): Declare.
28751         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
28752         unsigned index, remove offset parameter, ensure that we append
28753         or update existing entries.
28754         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
28755         parameter, update next_slot for append.
28756         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
28757         parameter.
28758         (lto_streamer_cache_insert_at): Likewise.
28759         (lto_streamer_cache_append): New function.
28760         (lto_streamer_cache_lookup): Use unsigned index.
28761         (lto_streamer_cache_get): Likewise.
28762         (lto_record_common_node): Don't test tree_node_can_be_shared.
28763         (preload_common_node): Adjust call to lto_streamer_cache_insert.
28764         (lto_streamer_cache_delete): Don't free offsets member.
28765         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
28766         (lto_output_string_with_length): Use lto_output_data_stream.
28767         (lto_output_tree_header): Remove ix parameter, don't write it.
28768         (lto_output_builtin_tree): Likewise.
28769         (lto_write_tree): Adjust callers to above, don't track and write
28770         offset, write unsigned index.
28771         (output_unreferenced_globals): Don't emit all global vars.
28772         (write_global_references): Use unsigned indices.
28773         (lto_output_decl_state_refs): Likewise.
28774         (write_symbol): Likewise.
28775         * lto-streamer-in.c (lto_input_chain): Move earlier.
28776         (input_function): Use unsigned index.
28777         (input_alias_pairs): Don't read and then ignore all global vars.
28778         (lto_materialize_tree): Remove ix_p parameter, don't read index,
28779         don't pass it back, use lto_streamer_cache_append.
28780         (lto_register_var_decl_in_symtab): Use unsigned index.
28781         (lto_register_function_decl_in_symtab): Likewise.
28782         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
28783         index.
28784         (lto_get_builtin_tree): Don't read index, use
28785         lto_streamer_cache_append.
28786         (lto_read_tree): Adjust call to lto_materialize_tree.
28787
28788         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
28789         don't use function calls in arguments to MIN.
28790
28791         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
28792         twice.
28793
28794         * gimple.c (gimple_type_leader_entry): Mark deletable.
28795
28796 2011-04-03  Alan Modra  <amodra@gmail.com>
28797
28798         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
28799
28800 2011-04-03  Michael Matz  <matz@suse.de>
28801
28802         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
28803         an integer.
28804         * tree.h (tree_decl_non_common.vindex): Adjust comment.
28805
28806 2011-04-03  Michael Matz  <matz@suse.de>
28807
28808         * cgraphbuild.c (record_reference): Canonicalize constructor values.
28809         * gimple-fold.c (canonicalize_constructor_val): Accept being called
28810         without function context.
28811         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
28812         current_function_decl and cfun.
28813
28814 2011-04-03  Michael Matz  <matz@suse.de>
28815
28816         * tree.c (decl_init_priority_insert): Don't create entry for
28817         default priority.
28818         (decl_fini_priority_insert): Ditto.
28819         (fields_compatible_p, find_compatible_field): Remove.
28820         * tree.h (fields_compatible_p, find_compatible_field): Remove.
28821         * gimple.c (gimple_compare_field_offset): Adjust block comment.
28822
28823 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
28824
28825         * combine.c (try_combine): Remove useless local variable.
28826
28827 2011-04-03  Richard Guenther  <rguenther@suse.de>
28828             Ira Rosen  <ira.rosen@linaro.org>
28829
28830         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
28831         non-variable offsets and compare the remaining bases of the two
28832         accesses instead of looking for exact same data-ref.
28833
28834 2011-04-02  Kai Tietz  <ktietz@redhat.com>
28835
28836         PR target/48416
28837         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
28838
28839         * i386.c (ix86_is_msabi_thiscall): New helper function.
28840         (ix86_is_type_thiscall): New helper function.
28841         (ix86_comp_type_attributes): Handle thiscall for method-functions
28842         special.
28843         (init_cumulative_args): Likewise.
28844         (find_drap_reg): Likewise.
28845         (ix86_static_chain): Likewise.
28846         (x86_this_parameter): Likewise.
28847         (x86_output_mi_thunk): Likewise.
28848
28849 2011-04-01  Olivier Hainque  <hainque@adacore.com>
28850             Nicolas Setton  <setton@adacore.com>
28851             Eric Botcazou  <ebotcazou@adacore.com>
28852
28853         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
28854         (add_gnat_descriptive_type_attribute): New function.
28855         (gen_array_type_die): Call it.
28856         (gen_enumeration_type_die): Likewise.
28857         (gen_struct_or_union_type_die): Likewise.
28858         (modified_type_die): Likewise.
28859         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
28860         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
28861         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
28862
28863 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
28864
28865         PR bootstrap/48148
28866         * dwarf2out.c (resolve_addr): Don't call force_decl_die
28867         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
28868
28869         Revert:
28870         2011-03-17  Richard Guenther  <rguenther@suse.de>
28871
28872         PR bootstrap/48148
28873         * lto-cgraph.c (input_overwrite_node): Clear the abstract
28874         origin for decls in other ltrans units.
28875         (input_varpool_node): Likewise.
28876
28877 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
28878
28879         PR middle-end/48335
28880         * expr.c (expand_assignment): Handle all possibilities
28881         if TO_RTX is CONCAT.
28882         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
28883         (store_split_bit_field): If SUBREG_REG (op0) or
28884         op0 itself has smaller mode than word, return it
28885         for offset 0 and const0_rtx for out-of-bounds stores.
28886         If word is const0_rtx, skip it.
28887
28888 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
28889
28890         * config/h8300/h8300.c (print_operand_address): Rename to...
28891         (h8300_print_operand_address): ...this. Make static. Adjust comments.
28892         Call h8300_print_operand and h8300_print_operand_address instead of
28893         print_operand and print_operand_address. Declare.
28894         (print_operand): Renake to...
28895         (h8300_print_operand): ...this. Make static. Adjust comments.
28896         Call h8300_print_operand instead of print_operand. Declare.
28897         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
28898         (h8300_register_move_cost): Likewise.
28899         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
28900         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
28901         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
28902         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
28903         * config/h8300/h8300-protos.h (print_operand): Delete.
28904         (print_operand_address): Delete.
28905
28906 2011-04-01  Richard Henderson  <rth@redhat.com>
28907
28908         PR 48400
28909         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
28910         in strict mode before dwarf4.  Re-order tests to early out
28911         before switching sections.
28912
28913 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
28914
28915         * config/h8300/constraints.md: New file.
28916         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
28917         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
28918         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
28919         * config/h8300/predicates.md (bit_operand): Likewise.
28920         (incdec_operand): Use satisfies_constraint_M and
28921         satisfies_constraint_O.  Don't use C code block.
28922         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
28923         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
28924         (compute_mov_length): Use satisfies_constraint_G.
28925         (fix_bit_operand): Use satisfies_constraint_U.
28926         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
28927         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
28928         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
28929         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
28930         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
28931         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
28932         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28933         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
28934         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
28935         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
28936         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
28937         (EXTRA_MEMORY_CONSTRAINT): Delete.
28938
28939 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
28940             Michael Meissner  <meissner@linux.vnet.ibm.com>
28941
28942         PR target/48262
28943         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
28944         operands, as per the specifications.
28945
28946         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
28947         (vec_extract_evenv4sf): Ditto.
28948         (vec_extract_evenv8hi): Ditto.
28949         (vec_extract_evenv16qi): Ditto.
28950         (vec_extract_oddv4si): Ditto.
28951
28952 2011-03-31  Mark Wielaard  <mjw@redhat.com>
28953
28954         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
28955         high_pc attribute if the CU has no associated code. Only output
28956         DW_AT_entry_pc for CU if not generating strict dwarf and
28957         dwarf_version < 4.
28958
28959 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
28960
28961         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
28962         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
28963         out of ...
28964         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
28965         * final.c (final_start_function): Call the new function rather
28966         than using a NULL argument for dwarf2out_frame_debug.
28967
28968         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
28969         that contains the prologue.
28970
28971         * haifa-sched.c (queue_insn): New arg REASON.  All callers
28972         changed.  Print it in debugging output.
28973
28974         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
28975
28976         * sched-ebb.c (begin_schedule_ready): Remove second argument.
28977         Split most of the code into...
28978         (begin_move_insn): ... here.  New function.
28979         (ebb_sched_info): Add a pointer to it.
28980         * haifa-sched.c (scheduled_insns): New static variable.
28981         (sched_extend_ready_list): Allocate it.
28982         (schedule_block): Use it to record the order of scheduled insns.
28983         Perform RTL changes to move insns only after all scheduling
28984         decisions have been made.
28985         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
28986         begin_move_insn field.
28987         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
28988         * sched-int.h (struct haifa_sched_info): Remove second argument
28989         from begin_schedule_ready hook.  Add new member begin_move_insn.
28990         * sched-rgn.c (begin_schedule_ready): Remove second argument.
28991         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
28992
28993         * haifa-sched.c (prune_ready_list): New function, broken out of
28994         schedule_block.
28995         (schedule_block): Use it.
28996
28997 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28998
28999         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
29000
29001 2011-04-01  Kai Tietz  <ktietz@redhat.com>
29002
29003         * config.gcc (*-*-mingw*): Allow as option the
29004         posix threading model.
29005         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
29006         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
29007         definition.
29008         (CPP_SPEC): Add pthread/no-pthread handling.
29009         (LIB_SPEC): Likewise.
29010         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
29011         (LIB_SPEC): Likewise.
29012         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
29013         flag to pass -pthread option for shared libgcc build.
29014         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
29015         for shared libgcc build.
29016         * config/i386/t-mingw-pthread: New file.
29017         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
29018         New define to enable use of library pthread by default.
29019         * config/i386/mingw.opt (pthread): New driver option.
29020         (no-pthread): New driver option.
29021         * config/i386/cygming.opt: Make sure trailing empty line is retained.
29022         * config/i386/mingw-w64.opt: Likewise.
29023
29024 2011-04-01  Gary Funck  <gary@intrepid.com>
29025
29026         * c-decl.c (grokdeclarator): Fix formatting.
29027
29028 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
29029
29030         * expr.c (emit_block_move_via_movmem): Use n_generator_args
29031         instead of n_operands.
29032         (set_storage_via_setmem): Likewise.
29033         * optabs.c (maybe_gen_insn): Likewise.
29034         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
29035         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
29036         (mips_expand_builtin_direct): Likewise.
29037         * config/spu/spu.c (expand_builtin_args): Likewise.
29038
29039 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
29040
29041         * recog.h (insn_data_d): Add n_generator_args.
29042         * genoutput.c (data): Likewise.
29043         (output_insn_data): Print it.
29044         (max_opno, num_dups): Delete.
29045         (scan_operands): Just fill in "d->operand[...]".
29046         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
29047
29048 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
29049
29050         * gensupport.h (pattern_stats): New structure.
29051         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
29052         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
29053         (max_operand_1, max_operand_vec): Delete.
29054         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
29055
29056 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
29057
29058         * emit-rtl.c (emit_pattern_after_setloc): New function.
29059         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
29060         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
29061         (emit_pattern_after): New function.
29062         (emit_insn_after, emit_jump_insn_after): Call it.
29063         (emit_call_insn_after, emit_debug_insn_after): Likewise.
29064         (emit_pattern_before_setloc): New function.
29065         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
29066         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
29067         Likewise.
29068         (emit_pattern_before): New function.
29069         (emit_insn_before, emit_jump_insn_before): Call it.
29070         (emit_call_insn_before, emit_debug_insn_before): Likewise.
29071
29072 2011-03-31  Richard Henderson  <rth@redhat.com>
29073
29074         * dwarf2out.c (dw_separate_line_info_ref): Remove.
29075         (dw_separate_line_info_entry): Remove.
29076         (enum dw_line_info_opcode): New.
29077         (dw_line_info_entry): Use it.
29078         (dw_line_info_table, dw_line_info_table_p): New.
29079         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
29080         (line_info_table, line_info_label_num): Remove.
29081         (line_info_table_in_use): Remove.
29082         (separate_line_info_table): Remove.
29083         (separate_line_info_table_allocated): Remove.
29084         (separate_line_info_table_in_use): Remove.
29085         (LINE_INFO_TABLE_INCREMENT): Remove.
29086         (line_info_label_num): New.
29087         (cur_line_info_table): New.
29088         (text_section_line_info, cold_text_section_line_info): New.
29089         (separate_line_info): New.
29090         (SEPARATE_LINE_CODE_LABEL): Remove.
29091         (print_dwarf_line_table): Remove.
29092         (debug_dwarf): Don't dump it.
29093         (output_one_line_info_table): New.
29094         (output_line_info): Use it.
29095         (new_line_info_table): New.
29096         (set_cur_line_info_table): New.
29097         (dwarf2out_switch_text_section): Use it.
29098         (dwarf2out_begin_function): Likewise.
29099         (push_dw_line_info_entry): New.
29100         (dwarf2out_source_line): Rewrite for new line info tables.
29101         (dwarf2out_init): Remove dead initailizations.
29102
29103 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
29104
29105         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
29106         various flags.
29107         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
29108         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
29109         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
29110         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
29111         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
29112         * opt-functions.awk (flag_init, switch_bit_fields): New.
29113         (switch_flags): Don't handle flags moved to bit-fields.  Don't
29114         generate CL_MISSING_OK or CL_SAVE.
29115         * optc-gen.awk: Update to generate bit-field output as well as
29116         flags field.
29117         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
29118         bit-field instead of CL_REJECT_DRIVER flag.
29119         * opts-common.c (generate_canonical_option,
29120         decode_cmdline_option): Use bit-fields instead of CL_* flags.
29121         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
29122         instead of CL_REJECT_NEGATIVE flag.
29123         * toplev.c (print_switch_values): Use cl_report bit-field instead
29124         of CL_REPORT flag.
29125
29126 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
29127
29128         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
29129         a zero minimum index only if it is redundant.
29130
29131 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
29132
29133         PR rtl-optimization/48381
29134         * ira-color.c (assign_hard_reg): Use hard reg set intersection
29135         instead of ira_class_hard_reg_index for calculating conflicting
29136         hard registers.
29137
29138 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
29139
29140         * cprop.c: Clean up hash table building.
29141         (reg_avail_info): Remove.
29142         (oprs_available_p): Remove.
29143         (record_last_reg_set_info): Remove.
29144         (record_last_set_info): Remove.
29145         (reg_available_p): New function.
29146         (gcse_constant_p): Do not treat unfolded conditions as constants.
29147         (make_set_regs_unavailable): New function.
29148         (hash_scan_set): Simplify with new reg_available_p.
29149         (compute_hash_table_work): Traverse insns stream only once.
29150         Do not compute reg_avail_info. Traverse insns in reverse order.
29151         Record implicit sets after recording explicit sets from the block.
29152
29153 2011-03-31  Michael Matz  <matz@suse.de>
29154
29155         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
29156
29157 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
29158
29159         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
29160         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
29161         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29162         (h8300_mode_dependent_address_p): New function.
29163         (h8300_get_index): Make static.
29164
29165 2011-03-31  Jeff Law  <law@redhat.com>
29166
29167         * reload1.c (elimination_effects): Fix typo in recent change.
29168
29169         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
29170         typo potentially leading to null pointer dereference.
29171
29172         * caller-save.c (new_saved_hard_reg): Eliminate return value.
29173         (setup_save_areas): Corresponding changes to avoid useless
29174         assignments.
29175
29176         * jump.c (reversed_comparison_code_parts): Avoid successive return
29177         statements when REVERSE_CONDITION is defined.
29178
29179         * expr.c (expand_assignment): Avoid useless assignments.
29180         (expand_expr_real_1): Likewise.
29181         (expand_expr_real_2): Avoid useless statements.
29182
29183         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
29184
29185         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
29186
29187         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
29188         statements.
29189
29190         * stmt.c (expand_expr_stmt): Avoid useless assignment.
29191
29192 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
29193
29194         PR target/47109
29195         * doc/tm.texi.in (TARGET_VERSION): Remove.
29196         * doc/tm.texi: Regenerate.
29197         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
29198         * collect2.c (main): Don't use TARGET_VERSION.
29199         * mips-tdump.c (main): Don't use TARGET_VERSION.
29200         * mips-tfile.c (main): Don't use TARGET_VERSION.
29201         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
29202         * config/rs6000/vxworksae.h: Remove.
29203         * config/alpha/alpha.h (TARGET_VERSION): Remove.
29204         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
29205         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
29206         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
29207         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
29208         * config/arm/arm.h (TARGET_VERSION): Remove.
29209         * config/arm/coff.h (TARGET_VERSION): Remove.
29210         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
29211         * config/arm/elf.h (TARGET_VERSION): Remove.
29212         * config/arm/freebsd.h (TARGET_VERSION): Remove.
29213         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
29214         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
29215         * config/arm/pe.h (TARGET_VERSION): Remove.
29216         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
29217         * config/arm/semi.h (TARGET_VERSION): Remove.
29218         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
29219         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
29220         * config/arm/vxworks.h (TARGET_VERSION): Remove.
29221         * config/avr/avr.h (TARGET_VERSION): Remove.
29222         * config/bfin/bfin.h (TARGET_VERSION): Remove.
29223         * config/fr30/fr30.h (TARGET_VERSION): Remove.
29224         * config/frv/frv.h (TARGET_VERSION): Remove.
29225         * config/h8300/h8300.h (TARGET_VERSION): Remove.
29226         * config/i386/cygwin.h (TARGET_VERSION): Remove.
29227         * config/i386/darwin.h (TARGET_VERSION): Remove.
29228         * config/i386/darwin64.h (TARGET_VERSION): Remove.
29229         * config/i386/djgpp.h (TARGET_VERSION): Remove.
29230         * config/i386/freebsd.h (TARGET_VERSION): Remove.
29231         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
29232         * config/i386/gnu.h (TARGET_VERSION): Remove.
29233         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
29234         * config/i386/i386elf.h (TARGET_VERSION): Remove.
29235         * config/i386/linux.h (TARGET_VERSION): Remove.
29236         * config/i386/linux64.h (TARGET_VERSION): Remove.
29237         * config/i386/lynx.h (TARGET_VERSION): Remove.
29238         * config/i386/mingw32.h (TARGET_VERSION): Remove.
29239         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
29240         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
29241         * config/i386/netware.h (TARGET_VERSION): Remove.
29242         * config/i386/nto.h (TARGET_VERSION): Remove.
29243         * config/i386/openbsd.h (TARGET_VERSION): Remove.
29244         * config/i386/vxworks.h (TARGET_VERSION): Remove.
29245         * config/ia64/elf.h (TARGET_VERSION): Remove.
29246         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
29247         * config/ia64/hpux.h (TARGET_VERSION): Remove.
29248         * config/ia64/linux.h (TARGET_VERSION): Remove.
29249         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
29250         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
29251         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
29252         * config/lm32/lm32.h (TARGET_VERSION): Remove.
29253         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
29254         * config/m32c/m32c.h (TARGET_VERSION): Remove.
29255         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
29256         * config/m32r/m32r.h (TARGET_VERSION): Remove.
29257         * config/m68k/linux.h (TARGET_VERSION): Remove.
29258         * config/m68k/m68k.h (TARGET_VERSION): Remove.
29259         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
29260         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
29261         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
29262         * config/mep/mep.h (TARGET_VERSION): Remove.
29263         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
29264         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
29265         * config/mips/iris6.h (MACHINE_TYPE): Remove.
29266         * config/mips/linux.h (TARGET_VERSION): Remove.
29267         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
29268         * config/mips/vxworks.h (TARGET_VERSION): Remove.
29269         * config/mmix/mmix.h (TARGET_VERSION): Remove.
29270         * config/mn10300/linux.h (TARGET_VERSION): Remove.
29271         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
29272         * config/pa/pa.h (TARGET_VERSION): Remove.
29273         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
29274         * config/picochip/picochip.h (TARGET_VERSION): Remove.
29275         * config/rs6000/aix.h (TARGET_VERSION): Remove.
29276         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
29277         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
29278         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
29279         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
29280         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
29281         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
29282         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
29283         * config/rs6000/linux.h (TARGET_VERSION): Remove.
29284         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
29285         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
29286         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
29287         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
29288         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
29289         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
29290         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
29291         * config/s390/linux.h (TARGET_VERSION): Remove.
29292         * config/s390/s390.h (TARGET_VERSION): Remove.
29293         * config/s390/tpf.h (TARGET_VERSION): Remove.
29294         * config/score/score.h (TARGET_VERSION): Remove.
29295         * config/sh/linux.h (TARGET_VERSION): Remove.
29296         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
29297         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
29298         * config/sh/sh.h (TARGET_VERSION): Remove.
29299         * config/sh/sh64.h (TARGET_VERSION): Remove.
29300         * config/sh/superh.h (TARGET_VERSION): Remove.
29301         * config/sh/vxworks.h (TARGET_VERSION): Remove.
29302         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
29303         * config/sparc/linux.h (TARGET_VERSION): Remove.
29304         * config/sparc/linux64.h (TARGET_VERSION): Remove.
29305         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
29306         TARGET_NAME32, TARGET_NAME): Remove.
29307         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
29308         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
29309         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
29310         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
29311         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
29312         * config/spu/spu.h (TARGET_VERSION): Remove.
29313         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
29314         * config/v850/v850.h (TARGET_VERSION): Remove.
29315         * config/vax/linux.h (TARGET_VERSION): Remove.
29316         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
29317         * config/xtensa/elf.h (TARGET_VERSION): Remove.
29318         * config/xtensa/linux.h (TARGET_VERSION): Remove.
29319
29320 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
29321
29322         PR target/48142
29323         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
29324         frame-related from frame-unrelated adjustments to the stack pointer.
29325
29326 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
29327
29328         * common.opt (fdebug-types-section): Move earlier.
29329         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
29330
29331 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
29332
29333         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
29334         var.
29335
29336 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
29337
29338         * tree.h (CASE_CHAIN): Define.
29339         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
29340         (gimple_redirect_edge_and_branch): Likewise.
29341
29342 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29343
29344         PR middle-end/48367
29345         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
29346         calculation.
29347
29348 2011-03-30  Jeff Law  <law@redhat.com>
29349
29350         * PR bootstrap/48371
29351         * reload1.c (reload): Fix botch in last change.
29352
29353         * reload.h (struct reload): Fix typo introduced in last change.
29354
29355 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
29356
29357         * config/arm/arm.opt (mhard-float, msoft-float): Mark
29358         Undocumented.  Remove help text.
29359         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
29360         -mhard-float.
29361
29362 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
29363
29364         * doc/options.texi (NegativeAlias): Document.
29365         (Alias): Mention NegativeAlias.
29366         * opt-functions.awk: Handle NegativeAlias.
29367         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
29368         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
29369         * opts.h (CL_NEGATIVE_ALIAS): Define.
29370         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
29371         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
29372         OPT_mspe_.
29373         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
29374         Alias entries.
29375         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
29376         mno-spe and mno-isel instead of mspe=no and -misel=no.
29377
29378 2011-03-29  Mark Wielaard  <mjw@redhat.com>
29379
29380         * common.opt (fdebug-types-section): New flag.
29381         * doc/invoke.texi: Document new -fno-debug-types-section flag.
29382         * dwarf2out.c (use_debug_types): New define.
29383         (struct die_struct): Mark die_id with GTY desc use_debug_types.
29384         (print_die): Guard output of type unit signatures using
29385         use_debug_types.
29386         (build_abbrev_table): Replace assert of dwarf_version >= 4
29387         with assert on use_debug_types.
29388         (size_of_die): Likewise.
29389         (unmark_dies): Likewise.
29390         (value_format): Decide AT_ref_external form on use_debug_types.
29391         (output_die): Replace dwarf_version version check guard with
29392         use_debug_types where appropriate.
29393         (modified_type_die): Likewise.
29394         (gen_reference_type_die): Likewise.
29395         (dwarf2out_start_source_file): Likewise.
29396         (dwarf2out_end_source_file): Likewise.
29397         (prune_unused_types_walk_attribs): Likewise.
29398         (dwarf2out_finish): Likewise.
29399
29400 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29401
29402         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
29403
29404 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
29405
29406         PR rtl-optimization/48332
29407         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
29408         mode of input operand N and modeN to its actual mode.
29409
29410 2011-03-30  Jeff Law  <law@redhat.com>
29411
29412         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
29413         define accessor macro.
29414         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
29415         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
29416         (reg_equiv_init): Likewise.
29417         (reg_equivs_size): New variable.
29418         (reg_equiv_init_size): Remove.
29419         (allocate_initial_values): Move prototype to here from....
29420         * integrate.h (allocate_initial_values): Remove prototype.
29421         * integrate.c: Include reload.h.
29422         (allocate_initial_values): Corresponding changes.
29423         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
29424         (fix_reg_equiv_init, no_equiv): Corresponding changes.
29425         (update_equiv_regs): Corresponding changes.
29426         (ira): Corresponding changes.
29427         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
29428         (push_secondary_reload): Corresponding changes.
29429         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
29430         (make_memloc, find_reloads_address): Corresponding changes.
29431         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
29432         (find_reloads_address_1): Corresponding changes.
29433         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
29434         (refers_to_regno_for_reload_p): Corresponding changes.
29435         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
29436         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
29437         * reload1.c: Include ggc.h.
29438         (grow_reg_equivs): New function.
29439         (replace_pseudos_in, reload): Corresponding changes.
29440         (calculate_needs_all_insns, alter_regs): Corresponding changes.
29441         (eliminate_regs_1, elimination_effects): Corresponding changes.
29442         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
29443         (delete_output_reload): Likewise.
29444         * caller-save.c (mark_referenced_regs): Corresponding changes.
29445         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
29446         * frv/predicates.md (frv_load_operand): Corresponding changes.
29447         * microblaze/microblaze.c (double_memory_operand): Corresponding
29448         changes.
29449         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
29450         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
29451         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
29452         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
29453         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
29454         changes.
29455         * pa/pa.c (emit_move_sequence): Corresponding changes.
29456         * vax/vax.c (nonindexed_address_p): Corresponding changes.
29457
29458 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
29459
29460         PR target/47551
29461         * config/arm/arm.c (coproc_secondary_reload_class): Handle
29462         structure modes.  Don't check neon_vector_mem_operand for
29463         vector or structure modes.
29464
29465 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
29466             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
29467
29468         PR target/43590
29469         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
29470         operand 1 and reshuffle the operands to match.
29471         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
29472
29473 2011-03-30  Christian Schüler  <cschueler@gmx.de>
29474
29475         PR driver/48208
29476         * config/c.opt (F): Added 'Driver' to -F option.
29477
29478         PR driver/48260
29479         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
29480           handler function.
29481         * config/darwin.opt: Added '-arch' option.
29482
29483 2011-03-30  Nick Clifton  <nickc@redhat.com>
29484
29485         * config/rx/rx.md: Add peepholes and patterns to combine
29486         extending loads and simple arithmetic instructions.
29487         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
29488         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
29489         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
29490         modes to use pre-decrement and post-increment addressing.
29491         (rx_is_restricted_memory_address): Add range checking of REG+INT
29492         addresses.
29493         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
29494         (rx_memory_move_cost): Adjust cost of stores.
29495         (rx_adjust_insn_length): New function.
29496
29497 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
29498
29499         PR c/48305
29500         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
29501         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
29502         matching arg00/arg01 types.
29503
29504 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
29505
29506         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
29507         last_location to UNKNOWN_LOCATION.
29508
29509 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
29510
29511         PR target/48349
29512         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
29513         FLOAT_SSE_REGS.
29514
29515 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
29516             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29517
29518         PR bootstrap/48337
29519         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
29520         Init(PROCESSOR_V7).
29521         (sparc_cpu): Likewise.
29522         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
29523         PROCESSOR_V7.
29524
29525 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
29526
29527         PR target/48336
29528         PR middle-end/48342
29529         PR rtl-optimization/48345
29530         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
29531         hard regs for given mode from profitable regs when doing secondary
29532         allocation.
29533
29534 2011-03-29  Jeff Law  <law@redhat.com>
29535
29536         PR bootstrap/48327
29537         * tree-ssa-threadupdate.c (struct redirection_data): Remove
29538         do_not_duplicate field.
29539         (lookup_redirection_data): Corresponding changes.
29540         (create_duplicates): Always create a template block.
29541         (redirect_edges): Remove code which reused the original block
29542         when it was going to become unreachable code.
29543         (thread_block): Don't set do_not_duplicate field.
29544
29545 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
29546
29547         * lto-opts.c (register_user_option_p, lto_register_user_option):
29548         Make type argument unsigned.
29549         * lto-streamer.h (lto_register_user_option): Make type argument
29550         unsigned.
29551         * opth-gen.awk: Make CL_* macros unsigned.
29552         * opts-common.c (find_opt): Make lang_mask argument unsigned.
29553         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
29554         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
29555         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
29556         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
29557         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
29558         (find_opt): Make lang_mask argument unsigned.
29559
29560 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
29561
29562         PR rtl-optimization/48331
29563         PR rtl-optimization/48334
29564         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
29565         for any used algorithm.
29566
29567 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
29568
29569         * ira-conflicts.c (build_object_conflicts): Add unused attribute
29570         to parent_max.
29571
29572 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
29573
29574         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
29575         (alpha_option_override): Don't set alpha_sr_alias_set.
29576         (emit_frame_store_1): Use gen_frame_mem rather than calling
29577         set_mem_alias_set.
29578         (alpha_expand_epilogue): Ditto.
29579
29580 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
29581
29582         PR tree-optimization/48290
29583         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
29584         vectorization, check that relevant phis in the basic block after
29585         the inner loop are really inner loop's exit phis.
29586
29587 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
29588
29589         PR debug/48190
29590         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
29591         (cached_dw_loc_list_def): New structure.
29592         (cached_dw_loc_list): New typedef.
29593         (cached_dw_loc_list_table): New variable.
29594         (cached_dw_loc_list_table_hash): New function.
29595         (cached_dw_loc_list_table_eq): Likewise.
29596         (add_location_or_const_value_attribute): Take a bool cache_p.
29597         Cache the list when the parameter is true.
29598         (gen_formal_parameter_die): Update caller.
29599         (gen_variable_die): Likewise.
29600         (dwarf2out_finish): Likewise.
29601         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
29602         while generating debug info for the decl.
29603         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
29604         (dwarf2out_init): Initialize cached_dw_loc_list_table.
29605         (resolve_addr): Cache the result of resolving a chain of
29606         location lists.
29607
29608 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
29609
29610         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
29611         conflict object hard regset nodes have intersecting hard reg sets.
29612
29613         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
29614         after regstat_init_n_sets_and_refs.
29615
29616         * ira.c: Add more comments at the top.
29617         (setup_stack_reg_pressure_class, setup_pressure_classes):
29618         Add comments how we compute the register pressure classes.
29619         (setup_allocno_and_important_classes): Add more comments.
29620         (setup_class_translate_array, reorder_important_classes)
29621         (setup_reg_class_relations): Add comments.
29622
29623         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
29624         start of the file.
29625
29626         * ira-color.c: Add 2011 to the Copyright line.
29627         (assign_hard_reg):  Add more comments.
29628         (improve_allocation): Ditto.
29629
29630         * ira-costs.c: Add 2011 to the Copyright line.
29631         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
29632         comments.
29633         (setup_regno_cost_classes_by_mode): Ditto.
29634
29635         Initial patches from ira-improv branch:
29636
29637         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
29638
29639         * ira-build.c (ira_create_object): Remove initialization of
29640         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
29641         (ira_create_allocno): Remove initialization of
29642         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
29643         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
29644         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
29645         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
29646         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
29647         Initialize ALLOCNO_ADD_DATA.
29648         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
29649         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
29650         ALLOCNO_REG.
29651         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
29652         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
29653
29654         * ira.c (ira_reallocate): Remove.
29655         (setup_pressure_classes): Call
29656         ira_init_register_move_cost_if_necessary.  Use
29657         ira_register_move_cost instead of ira_get_register_move_cost.
29658         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
29659         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
29660
29661         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
29662         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
29663         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
29664         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
29665         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
29666         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
29667         Fix formatting.
29668         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
29669         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
29670         (struct allocno_color_data): New.
29671         (allocno_color_data_t): New typedef.
29672         (allocno_color_data): New definition.
29673         (ALLOCNO_COLOR_DATA): New macro.
29674         (struct object_color_data): New.
29675         (object_color_data_t): New typedef.
29676         (object_color_data): New definition.
29677         (OBJECT_COLOR_DATA): New macro.
29678         (update_copy_costs, calculate_allocno_spill_cost): Call
29679         ira_init_register_move_cost_if_necessary.  Use
29680         ira_register_move_cost instead of ira_get_register_move_cost.
29681         (move_spill_restore, update_curr_costs): Ditto.
29682         (allocno_spill_priority): Make it inline.
29683         (color_pass): Allocate and free allocno_color_dat and object_color_data.
29684         (struct coalesce_data, coalesce_data_t): New.
29685         (allocno_coalesce_data): New definition.
29686         (ALLOCNO_COALESCE_DATA): New macro.
29687         (merge_allocnos, coalesced_allocno_conflict_p): Use
29688         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
29689         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
29690         (coalesce_allocnos): Ditto.
29691         (setup_coalesced_allocno_costs_and_nums): Ditto.
29692         (collect_spilled_coalesced_allocnos): Ditto.
29693         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
29694         (setup_slot_coalesced_allocno_live_ranges): Ditto.
29695         (coalesce_spill_slots): Ditto.
29696         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
29697         free allocno_coalesce_data.
29698
29699         * ira-conflicts.c: Fix formatting.
29700         (process_regs_for_copy): Call
29701         ira_init_register_move_cost_if_necessary.  Use
29702         ira_register_move_cost instead of ira_get_register_move_cost.
29703         (build_object_conflicts): Optimize.
29704
29705         * ira-costs.c (record_reg_classes): Optimize.  Call
29706         ira_init_register_move_cost_if_necessary.  Use
29707         ira_register_move_cost, ira_may_move_in_cost, and
29708         ira_may_move_out_cost instead of ira_get_register_move_cost and
29709         ira_get_may_move_cost.
29710         (record_address_regs): Ditto.
29711         (scan_one_insn): Optimize.
29712         (find_costs_and_classes): Optimize.
29713         (process_bb_node_for_hard_reg_moves): Call
29714         ira_init_register_move_cost_if_necessary.  Use
29715         ira_register_move_cost instead of ira_get_register_move_cost.
29716
29717         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
29718         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
29719         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
29720         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
29721         definitions.
29722         (ira_initiate_emit_data, ira_finish_emit_data)
29723         (create_new_allocno): New functions.
29724         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
29725         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
29726         Use ira_register_move_cost instead of ira_get_register_move_cost.
29727
29728         * ira-int.h: Fix some comments.
29729         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
29730         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
29731         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
29732         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
29733         add_data.
29734         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
29735         bitfield after mode.  Make hard_regno a short int.  Make
29736         hard_regno short.  Remove first_coalesced_allocno and
29737         next_coalesced_allocno.  Move mem_optimized_dest_p,
29738         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
29739         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
29740         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
29741         temp, colorable_p.  Add new member add_data.
29742         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
29743         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
29744         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
29745         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
29746         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
29747         (ALLOCNO_ADD_DATA): New macro.
29748         (ira_emit_data_t): New typedef.
29749         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
29750         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
29751         from struct ira_allocno.
29752         (ALLOCNO_EMIT_DATA): New macro.
29753         (ira_allocno_emit_data, allocno_emit_reg): New.
29754         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
29755         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
29756         (OBJECT_ADD_DATA): New macro.
29757         (ira_reallocate): Remove.
29758         (ira_initiate_emit_data, ira_finish_emit_data): New.
29759         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
29760         (ira_init_register_move_cost_if_necessary): New.
29761         (ira_object_conflict_iter_next): Merge into
29762         ira_object_conflict_iter_cond.
29763         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
29764
29765         * ira-live.c (process_single_reg_class_operands): Call
29766         ira_init_register_move_cost_if_necessary.  Use
29767         ira_register_move_cost instead of ira_get_register_move_cost.
29768
29769         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
29770
29771         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
29772
29773         * ira-costs.c: Fix formatting.
29774         (cost_classes, cost_classes_num): Remove.
29775         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
29776         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
29777         (cost_classes_del, cost_classes_htab): New.
29778         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
29779         (initiate_regno_cost_classes, setup_cost_classes): New.
29780         (setup_regno_cost_classes_by_aclass): New.
29781         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
29782         (record_reg_classes): Use regno_cost_classes instead of
29783         cost_classes.  Move checking opposite operand up.
29784         (record_address_regs): Use regno_cost_classes
29785         instead of cost_classes.
29786         (scan_one_insn): Ditto.  Use always general register.
29787         (print_allocno_costs): Use regno_cost_classes instead of
29788         cost_classes.
29789         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
29790         (find_costs_and_classes): Set up cost classes for each registers.
29791         Use also their mode for this.  Use regno_cost_classes instead of
29792         cost_classes.
29793         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
29794         cost_classes.
29795         (free_ira_costs, ira_init_costs): Don't use cost_classes.
29796         (ira_costs, ira_set_pseudo_classes): Call
29797         initiate_regno_cost_classes and finish_regno_cost_classes.
29798
29799         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
29800
29801         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
29802
29803         * target.def (ira_cover_classes): Remove.
29804
29805         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
29806
29807         * doc/tm.texi.in: Ditto.
29808
29809         * ira-conflicts.c: Remove mentioning cover classes from the file.
29810         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
29811         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
29812
29813         * targhooks.c (default_ira_cover_classes): Remove.
29814
29815         * targhooks.h (default_ira_cover_classes): Ditto.
29816
29817         * haifa-sched.c: Remove mentioning cover classes from the file.
29818         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
29819         ira_pressure_classes and ira_pressure_classes_num instead of
29820         ira_reg_class_cover_size and ira_reg_class_cover.  Use
29821         sched_regno_pressure_class instead of sched_regno_cover_class.
29822         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
29823         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
29824
29825         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
29826         classes from the file.
29827         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
29828         (struct object_hard_regs, struct object_hard_regs_node): New.
29829         (struct ira_object): New members profitable_hard_regs,
29830         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
29831         (struct ira_allocno): Rename cover_class to aclass.  Rename
29832         cover_class_cost and updated_cover_class_cost to class_cost and
29833         updated_class_cost.  Remove splay_removed_p and
29834         left_conflict_size.  Add new members colorable_p.
29835         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
29836         (ALLOCNO_COLORABLE_P): New macro.
29837         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
29838         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
29839         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
29840         (OBJECT_...): Rename parameter C to O.
29841         (OBJECT_PROFITABLE_HARD_REGS): New macro.
29842         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
29843         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
29844         (struct target_ira_int): New members x_ira_max_memory_move_cost,
29845         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
29846         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
29847         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
29848         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
29849         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
29850         x_ira_reg_class_subunion.
29851         (ira_max_memory_move_cost, ira_max_register_move_cost)
29852         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
29853         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
29854         (ira_important_class_nums, ira_reg_class_superunion): New macros.
29855         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
29856         (ira_reg_class_union): Rename to ira_reg_class_subunion.
29857         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
29858         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
29859         (ira_tune_allocno_costs_and_cover_classes): Rename to
29860         ira_tune_allocno_costs.
29861         (ira_debug_hard_regs_forest): New.
29862         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
29863         (ira_object_conflict_iter_next): Fix comments.
29864         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
29865         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
29866         cover_class to aclass.
29867         (ira_allocate_and_accumulate_costs): Ditto.
29868         (ira_allocate_and_set_or_copy_costs): Ditto.
29869
29870         * opts.c (decode_options): Remove ira_cover_class check.
29871
29872         * ira-color.c: Remove mentioning cover classes from the file.  Use
29873         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
29874         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
29875         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
29876         (splay-tree.h): Remove include.
29877         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
29878         before copy_freq_compare_func.
29879         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
29880         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
29881         New definitions.
29882         (hard_regs_roots, hard_regs_node_vec): Ditto.
29883         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
29884         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
29885         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
29886         (create_new_object_hard_regs_node): Ditto.
29887         (add_new_object_hard_regs_node_to_forest): Ditto.
29888         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
29889         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
29890         Ditto.
29891         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
29892         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
29893         (remove_unused_object_hard_regs_nodes): Ditto.
29894         (enumerate_object_hard_regs_nodes): Ditto.
29895         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
29896         (object_hard_regs_subnode_t): Ditto.
29897         (struct object_hard_regs_subnode): Ditto.
29898         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
29899         (setup_object_hard_regs_subnode_index): Ditto.
29900         (get_object_hard_regs_subnodes_num): Ditto.
29901         (form_object_hard_regs_nodes_forest): Ditto.
29902         (finish_object_hard_regs_nodes_tree): Ditto.
29903         (finish_object_hard_regs_nodes_forest): Ditto.
29904         (allocnos_have_intersected_live_ranges_p): Rename to
29905         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
29906         (pseudos_have_intersected_live_ranges_p): Rename to
29907         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
29908         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
29909         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
29910         (update_copy_costs): Remove assert.  Skip cost update if the hard
29911         reg does not belong the class.
29912         (assign_hard_reg): Process only profitable hard regs.
29913         (uncolorable_allocnos_num): Make it scalar.
29914         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
29915         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
29916         and ira_reg_class_max_nregs.
29917         (bucket_allocno_compare_func): Check frequency first.
29918         (sort_bucket): Add compare function as a parameter.
29919         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
29920         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
29921         (push_allocno_to_stack): Rewrite for checking new allocno
29922         colorability.
29923         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
29924         (push_only_colorable): Pass new parameter to sort_bucket.
29925         (push_allocno_to_spill): Remove.
29926         (allocno_spill_priority_compare): Make it inline and rewrite.
29927         (splay_tree_allocate, splay_tree_free): Remove.
29928         (allocno_spill_sort_compare): New function.
29929         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
29930         build and use splay tree.  Choose first allocno in uncolorable
29931         allocno bucket to spill.  Remove setting spill cost.
29932         (all_conflicting_hard_regs): Remove.
29933         (setup_allocno_available_regs_num): Check only profitable hard
29934         regs.  Print info about hard regs nodes.
29935         (setup_allocno_left_conflicts_size): Remove.
29936         (put_allocno_into_bucket): Don't call
29937         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
29938         (improve_allocation): New.
29939         (color_allocnos): Call setup_profitable_hard_regs,
29940         form_object_hard_regs_nodes_forest, improve_allocation,
29941         finish_object_hard_regs_nodes_forest.  Setup spill cost.
29942         (print_loop_title): Use pressure classes.
29943         (color_allocnso): Ditto.
29944         (do_coloring): Remove allocation and freeing splay_tree_node_pool
29945         and allocnos_for_spilling.
29946         (ira_sort_regnos_for_alter_reg): Don't setup members
29947         {first,next}_coalesced_allocno.
29948         (color): Remove allocating and freeing removed_splay_allocno_vec.
29949         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
29950         prohibited_class_mode_regs.
29951
29952         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
29953         formatting.
29954         (update_allocno_pressure_excess_length): Use pressure classes.
29955         (inc_register_pressure, dec_register_pressure): Check for pressure
29956         class.
29957         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
29958         pressure class.  Use ira_reg_class_nregs instead of
29959         ira_reg_class_max_nregs.
29960         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
29961         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
29962         (single_reg_class): Use ira_reg_class_nregs instead of
29963         ira_reg_class_max_nregs.
29964         (process_bb_node_lives): Use pressure classes.
29965
29966         * ira-emit.c: Remove mentioning cover classes from the file.  Use
29967         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
29968         (change_loop): Use pressure classes.
29969         (modify_move_list): Call ira_set_allocno_class instead of
29970         ira_set_allocno_cover_class.
29971
29972         * ira-build.c: Remove mentioning cover classes from the file.  Use
29973         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
29974         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
29975         ALLOCNO_UPDATED_CLASS_COST instead of
29976         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
29977         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
29978         (ira_create_allocno): Remove initialization of
29979         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
29980         ALLOCNO_COLORABLE_P.
29981         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
29982         Update conflict regs for the objects.
29983         (create_cap_allocno): Remove assert.  Don't propagate
29984         ALLOCNO_AVAILABLE_REGS_NUM.
29985         (ira_free_allocno_costs): New function.
29986         (finish_allocno): Change a part of code into call of
29987         ira_free_allocno_costs.
29988         (low_pressure_loop_node_p): Use pressure classes.
29989         (object_range_compare_func): Don't compare classes.
29990         (setup_min_max_conflict_allocno_ids): Ditto.
29991
29992         * loop-invariant.c: Remove mentioning cover classes from the file.
29993         Use ira_pressure_classes and ira_pressure_classes_num instead of
29994         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
29995         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
29996         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
29997         Use reg_allocno_class instead of reg_cover_class.
29998         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
29999         STACK_REG_COVER_CLASS.
30000         (get_regno_cover_class): Rename to get_regno_pressure_class.
30001         (move_loop_invariants): Initialize and finalize regstat.
30002
30003         * ira.c: Remove mentioning cover classes from the file.  Add
30004         comments about coloring without cover classes.  Use ALLOCNO_CLASS
30005         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
30006         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
30007         setup_class_subset_and_memory_move_costs.
30008         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
30009         (setup_cover_and_important_classes): Rename to
30010         setup_allocno_and_important_classes.
30011         (setup_class_translate_array): New.
30012         (setup_class_translate): Call it for allocno and pressure classes.
30013         (cover_class_order): Rename to allocno_class_order.
30014         (comp_reg_classes_func): Use ira_allocno_class_translate instead
30015         of ira_class_translate.
30016         (reorder_important_classes): Set up ira_important_class_nums.
30017         (setup_reg_class_relations): Set up ira_reg_class_superunion.
30018         (print_class_cover): Rename to print_classes.  Add parameter.
30019         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
30020         Print pressure classes too.
30021         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
30022         setup_reg_subclasses.
30023         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
30024         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
30025         (setup_prohibited_class_mode_regs): Use
30026         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
30027         (clarify_prohibited_class_mode_regs): New function.
30028         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
30029         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
30030         (ira_init_once): Initialize them.
30031         (free_register_move_costs): Process them.
30032         (ira_init): Move calls of find_reg_classes and
30033         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
30034         Call clarify_prohibited_class_mode_regs.
30035         (ira_no_alloc_reg): Remove.
30036         (too_high_register_pressure_p): Use pressure classes.
30037
30038         * sched-deps.c: Remove mentioning cover classes from the file.
30039         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
30040         ira_pressure_classes and ira_pressure_classes_num instead of
30041         ira_reg_class_cover_size and ira_reg_class_cover.
30042         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
30043         sched_regno_pressure_class instead of sched_regno_cover_class.
30044         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
30045         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
30046
30047         * ira.h: Add 2010 to Copyright.
30048         (ira_no_alloc_reg): Remove external.
30049         (struct target_ira): Rename x_ira_hard_regno_cover_class,
30050         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
30051         x_ira_class_translate to x_ira_hard_regno_allocno_class,
30052         x_ira_allocno_classes_num, x_ira_allocno_classes, and
30053         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
30054         x_ira_pressure_classes, x_ira_pressure_class_translate, and
30055         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
30056         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
30057         x_ira_no_alloc_regs.
30058         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
30059         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
30060         ira_allocno_classes_num and ira_allocno_classes.
30061         (ira_class_translate): Rename to ira_allocno_class_translate.
30062         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
30063         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
30064         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
30065         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
30066         (ira_no_alloc_regs): New.
30067
30068         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
30069         classes from the file.  Use ALLOCNO_CLASS instead of
30070         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
30071         ALLOCNO_COVER_CLASS_COST.
30072         (regno_cover_class): Rename to regno_aclass.
30073         (record_reg_classes): Use ira_reg_class_subunion instead of
30074         ira_reg_class_union.
30075         (record_address_regs): Check overflow.
30076         (scan_one_insn): Ditto.
30077         (print_allocno_costs): Print total mem cost fore regional allocation.
30078         (print_pseudo_costs): Use REG_N_REFS.
30079         (find_costs_and_classes): Use classes intersected with them on the
30080         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
30081         ira_reg_class_union.  Use ira_allocno_class_translate and
30082         regno_aclass instead of ira_class_translate and regno_cover_class.
30083         Modify code for finding regno_aclass.  Setup preferred classes for
30084         the next pass.
30085         (setup_allocno_cover_class_and_costs): Rename to
30086         setup_allocno_class_and_costs.  Use regno_aclass instead of
30087         regno_cover_class.  Use ira_set_allocno_class instead of
30088         ira_set_allocno_cover_class.
30089         (init_costs, finish_costs): Use regno_aclass instead of
30090         regno_cover_class.
30091         (ira_costs): Use setup_allocno_class_and_costs instead of
30092         setup_allocno_cover_class_and_costs.
30093         (ira_tune_allocno_costs_and_cover_classes): Rename to
30094         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
30095         by processing objects.  Use ira_reg_class_max_nregs instead of
30096         ira_reg_class_nregs.
30097
30098         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
30099
30100         * sched-int.h: Remove mentioning cover classes from the file.
30101         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
30102
30103         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
30104         classes from the file.
30105         (struct reg_pref): Rename coverclass into allocnoclass.
30106         (reg_cover_class): Rename to reg_allocno_class.
30107
30108         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
30109
30110         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
30111
30112         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
30113
30114         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
30115
30116         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
30117
30118         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
30119
30120         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
30121
30122         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
30123
30124         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
30125
30126         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
30127
30128         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
30129         (i386_ira_cover_classes): Ditto.
30130
30131         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
30132
30133         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
30134
30135         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
30136
30137         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
30138
30139         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
30140
30141         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
30142
30143         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
30144         (mips_ira_cover_classes): Ditto.
30145
30146         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
30147
30148         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
30149
30150         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
30151
30152         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
30153
30154         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
30155
30156         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
30157         (IRA_COVER_CLASSES_VSX): Ditto.
30158
30159         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
30160         (rs6000_ira_cover_classes): Ditto.
30161
30162         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
30163
30164         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
30165
30166         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
30167
30168         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
30169
30170         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
30171
30172         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
30173
30174         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
30175
30176         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
30177
30178         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
30179
30180         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
30181
30182 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
30183
30184         PR debug/48253
30185         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
30186         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
30187         dw_fde_unlikely_section_end_label, cold_in_std_section,
30188         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
30189         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
30190         fields.
30191         (output_fde): Use dw_fde_second_{begin,end} if second is
30192         true, otherwise dw_fde_{begin,end}.
30193         (output_call_frame_info): Test dw_fde_second_begin != NULL
30194         instead of dw_fde_switched_sections.
30195         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
30196         fields, initialize new fields.  Initialize in_std_section
30197         unconditionally from the first partition.
30198         (dwarf2out_end_epilogue): Don't override dw_fde_end when
30199         dw_fde_second_begin is non-NULL.
30200         (dwarf2out_switch_text_section): Stop initializing removed
30201         dw_fde_struct fields, initialize new fields, initialize
30202         also dw_fde_end here.  Set dw_fde_switch_cfi even when
30203         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
30204         (struct var_loc_list_def): Add last_before_switch field.
30205         (arange_table, arange_table_allocated, arange_table_in_use,
30206         ARANGE_TABLE_INCREMENT, add_arange): Removed.
30207         (size_of_aranges): Count !in_std_section and !second_in_std_section
30208         hunks in fdes, instead of looking at arange_table_in_use.
30209         (output_aranges): Add aranges_length argument, don't call
30210         size_of_aranges here.  Instead of using aranges_table*
30211         emit ranges for fdes when !in_std_section resp.
30212         !second_in_std_section.
30213         (dw_loc_list): Break ranges crossing section switch.
30214         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
30215         use dw_fde_second_end instead of dw_fde_end as end of last range.
30216         (gen_subprogram_die): Don't call add_arange.  Use
30217         dw_fde_{begin,end} for first partition and if switched
30218         section dw_fde_second_{begin,end} for the second.
30219         (var_location_switch_text_section_1,
30220         var_location_switch_text_section): New functions.
30221         (dwarf2out_begin_function): Initialize cold_text_section even
30222         when function_section () isn't text_section.
30223         (prune_unused_types): Don't walk arange_table.
30224         (dwarf2out_finish): Don't needlessly test
30225         flag_reorder_blocks_and_partition when testing cold_text_section_used.
30226         If info_section_emitted, call size_of_aranges and if it indicates
30227         non-empty .debug_aranges, call output_aranges with the computed
30228         size.  Stop using removed dw_fde_struct fields, use
30229         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
30230         for second.
30231
30232         PR debug/48203
30233         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
30234         create ENTRY_VALUE if incoming or address of incoming's MEM
30235         is a hard REG.
30236         * dwarf2out.c (mem_loc_descriptor): Don't emit
30237         DW_OP_GNU_entry_value of DW_OP_fbreg.
30238         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
30239         on ENTRY_VALUE is able to find the canonical parameter VALUE.
30240         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
30241         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
30242         ENTRY_VALUE_EXPs.
30243         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
30244         is a REG_P or MEM_P with REG_P address, compute hash directly
30245         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
30246         (preserve_only_constants): Don't clear VALUES forwaring
30247         ENTRY_VALUE to some other VALUE.
30248
30249 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
30250
30251         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
30252         instead of GEN_INT.
30253
30254 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30255
30256         * cfgexpand.c (expand_gimple_cond): Always set the source location and
30257         block before expanding the statement.
30258         (expand_gimple_stmt_1): Likewise.  Set them here...
30259         (expand_gimple_stmt): ...and not here.  Tidy.
30260         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
30261         unknown.
30262
30263 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
30264
30265         * Makefile.in: New rule for cprop.o.
30266         * gcse.c: Move constant/copy propagation to cprop.c.
30267         (compute_local_properties): Only handle expression tables.
30268         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
30269         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
30270         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
30271         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
30272         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
30273         compute_cprop_data, find_used_regs, try_replace_reg,
30274         find_avail_set, cprop_jump, constprop_register, cprop_insn,
30275         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
30276         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
30277         find_bypass_set, reg_killed_on_edge, bypass_block,
30278         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
30279         execute_rtl_cprop, pass_rtl_cprop): Move to...
30280         * cprop.c: ...here.  New file, constant/copy propagation for RTL
30281         moved from gcse.c to here with minor cleanups in duplicated code.
30282
30283 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
30284
30285         * config/i386/i386.c (flag_opts): Fix a typo in
30286         -mavx256-split-unaligned-store.
30287
30288 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
30289
30290         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
30291         LIBCALL_VALUE): Remove macros.
30292         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
30293         TARGET_FUNCTION_VALUE_REGNO_P): Define.
30294         (h8300_function_value, h8300_libcall_value,
30295         h8300_function_value_regno_p): New functions.
30296
30297 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
30298
30299         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
30300
30301 2011-03-28  Jeff Law  <law@redhat.com>
30302
30303         * tree-ssa-threadupdate.c (redirect_edges): Call
30304         create_edge_and_update_destination_phis as needed.
30305         (create_edge_and_update_destination_phis): Accept new BB argument.
30306         All callers updated.
30307         (thread_block): Do not update the profile when threading around
30308         intermediate blocks.
30309         (thread_single_edge): Likewise.
30310         (determine_bb_domination_status): If BB is not a successor of the
30311         loop header, return NONDOMINATING.
30312         (register_jump_thread): Note when we register a jump thread around
30313         an intermediate block.
30314         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
30315         (thread_across_edge): Use it.
30316
30317 2011-03-28  Tristan Gingold  <gingold@adacore.com>
30318
30319         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
30320         when for_return is 2.
30321
30322 2011-03-28  Jeff Law  <law@redhat.com>
30323
30324         * var-tracking.c (canonicalize_values_mark): Delete unused
30325         lhs assignment.
30326         (canonicalize_values_star, set_variable_part): Likewise.
30327         (clobber_variable_part, delete_variable_part): Likewise.
30328
30329 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
30330
30331         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
30332
30333 2011-03-28  Martin Jambor  <mjambor@suse.cz>
30334
30335         * tree-inline.c (expand_call_inline): Do not check that destination
30336         node is analyzed.
30337         (optimize_inline_calls): Assert that destination node is analyzed.
30338         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
30339         not call tree_lowering_passes.
30340         * cgraph.h (cgraph_analyze_function): Declare.
30341         * cgraphunit.c (cgraph_analyze_function): Make public.
30342
30343 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
30344
30345         * config/sparc/sparc-opts.h: New.
30346         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
30347         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
30348         (sparc_option_override): Store processor_type enumeration rather
30349         than string in cpu_default.  Remove name and enumeration from
30350         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
30351         without using sparc_select.  Use target_flags_explicit instead of
30352         fpu_option_set.
30353         * config/sparc/sparc.h (enum processor_type): Move to
30354         sparc-opts.h.
30355         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
30356         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
30357         HeaderInclude entry.
30358         (mcpu=, mtune=): Use Var and Enum.
30359         (sparc_processor_type): New Enum and EnumValue entries.
30360
30361 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30362             Iain Sandoe  <iains@gcc.gnu.org>
30363
30364         PR target/48245
30365         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
30366
30367 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30368
30369         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
30370         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
30371         Insert new statements at it in lieu of STMT.
30372         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
30373         * tree-vect-stmts.c (vectorizable_store): Likewise.
30374         (vectorizable_load): Likewise.
30375
30376 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
30377
30378         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
30379         (divtf3): Ditto.
30380         (multf3): Ditto.
30381         (subtf3): Ditto.
30382
30383 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30384
30385         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
30386         unaligned 256bit load/store.
30387         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
30388         (*avx_movdqu<avxmodesuffix>): Likewise.
30389
30390 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30391
30392         PR target/48288
30393         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
30394         * config/pa/pa.md (iordi3): Use new predicate in expander.
30395         (iorsi3): Likewise.
30396
30397 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
30398
30399         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
30400         FUNCTION_VALUE_REGNO_P): Remove macros.
30401         * config/mips/mips-protos.h (mips_function_value): Remove.
30402         * config/mips/mips.c (mips_function_value): Rename to...
30403         (mips_function_value_1): ... this. Make static.  Handle receiving
30404         the function type in 'fn_decl_or_type' argument.
30405         (mips_function_value, mips_libcall_value,
30406         mips_function_value_regno_p): New function.
30407         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
30408         TARGET_FUNCTION_VALUE_REGNO_P): Define.
30409
30410 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30411
30412         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
30413         and -mavx256-split-unaligned-store.
30414         (ix86_option_override_internal): Split 32-byte AVX unaligned
30415         load/store by default.
30416         (ix86_avx256_split_vector_move_misalign): New.
30417         (ix86_expand_vector_move_misalign): Use it.
30418
30419         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
30420         -mavx256-split-unaligned-store.
30421
30422         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
30423         256bit load/store.  Generate unaligned store on misaligned memory
30424         operand.
30425         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
30426         256bit load/store.
30427         (*avx_movdqu<avxmodesuffix>): Likewise.
30428
30429         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
30430         -mavx256-split-unaligned-store.
30431
30432 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
30433
30434         PR target/38598
30435         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
30436         Update commentary.
30437
30438 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
30439
30440         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
30441         opno arguments with an expand_operand.  Use create_input_operand.
30442         (mips_prepare_builtin_target): Delete.
30443         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
30444         functions.
30445         (mips_expand_builtin_direct): Use create_output_operand and
30446         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
30447         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
30448         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
30449
30450 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
30451
30452         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
30453         function.
30454         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
30455
30456 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
30457
30458         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
30459         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
30460         basic blocks and call commit_edge_insertions directly.
30461         (fixup_abnormal_edges): Move from here to...
30462         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
30463         on the edges and return whether some have actually been inserted.
30464         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
30465         compensation code.
30466
30467 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
30468
30469         PR rtl-optimization/48144
30470         * sel-sched-ir.c (merge_history_vect): Factor out from ...
30471         (merge_expr_data): ... here.
30472         (av_set_intersect): Rename to av_set_code_motion_filter.
30473         Update all callers.  Call merge_history_vect when an expression
30474         is found in both sets.
30475         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
30476
30477 2011-03-26  Alan Modra  <amodra@gmail.com>
30478
30479         * config/rs6000/predicates.md (word_offset_memref_op): Handle
30480         cmodel medium addresses.
30481         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
30482         64-bit gpr loads and stores.
30483         (rs6000_secondary_reload_ppc64): New function.
30484         * config/rs6000/rs6000-protos.h: Declare it.
30485         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
30486
30487 2011-03-26  Alan Modra  <amodra@gmail.com>
30488
30489         PR target/47487
30490         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
30491         GNU Go in traceback table.
30492
30493 2011-03-25  Richard Henderson  <rth@redhat.com>
30494
30495         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
30496         if there are exactly 6 operands.
30497         (set_storage_via_setmem): Similarly.
30498
30499 2011-03-25  Kai Tietz  <ktietz@redhat.com>
30500
30501         * collect2.c (write_c_file_stat): Handle backslash
30502         as right-hand directory separator.
30503         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
30504         checking just for slash.
30505         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
30506         instead of checking for trailing slash.
30507         * gcc.c (record_temp_file): Use filename_cmp instead
30508         of strcmp.
30509         (do_spec_1): Likewise.
30510         (replace_outfile_spec_function): Likewise.
30511         (is_directory): Use filename_ncmp instead of strncmp.
30512         (print_multilib_info): Likewise.
30513         * gcov.c (find_source): Use filename_cmp instead
30514         instead of strcmp.
30515         (make_gcov_file_name): Fix order of slash/backslash
30516         checks.
30517         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
30518         (add_standard_paths): Likewise.
30519         * mips-tfile.c (saber_stop): Handle backslash.
30520         * prefix.c (update_path): Use filename_ncmp instead of
30521         strncmp.
30522         * profile.c (output_location): Use filename_cmp instead
30523         of strcmp.
30524         * read-md.c (handle_toplevel_file): Handle backslash.
30525         * tlink.c (frob_extension):  Likewise.
30526         * tree-cfg.c (same_line_p): Use filename_cmp instead of
30527         strcmp.
30528         * tree-dump.c (dequeue_and_dump): Handle backslash.
30529         * tree.c (get_file_function_name): Likewise.
30530         * gengtype.c (read_input_list): Likewise.
30531         (get_file_realbasename): Likewise.
30532         (get_output_file_with_visibility): Use filename_cmp
30533         instead of strcmp.
30534
30535 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
30536
30537         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
30538         case to VFPv1.
30539
30540 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
30541
30542         * fold-const.c (expr_location_or): New function.
30543         (fold_truth_not_expr): Call it.
30544
30545 2011-03-25  Jeff Law  <law@redhat.com>
30546
30547         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
30548         va_end.
30549         * c-family/c-common.c (def_fn_type): Likewise.
30550         * emit-rtl.c (gen_rtvec): Likewise.
30551         * lto/lto-lang.c (def_fn_type): Likewise.
30552
30553 2011-03-25  Richard Guenther  <rguenther@suse.de>
30554
30555         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
30556         also generate copies.
30557         (fini_copy_prop): Handle constant values properly.
30558
30559 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
30560
30561         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
30562         mode size instead of bitsize with DWARF2_ADDR_SIZE.
30563         (hash_loc_operands, compare_loc_operands): Handle
30564         DW_OP_GNU_entry_value.
30565
30566 2011-03-25  Kai Tietz  <ktietz@redhat.com>
30567
30568         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
30569         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
30570         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
30571         comment and use macro TARGET_64BIT_MS_ABI instead.
30572         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
30573         and change default behavior for 32-bit MS_ABI.
30574         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
30575         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
30576         32-bit, too.
30577         (ix86_cfun_abi): Likewise.
30578         (ix86_maybe_switch_abi): Adjust comment.
30579         (init_cumulative_args): Check for bit-ness in MS_ABI case.
30580         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
30581         instead of checking for SYSV_ABI.
30582         (ix86_nsaved_sseregs): Likewise.
30583         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
30584         to 16 bytes.
30585         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
30586         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
30587         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
30588         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
30589         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
30590
30591 2011-03-25  Richard Guenther  <rguenther@suse.de>
30592
30593         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
30594         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
30595         (verify_gimple): Remove.
30596         * tree-cfg.c (verify_gimple_call): Merge verification
30597         from verify_stmts.
30598         (verify_gimple_phi): Merge verification from verify_stmts.
30599         (verify_gimple_label): New function.
30600         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
30601         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
30602         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
30603         (verify_stmts): Rename to verify_gimple_in_cfg.
30604         (verify_gimple_in_cfg): New function.
30605         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
30606         * tree-ssa.c (verify_ssa): Likewise.
30607         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
30608
30609 2011-03-25  Richard Guenther  <rguenther@suse.de>
30610
30611         * passes.c (init_optimization_passes): Add FRE pass after
30612         early SRA.
30613
30614 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
30615             Andrew Stubbs  <ams@codesourcery.com>
30616
30617         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
30618         for Cortex-A8.
30619         (arm_movdi_vfp_cortexa8): New pattern.
30620         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
30621         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
30622         instructions when tuning for Cortex-A8.  Set attribute "arch".
30623         * config/arm/arm.md: Move include arm-tune.md up a bit.
30624         (define_attr "arch"): Add "onlya8" and "nota8" values.
30625         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
30626
30627 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
30628
30629         PR bootstrap/48282
30630         Revert:
30631         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
30632
30633         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
30634         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
30635         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
30636         * passes.c (init_optimization_passes): Move
30637         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
30638
30639 2011-03-25  Kai Tietz  <ktietz@redhat.com>
30640
30641         * c-typeck.c (comptypes_internal): Replace target
30642         hook call of comp_type_attributes by version in tree.c file.
30643         * gimple.c (gimple_types_compatible_p_1): Likewise.
30644         * tree-ssa.c (useless_type_conversion_p): Likewise.
30645         * tree.c (build_type_attribute_qual_variant): Likewise.
30646         (attribute_value_equal): New static helper function.
30647         (comp_type_attributes): New function.
30648         (merge_attributes): Use attribute_value_equal for comparison.
30649         (attribute_list_contained): Likewise.
30650         * tree.h (comp_type_attributes): New prototype.
30651
30652 2011-03-25  Richard Guenther  <rguenther@suse.de>
30653
30654         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
30655         of complex types at -O0.
30656         (verify_gimple_assign_binary): Likewise.
30657         (verify_gimple_assign_ternary): Likewise.
30658
30659 2011-03-24  Mark Wielaard  <mjw@redhat.com>
30660
30661         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
30662         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
30663
30664 2011-03-24  Mark Wielaard  <mjw@redhat.com>
30665
30666         PR debug/48041
30667         * dwarf2out.c (output_abbrev_section): Only write table when
30668         abbrev_die_table_in_use > 1.
30669
30670 2011-02-24  Richard Henderson  <rth@redhat.com>
30671
30672         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
30673         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
30674         (alpha_expand_unaligned_load_words): Use extql.
30675         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
30676         (emit_insxl): Handle all modes for consistency.
30677
30678 2011-02-24  Richard Henderson  <rth@redhat.com>
30679
30680         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
30681         (alpha_expand_unaligned_load): Likewise.
30682         (alpha_expand_unaligned_store): Likewise.
30683         (alpha_expand_unaligned_load_words): Likewise.
30684         (alpha_expand_unaligned_store_words): Likewise.
30685         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
30686         (alpha_split_lock_test_and_set_12): Likewise.
30687         (print_operand, alpha_fold_builtin_extxx): Likewise.
30688         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
30689         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
30690         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
30691         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
30692         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
30693         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
30694         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
30695         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
30696         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
30697         (extwl, extll, extql): Similarly.
30698         (inswh, inslh, insqh): Similarly.
30699         (mskbl, mskwl, mskll, mskql): Similarly.
30700         (mskwh, msklh, mskqh): Similarly.
30701
30702 2011-02-24  Richard Henderson  <rth@redhat.com>
30703
30704         * config/alpha/alpha.md (attribute isa): Add er, ner.
30705         (attribute enabled): Handle them.
30706         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
30707
30708 2011-02-24  Richard Henderson  <rth@redhat.com>
30709
30710         * config/alpha/alpha.md (attribute isa): Add vms.
30711         (attribute enabled): Handle it.
30712         (*movsf): Merge *movsf_{nofix,fix,nofp}.
30713         (*movdf): Merge *movdf_{nofix,fix,nofp}.
30714         (*movtf): Rename from *movtf_internal for consistency.
30715         (*movsi): Merge with *movsi_nt_vms.
30716         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
30717         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
30718         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
30719         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
30720
30721 2011-02-24  Richard Henderson  <rth@redhat.com>
30722
30723         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
30724         (extendqisi2, extendhisi2): Likewise.
30725         (extendqidi2): Simplify BWX/non-BWX expansions.
30726         (extendhidi2): Similarly.
30727
30728 2011-02-24  Richard Henderson  <rth@redhat.com>
30729
30730         * config/alpha/alpha.md (attribute isa): New.
30731         (attribute enabled): New.
30732         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
30733         (zero_extendqisi2, zero_extendqidi2): Similarly.
30734         (zero_extendhisi2, zero_extendhidi2): Similarly.
30735         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
30736
30737 2011-02-24  Richard Henderson  <rth@redhat.com>
30738
30739         * config/alpha/predicates.md (input_operand): Revert last change;
30740         update comment to mention 32-bit VMS rather than Windows.
30741
30742 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
30743
30744         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
30745         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
30746         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
30747         * passes.c (init_optimization_passes): Move
30748         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
30749
30750 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
30751
30752         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
30753
30754 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
30755
30756         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
30757         correctly.
30758
30759 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
30760
30761         PR debug/48204
30762         * simplify-rtx.c (simplify_const_unary_operation): Call
30763         real_convert when changing mode class with FLOAT_EXTEND.
30764
30765 2011-03-24  Nick Clifton  <nickc@redhat.com>
30766
30767         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
30768         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
30769         * config/rx/rx.c (rx_option_override): Set align_jumps,
30770         align_loops and align_labels if not set by the user.
30771         (rx_align_for_label): New function.
30772         (rx_max_skip_for_label): New function.
30773         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
30774         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
30775         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
30776         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
30777         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
30778
30779 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
30780
30781         PR rtl-optimization/48263
30782         * optabs.c (expand_binop_directly): Reinstate convert_modes code
30783         and original commutative_p handling.  Use maybe_gen_insn.
30784
30785 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30786
30787         * reload.c (find_reloads_subreg_address): Add address_reloaded
30788         parameter and return true there if the full address has been
30789         reloaded.
30790         (find_reloads_toplev): Pass address_reloaded flag.
30791         (find_reloads_address_1): Don't use address_reloaded parameter.
30792
30793 2011-03-24  Jeff Law  <law@redhat.com>
30794
30795         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
30796         unused variable "ann".
30797         (remove_unused_locals): Likewise.
30798
30799         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
30800         statement.
30801
30802         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
30803         after it is freed.
30804
30805 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30806
30807         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
30808         for invalid symbolic addresses.
30809         (s390_secondary_reload): Don't use s390_check_symref_alignment for
30810         larl operands.
30811
30812 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
30813
30814         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
30815         the argument in calls to fold_truth_not_expr.
30816
30817 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
30818
30819         * tree.c (record_node_allocation_statistics): New function.
30820         (make_node_stat, copy_node_stat, build_string): Call it.
30821         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
30822         (build1_stat, build_omp_clause): Likewise.
30823
30824 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
30825
30826         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
30827         last commit.
30828
30829 2011-03-24  Richard Guenther  <rguenther@suse.de>
30830
30831         PR tree-optimization/48271
30832         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
30833         blocks that still exist.
30834
30835 2011-03-24  Richard Guenther  <rguenther@suse.de>
30836
30837         PR tree-optimization/48270
30838         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
30839         not free datarefs before ddrs.
30840
30841 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
30842
30843         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
30844         from the address built for a reference with variable offset.
30845
30846 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
30847
30848         PR target/48237
30849         * config/i386/i386.md (*movdf_internal_rex64): Do not split
30850         alternatives that can be handled with movq or movabsq insn.
30851         (*movdf_internal): Disable for !TARGET_64BIT.
30852         (*movdf_internal_nointeger): Ditto.
30853         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
30854
30855 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
30856
30857         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
30858         (FUNCTION_ARG_ADVANCE): Likewise.
30859         * tm.texi.in: Change references to them to hook references.
30860         * tm.texi: Regenerate.
30861         * targhooks.c (default_function_arg): Eliminate check for target macro.
30862         (default_function_incoming_arg): Likewise.
30863         (default_function_arg_advance): Likewise.
30864         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
30865         (function_arg_advance): Likewise.
30866         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
30867
30868 2011-03-24  Richard Guenther  <rguenther@suse.de>
30869
30870         PR middle-end/48269
30871         * tree-object-size.c (addr_object_size): Do not double-account
30872         for MEM_REF offsets.
30873
30874 2011-03-24  Diego Novillo  <dnovillo@google.com>
30875
30876         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
30877         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
30878         (lto_input_data_block): Move from lto-opts.c.  Make extern.
30879         Update all users.
30880         (lto_input_string): Rename from input_string.  Make extern.
30881         Update all users.
30882         * lto-streamer-out.c (lto_output_string_with_length): Rename from
30883         output_string_with_length.
30884         Output 0 to indicate a non-NULL string.  Update all callers to
30885         not emit 0.
30886         (lto_output_string): Rename from output_string.  Make extern.
30887         Update all users.
30888         (lto_output_decl_state_streams): Make extern.
30889         (lto_output_decl_state_refs): Make extern.
30890         * lto-streamer.h (lto_input_string): Declare.
30891         (lto_input_data_block): Declare.
30892         (lto_output_string): Declare.
30893         (lto_output_string_with_length): Declare.
30894         (lto_output_decl_state_streams): Declare.
30895         (lto_output_decl_state_refs): Declare.
30896
30897 2011-03-24  Richard Guenther  <rguenther@suse.de>
30898
30899         PR tree-optimization/46562
30900         * tree.c (build_invariant_address): New function.
30901         * tree.h (build_invariant_address): Declare.
30902         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
30903         a renamed function moved ...
30904         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
30905         Take valueization callback parameter.
30906         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
30907         * gimple-fold.h: New file.
30908         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
30909         (ccp_fold, fold_const_aggregate_ref,
30910         fold_ctor_reference, fold_nonarray_ctor_reference,
30911         fold_array_ctor_reference, fold_string_cst_ctor_reference,
30912         get_base_constructor): Move ...
30913         * gimple-fold.c: ... here.
30914         (gimple_fold_stmt_to_constant_1): New function
30915         split out from ccp_fold.  Take a valueization callback parameter.
30916         Valueize all operands.
30917         (gimple_fold_stmt_to_constant): New wrapper function.
30918         (fold_const_aggregate_ref_1): New function split out from
30919         fold_const_aggregate_ref.  Take a valueization callback parameter.
30920         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
30921         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
30922         invariant POINTER_PLUS_EXPRs to invariant form.
30923         (vn_valueize): New function.
30924         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
30925         * tree-vrp.c (vrp_valueize): New function.
30926         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
30927         to fold statements to constants.
30928         * tree-ssa-pre.c (eliminate): Properly guard propagation of
30929         function declarations.
30930         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
30931         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
30932
30933 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
30934
30935         * config/h8300/predicates.md (jump_address_operand): Fix register
30936         mode check.
30937
30938 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
30939
30940         * doc/invoke.texi (max-stores-to-sink): Document.
30941         * params.h (MAX_STORES_TO_SINK): Define.
30942         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
30943         if either vectorization or if-conversion is disabled.
30944         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
30945         tree-vect-data-refs.c vect_equal_offsets.
30946         (dr_equal_offsets_p): New function.
30947         (find_data_references_in_bb): Remove static.
30948         * tree-data-ref.h (find_data_references_in_bb): Declare.
30949         (dr_equal_offsets_p): Likewise.
30950         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
30951         (vect_drs_dependent_in_basic_block): Update calls to
30952         vect_equal_offsets.
30953         (vect_check_interleaving): Likewise.
30954         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
30955         (cond_if_else_store_replacement): Rename to...
30956         (cond_if_else_store_replacement_1): ... this.  Change arguments and
30957         documentation.
30958         (cond_if_else_store_replacement): New function.
30959         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
30960         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
30961
30962 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
30963
30964         PR target/46934
30965         * config/arm/arm.md (casesi): Use the gen_int_mode() function
30966         to subtract lower bound instead of GEN_INT().
30967
30968 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
30969
30970         PR other/48179
30971         PR other/48221
30972         PR other/48234
30973         * doc/extend.texi (Alignment): Move section to match order in TOC.
30974         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
30975         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
30976
30977 2011-03-23  Jeff Law  <law@redhat.com>
30978
30979         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
30980         before removing the edge.
30981
30982         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
30983         it may have been freed by redirect_branch_edge or
30984         redirect_edge_succ_nodup.
30985
30986 2011-03-23  Richard Guenther  <rguenther@suse.de>
30987
30988         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
30989         (check_va_list_escapes): Likewise.
30990         (check_all_va_list_escapes): Likewise.
30991
30992 2011-03-23  Richard Guenther  <rguenther@suse.de>
30993
30994         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
30995         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
30996         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
30997         (alias.o): Likewise.
30998         (ipa-type-escape.o): Remove.
30999         (ipa-struct-reorg.o): Likewise.
31000         (GTFILES): Remove ipa-struct-reorg.c.
31001         * alias.c: Do not include ipa-type-escape.h.
31002         * tree-ssa-alias.c: Likewise.
31003         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
31004         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
31005         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
31006         and ipa-type-escape passes.
31007         * tree-pass.h (pass_ipa_type_escape): Remove.
31008         (pass_ipa_struct_reorg): Likewise.
31009         * ipa-struct-reorg.h: Remove.
31010         * ipa-struct-reorg.c: Likewise.
31011         * ipa-type-escape.h: Likewise.
31012         * ipa-type-escape.c: Likewise.
31013         * doc/invoke.texi (-fipa-struct-reorg): Remove.
31014         (--param struct-reorg-cold-struct-ratio): Likewise.
31015         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
31016         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
31017         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
31018
31019 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31020
31021         * config/s390/2084.md: Enable all insn reservations also for z9_ec
31022         cpu attribute value.
31023         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
31024         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
31025         * config/s390/s390.c (processor_flags_table): New constant array.
31026         (s390_handle_arch_option): Remove.
31027         (s390_handle_option): Remove s390_handle_arch_option invocations
31028         and OPT_mwarn_framesize_ handling.
31029         (s390_option_override): Remove s390_handle_arch_option invocation.
31030         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
31031         warnings.
31032         * config/s390/s390.md (cpu attribute): Add z9_ec value.
31033         * config/s390/s390.opt (s390_tune, s390_arch)
31034         (march=): Replace s390_arch_option enum and values with
31035         processor_type.  Set variable name to s390_arch.  Set
31036         initialization value.
31037         (mtune=): Replace s390_arch_option with processor_type.  Set
31038         variable name to s390_tune.  Set initialization value.
31039
31040 2011-03-23  Julian Brown  <julian@codesourcery.com>
31041
31042         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
31043         accesses which are not naturally aligned.
31044
31045 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
31046
31047         PR target/47553
31048         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
31049
31050 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
31051
31052         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
31053         parameter from "int" to "enum insn_code".
31054         (expand_operand_type): New enum.
31055         (expand_operand): New structure.
31056         (create_expand_operand): New function.
31057         (create_fixed_operand, create_output_operand): Likewise
31058         (create_input_operand, create_convert_operand_to): Likewise.
31059         (create_convert_operand_from, create_address_operand): Likewise.
31060         (create_integer_operand): Likewise.
31061         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
31062         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
31063         (expand_insn, expand_jump_insn): Likewise.
31064         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
31065         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
31066         (expand_movstr, expand_builtin___clear_cache): Likewise.
31067         (expand_builtin_lock_release): Likewise.
31068         * explow.c (allocate_dynamic_stack_space): Likewise.
31069         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
31070         and use the default handling in that case.
31071         * expmed.c (check_predicate_volatile_ok): Delete.
31072         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
31073         (emit_cstore): Likewise.
31074         * expr.c (emit_block_move_via_movmem): Likewise.
31075         (set_storage_via_setmem, expand_assignment): Likewise.
31076         (emit_storent_insn, try_casesi): Likewise.
31077         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
31078         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
31079         (expand_vec_shift_expr, expand_binop_directly): Likewise.
31080         (expand_twoval_unop, expand_twoval_binop): Likewise.
31081         (expand_unop_direct, emit_indirect_jump): Likewise.
31082         (emit_conditional_move, vector_compare_rtx): Likewise.
31083         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
31084         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
31085         (expand_sync_lock_test_and_set): Likewise.
31086         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
31087         (emit_unop_insn): Likewise.
31088         (expand_copysign_absneg): Change icode to an insn_code.
31089         (create_convert_operand_from_type): New function.
31090         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
31091         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
31092         (expand_insn, expand_jump_insn): Likewise.
31093         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
31094         than const_int_operand for operand 2.
31095
31096 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31097
31098         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
31099         if possible.
31100
31101 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
31102
31103         * emit-rtl.c (emit_pattern_before_noloc): New function.
31104         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
31105         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
31106         (emit_pattern_after_noloc): New function.
31107         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
31108         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
31109
31110 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
31111
31112         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
31113         (__ffsDI2): Likewise.
31114
31115 2011-03-22  Richard Henderson  <rth@redhat.com>
31116
31117         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
31118         of !TARGET_ABI_OPEN_VMS.
31119         (alpha_trampoline_init, alpha_start_function): Likewise.
31120         (alpha_expand_epilogue, alpha_file_start): Likewise.
31121         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
31122         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
31123         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
31124         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
31125         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
31126
31127 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31128
31129         * config/s390/s390-opts.h: New.
31130         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
31131         s390_arch_flags, s390_warn_framesize, s390_stack_size,
31132         s390_stack_guard): Remove.
31133         (s390_handle_arch_option): Return void.  Take enum
31134         s390_arch_option value instead of string and searching array.
31135         (s390_handle_option): Don't assert that global structures are in
31136         use.  Access variables via opts pointer.  Use error_at.  Don't use
31137         sscanf for -mstack-guard= or -mstack-size=.  Update call to
31138         s390_handle_arch_option.
31139         (s390_option_override): Update call to s390_handle_arch_option.
31140         (s390_emit_prologue): Use %d format for s390_stack_size in
31141         diagnostic.  Use %wd for HOST_WIDE_INT.
31142         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
31143         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
31144         * config/s390/s390.opt (config/s390/s390-opts.h): New
31145         HeaderInclude entry.
31146         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
31147         s390_arch_flags, s390_warn_framesize): New Variable entries.
31148         (s390_arch_option): New Enum and EnumValue entries.
31149         (march=): Use Enum instead of Var.
31150         (mstack-guard=, mstack-size=): Use UInteger and Var.
31151         (mtune=): Use Enum.
31152
31153 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31154
31155         * config/score/score.c (score_handle_option): Don't assert that
31156         global structures are in use.  Access target_flags via opts
31157         pointer.  Use value of -march= option to determine target_flags
31158         settings.
31159         * config/score/score.opt (march=): Use Enum.
31160         (score_arch): New Enum and EnumValue entries.
31161
31162 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31163
31164         * config/mep/mep.c (option_mtiny_specified): Remove.
31165         (mep_option_override): Move register handling for -mivc2 from
31166         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
31167         instead of option_mtiny_specified.
31168         (mep_handle_option): Access target_flags via opts pointer.  Don't
31169         assert that global structures are in use.  Defer part of -mivc2
31170         handling and move it to mep_option_override.
31171         * config/mep/mep.opt (IVC2): New Mask entry.
31172         (mivc2): Use Var and Defer instead of Mask.
31173
31174 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31175
31176         * config/v850/v850-opts.h: New.
31177         * config/v850/v850.c (small_memory): Replace with
31178         small_memory_physical_max array.  Make that array static const.
31179         (v850_handle_memory_option): Take integer value of argument.  Take
31180         gcc_options pointer, option text and location.  Return void.
31181         Update for changes to small memory structures.
31182         (v850_handle_option): Access target_flags via opts pointer.  Don't
31183         assert that global structures are in use.  Update calls to
31184         v850_handle_memory_option.
31185         (v850_encode_data_area): Update references to small memory settings.
31186         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
31187         (enum small_memory_type): Move to v850-opts.h.
31188         * config/v850/v850.opt (config/v850/v850-opts.h): New
31189         HeaderInclude entry.
31190         (small_memory_max): New Variable entry.
31191         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
31192         (mtda, mzda): Likewise.
31193
31194 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31195
31196         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
31197         pointer.  Don't assert that global structures are in use.
31198
31199 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31200
31201         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
31202         via opts pointer.  Don't assert that global structures are in use.
31203
31204 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31205
31206         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
31207         (munix=93): Use Var.
31208         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
31209         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
31210         * config/pa/pa-opts.h: New.
31211         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
31212         (pa_handle_option): Don't assert that global structures are in
31213         use.  Access target_flags via opts pointer.  Don't handle
31214         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
31215         OPT_munix_98 here.
31216         (pa_option_override): Handle deferred OPT_mfixed_range_.
31217
31218 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31219
31220         * config/mn10300/mn10300-opts.h: New.
31221         * config/mn10300/mn10300.c (mn10300_processor,
31222         mn10300_tune_string): Remove.
31223         (mn10300_handle_option): Don't assert that global structures are
31224         in use.  Access mn10300_processor via opts pointer.  Don't handle
31225         OPT_mtune_ here.
31226         * config/mn10300/mn10300.h (enum processor_type): Move to
31227         mn10300-opts.h.
31228         (mn10300_processor): Remove.
31229         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
31230         HeaderInclude entry.
31231         (mn10300_processor): New Variable entry.
31232         (mtune=): Use Var.
31233
31234 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31235
31236         * config/microblaze/microblaze.c: Don't include opts.h.
31237         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
31238         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
31239         (mno-clearbss): Use Var and Warn.
31240
31241 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31242
31243         * config/m32r/m32r-opts.h: New.
31244         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
31245         (m32r_handle_option): Don't assert that global structures are in
31246         use.  Access target_flags and m32r_cache_flush_func via opts
31247         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
31248         OPT_mno_flush_trap here.
31249         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
31250         include of m32r-opts.h.
31251         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
31252         HeaderInclude entry.
31253         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
31254         (mmodel=): Use Enum and Var.
31255         (m32r_model): New Enum and EnumValue entries.
31256         (mno-flush-trap): Use Var.
31257         (msdata=): Use Enum and Var.
31258         (m32r_sdata): New Enum and EnumValue entries.
31259
31260 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31261
31262         * config/m32c/m32c.c: Don't include opts.h.
31263         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
31264         m32c_handle_option): Remove.
31265         (m32c_option_override): Check global_options_set.x_target_memregs
31266         instead of target_memregs_set.
31267         * config/m32c/m32c.h (target_memregs): Remove.
31268         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
31269         variable.
31270
31271 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31272
31273         * config/iq2000/iq2000-opts.h: New.
31274         * config/iq2000/iq2000.c: Don't include opts.h.
31275         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
31276         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
31277         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
31278         HeaderInclude entry.
31279         (iq2000_tune): New Variable entry.
31280         (march=): Add comment.  Use Enum.
31281         (iq2000_arch): New Enum and EnumValue entries.
31282         (mcpu=): Use Enum and Var.
31283         (iq2000_tune): New Enum and EnumValue entries.
31284
31285 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31286
31287         * config/ia64/ia64-opts.h: New.
31288         * config/ia64/ia64.c (ia64_tune): Remove.
31289         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
31290         here.  Use error_at.
31291         (ia64_option_override): Handle deferred OPT_mfixed_range_.
31292         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
31293         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
31294         HeaderInclude entry.
31295         (ia64_tune): New Variable entry.
31296         (mfixed-range=): Use Defer and Var.
31297         (mtune=): Use Enum and Var.
31298         (ia64_tune): New Enum and EnumValue entries.
31299
31300 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31301
31302         * config/frv/frv-opts.h: New.
31303         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
31304         frv-opts.h.
31305         (frv_cpu_type): Remove.
31306         * config/frv/frv.c: Don't include opts.h.
31307         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
31308         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
31309         (frv_cpu_type): New Variable entry.
31310         (frv_cpu): New Enum and EnumValue entries.
31311
31312 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31313
31314         * config/cris/cris.c (cris_handle_option): Access target_flags via
31315         opts pointer.  Don't assert that global structures are in use.
31316         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
31317         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
31318
31319 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31320
31321         * config/bfin/bfin-opts.h: New.
31322         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
31323         bfin_si_revision, bfin_workarounds): Remove.
31324         (bfin_cpus): Make static const.
31325         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
31326         not bfin_lib_id_given.
31327         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
31328         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
31329         pointer. Use error_at.  Don't assert that global structures are in use.
31330         * config/bfin/bfin.h: Include bfin-opts.h.
31331         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
31332         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
31333         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
31334         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
31335         entries.
31336
31337 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31338
31339         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
31340         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
31341         or -msoft-float here.
31342         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
31343         -msoft-float and -mhard-float.
31344         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
31345         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
31346         msoft-float.
31347         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
31348         -msoft-float.
31349         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
31350         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
31351         not mhard-float.
31352         (LIBGCC_SPEC): Don't handle -msoft-float.
31353         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
31354         -mhard-float.
31355         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
31356         msoft-float.
31357         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
31358         -mfloat-abi=*, not -msoft-float and -mhard-float.
31359         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
31360         -msoft-float.
31361         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
31362         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
31363         mhard-float and msoft-float.
31364         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
31365         mfloat-abi=soft in comments, not mhard-float and msoft-float.
31366         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
31367         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
31368         mhard-float.
31369         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
31370         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
31371         msoft-float.
31372         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
31373         not mhard-float.
31374         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
31375         not msoft-float.
31376
31377 2011-03-22  Richard Henderson  <rth@redhat.com>
31378
31379         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
31380         TARGET_ABI_WINDOWS_NT.
31381         (alpha_output_function_end_prologue): Likewise.
31382         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
31383         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
31384         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
31385         (trap, *movsi_nt_vms): Likewise.
31386         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
31387         (*tablejump_osf_nt_internal): Remove.
31388         * config/alpha/predicates.md (input_operand): Only test Pmode.
31389
31390 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31391
31392         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
31393         via opts pointer.  Use error_at.  Don't assert that global
31394         structures are in use.
31395
31396 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31397
31398         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
31399         (ix86_handle_option): Access ix86_isa_flags and
31400         ix86_isa_flags_explicit via opts pointer.  Don't assert that
31401         global structures are in use.
31402         (ix86_function_specific_save, ix86_function_specific_restore):
31403         Update ix86_isa_flags_explicit field name.
31404         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
31405         (ix86_isa_flags_explicit): Rename TargetSave entry to
31406         x_ix86_isa_flags_explicit.
31407
31408 2011-03-22  Richard Henderson  <rth@redhat.com>
31409
31410         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
31411         (alpha_option_override, direct_return): Likewise.
31412         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
31413         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
31414         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
31415         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
31416         (alpha_expand_epilogue, alpha_end_function): Likewise.
31417         (alpha_init_libfuncs): Likewise.
31418         (struct machine_function): Remove unicosmk members.
31419         (print_operand) ['t']: Remove.
31420         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
31421         unicosmk_output_module_name, unicosmk_output_common,
31422         current_section_align, unicosmk_output_text_section_asm_op,
31423         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
31424         unicosmk_section_type_flags, unicosmk_unique_section,
31425         unicosmk_asm_named_section, unicosmk_insert_attributes,
31426         unicosmk_output_align, unicosmk_defer_case_vector,
31427         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
31428         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
31429         unicosmk_output_ssib, unicosmk_add_call_info_word,
31430         unicosmk_extern_head, unicosmk_output_default_externs,
31431         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
31432         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
31433         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
31434         * config/alpha/alpha-protos.h: Update.
31435         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
31436         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
31437         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
31438         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
31439         (*mulsi_se, mulvsi3): Likewise.
31440         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
31441         (*divmodsi_internal, call, call_value, realign): Likewise.
31442         (moddi3, umoddi3): Likewise; remove duplicate expander.
31443         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
31444         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
31445         (*movdi_nofix): Remove r/U alternative.
31446         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
31447         * config/alpha/constraints.md ("U"): Remove.
31448         * config/alpha/predicates.md (call_operand"): Don't test
31449         TARGET_ABI_UNICOSMK.
31450
31451 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31452
31453         * target.def (handle_option): Take gcc_options and
31454         cl_decoded_option pointers and location_t.
31455         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
31456         * doc/tm.texi: Regenerate.
31457         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
31458         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
31459         * lto-opts.c (lto_reissue_options): Generate option structure for
31460         targetm.handle_option call.
31461         * opts.c (target_handle_option): Update call to
31462         targetm.handle_option.  Remove assertions about values now passed
31463         down to hook.
31464         * targhooks.c (default_target_handle_option): New.
31465         * targhooks.h (default_target_handle_option): Declare.
31466         * config/alpha/alpha.c: Include opts.h.
31467         (alpha_handle_option): Update to new hook interface.
31468         * config/arm/arm.c: Include opts.h.
31469         (arm_handle_option): Update to new hook interface.
31470         * config/arm/t-arm (arm.o): Update dependencies.
31471         * config/bfin/bfin.c: Include opts.h.
31472         (bfin_handle_option): Update to new hook interface.
31473         * config/cris/cris.c: Include opts.h.
31474         (cris_handle_option): Update to new hook interface.
31475         * config/frv/frv.c: Include opts.h.
31476         (frv_handle_option): Update to new hook interface.
31477         * config/i386/i386.c: Include opts.h.
31478         (ix86_handle_option): Update to new hook interface.
31479         (ix86_valid_target_attribute_inner_p): Generate option structure
31480         for call to ix86_handle_option.
31481         * config/i386/t-i386 (i386.o): Update dependencies.
31482         * config/ia64/ia64.c: Include opts.h.
31483         (ia64_handle_option): Update to new hook interface.
31484         * config/ia64/t-ia64 (ia64.o): Update dependencies.
31485         * config/iq2000/iq2000.c: Include opts.h.
31486         (iq2000_handle_option): Update to new hook interface.
31487         * config/m32c/m32c.c: Include opts.h.
31488         (m32c_handle_option): Update to new hook interface.
31489         * config/m32r/m32r.c: Include opts.h.
31490         (m32r_handle_option): Update to new hook interface.
31491         * config/m68k/m68k.c: Include opts.h.
31492         (m68k_handle_option): Update to new hook interface.
31493         * config/mep/mep.c: Include opts.h.
31494         (mep_handle_option): Update to new hook interface.
31495         * config/microblaze/microblaze.c: Include opts.h.
31496         (microblaze_handle_option): Update to new hook interface.
31497         * config/mips/mips.c: Include opts.h.
31498         (mips_handle_option): Update to new hook interface.
31499         * config/mn10300/mn10300.c: Include opts.h.
31500         (mn10300_handle_option): Update to new hook interface.
31501         * config/pa/pa.c: Include opts.h.
31502         (pa_handle_option): Update to new hook interface.
31503         * config/pdp11/pdp11.c: Include opts.h.
31504         (pdp11_handle_option): Update to new hook interface.
31505         * config/rs6000/rs6000.c: Include opts.h.
31506         (rs6000_handle_option): Update to new hook interface.
31507         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
31508         * config/rx/rx.c: Include opts.h.
31509         (rx_handle_option): Update to new hook interface.
31510         * config/s390/s390.c: Include opts.h.
31511         (s390_handle_option): Update to new hook interface.
31512         * config/score/score.c: Include opts.h.
31513         (score_handle_option): Update to new hook interface.
31514         * config/sh/sh.c: Include opts.h.
31515         (sh_handle_option): Update to new hook interface.
31516         * config/sparc/sparc.c: Include opts.h.
31517         (sparc_handle_option): Update to new hook interface.
31518         * config/v850/v850.c: Include opts.h.
31519         (v850_handle_option): Update to new hook interface.
31520
31521 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31522
31523         * gcc.c (driver_unknown_option_callback): Only permit and save
31524         unknown -Wno- options.
31525         (driver_wrong_lang_callback): Save options directly instead of via
31526         driver_unknown_option_callback.
31527
31528 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
31529
31530         * combine.c (simplify_set): Try harder to find the best CC mode when
31531         simplifying a nested COMPARE on the RHS.
31532
31533 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31534
31535         * config/alpha/gnu.h: Remove.
31536         * config/arc: Remove directory.
31537         * config/arm/netbsd.h: Remove.
31538         * config/arm/t-pe: Remove.
31539         * config/crx: Remove directory.
31540         * config/i386/netbsd.h: Remove.
31541         * config/m68hc11: Remove directory.
31542         * config/m68k/uclinux-oldabi.h: Remove.
31543         * config/mcore/mcore-pe.h: Remove.
31544         * config/mcore/t-mcore-pe: Remove.
31545         * config/netbsd-aout.h: Remove.
31546         * config/rs6000/gnu.h: Remove.
31547         * config/sh/sh-symbian.h: Remove.
31548         * config/sh/symbian-base.c: Remove.
31549         * config/sh/symbian-c.c: Remove.
31550         * config/sh/symbian-cxx.c: Remove.
31551         * config/sh/symbian-post.h: Remove.
31552         * config/sh/symbian-pre.h: Remove.
31553         * config/sh/t-symbian: Remove.
31554         * config/svr3.h: Remove.
31555         * config/vax/netbsd.h: Remove.
31556         * config.build: Don't handle i[34567]86-*-pe.
31557         * config.gcc: Remove handling of deprecations for most deprecated
31558         targets.
31559         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
31560         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
31561         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
31562         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
31563         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
31564         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
31565         Remove cases.
31566         * config.host: Don't handle i[34567]86-*-pe.
31567         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
31568         (ASM_SPEC32): Don't handle -mcall-gnu.
31569         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
31570         -mcall-gnu.
31571         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
31572         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
31573         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
31574         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
31575         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
31576         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
31577         conditional on SYMBIAN.
31578         * configure.ac: Don't handle powerpc*-*-gnu*.
31579         * configure: Regenerate.
31580         * doc/extend.texi (interrupt attribute): Don't mention CRX.
31581         * doc/install-old.texi (m6811, m6812): Don't mention.
31582         * doc/install.texi (arc-*-elf*): Don't document multilib option.
31583         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
31584         (m68k-uclinuxoldabi): Don't mention.
31585         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
31586         Remove.
31587         (-mcall-gnu): Remove.
31588         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
31589         families): Remove constraint documentation.
31590
31591 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
31592
31593         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
31594         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
31595         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
31596
31597 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
31598
31599         PR target/48226
31600         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
31601         vector when peeking at the next token for vector, don't expand the
31602         keywords.
31603
31604 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
31605
31606         * config/avr/avr-protos.h (expand_epilogue): Change prototype
31607         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
31608         * config/avr/avr.c (init_cumulative_args)
31609         (avr_function_arg_advance): Use it.
31610         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
31611         sibcall epilogues.
31612         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
31613         (avr_function_ok_for_sibcall): ...this new function.
31614         (avr_lookup_function_attribute1): New static Function.
31615         (avr_naked_function_p, interrupt_function_p)
31616         (signal_function_p, avr_OS_task_function_p)
31617         (avr_OS_main_function_p): Use it.
31618         * config/avr/avr.md ("sibcall", "sibcall_value")
31619         ("sibcall_epilogue"): New expander.
31620         ("*call_insn", "*call_value_insn"): New insn.
31621         ("call_insn", "call_value_insn"): Remove
31622         ("call", "call_value", "epilogue"): Change expander to handle
31623         sibling calls.
31624
31625 2011-03-21  Nick Clifton  <nickc@redhat.com>
31626
31627         * doc/invoke.texi (Overall Options): Move closing brace to end of
31628         options list.
31629         (Optimization Options): Add missing @gol.
31630         (Directory Options): Likewise.
31631         (i386 and x86-64 Options): Likewise.
31632         (RS6000 and PowerPC Options): Likewise.
31633         (i386 and x86-64 Windows Options): Likewise.
31634         (V850 Options): Add text missing from descriptions.
31635
31636 2011-03-22  Richard Henderson  <rth@redhat.com>
31637
31638         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
31639         (avr_incoming_return_addr_rtx): New.
31640         (emit_push_byte): New.
31641         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
31642         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
31643         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
31644         (emit_pop_byte): New.
31645         (expand_epilogue): Use it.  Pop frame pointer by bytes.
31646         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
31647         (INCOMING_RETURN_ADDR_RTX): New.
31648         (INCOMING_FRAME_SP_OFFSET): New.
31649         (ARG_POINTER_CFA_OFFSET): New.
31650         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
31651         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
31652         (pophi): Remove.
31653
31654         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
31655
31656 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
31657
31658         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
31659         (FUNCTION_ARG_ADVANCE): Likewise.
31660         * tm.texi.in: Change references to them to hook references.
31661         * tm.texi: Regenerate.
31662         * targhooks.c (default_function_arg): Eliminate check for target
31663         macro.
31664         (default_function_incoming_arg): Likewise.
31665         (default_function_arg_advance): Likewise.
31666         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
31667         (function_arg_advance): Likewise.
31668         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
31669
31670 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
31671
31672         * tree.c (build_call_1): New function.
31673         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
31674
31675 2011-03-22  Richard Guenther  <rguenther@suse.de>
31676
31677         PR tree-optimization/48228
31678         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
31679         for single-arg PHIs.
31680
31681 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
31682
31683         PR rtl-optimization/48143
31684         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
31685         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
31686         sse2_cvtps2pd): Likewise.
31687
31688 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31689
31690         * recog.c (canonicalize_change_group): Use validate_unshare_change.
31691
31692 2011-03-22  Richard Guenther  <rguenther@suse.de>
31693
31694         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
31695         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
31696         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
31697         and REALIGN_LOAD_EXPR.
31698         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
31699         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
31700         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
31701         DOT_PROD_EXPR case ...
31702         (expand_expr_real_2): ... here.
31703         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
31704         and REALIGN_LOAD_EXPR.
31705         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
31706         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
31707         (vect_create_epilog_for_reduction): Likewise.
31708         (vectorizable_reduction): Likewise.
31709         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
31710         * tree-vect-stmts.c (vectorizable_load): Likewise.
31711
31712 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
31713
31714         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
31715
31716 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31717
31718         * config/s390/s390.c (s390_delegitimize_address): Fix offset
31719         handling for PLTOFF/GOTOFF.
31720
31721 2011-03-22  Nick Clifton  <nickc@redhat.com>
31722
31723         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
31724         trailing backslash from the end of the macro definition.
31725
31726 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31727
31728         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
31729         and PLT unspecs.
31730
31731 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
31732
31733         * expr.h (prepare_operand): Move to...
31734         * optabs.h (prepare_operand): ...here and change the insn code
31735         parameter from "int" to "enum insn_code".
31736         (insn_operand_matches): Declare.
31737         * expr.c (init_expr_target): Use insn_operand_matches.
31738         (compress_float_constant): Likewise.
31739         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
31740         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
31741         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
31742         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
31743         Likewise.
31744         (gen_cond_trap): Likewise.
31745         (prepare_operand): Likewise.  Change icode to an insn_code.
31746         (insn_operand_matches): New function.
31747         * reload.c (find_reloads_address_1): Use insn_operand_matches.
31748         * reload1.c (gen_reload): Likewise.
31749         * targhooks.c (default_secondary_reload): Likewise.
31750
31751 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
31752
31753         * config/alpha/alpha.md (unspec): New define_c_enum.
31754         (unspecv): Ditto.
31755
31756 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
31757
31758         PR debug/48214
31759         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
31760         between a call and its CALL_ARG_LOCATION note.
31761
31762 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
31763
31764         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
31765
31766 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
31767
31768         PR c/42544
31769         PR c/48197
31770         * c-common.c (shorten_compare): If primopN is first sign-extended
31771         to opN and then zero-extended to result type, set primopN to opN.
31772
31773 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
31774
31775         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
31776         for barrier handlers.
31777
31778 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
31779
31780         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
31781         UNSPEC constants to be in the unspec enumeration, and redefine
31782         all UNSPECV constants to be in the unspecv enumeration, so that
31783         dumps print which unspec/unspec_volatile this is.
31784         * config/rs6000/vector.md (UNSPEC_*): Ditto.
31785         * config/rs6000/paired.md (UNSPEC_*): Ditto.
31786         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
31787         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
31788         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
31789
31790         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
31791         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
31792         UNSPECV_LWSYNC, since these are used as unspec_volatile.
31793         * config/rs6000/sync.md (isync, lwsync): Ditto.
31794
31795 2011-03-21  Richard Guenther  <rguenther@suse.de>
31796
31797         * params.def (lto-min-partition): Fix typo.
31798
31799 2011-03-21  Richard Guenther  <rguenther@suse.de>
31800
31801         PR c/47939
31802         * c-decl.c (grokdeclarator): Drop to the main variant only
31803         for array types.  Drop flag_gen_aux_info check.
31804
31805 2011-03-21  Richard Guenther  <rguenther@suse.de>
31806
31807         PR translation/47911
31808         * params.def (lto-partitions): Fix typo.
31809         (lto-min-partition): Fix wording.
31810
31811 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
31812
31813         * config/rs6000/t-freebsd: Remove duplication from file.
31814
31815 2011-03-21  Richard Guenther  <rguenther@suse.de>
31816
31817         PR middle-end/47661
31818         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
31819
31820 2011-03-21  Richard Guenther  <rguenther@suse.de>
31821
31822         PR lto/48210
31823         * params.def (lto-partitions): Require at least 1 partition.
31824
31825 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31826
31827         * gthr-solaris.h: Remove.
31828         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
31829         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
31830         (LIB_SPEC): Likewise.
31831         * config/sol2.opt (threads): Remove.
31832         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
31833         (sparc*-*-solaris2*): Likewise.
31834         * configure.ac (enable_threads): Enable solaris support.
31835         * configure: Regenerate.
31836         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
31837         * doc/install.texi (Configuration, --enable-threads=lib): Remove
31838         solaris.
31839
31840 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31841
31842         * config.gcc: Obsolete *-*-solaris2.8*.
31843         * doc/install.texi (Specific, *-*-solaris2*): Document it.
31844
31845 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31846
31847         PR bootstrap/48135
31848         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
31849         reference.  Solaris 8 perl works.
31850
31851 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31852
31853         PR bootstrap/48135
31854         * doc/install.texi (Prerequisites): Move jar etc. up.
31855         Explain support library version requirements.
31856
31857 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31858
31859         PR bootstrap/48135
31860         * doc/install.texi (Prerequisites): Move Perl to build
31861         requirements.  Always necessary on Solaris 2 with Sun ld.
31862
31863 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31864
31865         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
31866         binutils 2.21.
31867         (Specific, i?86-*-solaris2.[89]): Likewise.
31868         (Specific, i?86-*-solaris2.10): Likewise.
31869         (Specific, mips-sgi-irix6): Likewise.
31870         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
31871         Update for binutils 2.21.
31872
31873 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31874
31875         * configure.ac (gcc_cv_lto_plugin): Fix typo.
31876         Allow -fuse-linker-plugin for non-default plugin linker.
31877         * configure: Regenerate.
31878
31879 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
31880
31881         PR bootstrap/48167
31882         * gengtype.c (files_rules): Added rule for cp/parser.h.
31883
31884 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
31885
31886         PR target/48213
31887         * config/s390/s390.c (s390_delegitimize_address): Don't call
31888         lowpart_subreg if orig_x has BLKmode.
31889
31890 2011-03-21  Kai Tietz  <ktietz@redhat.com>
31891
31892         PR target/12171
31893         * doc/plugins.texi: Adjust documentation for plugin register_callback.
31894         * tree.h (attribute_spec): Add new member affects_type_identity.
31895         * attribs.c (empty_attribute_table): Adjust attribute_spec
31896         initializers.
31897         * config/alpha/alpha.c: Likewise.
31898         * config/arc/arc.c: Likewise.
31899         * config/arm/arm.c: Likewise.
31900         * config/avr/avr.c: Likewise.
31901         * config/bfin/bfin.c: Likewise.
31902         * config/crx/crx.c: Likewise.
31903         * config/darwin.h: Likewise.
31904         * config/h8300/h8300.c: Likewise.
31905         * config/i386/cygming.h: Likewise.
31906         * config/i386/i386.c: Likewise.
31907         * config/ia64/ia64.c: Likewise.
31908         * config/m32c/m32c.c: Likewise.
31909         * config/m32r/m32r.c: Likewise.
31910         * config/m68hc11/m68hc11.c: Likewise.
31911         * config/m68k/m68k.c: Likewise.
31912         * config/mcore/mcore.c: Likewise.
31913         * config/mep/mep.c: Likewise.
31914         * config/microblaze/microblaze.c: Likewise.
31915         * config/mips/mips.c: Likewise.
31916         * config/rs6000/rs6000.c: Likewise.
31917         * config/rx/rx.c: Likewise.
31918         * config/sh/sh.c: Likewise.
31919         * config/sol2.h: Likewise.
31920         * config/sparc/sparc.c: Likewise.
31921         * config/spu/spu.c: Likewise.
31922         * config/stormy16/stormy16.c: Likewise.
31923         * config/v850/v850.c: Likewise.
31924
31925 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
31926
31927         * simplify-rtx.c (simplify_binary_operation_1): Handle
31928         (xor (and A B) C) case when B and C are both constants.
31929
31930 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
31931
31932         * tree-dfa.c (add_referenced_var): Fix typo in comment.
31933
31934 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31935
31936         PR bootstrap/48168
31937         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
31938
31939 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
31940
31941         PR rtl-optimization/48156
31942         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
31943         assume df and df_lr are not NULL.
31944
31945 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
31946
31947         PR debug/48023
31948         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
31949         between a call and its CALL_ARG_LOCATION note.
31950
31951 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
31952
31953         PR debug/48178
31954         * config/sh/sh.c (find_barrier): Don't emit a constant pool
31955         between a call and its corresponding CALL_ARG_LOCATION note.
31956
31957 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
31958
31959         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
31960         instead of loop. Use HARD_REGISTER_NUM_P predicate.
31961         * haifa-sched.c (setup_ref_regs): Ditto.
31962         * caller-save.c (add_used_regs_1): Ditto.
31963         * dse.c (look_for_hardregs): Ditto.
31964         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
31965         * sched-rgn.c (check_live_1): Ditto.
31966
31967 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
31968
31969         * c-decl.c (diagnose_mismatched_decls): Give an error for
31970         redefining a typedef with variably modified type.
31971
31972 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
31973
31974         * c-decl.c (grokfield): Don't allow typedefs for structures or
31975         unions with no tag by default.
31976         * doc/extend.texi (Unnamed Fields): Update.
31977
31978 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
31979
31980         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
31981         Rewrite using indirect functions.
31982         (lwp_slwpcb): Ditto.
31983         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
31984         (avx_vinsertf128<mode>): Ditto.
31985
31986 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31987
31988         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
31989         unspecs.
31990
31991 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31992
31993         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
31994         splitting between a call and its corresponding CALL_ARG_LOCATION note.
31995
31996 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
31997
31998         PR rtl-optimization/48170
31999         * gcse.c (hoist_code): Remove bogus asserts.
32000
32001 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
32002
32003         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
32004         computation for prologue/epilogue.
32005
32006 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32007
32008         * Makefile.in (check-consistency): Remove.
32009
32010 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
32011
32012         PR debug/48176
32013         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
32014         arange_table_in_use is 0, but either text_section_used or
32015         cold_text_section_used is true.  Don't call it if
32016         !info_section_emitted.
32017
32018 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
32019
32020         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
32021         FUNCTION_VALUE_REGNO_P): Remove.
32022         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
32023         Remove.
32024         * config/avr/avr.c (avr_ret_register): Make static inline.
32025         (avr_function_value_regno_p): New function.
32026         (avr_libcall_value): Make static. Add 'func' argument.
32027         (avr_function_value): Make static. Rename 'func' argument to
32028         'fn_decl_or_type', forward it to avr_libcall_value. Call
32029         avr_ret_register function instead of RET_REGISTER macro.
32030         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
32031
32032 2011-03-18  Jason Merrill  <jason@redhat.com>
32033
32034         PR c++/23372
32035         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
32036
32037 2011-03-18  Richard Guenther  <rguenther@suse.de>
32038
32039         * doc/install.texi (--enable-gold): Remove.
32040         (--with-plugin-ld): Document.
32041         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
32042
32043 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
32044
32045         PR middle-end/47790
32046         * expr.c (optimize_bitfield_assignment_op): Revamp to work
32047         again after expansion changes.
32048
32049 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
32050
32051         * combine.c (try_combine): Do simplification only call of
32052         subst() on i2 even when i1 is present. Update comments.
32053
32054 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
32055
32056         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
32057         and UNSPEC_PCREL_SYMOFF.
32058
32059 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32060
32061         * config/s390/s390.md: Use define_c_enum for the unspec constant
32062         definitions.
32063
32064 2011-03-18  Richard Henderson  <rth@redhat.com>
32065             Jakub Jelinek  <jakub@redhat.com>
32066
32067         PR bootstrap/48161
32068         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
32069         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
32070
32071 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
32072
32073         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
32074         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
32075         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
32076         Change return type to bool.
32077         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
32078
32079 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
32080
32081         PR debug/48163
32082         * var-tracking.c (prepare_call_arguments): If CALL target
32083         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
32084         pc instead of looking it up using cselib_lookup and use
32085         Pmode for it if x has VOIDmode.
32086         * dwarf2out.c (gen_subprogram_die): If also both first and
32087         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
32088
32089         PR debug/48163
32090         * function.c (assign_parms): For data.passed_pointer parms
32091         use MEM of data.entry_parm instead of data.entry_parm itself
32092         as DECL_INCOMING_RTL.
32093         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
32094         also when passed and declared mode is the same, DECL_RTL
32095         is a MEM with pseudo as address and DECL_INCOMING_RTL is
32096         a MEM too.
32097
32098 2011-03-16  Jeff Law  <law@redhat.com>
32099
32100         PR rtl-optimization/37273
32101         * ira-costs.c (scan_one_insn): Detect constants living in memory and
32102         handle them like argument loads from stack slots.  Do not double
32103         count memory for memory constants and argument loads from stack slots.
32104
32105 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
32106
32107         PR debug/48160
32108         * var-tracking.c (prepare_call_arguments): Check SUBREG.
32109
32110 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
32111
32112         PR target/48171
32113         * config/i386/i386.opt: Add Save to -mavx and -mfma.
32114
32115 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
32116
32117         PR bootstrap/48153
32118         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
32119         if dwarf_strict.
32120         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
32121         Clear call_arg_locations and call_arg_loc_last always.
32122
32123         PR middle-end/48152
32124         * var-tracking.c (prepare_call_arguments): If argument needs to be
32125         passed by reference, adjust argtype and mode.
32126
32127 2011-03-17  Richard Guenther  <rguenther@suse.de>
32128
32129         PR middle-end/48134
32130         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
32131         a value make sure to fold the statement.
32132
32133 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
32134
32135         PR target/43872
32136         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
32137         return condition with !cfun->calls_alloca.
32138
32139 2011-03-17  Richard Guenther  <rguenther@suse.de>
32140
32141         PR bootstrap/48148
32142         * lto-cgraph.c (input_overwrite_node): Clear the abstract
32143         origin for decls in other ltrans units.
32144         (input_varpool_node): Likewise.
32145
32146 2011-03-17  Richard Guenther  <rguenther@suse.de>
32147
32148         PR middle-end/48165
32149         * tree-object-size.c (compute_object_offset): Properly return
32150         the offset operand of MEM_REFs as sizetype.
32151
32152 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
32153
32154         PR rtl-optimization/48141
32155         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
32156         * dse.c: Include params.h.
32157         (active_local_stores_len): New variable.
32158         (add_wild_read, dse_step1): Clear it when setting active_local_stores
32159         to NULL.
32160         (record_store, check_mem_read_rtx): Decrease it when removing
32161         from the chain.
32162         (scan_insn): Likewise.  Increase it when adding to chain, if it
32163         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
32164         set active_local_stores to NULL before the addition.
32165         * Makefile.in (dse.o): Depend on $(PARAMS_H).
32166
32167         PR rtl-optimization/48141
32168         * dse.c (record_store): If no positions are needed in an insn
32169         that cannot be deleted, at least unchain it from active_local_stores.
32170
32171 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
32172
32173         PR debug/47510
32174         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
32175         (lookup_type_die_strip_naming_typedef): ... here.
32176         (get_context_die): Use it.
32177         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
32178         the anonymous struct named by the naming typedef.
32179
32180 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
32181
32182         PR target/48154
32183         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
32184         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
32185
32186 2011-03-16  Jeff Law  <law@redhat.com>
32187
32188         * tree-vrp.c (identify_jump_threads): Slightly simplify type
32189         check for operands of conditional.  Allow type to be a pointer.
32190
32191 2011-03-16  Richard Guenther  <rguenther@suse.de>
32192
32193         PR tree-optimization/48149
32194         * fold-const.c (fold_binary_loc): Fold
32195         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
32196
32197 2011-03-16  Richard Guenther  <rguenther@suse.de>
32198
32199         PR tree-optimization/26134
32200         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
32201         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
32202         (non_rewritable_mem_ref_base): Handle complex type component
32203         accesses, constrain offsets for vector and complex extracts
32204         more properly.
32205
32206 2011-03-16  Richard Guenther  <rguenther@suse.de>
32207
32208         PR tree-optimization/48146
32209         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
32210         operands avoiding the need for renaming.
32211
32212 2011-03-16  Richard Guenther  <rguenther@suse.de>
32213
32214         * gimple-fold.c (maybe_fold_reference): Open-code relevant
32215         constant folding.  Move MEM_REF canonicalization first.
32216         Rely on fold_const_aggregate_ref for initializer folding.
32217         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
32218
32219 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
32220
32221         PR middle-end/48136
32222         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
32223         arg0/arg1 or their arguments are always fold converted to matching
32224         types.
32225
32226         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
32227         to nargs.
32228
32229 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32230
32231         PR lto/46944
32232         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
32233         Handle in-tree gold.
32234         (ld_vers): Extract binutils version for gold.
32235         (gcc_cv_ld_hidden): Handle gold here.
32236         (gcc_cv_lto_plugin): Determine level of linker plugin support.
32237         * configure: Regenerate.
32238         * config.in: Regenerate.
32239         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
32240         -fuse-linker-plugin otherwise.
32241         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
32242         (LINK_COMMAND_SPEC): Use it.
32243         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
32244
32245 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
32246
32247         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
32248         * calls.c: Remove debug.h include.
32249         (emit_call_1): Don't call virtual_call_token debug hook.
32250         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
32251         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
32252         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
32253         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
32254         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
32255         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
32256         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
32257         dwarf2out_virtual_call): Remove.
32258         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
32259         copy_call_info and virtual_call hooks.
32260         (dwarf2out_init): Don't initialize vcall_insn_table,
32261         debug_dcall_section and debug_vcall_section.
32262         (prune_unused_types): Don't mark nodes from dcall_table.
32263         (dwarf2out_finish): Don't output dcall or vcall tables.
32264         * final.c (final_scan_insn): Don't call direct_call or
32265         virtual_call debug hooks.
32266         * debug.h (struct gcc_debug_hooks): Remove direct_call,
32267         virtual_call_token, copy_call_info and virtual_call hooks.
32268         (debug_nothing_uid): Remove prototype.
32269         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
32270         copy_call_info and virtual_call hooks.
32271         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
32272         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
32273         * debug.c (do_nothing_debug_hooks): Likewise.
32274         (debug_nothing_uid): Remove.
32275         * doc/invoke.texi (-fenable-icf-debug): Remove.
32276         * common.opt (-fenable-icf-debug): Likewise.
32277
32278         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
32279         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
32280         call's MEM.  Handle functions returning aggregate through a hidden
32281         first pointer.  For virtual calls add clobbered pc to call arguments
32282         chain.
32283         * dwarf2out.c (gen_subprogram_die): Emit
32284         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
32285         can't be emitted.
32286
32287         PR debug/45882
32288         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
32289         * rtl.h (ENTRY_VALUE_EXP): Define.
32290         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
32291         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
32292         * print-rtl.c (print_rtx): Likewise.
32293         * gengtype.c (adjust_field_rtx_def): Likewise.
32294         * var-tracking.c (vt_add_function_parameter): Adjust
32295         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
32296         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
32297         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
32298         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
32299         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
32300
32301         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
32302         Call var_location debug hook even on CALL_INSNs.
32303         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
32304         * rtl.def (ENTRY_VALUE): New.
32305         * dwarf2out.c: Include cfglayout.h.
32306         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
32307         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
32308         (struct call_arg_loc_node): New type.
32309         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
32310         tail_call_site_count): New variables.
32311         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
32312         DW_TAG_GNU_call_site_parameter.
32313         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
32314         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
32315         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
32316         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
32317         and DW_AT_GNU_all_source_call_sites.
32318         (mem_loc_descriptor): Handle ENTRY_VALUE.
32319         (add_src_coords_attributes): Don't add enything if
32320         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
32321         (dwarf2out_abstract_function): Save and clear call_arg_location,
32322         call_site_count and tail_call_site_count around dwarf2out_decl call.
32323         (gen_call_site_die): New function.
32324         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
32325         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
32326         (dwarf2out_function_decl): Clear call_arg_locations,
32327         call_arg_loc_last, set call_site_count and tail_call_site_count
32328         to -1 and free block_map.
32329         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
32330         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
32331         followed by any real instructions.
32332         (dwarf2out_begin_function): Set call_site_count and
32333         tail_call_site_count to 0.
32334         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
32335         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
32336         attempt to force a DIE for it and worst case remove the attribute.
32337         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
32338         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
32339         the decl itself.
32340         * var-tracking.c: Include tm_p.h.
32341         (vt_stack_adjustments): For calls call note_register_arguments.
32342         (argument_reg_set): New variable.
32343         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
32344         ensure the VALUE is resolved.
32345         (call_arguments): New variable.
32346         (prepare_call_arguments): New function.
32347         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
32348         (struct expand_loc_callback_data): Add ignore_cur_loc field.
32349         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
32350         always use the best expression.
32351         (vt_expand_loc): Add ignore_cur_loc argument.
32352         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
32353         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
32354         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
32355         note for all calls.
32356         (vt_add_function_parameter): Use cselib_lookup_from_insn.
32357         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
32358         argument.  Don't call cselib_preserve_only_values and
32359         cselib_reset_table.
32360         (note_register_arguments): New function.
32361         (vt_initialize): Compute argument_reg_set.  Call
32362         vt_add_function_parameters before processing basic blocks instead of
32363         afterwards.  For calls call prepare_call_arguments before calling
32364         cselib_process_insn.
32365         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
32366         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
32367         (var-tracking.o): Depend on $(TM_P_H).
32368         * cfglayout.h (insn_scope): New prototype.
32369         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
32370         * cfglayout.c (insn_scope): No longer static.
32371         * insn-notes.def (CALL_ARG_LOCATION): New.
32372         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
32373         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
32374         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
32375         nothing for DECL_EXTERNAL BLOCK_VARS.
32376
32377 2011-03-16  Alan Modra  <amodra@gmail.com>
32378
32379         PR target/45844
32380         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
32381         create invalid offset address for vsx splat insn.
32382         * config/rs6000/predicates.md (splat_input_operand): New.
32383         * config/rs6000/vsx.md (vsx_splat_*): Use it.
32384
32385 2011-03-15  Xinliang David Li  <davidxl@google.com>
32386
32387         PR c/47837
32388         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
32389         (normalize_preds): New function.
32390         (is_use_properly_guarded): Normalize def predicates.
32391
32392 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
32393
32394         PR target/46788
32395         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
32396         in the output template.
32397
32398 2011-03-15  Richard Guenther  <rguenther@suse.de>
32399
32400         PR middle-end/47650
32401         * tree-pretty-print.c (dump_function_declaration): Properly
32402         dump unprototyped and varargs function types.
32403
32404 2011-03-15  Richard Guenther  <rguenther@suse.de>
32405
32406         PR tree-optimization/13954
32407         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
32408         and friends.
32409
32410 2011-03-15  Richard Guenther  <rguenther@suse.de>
32411
32412         PR tree-optimization/48037
32413         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
32414         selects into BIT_FIELD_REFs.
32415         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
32416         vector select.
32417
32418 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
32419
32420         PR tree-optimization/48129
32421         * builtins.c (fold_builtin_snprintf): Convert to type of
32422         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
32423         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
32424
32425 2011-03-15  Richard Guenther  <rguenther@suse.de>
32426
32427         PR tree-optimization/41490
32428         * tree-ssa-dce.c (propagate_necessity): Handle returns without
32429         value but with VUSE.
32430         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
32431         return statements.
32432         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
32433         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
32434         * tree-tailcall.c (find_tail_calls): Ignore returns.
32435
32436 2011-03-15  Richard Guenther  <rguenther@suse.de>
32437
32438         PR middle-end/48031
32439         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
32440         or variable-indexed array accesses when in gimple form.
32441
32442 2011-03-15  Richard Guenther  <rguenther@suse.de>
32443
32444         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
32445
32446 2011-03-15  Alan Modra  <amodra@gmail.com>
32447
32448         PR target/48032
32449         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
32450         presume symbol_refs without a symbol_ref_decl are suitably
32451         aligned, nor other trees we may see here.  Handle anchor symbols.
32452         (legitimate_constant_pool_address_p): Comment.  Add mode param.
32453         Check cmodel=medium addresses.  Adjust all calls.
32454         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
32455         creating cmodel=medium optimized access to locals.
32456         * config/rs6000/constraints.md (R): Pass QImode to
32457         legitimate_constant_pool_address_p.
32458         * config/rs6000/predicates.md (input_operand): Pass mode to
32459         legitimate_constant_pool_address_p.
32460         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
32461         Update prototype.
32462
32463 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
32464
32465         PR target/48053
32466         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
32467         64-bit constants being loaded into registers other than GPRs such
32468         as loading 0 into a VSX register.
32469
32470 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32471
32472         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
32473
32474 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
32475
32476         PR middle-end/47917
32477         * builtins.c (fold_builtin_snprintf): New function.
32478         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
32479         (fold_builtin_4): Likewise.
32480
32481         PR middle-end/38878
32482         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
32483         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
32484         and C - X == X also strip nops from +/-/p+ operand.
32485         When optimizing -X == C, fold C to arg0's type.
32486
32487         PR debug/47946
32488         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
32489         emit it as add_AT_int instead of add_AT_unsigned.
32490
32491 2011-03-14  Tom Tromey  <tromey@redhat.com>
32492
32493         * unwind-dw2.c: Include sys/sdt.h if it exists.
32494         (_Unwind_DebugHook): Use STAP_PROBE2.
32495         * config.in, configure: Rebuild.
32496         * configure.ac: Check for sys/sdt.h.
32497
32498 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
32499
32500         * config/i386/i386.md (ROUND_FLOOR): New constant.
32501         (ROUND_CEIL): Ditto.
32502         (ROUND_TRUNC): Ditto.
32503         (ROUND_MXCSR): Ditto.
32504         (ROUND_NO_EXC): Ditto.
32505         (rint<mode>2): Use new defines instead of numerical constants.
32506         (floor<mode>2): Ditto.
32507         (ceil<mode>2): Ditto.
32508         (btrunc<mode>2): Ditto.
32509         * config/i386/i386-builtin-types.def: Define ROUND function type
32510         aliases.
32511         * config/i386/i386.c (enum ix86_builtins): Add
32512         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
32513         (struct builtin_description): Add
32514         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
32515         (ix86_expand_sse_round): New static function.
32516         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
32517         function types.
32518         (ix86_builtin_vectorized_function): Handle
32519         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
32520
32521 2011-03-14  Tom Tromey  <tromey@redhat.com>
32522
32523         * c-parser.c (c_parser_asm_string_literal): Clear
32524         warn_overlength_strings.
32525
32526 2011-03-14  Tom Tromey  <tromey@redhat.com>
32527
32528         * c-parser.c (disable_extension_diagnostics): Save
32529         warn_overlength_strings.
32530         (restore_extension_diagnostics): Restore warn_overlength_strings.
32531
32532 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
32533
32534         * BASE-VER: Change to 4.7.0.
32535
32536 2011-03-14  Richard Guenther  <rguenther@suse.de>
32537
32538         PR middle-end/48098
32539         * tree.c (build_vector_from_val): Adjust assert to requirements
32540         and reality.
32541
32542 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
32543
32544         PR bootstrap/48102
32545         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
32546
32547 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
32548
32549         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
32550         terms of target_flags_explicit. Adjust copyright year.
32551
32552         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
32553         * config/rs6000/t-freebsd: New file. Add override for
32554         LIB2FUNCS_EXTRA.
32555
32556 2011-03-13  Chris Demetriou  <cgd@google.com>
32557
32558         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
32559         (-fno-diagnostics-show-option): this, to reflect current default.
32560         (-Werror=): Update text about -fno-diagnostics-show-option.
32561
32562 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
32563
32564         PR target/48053
32565         * config/rs6000/predicates.md (easy_vector_constant_add_self,
32566         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
32567         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
32568         mode is not V2DImode or V2DFmode.
32569         (vspltis_constant): Do not handle V2DImode and V2DFmode.
32570         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
32571         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
32572         registers to 0.
32573         (movdi_internal64): Likewise.
32574
32575 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
32576
32577         PR tree-optimization/47127
32578         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
32579         parameter.
32580         (set_cloog_options): Same.
32581         (scop_to_clast): Same.
32582         (print_clast_stmt): Do not call cloog_state_malloc and
32583         cloog_state_free.
32584         (print_generated_program): Same.
32585         (gloog): Same.
32586         * graphite-clast-to-gimple.h (cloog_state): Declared.
32587         (scop_to_clast): Adjust declaration.
32588         * graphite.c (cloog_state): Defined here.
32589         (graphite_initialize): Call cloog_state_malloc.
32590         (graphite_finalize): Call cloog_state_free.
32591
32592 2011-03-11  Jason Merrill  <jason@redhat.com>
32593
32594         * attribs.c (lookup_attribute_spec): Take const_tree.
32595         * tree.h: Adjust.
32596
32597 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
32598
32599         * config/sparc/sparc.c (sparc_option_override): Use
32600         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
32601
32602 2011-03-11  Richard Guenther  <rguenther@suse.de>
32603
32604         PR tree-optimization/48067
32605         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
32606         multiplication result will be only used once on the target
32607         stmt.
32608
32609 2011-03-11  Richard Guenther  <rguenther@suse.de>
32610
32611         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
32612
32613 2011-03-11  Richard Guenther  <rguenther@suse.de>
32614
32615         PR lto/48073
32616         * tree.c (find_decls_types_r): Do not walk types only reachable
32617         from IDENTIFIER_NODEs.
32618
32619 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
32620
32621         PR middle-end/48044
32622         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
32623         all vnode->force_output nodes as needed.
32624
32625 2011-03-11  Jason Merrill  <jason@redhat.com>
32626
32627         PR c++/48069
32628         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
32629         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
32630
32631 2011-03-11  Martin Jambor  <mjambor@suse.cz>
32632
32633         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
32634         cgraph_node.
32635
32636 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
32637
32638         PR tree-optimization/48063
32639         * ipa-inline.c (cgraph_decide_inlining): Don't try to
32640         inline functions called once if !tree_can_inline_p (node->callers).
32641
32642 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
32643
32644         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
32645         extra_objs.
32646         * config/score/score3.c: Delete.
32647         * config/score/score3.h: Delete.
32648         * config/score/mul-div.S: Delete.
32649         * config/score/sfp-machine.h: Add new file.
32650         * config/score/constraints.md: Add new file.
32651         * config/score/t-score-softfp: Add new file.
32652         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
32653         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
32654         (score7_extra_constraint): Delete.
32655         (score7_option_override): Remove unused code.
32656         * config/score/score.c: Remove score3 and score5 define and code.
32657         * config/score/score.h: Remove score3 and score5 define and code.
32658         * config/score/score.md: Remove score3 template and unusual insn.
32659         * config/score/score.opt: Remove score3 and score5 options.
32660
32661 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32662
32663         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
32664         when _HPUX_SOURCE is defined.
32665         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
32666
32667 2011-03-10  Jason Merrill  <jason@redhat.com>
32668
32669         PR c++/48029
32670         * stor-layout.c (layout_type): Don't set structural equality
32671         on arrays of incomplete type.
32672         * tree.c (type_hash_eq): Handle comparing them properly.
32673
32674 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
32675
32676         PR debug/48043
32677         * config/s390/s390.c (s390_delegitimize_address): Make sure the
32678         result mode matches original rtl mode.
32679
32680 2011-03-10  Nick Clifton  <nickc@redhat.com>
32681
32682         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
32683         (andsi3, andsi3_flags): Fix timings for three operand alternative.
32684
32685 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
32686
32687         PR rtl-optimization/47866
32688         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
32689         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
32690         if target wasn't scalar.
32691         * function.c (assign_stack_temp_for_type): Assert that neither
32692         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
32693         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
32694         macro.
32695         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
32696
32697 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32698
32699         * config/s390/s390-protos.h (s390_label_align): New prototype.
32700         * config/s390/s390.c (s390_label_align): New function.
32701         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
32702
32703 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
32704
32705         PR target/47755
32706         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
32707         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
32708         (output_vec_const_move): Ditto.
32709
32710 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
32711
32712         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
32713         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
32714         * config/mips/mips.c (mips_preferred_reload_class): Make static.
32715         Change 'rclass' argument and result type to reg_class_t.
32716         (TARGET_PREFERRED_RELOAD_CLASS): Define.
32717
32718 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
32719
32720         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
32721         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
32722         (TARGET_MEMORY_MOVE_COST): Define.
32723         (avr_register_move_cost, avr_memory_move_cost): New Functions.
32724
32725 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
32726
32727         PR debug/47881
32728         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
32729         removed anything.
32730
32731         PR tree-optimization/48022
32732         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
32733         for EQ/NE_EXPR.
32734
32735 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
32736
32737         PR debug/47991
32738         * var-tracking.c (find_use_val): Return NULL for
32739         cui->sets && cui->store_p BLKmode MEMs.
32740
32741 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
32742
32743         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
32744         Remove.
32745         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
32746         xstormy16_print_operand_address): Remove.
32747         * config/stormy16/stormy16.c (xstormy16_print_operand,
32748         xstormy16_print_operand_address): Make static.
32749         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
32750
32751 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
32752
32753         PR target/47862
32754         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
32755         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
32756         before definition.
32757
32758 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
32759
32760         PR bootstrap/48000
32761         * cfgloopmanip.c (fix_bb_placements): Return immediately
32762         if FROM is BASE_LOOP's header.
32763
32764 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
32765
32766         * gimplify.c (gimplify_function_tree): Fix building calls
32767         to __builtin_return_address.
32768
32769 2011-03-07  Alan Modra  <amodra@gmail.com>
32770
32771         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
32772         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
32773         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
32774         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
32775         return_mode args.
32776         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
32777         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
32778         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
32779         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
32780         * config/rs6000/rs6000.c
32781         (rs6000_elf_end_indicate_exec_stack): Rename to..
32782         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
32783         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
32784         (rs6000_file_start): ..here.
32785         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
32786         file scope variables.
32787         (call_ABI_of_interest): New function.
32788         (init_cumulative_args): Set above vars when function return value
32789         is a float, vector, or small struct.
32790         (rs6000_function_arg_advance_1): Likewise for function args.
32791         (rs6000_va_start): Set rs6000_passes_float if variable arg function
32792         references float args.
32793
32794 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
32795
32796         * doc/cfg.texi: Remove "See" before @ref.
32797         * doc/invoke.texi: Likewise.
32798
32799 2011-03-05  Jason Merrill  <jason@redhat.com>
32800
32801         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
32802
32803 2011-03-05  Anthony Green  <green@moxielogic.com>
32804
32805         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
32806
32807 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
32808
32809         PR rtl-optimization/47899
32810         * cfgloopmanip.c (fix_bb_placements): Fix first argument
32811         to flow_loop_nested_p when moving the loop upward.
32812
32813 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
32814
32815         PR target/47719
32816         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
32817
32818 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
32819
32820         PR tree-optimization/47967
32821         * ipa-cp.c (build_const_val): Return NULL instead of creating
32822         VIEW_CONVERT_EXPR for mismatching sizes.
32823         (ipcp_create_replace_map): Return NULL if build_const_val failed.
32824         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
32825         give up on versioning.
32826
32827 2011-03-05  Alan Modra  <amodra@gmail.com>
32828
32829         PR target/47986
32830         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
32831         full cmodel medium/large lo_sum + high addresses.
32832
32833 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32834
32835         * config/s390/s390.c (s390_decompose_address): Reject non-literal
32836         pool references in UNSPEC_LTREL_OFFSET.
32837
32838 2011-03-04  Jan Hubicka  <jh@suse.cz>
32839
32840         PR lto/47497
32841         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
32842         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
32843         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
32844         Add node pointers.
32845         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
32846         cgraph_add_thunk): Add node pointers.
32847         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
32848         associated to right node.
32849         (input_node): Update use of cgraph_same_body_alias
32850         and cgraph_add_thunk.
32851
32852 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
32853
32854         * config/i386/i386.opt (mprefer-avx128): New flag.
32855         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
32856         modes when the flag -mprefer-avx128 is on.
32857
32858 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
32859
32860         * dwarf2out.c (compare_loc_operands): Fix address handling.
32861
32862 2011-03-04  Alan Modra  <amodra@gmail.com>
32863
32864         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
32865
32866 2011-03-04  Richard Guenther  <rguenther@suse.de>
32867
32868         PR middle-end/47968
32869         * expmed.c (extract_bit_field_1): Prefer vector modes that
32870         vec_extract patterns can handle.
32871
32872 2011-03-04  Richard Guenther  <rguenther@suse.de>
32873
32874         PR middle-end/47975
32875         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
32876
32877 2011-03-04  Richard Henderson  <rth@redhat.com>
32878
32879         * explow.c (emit_stack_save): Remove 'after' parameter.
32880         (emit_stack_restore): Likewise.
32881         * expr.h: Update to match.
32882         * builtins.c, calls.c, stmt.c: Likewise.
32883         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
32884         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
32885         * function.c (expand_function_end): Insert the emit_stack_save
32886         sequence before parm_birth_insn instead of after.
32887
32888 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
32889
32890         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
32891         (ssse3_pmaddubsw128): Ditto.
32892         (ssse3_pmaddubsw): Ditto.
32893
32894 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
32895
32896         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
32897
32898 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
32899
32900         PR c/47963
32901         * gimplify.c (omp_add_variable): Only call omp_notice_variable
32902         on TYPE_SIZE_UNIT if it is a DECL.
32903
32904         PR debug/47283
32905         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
32906         first operand is not is_gimple_mem_ref_addr, try to fold it.
32907         If the operand still isn't is_gimple_mem_ref_addr, clear
32908         MEM_EXPR on op0.
32909
32910 2011-03-03  Richard Guenther  <rguenther@suse.de>
32911
32912         PR middle-end/47283
32913         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
32914         match comment.
32915         (refs_may_alias_p_1): For release branches return true if
32916         we are confused by our input.
32917
32918 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32919
32920         * config/s390/s390.c (s390_function_value): Rename to ...
32921         (s390_function_and_libcall_value): ... this.
32922         (s390_function_value): New function.
32923         (s390_libcall_value): New function.
32924         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
32925         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
32926         target macro definitions.
32927         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
32928
32929 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
32930
32931         * config/i386/freebsd64.h (CC1_SPEC): Define.
32932         * config/i386/linux64.h (CC1_SPEC): Define.
32933         * config/i386/x86-64.h (CC1_SPEC): Don't define.
32934
32935 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
32936
32937         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
32938         Remove.
32939         * config/stormy16/stormy16.c: Include reload.h.
32940         (xstormy16_memory_move_cost): New function.
32941         (TARGET_MEMORY_MOVE_COST): Define.
32942
32943 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
32944
32945         PR rtl-optimization/47925
32946         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
32947         with side effects.  Remove the more-specific check for volatile asms.
32948
32949 2011-03-02  Alan Modra  <amodra@gmail.com>
32950
32951         PR target/47935
32952         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
32953         toc relative addresses for valid offsets.
32954
32955 2011-03-01  Richard Guenther  <rguenther@suse.de>
32956
32957         PR tree-optimization/47890
32958         * tree-vect-loop.c (get_initial_def_for_induction): Set
32959         related stmt properly.
32960
32961 2011-03-01  Richard Guenther  <rguenther@suse.de>
32962
32963         PR lto/47924
32964         * lto-streamer.c (lto_record_common_node): Also register
32965         the canonical type.
32966
32967 2011-03-01  Richard Guenther  <rguenther@suse.de>
32968
32969         PR lto/46911
32970         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
32971         Do not stream DECL_ABSTRACT_ORIGIN.
32972         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
32973         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
32974         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
32975         Do not stream DECL_ABSTRACT_ORIGIN.
32976         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
32977         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
32978
32979 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
32980
32981         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
32982         FUNCTION_VALUE_REGNO_P): Remove.
32983         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
32984         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
32985         Add 'outgoing' argument.
32986         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
32987         function.
32988         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
32989         TARGET_FUNCTION_VALUE_REGNO_P): Define.
32990
32991 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
32992
32993         PR debug/28047
32994         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
32995         (lookup_filename): Likewise.
32996         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
32997
32998 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
32999             Jakub Jelinek  <jakub@redhat.com>
33000
33001         PR middle-end/47893
33002         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
33003         (assign_stack_local_1): Change last argument type to int.
33004         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
33005         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
33006         don't record padding space into frame_space_list nor use those areas.
33007         (assign_stack_local): Adjust caller.
33008         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
33009         of assign_stack_local, pass 0 as last argument.
33010         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
33011         callers.
33012
33013 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
33014
33015         PR debug/47283
33016         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
33017         Use target address_mode and pointer_mode hooks instead of hardcoded
33018         Pmode and ptr_mode.  Handle some simple cases of extending if
33019         POINTERS_EXTEND_UNSIGNED < 0.
33020         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
33021         Call convert_debug_memory_address.
33022         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
33023         convert_debug_memory_address.
33024
33025         PR middle-end/46790
33026         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
33027         * configure: Regenerated.
33028         * config.in: Regenerated.
33029         * varasm.c (default_function_section): Return NULL
33030         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
33031
33032 2011-02-28  Martin Jambor  <mjambor@suse.cz>
33033
33034         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
33035         the description to match the printed values.
33036
33037 2011-02-28  Richard Guenther  <rguenther@suse.de>
33038
33039         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
33040         of the copied scope tree.
33041
33042 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33043
33044         * doc/extend.texi (Function Attributes): Avoid deeply (and
33045         wrongly) nested tables.
33046
33047 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
33048
33049         PR middle-end/47903
33050         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
33051         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
33052         r isn't op0 nor op1.
33053
33054 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
33055
33056         * config/avr/avr.md: Remove magic comment for emacs.
33057
33058 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
33059
33060         PR target/45261
33061         * config/avr/avr.c (avr_option_override): Use error on bad options.
33062         (avr_help): New function.
33063         (TARGET_HELP): Define.
33064
33065 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
33066
33067         PR target/42240
33068         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
33069         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
33070
33071 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
33072
33073         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
33074         (ARM Options): Ditto.
33075         (i386 and x86-64 Options): Ditto.
33076         (RX Options): Ditto.
33077         (SPARC Options): Ditto.
33078
33079 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
33080
33081         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
33082         FreeBSD 6 and later.  Generally use cpu generic.
33083
33084 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
33085
33086         * doc/cpp.texi: Update copyright years.
33087
33088 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
33089
33090         PR target/46898
33091         * config/lm32/lm32.md (ashrsi3): Added needed variable.
33092
33093 2011-02-25  Jon Beniston  <jon@beniston.com>
33094
33095         PR target/46898
33096         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
33097         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
33098         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
33099         (lm32_block_move_inline): Add type cast to remove warning.
33100         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
33101         (gen_int_relational): Move declarations to start of function.
33102
33103 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
33104
33105         PR tree-optimization/45470
33106         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
33107         can throw internally only.
33108         * tree-vect-stmts.c (vectorizable_call): Likewise.
33109
33110 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
33111
33112         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
33113         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
33114         * config/stormy16/stormy16-protos.h
33115         (xstormy16_preferred_reload_class): Remove.
33116         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
33117         static. Change 'rclass' argument and return type to reg_class_t.
33118         (TARGET_PREFERRED_RELOAD_CLASS,
33119         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
33120
33121 2011-02-24  Richard Guenther  <rguenther@suse.de>
33122
33123         * lto-streamer-in.c (input_bb): Do not find referenced vars
33124         in debug statements.
33125
33126 2011-02-23  Jason Merrill  <jason@redhat.com>
33127
33128         * common.opt (fabi-version): Document v5 and v6.
33129
33130 2011-02-23  Richard Guenther  <rguenther@suse.de>
33131
33132         PR tree-optimization/47849
33133         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
33134
33135 2011-02-23  Jie Zhang  <jie@codesourcery.com>
33136
33137         * opts-common.c (decode_cmdline_option): Print empty string
33138         argument as "" in decoded->orig_option_with_args_text.
33139         * gcc.c (execute): Print empty string argument as ""
33140         in the verbose output.
33141         (do_spec_1): Keep empty string argument.
33142
33143 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
33144
33145         * config.gcc: Declare score-* and crx-* obsolete.
33146
33147 2011-02-23  Jie Zhang  <jie@codesourcery.com>
33148
33149         PR rtl-optimization/47763
33150         * web.c (web_main): Ignore naked clobber when replacing register.
33151
33152 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
33153
33154         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
33155         Remove.
33156
33157 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
33158
33159         PR doc/47848
33160         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
33161
33162 2011-02-22  Mike Stump  <mikestump@comcast.net>
33163
33164         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
33165         assembler.
33166         * configure: Regenerate.
33167
33168 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
33169
33170         PR rtl-optimization/46002
33171         * ira-color.c (update_copy_costs): Change class intersection
33172         test to reg_class_contents[] test of 'hard_regno'.
33173
33174 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
33175
33176         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
33177         than Driver option.
33178         * config/hpux11.opt (mt): Likewise.
33179         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
33180         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
33181         * config/vax/elf.opt (mno-asm-pic): Likewise.
33182         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
33183
33184 2011-02-21  Mike Stump  <mikestump@comcast.net>
33185
33186         PR target/47822
33187         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
33188         tree so we can get save the type.
33189         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
33190         for CFString instead of trying to use past the end of the builtins.
33191         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
33192         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
33193         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
33194         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
33195         Rename to darwin_builtin_cfstring.
33196         (darwin_init_cfstring_builtins): Return the built type.
33197
33198 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
33199
33200         PR target/47840
33201         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
33202         (_mm256_insert_epi64): Use _mm_insert_epi64.
33203
33204 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
33205
33206         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
33207         * config/stormy16/stormy16-protos.h
33208         (xstormy16_mode_dependent_address_p): Remove.
33209         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
33210         Make static. Change return type to bool. Change argument type to
33211         const_rtx. Remove dead code.
33212         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
33213
33214 2011-02-21  Richard Guenther  <rguenther@suse.de>
33215
33216         PR lto/47820
33217         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
33218         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
33219         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
33220         TUs context.
33221         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
33222         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
33223
33224 2011-02-20  Richard Guenther  <rguenther@suse.de>
33225
33226         PR lto/47822
33227         * tree.c (free_lang_data_in_decl): Clean builtins from
33228         the TU decl BLOCK_VARS.
33229
33230 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
33231
33232         PR debug/47620
33233         PR debug/47630
33234         * haifa-sched.c (fix_tick_ready): Skip tick computation
33235         for debug insns.
33236
33237 2011-02-19  Richard Guenther  <rguenther@suse.de>
33238
33239         PR lto/47647
33240         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
33241         Remove lazy BLOCK_VARS streaming.
33242         (lto_input_ts_block_tree_pointers): Likewise.
33243         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
33244
33245 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
33246
33247         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
33248
33249 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
33250
33251         * config/i386/biarch32.h, config/i386/mach.h,
33252         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
33253
33254 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
33255
33256         PR target/47800
33257         * config/i386/i386.md (peephole2 for shift and plus): Use
33258         operands[1] original mode in the first insn.
33259
33260 2011-02-18  Mike Stump  <mikestump@comcast.net>
33261
33262         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
33263
33264 2011-02-18  Jan Hubicka  <jh@suse.cz>
33265
33266         PR middle-end/47788
33267         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
33268         to zero when the function is not inlinable at all.
33269
33270 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33271
33272         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
33273         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
33274         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
33275         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
33276         * config/pa/t-pa64: Likewise.
33277         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
33278
33279 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
33280
33281         PR driver/47787
33282         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
33283
33284 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33285
33286         PR target/47792
33287         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
33288
33289 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
33290
33291         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
33292         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
33293         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
33294         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
33295         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
33296         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
33297         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
33298         m32r_load_postinc_p, m32r_store_preinc_predec_p,
33299         m32r_legitimate_address_p): New functions.
33300         * config/m32r/constraints.md (constraint "S"): Don't use
33301         STORE_PREINC_PREDEC_P.
33302         (constraint "U"): Don't use LOAD_POSTINC_P.
33303
33304 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
33305
33306         PR rtl-optimization/46178
33307         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
33308         compute ira_hard_regno_cover_class[].
33309
33310 2011-02-18  Richard Guenther  <rguenther@suse.de>
33311
33312         PR lto/47798
33313         * lto-streamer.h (lto_global_var_decls): Declare.
33314         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
33315         statics for global var processing.
33316
33317 2011-02-18  Richard Guenther  <rguenther@suse.de>
33318
33319         PR tree-optimization/47737
33320         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
33321         edge dominance check.
33322
33323 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
33324
33325         PR debug/47780
33326         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
33327         avoid invalid rtx sharing.
33328
33329 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
33330
33331         * doc/cpp.texi (Obsolete Features): Add background on the
33332         origin of assertions.
33333
33334 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
33335
33336         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
33337         objc_abi == 2.
33338         * config/darwin.c (output_objc_section_asm_op): Added support for
33339         ABI v1 and v2.
33340         (is_objc_metadata): New.
33341         (darwin_objc2_section): New.
33342         (darwin_objc1_section): New.
33343         (machopic_select_section): Added support for ABI v1 and v2.
33344         (darwin_emit_objc_zeroed): New.
33345         (darwin_output_aligned_bss): Detect objc metadata and treat it
33346         appropriately.
33347         (darwin_asm_output_aligned_decl_common): Same.
33348         (darwin_asm_output_aligned_decl_local): Same.
33349         * config/darwin-sections.def: Updated for ABI v1 and v2.
33350         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
33351         compiling Objective-C code for the NeXT runtime, default to using
33352         ABI version 0 for 32-bit, and version 2 for 64-bit.
33353
33354 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33355
33356         * common.opt (optimize_fast): New Variable.
33357         * opts.c (default_options_optimization): Use opts->x_optimize_fast
33358         instead of local variable ofast.
33359
33360 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
33361
33362         * doc/invoke.texi (fobjc-abi-version): Documented.
33363         (fobjc-nilcheck): Documented.
33364         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
33365         version.
33366
33367 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33368
33369         PR driver/47390
33370         * common.opt (export-dynamic): New Driver option.
33371         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
33372
33373 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33374
33375         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
33376
33377 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
33378             Jan Hubicka  <jh@suse.cz>
33379
33380         PR debug/47106
33381         PR debug/47402
33382         * cfgexpand.c (account_used_vars_for_block): Remove.
33383         (estimated_stack_frame_size): Use referenced vars.
33384         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
33385         that were referenced in the original function.  Test src_fn
33386         rather than cfun.  Drop redundant get_var_ann.
33387         (setup_one_parameter): Drop redundant get_var_ann.
33388         (declare_return_variable): Likewise.
33389         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
33390         (copy_arguments_for_versioning): Drop redundant get_var_ann.
33391         * ipa-inline.c (compute_inline_parameters): Do not compute
33392         disregard_inline_limits here.
33393         (compute_inlinable_for_current, pass_inlinable): New.
33394         (pass_inline_parameters): Require PROP_referenced_vars.
33395         * cgraphunit.c (cgraph_process_new_functions): Don't run
33396         compute_inline_parameters explicitly unless function is in SSA form.
33397         (cgraph_analyze_function): Set .disregard_inline_limits.
33398         * tree-sra.c (convert_callers): Compute inliner parameters
33399         only for functions already in SSA form.
33400
33401 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33402
33403         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
33404         -mlittle-endian-data.
33405
33406 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33407
33408         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
33409         -mno-fpu, not -fpu and -no-fpu.
33410         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
33411         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
33412
33413 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
33414
33415         PR target/43653
33416         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
33417         input reload with PLUS RTX.
33418
33419 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33420
33421         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
33422         of InverseVar(MDMX).
33423
33424 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33425
33426         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
33427         --m4-340.
33428
33429 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33430
33431         * config/mn10300/mn10300.opt (mno-crt0): New.
33432
33433 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33434
33435         * config/m68k/uclinux.opt (static-libc): New Driver option.
33436
33437 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33438
33439         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
33440
33441 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33442
33443         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
33444         %{muser-extend-enabled}.
33445
33446 2011-02-16  Richard Guenther  <rguenther@suse.de>
33447
33448         PR tree-optimization/47738
33449         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
33450         the TODO from tree_predictive_commoning.
33451
33452 2011-02-15  Jeff Law  <law@redhat.com>
33453
33454         Revert
33455         2011-01-25  Jeff Law  <law@redhat.com>
33456
33457         PR rtl-optimization/37273
33458         * ira-costs.c (scan_one_insn): Detect constants living in memory and
33459         handle them like argument loads from stack slots.  Do not double
33460         count memory for memory constants and argument loads from stack slots.
33461
33462 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
33463
33464         PR target/47755
33465         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
33466         mode for vector constants.  Remove code that checks for TImode.
33467
33468 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33469
33470         PR debug/47106
33471         PR debug/47402
33472         * cgraph.h (compute_inline_parameters): Return void.
33473         * ipa-inline.c (compute_inline_parameters): Adjust.
33474
33475 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33476
33477         PR debug/47106
33478         PR debug/47402
33479         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
33480         rather than decl.
33481         * cfgexpand.c (estimated_stack_frame_size): Likewise.
33482         * ipa-inline.c (compute_inline_parameters): Adjust.
33483
33484 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33485
33486         PR debug/47106
33487         PR debug/47402
33488         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
33489         Adjust all users.  Pass FN to...
33490         * tree-flow-inline.h (first_referenced_var): ... this.  Add
33491         fn argument.
33492         * ipa-struct-reorg.c: Adjust.
33493         * tree-dfa.c: Adjust.
33494         * tree-into-ssa.c: Adjust.
33495         * tree-sra.c: Adjust.
33496         * tree-ssa-alias.c: Adjust.
33497         * tree-ssa-live.c: Adjust.
33498         * tree-ssa.c: Adjust.
33499         * tree-ssanames.c: Adjust.
33500         * tree-tailcall.c: Adjust.
33501
33502 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33503
33504         PR debug/47106
33505         PR debug/47402
33506         * tree-flow.h (referenced_var_lookup): Add fn parameter.
33507         Adjust all callers.
33508         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
33509         * tree-flow-inline.h: Adjust.
33510         * gimple-pretty-print.c: Adjust.
33511         * tree-into-ssa.c: Adjust.
33512         * tree-ssa.c: Adjust.
33513         * cfgexpand.c: Adjust.
33514
33515 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
33516
33517         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
33518         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33519         (EXTRA_CONSTRAINT): Delete.
33520         * config/iq2000/constraints.md: New file.
33521         * config/iq2000/iq2000.md: Include it.
33522         (define_insn ""): Delete.
33523         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
33524         unsupported constraint letters from patterns.
33525         (call_value, call_value_internal1): Likewise.
33526         (call_value_multiple_internal1): Likewise.
33527
33528 2011-02-15  Nick Clifton  <nickc@redhat.com>
33529
33530         * config/mn10300/mn10300.c: Include tm-constrs.h.
33531         (struct liw_data): New data structure describing an LIW candidate
33532         instruction.
33533         (extract_bundle): Use struct liw_data.  Allow small integer
33534         operands for some instructions.
33535         (check_liw_constraints): Use struct liw_data.  Remove swapped
33536         parameter.  Add comments describing the checks.  Fix bug when
33537         assigning the source of liw1 to the source of liw2.
33538         (liw_candidate): Delete.  Code moved into extract_bundle.
33539         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
33540         before swapping.
33541         * config/mn10300/predicates.md (liw_operand): New predicate.
33542         Allows registers and small integer constants.
33543         * config/mn10300/constraints.md (O): New constraint.  Accetps
33544         integers in the range -8 to +7 inclusive.
33545         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
33546         for moving a small integer into a register.  Give this alternative
33547         LIW attributes.
33548         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
33549         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
33550         using the J,K,L and M constraints,
33551         (liw): Remove SI mode on second operands to allow for HI and QI
33552         mode values.
33553         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
33554         instruction.
33555
33556 2011-02-15  Richard Guenther  <rguenther@suse.de>
33557
33558         PR tree-optimization/47743
33559         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
33560         for a non-type-compatible VN lookup bail out.
33561
33562 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
33563
33564         * config/fr30/constraints.md: New file.
33565         * config/fr30/fr30.md: Include it.
33566         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
33567         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33568         (EXTRA_CONSTRAINT): Delete.
33569
33570 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
33571
33572         * config/frv/constraints.md: New file.
33573         * config/frv/predicates.md: Include it.
33574         * config/frv/frv.c (reg_class_from_letter): Delete.
33575         (frv_option_override): Don't initialize it.
33576         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
33577         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
33578         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
33579         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
33580         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
33581         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33582         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
33583         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
33584         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
33585         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
33586         (REG_CLASS_FROM_CONSTRAINT): Delete.
33587
33588 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
33589
33590         PR middle-end/47581
33591         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
33592         if frame size is 0 in a leaf function.
33593
33594 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33595
33596         PR pch/14940
33597         * config/alpha/host-osf.c: New file.
33598         * config/alpha/x-osf: New file.
33599         * config.host (alpha*-dec-osf*): Use it.
33600
33601 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
33602
33603         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
33604         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
33605         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
33606         (rx_mode_dependent_address_p): ...this. Make static. Change argument
33607         type to const_rtx.
33608         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
33609
33610 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
33611
33612         * config/stormy16/constraints.md: New file.
33613         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
33614         Use satisfies_constraint_Q and satisfies_constraint_R.
33615         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
33616         Delete.
33617         (xstormy16_legitiamte_address_p): Declare.
33618         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
33619         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33620         (EXTRA_CONSTRAINT): Delete.
33621         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
33622         Un-staticize.
33623         (xstormy16_extra_constraint_p): Delete.
33624
33625 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
33626
33627         PR tree-optimization/46494
33628         * loop-unroll.c (split_edge_and_insert): Adjust comment.
33629         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
33630         (pass_rtl_loop_done): Add TODO_verify_flow.
33631         * fwprop.c (pass_rtl_fwprop): Likewise.
33632         * modulo-sched.c (pass_sms): Likewise.
33633         * tree-ssa-dom.c (pass_dominator): Likewise.
33634         * tree-ssa-loop-ch.c (pass_ch): Likewise.
33635         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
33636         (pass_tree_loop_done): Likewise.
33637         * tree-ssa-pre.c (execute_pre): Likewise.
33638         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
33639         * tree-ssa-sink.c (pass_sink_code): Likewise.
33640         * tree-vrp.c (pass_vrp): Likewise.
33641
33642 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
33643
33644         * config/v850/constraints.md: New file.
33645         * config/v850/v850.md: Include it.
33646         * config/v850/predicates.md (reg_or_0_operand): Use
33647         satisfies_constraint_G.
33648         (special_symbolref_operand): Use satisfies_constraint_K.
33649         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
33650         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
33651         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
33652         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
33653         (EXTRA_CONSTRAINT): Delete.
33654         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
33655         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
33656         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
33657
33658 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
33659
33660         PR target/47696
33661         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
33662         description.
33663
33664 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
33665
33666         * config/mcore/constraints.md: New file.
33667         * config/mcore/mcore.md: Include it.
33668         * config/mcore/mcore.c (reg_class_from_letter): Delete.
33669         * config/mcore/mcore.h (reg_class_from_letter): Delete.
33670         (REG_CLASS_FROM_LETTER): Delete.
33671         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
33672         insn_const_int_ok_for_constraint.
33673         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
33674         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
33675         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33676         (EXTRA_CONSTRAINT): Delete.
33677
33678 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33679
33680         PR ada/41929
33681         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
33682         (IS_SIGHANDLER): Define.
33683         (sparc64_is_sighandler): New function, split off from
33684         sparc64_fallback_frame_state.
33685         (sparc_is_sighandler): New function, split off from
33686         sparc_fallback_frame_state.
33687         (sparc64_fallback_frame_state): Merge with ...
33688         (sparc_fallback_frame_state): ... this into ...
33689         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
33690         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
33691         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
33692         stack instead of hardcoded offsets.
33693
33694 2011-02-14  Andriy Gapon  <avg@freebsd.org>
33695
33696         PR target/45808
33697         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
33698
33699 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33700
33701         * configure: Regenerate.
33702
33703 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
33704
33705         PR driver/45731
33706         * gcc.c (asm_options): Correct spec matching --target-help.
33707
33708 2011-02-12  Martin Jambor  <mjambor@suse.cz>
33709
33710         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
33711         to gimple call error.
33712
33713 2011-02-12  Mike Stump  <mikestump@comcast.net>
33714
33715         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
33716         comments in backslash regions.
33717
33718 2011-02-12  Mike Stump  <mikestump@comcast.net>
33719             Jakub Jelinek  <jakub@redhat.com>
33720             Iain Sandoe  <iains@gcc.gnu.org>
33721
33722         PR target/47324
33723         * dwarf2out.c (output_cfa_loc): When required, apply the
33724         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
33725         (output_loc_sequence): Likewise.
33726         (output_loc_operands_raw): Likewise.
33727         (output_loc_sequence_raw): Likewise.
33728         (output_cfa_loc): Likewise.
33729         (output_loc_list): Suppress register number adjustment when
33730         calling output_loc_sequence()
33731         (output_die): Likewise.
33732
33733 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
33734
33735         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
33736         Remove macros.
33737         * config/xtensa/xtensa.c (xtensa_register_move_cost,
33738         xtensa_memory_move_cost): New functions.
33739         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
33740
33741 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
33742
33743         PR lto/47225
33744         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
33745         in the current directory.
33746         * configure: Rebuilt.
33747
33748 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
33749
33750         * config/darwin.c (darwin_override_options): Add a hunk missed
33751         from the commit of r168571.  Trim comment line lengths and
33752         correct indents of the preceding block.
33753
33754 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
33755
33756         * gcc.c (driver_handle_option): Concatenate the argument to -F with
33757         the switch.
33758
33759 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
33760
33761         * common.opt (nostartfiles): New Driver option.
33762
33763 2011-02-11  Xinliang David Li  <davidxl@google.com>
33764
33765         PR tree-optimization/47707
33766         * tree-chrec.c (convert_affine_scev): Keep type precision.
33767
33768 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
33769
33770         PR tree-optimization/47420
33771         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
33772
33773 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
33774
33775         PR rtl-optimization/47614
33776         * rtl.h (check_for_inc_dec): Declare.
33777         * dse.c (check_for_inc_dec): Externalize...
33778         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
33779         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
33780
33781 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
33782
33783         PR driver/47678
33784         * gcc.c (main): Do not compile inputs if there were errors in
33785         option handling.
33786         * opts-common.c (read_cmdline_option): Check for wrong language
33787         after other error checks.
33788
33789 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
33790
33791         * cgraph.c: Fix comment typos.
33792         * cgraph.h: Likewise.
33793         * cgraphunit.c: Likewise.
33794         * ipa-cp.c: Likewise.
33795         * ipa-inline.c: Likewise.
33796         * ipa-prop.c: Likewise.
33797         * ipa-pure-const.c: Likewise.
33798         * ipa-ref.c: Likewise.
33799         * ipa-reference.c: Likewise.
33800
33801 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
33802
33803         PR debug/47684
33804         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
33805
33806 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33807
33808         PR testsuite/47400
33809         * doc/sourcebuild.texi (Require Support): Document
33810         dg-require-ascii-locale.
33811
33812 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
33813
33814         * doc/lto.texi (Write summary): Fix missing parentheses.
33815
33816 2011-02-10  DJ Delorie  <dj@redhat.com>
33817
33818         * config/m32c/m32c.c (m32c_option_override): Disable
33819         -fcombine-stack-adjustments until flag value tracking and compare
33820         optimization can be rewritten.
33821
33822 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
33823
33824         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
33825         PROCESSOR_POWER7.
33826         (PROCESSOR_DEFAULT64): Likewise.
33827
33828 2011-02-10  Richard Henderson  <rth@redhat.com>
33829
33830         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
33831         change from 2011-02-03.
33832         * config/rx/rx.c (flags_from_code): Likewise.
33833         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
33834         is valid, n/pz otherwise.
33835         (rx_select_cc_mode): Return CCmode if Y is not zero.
33836
33837 2011-02-10  Richard Guenther  <rguenther@suse.de>
33838
33839         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
33840
33841 2011-02-10  Richard Guenther  <rguenther@suse.de>
33842
33843         PR tree-optimization/47677
33844         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
33845
33846 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
33847
33848         PR target/47665
33849         * combine.c (make_compound_operation): Only change shifts into
33850         multiplication for SCALAR_INT_MODE_P.
33851
33852 2011-02-10  Jie Zhang  <jie@codesourcery.com>
33853
33854         PR testsuite/47622
33855         Revert
33856         2011-02-05  Jie Zhang  <jie@codesourcery.com>
33857         PR debug/42631
33858         * web.c (entry_register): Don't clobber the number of the
33859         first uninitialized reference in used[].
33860
33861 2011-02-09  Richard Guenther  <rguenther@suse.de>
33862
33863         PR tree-optimization/47664
33864         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
33865         all edges again.
33866
33867 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
33868
33869         PR target/46481
33870         PR target/47032
33871         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
33872         PROCESSOR_POWER7.
33873         (PROCESSOR_DEFAULT64): Same.
33874         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
33875
33876 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33877
33878         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
33879
33880 2011-02-09  Martin Jambor  <mjambor@suse.cz>
33881
33882         PR middle-end/45505
33883         * tree-sra.c (struct access): New flags grp_scalar_read and
33884         grp_scalar_write.  Changed description of assignment read and write
33885         flags.
33886         (dump_access): Dump new flags, reorder all of them.
33887         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
33888         to detect multiple scalar reads.
33889         (analyze_access_subtree): Use the new scalar read write flags instead
33890         of the old flags.  Adjusted comments.
33891
33892 2011-02-08  DJ Delorie  <dj@redhat.com>
33893
33894         PR target/47548
33895         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
33896         patterns.
33897
33898 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33899
33900         * config/m68k/uclinux.opt: New.
33901         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
33902
33903 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33904
33905         * config/cris/elf.opt (sim): New Driver option.
33906
33907 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33908
33909         * config/xtensa/elf.opt: New.
33910         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
33911
33912 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33913
33914         * config/vax/elf.opt: New.
33915         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
33916
33917 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33918
33919         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
33920
33921 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33922
33923         * config/gnu-user.opt: New.
33924         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
33925         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
33926         *-*-uclinux*): Use gnu-user.opt.
33927
33928 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
33929
33930         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
33931         * config/i386/gnu.h (CPP_SPEC): Likewise.
33932
33933 2011-02-08  Ian Lance Taylor  <iant@google.com>
33934
33935         * common.opt (fcx-limited-range): Add SetByCombined flag.
33936         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
33937         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
33938         (fassociative-math, freciprocal-math): Likewise.
33939         (funsafe-math-optimizations): Likewise.
33940         * opth-gen.awk: Handle SetByCombined.
33941         * optc-gen.awk: Likewise.
33942         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
33943         (set_unsafe_math_optimizations_flags): Likewise.
33944         * doc/options.texi (Option properties): Document SetByCombined.
33945
33946 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33947
33948         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
33949         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
33950         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
33951         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
33952         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
33953
33954 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
33955
33956         PR tree-optimization/46834
33957         PR tree-optimization/46994
33958         PR tree-optimization/46995
33959         * graphite-sese-to-poly.c (used_outside_reduction): New.
33960         (detect_commutative_reduction): Call used_outside_reduction.
33961         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
33962         translate_scalar_reduction_to_array only when at least one
33963         loop-phi/close-phi tuple has been detected.
33964
33965 2011-02-08  Richard Guenther  <rguenther@suse.de>
33966
33967         PR middle-end/47639
33968         * tree-vect-generic.c (expand_vector_operations_1): Update
33969         stmts here ...
33970         (expand_vector_operations): ... not here.  Cleanup EH info
33971         and the CFG if required.
33972
33973 2011-02-08  Richard Guenther  <rguenther@suse.de>
33974
33975         PR tree-optimization/47641
33976         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
33977         require type compatibility.
33978
33979 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33980
33981         * gimple-low.c (lower_function_body): Don't remove the location of
33982         the return statement here.
33983         (lower_gimple_return): Do it here instead but only if the return
33984         statement is actually used twice.
33985
33986 2011-02-08  Richard Guenther  <rguenther@suse.de>
33987
33988         PR tree-optimization/47632
33989         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
33990         unused up_to_stmt parameter, return whether cfg-cleanup is
33991         necessary, remove EH info properly.
33992         (forward_propagate_into_gimple_cond): Adjust caller.
33993         (forward_propagate_into_cond): Likewise.
33994         (forward_propagate_comparison): Likewise.
33995         (tree_ssa_forward_propagate_single_use_vars): Make
33996         forward_propagate_comparison case similar to the two others.
33997
33998 2011-02-08  Nick Clifton  <nickc@redhat.com>
33999
34000         * config/mn10300/mn10300.opt (mliw): New command line option.
34001         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
34002         (liw_bundling): New automaton.
34003         (liw): New attribute.
34004         (liw_op): New attribute.
34005         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
34006         (movsi_internal): Add LIW attributes.
34007         (andsi3): Likewise.
34008         (iorsi3): Likewise.
34009         (xorsi3): Likewise.
34010         (addsi3): Separate register and immediate alternatives.
34011         Add LIW attributes.
34012         (subsi3): Likewise.
34013         (cmpsi): Likewise.
34014         (aslsi3): Likewise.
34015         (lshrsi3): Likewise.
34016         (ashrsi3): Likewise.
34017         (liw): New pattern.
34018         * config/mn10300/mn10300.c (liw_op_names): New
34019         (mn10300_print_operand): Handle 'W' operand descriptor.
34020         (extract_bundle): New function.
34021         (check_liw_constraints): New function.
34022         (liw_candidate): New function.
34023         (mn10300_bundle_liw): New function.
34024         (mn10300_reorg): New function.
34025         (TARGET_MACHINE_DEPENDENT_REORG): Define.
34026         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
34027         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
34028         __LIW__ or __NO_LIW__.
34029         * doc/invoke.texi: Describe the -mliw command line option.
34030
34031 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34032
34033         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
34034         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
34035         pthread_mutex_unlock): Remove.
34036         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
34037         * config/pa/t-pa64: Likewise.
34038         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
34039         shared libc if not linking against libpthread.
34040         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
34041
34042 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
34043
34044         PR target/47558
34045         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
34046         on 10.6 and later to ensure that we always use the unwinder from
34047         the system.  Only add -no_compact_unwind when tarteting darwin
34048         10.6 or later.
34049
34050 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
34051
34052         PR target/46997
34053         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
34054         (vec_interleave_lowv2sf): Ditto.
34055         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
34056         (vec_extract_oddv2sf): Ditto.
34057
34058 2011-02-07  Mike Stump  <mikestump@comcast.net>
34059
34060         PR target/42333
34061         Add __ieee_divdc3 entry point.
34062         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
34063         entry point.
34064         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
34065         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
34066         * config/darwin.c (darwin_rename_builtins): Add.
34067         * config/darwin-protos.h (darwin_rename_builtins): Add.
34068
34069 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
34070
34071         PR target/47636
34072         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
34073         for the condition.
34074
34075 2011-02-07  Mike Stump  <mikestump@comcast.net>
34076
34077         * config/darwin.opt (mmacosx-version-min): Update default OS version.
34078
34079 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
34080
34081         PR target/47534
34082         * config/avr/libgcc.S (exit): Move .endfunc
34083
34084 2011-02-07  Richard Guenther  <rguenther@suse.de>
34085
34086         PR tree-optimization/47615
34087         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
34088         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
34089         (run_scc_vn): Initialize it.
34090         (visit_reference_op_load): Use it.
34091         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
34092
34093 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34094
34095         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
34096         DImode trapping arithmetic libfuncs.
34097
34098 2011-02-07  Richard Guenther  <rguenther@suse.de>
34099
34100         PR tree-optimization/47621
34101         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
34102         two duplicates ...
34103         (execute_update_addresses_taken): ... here.  Make it more
34104         conservative in what we accept.
34105
34106 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
34107
34108         * config/sparc/freebsd.h (ASM_SPEC): Define.
34109         * config/sparc/vxworks.h (ASM_SPEC): Define.
34110
34111 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
34112
34113         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
34114
34115 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
34116
34117         * doc/invoke.texi: Remove reference to compiler internals from
34118         user documentation.
34119
34120         * reg-notes.def: Remove REG_VALUE_PROFILE.
34121         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
34122
34123 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
34124
34125         PR middle-end/47610
34126         * varasm.c (default_section_type_flags): If decl is NULL,
34127         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
34128
34129 2011-02-05  Jie Zhang  <jie@codesourcery.com>
34130
34131         PR debug/42631
34132         * web.c (entry_register): Don't clobber the number of the
34133         first uninitialized reference in used[].
34134
34135 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
34136
34137         PR tree-optimization/46194
34138         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
34139         (build_classic_dist_vector_1): Do not represent classic distance
34140         vectors when the access functions are variating in different loops.
34141
34142 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
34143
34144         * config/mips/iris6.opt: New.
34145         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
34146
34147 2011-02-04  Richard Henderson  <rth@redhat.com>
34148             Steve Ellcey  <sje@cup.hp.com>
34149
34150         PR target/46997
34151         * config/ia64/predicates.md (mux1_brcst_element): New.
34152         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
34153         * config/ia64/ia64.c (ia64_unpack_assemble): New.
34154         (ia64_unpack_sign): New.
34155         (ia64_expand_unpack): Rewrite using new routines.
34156         (ia64_expand_widen_sum): Ditto.
34157         (ia64_expand_dot_prod_v8qi): Ditto.
34158         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
34159         routines, add endian check.
34160         (pmpy2_even): Rename from pmpy2_r, add endian check.
34161         (pmpy2_odd): Rename from pmpy2_l, add endian check.
34162         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
34163         (vec_widen_smult_hi_v4hi): Ditto.
34164         (vec_widen_umult_lo_v4hi): Ditto.
34165         (vec_widen_umult_hi_v4hi): Ditto.
34166         (mulv2si3): Change endian checks.
34167         (sdot_prodv4hi): Rewrite with new calls.
34168         (udot_prodv4hi): New.
34169         (vec_pack_ssat_v4hi): Add endian check.
34170         (vec_pack_usat_v4hi): Ditto.
34171         (vec_pack_ssat_v2si): Ditto.
34172         (max1_even): Rename from max1_r, add endian check.
34173         (max1_odd): Rename from max1_l, add endian check.
34174         (*mux1_rev): Format change.
34175         (*mux1_mix): Ditto.
34176         (*mux1_shuf): Ditto.
34177         (*mux1_alt): Ditto.
34178         (*mux1_brcst_v8qi): Use new predicate.
34179         (vec_extract_evenv8qi): Remove endian check.
34180         (vec_extract_oddv8qi): Ditto.
34181         (vec_interleave_lowv4hi): Format change.
34182         (vec_interleave_highv4hi): Ditto.
34183         (mix2_even): Rename from mix2_r, add endian check.
34184         (mix2_odd): Rename from mux2_l, add endian check.
34185         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
34186         (vec_extract_evenodd_helper): Format change.
34187         (vec_extract_evenv4hi): Remove endian check.
34188         (vec_extract_oddv4hi): Remove endian check.
34189         (vec_interleave_lowv2si): Format change.
34190         (vec_interleave_highv2si): Format change.
34191         (vec_initv2si): Remove endian check.
34192         (vecinit_v2si): Add endian check.
34193         (reduc_splus_v2sf): Add endian check.
34194         (reduc_smax_v2sf): Ditto.
34195         (reduc_smin_v2sf): Ditto.
34196         (vec_initv2sf): Remove endian check.
34197         (fpack): Add endian check.
34198         (fswap): Add endian check.
34199         (vec_interleave_highv2sf): Add endian check.
34200         (vec_interleave_lowv2sf): Add endian check.
34201         (fmix_lr): Add endian check.
34202         (vec_setv2sf): Format change.
34203         (*vec_extractv2sf_0_be): Use shift to extract operand.
34204         (*vec_extractv2sf_1_be): New.
34205         (vec_pack_trunc_v4hi): Add endian check.
34206         (vec_pack_trunc_v2si): Format change.
34207
34208 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
34209
34210         PR inline-asm/23200
34211         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
34212         do bb, locus and block comparison and disallow loads if it is not set.
34213         (stmt_is_replaceable_p): New function.
34214         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
34215         callers.
34216         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
34217         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
34218         SSA_NAME_DEF_STMT.
34219         * tree-flow.h (stmt_is_replaceable_p): New prototype.
34220
34221 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
34222
34223         * config/rs6000/xilinx.opt: New.
34224         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
34225
34226 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
34227
34228         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
34229
34230 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
34231
34232         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
34233         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
34234         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
34235         secondary_reload_info, xtensa_secondary_reload): Remove.
34236         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
34237         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
34238         (xtensa_preferred_reload_class): Make static. Change return and
34239         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
34240         Use CONST_DOUBLE_P predicate.
34241         (xtensa_preferred_output_reload_class): New function.
34242         (xtensa_secondary_reload): Make static.
34243
34244 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
34245
34246         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
34247         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
34248         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
34249
34250 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
34251
34252         PR middle-end/31490
34253         * output.h (SECTION_RELRO): Define.
34254         (SECTION_MACH_DEP): Adjust.
34255         (get_variable_section): New prototype.
34256         * varpool.c (varpool_finalize_named_section_flags): New function.
34257         (varpool_assemble_pending_decls): Call it.
34258         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
34259         * cgraphunit.c (cgraph_output_in_order): Call
34260         varpool_finalize_named_section_flags.
34261         * varasm.c (get_section): Allow section flags conflicts between
34262         relro and read-only sections if the section hasn't been declared yet.
34263         Set SECTION_OVERRIDE after diagnosing section type conflict.
34264         (get_variable_section): No longer static.
34265         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
34266         readonly sections that need relocations.
34267         (decl_readonly_section_1): New function.
34268         (decl_readonly_section): Use it.
34269
34270         Revert:
34271         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
34272                     Steve Ellcey  <sje@cup.hp.com>
34273
34274         PR middle-end/31490
34275         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
34276         if section attribute used.
34277
34278 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
34279
34280         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
34281         * config/darwin.c (SECTION_NO_ANCHOR): Define.
34282         (darwin_init_sections): Remove assertion.
34283
34284 2011-02-03  Nick Clifton  <nickc@redhat.com>
34285
34286         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
34287         lt and ge.
34288         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
34289         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
34290         instead of "n" and "pz".
34291         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
34292         CC_FLAG_S.
34293
34294 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
34295
34296         PR target/47312
34297         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
34298         fma, expand FMA_EXPR as fma{,f,l} call.
34299
34300         PR lto/47274
34301         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
34302         copy them into a unsigned char variable and pass address of it to
34303         lto_output_data_stream.
34304
34305         PR target/47564
34306         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
34307         around backend_init_target and lang_dependent_init_target calls.
34308         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
34309         (verify_cgraph_node): Don't call set_cfun here.  Use
34310         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
34311         Set error_found for incorrectly represented calls to thunks.
34312
34313 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
34314
34315         PR debug/43092
34316         PR rtl-optimization/43494
34317         * rtl.h (for_each_inc_dec_fn): New type.
34318         (for_each_inc_dec): Declare.
34319         * rtlanal.c (struct for_each_inc_dec_ops): New type.
34320         (for_each_inc_dec_find_inc_dec): New fn.
34321         (for_each_inc_dec_find_mem): New fn.
34322         (for_each_inc_dec): New fn.
34323         * dse.c (struct insn_size): Remove.
34324         (replace_inc_dec, replace_inc_dec_mem): Remove.
34325         (emit_inc_dec_insn_before): New fn.
34326         (check_for_inc_dec): Use it, along with for_each_inc_dec.
34327         (canon_address): Pass mem modes to cselib_lookup.
34328         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
34329         (cselib_lookup_from_insn): Likewise.
34330         (cselib_subst_to_values): Likewise.
34331         * cselib.c (find_slot_memmode): New var.
34332         (cselib_find_slot): New fn.  Use it instead of
34333         htab_find_slot_with_hash everywhere.
34334         (entry_and_rtx_equal_p): Use find_slot_memmode.
34335         (autoinc_split): New fn.
34336         (rtx_equal_for_cselib_p): Rename and implement in terms of...
34337         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
34338         Deal with autoinc.  Special-case recursion into MEMs.
34339         (cselib_hash_rtx): Likewise.
34340         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
34341         address and MEM modes.
34342         (cselib_subst_to_values): Add memmode, pass it on.
34343         Deal with autoinc.
34344         (cselib_lookup): Add memmode argument, pass it on.
34345         (cselib_lookup_from_insn): Add memmode.
34346         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
34347         (struct cselib_record_autoinc_data): New.
34348         (cselib_record_autoinc_cb): New fn.
34349         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
34350         mode to cselib_lookup.  Reset autoinced REGs here instead of...
34351         (cselib_process_insn): ... here.
34352         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
34353         to cselib_lookup.
34354         (add_uses): Likewise, also to cselib_subst_to_values.
34355         (add_stores): Likewise.
34356         * sched-deps.c (add_insn_mem_dependence): Pass mode to
34357         cselib_subst_to_values.
34358         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
34359         * gcse.c (do_local_cprop): Adjusted.
34360         * postreload.c (reload_cse_simplify_set): Adjusted.
34361         (reload_cse_simplify_operands): Adjusted.
34362         * sel-sched-dump (debug_mem_addr_value): Pass mode.
34363
34364 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
34365
34366         PR tree-optimization/45122
34367         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
34368         unsafe assumptions when there's more than one loop exit.
34369
34370 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
34371
34372         PR target/47272
34373         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
34374         Document using vector double with the load/store builtins, and
34375         that the load/store builtins always use Altivec instructions.
34376
34377         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
34378         to use altivec memory instructions, even on VSX.
34379         (vector_altivec_store_<mode>): Ditto.
34380
34381         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
34382         function.
34383
34384         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
34385         V2DF, V2DI support to load/store overloaded builtins.
34386
34387         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
34388         altivec load/store builtins for V2DF/V2DI types.
34389
34390         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34391         set avoid indexed addresses on power6 if -maltivec.
34392         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
34393         vector_altivec_load/vector_altivec_store builtins.
34394         (altivec_expand_st_builtin): Ditto.
34395         (altivec_expand_builtin): Add VSX memory builtins.
34396         (rs6000_init_builtins): Add V2DI types to internal types.
34397         (altivec_init_builtins): Add support for V2DF/V2DI altivec
34398         load/store builtins.
34399         (rs6000_address_for_altivec): Insure memory address is appropriate
34400         for Altivec.
34401
34402         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
34403         vec_vsx_ld and vec_vsx_st.
34404         (vsx_store_<mode>): Ditto.
34405
34406         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
34407         variables to hold long long types for VSX vector memory builtins.
34408         (RS6000_BTI_unsigned_long_long): Ditto.
34409         (long_long_integer_type_internal_node): Ditti.
34410         (long_long_unsigned_type_internal_node): Ditti.
34411
34412         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
34413         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
34414         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
34415
34416         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
34417         short cuts.
34418         (vec_vsx_st): Ditto.
34419
34420 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
34421
34422         * config/pa/pa-hpux10.opt: New.
34423         * config/hpux11.opt (pthread): New Driver option.
34424         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
34425         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
34426
34427 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
34428
34429         * config/ia64/vms.opt: New.
34430         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
34431
34432 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
34433
34434         PR target/47580
34435         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
34436         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
34437         generator functions.
34438         (vsx_floatuns<VSi><mode>2): Ditto.
34439         (vsx_fix_trunc<mode><VSi>2): Ditto.
34440         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
34441
34442 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
34443
34444         * config/i386/djgpp.opt (posix): New Driver option.
34445
34446 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
34447
34448         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
34449         Move to the unsupported targets list.
34450
34451 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
34452
34453         PR rtl-optimization/47525
34454         * df-scan.c: Update copyright years.
34455         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
34456         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
34457
34458 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34459
34460         * config/i386/sysv4.h (TARGET_VERSION): Remove.
34461         (SUBTARGET_RETURN_IN_MEMORY): Remove.
34462         (ASM_OUTPUT_ASCII): Remove.
34463         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
34464
34465 2011-02-02  Jeff Law  <law@redhat.com>
34466
34467         PR middle-end/47543
34468         * reload.c (find_reloads_address): Handle reg+d address where both
34469         components are invalid by reloading the entire address.
34470
34471 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
34472             Richard Guenther  <rguenther@suse.de>
34473
34474         PR tree-optimization/40979
34475         PR bootstrap/47044
34476         * passes.c (init_optimization_passes): After LIM call copy_prop
34477         and DCE to clean up.
34478         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
34479
34480 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
34481
34482         PR tree-optimization/47576
34483         PR tree-optimization/47555
34484         * doc/invoke.texi (scev-max-expr-complexity): Documented.
34485         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
34486         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
34487         * tree-scalar-evolution.c (follow_ssa_edge): Use
34488         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
34489
34490 2011-02-02  Richard Guenther  <rguenther@suse.de>
34491
34492         PR tree-optimization/47566
34493         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
34494
34495 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
34496
34497         PR debug/47106
34498         PR debug/47402
34499         * tree-inline.c (declare_return_variable): Remove unused caller
34500         variable.
34501
34502         PR debug/47106
34503         PR debug/47402
34504         * tree-flow-inline.h (clear_is_used, is_used_p): New.
34505         * cfgexpand.c (account_used_vars_for_block): Use them.
34506         * tree-nrv.c (tree_nrv): Likewise.
34507         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
34508         (dump_scope_block): Likewise.
34509         (remove_unused_locals): Likewise.
34510
34511         PR debug/47106
34512         PR debug/47402
34513         * tree-inline.c (declare_return_variable): Add result decl to
34514         local decls only once.
34515         * gimple-low.c (record_vars_into): Mark newly-created variables
34516         as referenced.
34517
34518 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
34519
34520         PR debug/47498
34521         PR debug/47501
34522         PR debug/45136
34523         PR debug/45130
34524         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
34525         debug insns.
34526         (no_real_insns_p, schedule_block, set_priorities): Drop special
34527         treatment of boundary debug insns.
34528         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
34529         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
34530         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
34531         (BOUNDARY_DEBUG_INSN_P): Likewise.
34532         (SCHEDULE_DEBUG_INSN_P): Likewise.
34533         * sched-rgn.c (init_ready_list): Drop special treatment of
34534         boundary debug insns.
34535         * final.c (rest_of_clean_state): Clear notes' BB.
34536
34537 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34538
34539         * config/openbsd.opt (assert=): New Driver option.
34540
34541 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34542
34543         * config/i386/nto.opt: New.
34544         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
34545
34546 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34547
34548         * config/i386/netware.opt: New.
34549         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
34550
34551 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34552
34553         * config/interix.opt (posix): New Driver option.
34554
34555 2011-02-01  DJ Delorie  <dj@redhat.com>
34556
34557         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
34558
34559         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
34560         class for A0/A1.
34561
34562 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
34563
34564         PR tree-optimization/47561
34565         * toplev.c (process_options): Print the Graphite flags.  Add
34566         flag_loop_flatten to the list of options requiring Graphite.
34567
34568 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34569
34570         * config/i386/cygming.opt (posix): New Driver option.
34571
34572 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34573
34574         * config/arm/vxworks.opt: New.
34575         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
34576
34577 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34578
34579         * config/alpha/elf.opt: New.
34580         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
34581         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
34582
34583 2011-02-01  Richard Guenther  <rguenther@suse.de>
34584
34585         PR tree-optimization/47559
34586         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
34587         store-motion on references that can throw.
34588
34589 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
34590
34591         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
34592         * tree-pass.h (TDF_CSELIB): New macro.
34593         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
34594         cselib_lookup): Check for it rather than for TDF_DETAILS.
34595
34596 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
34597
34598         PR driver/47547
34599         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
34600         is HOST_BIT_BUCKET.
34601
34602         * opts.c (finish_options): Don't add x_aux_base_name if it is
34603         HOST_BIT_BUCKET.
34604
34605 2011-02-01  Richard Guenther  <rguenther@suse.de>
34606
34607         PR tree-optimization/47555
34608         Revert
34609         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
34610
34611         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
34612
34613 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
34614
34615         PR gcc/46692
34616         * config/lm32/t-lm32: Add multilib for all CPU options.
34617
34618 2011-02-01  Richard Guenther  <rguenther@suse.de>
34619
34620         PR tree-optimization/47541
34621         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
34622         sure to have a field at offset zero.
34623
34624 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
34625
34626         * config/arc/arc.opt (EB, EL): New Driver options.
34627
34628 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
34629
34630         * config/alpha/osf5.opt: New.
34631         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
34632
34633 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
34634
34635         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
34636
34637 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
34638
34639         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
34640         -floop-interchange.
34641         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
34642         is an alias of -floop-interchange and that it requires the
34643         Graphite infrastructure.
34644         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
34645         flag_loop_interchange based on the value of flag_tree_loop_linear.
34646
34647 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
34648             Richard Guenther  <rguenther@suse.de>
34649
34650         PR tree-optimization/47538
34651         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
34652         type instead of r1type, except for comparisons.  For right
34653         shifts and comparisons punt if there are mismatches in
34654         sizetype vs. non-sizetype types.
34655
34656 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34657
34658         * doc/sourcebuild.texi (Effective-Target Keywords): Document
34659         avx_runtime.
34660
34661 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34662
34663         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
34664         version number.
34665         * configure: Regenerate.
34666
34667 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34668
34669         * configure.ac (gcc_cv_ld_static_option): Define.
34670         (gcc_cv_ld_dynamic_option): Define.
34671         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
34672         instead.
34673         (HAVE_LD_STATIC_DYNAMIC): Update message.
34674         (LD_STATIC_OPTION): Define.
34675         (LD_DYNAMIC_OPTION): Define.
34676         * configure: Regenerate.
34677         * config.in: Regenerate.
34678         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
34679         HAVE_LD_STATIC_DYNAMIC]: Use them.
34680
34681 2011-01-31  Nick Clifton  <nickc@redhat.com>
34682
34683         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
34684         registers inside interrupt handlers if the handler is not a leaf
34685         function.
34686
34687 2011-01-31  Nick Clifton  <nickc@redhat.com>
34688
34689         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
34690         reg_renumber returning an INVALID_REGNUM.
34691
34692 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
34693
34694         PR libgcj/44341
34695         * doc/install.texi: Document host options discarded when cross
34696         configuring target libraries.
34697
34698 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
34699
34700         Reverted:
34701         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
34702         PR debug/45136
34703         PR debug/45130
34704         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
34705         debug insns.
34706         (no_real_insns_p, schedule_block, set_priorities): Drop special
34707         treatment of boundary debug insns.
34708         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
34709         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
34710         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
34711         (BOUNDARY_DEBUG_INSN_P): Likewise.
34712         (SCHEDULE_DEBUG_INSN_P): Likewise.
34713         * sched-rgn.c (init_ready_list): Drop special treatment of
34714         boundary debug insns.
34715         * final.c (rest_of_clean-state): Clear notes' BB.
34716
34717 2011-01-31  Alan Modra  <amodra@gmail.com>
34718
34719         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
34720         toc relative expressions as we do in print_operand_address.
34721
34722 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
34723
34724         * doc/extend.texi: Follow spelling conventions.
34725         * doc/invoke.texi: Fix a typo.
34726
34727 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
34728
34729         * config/hpux11.opt: New.
34730         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
34731         ia64*-*-hpux*): Use hpux11.opt.
34732
34733 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
34734
34735         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
34736         to tmake_file.
34737
34738 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
34739
34740         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
34741         support sites.
34742
34743 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
34744
34745         * doc/install.texi (Binaries): Remove outdated reference for
34746         Motorola 68HC11/68HC12 downloads.
34747
34748 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
34749
34750         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
34751         Drepper's paper.
34752
34753 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
34754
34755         PR bootstrap/47147
34756         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
34757         used by NetBSD.
34758
34759 2011-01-28  Ahmad Sharif  <asharif@google.com>
34760
34761         * value-prof.c (check_counter): Corrected error message.
34762
34763 2011-01-29  Jie Zhang  <jie@codesourcery.com>
34764
34765         * config/arm/arm.c (arm_legitimize_reload_address): New.
34766         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
34767         arm_legitimize_reload_address.
34768         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
34769
34770 2011-01-28  Ian Lance Taylor  <iant@google.com>
34771
34772         * godump.c (go_define): Ignore macros whose definitions include
34773         two adjacent operands.
34774
34775 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
34776
34777         PR target/42894
34778         * varasm.c (force_const_mem): Store copy of x in desc->constant
34779         instead of x itself.
34780         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
34781         itself into REG_EQUAL note.
34782
34783 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
34784
34785         * config/freebsd.opt (posix, rdynamic): New Driver options.
34786
34787 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34788
34789         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
34790         -Bstatic/-Bdynamic.
34791         * configure: Regenerate.
34792
34793 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
34794
34795         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
34796         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
34797
34798 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
34799
34800         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
34801         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
34802         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
34803         (s390_preferred_reload_class): Make static. Change return and
34804         'rclass' argument type to reg_class_t.
34805
34806 2011-01-27  Jan Hubicka  <jh@suse.cz>
34807
34808         PR middle-end/46949
34809         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
34810         (process_function_and_variable_attributes): Check defined weakrefs.
34811
34812 2011-01-27  Martin Jambor  <mjambor@suse.cz>
34813
34814         PR tree-optimization/47228
34815         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
34816         build_ref_for_offset.
34817
34818 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34819
34820         * config/spu/spu-elf.h (ASM_SPEC): Remove.
34821
34822 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
34823
34824         PR rtl-optimization/46856
34825         * postreload.c (reload_combine_recognize_const_pattern): Do not
34826         separate cc0 setter and user on cc0 targets.
34827
34828 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
34829
34830         PR c/43082
34831         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
34832         passed a VOID_TYPE expression, immediately emit an error and
34833         return error_mark_node.
34834
34835 2011-01-26  Jeff Law  <law@redhat.com>
34836
34837         PR rtl-optimization/47464
34838         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
34839         rather than may_trap_p as needed.
34840
34841 2011-01-26  DJ Delorie  <dj@redhat.com>
34842
34843         PR rtl-optimization/46878
34844         * combine.c (insn_a_feeds_b): Check for the implicit cc0
34845         setter/user dependency as well.
34846
34847 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
34848
34849         PR rtl-optimization/44469
34850         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
34851         after removing trivially dead basic blocks.
34852
34853 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
34854
34855         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
34856         * config/frv/frv.h (LINK_SPEC): Likewise.
34857         * config/i386/netware.h (LINK_SPEC): Likewise.
34858         * config/m68k/linux.h (ASM_SPEC): Likewise.
34859         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
34860         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
34861         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
34862         * config/sparc/linux.h (ASM_SPEC): Likewise.
34863         * config/sparc/linux64.h (ASM_SPEC): Likewise.
34864         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
34865
34866 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
34867
34868         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
34869         * config/frv/frv.h (ASM_SPEC): Likewise.
34870         * config/m68k/linux.h (ASM_SPEC): Likewise.
34871         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
34872         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
34873         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
34874         * config/sparc/linux.h (ASM_SPEC): Likewise.
34875         * config/sparc/linux64.h (ASM_SPEC): Likewise.
34876         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
34877
34878 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
34879
34880         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
34881         * config/frv/frv.h (LINK_SPEC): Likewise.
34882         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
34883
34884 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
34885
34886         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
34887         * config/frv/frv.h (ASM_SPEC): Likewise.
34888         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
34889         * config/m68k/linux.h (ASM_SPEC): Likewise.
34890         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
34891         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
34892         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
34893         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
34894         * config/sparc/linux.h (ASM_SPEC): Likewise.
34895         * config/sparc/linux64.h (ASM_SPEC): Likewise.
34896         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
34897         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
34898
34899 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
34900
34901         PR target/46997
34902         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
34903         (*mux2): Ditto.
34904         (vec_extract_evenodd_help): Ditto.
34905         (vec_extract_evenv4hi): Ditto.
34906         (vec_extract_oddv4hi): Ditto.
34907         (vec_interleave_lowv2si): Ditto.
34908         (vec_interleave_highv2si): Ditto.
34909         (vec_extract_evenv2si): Ditto.
34910         (vec_extract_oddv2si: Ditto.
34911         (vec_pack_trunc_v2si): Ditto.
34912
34913 2011-01-22  Jan Hubicka  <jh@suse.cz>
34914
34915         PR target/47237
34916         * cgraph.h (cgraph_local_info): New field can_change_signature.
34917         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
34918         signature can change.
34919         (ipcp_estimate_growth): Call sequence simplify only if calle signature
34920         can change.
34921         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
34922         (cgraph_function_versioning): We can not change signature of functions
34923         that don't allow that.
34924         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
34925         (lto_input_node): Likewise.
34926         * ipa-inline.c (compute_inline_parameters): Compute
34927         local.can_change_signature.
34928         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
34929         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
34930         functions that can not change signature.
34931         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
34932         init_cumulative_args): Do not use local calling conventions
34933         for functions that can not change signature.
34934
34935 2011-01-22  Jan Hubicka  <jh@suse.cz>
34936
34937         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
34938
34939 2011-01-26  Richard Guenther  <rguenther@suse.de>
34940
34941         PR tree-optimization/47190
34942         * cgraphunit.c (process_common_attributes): New function.
34943         (process_function_and_variable_attributes): Use it.
34944
34945 2011-01-26  Richard Guenther  <rguenther@suse.de>
34946
34947         PR lto/47423
34948         * cgraphbuild.c (record_eh_tables): Record reference to personality
34949         function.
34950
34951 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
34952
34953         PR debug/45454
34954         * sel-sched.c (moveup_expr): Don't let debug insns prevent
34955         non-debug insns from moving up.
34956
34957 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
34958
34959         PR target/40125
34960         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
34961         t-dlldir{,-x} fragment for build and add it to tmake_file.
34962         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
34963         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
34964         * config/i386/t-dlldir: New file.
34965         (SHLIB_DLLDIR): Define.
34966         * config/i386/t-dlldir-x: New file.
34967         (SHLIB_DLLDIR): Define.
34968         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
34969         (SHLIB_INSTALL): Use it.
34970
34971 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
34972
34973         PR target/47246
34974         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
34975         lower bound of the allowed Thumb-2 coprocessor load/store
34976         index range to -256. Add explaining comment.
34977
34978 2011-01-25  Ian Lance Taylor  <iant@google.com>
34979
34980         * godump.c (go_define): Improve lexing of macro expansion to only
34981         accept expressions which match Go spec.
34982
34983 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
34984
34985         PR c++/43601
34986         * tree.c (handle_dll_attribute): Handle it.
34987         * doc/extend.texi (@item dllexport): Mention it.
34988         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
34989
34990 2011-01-25  Ian Lance Taylor  <iant@google.com>
34991
34992         PR tree-optimization/26854
34993         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
34994         (decl_jump_unsafe): Move higher in file, with no other change.
34995         (bind): Set has_jump_unsafe_decl if appropriate.
34996         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
34997         (check_earlier_gotos): Likewise.
34998         (c_check_switch_jump_warnings): Likewise.
34999
35000 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
35001
35002         * doc/invoke.texi (Warning Options): Add missing hyphen.
35003         (-fprofile-dir): Minor grammatical fixes.
35004         (-fbranch-probabilities): Likewise.
35005
35006 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
35007
35008         PR debug/45136
35009         PR debug/45130
35010         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
35011         debug insns.
35012         (no_real_insns_p, schedule_block, set_priorities): Drop special
35013         treatment of boundary debug insns.
35014         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
35015         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
35016         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
35017         (BOUNDARY_DEBUG_INSN_P): Likewise.
35018         (SCHEDULE_DEBUG_INSN_P): Likewise.
35019         * sched-rgn.c (init_ready_list): Drop special treatment of
35020         boundary debug insns.
35021         * final.c (rest_of_clean-state): Clear notes' BB.
35022
35023 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35024
35025         * Makefile.in (LAMBDA_H): Removed.
35026         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
35027         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
35028         lambda-trans.o, and tree-loop-linear.o.
35029         (lto-symtab.o): Remove dependence on LAMBDA_H.
35030         (tree-loop-linear.o): Remove rule.
35031         (lambda-mat.o): Same.
35032         (lambda-trans.o): Same.
35033         (lambda-code.o): Same.
35034         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
35035         (tree-vect-slp.o): Same.
35036         * hwint.h (gcd): Moved here.
35037         (least_common_multiple): Same.
35038         * lambda-code.c: Removed.
35039         * lambda-mat.c: Removed.
35040         * lambda-trans.c: Removed.
35041         * lambda.h: Removed.
35042         * tree-loop-linear.c: Removed.
35043         * lto-symtab.c: Do not include lambda.h.
35044         * omega.c (gcd): Removed.
35045         * passes.c (init_optimization_passes): Remove pass_linear_transform.
35046         * tree-data-ref.c (print_lambda_vector): Moved here.
35047         (lambda_vector_copy): Same.
35048         (lambda_matrix_copy): Same.
35049         (lambda_matrix_id): Same.
35050         (lambda_vector_first_nz): Same.
35051         (lambda_matrix_row_add): Same.
35052         (lambda_matrix_row_exchange): Same.
35053         (lambda_vector_mult_const): Same.
35054         (lambda_vector_negate): Same.
35055         (lambda_matrix_row_negate): Same.
35056         (lambda_vector_equal): Same.
35057         (lambda_matrix_right_hermite): Same.
35058         * tree-data-ref.h: Do not include lambda.h.
35059         (lambda_vector): Moved here.
35060         (lambda_matrix): Same.
35061         (dependence_level): Same.
35062         (lambda_transform_legal_p): Removed declaration.
35063         (lambda_collect_parameters): Same.
35064         (lambda_compute_access_matrices): Same.
35065         (lambda_vector_gcd): Same.
35066         (lambda_vector_new): Same.
35067         (lambda_vector_clear): Same.
35068         (lambda_vector_lexico_pos): Same.
35069         (lambda_vector_zerop): Same.
35070         (lambda_matrix_new): Same.
35071         * tree-flow.h (least_common_multiple): Removed declaration.
35072         * tree-parloops.c (lambda_trans_matrix): Moved here.
35073         (LTM_MATRIX): Same.
35074         (LTM_ROWSIZE): Same.
35075         (LTM_COLSIZE): Same.
35076         (LTM_DENOMINATOR): Same.
35077         (lambda_trans_matrix_new): Same.
35078         (lambda_matrix_vector_mult): Same.
35079         (lambda_transform_legal_p): Same.
35080         * tree-pass.h (pass_linear_transform): Removed declaration.
35081         * tree-ssa-loop.c (tree_linear_transform): Removed.
35082         (gate_tree_linear_transform): Removed.
35083         (pass_linear_transform): Removed.
35084         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
35085         flag_loop_interchange.
35086
35087 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
35088
35089         PR tree-optimization/47265
35090         PR tree-optimization/47443
35091         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
35092         if name still has some uses.
35093
35094 2011-01-25  Martin Jambor  <mjambor@suse.cz>
35095
35096         PR tree-optimization/47382
35097         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
35098         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
35099
35100 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
35101
35102         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
35103         sjlj_except_unwind_info.
35104
35105 2011-01-25  Richard Guenther  <rguenther@suse.de>
35106
35107         PR tree-optimization/47426
35108         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
35109         visible functions results escape.
35110
35111 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
35112
35113         PR target/45701
35114         * config/arm/arm.c (any_sibcall_uses_r3): New function.
35115         (arm_get_frame_offsets): Use it.
35116
35117 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35118             Jakub Jelinek  <jakub@redhat.com>
35119
35120         PR tree-optimization/47271
35121         * tree-if-conv.c (bb_postdominates_preds): New.
35122         (if_convertible_bb_p): Call bb_postdominates_preds.
35123         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
35124         (predicate_scalar_phi): Call bb_postdominates_preds.
35125
35126 2011-01-25  Nick Clifton  <nickc@redhat.com>
35127
35128         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
35129         * config/rx/rx.c (rx_function_value): Likewise.
35130         (rx_promote_function_mode): Likewise.
35131         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
35132         in order to make it legitimate.
35133         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
35134         make sure that the first operand is the same as the result register.
35135         (addsi3_unspec): Delete.
35136         (subdi3): Do not accept immediate operands.
35137         (subdi3_internal): Likewise.
35138
35139 2011-01-25  Jeff Law  <law@redhat.com>
35140
35141         PR rtl-optimization/37273
35142         * ira-costs.c (scan_one_insn): Detect constants living in memory and
35143         handle them like argument loads from stack slots.  Do not double
35144         count memory for memory constants and argument loads from stack slots.
35145
35146 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
35147
35148         PR tree-optimization/47427
35149         PR tree-optimization/47428
35150         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
35151         coalesce if the new root var would be TREE_READONLY.
35152
35153 2011-01-25  Richard Guenther  <rguenther@suse.de>
35154
35155         PR middle-end/47414
35156         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
35157         correct type for TBAA.
35158
35159 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35160
35161         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
35162         (close_phi_written_to_memory): Call for_each_index with
35163         dr_indices_valid_in_loop.
35164
35165 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35166
35167         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
35168         when it is initialized.
35169
35170 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35171
35172         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
35173         call to graphite_find_data_references_in_stmt.
35174         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
35175         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
35176         call to graphite_find_data_references_in_stmt.
35177         (analyze_drs_in_stmts): Same.
35178         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
35179         in which the scalar analysis of indices is performed.
35180         (create_data_ref): Same.  Update call to dr_analyze_indices.
35181         (find_data_references_in_stmt): Update call to create_data_ref.
35182         (graphite_find_data_references_in_stmt): Same.
35183         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
35184         declaration.
35185         (create_data_ref): Same.
35186         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
35187         call to create_data_ref.
35188
35189 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35190
35191         * graphite-sese-to-poly.c (build_poly_scop): Move
35192         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
35193
35194 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35195
35196         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
35197         VAR_DECL, PARM_DECL, and RESULT_DECL.
35198
35199 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35200
35201         * graphite-dependences.c (reduction_dr_1): Allow several reductions
35202         in a reduction PBB.
35203         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
35204         that have already been marked as PBB_IS_REDUCTION.
35205
35206 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35207
35208         * graphite-scop-detection.c (same_close_phi_node): New.
35209         (remove_duplicate_close_phi): New.
35210         (make_close_phi_nodes_unique): New.
35211         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
35212
35213 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35214
35215         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
35216         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
35217         of both data references to be the same.
35218
35219 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35220
35221         * graphite-dependences.c (build_lexicographical_constraint): Remove
35222         the gdim parameter.
35223         (build_lexicographical_constraint): Adjust call to
35224         ppl_powerset_is_empty.
35225         (dependence_polyhedron): Same.
35226         (graphite_legal_transform_dr): Same.
35227         (graphite_carried_dependence_level_k): Same.
35228         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
35229         parameter.
35230         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
35231
35232 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35233
35234         * graphite-sese-to-poly.c
35235         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
35236         (close_phi_written_to_memory): New.
35237         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
35238         and unshare_expr.
35239
35240 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35241
35242         * doc/install.texi: Update the expected version number of PPL to 0.11.
35243         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
35244         #if PPL_VERSION_MINOR < 11.
35245
35246 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35247
35248         * graphite-dependences.c: Include graphite-cloog-util.h.
35249         (new_poly_ddr): Inlined into dependence_polyhedron.
35250         (free_poly_ddr): Moved close by new_poly_ddr.
35251         (dependence_polyhedron_1): Renamed dependence_polyhedron.
35252         Early return NULL when ppl_powerset_is_empty returns true.
35253         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
35254         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
35255         (graphite_legal_transform_dr): Call new_poly_ddr.
35256         (graphite_carried_dependence_level_k): Same.
35257         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
35258         (dot_transformed_deps_stmt_1): Removed.
35259         (dot_deps_stmt_1): Call dot_deps_stmt_2.
35260         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
35261         (dot_deps_1): Call dot_deps_2.
35262         * Makefile.in (graphite-dependences.o): Add missing dependence on
35263         graphite-cloog-util.h.
35264
35265 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35266
35267         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
35268         (build_lexicographical_constraint): Same.
35269         (dependence_polyhedron_1): Same.
35270         (graphite_legal_transform_dr): Same.
35271         (graphite_carried_dependence_level_k): Same.
35272         * graphite-ppl.c (ppl_powerset_is_empty): New.
35273         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
35274         * tree-data-ref.c (dump_data_reference): Print the basic block index.
35275
35276 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35277
35278         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
35279         the "a followed by b" relation and document it.
35280
35281 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35282
35283         * graphite-dependences.c (build_lexicographical_constraint): Stop the
35284         iteration when the bag of constraints is empty.
35285
35286 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35287
35288         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
35289
35290 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35291
35292         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
35293         nest and two loop depths as parameters.
35294         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
35295         lst_perfect_nestify.
35296
35297 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35298
35299         * graphite-dependences.c (print_pddr): Call
35300         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
35301
35302 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35303
35304         * graphite-ppl.c (debug_gmp_value): New.
35305         * graphite-ppl.h (debug_gmp_value): Declared.
35306
35307 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
35308
35309         * doc/install.texi: Document availability of cloog-0.16.
35310
35311 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
35312
35313         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
35314         invalid postdominance info.
35315
35316 2011-01-24  Jan Hubicka  <jh@suse.cz>
35317
35318         PR c/21659
35319         * doc/extend.texi (weak pragma): Drop claim that it must
35320         appear before definition.
35321         * varasm.c (merge_weak, declare_weak): Only sanity check
35322         that DECL is not output at a time it is declared weak.
35323
35324 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
35325
35326         * machmode.def: Fixed comments.
35327
35328 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
35329
35330         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
35331
35332 2011-01-24  Paul Koning  <ni1d@arrl.net>
35333
35334         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
35335         WORDS_BIG_ENDIAN.
35336
35337 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
35338
35339         PR target/46519
35340         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
35341         (block_info): Add scanned and prev.
35342         (move_or_delete_vzeroupper_2): Return if the basic block
35343         has been scanned and the upper 128bit state is unchanged
35344         from the last scan.
35345         (move_or_delete_vzeroupper_1): Return true if the exit
35346         state is changed.
35347         (move_or_delete_vzeroupper): Visit basic blocks using the
35348         work-list based algorithm based on vt_find_locations in
35349         var-tracking.c.
35350
35351         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
35352
35353 2011-01-24  Nick Clifton  <nickc@redhat.com>
35354
35355         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
35356         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
35357         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
35358         then define __v850e1__.
35359         * doc/invoke.texi: Document -mv850es.
35360
35361 2011-01-24  Richard Henderson  <rth@redhat.com>
35362
35363         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
35364         compound unordered comparisons.
35365         * config/rx/rx.c (rx_split_fp_compare): Remove.
35366         * config/rx/rx-protos.h: Update.
35367         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
35368         (cbranchsf4): Don't call rx_split_fp_compare.
35369         (*cbranchsf4): Use rx_split_cbranch.
35370         (*cmpsf): Don't accept "i" constraint.
35371         (*conditional_branch): Only valid after reload.
35372         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
35373
35374 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
35375
35376         PR target/47385
35377         * config/rs6000/altivec.md (vector constant splitters): Add
35378         support for creating vector single precision constants if -mvsx is
35379         used and we would create the constant using Altivec primitives.
35380
35381 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
35382             Richard Sandiford  <rdsandiford@googlemail.com>
35383
35384         PR rtl-optimization/47166
35385         * reload1.c (emit_reload_insns): Disable the spill_reg_store
35386         mechanism for PRE_MODIFY and POST_MODIFY.
35387         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
35388         reloadreg.
35389
35390 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
35391
35392         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
35393
35394 2011-01-22  Jan Hubicka  <jh@suse.cz>
35395
35396         PR lto/47333
35397         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
35398
35399 2011-01-22  Jan Hubicka  <jh@suse.cz>
35400
35401         PR tree-optimization/43884
35402         PR lto/44334
35403         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
35404         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
35405
35406 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
35407
35408         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
35409         * config/s390/s390.c (s390_register_move_cost,
35410         s390_memory_move_cost): New.
35411         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
35412
35413 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35414
35415         PR middle-end/47401
35416         * except.c (sjlj_assign_call_site_values): Move setting the
35417         crtl->uses_eh_lsda flag to ...
35418         (sjlj_mark_call_sites): ... here.
35419         (sjlj_emit_function_enter): Support NULL dispatch label.
35420         (sjlj_build_landing_pads): In a function with no landing pads
35421         that still has must-not-throw regions, generate code to register
35422         a personality function with empty LSDA.
35423
35424 2011-01-21  Richard Henderson  <rth@redhat.com>
35425
35426         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
35427
35428         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
35429
35430         * compare-elim.c: New file.
35431         * Makefile.in (OBJS-common): Add it.
35432         (compare-elim.o): New.
35433         * common.opt (fcompare-elim): New.
35434         * opts.c (default_options_table): Add OPT_fcompare_elim.
35435         * tree-pass.h (pass_compare_elim_after_reload): New.
35436         * passes.c (init_optimization_passes): Add it.
35437         * recog.h: Protect against re-inclusion.
35438         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
35439         * doc/invoke.texi (-fcompare-elim): Document it.
35440         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
35441         * doc/tm.texi: Rebuild.
35442
35443 2011-01-22  Nick Clifton  <nickc@redhat.com>
35444
35445         * config/rx/rx.md (cstoresf4): Pass comparison operator to
35446         rx_split_fp_compare.
35447
35448 2011-01-22  Nick Clifton  <nickc@redhat.com>
35449
35450         * config/rx/rx.md (UNSPEC_CONST): New.
35451         (deallocate_and_return): Wrap the amount popped off the stack in
35452         an UNSPEC_CONST in order to stop it being rejected by
35453         -mmax-constant-size.
35454         (pop_and_return): Add a "(return)" rtx.
35455         (call): Drop the immediate operand.
35456         (call_internal): Likewise.
35457         (call_value): Likewise.
35458         (call_value_internal): Likewise.
35459         (sibcall_internal): Likewise.
35460         (sibcall_value_internal): Likewise.
35461         (sibcall): Likewise.  Generate an explicit call using
35462         sibcall_internal.
35463         (sibcall_value): Likewise.
35464         (mov<>): FAIL if a constant operand is not legitimate.
35465         (addsi3_unpsec): New pattern.
35466
35467         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
35468         (ok_for_max_constant): New function.
35469         (gen_safe_add): New function.
35470         (rx_expand_prologue): Use gen_safe_add.
35471         (rx_expand_epilogue): Likewise.
35472         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
35473         UNSPEC CONSTs.
35474
35475 2011-01-21  Jeff Law  <law@redhat.com>
35476
35477         PR tree-optimization/47053
35478         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
35479         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
35480         statements are deleted.
35481         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
35482         is nonempty, then purge dead edges and cleanup the CFG.
35483
35484 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
35485
35486         PR debug/47402
35487         Temporarily revert:
35488         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
35489         PR debug/47106
35490         * tree-dfa.c (create_var_ann): Mark variable as used.
35491
35492 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
35493
35494         PR middle-end/45566
35495         * except.c (convert_to_eh_region_ranges): Emit queued no-region
35496         notes from other section in hot/cold partitioning even if
35497         last_action is -3.  Increment call_site_base.
35498
35499         PR rtl-optimization/47366
35500         * fwprop.c (forward_propagate_into): Return bool.  If
35501         any changes are made, -fnon-call-exceptions is used and
35502         REG_EH_REGION note is present, call purge_dead_edges
35503         and return true if it purged anything.
35504         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
35505         any EH edges were purged.
35506
35507 2011-01-21  Jeff Law  <law@redhat.com>
35508
35509         PR rtl-optimization/41619
35510         * caller-save.c (setup_save_areas): Break out code to determine
35511         which hard regs are live across calls by examining the reload chains
35512         so that it is always used.
35513         Eliminate code which checked REG_N_CALLS_CROSSED.
35514
35515 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
35516
35517         PR tree-optimization/47355
35518         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
35519         NOP has non-debug uses beyond PHIs in new_bb.
35520
35521 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
35522
35523         PR debug/47106
35524         * cfgexpand.c (account_used_vars_for_block): Only account vars
35525         that are annotated as used.
35526         (estimated_stack_frame_size): Don't set TREE_USED.
35527         * tree-dfa.c (create_var_ann): Mark variable as used.
35528
35529 2011-01-21  Richard Guenther  <rguenther@suse.de>
35530
35531         PR middle-end/47395
35532         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
35533
35534 2011-01-21  Richard Guenther  <rguenther@suse.de>
35535
35536         PR tree-optimization/47365
35537         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
35538         (vn_reference_lookup_pieces): Adjust.
35539         (vn_reference_lookup): Likewise.
35540         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
35541         (vn_reference_lookup_3): Only look through kills if in
35542         VN_WALKREWRITE mode.
35543         (vn_reference_lookup_pieces): Adjust.
35544         (vn_reference_lookup): Likewise.
35545         (visit_reference_op_load): Likewise.
35546         (visit_reference_op_store): Likewise.
35547         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
35548         (compute_avail): Likewise.
35549         (eliminate): Likewise.
35550
35551 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
35552
35553         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
35554         DECL_IGNORED_P non-reg vars if they are used.
35555
35556         PR tree-optimization/47391
35557         * varpool.c (const_value_known_p): Return false if
35558         decl is volatile.
35559
35560 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
35561
35562         PR bootstrap/47215
35563         * config/i386/i386.c (ix86_local_alignment): Handle
35564         case for va_list_type_node is nil.
35565         (ix86_canonical_va_list_type): Likewise.
35566
35567 2011-01-21  Alan Modra  <amodra@gmail.com>
35568
35569         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
35570         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
35571
35572 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35573
35574         * config/arm/arm.md (define_attr type): Rename f_load
35575         and f_store to f_fpa_load and f_fpa_store. Update.
35576         (write_conflict): Deal with rename fallout.
35577         (*push_fp_multi): Likewise.
35578         * config/arm/fpa.md (f_load): Use f_fpa_load.
35579         (f_store): Use f_fpa_store.
35580         (*movsf_fpa): Likewise.
35581         (*movdf_fpa): Likewise.
35582         (*movxf_fpa): Likewise.
35583         (*thumb2_movsf_fpa): Likewise.
35584         (*thumb2_movdf_fpa): Likewise.
35585         (*thumb2_movxf_fpa): Likewise.
35586         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
35587         f_loadd and f_stored.
35588         (*thumb2_movdi_vfp): Likewise.
35589         (*thumb2_movsf_vfp): Fix attribute to f_loads.
35590         (*thumb2_movsi_vfp): Likewise.
35591         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
35592         Use f_loads instead of f_load.
35593         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
35594
35595 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
35596
35597         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
35598         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
35599         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
35600         (xtensa_mode_dependent_address_p): New function.
35601         (constantpool_address_p): Make static. Change return type to bool.
35602         Change argument type to const_rtx. Use CONST_INT_P predicate.
35603
35604 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
35605
35606         PR debug/46583
35607         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
35608
35609 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
35610
35611         PR debug/47283
35612         * cfgexpand.c (expand_debug_expr): Instead of generating
35613         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
35614         etc. handling.
35615
35616 2011-01-20  Richard Guenther  <rguenther@suse.de>
35617
35618         PR middle-end/47370
35619         * tree-inline.c (remap_gimple_op_r): Recurse manually for
35620         the pointer operand of MEM_REFs.
35621
35622 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
35623
35624         PR tree-optimization/46130
35625         * ipa-split.c (consider_split): If return_bb contains non-virtual
35626         PHIs other than for retval or if split_function would not adjust it,
35627         refuse to split.
35628
35629 2011-01-20  Richard Guenther  <rguenther@suse.de>
35630
35631         PR tree-optimization/47167
35632         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
35633         Revert previous change, only avoid enumeral type changes.
35634
35635 2011-01-19  Mike Stump  <mikestump@comcast.net>
35636
35637         * doc/tm.texi.in (BRANCH_COST): Englishify.
35638         * doc/tm.texi (BRANCH_COST): Likewise.
35639
35640 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
35641
35642         PR c++/47291
35643         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
35644         (gen_scheduled_generic_parms_dies): New functions.
35645         (gen_struct_or_union_type_die): Schedule template parameters DIEs
35646         generation for the end of CU compilation.
35647         (dwarf2out_finish): Generate template parameters DIEs here.
35648
35649 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
35650
35651         PR debug/46240
35652         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
35653         debug bind stmt on merge edges.
35654
35655 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
35656
35657         PR debug/47079
35658         PR debug/46724
35659         * function.c (instantiate_expr): Instantiate incoming rtl of
35660         implicit arguments, and recurse on VALUE_EXPRs.
35661         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
35662         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
35663
35664 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
35665
35666         * c-parser.c (c_parser_for_statement): Initialize
35667         collection_expression.
35668
35669 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
35670
35671         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
35672
35673 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
35674
35675         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
35676         (LINK_SHLIB_SPEC): Don't use %(link_path).
35677         (SUBTARGET_EXTRA_SPECS): Remove link_path.
35678
35679 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
35680
35681         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
35682         (NO_SHARED_LIB_SUPPORT): Remove.
35683         (LINK_SHLIB_SPEC): Remove one conditional definition.
35684
35685 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
35686
35687         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
35688         %{call_shared}.
35689         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
35690         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
35691         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
35692         %{call_shared} and conditionals on these options not being passed.
35693         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
35694         %{call_shared}.
35695
35696 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
35697
35698         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
35699         simplify.
35700
35701         * ipa-split.c: Spelling fixes.
35702
35703 2011-01-19  Richard Henderson  <rth@redhat.com>
35704
35705         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
35706         (*mulsi3): Likewise.
35707
35708         * longlong.h [__mn10300__] (count_leading_zeros): New.
35709         [__mn10300__] (umul_ppmm, smul_ppmm): New.
35710         [__mn10300__] (add_ssaaaa, subddmmss): New.
35711         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
35712         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
35713
35714 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35715
35716         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
35717
35718 2011-01-19  Richard Henderson  <rth@redhat.com>
35719
35720         * config/mn10300/mn10300.md (addsi3_flags): New.
35721         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
35722         (subsi3_flags, subc_internal, subdi3): New.
35723         (subdi3_internal, *subdi3_degenerate): New.
35724         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
35725
35726         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
35727         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
35728         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
35729         * config/mn10300/mn10300-protos.h: Update.
35730         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
35731         (return_ret): Likewise.  Rename from return_internal_regs.
35732         (return_internal): Remove.
35733
35734         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
35735         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
35736         (mn10300_legitimate_constant_p): Likewise.
35737         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
35738         (mn10300_frame_size): New.
35739         (mn10300_expand_prologue): Use it.
35740         (mn10300_expand_epilogue): Likewise.
35741         (mn10300_initial_offset): Likewise.
35742         * config/mn10300/mn10300-protos.h: Update.
35743         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
35744         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
35745         (prologue, epilogue, return_internal): Tidy output code.
35746         (mn10300_store_multiple_operation, return): Likewise.
35747         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
35748         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
35749         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
35750         (load_pic, am33_load_pic): New.
35751         (mn10300_load_pic0, mn10300_load_pic1): New.
35752
35753         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
35754         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
35755         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
35756         (cc_flags_for_mode, cc_flags_for_code): New.
35757         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
35758         overflow flag is not valid.  Validate that the flags we need
35759         for the comparison are valid.
35760         (mn10300_output_cmp): Remove.
35761         (mn10300_output_add): New.
35762         (mn10300_select_cc_mode): Use cc_flags_for_code.
35763         (mn10300_split_cbranch): New.
35764         (mn10300_match_ccmode): New.
35765         (mn10300_split_and_operand_count): New.
35766         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
35767         to the function.
35768         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
35769         (addsi3): ... here.  Use mn10300_output_add.
35770         (*addsi3_flags): New.
35771         (*am33_subsi3, *mn10300_subsi3): Merge...
35772         (subsi3): ... here.  Use attribute isa.
35773         (*subsi3_flags): New.
35774         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
35775         when possible.
35776         (*am33_andsi3, *mn10300_andsi3): Merge...
35777         (andsi3): ... here.
35778         (*andsi3_flags): New.
35779         (andsi3 splitters): New.
35780         (*am33_iorsi3, *mn10300_iorsi3): Merge...
35781         (iorsi3): ... here.
35782         (*iorsi3_flags): New.
35783         (*am33_xorsi3, *mn10300_xorsi3): Merge...
35784         (xorsi3): ... here.
35785         (*xorsi3_flags): New.
35786         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
35787         (one_cmplsi2): ... here.
35788         (*one_cmplsi2_flags): New.
35789         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
35790         instead of "dax" in constraints.  Use mn10300_split_cbranch.
35791         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
35792         use matching constraints to eliminate a self-comparison.
35793         (*integer_conditional_branch): Rename from integer_conditional_branch.
35794         Use int_mode_flags to match CC_REG.
35795         (*cbranchsi4_btst, *btstsi): New.
35796         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
35797         mn10300_split_cbranch.
35798         (*am33_cmpsf): Rename from am33_cmpsf.
35799         (*float_conditional_branch): Rename from float_conditional_branch.
35800         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
35801         (zero_extendqisi2): ... here.
35802         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
35803         (zero_extendhisi2): ... here.
35804         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
35805         (extendqisi2): ... here.
35806         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
35807         (extendhisi2): ... here.
35808         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
35809         (ashlsi3): ... here.
35810         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
35811         (lshrsi3): ... here.
35812         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
35813         (ashrsi3): ... here.
35814         (consecutive add peephole): Remove.
35815         * config/mn10300/predicates.md (label_ref_operand): New.
35816         (int_mode_flags): New.
35817         (CCZN_comparison_operator): New.
35818
35819         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
35820         (throughput_42_latency_43): New reservation.
35821         (mulsidi3, umulsidi3): New expanders.
35822         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
35823         the MDR register to allocation; separately allocate the low and
35824         high parts of the DImode result.
35825         (umulsidi3_internal): Similarly.
35826         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
35827         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
35828         (udivsi3, umodsi3): Remove.
35829         (udivmodsi4, divmodsi4): New expanders.
35830         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
35831         (*divmodsi4): Simiarly.
35832         (ext_internal): New.
35833
35834         * config/mn10300/constraints.md ("z"): New constraint.
35835         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
35836         (FIXED_REGISTERS): Don't fix MDR.
35837         (CALL_USED_REGSITERS): Reformat nicely.
35838         (REG_ALLOC_ORDER): Add MDR.
35839         (enum regclass): Add MDR_REGS.
35840         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
35841         (IRA_COVER_CLASSES): Add MDR_REGS.
35842         (REGNO_REG_CLASS): Handle MDR_REG.
35843         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
35844         (mn10300_register_move_cost): Likewise.
35845         * config/mn10300/mn10300.md (MDR_REG): New.
35846         (*movsi_internal): Handle moves to/from MDR_REGS.
35847
35848         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
35849         POST_MODIFY.
35850         (mn10300_secondary_reload): Tidy combination reload classes.
35851         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
35852         addresses for AM33.  Allow symbolic offsets for reg+imm.
35853         (mn10300_regno_in_class_p): New.
35854         (mn10300_legitimize_reload_address): New.
35855         * config/mn10300/mn10300.h (enum reg_class): Remove
35856         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
35857         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
35858         SP_OR_GENERAL_REGS.
35859         (REG_CLASS_NAMES): Update to match.
35860         (REG_CLASS_CONTENTS): Likewise.
35861         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
35862         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
35863         (REGNO_IN_RANGE_P): Remove.
35864         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
35865         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
35866         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
35867         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
35868         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
35869         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
35870         (REGNO_GENERAL_P): New.
35871         (HAVE_POST_MODIFY_DISP): New.
35872         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
35873         (LEGITIMIZE_RELOAD_ADDRESS): New.
35874         * config/mn10300/mn10300-protos.h: Update.
35875
35876         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
35877         DATA_REGS for AM33 stack-pointer destination.
35878         (mn10300_preferred_output_reload_class): Likewise.
35879         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
35880         into a form appropriate for ...
35881         (TARGET_SECONDARY_RELOAD): New.
35882         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
35883         * config/mn10300/mn10300-protos.h: Update.
35884         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
35885         reload_insi; use the "A" constraint for the scratch; handle AM33
35886         moves of sp to non-address registers.
35887
35888         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
35889         (*movqi_internal): ... here.
35890         (*am33_movhi, *mn10300_movhi): Merge into...
35891         (*movhi_internal): ... here.
35892         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
35893         as the source/destination of moves from/to SP.
35894         (movsf): Only allow for AM33-2.
35895         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
35896         any integer constant constraint.  Only allow for AM33-2.  Tidy
35897         all of the alternative outputs.
35898         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
35899         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
35900         for MN103.
35901         (udivsi3, umodsi3): New patterns for MN103 only.
35902
35903 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
35904
35905         * doc/tm.texi.in: Spell out that a lack of register class unions
35906         can lead to ICEs.
35907         * doc/tm.texi: Regenerate.
35908
35909 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
35910
35911         PR rtl-optimization/47337
35912         * dce.c (check_argument_store): New function.
35913         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
35914
35915         PR tree-optimization/47290
35916         * tree-eh.c (infinite_empty_loop_p): New function.
35917         (cleanup_empty_eh): Use it.
35918
35919 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
35920
35921         PR target/46997
35922         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
35923         (a64_expand_widen_sum): Ditto.
35924         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
35925         (vec_extract_evenodd_help): Ditto.
35926         (vec_extract_evenv4hi): Ditto.
35927         (vec_extract_oddv4hi): Ditto.
35928         (vec_extract_evenv2si): Ditto.
35929         (vec_extract_oddv2si): Ditto.
35930         (vec_extract_evenv2sf): Ditto.
35931         (vec_extract_oddv2sf): Ditto.
35932         (vec_pack_trunc_v4hi: Ditto.
35933         (vec_pack_trunc_v2si): Ditto.
35934         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
35935         (vec_interleave_highv8qi): Ditto.
35936         (mix1_r): Ditto.
35937         (vec_extract_oddv8qi): Ditto.
35938         (vec_interleave_lowv4hi): Ditto.
35939         (vec_interleave_highv4hi): Ditto.
35940         (vec_interleave_lowv2si): Ditto.
35941         (vec_interleave_highv2si): Ditto.
35942
35943 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35944
35945         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
35946         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
35947         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
35948         (pa_c_mode_for_suffix): New.
35949         (TARGET_EXPAND_BUILTIN): Define.
35950         (TARGET_C_MODE_FOR_SUFFIX): Define.
35951         (pa_builtins): Define.
35952         (pa_init_builtins): Register __float128 type and init new support
35953         builtins.
35954         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
35955         * config/pa/quadlib.c (_U_Qfcopysign): New.
35956
35957 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
35958
35959         PR middle-end/46894
35960         * explow.c (allocate_dynamic_stack_space): Do not assume more than
35961         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
35962         are defined.
35963
35964 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35965
35966         PR tree-optimization/47179
35967         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
35968         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
35969
35970 2011-01-18  Richard Guenther  <rguenther@suse.de>
35971
35972         PR rtl-optimization/47216
35973         * emit-rtl.c: Include tree-flow.h.
35974         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
35975         of replicating it with different semantics.
35976         * Makefile.in (emit-rtl.o): Adjust.
35977
35978 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35979
35980         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
35981         (cortex_a9_dp): Handle neon types correctly.
35982
35983 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
35984
35985         PR rtl-optimization/47299
35986         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
35987         subtarget.  Use normal multiplication if both operands are constants.
35988         * expmed.c (expand_widening_mult): Don't try to optimize constant
35989         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
35990         before using it.
35991
35992 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35993
35994         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
35995         spacing after 'e.g.', typos, comma, hyphenation.
35996
35997 2011-01-17  Richard Henderson  <rth@redhat.com>
35998
35999         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
36000         (rx_restricted_mem_operand): New.
36001         (rx_shift_operand): Use register_operand.
36002         (rx_source_operand, rx_compare_operand): Likewise.
36003         * config/rx/rx.md (addsi3_flags): New expander.
36004         (adddi3): Rewrite as expander.
36005         (adc_internal, *adc_flags, adddi3_internal): New patterns.
36006         (subsi3_flags): New expander.
36007         (subdi3): Rewrite as expander.
36008         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
36009
36010         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
36011         (rx_init_builtins): Remove sat builtin.
36012         (rx_expand_builtin): Likewise.
36013         * config/rx/rx.md (ssaddsi3): New.
36014         (*sat): Rename from sat.  Represent the CC_REG input.
36015
36016         * config/rx/predicates.md (rshift_operator): New.
36017         * config/rx/rx.c (rx_expand_insv): Remove.
36018         * config/rx/rx-protos.h: Update.
36019         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
36020         operand to the canonical position.
36021         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
36022         (*bitclr, *bitclr_in_memory): Similarly.
36023         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
36024         (insv): Retain the zero_extract in the expansion.
36025
36026         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
36027         (bswaphi2, bitinvert, revw): Likewise.
36028
36029         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
36030         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
36031         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
36032         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
36033         (bitset, bitset_in_memory): Likewise.
36034         (bitinvert, bitinvert_in_memory): Likewise.
36035         (bitclr, bitclr_in_memory): Likewise.
36036         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
36037         (rx_strend, rx_cmpstrn): Likewise.
36038         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
36039         (bitop peep2 patterns): Remove.
36040
36041         * config/rx/rx.c (rx_match_ccmode): New.
36042         * config/rx/rx-protos.h: Update.
36043         * config/rx/rx.md (abssi2): Clobber, don't set flags.
36044         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
36045         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
36046         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
36047         (fix_truncsfsi2, floatsisf2): Likewise.
36048         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
36049         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
36050         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
36051         (*subsi3_flags, *xorsi3_flags): New.
36052
36053         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
36054
36055         * config/rx/rx.c (rx_print_operand): Remove workaround for
36056         unsplit comparison operations.
36057
36058         * config/rx/rx.md (movsicc): Split after reload.
36059         (*movsicc): Merge *movsieq and *movsine via match_operator.
36060         (*stcc): New pattern.
36061
36062         * config/rx/rx.c (rx_float_compare_mode): Remove.
36063         * config/rx/rx.h (rx_float_compare_mode): Remove.
36064         * config/rx/rx.md (cstoresi4): Split after reload.
36065         (*sccc): New pattern.
36066
36067         * config/rx/predicates.md (label_ref_operand): New.
36068         (rx_z_comparison_operator): New.
36069         (rx_zs_comparison_operator): New.
36070         (rx_fp_comparison_operator): New.
36071         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
36072         Validate that the flags are set properly for the comparison.
36073         (rx_gen_cond_branch_template): Remove.
36074         (rx_cc_modes_compatible): Remove.
36075         (mode_from_flags): New.
36076         (flags_from_code): Rename from flags_needed_for_conditional.
36077         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
36078         (rx_select_cc_mode): Likewise.
36079         (rx_split_fp_compare): New.
36080         (rx_split_cbranch): New.
36081         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
36082         (*cbranchsi4): Use match_operator and rx_split_cbranch.
36083         (*cbranchsf4): Similarly.
36084         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
36085         match_operator and rx_split_cbranch.
36086         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
36087         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
36088         (*cmpsi): Rename from cmpsi.
36089         (*tstsi): Rename from tstsi.
36090         (*cmpsf): Rename from cmpsf; use CC_Fmode.
36091         (*conditional_branch): Rename from conditional_branch.
36092         (*reveresed_conditional_branch): Remove.
36093         (b<code>): Remove expander.
36094         * config/rx/rx-protos.h: Update.
36095
36096         * config/rx/rx.c (rx_compare_redundant): Remove.
36097         * config/rx/rx.md (cmpsi): Don't use it.
36098         * config/rx/rx-protos.h: Update.
36099
36100         * config/rx/rx-modes.def (CC_F): New mode.
36101         * config/rx/rx.c (rx_select_cc_mode): New.
36102         * config/rx/rx.h (SELECT_CC_MODE): Use it.
36103         * config/rx/rx-protos.h: Update.
36104
36105 2011-01-17  Richard Henderson  <rth@redhat.com>
36106
36107         * except.c (dump_eh_tree): Fix stray ; after for statement.
36108
36109 2011-01-17  Richard Guenther  <rguenther@suse.de>
36110
36111         PR tree-optimization/47313
36112         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
36113         handling before copying the body.  Properly deal with
36114         by-reference result in SSA form.
36115
36116 2011-01-17  Ian Lance Taylor  <iant@google.com>
36117
36118         PR target/47219
36119         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
36120         (struct_value_alias_set): Don't define.
36121         (sparc_option_override): Don't set sparc_sr_alias_set and
36122         struct_value_alias_set.
36123         (save_or_restore_regs): Use gen_frame_mem rather than calling
36124         set_mem_alias_set.
36125         (sparc_struct_value_rtx): Likewise.
36126
36127 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
36128
36129         PR target/47318
36130         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
36131         (_mm_maskstore_pd): Likewise.
36132         (_mm_maskload_ps): Likewise.
36133         (_mm_maskstore_ps): Likewise.
36134         (_mm256_maskload_pd): Change mask to __m256i.
36135         (_mm256_maskstore_pd): Likewise.
36136         (_mm256_maskload_ps): Likewise.
36137         (_mm256_maskstore_ps): Likewise.
36138
36139         * config/i386/i386-builtin-types.def: Updated.
36140         (ix86_expand_special_args_builtin): Likewise.
36141
36142         * config/i386/i386.c (bdesc_special_args): Update
36143         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
36144         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
36145         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
36146         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
36147
36148         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
36149         Use <avxpermvecmode> on mask register.
36150         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
36151
36152 2011-01-17  Olivier Hainque  <hainque@adacore.com>
36153             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
36154             Eric Botcazou  <ebotcazou@adacore.com>
36155
36156         PR target/46655
36157         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
36158         if <= USHRT_MAX in 32-bit mode.
36159
36160 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36161
36162         * doc/install.texi (Configuration, Specific): Wrap long
36163         lines in examples.  Allow line wrapping in long options
36164         and URLs where beneficial for PDF output.
36165
36166 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
36167
36168         * config/mips/mips.c (mips_classify_symbol): Don't return
36169         SYMBOL_PC_RELATIVE for nonlocal labels.
36170
36171 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
36172
36173         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
36174
36175 2011-01-15  Jan Hubicka  <jh@suse.cz>
36176
36177         PR tree-optimization/47276
36178         * ipa.c (function_and_variable_visibility): Do not try to mark alias
36179         declarations as needed.
36180
36181 2011-01-15  Martin Jambor  <mjambor@suse.cz>
36182
36183         * common.opt (fdevirtualize): New flag.
36184         * doc/invoke.texi (Option Summary): Document it.
36185         * opts.c (default_options_table): Add devirtualize flag.
36186         * ipa-prop.c (detect_type_change): Return immediately if
36187         devirtualize flag is not set.
36188         (detect_type_change_ssa): Likewise.
36189         (compute_known_type_jump_func): Likewise.
36190         (ipa_analyze_virtual_call_uses): Likewise.
36191
36192 2011-01-14  Martin Jambor  <mjambor@suse.cz>
36193
36194         PR tree-optimization/45934
36195         PR tree-optimization/46302
36196         * ipa-prop.c (type_change_info): New type.
36197         (stmt_may_be_vtbl_ptr_store): New function.
36198         (check_stmt_for_type_change): Likewise.
36199         (detect_type_change): Likewise.
36200         (detect_type_change_ssa): Likewise.
36201         (compute_complex_assign_jump_func): Check for dynamic type change.
36202         (compute_complex_ancestor_jump_func): Likewise.
36203         (compute_known_type_jump_func): Likewise.
36204         (compute_scalar_jump_functions): Likewise.
36205         (ipa_analyze_virtual_call_uses): Likewise.
36206         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
36207
36208 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36209
36210         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
36211         * config/i386/i386.opt (msse5): New Alias.
36212
36213 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36214
36215         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
36216         * config/sparc/linux64.h (CC1_SPEC): Likewise.
36217         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
36218         * config/sparc/sparc.h (CC1_SPEC): Likewise.
36219
36220 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36221
36222         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
36223         -mcpu options.
36224         * config/sparc/linux64.h (CC1_SPEC): Likewise.
36225         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
36226         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
36227         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
36228         Likewise.
36229         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
36230
36231 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36232
36233         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
36234
36235 2011-01-14  Mike Stump  <mikestump@comcast.net>
36236
36237         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
36238         * config/fr30/fr30.md: Likweise
36239         (movsi_push): Likewise.
36240         (movsi_pop): Likewise.
36241         (enter_func): Likewise.
36242         * config/moxie/moxie.md (movsi_push): Likewise.
36243         (movsi_pop): Likewise.
36244
36245 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36246
36247         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
36248         %{no_archive} %{exact_version}.
36249         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
36250         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
36251         %{no_archive} %{exact_version}.
36252         * config/mips/openbsd.h (LINK_SPEC): Likewise.
36253         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
36254         * config/mips/vxworks.h: Likewise.
36255
36256 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36257
36258         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
36259
36260 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36261
36262         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
36263         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
36264
36265 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36266
36267         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
36268         -nodefaultlib.
36269
36270 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36271
36272         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
36273         for mcpu not cpu.
36274         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
36275         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
36276         not cpu.
36277         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
36278         Don't handle -shlib.
36279
36280 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36281
36282         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
36283         (CC1_SPEC): Don't handle -profile.
36284
36285 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36286
36287         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
36288         * config/mips/mips.h (CC1_SPEC): Likewise.
36289
36290 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36291
36292         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
36293         * config/mips/mips.h (CC1_SPEC): Likewise.
36294
36295 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36296
36297         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
36298         * config/m32r/linux.h (LINK_SPEC): Likewise.
36299         * config/mips/linux.h (LINK_SPEC): Likewise.
36300         * config/mips/linux64.h (LINK_SPEC): Likewise.
36301         * config/sparc/linux.h (LINK_SPEC): Likewise.
36302         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
36303         LINK_SPEC): Likewise.
36304         * config/xtensa/linux.h (LINK_SPEC): Likewise.
36305
36306 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36307
36308         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
36309         %{version:-v}.
36310         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
36311
36312 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36313
36314         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
36315         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
36316
36317 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36318
36319         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
36320
36321 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36322
36323         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
36324         supports -Bstatic/-Bdynamic.
36325         * configure: Regenerate.
36326
36327 2011-01-14  Jan Hubicka  <jh@suse.cz>
36328             Jack Howarth  <howarth@bromo.med.uc.edu>
36329
36330         PR target/46037
36331         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
36332         when checking debug_info_level. Test write_symbols instead of
36333         debug_hooks->var_location when setting flag_var_tracking_uninit.
36334
36335 2011-01-14  Richard Guenther  <rguenther@suse.de>
36336
36337         PR tree-optimization/47179
36338         * target.def (ref_may_alias_errno): New target hook.
36339         * targhooks.h (default_ref_may_alias_errno): Declare.
36340         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
36341         (default_ref_may_alias_errno): New function.
36342         * target.h (struct ao_ref_s): Declare.
36343         * tree-ssa-alias.c: Include target.h.
36344         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
36345         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
36346         (targhooks.o): Likewise.
36347         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
36348         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
36349
36350 2011-01-14  Richard Guenther  <rguenther@suse.de>
36351
36352         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
36353
36354 2011-01-14  Richard Guenther  <rguenther@suse.de>
36355
36356         PR tree-optimization/47280
36357         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
36358         return CFG changes.
36359         (tree_ssa_forward_propagate_single_use_vars): Deal with
36360         CFG changes from associate_plusminus.
36361
36362 2011-01-14  Richard Guenther  <rguenther@suse.de>
36363
36364         PR middle-end/47281
36365         Revert
36366         2011-01-11  Richard Guenther  <rguenther@suse.de>
36367
36368         PR tree-optimization/46076
36369         * tree-ssa.c (useless_type_conversion_p): Conversions from
36370         unprototyped to empty argument list function types are useless.
36371
36372 2011-01-14  Richard Guenther  <rguenther@suse.de>
36373
36374         PR tree-optimization/47286
36375         * tree-ssa-structalias.c (new_var_info): Register variables are global.
36376
36377 2011-01-14  Martin Jambor  <mjambor@suse.cz>
36378
36379         PR middle-end/46823
36380         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
36381
36382 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
36383
36384         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
36385         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
36386         * config/xtensa/xtensa.c (xtensa_libcall_value,
36387         xtensa_function_value_regno_p): New functions.
36388         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
36389
36390 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
36391
36392         PR c++/47213
36393         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
36394         PE specific hook.
36395         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
36396         New function prototype.
36397         * config/i386/winnt.c (i386_pe_assemble_visibility):
36398         Warn only if attribute was specified by user.
36399
36400 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
36401
36402         PR target/47251
36403         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
36404         floating point.
36405         (floatunsdidf2_fcfidu): Ditto.
36406
36407 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36408
36409         * config/s390/s390.c (print_operand_address): Replace 'error' with
36410         'output_operand_lossage'.
36411         (print_operand): Likewise.
36412
36413 2011-01-13  Jeff Law  <law@redhat.com>
36414
36415         PR rtl-optimization/39077
36416         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
36417         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
36418         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
36419         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
36420         * gcse.c (prune_insertions_deletions): New function.
36421         (compute_pre_data): Use it.
36422
36423 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
36424
36425         PR debug/PR46973
36426         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
36427         static function.
36428         (prune_unused_types_mark): Use it.
36429
36430 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
36431
36432         PR rtl-optimization/45352
36433         * sel-sched.c: Update copyright years.
36434         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
36435         in the advancing loop when we have issued issue_rate insns.
36436
36437 2011-01-12  Richard Henderson  <rth@redhat.com>
36438
36439         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
36440         (TARGET_MD_ASM_CLOBBERS): New.
36441
36442         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
36443         (TARGET_DELEGITIMIZE_ADDRESS): New.
36444
36445         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
36446         (clzsi2, *bsch): New patterns.
36447
36448         * config/mn10300/mn10300.md (INT): New mode iterator.
36449         (*mov<INT>_clr): New pattern, and peep2 to generate it.
36450
36451         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
36452         flag_split_wide_types.
36453
36454         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
36455         (mn10300_trampoline_init): Rewrite without a template, an immediate
36456         load and a direct branch.
36457         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
36458
36459 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
36460
36461         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
36462         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
36463         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
36464         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
36465
36466 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
36467
36468         PR debug/47209
36469         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
36470         of type.
36471
36472 2011-01-12  Jan Hubicka  <jh@suse.cz>
36473
36474         PR driver/47244
36475         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
36476         (PLUGIN_COND_CLOSE): New macro.
36477         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
36478
36479 2011-01-12  Richard Guenther  <rguenther@suse.de>
36480
36481         PR lto/47259
36482         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
36483         register variables in a MEM_REF.
36484
36485 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
36486
36487         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
36488         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
36489         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
36490         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
36491         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
36492         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
36493         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
36494         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
36495         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
36496         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
36497         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
36498         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
36499         * config/gnu-user.h: New.  Copied from linux.h.
36500         (LINUX_TARGET_STARTFILE_SPEC): Rename to
36501         GNU_USER_TARGET_STARTFILE_SPEC.
36502         (LINUX_TARGET_ENDFILE_SPEC): Rename to
36503         GNU_USER_TARGET_ENDFILE_SPEC.
36504         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
36505         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
36506         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
36507         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
36508         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
36509         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
36510         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
36511         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
36512         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
36513         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
36514         * config/arm/linux-eabi.h (CC1_SPEC): Use
36515         GNU_USER_TARGET_CC1_SPEC.
36516         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
36517         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
36518         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
36519         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
36520         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
36521         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
36522         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
36523         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
36524
36525 2011-01-12  Richard Guenther  <rguenther@suse.de>
36526
36527         PR other/46946
36528         * doc/invoke.texi (ffast-math): Document it is turned on
36529         with -Ofast.
36530
36531 2011-01-12  Jan Hubicka  <jh@suse.cz>
36532
36533         PR tree-optimization/47233
36534         * opts.c (common_handle_option): Disable ipa-reference with profile
36535         feedback.
36536
36537 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
36538
36539         * c-parser.c (c_parser_objc_at_property_declaration): Improved
36540         error message.
36541
36542 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
36543
36544         * c-parser.c (c_lex_one_token): Updated and reindented some
36545         comments.  No changes in code.
36546
36547 2011-01-11  Ian Lance Taylor  <iant@google.com>
36548
36549         * godump.c (go_output_var): Don't output the variable if there is
36550         already a type with the same name.
36551
36552 2011-01-11  Ian Lance Taylor  <iant@google.com>
36553
36554         * godump.c (go_format_type): Don't generate float80.
36555
36556 2011-01-11  Richard Henderson  <rth@redhat.com>
36557
36558         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
36559         declaration.  Rewrite for both speed and size.
36560         (mn10300_address_cost_1): Remove.
36561         (mn10300_register_move_cost): New.
36562         (mn10300_memory_move_cost): New.
36563         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
36564         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
36565         extensions, shifts, BSWAP, CLZ.
36566         (mn10300_wide_const_load_uses_clr): Remove.
36567         (TARGET_REGISTER_MOVE_COST): New.
36568         (TARGET_MEMORY_MOVE_COST): New.
36569         * config/mn10300/mn10300-protos.h: Update.
36570         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
36571
36572         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
36573         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
36574         * config/mn10300/mn10300-protos.h: Update.
36575         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
36576         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
36577         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
36578         (*test_int_bitfield, *test_byte_bitfield): Remove.
36579         (*bit_test, *subreg_bit_test): Remove.
36580         * config/mn10300/predicates.md (const_8bit_operand): Remove.
36581
36582         * config/mn10300/constraints.md ("c"): Rename from "A".
36583         ("A", "D"): New constraint letters.
36584         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
36585         (fmssf4, fnmasf4, fnmssf4): Likewise.
36586
36587         * config/mn10300/mn10300.md (isa): New attribute.
36588         (enabled): New attribute.
36589
36590         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
36591         (abssf2, negsf2): Define only for hardware fp.
36592         (sqrtsf2): Reformat.
36593         (addsf3, subsf3, mulsf3): Merge expander and insn.
36594
36595         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
36596         (DEBUGGER_AUTO_OFFSET): Remove.
36597         (DEBUGGER_ARG_OFFSET): Remove.
36598
36599         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
36600         Emit register stores with the same offsets as the hardware.
36601         (mn10300_store_multiple_operation): Don't check that the register
36602         save offsets are monotonic.
36603         * config/mn10300/mn10300-protos.h: Update.
36604
36605         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
36606
36607         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
36608         in terms of the value on the stack, not the MDR register.
36609
36610 2011-01-11  Jan Hubicka  <jh@suse.cz>
36611
36612         PR lto/45721
36613         PR lto/45375
36614         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
36615         (symbol_alias_set_destroy, symbol_alias_set_contains,
36616         propagate_aliases_backward): Declare.
36617         * lto-streamer-out.c (struct sets): New sturcture.
36618         (trivally_defined_alias): New function.
36619         (output_alias_pair_p): Rewrite.
36620         (output_unreferenced_globals): Fix output of alias pairs.
36621         (produce_symtab): Likewise.
36622         * ipa.c (function_and_variable_visibility): Set weak alias destination
36623         as needed in lto.
36624         * varasm.c (symbol_alias_set_t): Remove.
36625         (symbol_alias_set_destroy): Export.
36626         (propagate_aliases_forward, propagate_aliases_backward): New functions
36627         based on ...
36628         (compute_visible_aliases): ... this one; remove.
36629         (trivially_visible_alias): New
36630         (trivially_defined_alias): New.
36631         (remove_unreachable_alias_pairs): Rewrite.
36632         (finish_aliases_1): Reorganize code checking if alias is defined.
36633         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
36634         in LTO mode.
36635
36636 2011-01-11  Richard Guenther  <rguenther@suse.de>
36637
36638         PR tree-optimization/46076
36639         * tree-ssa.c (useless_type_conversion_p): Conversions from
36640         unprototyped to empty argument list function types are useless.
36641
36642 2011-01-11  Richard Guenther  <rguenther@suse.de>
36643
36644         PR middle-end/45235
36645         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
36646         volatile MEMs as MEM_READONLY_P.
36647
36648 2011-01-11  Richard Guenther  <rguenther@suse.de>
36649
36650         PR tree-optimization/47239
36651         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
36652
36653 2011-01-11  Jeff Law  <law@redhat.com>
36654
36655         PR tree-optimization/47086
36656         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
36657         IVs from statements that might throw.
36658
36659 2011-01-10  Jan Hubicka  <jh@suse.cz>
36660
36661         PR lto/45375
36662         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
36663
36664 2011-01-10  Jan Hubicka  <jh@suse.cz>
36665
36666         PR lto/45375
36667         * profile.c (read_profile_edge_counts): Ignore profile inconistency
36668         when correcting profile.
36669
36670 2011-01-10  Jan Hubicka  <jh@suse.cz>
36671
36672         PR lto/46083
36673         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
36674         DECL_FINI_PRIORITY.
36675         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
36676         Restore DECL_FINI_PRIORITY.
36677
36678 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36679
36680         * doc/gimple.texi: Fix quoting of multi-word return values in
36681         @deftypefn statements.  Ensure presence of return value.  Wrap
36682         overlong @deftypefn lines.
36683         (is_gimple_operand, is_gimple_min_invariant_address): Remove
36684         descriptions of removed functions.
36685         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
36686         of multi-word return value in @deftypefn statement.
36687
36688 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36689
36690         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
36691         (Conditional Expressions, Logical Operators)
36692         (Statement and operand traversals): Do not indent smallexample
36693         code.  Fix duplicate function argument in example.
36694
36695 2011-01-10  Jeff Law  <law@redhat.com>
36696
36697         PR tree-optimization/47141
36698         * ipa-split.c (split_function): Handle case where we are
36699         returning a value and the return block has a virtual operand phi.
36700
36701 2011-01-10  Jan Hubicka  <jh@suse.cz>
36702
36703         PR tree-optimization/47234
36704         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
36705         (pass_feedback_split_functions): Declare.
36706         * passes.c (init_optimization_passes): Add ipa-split as subpass of
36707         tree-profile.
36708         * ipa-split.c (gate_split_functions): Update comments; disable
36709         split-functions for profile_arc_flag and branch_probabilities.
36710         (gate_feedback_split_functions): New function.
36711         (execute_feedback_split_functions): New function.
36712         (pass_feedback_split_functions): New global var.
36713
36714 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
36715
36716         PR lto/46760
36717         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
36718         calling gimple_call_set_cannot_inline.
36719
36720 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
36721
36722         * config/darwin-sections.def: Remove unused section.
36723
36724 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
36725
36726         PR c++/47218
36727         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
36728
36729 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
36730
36731         PR objc/47232
36732         * c-parser.c (c_parser_declaration_or_fndef): Improved
36733         error message.
36734
36735 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
36736
36737         * config/i386/winnt.c (i386_pe_start_function): Make sure
36738         to switch back to function's section.
36739
36740 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
36741
36742         PR gcc/46902
36743         PR testsuite/46912
36744         * plugin.c: Move include of dlfcn.h from here...
36745         * system.h: ... to here.
36746
36747 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36748
36749         * doc/cpp.texi (C++ Named Operators): Fix markup for header
36750         file name.
36751         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
36752         two extra empty pages in PDF output.
36753
36754 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
36755
36756         PR objc/47078
36757         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
36758         for error recovery purposes behave as if it was not specified so
36759         that the default type is usd.
36760
36761 2011-01-07  Jan Hubicka  <jh@suse.cz>
36762
36763         PR tree-optmization/46469
36764         * ipa.c (function_and_variable_visibility): Clear needed flags on
36765         nodes with external decls; handle weakrefs merging correctly.
36766
36767 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
36768
36769         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
36770         not false.
36771
36772 2011-01-07  Jan Hubicka  <jh@suse.cz>
36773
36774         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
36775         and no longer claim that gold is required for linker plugin.
36776         * configure: Regenerate.
36777         * gcc.c (PLUGIN_COND): New macro.
36778         (LINK_COMMAND_SPEC): Use it.
36779         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
36780         * config.in (HAVE_LTO_PLUGIN): New.
36781         * configure.ac (--with-lto-plugin): New parameter; autodetect
36782         HAVE_LTO_PLUGIN.
36783
36784 2011-01-07  Jan Hubicka  <jh@suse.cz>
36785
36786         PR tree-optimization/46367
36787         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
36788         when we can update original.
36789         (cgraph_mark_inline_edge): Sanity check.
36790         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
36791
36792 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36793
36794         * config/spu/spu.h (ASM_COMMENT_START): Define.
36795
36796 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
36797
36798         PR driver/42445
36799         * gcc.c (%>S): New.
36800         (SWITCH_KEEP_FOR_GCC): Likewise.
36801         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
36802         (do_spec_1): Handle "%>".
36803
36804         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
36805
36806 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
36807
36808         PR target/47201
36809         * config/i386/i386.c (ix86_delegitimize_address): If
36810         simplify_gen_subreg fails, return orig_x.
36811
36812         PR bootstrap/47187
36813         * value-prof.c (gimple_stringop_fixed_value): Handle
36814         lhs of the call properly.
36815
36816 2011-01-07  Jan Hubicka  <jh@suse.cz>
36817
36818         PR lto/45375
36819         * lto-opt.c (lto_reissue_options): Set flag_shlib.
36820
36821 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
36822
36823         * target.def (function_switched_text_sections): New hook.
36824         * doc/tm.texi: Regenerated.
36825         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
36826         * final.c (default_function_switched_text_sections): New.
36827         (final_scan_insn): Call function_switched_text_sections when a
36828         mid-function section change occurs.
36829         * output.h (default_function_switched_text_sections): Declare.
36830         * config/darwin-protos.h (darwin_function_switched_text_sections):
36831         Likewise.
36832         * config/darwin.c (darwin_function_switched_text_sections): New.
36833         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
36834
36835 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
36836
36837         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
36838         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
36839         the secondary code fragment when outputting for DWARF == 2.
36840
36841 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
36842
36843         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
36844         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
36845         Remove.
36846         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
36847         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
36848
36849 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
36850
36851         PR debug/46704
36852         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
36853         when it is not empty.
36854
36855 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
36856
36857         Bobcat Enablement
36858         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
36859         (case ${target}): Add btver1.
36860         * config/i386/driver-i386.c (host_detect_local_cpu): Let
36861         -march=native recognize btver1 processors.
36862         * config/i386/i386-c.c (ix86_target_macros_internal): Add
36863         btver1 def_and_undef
36864         * config/i386/i386.c (struct processor_costs btver1_cost): New
36865         btver1 cost table.
36866         (m_BTVER1): New definition.
36867         (m_AMD_MULTIPLE): Includes m_BTVER1.
36868         (initial_ix86_tune_features): Add btver1 tune.
36869         (processor_target_table): Add btver1 entry.
36870         (static const char *const cpu_names): Add btver1 entry.
36871         (software_prefetching_beneficial_p): Add btver1.
36872         (ix86_option_override_internal): Add btver1 instruction sets.
36873         (ix86_issue_rate): Add btver1.
36874         (ix86_adjust_cost): Add btver1.
36875         * config/i386/i386.h (TARGET_BTVER1): New definition.
36876         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
36877         (enum processor_type): Add PROCESSOR_BTVER1.
36878         * config/i386/i386.md (define_attr "cpu"): Add btver1.
36879
36880 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36881
36882         PR target/43309
36883         * config/i386/i386.c (legitimize_tls_address)
36884         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
36885         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
36886         (tls_initial_exec_64_sun): New pattern.
36887
36888 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
36889
36890         * doc/invoke.texi (Overall Options): Improve wording and markup
36891         of the description of -wrapper.
36892
36893 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
36894
36895         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
36896         rdynamic, threads): New Driver options.
36897
36898 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36899
36900         PR target/38118
36901         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
36902         if coming from .tdata.
36903         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
36904
36905 2011-01-06  Jan Hubicka  <jh@suse.cz>
36906
36907         PR lto/47188
36908         * collect2.c (main): Do not enable LTOmode when plugin is active.
36909
36910 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36911
36912         PR other/45915
36913         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
36914         --version output if supported.
36915         * configure: Regenerate.
36916
36917 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
36918
36919         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
36920         Driver options.
36921
36922 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
36923
36924         PR c/47150
36925         * c-convert.c (convert): When converting a complex expression
36926         other than COMPLEX_EXPR to a different complex type, ensure
36927         c_save_expr is called instead of save_expr, unless in_late_binary_op.
36928         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
36929         when converting COMPLEX_TYPE.
36930
36931 2011-01-06  Ira Rosen  <irar@il.ibm.com>
36932
36933         PR tree-optimization/47139
36934         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
36935         only the last reduction value is used outside the loop.  Update
36936         documentation.
36937
36938 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
36939
36940         * config/rtems.opt: New.
36941         * config.gcc (*-*-rtems*): Use rtems.opt.
36942
36943 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
36944
36945         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
36946         processors do not support 3DNow instructions.
36947
36948 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36949
36950         * config/spu/spu.c (spu_option_override): Set parameter
36951         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
36952
36953 2011-01-05  Jan Hubicka  <jh@suse.cz>
36954
36955         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
36956         at the command line.
36957
36958 2011-01-05  Martin Jambor  <mjambor@suse.cz>
36959
36960         PR lto/47162
36961         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
36962         deltas on streamed outgoing edges.
36963         (output_node_opt_summary): Output info for outgoing edges only when
36964         the node is in new parameter set.
36965         (output_cgraph_opt_summary): New parameter set, passed to the two
36966         aforementioned functions.  Update its forward declaration and its
36967         callee too.
36968
36969 2011-01-05  Tom Tromey  <tromey@redhat.com>
36970
36971         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
36972         operator to c_finish_omp_atomic.
36973         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
36974         (build_unary_op): Update.
36975         (build_modify_expr): Update.
36976         (build_asm_expr): Update.
36977
36978 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36979
36980         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
36981         newly inserted insns.
36982         (pad_bb): Likewise.
36983         (spu_emit_branch_hint): Likewise.
36984         (insert_hbrp_for_ilb_runout): Likewise.
36985         (spu_machine_dependent_reorg): Call df_finish_pass after
36986         schedule_insns returns.
36987
36988 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36989
36990         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
36991
36992 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
36993
36994         PR tree-optimization/47005
36995         * tree-sra.c (struct access): Add 'non_addressable' bit.
36996         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
36997         (decide_one_param_reduction): Return 0 if the parameter is passed by
36998         reference and one of the accesses in the group is non_addressable.
36999
37000 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
37001
37002         PR tree-optimization/47056
37003         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
37004         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
37005         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
37006
37007 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
37008
37009         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
37010         initializer.  Skip view conversions from aggregate types.
37011
37012 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
37013
37014         PR bootstrap/47055
37015         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
37016
37017 2011-01-04  Philipp Thomas  <pth@suse.de>
37018
37019         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
37020         obvious typo.
37021
37022 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37023
37024         * function.c (thread_prologue_and_epilogue_insns): Do not crash
37025         on empty epilogue sequences.
37026
37027 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
37028
37029         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
37030         non-static): New Driver options.
37031
37032 2011-01-04  Jie Zhang  <jie@codesourcery.com>
37033
37034         PR driver/47137
37035         * gcc.c (default_compilers[]): Set combinable field to 0
37036         for all assembly languages.
37037
37038 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
37039
37040         * config/mips/loongson3a.md: New file.
37041         * config/mips/mips.md: Include loongson3a.md.
37042         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
37043         TUNE_LOONGSON_3A.
37044
37045 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
37046
37047         PR middle-end/47017
37048         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
37049         instead of convert_memory_address_addr_space on the base expression.
37050
37051 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37052
37053         * config/spu/spu.c (spu_option_override): Update error text
37054         for bad -march= / -mtune= values.
37055
37056 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37057
37058         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
37059         if branch-hint optimization will be performed.
37060
37061 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
37062
37063         PR tree-optimization/47148
37064         * ipa-split.c (split_function): Convert arguments to
37065         DECL_ARG_TYPE if possible.
37066
37067         PR tree-optimization/47155
37068         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
37069         when computing uns.
37070
37071         PR rtl-optimization/47157
37072         * combine.c (try_combine): If undobuf.other_insn becomes
37073         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
37074         and set *new_direct_jump_p too.
37075
37076 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
37077
37078         PR tree-optimization/47021
37079         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
37080
37081 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
37082
37083         * gcc.c (process_command): Update copyright notice dates.
37084         * gcov.c (print_version): Likewise.
37085         * gcov-dump.c (print_version): Likewise.
37086         * mips-tfile.c (main): Likewise.
37087         * mips-tdump.c (main): Likewise.
37088
37089 2011-01-03  Martin Jambor  <mjambor@suse.cz>
37090
37091         PR tree-optimization/46801
37092         * tree-sra.c (type_internals_preclude_sra_p): Check whether
37093         aggregate fields start at byte boundary instead of the bit-field flag.
37094
37095 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
37096
37097         PR driver/47137
37098         * gcc.c (main): Revert revision 168407.
37099
37100 2011-01-03  Martin Jambor  <mjambor@suse.cz>
37101
37102         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
37103
37104 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37105
37106         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
37107         vector optab to expand vector/scalar shift, update gimple to vector.
37108
37109 2011-01-03  Martin Jambor  <mjambor@suse.cz>
37110
37111         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
37112         a thunk.
37113
37114 2011-01-03  Martin Jambor  <mjambor@suse.cz>
37115
37116         PR tree-optimization/46984
37117         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
37118         HOST_WIDE_INT.
37119         (cgraph_create_indirect_edge): Fixed line length.
37120         (cgraph_indirect_call_info): Declare.
37121         (cgraph_make_edge_direct) Update declaration.
37122         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
37123         (cgraph_create_indirect_edge): Use it.
37124         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
37125         callees.
37126         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
37127         the new thunk_delta representation.
37128         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
37129         HOST_WIDE_INT.
37130         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
37131         (ipa_read_indirect_edge_info): Likewise.
37132         * lto-cgraph.c (output_edge_opt_summary): New function.
37133         (output_node_opt_summary): Call it on all outgoing edges.
37134         (input_edge_opt_summary): New function.
37135         (input_node_opt_summary): Call it on all outgoing edges.
37136
37137 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
37138
37139         PR driver/47137
37140         * gcc.c (main): Don't check have_o when settting combine_inputs.
37141
37142 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
37143
37144         * regrename.c: Add general comment describing the pass.
37145         (struct du_head): Remove 'length' field.
37146         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
37147         (regrename_optimize): Do not sort chains.  Rework comments, add others.
37148         Force renaming to the preferred class (if any) in the first pass and do
37149         not consider registers that belong to it in the second pass.
37150         (create_new_chain): Do not set 'length' field.
37151         (scan_rtx_reg): Likewise.
37152
37153 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
37154
37155         PR tree-optimization/47140
37156         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
37157         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
37158         to bit_value_binop.
37159
37160         PR rtl-optimization/47028
37161         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
37162         parm_birth_insn instead of at the beginning of first bb.
37163
37164 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
37165
37166         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
37167         Remove the word "see" before "@pxref".
37168         * doc/rtl.texi: Remove the word "see" before "@pxref".
37169
37170 2011-01-01  Jan Hubicka  <jh@suse.cz>
37171
37172         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
37173         memory.
37174
37175 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
37176
37177         PR target/38662
37178         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
37179
37180 \f
37181 Copyright (C) 2011 Free Software Foundation, Inc.
37182
37183 Copying and distribution of this file, with or without modification,
37184 are permitted in any medium without royalty provided the copyright
37185 notice and this notice are preserved.