OSDN Git Service

Check HARD_FRAME_POINTER_REGNUM.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-11-07  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
4         HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx
5         in Rule 18.
6
7 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
8
9         * config/i386/i386.c (ix86_expand_builtin): If gather mask
10         argument is known to have all high bits set, pass pc_rtx as
11         second argument to the expander instead of op0.
12         * config/i386/sse.md (*avx2_gathersi<mode>_2,
13         *avx2_gatherdi<mode>_2): New patterns.
14         * config/i386/avx2intrin.h (_mm256_i32gather_pd,
15         _mm256_i64gather_pd, _mm256_i32gather_ps): Set mask using
16         _mm256_cmp_pd with zero vector arguments and _CMP_EQ_OQ instead of
17         _mm256_set1_pd.
18
19         PR tree-optimization/50789
20         * tree-vect-stmts.c (process_use): Add force argument, avoid
21         exist_non_indexing_operands_for_use_p check if true.
22         (vect_mark_stmts_to_be_vectorized): Adjust callers.  Handle
23         STMT_VINFO_GATHER_P.
24         (gen_perm_mask): New function.
25         (perm_mask_for_reverse): Use it.
26         (reverse_vec_element): Rename to...
27         (permute_vec_elements): ... this.  Add Y and MASK_VEC arguments,
28         generalize for any permutations.
29         (vectorizable_load): Adjust caller.  Handle STMT_VINFO_GATHER_P.
30         * target.def (TARGET_VECTORIZE_BUILTIN_GATHER): New hook.
31         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_GATHER): Document it.
32         * doc/tm.texi: Regenerate.
33         * tree-data-ref.c (initialize_data_dependence_relation,
34         compute_self_dependence): No longer static.
35         * tree-data-ref.h (initialize_data_dependence_relation,
36         compute_self_dependence): New prototypes.
37         * tree-vect-data-refs.c (vect_check_gather): New function.
38         (vect_analyze_data_refs): Detect possible gather load data
39         refs.
40         * tree-vectorizer.h (struct _stmt_vec_info): Add gather_p field.
41         (STMT_VINFO_GATHER_P): Define.
42         (vect_check_gather): New prototype.
43         * config/i386/i386-builtin-types.def: Add types for alternate
44         gather builtins.
45         * config/i386/sse.md (AVXMODE48P_DI): Remove.
46         (VEC_GATHER_MODE): Rename mode_attr to...
47         (VEC_GATHER_IDXSI): ... this.
48         (VEC_GATHER_IDXDI, VEC_GATHER_SRCDI): New mode_attrs.
49         (avx2_gathersi<mode>, *avx2_gathersi<mode>): Use <VEC_GATHER_IDXSI>
50         instead of <VEC_GATHER_MODE>.
51         (avx2_gatherdi<mode>): Use <VEC_GATHER_IDXDI> instead of
52         <<AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
53         on src and mask operands.
54         (*avx2_gatherdi<mode>): Likewise.  Use VEC_GATHER_MODE iterator
55         instead of AVXMODE48P_DI.
56         (avx2_gatherdi<mode>256, *avx2_gatherdi<mode>256): Removed.
57         * config/i386/i386.c (enum ix86_builtins): Add
58         IX86_BUILTIN_GATHERALTSIV4DF, IX86_BUILTIN_GATHERALTDIV8SF,
59         IX86_BUILTIN_GATHERALTSIV4DI and IX86_BUILTIN_GATHERALTDIV8SI.
60         (ix86_init_mmx_sse_builtins): Create those builtins.
61         (ix86_expand_builtin): Handle those builtins and adjust expansions
62         of other gather builtins.
63         (ix86_vectorize_builtin_gather): New function.
64         (TARGET_VECTORIZE_BUILTIN_GATHER): Define.
65
66 2011-11-07  Uros Bizjak  <ubizjak@gmail.com>
67
68         * config/i386/f16cintrin: Remove extra _X86INTRIN_H_INCLUDED check.
69
70 2011-11-07  Tristan Gingold  <gingold@adacore.com>
71
72         * config.gcc (*-*-*vms*): Set c_target_objs, cxx_target_objs.
73         * config/vms/t-vms: Add vms-c.o rule.
74         * config/vms/vms-c.c: New file.
75         * config/vms/vms-protos.h (vms_c_register_pragma): New prototype.
76         * config/vms/vms.h (REGISTER_TARGET_PRAGMAS): Define.
77
78 2011-11-07  Tristan Gingold  <gingold@adacore.com>
79
80         * config/alpha/vms.h (TARGET_OBJECT_SUFFIX,
81         TARGET_EXECUTABLE_SUFFIX, TARGET_OS_CPP_BUILTINS,
82         TARGET_ABI_OPEN_VMS, LONG_TYPE_SIZE, ADA_LONG_TYPE_SIZE,
83         POINTER_SIZE, POINTERS_EXTEND_UNSIGNED): Move to config/vms/vms.h
84         (SUBTARGET_OS_CPP_BUILTINS): Define.
85         (TARGET_DEFAULT): Tune according to POINTER_SIZE.
86         (MASK_RETURN_ADDR): Define in 64 bit mode.
87         * config/ia64/vms.h: Likewise.
88         * config/vms/vms.h: New file.
89         * config/vms/vms64.h: New file.
90         * config/alpha/vms64.h: Removed.
91         * config/ia64/vms64.h: Removed.
92         * config.gcc (alpha64-dec-*vms*, alpha*-dec-*vms*, ia64-hp-*vms*):
93         Adjust for above change.
94
95 2011-11-07  Enkovich Ilya  <ilya.enkovich@intel.com>
96
97         PR target/50962
98         * config/i386/i386-protos.h (ix86_use_lea_for_mov): New.
99         * config/i386/i386.c (ix86_use_lea_for_mov): Likewise.
100         * config/i386/i386.md (movsi_internal): Emit lea if profitable.
101         (movdi_internal_rex64): Likewise.
102
103 2011-11-07  Sergey Ostanevich  <sergos.gnu@gmail.com>
104
105         PR rtl-optimization/47698
106         * ifconv.c (noce_operand_ok): prevent CMOV generation for volatile mem.
107
108 2011-11-07  Tristan Gingold  <gingold@adacore.com>
109
110         * common/config/alpha/alpha-common.c (alpha_option_init_struct):
111         New function.
112         (TARGET_OPTION_INIT_STRUCT): Define.
113         * config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
114         (TARGET_MAX_ANCHOR_OFFSET)
115         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.
116
117 2011-11-06  Quentin Neill  <quentin.neill@amd.com>
118
119         Fix r180999, update ChangeLog
120         * config.gcc: Add f16cintrin.h.
121         * config/i386/f16cintrin.h: Add missing endif.
122
123 2011-11-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
124
125         * config.gcc (arm*-*-rtemseabi*): New target.
126         * config/arm/rtems-eabi.h: New.
127         * config/arm/t-rtems-eabi: New.
128
129 2011-11-06  David S. Miller  <davem@davemloft.net>
130
131         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): Delete.
132         (zero_extend_v8qi_vis, zero_extend_v4hi_vis,
133         *zero_extend_v8qi_<P:mode>_insn,
134         *zero_extend_v4hi_<P:mode>_insn): Express using vec_merge
135         and vec_duplicate instead of using an UNSPEC.
136
137 2011-11-07  Alan Modra  <amodra@gmail.com>
138
139         PR target/30282
140         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
141         blockage for ABI_V4.
142
143 2011-11-06  Dave Korn  <dave.korn.cygwin@gmail.com>
144
145         * config/i386/cygwin.h (LIBGCJ_SONAME): Updated to match recent
146         libgcj version bump.
147         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
148
149 2011-11-06  Eric Botcazou  <ebotcazou@adacore.com>
150
151         * gcse.c: Adjust outdated comments throughout.
152         (struct mem_conflict_info): New structure.
153         (mems_conflict_for_gcse_p): Use it to communicate with caller.
154         (load_killed_in_block_p): Pass it to note_stores.
155         (hash_expr): Remove superfluous line break.
156         (hash_scan_set): Rename PAT parameter into SET.
157         (hash_scan_insn): Reorder cases.
158         (canon_list_insert): Fix long line.
159         (edge_list): Delete.
160         (prune_expressions): Rename E local variable into EXPR.
161         (compute_pre_data): Return struct edge_list * object.
162         (pre_expr_reaches_here_p_work): Fix formatting.
163         (process_insert_insn): Move around comment.
164         (pre_edge_insert): Fix long line.
165         (pre_insert_copies): Likewise.
166         (gcse_emit_move_after): Swap SRC and DEST parameters.
167         (pre_delete): Adjust call to gcse_emit_move_after.
168         (pre_gcse): Take struct edge_list * parameter.  Fix long line.
169         (one_pre_gcse_pass): Use flag_gcse_lm condition for all routines.
170         Use a local list of edges.
171         (hoist_code): Fix long line.  Adjust call to gcse_emit_move_after.
172         (pre_ldst_expr_hash): Fix long line.
173         (free_ldst_mems): Rename into...
174         (free_ld_motion_mems): ...this.
175         (first_ls_expr): Delete.
176         (next_ls_expr): Likewise.
177         (print_ldst_list): Do not use above two functions.
178         (simple_mem): Adjust interface.
179         (compute_ld_motion_mems): Fix formatting.
180         (update_ld_motion_stores): Reuse local variable.
181
182 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
183
184         * c-decl.c (shadow_tag_warned, grokdeclarator): Handle _Alignas
185         specifiers.
186         (build_null_declspecs): Initialize align_log and alignas_p fields.
187         (declspecs_add_alignas): New.
188         * c-parser.c (c_token_starts_declspecs): Handle RID_ALIGNAS.
189         (c_parser_declspecs): Handle _Alignas specifiers.
190         (c_parser_alignas_specifier): New.
191         (c_parser_alignof_expression): Diagnose alignof use for non-C1X.
192         Diagnose _Alignof (expression).
193         * c-tree.h (struct c_declspecs): Add align_log and alignas_p fields.
194         (declspecs_add_alignas): Declare.
195         * ginclude/stddef.h (max_align_t): Define for C1X and C++11.
196         * ginclude/stdalign.h: New.
197         * Makefile.in (USER_H): Add stdalign.h.
198
199 2011-11-06  Joern Rennecke  <joern.rennecke@embecosm.com>
200             Eric Botcazou  <ebotcazou@adacore.com>
201
202         * regset.h (fixed_reg_set_regset): Declare.
203         * dse.c: Include regset.h .
204         (struct insn_info): Add member fixed_regs_live.
205         (note_add_store_info): New typedef.
206         (note_add_store): New function.
207         (emit_inc_dec_insn_before): Expect arg to be of type insn_info_t.
208         Use gen_add3_insn / gen_move_insn.
209         Check new insn for unwanted clobbers before emitting it.
210         (check_for_inc_dec): Rename to...
211         (check_for_inc_dec_1:) ... this.  Return bool.  Take insn_info
212         parameter.  Changed all callers in file.
213         (check_for_inc_dec, copy_fixed_regs): New functions.
214         (scan_insn): Set fixed_regs_live field of insn_info.
215         * rtl.h (check_for_inc_dec): Update prototype.
216         * postreload.c (reload_cse_simplify): Take new signature of
217         check_ind_dec into account.
218         * reginfo.c (fixed_reg_set_regset): New variable.
219         (init_reg_sets_1): Initialize it.
220
221 2011-11-06  Jakub Jelinek  <jakub@redhat.com>
222
223         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
224         any user labels.
225
226 2011-11-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
227
228         * config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
229         Remove dependence of declaration and target define on definition of
230         HPUX_LONG_DOUBLE_LIBRARY.  Update implementation.
231
232 2011-11-06  Andrew Macleod  <amacleod@redhat.com>
233             Richard Henderson  <rth@redhat.com>
234             Aldy Hernandez  <aldyh@redhat.com>
235
236         Merged from cxx-mem-model.
237
238         * cppbuiltin.c (define__GNUC__): Define __ATOMIC memory models
239         * coretypes.h (enum memmodel): New.  enumerated memory model type.
240         * Makefile.in (cppbuiltin.o) Add missing dependency on $(TREE_H)
241         * genopinit,c (optabs): Add atomic direct optab handlers.
242         * sync-builtins.def (BUILT_IN_ATOMIC_*): New builtins.
243         * builtin-types.def (BT_CONST_VOLATILE_PTR,
244         BT_FN_I{1,2,4,8,16}_CONST_VPTR_INT, BT_FN_VOID_VPTR_INT,
245         BT_FN_BOOL_VPTR_INT, BT_FN_BOOL_SIZE_CONST_VPTR,
246         BT_FN_I{1,2,4,8,16}_VPTR_I{1,2,4,8,16}_INT,
247         BT_FN_VOID_VPTR_I{1,2,4,8,16}_INT, BT_FN_VOID_SIZE_VPTR_PTR_INT,
248         BT_FN_VOID_SIZE_CONST_VPTR_PTR_INT, BT_FN_VOID_SIZE_VPTR_PTR_PTR_INT,
249         BT_FN_BOOL_VPTR_PTR_I{1,2,4,8,16}_BOOL_INT_INT): New builtin types.
250         * expr.h (expand_atomic_*): Add prototypes.
251         (expand_{bool,val}_compare_and_swap): Remove prototypes.
252         * c-typeck.c (build_function_call_vec): Don't reprocess __atomic
253         parameters.
254         * common.opt (Winvalid-memory-model): New warning flag.
255         (finline-atomics): New. Flag to disable atomic inlining.
256         * params.h (ALLOW_LOAD_DATA_RACES): New.
257         (ALLOW_PACKED_LOAD_DATA_RACES): New.
258         (ALLOW_PACKED_STORE_DATA_RACES): New.
259         * params.def (PARAM_ALLOW_LOAD_DATA_RACES): New.
260         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES): New.
261         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): New.
262         * builtins.c (is_builtin_name): Handle __atomic.
263         (get_memmodel): New.  Extract memory model.
264         (expand_expr_force_mode): New. Factor out common code for ensuring an
265         integer argument is in the proper mode.
266         (expand_builtin_sync_operation): Remove ignore param.  Always call
267         expand_atomic_fetch_op instead of the old expanders.
268         (expand_builtin_compare_and_swap,
269         expand_builtin_sync_lock_test_and_set): Use expand_expr_force_mode,
270         call atomic expanders instead of sync expanders.
271         (expand_builtin_sync_lock_release): Call atomic_store expander.
272         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
273         expand_builtin_atomic_store, expand_builtin_atomic_fetch_op): New.
274         (expand_builtin_atomic_exchange): New.
275         (fold_builtin_atomic_always_lock_free,
276         expand_builtin_atomic_always_lock_free,
277         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
278         New.
279         (expand_builtin_mem_thread_fence, expand_builtin_atomic_thread_fence,
280         expand_builtin_atomic_signal_fence): New.
281         (expand_builtin_mem_signal_fence): New.
282         (expand_builtin): Add cases for BUILT_IN_ATOMIC_*.
283         (fold_builtin_2): Add cases for BUILT_IN_ATOMIC_{IS,ALWAYS}_LOCK_FREE.
284         * optabs.h (DOI_atomic_*): Define new atomics.
285         (atomic_*_optab): Define.
286         (can_compare_and_swap_p, expand_atomic_compare_and_swap): New
287         prototypes.
288         * optabs.c (expand_sync_operation, expand_sync_fetch_operation): Remove.
289         (expand_sync_lock_test_and_set): Remove.
290         (expand_atomic_load, expand_atomic_store): New.
291         (expand_atomic_exchange): New.
292         (expand_atomic_compare_and_swap): New.  Implements
293         atomic_compare_exchange via compare and swap.
294         (struct atomic_op_functions): Opcode table struct for fetch ops.
295         (get_atomic_op_for_code): New.  Return an opcode table entry.
296         (maybe_emit_op): New.  Try to emit a fetch op.
297         (expand_atomic_fetch_op): New.
298         (expand_val_compare_and_swap_1): Remove.
299         (expand_val_compare_and_swap, expand_bool_compare_and_swap): Remove.
300         (expand_atomic_compare_and_swap): Rename from
301         expand_atomic_compare_exchange.  Rewrite to return both success and
302         oldval return values; expand via both atomic and sync optabs.
303         (can_compare_and_swap_p): New.
304         (expand_compare_and_swap_loop): Use expand_atomic_compare_and_swap.
305         (maybe_gen_insn): Handle 7 and 8 operands.
306         * omp-low.c (expand_omp_atomic_fetch_op): Don't test individual
307         fetch_op optabs, only test can_compare_and_swap_p.  Use __atomic
308         builtins instead of __sync builtins.
309         (expand_omp_atomic_pipeline): Use can_compare_and_swap_p.
310         * doc/extend.texi: Document __atomic built-in functions.
311         * doc/invoke.texi: Document data race parameters.
312         * doc/md.texi: Document atomic patterns.
313         * config/i386/i386.md (UNSPEC_MOVA): New.
314         (UNSPECV_CMPXCHG): Split into ...
315         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2,
316         UNSPECV_CMPXCHG_3, UNSPECV_CMPXCHG_4): New.
317         * config/i386/sync.md (ATOMIC): New mode iterator.
318         (atomic_load<ATOMIC>, atomic_store<ATOMIC>): New.
319         (atomic_loaddi_fpu, atomic_storedi_fpu, movdi_via_fpu): New.
320         (mem_thread_fence): Rename from memory_barrier.
321         Handle the added memory model parameter.
322         (mfence_nosse): Rename from memory_barrier_nosse.
323         (sync_compare_and_swap<CASMODE>): Split into ...
324         (atomic_compare_and_swap<SWI124>): this and ...
325         (atomic_compare_and_swap<CASMODE>): this.  Handle the new parameters.
326         (atomic_compare_and_swap_single<SWI>): Rename from
327         sync_compare_and_swap<SWI>; rewrite to use split unspecs.
328         (atomic_compare_and_swap_double<DCASMODE>): Rename from
329         sync_double_compare_and_swap<DCASMODE>; rewrite to use split unspecs.
330         (*atomic_compare_and_swap_doubledi_pic): Rename from
331         sync_double_compare_and_swapdi_pic; rewrite to use split unspecs.
332         (atomic_fetch_add<SWI>): Rename from sync_old_add<SWI>; add memory
333         model parameter.
334         (*atomic_fetch_add_cmp<SWI>): Similarly.
335         (atomic_add<SWI>, atomic<any_logic><SWI>): Similarly.
336         (atomic_sub<SWI>): Similarly.  Use x86_maybe_negate_const_int.
337         (sync_lock_test_and_set<SWI>): Merge with ...
338         (atomic_exchange<SWI>): ... this.
339
340 2011-11-6  Richard Guenther  <rguenther@suse.de>
341
342         * ipa-prop.c (ipa_modify_call_arguments): Re-compute
343         inlinable flag.
344
345 2011-11-06  Ira Rosen  <ira.rosen@linaro.org>
346
347         * tree-vectorizer.h (vectorizable_condition): Add argument.
348         * tree-vect-loop.c (vectorizable_reduction): Fail for condition
349         in SLP.  Update calls to vectorizable_condition.
350         * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info to
351         the arguments.  Pass it to vect_is_simple_use_1.
352         (vectorizable_condition): Add slp_node to the arguments.  Support
353         vectorization of basic blocks.  Fail for reduction in SLP.  Update
354         calls to vect_is_simple_cond and vect_is_simple_use.  Support SLP:
355         call vect_get_slp_defs to get vector operands.
356         (vect_analyze_stmt): Update calls to vectorizable_condition.
357         (vect_transform_stmt): Likewise.
358         * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
359         (vect_get_and_check_slp_defs): Handle COND_EXPR.  Allow pattern
360         def stmts.
361         (vect_build_slp_tree): Handle COND_EXPR.
362         (vect_analyze_slp_instance): Push pattern statements to root node.
363         (vect_get_constant_vectors): Fix comments.  Handle COND_EXPR.
364
365 2011-11-05  David S. Miller  <davem@davemloft.net>
366
367         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
368         (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
369         (*zero_extend_v8qi_<P:mode>_insn,
370         *zero_extend_v4hi_<P:mode>_insn): New insns.
371         * config/sparc/sparc.c (vector_init_move_words,
372         vector_init_prepare_elts, sparc_expand_vector_init_vis2,
373         sparc_expand_vector_init_vis1): New functions.
374         (vector_init_bshuffle): Rewrite to handle more cases and make use
375         of locs[] array prepared by vector_init_prepare_elts.
376         (vector_init_fpmerge, vector_init_faligndata): Delete.
377         (sparc_expand_vector_init): Rewrite using new infrastructure.
378
379 2011-11-05  Joern Rennecke  <joern.rennecke@embecosm.com>
380
381         * config.gcc (epiphany-*-*): New architecture.
382         (epiphany-*-elf): New configuration.
383         * config/epiphany, common/config/epiphany : New directories.
384         * doc/extend.texi (disinterrupt attribute): Add Epiphany.
385         (interrupt attribute): Add Epiphany.
386         (long_call, short_call attribute): Add Epiphany.
387         * doc/invoke.texi (Options): Add Epiphany options.
388         * doc/md.texi (Machine Constraints): Add Epiphany constraints.
389         * doc/install.texi (Options specification):
390         Add --with-stack-offset=@var{num} description.
391         (host/target specific issues): Add epiphany-*-elf.
392         * doc/contrib.texi (Contributors): Mention Epiphany port.
393
394 2011-11-05  Jakub Jelinek  <jakub@redhat.com>
395
396         PR tree-optimization/50693
397         * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
398         non-forced user labels.
399         (gimple_merge_blocks): Turn non-forced user labels into
400         debug bind stmt with the label as first operand and reset value.
401         (gimple_duplicate_bb): Don't duplicate label debug stmts.
402         * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
403         * final.c (final_scan_insn): Likewise.
404         (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
405         * var-tracking.c (debug_label_num): New variable.
406         (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
407         instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
408         * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
409         NOTE_INSN_DELETED_DEBUG_LABEL.
410         (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
411         * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
412         * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
413         * gengtype.c (adjust_field_rtx_def): Likewise.
414         * config/i386/i386.c (ix86_output_function_epilogue): For MachO
415         clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
416         if their are at the end of function and nop hasn't been emitted.
417         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
418
419 2011-11-05  Georg-Johann Lay  <avr@gjlay.de>
420
421         PR rtl-optimization/50448
422         * cprop.c (try_replace_reg): Also try to replace uses of FROM that
423         appear in SET_DEST.
424
425 2011-11-05  Peter Dufault  <dufault@hda.com>,
426             Sebastian Huber  <sebastian.huber@embedded-brains.de>
427
428         * config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
429         Extend rs6000_spe handling.
430
431 2011-11-05  Ralf Corsépius  <ralf.corsepius@rtems.org>
432
433         * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
434         Remove -mcpu=601 multilib.
435         Remove -Dmpc8260 multilib.
436         * config/rs6000/rtems.h: Allow --float-gprs=... to override grps
437         on E500 targets.
438
439 2011-11-05  Quentin Neill  <quentin.neill@amd.com>
440
441         Piledriver f16cintrin.h fix.
442         * config/i386/f16cintrin.h: Contents moved from immintrin.h.
443         * config/i386/immintrin.h: Include f16cintrin.h.
444         * config.gcc (i[34567]86-*-*, x86_64-*-*): Add f16cintrin.h.
445
446
447 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
448
449         PR c++/50608
450         * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
451         to fold_offsetof.
452         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
453
454 2011-11-04  Alan Modra  <amodra@gmail.com>
455
456         * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
457         * print-rtl.c (print_rtx): Don't segfault on negative regno.
458
459 2011-11-04  David S. Miller  <davem@davemloft.net>
460
461         PR target/49965
462         * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
463         fact that sparc_emit_float_lib_cmp modifies the comparison in
464         operands[1].
465
466 2011-11-04  Ralf Corsépius  <ralf.corsepius@rtems.org>
467
468         * config/lm32/t-rtems: New.
469         * config.gcc (lm32-*-rtems*): Add t-rtems.
470
471 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
472
473         PR target/50979
474         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
475
476 2011-11-04  Jiangning Liu  <jiangning.liu@arm.com>
477
478         PR rtl-optimization/38644
479         * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
480         for epilogue having stack adjustment.
481
482 2011-11-04  Georg-Johann Lay  <avr@gjlay.de>
483
484         PR target/50931
485         * config/avr/avr-modes.def: New file defining PSImode.
486         * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
487         __UINT24_MAX__): New built-in defines.
488         * config/avr/avr.md (adjust_len): Add tstpsi, mov24,  reload_in24,
489         ashlpsi, ashrpsi, lshrpsi.
490         (QISI, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
491         (MOVMODE): New mode iterator.
492         (movpsi): New expander.
493         (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
494         (*reload_inpsi, *movpsi): New insns.
495         (*reload_inpsi): New RTL peephole.
496         (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
497         *addpsi3_sign_extend.hi): New insns.
498         (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
499         *subpsi3_sign_extend.hi): New insns.
500         (divmodpsi4, udivmodpsi4): New define insn-and-split.
501         (*divmodpsi4_call, *udivmodpsi4_call): New insns.
502         (andpsi3, iorpsi3, xorpsi3): New insns.
503         (*rotlpsi2.1, *rotlpsi2.23): New insns.
504         (*rotw<mode>): Insn condition only allow even-sized modes.
505         (*rotb<mode>): Insn condition allows odd-sized modes.
506         (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
507         (negpsi2, one_cmplpsi2): New insns.
508         (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
509         (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
510         insn-and-splits.
511         (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
512         (cbranchpsi4): New expander.
513         * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
514         * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
515         avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
516         avr_out_reload_inpsi): New prototypes.
517
518         * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
519         (avr_scalar_mode_supported_p): ...this new static function.
520         (avr_asm_len): Always return "".
521         (avr_out_load_psi, avr_out_store_psi): New static functions.
522         (avr_out_movpsi, avr_out_reload_inpsi): New functions.
523         (avr_out_tstpsi): New function.
524         (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
525         (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
526         (avr_simplify_comparison_p): Ditto.
527         (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
528         ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
529         ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
530         (avr_rtx_costs_1): Report PSI costs.
531         (avr_libcall_value): Handle odd-sized parameters.
532         (avr_init_builtin_int24): New static function to define built-in
533         24-bit types __int24 and __uint24.
534         (avr_init_builtins): Use it.
535
536 2011-11-04  Thomas Doerfler <thomas.doerfler@embedded-brains.de>
537
538         PR target/50989
539         * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
540         support for VFP floating point model.
541
542 2011-11-04  Tristan Gingold  <gingold@adacore.com>
543
544         * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
545
546 2011-11-04  Ira Rosen  <ira.rosen@linaro.org>
547
548         Unrevert:
549         2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
550
551         PR tree-optimization/50730
552         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
553         analysis if encountered unsupported data-ref.
554
555 2011-11-04  Jakub Jelinek  <jakub@redhat.com>
556
557         * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
558         function.
559         * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
560         New prototype.
561         * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
562         For floatunsv8siv8sf2 require TARGET_AVX2.
563
564         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
565         XORP argument.  Subtract 0x1p31 instead of 0x1p32.  Use normal
566         signalling comparison instead of non-signalling.  Store into
567         *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
568         subtracted and 0 otherwise.
569         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
570         Adjust prototype.
571         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
572         already for TARGET_SSE2.  Xor in vector initialized by
573         ix86_expand_adjust_ufix_to_sfix_si at the end.
574         (vec_pack_ufix_trunc_<mode>): Likewise.
575
576         * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
577         not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
578         WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
579         vectorizable_type_demotion and vectorizable_type_promotion did.
580         Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
581         is {,un}signed {char,short}.
582         (vect_create_vectorized_demotion_stmts): Fix comment typo.  For
583         recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
584         Push vec_dest back to the vec_dsts vector at the end.
585         (vect_create_vectorized_promotion_stmts): Don't recurse, do just
586         one step.  Removed multi_step_cvt, vec_dsts, slp_node and
587         prev_stmt_info arguments, add vec_dest argument.  Push always
588         into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
589         with vec_tmp at the end after freeing old *vec_oprnd0 vector.
590         (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
591         (vect_analyze_stmt): Don't call vectorizable_type_demotion and
592         vectorizable_type_promotion.  Call vectorizable_conversion even
593         for SLP bb vectorization.
594         (vect_transform_stmt): Call vectorizable_conversion instead of
595         vectorizable_type_demotion and vectorizable_type_promotion.
596         (supportable_widening_operation): Clear *multi_step_cvt first,
597         simplify c1/c2 computation, free *interm_types vector on failure.
598         (supportable_narrowing_operation): Clear *multi_step_cvt first,
599         free *interm_types vector on failure, handle multi-step
600         FIX_TRUNC_EXPR.
601
602 2011-11-04  Tristan Gingold  <gingold@adacore.com>
603
604         * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
605         argument.  Conditionally generate crash debug info.  Adjust
606         for alpha_funcs_tree removal.
607         (machine_function): Add links field.
608         (alpha_start_function): Conditionally generate crash debug info.
609         (alpha_end_function): Adjust call to alpha_write_linkage.
610         (alpha_funcs): Remove.
611         (links_kind): Remove.
612         (alpha_links): Remove num, target and lkind field.  Add func field.
613         (alpha_links_tree): Remove.
614         (alpha_funcs_tree): Remove.
615         (alpha_need_linkage): Remove.
616         (alpha_use_linkage): Change prototype.  Adjust.
617         (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
618         Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
619         * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
620         (alpha_need_linkage): Remove.
621         * config/alpha/alpha.md: Update calls to alpha_use_linkage.
622         Adjust calls to alpha_need_linkage.
623
624 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
625
626         * sched-vis.c (print_value): Handle STRICT_LOW_PART.
627
628 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
629
630         * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
631         rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
632         btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
633
634 2011-11-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
635
636         PR target/50978
637         * config/arm/t-bpabi: New file.
638         * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
639         arm*-*-linux-*eabi.
640         (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
641         arm*-*-uclinux*eabi.
642         (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
643         for arm*-*-eabi*.
644
645 2011-11-03  Michael Matz  <matz@suse.de>
646
647         PR bootstrap/50857
648         * configure.ac: Check for -fno-exceptions -fno-rtti.
649         * configure: Regenerate.
650         * Makefile.in (NOEXCEPTION_FLAGS): New flag.
651         (ALL_CXXFLAGS): Use it.
652
653 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
654
655         * config/i386/i386.md: Use {} for multi-line preparation statements.
656
657 2011-11-03  Eric Botcazou  <ebotcazou@adacore.com>
658
659         * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
660         (movtf_insn_sp32): ...this.
661         (movtf_insn_sp64_no_fpu): Consolidate into...
662         (movtf_insn_sp64): ...this.
663         (movtf_insn_sp64_hq): Do not test TARGET_FPU.
664         * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
665
666 2011-11-03  Tristan Gingold  <gingold@adacore.com>
667
668         * config/vms/vms.c (vms_patch_builtins): Fix typo.
669
670 2011-11-03  Richard Guenther  <rguenther@suse.de>
671
672         PR lto/44965
673         * lto-opts.c: Re-implement.
674         * lto-streamer.h (lto_register_user_option): Remove.
675         (lto_read_file_options): Likewise.
676         (lto_reissue_options): Likewise.
677         (lto_clear_user_options): Likewise.
678         (lto_clear_file_options): Likewise.
679         * opts-global.c (post_handling_callback): Remove.
680         (set_default_handlers): Do not set post_handling_callback.
681         (decode_options): Remove LTO specific code.
682         * lto-wrapper.c (merge_and_complain): New function.
683         (run_gcc): Read all input file options and
684         prepend a merged set before the linker driver options.
685         * gcc.c (driver_post_handling_callback): Remove.
686         (set_option_handlers): Do not set post_handling_callback.
687         * opts-common.c (handle_option): Do not call post_handling_callback.
688         * opts.h (struct cl_option_handlers): Remove post_handling_callback.
689
690 2011-11-03  Richard Guenther  <rguenther@suse.de>
691
692         * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
693
694 2011-11-03  Martin Jambor  <mjambor@suse.cz>
695
696         * ipa-prop.c (type_change_info): New fields offset, object,
697         known_current_type and multiple_types_encountered.
698         (extr_type_from_vtbl_ptr_store): New function.
699         (check_stmt_for_type_change): Use it, set multiple_types_encountered if
700         the result is different from the previous one.
701         (detect_type_change): Renamed to detect_type_change_1. New parameter
702         comp_type.  Set up new fields in tci, build known type jump
703         functions if the new type can be identified.
704         (detect_type_change): New function.
705         * tree.h (DECL_CONTEXT): Comment new use.
706
707 2011-11-03  Richard Guenther  <rguenther@suse.de>
708
709         PR lto/48217
710         * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
711         decode an encoded literal '.
712
713 2011-11-03  Tristan Gingold  <gingold@adacore.com>
714
715         * collect2.c (main): Add support of -f (response file) on AIX.
716
717 2011-11-03  Ira Rosen  <ira.rosen@linaro.org>
718
719         PR tree-optimization/50912
720         * tree-vectorizer.h (slp_void_p): New.
721         (struct _slp_tree): Replace left and right with children.  Update
722         documentation.
723         (struct _slp_oprnd_info): New.
724         (vect_get_vec_defs): Declare.
725         (vect_get_slp_defs): Update arguments.
726         * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
727         vect_get_vec_defs instead of vect_get_slp_defs.
728         (vectorizable_reduction): Likewise.
729         * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
730         Update call to vect_get_slp_defs.
731         (vectorizable_conversion): Update call to vect_get_vec_defs.
732         (vectorizable_assignment, vectorizable_shift,
733         vectorizable_operation): Likewise.
734         (vectorizable_type_demotion): Call vect_get_vec_defs instead of
735         vect_get_slp_defs.
736         (vectorizable_type_promotion, vectorizable_store): Likewise.
737         (vect_analyze_stmt): Fix typo.
738         * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
739         (vect_print_slp_tree, vect_mark_slp_stmts,
740         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
741         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
742         vect_schedule_slp_instance): Likewise.
743         (vect_create_new_slp_node): New.
744         (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
745         (vect_get_and_check_slp_defs): Pass information about defs using
746         oprnds_info, allow any number of operands.
747         (vect_build_slp_tree): Likewise.  Update calls to
748         vect_get_and_check_slp_defs.  Fix comments.
749         (vect_analyze_slp_instance): Move node creation to
750         vect_create_new_slp_node.
751         (vect_get_slp_defs): Allow any number of operands.
752
753 2011-11-02  Peter Bergner  <bergner@vnet.ibm.com>
754             Iain Sandoe  <iains@gcc.gnu.org>
755
756         * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
757         (get_ppc476_thunk_name): Use it.
758         (rs6000_code_end): Likewise.
759         (macho_branch_islands): Fix typo.
760
761 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
762             Jason Merrill  <jason@redhat.com>
763
764         PR c++/50810
765         * configure.ac: Add -Wno-narrowing to warning options.
766         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
767
768 2011-11-02  Eric Botcazou  <ebotcazou@adacore.com>
769
770         PR target/50945
771         * config/sparc/sparc.md (movsf_insn): Reindent constraints.
772         (movdf_insn_sp32): Likewise.  Remove redundant G constraint.
773         (movdf_insn_sp64): Likewise.
774         (DFmode splitter): Do not test TARGET_FPU.
775         (movtf_insn_sp32): Reindent constraints.
776         (movtf_insn_sp32_no_fpu): Likewise.
777         (movtf_insn_sp64): Likewise.
778         (movtf_insn_sp64_hq): Likewise.
779         (movtf_insn_sp64_no_fpu): Likewise.
780
781 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
782
783         PR c++/50956
784         * builtins.c (fold_builtin_memchr): Fix cast.
785
786 2011-11-02  Teresa Johnson  <tejohnson@google.com>
787
788         * config/i386/predicates.md (promotable_binary_operator): Add minus
789         to the list of promotable operators.
790
791 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
792
793         * gthr-single.h, gthr.h: Move to ../libgcc.
794         * gthr-aix.h: Move to ../libgcc/config/rs6000.
795         * gthr-dce.h: Move to ../libgcc/config/pa.
796         * gthr-lynx.h: Move to ../libgcc/config.
797         * gthr-mipssde.h: Move to ../libgcc/config/mips.
798         * gthr-posix.h: Move to ../libgcc/config.
799         * gthr-rtems.h: Likewise.
800         * gthr-tpf.h: Move to ../libgcc/config/s390.
801         * gthr-vxworks.h: Move to ../libgcc/config.
802         * gthr-win32.h: Move to ../libgcc/config/i386.
803         * configure.ac (gthread_flags): Remove
804         (gthr-default.h): Don't create.
805         (thread_file): Don't substitute.
806         * configure: Regenerate.
807         * Makefile.in (GCC_THREAD_FILE): Remove.
808         (GTHREAD_FLAGS): Remove.
809         (libgcc.mvars): Remove GTHREAD_FLAGS.
810         * config/t-vxworks (EXTRA_HEADERS): Remove.
811
812 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
813             Paolo Bonzini  <bonzini@gnu.org>
814
815         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
816         * configure: Regenerate.
817         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
818         (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
819         (libgcc_tm.h, cs-libgcc_tm.h): Remove.
820         (clean): Remove libgcc_tm.h
821         * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
822         * config.gcc (libgcc_tm_file): Remove.
823         (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
824         (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
825         (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
826         (avr-*-rtems*): Likewise.
827         (avr-*-*): Likewise.
828         (frv-*-elf): Likewise.
829         (frv-*-*linux*): Likewise.
830         (h8300-*-rtems*): Likewise.
831         (h8300-*-elf*): Likewise.
832         (i[34567]86-*-darwin*): Likewise.
833         (x86_64-*-darwin*): Likewise.
834         (rx-*-elf*): Likewise.
835         (tic6x-*-elf): Likewise.
836         (tic6x-*-uclinux): Likewise.
837         (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
838
839 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
840
841         * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
842         (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
843         (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
844         (INCLUDES_FOR_TARGET): Remove.
845         (LIBGCC2_CFLAGS): Don't export.
846         (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
847         Remove.
848         (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
849         (libgcc.mvars): Likewise.
850         Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
851         LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
852         TARGET_LIBGCC2_CFLAGS.
853         Emit GTHREAD_FLAGS.
854         * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
855         * config/darwin-64.c: Move to ../libgcc/config.
856         * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
857         config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
858         config/udivmodsi4.c: Move to ../libgcc/config.
859         * config/gthr-posix.c: Move to ../libgcc/config/alpha.
860         * config/memcmp.c, config/memcpy.c, config/memmove.c,
861         config/memset.c: Move to ../libgcc/config.
862         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
863         * config/t-freebsd: Remove.
864         * config/t-freebsd-thread: Move to ../libgcc/config.
865         * config/t-libgcc-pic: Move to ../libgcc/config.
866         * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
867         * config/t-linux: Remove.
868         * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
869         Remove.
870         * config/t-openbsd-thread: Move to ../libgcc/config.
871         * config/t-rtems (LIBGCC2_INCLUDES): Remove.
872         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
873         * config/t-svr4: Remove.
874         * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
875         (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
876         * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
877         * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
878         * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
879         * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
880         * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
881         * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
882         config/arm/fp16.c, config/arm/linux-atomic.c,
883         config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
884         * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
885         (TARGET_LIBGCC2_CFLAGS): Remove.
886         * config/arm/t-bpabi, config/arm/t-linux: Remove.
887         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
888         (LIB2FUNCS_STATIC_EXTRA): Remove.
889         * config/arm/t-netbsd: Remove.
890         * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
891         (TARGET_LIBGCC2_CFLAGS): Remove.
892         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
893         * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
894         (TARGET_LIBGCC2_CFLAGS): Remove.
895         * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
896         (LIBGCC, INSTALL_LIBGCC): Remove.
897         * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
898         * config/bfin/t-bfin-linux: Likewise.
899         * config/bfin/t-bfin-uclinux: Likewise.
900         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
901         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
902         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
903         config/c6x/ltf.c: Move to ../libgcc/config/c6x.
904         * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
905         * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
906         * config/cris/arit.c: Move to ../libgcc/config/cris.
907         * config/cris/cris_abi_symbol.c: Remove.
908         * config/cris/cris.h: Remove obsolete comment.
909         * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
910         * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
911         ($(LIB2FUNCS_EXTRA)): Remove.
912         * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
913         (LIBGCC): Remove.
914         * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
915         * config/fr30/t-fr30: Remove.
916         * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
917         config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
918         config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
919         to ../libgcc/config/frv.
920         * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
921         (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
922         (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
923         * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
924         * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
925         config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
926         config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
927         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
928         (LIBGCC, INSTALL_LIBGCC): Remove.
929         * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
930         * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
931         * config/i386/t-cygwin: Remove.
932         * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
933         (LIB2FUNCS_EXCLUDE): Remove.
934         * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
935         (LIBGCC, INSTALL_LIBGCC): Remove.
936         * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
937         * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
938         * config/i386/t-mingw-w32: Likewise.
939         * config/i386/t-mingw-w64: Likewise.
940         * config/i386/t-openbsd: Likewise.
941         * config/i386/t-nto: Remove.
942         * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
943         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
944         (quadlib.c): Remove.
945         * config/ia64/t-ia64: Remove comment.
946         * config/iq2000/lib2extra-funcs.c: Move to
947         ../libgcc/config/iq2000/lib2funcs.c.
948         * config/iq2000/t-iq2000: Remove.
949         * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
950         * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
951         * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
952         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
953         * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
954         (INSTALL_LIBGCC): Remove.
955         * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
956         * config/m68k/t-floatlib: Remove.
957         * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
958         * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
959         Fix typo.
960         (LIBGCC, INSTALL_LIBGCC): Remove.
961         * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
962         * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
963         * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
964         * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
965         (INSTALL_LIBGCC): Remove.
966         * config/mips/t-isa3264: Likewise.
967         * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
968         * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
969         (INSTALL_LIBGCC): Remove.
970         * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
971         * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
972         (INSTALL_LIBGCC): Remove.
973         * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
974         (LIB2FUNCS_STATIC_EXTRA): Remove.
975         * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
976         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
977         * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
978         * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
979         ../libgcc/config/pa.
980         * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
981         * config/pa/quadlib.c: Move to ../libgcc/config/pa.
982         * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
983         * config/pa/t-linux, config/pa/t-linux64: Remove.
984         * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
985         config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
986         * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
987         Remove.
988         * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
989         * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
990         (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
991         * config/rs6000/crtresfpr.asm: Move to
992         ../libgcc/config/rs6000/crtresfpr.S.
993         * config/rs6000/crtresgpr.asm: Move to
994         ../libgcc/config/rs6000/crtresgpr.S.
995         * config/rs6000/crtresxfpr.asm: Move to
996         ../libgcc/config/rs6000/crtresxfpr.S.
997         * config/rs6000/crtresxgpr.asm: Move to
998         ../libgcc/config/rs6000/crtresxgpr.S.
999         * config/rs6000/crtsavfpr.asm: Move to
1000         ../libgcc/config/rs6000/crtsavfpr.S.
1001         * config/rs6000/crtsavgpr.asm: Move to
1002         ../libgcc/config/rs6000/crtsavgpr.S.
1003         * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
1004         * config/rs6000/darwin-fpsave.asm: Move to
1005         ../libgcc/config/rs6000/darwin-fpsave.S.
1006         * config/rs6000/darwin-gpsave.asm: Move to
1007         ../libgcc/config/rs6000/darwin-gpsave.S.
1008         * config/rs6000/darwin-tramp.asm: Move to
1009         ../libgcc/config/rs6000/darwin-tramp.S.
1010         * config/rs6000/darwin-vecsave.asm: Move to
1011         ../libgcc/config/rs6000/darwin-vecsave.S.
1012         * config/rs6000/darwin-world.asm: Move to
1013         ../libgcc/config/rs6000/darwin-world.S.
1014         * config/rs6000/e500crtres32gpr.asm: Move to
1015         ../libgcc/config/rs6000/e500crtres32gpr.S.
1016         * config/rs6000/e500crtres64gpr.asm: Move to
1017         ../libgcc/config/rs6000/e500crtres64gpr.S.
1018         * config/rs6000/e500crtres64gprctr.asm: Move to
1019         ../libgcc/config/rs6000/e500crtres64gprctr.S.
1020         * config/rs6000/e500crtrest32gpr.asm: Move to
1021         ../libgcc/config/rs6000/e500crtrest32gpr.S.
1022         * config/rs6000/e500crtrest64gpr.asm: Move to
1023         ../libgcc/config/rs6000/e500crtrest64gpr.S.
1024         * config/rs6000/e500crtresx32gpr.asm: Move to
1025         ../libgcc/config/rs6000/e500crtresx32gpr.S.
1026         * config/rs6000/e500crtresx64gpr.asm: Move to
1027         ../libgcc/config/rs6000/e500crtresx64gpr.S.
1028         * config/rs6000/e500crtsav32gpr.asm: Move to
1029         ../libgcc/config/rs6000/e500crtsav32gpr.S.
1030         * config/rs6000/e500crtsav64gpr.asm: Move to
1031         ../libgcc/config/rs6000/e500crtsav64gpr.S.
1032         * config/rs6000/e500crtsav64gprctr.asm: Move to
1033         ../libgcc/config/rs6000/e500crtsav64gprctr.S.
1034         * config/rs6000/e500crtsavg32gpr.asm: Move to
1035         ../libgcc/config/rs6000/e500crtsavg32gpr.S.
1036         * config/rs6000/e500crtsavg64gpr.asm: Move to
1037         ../libgcc/config/rs6000/e500crtsavg64gpr.S.
1038         * config/rs6000/e500crtsavg64gprctr.asm: Move to
1039         ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
1040         * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
1041         * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
1042         (TARGET_LIBGCC2_CFLAGS): Remove.
1043         * config/rs6000/t-aix52: Likewise.
1044         * config/rs6000/t-darwin: Remove.
1045         * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
1046         (LIB2FUNCS_EXTRA): Remove.
1047         * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
1048         * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
1049         * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
1050         (INSTALL_LIBGCC): Remove.
1051         * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
1052         (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
1053         (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
1054         (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
1055         ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
1056         ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
1057         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
1058         (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
1059         * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
1060         * config/rs6000/t-vxworks: Remove comment.
1061         * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
1062         * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
1063         * config/sh/linux-atomic.asm: Move to
1064         ../libgcc/config/sh/linux-atomic.S.
1065         * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
1066         * config/sh/t-netbsd: Remove.
1067         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
1068         Remove.
1069         * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
1070         * config/sparc/t-leon: Likewise.
1071         * config/sparc/t-leon3: Likewise.
1072         * config/sparc/t-linux64: Likewise.
1073         * config/sparc/t-netbsd64: Fix typo.
1074         Remove comment.
1075         * config/spu/divmodti4.c, config/spu/divv2df3.c,
1076         config/spu/float_disf.c, config/spu/float_unsdidf.c,
1077         config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
1078         config/spu/mfc_multi_tag_release.c,
1079         config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
1080         config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
1081         config/spu/multi3.c: Move to ../libgcc/config/spu.
1082         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
1083         (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
1084         (INSTALL_LIBGCC): Remove.
1085         * config/stormy16/stormy16-lib2.c: Move to
1086         ../libgcc/config/stormy16/lib2.c.
1087         * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
1088         ../libgcc/config/stormy16/ashlsi3.c.
1089         * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
1090         ../libgcc/config/stormy16/ashrsi3.c.
1091         * config/stormy16/stormy16-lib2-clzhi2.c: Move to
1092         ../libgcc/config/stormy16/clzhi2.c.
1093         * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
1094         ../libgcc/config/stormy16/cmpsi2.c.
1095         * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
1096         ../libgcc/config/stormy16/ctzhi2.c.
1097         * config/stormy16/stormy16-lib2-divsi3.c: Move to
1098         ../libgcc/config/stormy16/divsi3.c.
1099         * config/stormy16/stormy16-lib2-ffshi2.c: Move to
1100         ../libgcc/config/stormy16/ffshi2.c.
1101         * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
1102         ../libgcc/config/stormy16/lshrsi3.c.
1103         * config/stormy16/stormy16-lib2-modsi3.c: Move to
1104         ../libgcc/config/stormy16/modsi3.c.
1105         * config/stormy16/stormy16-lib2-parityhi2.c: Move to
1106         ../libgcc/config/stormy16/parityhi2.c.
1107         * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
1108         ../libgcc/config/stormy16/popcounthi2.c.
1109         * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
1110         ../libgcc/config/stormy16/ucmpsi2.c.
1111         * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
1112         ../libgcc/config/stormy16/udivmodsi4.c.
1113         * config/stormy16/stormy16-lib2-udivsi3.c: Move to
1114         ../libgcc/config/stormy16/udivsi3.c.
1115         * config/stormy16/stormy16-lib2-umodsi3.c: Move to
1116         ../libgcc/config/stormy16/umodsi3.c.
1117         * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
1118         * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
1119         * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
1120         * config/xtensa/t-elf: Remove.
1121         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
1122         * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
1123         from tmake_file.
1124         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
1125         *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
1126         (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
1127         (*-*-openbsd*): Likewise.
1128         Remove t-openbsd-thread for posix threads.
1129         (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
1130         (alpha*-*-freebsd*): Likewise.
1131         (alpha*-*-netbsd*): Likewise.
1132         (alpha*-*-openbsd*): Likewise.
1133         (alpha64-dec-*vms*): Likewise.
1134         (alpha*-dec-*vms*): Likewise.
1135         (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
1136         (arm*-*-linux*): Remove t-linux from tmake_file.
1137         Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
1138         (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
1139         arm*-*-uclinux*eabi.
1140         (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
1141         tmake_file for arm*-*-eabi*.
1142         (fr30-*-elf): Remove tmake_file.
1143         (hppa*64*-*-linux*): Remove tmake_file.
1144         (hppa*-*-linux*): Likewise.
1145         (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
1146         tmake_file.
1147         (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
1148         (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
1149         tmake_file.
1150         (i[34567]86-*-elf*): Remove tmake_file.
1151         (x86_64-*-elf*): Likewise.
1152         (i[34567]86-*-nto-qnx*): Likewise.
1153         (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
1154         (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
1155         from tmake_file if using win32 threads.
1156         (iq2000*-*-elf*): Remove tmake-file.
1157         (microblaze*-linux*): Likewise.
1158         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
1159         (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
1160         (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
1161         (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
1162         sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
1163         (xtensa*-*-elf*): Remove tmake_file.
1164
1165 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1166
1167         * Makefile.in (LIB1ASMSRC): Don't export.
1168         (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
1169         * config/arm/arm.c: Update lib1funcs.asm filename.
1170         * config/arm/linux-eabi.h: Likewise.
1171         * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
1172         config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
1173         ../libgcc/config/arm.
1174         * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
1175         * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1176         * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
1177         * config/arm/t-bpabi: Likewise.
1178         * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1179         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
1180         * config/arm/t-strongarm-elf: Likewise.
1181         * config/arm/t-symbian: Likewise.
1182         * config/arm/t-vxworks: Likewise.
1183         * config/arm/t-wince-pe: Likewise.
1184         * config/avr/libgcc.S: Move to ../libgcc/config/avr.
1185         * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1186         * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
1187         * config/bfin/t-bfin: Remove.
1188         * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1189         * config/bfin/t-bfin-linux: Likewise.
1190         * config/bfin/t-bfin-uclinux: Likewise.
1191         * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
1192         * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1193         * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
1194         * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1195         * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
1196         * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1197         * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
1198         * config/h8300/lib1funcs.asm: Move to
1199         ../libgcc/config/h8300/lib1funcs.S.
1200         * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1201         * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
1202         * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1203         * config/i386/t-interix: Likewise.
1204         * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
1205         * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
1206         * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1207         * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
1208         * config/m32c/m32c.c: Update m32c-lib1.S filename.
1209         * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
1210         * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1211         * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
1212         * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
1213         * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
1214         * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
1215         * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1216         * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
1217         * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1218         * config/mips/mips16.S: Move to ../libgcc/config/mips.
1219         * config/mips/t-libgcc-mips16: Remove.
1220         * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
1221         * config/pa/milli64.S: Move to ../libgcc/config/pa.
1222         * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
1223         * config/pa/t-linux64: Likewise.
1224         * config/picochip/libgccExtras/fake_libgcc.asm: Move to
1225         ../libgcc/config/picochip/lib1funcs.S.
1226         * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
1227         * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
1228         * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
1229         * config/sh/sh.h: Update lib1funcs.asm filename.
1230         * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
1231         * config/sh/t-netbsd: Likewise.
1232         * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
1233         Remove.
1234         * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
1235         * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
1236         * config/sparc/lb1spl.asm: Remove.
1237         * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1238         * config/sparc/t-leon: Likewise.
1239         * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
1240         * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
1241         * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
1242         * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
1243         * config/vax/t-linux: Remove.
1244         * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
1245         ../libgcc/config/xtensa.
1246         * config/xtensa/lib1funcs.asm: Move to
1247         ../libgcc/config/xtensa/lib1funcs.S.
1248         * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1249         * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
1250         (bfin*-*): Likewise.
1251         (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
1252         mips/t-libgcc-mips16 from tmake_file.
1253         (mips*-*-linux*): Likewise.
1254         (mips*-sde-elf*): Likewise.
1255         (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
1256         (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
1257         (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
1258         (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
1259         (mips-*-elf*, mipsel-*-elf*): Likewise.
1260         (mips64-*-elf*, mips64el-*-elf*): Likewise.
1261         (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
1262         (mips*-*-rtems*): Likewise.
1263         (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
1264         (vax-*-linux*): Remove vax/t-linux from tmake_file.
1265
1266 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1267
1268         * config.gcc (extra_parts): Remove.
1269         (*-*-freebsd*): Remove extra_parts.
1270         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
1271         *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
1272         (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
1273         Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
1274         *-*-netbsdelf[2-9]*.
1275         (*-*-openbsd*): Remove t-libc-ok from tmake_file.
1276         (alpha*-*-linux*): Remove extra_parts.
1277         (alpha*-*-freebsd*): Likewise.
1278         (bfin*-linux-uclibc*): Likewise.
1279         (fr30-*-elf): Likewise.
1280         (moxie-*-elf): Likewise.
1281         (moxie-*-uclinux*): Likewise.
1282         (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
1283         (h8300-*-elf*): Likewise.
1284         (hppa*64*-*-hpux11*): Remove extra_parts.
1285         (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
1286         tmake_file.
1287         (x86_64-*-elf*): Likewise.
1288         (i[34567]86-*-freebsd*): Remove tmake_file.
1289         (x86_64-*-freebsd*): Likewise.
1290         (x86_64-*-netbsd*): Likewise.
1291         (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
1292         t-libc-ok from tmake_file.
1293         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1294         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1295         i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
1296         tmake_file.
1297         Remove extra_parts.
1298         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
1299         Remove i386/t-crtstuff from tmake_file.
1300         (i[34567]86-*-lynxos*): Likewise.
1301         Remove extra_parts.
1302         (ia64*-*-elf*): Remove extra_parts.
1303         (ia64*-*-freebsd*): Likewise.
1304         (ia64*-*-linux*): Likewise.
1305         (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
1306         (m32r-*-elf*): Remove extra_parts.
1307         (m32rle-*-elf*): Likewise.
1308         (m32r-*-rtems*): Likewise.
1309         (m68k-*-elf*, fido-*-elf*): Likewise.
1310         (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
1311         (m68k-*-rtems*): Remove extra_parts.
1312         (mep-*-*): Likewise.
1313         (microblaze*-linux*): Likewise.
1314         (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
1315         (mips*-*-linux*): Likewise.
1316         (powerpc-*-lynxos*): Likewise.
1317         (s390x-ibm-tpf*): Likewise.
1318         (score-*-elf): Likewise.
1319         Remove tmake_file.
1320         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
1321         sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
1322         sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
1323         Remove sh/t-superh from tmake_file for sh*-superh-elf.
1324         Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
1325         (sh-*-rtems*): Remove sh/t-elf from tmake_file.
1326         (sh-wrs-vxworks): Likewise.
1327         (sparc-*-linux*): Remove extra_parts.
1328         (sparc64-*-linux*): Likewise.
1329         (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
1330         (xstormy16-*-elf): Likewise.
1331         (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
1332         (am33_2.0-*-linux*): Remove extra_parts.
1333         * configure.ac (extra_parts): Don't substitute.
1334         * configure: Regenerate.
1335         * crtstuff.c: Move to ../libgcc.
1336         * Makefile.in (CRTSTUFF_CFLAGS): Remove.
1337         (EXTRA_PARTS): Remove.
1338         (CRTSTUFF_T_CFLAGS): Remove.
1339         (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
1340         (GCC_EXTRA_PARTS): Remove.
1341         (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
1342         CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
1343         Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
1344         ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
1345         ($(T)crtbeginT.o): Remove.
1346         * config/alpha/t-vms (EXTRA_PARTS): Remove.
1347         ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
1348         * config/alpha/vms-dwarf2.asm: Move to
1349         ../libgcc/config/alpha/vms-dwarf2.S.
1350         * config/alpha/vms-dwarf2eh.asm: Move to
1351         ../libgcc/config/alpha/vms-dwarf2eh.S.
1352         * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
1353         * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
1354         * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
1355         ($(T)crti.o, $(T)crtn.o): Remove.
1356         * config/arm/t-linux: Remove comment.
1357         * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
1358         * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
1359         ($(T)crti.o, $(T)crtn.o): Remove.
1360         * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
1361         * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
1362         * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
1363         * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
1364         * config/bfin/t-bfin (EXTRA_PARTS): Remove.
1365         ($(T)crti.o, $(T)crtn.o): Remove.
1366         * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
1367         ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
1368         (EXTRA_MULTILIB_PARTS): Remove.
1369         * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
1370         EXTRA_MULTILIB_PARTS): Remove.
1371         * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
1372         ($(T)crtlibid.o): Remove.
1373         (EXTRA_MULTILIB_PARTS): Remove.
1374         * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
1375         * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
1376         * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
1377         (EXTRA_MULTILIB_PARTS): Remove.
1378         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
1379         * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
1380         CRTSTUFF_T_CFLAGS_S): Remove.
1381         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
1382         * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
1383         * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
1384         * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
1385         * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
1386         * config/frv/frvbegin.c, config/frv/frvend.c: Move to
1387         ../libgcc/config/frv.
1388         * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
1389         (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
1390         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
1391         (CRTSTUFF_T_CFLAGS): Remove.
1392         * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
1393         * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
1394         * config/h8300/t-elf: Remove.
1395         * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
1396         Move to ../libgcc/config/i386.
1397         * config/i386/t-crtstuff: Remove.
1398         * config/i386/t-i386elf: Remove.
1399         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
1400         * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
1401         * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
1402         * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
1403         * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
1404         * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
1405         * config/ia64/t-vms: Remove.
1406         * config/ia64/vms-crtinit.asm: Move to
1407         ../libgcc/config/ia64/vms-crtinit.S.
1408         * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
1409         * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
1410         * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
1411         * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
1412         ($(T)crtinit.o, $(T)crtfini.o): Remove.
1413         (m32rx, m32r2): Remove.
1414         (EXTRA_MULTILIB_PARTS): Remove.
1415         * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
1416         * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
1417         * config/m68k/t-crtstuff: Remove.
1418         * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
1419         * config/m68k/t-m68kelf: Remove.
1420         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
1421         * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
1422         * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
1423         * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
1424         (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
1425         * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
1426         (EXTRA_MULTILIB_PARTS): Remove.
1427         * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
1428         * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
1429         * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
1430         EXTRA_PARTS): Remove.
1431         ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
1432         * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
1433         * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
1434         * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
1435         ($(T)crti.o, $(T)crtn.o): Remove.
1436         (EXTRA_MULTILIB_PARTS): Remove.
1437         * config/mips/t-isa3264: Likewise.
1438         * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
1439         * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
1440         (CRTSTUFF_T_CFLAGS): Remove.
1441         * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
1442         ($(T)crti.o, $(T)crtn.o): Remove.
1443         (EXTRA_MULTILIB_PARTS): Remove.
1444         * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
1445         Remove.
1446         ($(T)crti.o, $(T)crtn.o): Remove.
1447         * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
1448         * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
1449         (EXTRA_MULTILIB_PARTS): Remove.
1450         ($(T)crti.o, $(T)crtn.o): Remove.
1451         * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
1452         * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
1453         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
1454         * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
1455         * config/pa/stublib.c: Move to libgcc/config/pa.
1456         * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
1457         * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
1458         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
1459         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
1460         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
1461         ($(T)libgcc_stub.a): Remove.
1462         * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
1463         (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
1464         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
1465         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
1466         ($(T)libgcc_stub.a): Remove.
1467         * config/rs6000/eabi-cn.asm: Move to
1468         ../../../libgcc/config/rs6000/eabi-cn.S.
1469         * config/rs6000/eabi-ci.asm: Move to
1470         ../../../libgcc/config/rs6000/eabi-ci.S.
1471         * config/rs6000/sol-ci.asm: Move to
1472         ../../../libgcc/config/rs6000/sol-ci.S.
1473         * config/rs6000/sol-cn.asm: Move to
1474         ../../../libgcc/config/rs6000/sol-cn.S.
1475         * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
1476         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
1477         * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
1478         Remove.
1479         (EXTRA_MULTILIB_PARTS): Remove.
1480         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
1481         (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
1482         ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
1483         ($(T)ncrtn$(objext)): Remove.
1484         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
1485         * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
1486         * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
1487         * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
1488         * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
1489         * config/score/t-score-elf: Remove.
1490         * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
1491         * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
1492         * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
1493         * config/sh/lib1funcs-4-300.asm: Move to
1494         ../../../libgcc/config/sh/lib1funcs-4-300.S.
1495         * config/sh/lib1funcs-Os-4-200.asm: Move to
1496         ../libgcc/config/sh/lib1funcs-Os-4-200.S.
1497         * config/sh/t-elf: Remove.
1498         * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
1499         * config/sh/t-linux64: Remove.
1500         * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
1501         * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
1502         (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
1503         ($(T)ic_invalidate_array_4-100.o)
1504         ($(T)libic_invalidate_array_4-100.a)
1505         ($(T)ic_invalidate_array_4-200.o)
1506         ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
1507         ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
1508         ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
1509         ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
1510         ($(T)libgcc-4-300.a): Remove.
1511         * config/sh/t-superh: Remove.
1512         * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
1513         * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
1514         * config/spu/cache.S: Move to ../libgcc/config/spu.
1515         * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
1516         * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
1517         (EXTRA_MULTILIB_PARTS): Remove.
1518         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
1519         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
1520         ($(T)cache64k.o, $(T)cache128k.o): Remove.
1521         * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
1522         * config/t-libc-ok: Remove.
1523         * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
1524         * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
1525         * config/t-netbsd: Remove.
1526         * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
1527         * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
1528         * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
1529         ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
1530         * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
1531         * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
1532         * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
1533         * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
1534         (EXTRA_MULTILIB_PARTS): Remove.
1535         * config/xtensa/t-linux: Remove.
1536         * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
1537
1538 2011-11-02  Uros Bizjak  <ubizjak@gmail.com>
1539
1540         * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
1541         CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
1542
1543 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1544
1545         PR translation/45116
1546         * Makefile.in (slibdir): Remove, don't export.
1547         (SHLIB_NM_FLAGS): Remove.
1548         (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
1549         SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
1550         SHLIB_MAPFILES, SHLIB_NM_FLAGS.
1551         (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
1552         (gcc.o): Pass SHLIB instead of SHLIB_LINK.
1553         (gccspec.o): Likewise.
1554         (installdirs): Don't create $(DESTDIR)$(slibdir).
1555         * configure.ac (slibdir): Remove.
1556         * configure: Regenerate.
1557         * libgcc-libsystem.ver: Move to ../libgcc/config.
1558         * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
1559         * config/libgcc-glibc.ver: Move to ../libgcc/config.
1560         * config/t-libunwind (SHLIB_LC): Remove.
1561         * config/t-linux (SHLIB_MAPFILES): Remove.
1562         * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
1563         * config/t-slibgcc-elf-ver: Remove.
1564         * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
1565         ../libgcc/config.
1566         * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
1567         to ../libgcc/config/alpha.
1568         * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
1569         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
1570         SHLIB_SYMVECX2, SHLIB_LINK): Remove.
1571         * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
1572         * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
1573         * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
1574         SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
1575         * config/arm/t-symbian (SHLIB_LC): Remove.
1576         * config/bfin/libgcc-bfin.ver: Move to
1577         ../libgcc/config/bfin/libgcc-glibc.ver.
1578         * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
1579         * config/c6x/libgcc-c6xeabi.ver: Move to
1580         ../libgcc/config/c6x/libgcc-eabi.ver.
1581         * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
1582         * config/cris/libgcc.ver: Move to
1583         ../libgcc/config/cris/libgcc-glibc.ver.
1584         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
1585         * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
1586         * config/frv/t-linux (SHLIB_MAPFILES): Remove.
1587         * config/i386/darwin-libgcc.10.4.ver: Move to
1588         ../libgcc/config/i386/libgcc-darwin.10.4.ver.
1589         * config/i386/darwin-libgcc.10.5.ver: Move to
1590         ../libgcc/config/i386/libgcc-darwin.10.5.ver.
1591         * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
1592         * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
1593         SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
1594         SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
1595         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
1596         * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
1597         SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
1598         * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
1599         ../libgcc/config/i386.
1600         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
1601         ../libgcc/config/i386.
1602         * config/i386/t-linux: Move to ../libgcc/config/i386.
1603         * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
1604         * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
1605         * config/i386/t-mingw-w64: Likewise.
1606         * config/i386/t-mingw32: Remove.
1607         * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
1608         to ../libgcc/config/ia64.
1609         * config/ia64/t-glibc: Remove.
1610         * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
1611         * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
1612         * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
1613         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
1614         * config/ia64/vms_symvec_libgcc_s.opt: Remove.
1615         * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
1616         * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
1617         * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
1618         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
1619         * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
1620         * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
1621         Move to ../libgcc/config/pa.
1622         * config/rs6000/darwin-libgcc.10.4.ver: Move to
1623         ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
1624         * config/rs6000/darwin-libgcc.10.5.ver: Move to
1625         ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
1626         * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
1627         SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
1628         * config/rs6000/t-aix52: Likewise.
1629         * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
1630         ../libgcc/config/sh.
1631         * config/sparc/libgcc-sparc-glibc.ver: Move to
1632         ../libgcc/config/sparc/libgcc-glibc.ver.
1633         * config/sparc/t-linux: Move to ../libgcc/config/sparc.
1634         * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
1635         * config/xtensa/libgcc-xtensa.ver: Move to
1636         ../libgcc/config/xtensa/libgcc-glibc.ver.
1637         * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
1638         t-slibgcc in tmake_file.
1639         Remove t-slibgcc-nolc-override for *-*-freebsd[34],
1640         *-*-freebsd[34].* with pthreads.
1641         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
1642         *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
1643         t-slibgcc-elf-ver with t-slibgcc in tmake_file.
1644         (*-*-netbsd*): Likewise.
1645         (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
1646         (*-*-*vms*): Add t-slibgcc to tmake_file.
1647         (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
1648         (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
1649         tmake_file.
1650         (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
1651         arm*-*-linux-*eabi.
1652         (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
1653         tmake_file.
1654         (crisv32-*-linux*, cris-*-linux*): Likewise.
1655         (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
1656         pa/t-slibgcc-dwarf-ver from tmake_file.
1657         (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
1658         tmake_file.
1659         Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
1660         (hppa*64*-*-hpux11*): Likewise.
1661         (hppa[12]*-*-hpux11*): Likewise.
1662         (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
1663         tmake_file.
1664         (x86_64-*-darwin*): Likewise.
1665         (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
1666         Add t-slibgcc to tmake_file.
1667         (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
1668         Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
1669         i[34567]86-w64-*.
1670         Remove i386/t-mingw-pthread from tmake_file.
1671         (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
1672         (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
1673         (ia64-hp-*vms*): Likewise.
1674         (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
1675         tmake_file.
1676         (m32rle-*-linux*): Likewise.
1677         (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
1678         (microblaze*-linux*): Remove t-slibgcc-elf-ver,
1679         t-slibgcc-nolc-override from tmake_file.
1680         (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
1681         tmake_file.
1682         (powerpc-*-darwin*): Likewise.
1683         (powerpc64-*-darwin*): Likewise.
1684         (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
1685         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1686         (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
1687         t-slibgcc to tmake_file.
1688         (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
1689         (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
1690         (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
1691         (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
1692         (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
1693         (sparc64-*-linux*): Likewise.
1694         (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
1695         tmake_file.
1696         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1697         x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
1698         from tmake_file.
1699
1700 2011-11-02  Richard Guenther  <rguenther@suse.de>
1701
1702         PR tree-optimization/50902
1703         * tree-vect-stmts.c (vectorizable_load): Properly convert
1704         an invariant initializer element.
1705
1706 2010-11-02  Richard Guenther  <rguenther@suse.de>
1707
1708         PR tree-optimization/50890
1709         * gimple.h (gimple_fold_call): Remove.
1710         * gimple-fold.c (fold_stmt_1): Move all call related code to ...
1711         (gimple_fold_call): ... here.  Make static.  Update the
1712         cannot-inline flag on direct calls.
1713         * ipa-inline.c (early_inliner): Copy the cannot-inline flag
1714         from the statements to the edges.
1715
1716 2011-11-01  Ian Lance Taylor  <iant@google.com>
1717
1718         * godump.c (struct macro_hash_value): Define.
1719         (macro_hash_hashval): New static function.
1720         (macro_hash_eq, macro_hash_del): New static functions.
1721         (go_define): Use macro_hash_value to store values in macro_hash.
1722         Replace an old value on a redefinition.  Don't print anything to
1723         go_dump_file.
1724         (go_undef): Delete the entry from the hash table.
1725         (go_output_typedef): For an enum, use macro_hash_value, and don't
1726         print anything to go_dump_file.
1727         (go_print_macro): New static function.
1728         (go_finish): Traverse macro_hash with go_print_macro.
1729         (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
1730
1731 2011-11-02  Alan Modra  <amodra@gmail.com>
1732
1733         * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
1734
1735 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
1736
1737         PR c++/44277
1738         * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
1739
1740 2011-11-01  Andrew Stubbs  <ams@codesourcery.com>
1741
1742         * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
1743
1744 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
1745
1746         * config/i386/i386.md (splitters for int-float conversion): Use
1747         SUBREG_REG on SUBREGs in splitter constraints.
1748
1749 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
1750
1751         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
1752         prototype.
1753         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
1754         function.
1755         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
1756         (ssepackfltmode): New mode attr.
1757         (vec_pack_ufix_trunc_<mode>): New expander.
1758
1759 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
1760
1761         PR target/50940
1762         * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
1763         Compare <ssevecmode>mode to V4SFmode, not V4SImode.
1764
1765 2011-11-01  Peter Bergner  <bergner@vnet.ibm.com>
1766
1767         * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
1768         * config/rs6000/476.h: New file.
1769         * config/rs6000/476.opt: Likewise.
1770         * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
1771         (SET_TARGET_LINK_STACK): Likewise.
1772         (TARGET_ASM_CODE_END): Define.
1773         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
1774         TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
1775         (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
1776         code if TARGET_LINK_STACK.
1777         (rs6000_emit_load_toc_table): Likewise.
1778         (output_function_profiler): Likewise
1779         (macho_branch_islands): Likewise
1780         (machopic_output_stub): Likewise
1781         (get_ppc476_thunk_name): New function.
1782         (rs6000_code_end): Likewise.
1783         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
1784         Convert to a define_expand.
1785         (load_toc_v4_PIC_1_normal): New define_insn.
1786         (load_toc_v4_PIC_1_476): Likewise.
1787         (load_toc_v4_PIC_1b_normal): Likewise.
1788         (load_toc_v4_PIC_1b_476): Likewise.
1789
1790 2011-11-01  Georg-Johann Lay  <avr@gjlay.de>
1791
1792         PR target/50910
1793         * config/avr/avr.opt (-mbranch-cost=): New option.
1794         * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
1795         * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
1796         * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
1797         (*addhi3_zero_extend1): Remove % in constraint of operand 1.
1798         (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
1799
1800 2011-11-01  Tom de Vries  <tom@codesourcery.com>
1801
1802         PR tree-optimization/50908
1803         * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
1804         before update_vuses, test for 1 predecessor rather than two.
1805         (delete_block_update_dominator_info): New function, part of it factored
1806         out of ...
1807         (replace_block_by): Use delete_block_update_dominator_info.  Call
1808         update_vuses after deleting bb1 and updating dominator info, instead of
1809         before.
1810
1811 2011-11-01  David S. Miller  <davem@davemloft.net>
1812
1813         * config/sparc/sparc.c (vector_init_faligndata): New function.
1814         (sparc_expand_vector_init): Use it for V4HImode on VIS1.
1815
1816         * config/sparc/sparc.c (sparc_expand_vcond): New function.
1817         * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
1818         * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
1819         (vconduv8qiv8qi): Likewise.
1820
1821 2011-11-01  Alexandre Oliva  <aoliva@redhat.com>
1822
1823         PR debug/50869
1824         * cselib.c (cfa_base_preserved_regno): Initialize.
1825         (cselib_expand_value_rtx_1): Don't expand it.
1826         * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
1827         Check it's only zero if result is NULL.
1828
1829 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
1830
1831         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
1832         expander.
1833
1834         * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
1835         (sseintvecmodelower): New mode iterator.
1836         (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
1837         (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
1838         (floatunsv4siv4sf2): Macroize into...
1839         (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
1840
1841 2011-10-31  David S. Miller  <davem@davemloft.net>
1842
1843         * config/sparc/sparc.md (cmask patterns): Allow zero operand.
1844
1845         * dwarf2out.c (cached_next_real_insn): New.
1846         (dwarf2out_end_epilogue): Set it to NULL_RTX.
1847         (dwarf2out_var_location): Remove cached_next_real_insn local static.
1848
1849 2011-10-31  Richard Henderson  <rth@redhat.com>
1850
1851         * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
1852         (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
1853         (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
1854         (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
1855         (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
1856         (floatv4siv4df2): Rename from avx_cvtdq2pd256.
1857         (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
1858         (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
1859         * config/i386/i386.md (splitters for int-float conversion): Likewise.
1860         * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
1861         (bdesc_args): Likewise.
1862         (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
1863         (ix86_vectorize_builtin_conversion): Remove.
1864         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1865
1866 2011-10-31  Martin Jambor  <mjambor@suse.cz>
1867
1868         * ipa-prop.c (mark_modified): Moved up in the file.
1869         (is_parm_modified_before_call): Renamed to
1870         is_parm_modified_before_stmt, moved up in the file.
1871         (load_from_unmodified_param): New function.
1872         (compute_complex_assign_jump_func): Also attempt to create pass
1873         through jump functions for values loaded from (addressable)
1874         parameters.
1875
1876 2011-10-31  Jakub Jelinek  <jakub@redhat.com>
1877
1878         * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
1879         in a loop and has different type from op0, cast it to op0's type
1880         before the loop first.  For slp give up.  Don't crash if op1_vectype
1881         is NULL.
1882
1883 2011-10-31  Paul Brook  <paul@codesourcery.com>
1884
1885         * cgraphunit.c: Don't mark clones as static constructors.
1886
1887 2011-10-31  David Edelsohn  <dje.gcc@gmail.com>
1888
1889         * gcc-ar: Do not include stdio.h.
1890
1891 2011-10-31  Diego Novillo  <dnovillo@google.com>
1892
1893         * tree-streamer-out.c (pack_ts_base_value_fields): Emit
1894         TYPE_ADDR_SPACE.
1895         * tree-streamer-in.c (unpack_ts_base_value_fields): Read
1896         TYPE_ADDR_SPACE.
1897
1898 2011-10-30  David S. Miller  <davem@davemloft.net>
1899
1900         * config/sparc/sparc.c (vector_init_bshuffle): New function.
1901         (vector_init_fpmerge): New function.
1902         (sparc_expand_vector_init): Use them to improve non-const cases.
1903
1904         * dwarf2out.c (dwarf2out_var_location): When processing several
1905         consecutive location notes, cache the result of next_real_insn().
1906
1907 2011-10-30  Uros Bizjak  <ubizjak@gmail.com>
1908
1909         * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
1910         avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
1911         (vec_dupv4sf): Remove expander.
1912         (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
1913         (vec_dupv2df): Remove expander.
1914         (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
1915         (*vec_concatv2df): Merge *vec_concatv2df_sse3.
1916         (*vec_dupv4si): Merge *vec_dupv4si_avx.
1917         (*vec_dupv2di): Merge *vec_dupv2di_sse3.
1918
1919 2011-10-30  Dmitry Plotnikov  <dplotnikov@ispras.ru>
1920
1921         * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
1922         * optabs.c (supportable_convert_operation): New function.
1923         * optabs.h (supportable_convert_operation): New prototype.
1924         * tree-vect-stmts.c (vectorizable_conversion): Change condition and
1925         behavior for NONE modifier case.
1926         * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
1927
1928 2011-10-30  Jakub Jelinek  <jakub@redhat.com>
1929
1930         * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
1931         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
1932         function.
1933         (vect_vect_recog_func_ptrs): Add it.
1934
1935 2011-10-30  David S. Miller  <davem@davemloft.net>
1936
1937         * reorg.c (label_before_next_insn): New function.
1938         (relax_delay_slots): Use it instead of prev_label.
1939         * rtl.h (prev_label): Delete declaration.
1940         * emit-rtl.c (prev_label): Remove.
1941
1942 2011-10-30  Revital Eres  <revital.eres@linaro.org>
1943
1944         * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
1945         as BB_DISABLE_SCHEDULE.
1946         (mark_loop_unsched): New function.
1947         (sms_schedule): Call it.
1948
1949 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1950
1951         PR target/50617
1952         * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
1953         (cmpib_comparison_operator): Likewise.
1954         (following_cal, output_and, output_ior, output_move_double,
1955         output_fp_move_double, output_block_move, output_block_clear,
1956         output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
1957         output_movb, output_parallel_movb, output_parallel_addb, output_call,
1958         output_indirect_call, output_millicode_call, output_mul_insn,
1959         output_div_insn, output_mod_insn, singlemove_string,
1960         output_arg_descriptor, output_global_address, print_operand,
1961         legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
1962         fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
1963         emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
1964         hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
1965         attr_length_indirect_call, return_addr_rtx, function_arg_padding,
1966         insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
1967         output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
1968         hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
1969         compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
1970         reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
1971         exported functions and variables with "pa_".
1972         * config/pa/predicates.md: Likewise.
1973         * config/pa/pa64-hpux.h: likewise.
1974         * config/pa/som.h: Likewise.
1975         * config/pa/elf.h: Likewise.
1976         * config/pa/pa64-linux.h: Likewise.
1977         * config/pa/pa.md: Likewise.
1978         * config/pa/pa.c: Likewise.
1979         * config/pa/pa-linux.h: Likewise.
1980         * config/pa/pa.h: Likewise.
1981         * config/pa/constraints.md: Likewise.
1982
1983 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
1984
1985         * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
1986         Update all uses.
1987         (xop_shl<mode>3): Rename from xop_lshl<mode>3.  Update all uses.
1988         * config/i386/i386.c: Update all uses.
1989
1990 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
1991
1992         * config/i386/i386.md (lshlv16qi3): Remove expander.
1993         (lshrv16qi3): New expander.
1994         (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
1995         using any_shiftrt code iterator. Cleanup.
1996         (ashlv16qi3): Cleanup.
1997         (ashrv2di3): Ditto.
1998
1999 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2000
2001         PR target/50691
2002         * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
2003         references.
2004         (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
2005         and TLS_MODEL_LOCAL_DYNAMIC symbol references.
2006
2007 2011-10-29  Georg-Johann Lay  <avr@gjlay.de>
2008
2009         PR target/50887
2010         * config/avr/avr.opt (-maccumulate-args): New option.
2011         * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
2012         avr_starting_frame_offset.
2013         (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
2014         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
2015         (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
2016         (UNSPECV_WRITE_SP): New constant.
2017         (*addhi3_sp_R): Rewrite to...
2018         (*addhi3_sp): ...this new insn.
2019         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
2020         (movhi_sp_r): ...this new insn.
2021         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
2022         (avr_starting_frame_offset): New.
2023         * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
2024         (avr_starting_frame_offset): New function.
2025         (avr_outgoing_args_size): New static function.
2026         (avr_initial_elimination_offset): Use it.
2027         (avr_simple_epilogue): Use it.
2028         (avr_asm_function_end_prologue): Use it.
2029         (expand_epilogue): Use it.
2030         (expand_prologue): Use it.  Break out code to...
2031         (avr_prologue_setup_frame): ...this new static function.
2032         (avr_can_eliminate): Allow eliminating to frame pointer if there
2033         is one.
2034         (avr_frame_pointer_required_p): Use frame pointer if target has a
2035         nonlocal label.
2036         * config/avr/constraints.md (R): Remove.
2037         (Csp): New constraint.
2038         * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
2039
2040 2011-10-29  Andi Kleen  <ak@linux.intel.com>
2041
2042         * gcc-ar.c (target_machine): Add.
2043
2044 2011-10-29  Anatoly Sokolov  <aesok@post.ru>
2045
2046         * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
2047         cris_constant_index_p, cris_base_p, cris_index_p,
2048         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
2049         cris_legitimate_address_p): New functions.
2050         (TARGET_LEGITIMATE_ADDRESS_P): Define.
2051         (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
2052         from rtx to const_rtx.
2053         (cris_print_operand_address, cris_address_cost,
2054         cris_side_effect_mode_ok):  Use
2055         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
2056         cris_biap_index_p and cris_bdap_index_p.
2057         * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
2058         BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
2059         REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
2060         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
2061         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
2062         cris_biap_index_p and cris_bdap_index_p.
2063         * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
2064         cris_base_p.
2065         * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
2066         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
2067         prototype.
2068         (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
2069
2070 2011-10-21  Andi Kleen  <ak@linux.intel.com>
2071
2072         * ggc-page (PAGE_ALIGN): Add.
2073         (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
2074         Replace ROUND_UP with PAGE_ALIGN.
2075
2076 2011-10-20  Andi Kleen  <ak@linux.intel.com>
2077
2078         * ggc-page (alloc_anon): Add check argument.
2079         (alloc_page): Add fallback to 1 page allocation.
2080         Adjust alloc_anon calls to new argument.
2081
2082 2011-10-18  Andi Kleen  <ak@linux.intel.com>
2083
2084         * ggc-page (release_pages): First free large continuous
2085         chunks in the madvise path.
2086
2087 2011-10-18  Andi Kleen  <ak@linux.intel.com>
2088
2089         * ggc-page.c (alloc_pages): Always round up entry_size.
2090
2091 2011-10-19  Andi Kleen  <ak@linux.intel.com>
2092
2093         * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
2094         (native): Add gcc-ar, gcc-nm, gcc-ranlib.
2095         (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
2096         gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
2097         (install): Depend on install-gcc-ar.
2098         (install-gcc-ar): Add.
2099         (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
2100         * gcc-ar.c: Add new file.
2101
2102 2011-10-28  Pat Haugen <pthaugen@us.ibm.com>
2103
2104         * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
2105         * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
2106         type for V2DF.
2107         (VStype_div): Use vector types for V2DF/V4SF.
2108         (VStype_sqrt): Use *sqrt types.
2109         (VS_spdp_type): Change type to vecdouble.
2110         (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
2111         vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
2112         vsx_xvcvspuxds): Likewise.
2113         (*vsx_fms<mode>4): Set type via <VStype_mul>.
2114         (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
2115         <VStype_simple>.
2116         * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
2117         (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
2118         power7-dsqrt): Correct insn latency.
2119         (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
2120         (power7-veccmp): Delete.
2121         (power7-vecfloat): Correct latency/dispatch/VSU values.
2122         (define_bypass "power7-vecfloat"): Correct latency and types.
2123         (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
2124         (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
2125
2126 2011-10-28  Uros Bizjak  <ubizjak@gmail.com>
2127
2128         * config/i386/i386.md (shift_insn): Rename code attribute from
2129         shiftrt_insn.  Also handle ashift RTX.
2130         (shift): Rename code attribute from shiftrt.  Also handle ashift RTX.
2131         (vshift): New code attribute.
2132         (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
2133         (any_lshift): Move and rename code iterator from ...
2134         * config/i386/sse.md (lshift): ... here.
2135         (lshift_insn): Remove code attribute.
2136         (lshift): Remove code attribute.
2137         (vlshr<mode>3): Use lshiftrt RTX.
2138         (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
2139         (vashl<mode>3, ashlv16qi3): Use ashift RTX.
2140         (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>.  Use
2141         any_lshift code iterator.  Update asm template.
2142         (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
2143         usign any_lshift code iterator.
2144         * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
2145         mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
2146         * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
2147
2148 2011-10-28  Georg-Johann Lay  <avr@gjlay.de>
2149
2150         PR target/49313
2151         * config/avr/avr.md (parityhi2): Expand allowing pseudos.
2152         (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
2153         to the libgcc insn.
2154         (*parityqihi2): Same for 8-bit parity.
2155
2156 2011-10-28  Julian Brown  <julian@codesourcery.com>
2157
2158         PR rtl-optimization/47918
2159         * reload1.c (set_initial_label_offsets): Use initial offsets
2160         for labels on the nonlocal_goto_handler_labels chain.
2161
2162 2011-10-28  Iain Sandoe  <iains@gcc.gnu.org>
2163
2164         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
2165         Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
2166         (LIB2FUNCS_EXTRA):  Add darwin-gpsave.asm.
2167         (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
2168         config/t-darwin.
2169         * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
2170         (GP_SAVE_INLINE): Likewise.
2171         (SAVE_FP_PREFIX,  SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
2172         RESTORE_FP_SUFFIX): Set to empty strings.
2173         * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
2174         (debug_stack_info): Print savres_strategy.
2175         (rs6000_savres_routine_name): Implement for Darwin.
2176         (rs6000_make_savres_rtx): Adjust used register for Darwin.
2177         (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
2178         (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
2179         (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
2180         * config/rs6000/darwin-gpsave.asm: New file.
2181
2182 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
2183
2184         * config/i386/sse.md (VI4SD_AVX2): Removed.
2185         (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
2186         (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
2187         Add another expander using VI48_128 iterator for
2188         TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
2189         for TARGET_AVX2.
2190         (vlshr<mode>3): Likewise.  Change register_operand predicate to
2191         nonimmediate_operand on last operand in the VI12_128 expander.
2192         (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
2193         (vashrv4si3, vashrv8si3): New expanders.
2194         (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
2195         avx2_<lshift>vv2di): Removed.
2196         (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
2197         (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
2198         iterator.  Simplify pattern.
2199
2200 2010-10-28  Richard Guenther  <rguenther@suse.de>
2201
2202         PR driver/50876
2203         * lto-wrapper.c (get_options_from_collect_gcc_options):
2204         Properly count arguments.
2205         (run_gcc): Use an obstack to collect argv, properly separate
2206         switches and their arguments.
2207
2208 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
2209
2210         * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
2211         vector mode from vectype's mode.
2212
2213 2011-10-28  Chung-Lin Tang  <cltang@codesourcery.com>
2214
2215         PR rtl-optimization/49720
2216         * simplify-rtx.c (simplify_relational_operation_1): Detect
2217         infinite recursion condition in "(eq/ne (plus x cst1) cst2)
2218         simplifies to (eq/ne x (cst2 - cst1))" case.
2219
2220 2011-10-27  David S. Miller  <davem@davemloft.net>
2221
2222         * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
2223         (*snedi_zero): Likewise.
2224         (*snedi_zero_trunc): Likewise.
2225         (snedi_special_vis3): New expander.
2226         (*snedi_zero_vis3): New insn.
2227         (*snedi_zero_trunc_vis3): Likewise.
2228         (*sltu_insn_vis3): Likewise.
2229         (*sltu_insn_vis3_trunc): Likewise.
2230         (addxc): Likewise.
2231         (*addxc_trunc_sp64_vis3): Likewise.
2232         * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
2233         gen_snedi_special_vis3 expander, and try GTU/LTU addx based
2234         sequences on DImode values.
2235
2236         * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
2237         constraint.
2238
2239         * regcprop.c (copyprop_hardreg_forward_1): Reject the
2240         transformation when we narrow the mode on big endian.
2241
2242 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
2243
2244         * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
2245         vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
2246         (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
2247
2248         * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
2249         overrides for -masm=intel memory.
2250         * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
2251         sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
2252         sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
2253         sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
2254         (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
2255         sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
2256         (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
2257
2258 2011-10-27  Martin Jambor  <mjambor@suse.cz>
2259
2260         * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
2261         to parm_ainfo.
2262         (ipa_compute_jump_functions_for_edge): Likewise.
2263         (ipa_compute_jump_functions): Likewise.
2264         (ipa_analyze_indirect_call_uses): Likewise.
2265         (ipa_analyze_call_uses): Likewise.
2266         (ipa_analyze_params_uses): Likewise.
2267         (ipa_analyze_node): Likewise.
2268
2269 2011-10-27  Uros Bizjak  <ubizjak@gmail.com>
2270
2271         PR target/50875
2272         * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
2273         constraints.  Change alternative 1 to "x,m,1".
2274
2275 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
2276
2277         * Makefile.in (build/gencheck.o): Depend on tree.def and
2278         c-family/c-common.def.
2279
2280         * tree-ssa-strlen.c: Include expr.h.
2281         (get_stridx): Don't use c_strlen, instead use string_constant
2282         and compute string length from it.
2283         * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
2284
2285 2011-10-27  Eric Botcazou  <ebotcazou@adacore.com>
2286
2287         PR rtl-optimization/46603
2288         PR bootstrap/50879
2289         * reload.c (push_reload): In the out case, restore previous behavior
2290         for subregs that don't have word mode.
2291
2292 2011-10-27  Ian Lance Taylor  <iant@google.com>
2293
2294         * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
2295         CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
2296         (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
2297         defined.
2298
2299 2011-10-27  Richard Henderson  <rth@redhat.com>
2300
2301         * optabs.c (expand_vec_perm): Use the correct mode for scaling the
2302         selector.  Save the qimode constant selector for later use by the
2303         qimode vec_perm pattern.
2304
2305 2011-10-27  Bernd Schmidt  <bernds@codesourcery.com>
2306
2307         * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
2308         to unit_req_factor to the right enum type.
2309         (get_unit_operand_masks, reshuffle_units, try_rename_operands,
2310         hwloop_optimize): Remove unused variables.
2311
2312 2010-10-27  Richard Guenther  <rguenther@suse.de>
2313
2314         PR middle-end/50731
2315         * tree-vect-generic.c (do_binop): Handle scalar operands.
2316
2317 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
2318
2319         PR target/37191
2320         * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
2321         from different units in a single alternative.
2322
2323 2011-10-26  David S. Miller  <davem@davemloft.net>
2324
2325         * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
2326         if we're comparing DImode and comparison is other than EQ or NE.
2327
2328         * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
2329         LEU/LTU/GEU/GTU is attempted.
2330         * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
2331         and split.
2332         (*neg_seqsi_sign_extend): Likewise.
2333         (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
2334         *neg_sgeu_extend_sp64): New insns.
2335
2336         * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
2337         * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
2338         (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
2339         (*mov<I:mode>_cc_reg_sp64): Likewise.
2340         (*movsf_cc_v9): Likewise.
2341         (*movsf_cc_reg_sp64): Likewise.
2342         (*movdf_cc_v9): Likewise.
2343         (*movdf_cc_reg_sp64): Likewise.
2344         (*movtf_cc_hq_v9): Likewise.
2345         (*movtf_cc_reg_hq_sp64): Likewise.
2346         (*movtf_cc_v9): Likewise.
2347         (*movtf_cc_reg_sp64): Likewise.
2348         * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
2349         (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
2350
2351 2011-10-26  Eric Botcazou  <ebotcazou@adacore.com>
2352
2353         * reload.c (reload_inner_reg_of_subreg): Change type of return value
2354         and type of OUTPUT parameter to bool and adjust.  Document MODE and
2355         OUTPUT parameters.  Use HARD_REGISTER_P.  Reorder final condition
2356         and improve associated comment.
2357         (push_reload): Clarify and update comments about reloading of subregs.
2358         Adjust calls to reload_inner_reg_of_subreg.  Compute the class upfront
2359         for the reloading of subregs in the out case as well.
2360
2361 2011-10-26  Alexandre Oliva  <aoliva@redhat.com>
2362
2363         PR debug/50826
2364         * var-tracking.c (rtx_debug_expr_p): New.
2365         (use_type): Don't use debug exprs to track non-VTA variables.
2366
2367 2011-10-26  Jeff Law  <law@redhat.com>
2368
2369         * doc/invoke.texi (sink-frequency-threshold): Document.
2370         * tree-ssa-sink.c: Include params.h.
2371         (select_best_block): New function.
2372         (statement_sink_location): Use it.
2373         * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
2374
2375 2011-10-26  Iain Sandoe  <iains@gcc.gnu.org>
2376
2377         PR target/48108
2378         * config/darwin.c (top level): Amend comments concerning LTO output.
2379         (lto_section_num): New variable.  (darwin_lto_section_e): New GTY.
2380         (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
2381         (LTO_NAMES_SECTION): Rename.
2382         (darwin_asm_named_section): Record LTO section counts and switches
2383         in a vec of darwin_lto_section_e.
2384         (darwin_file_start): Remove unused code.
2385         (darwin_file_end): Put an LTO section termination label.  Handle
2386         output of the wrapped LTO sections, index and names table.
2387
2388 2011-10-26  Alan Modra  <amodra@gmail.com>
2389
2390         * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
2391         declaration.
2392         (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
2393         (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx.  Use
2394         simple_return in pattern, emit instruction, and set jump_label.
2395         (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx.  Use
2396         simple_return rather than return.
2397         (emit_cfa_restores): New function.
2398         (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
2399         Add missing cfa_restores for SAVE_WORLD.  Add missing LR cfa_restore
2400         when using out-of-line gpr restore.  Add missing LR and FP regs
2401         cfa_restores for out-of-line fpr restore.  Consolidate code setting
2402         up cfa_restores.  Formatting.  Use LR_REGNO define.
2403         (rs6000_output_mi_thunk): Use simple_return rather than return.
2404         * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
2405         (return_internal*): Likewise.
2406         (any_return, return_pred, return_str): New iterators.
2407         (return, conditional return insns): Provide both return and
2408         simple_return variants.
2409         * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
2410         (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
2411         Move r11 and r0 later to suit shrink-wrapping.
2412
2413 2011-10-26  Richard Guenther  <rguenther@suse.de>
2414
2415         * lto-wrapper.c (run_gcc): Properly init/free obstack.
2416
2417 2011-10-26  Jakub Jelinek  <jakub@redhat.com>
2418
2419         * config/i386/i386.md (UNSPEC_VSIBADDR): New.
2420         * config/i386/predicates.md (vsib_address_operand,
2421         vsib_mem_operator): New predicates.
2422         * config/i386/i386.c (ix86_print_operand_address): Handle
2423         UNSPEC_VSIBADDR addresses.
2424         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
2425         avx2_gatherdi<mode>256): Adjust expanders to use MEM with
2426         UNSPEC_VSIBADDR address.
2427         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
2428         Adjust insns to use MEM with UNSPEC_VSIBADDR address.
2429
2430 2011-10-26  Tom de Vries  <tom@codesourcery.com>
2431
2432         PR tree-optimization/50763
2433         * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
2434         phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
2435
2436 2011-10-26  Richard Guenther  <rguenther@suse.de>
2437
2438         PR lto/41844
2439         * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
2440         (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
2441         * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
2442         (run_gcc): Use it.  Filter out language specific options.
2443
2444 2011-10-26  Andreas Tobler  <andreast@fgznet.ch>
2445
2446         * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
2447         32-bit target does.
2448
2449 2011-10-25  Paolo Carlini  <paolo.carlini@oracle.com>
2450
2451         PR driver/46617
2452         * gcc.c (main): Fix fatal_error string for translation.
2453
2454 2011-10-25  Ian Lance Taylor  <iant@google.com>
2455
2456         * tree-eh.c (do_return_redirection): Remove return_value_p
2457         parameter.  Change all callers.
2458         (lower_try_finally_nofallthru): Remove local return_val.
2459         (lower_try_finally_onedest): Likewise.
2460         (lower_try_finally_copy): Likewise.
2461         (lower_try_finally_switch): Likewise.
2462
2463 2011-10-25  H.J. Lu  <hongjiu.lu@intel.com>
2464
2465         * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
2466         remove "&& !TARGET_64BIT"
2467         (*mmx_maskmovq_rex): Removed.
2468
2469 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
2470
2471         PR rtl-optimization/46603
2472         * reload.c (push_reload): In the out case, reload the subreg as well
2473         as the reg if it has word mode.
2474
2475 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
2476
2477         * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
2478         suppress debug info for the parent type.
2479
2480 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
2481
2482         * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
2483
2484 2011-10-25  Richard Henderson  <rth@redhat.com>
2485
2486         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
2487         (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
2488
2489         * config/rs6000/altivec.md (vec_extract_evenv8hi,
2490         vec_extract_evenv16qi, vec_extract_oddv4si,
2491         vec_extract_oddv4sf): Remove.
2492
2493         * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
2494         vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
2495         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
2496         vec_interleave_highv4sf, vec_interleave_lowv4sf,
2497         vec_interleave_highv4si, vec_interleave_lowv4si,
2498         vec_interleave_highv8hi, vec_interleave_lowv8hi,
2499         vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
2500
2501         * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
2502         [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
2503         [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
2504         * optabs.c (expand_binop): Implement vec_interleave_high_optab,
2505         vec_interleave_low_optab, vec_extract_even_optab,
2506         vec_extract_odd_optab with expand_vec_perm.
2507         (can_vec_perm_for_code_p): New.
2508         * optabs.h: Update.
2509         * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
2510         fallback via can_vec_perm_for_code_p.
2511         (vect_strided_load_supported): Likewise.
2512         * tree-vect-generic.c (expand_vector_operations_1): Never lower
2513         VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
2514         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
2515
2516         * target.def (vec_perm_const_ok): Change parameters to mode and
2517         array of indicies.
2518         * doc/tm.texi: Rebuild.
2519         * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
2520         parameters to mode and array of indicies.
2521         * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
2522         * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
2523         Change parameters to mode and array of indicies.
2524         (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
2525         (expand_vec_perm): Rename from expand_vec_perm_expr.  Change
2526         parameters to mode and rtx inputs.  Try lowering to QImode
2527         vec_perm_const before trying fully variable permutation.
2528         * optabs.h: Update decls.
2529         * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
2530         VECTOR_CST to pass to can_vec_perm_p.
2531         * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
2532         from int pointer to unsigned char pointer.
2533         (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
2534         * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
2535
2536         * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
2537         (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
2538         VEC_INTERLEAVE_LOW_EXPR): Likewise.
2539
2540 2011-10-25  Mike Stump  <mikestump@comcast.net>
2541
2542         * reload.c (regno_clobbered_p): Fix typo.
2543
2544 2011-10-25  Dodji Seketeli  <dodji@redhat.com>
2545
2546         * input.c (expand_location): Rewrite using linemap_resolve_location
2547         and linemap_expand_location.  Add a comment.
2548
2549 2011-10-25  Jakub Jelinek  <jakub@redhat.com>
2550
2551         PR tree-optimization/50596
2552         * tree-vect-stmts.c (vect_mark_relevant): Only use
2553         FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
2554         (vectorizable_store): If is_pattern_stmt_p look through
2555         VIEW_CONVERT_EXPR on lhs.
2556         * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
2557         Use unsigned type instead of signed.
2558         (vect_recog_bool_pattern): Optimize also stores into bool memory in
2559         addition to casts from bool to integral types.
2560         (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
2561         created, don't create it again.
2562
2563 2011-10-25  Kai Tietz  <ktietz@redhat.com>
2564
2565         * config/i386/i386.c (ix86_frame_pointer_required): Require
2566         frame-pointer, if setjmp is used for 32-bit ms-abi.
2567
2568 2011-10-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2569
2570         * builtins.c (set_builtin_user_assembler_name): Remove extra
2571         newline added in October 11th, 2011 change.
2572
2573 2011-10-24  David S. Miller  <davem@davemloft.net>
2574
2575         * config/sparc/little-endian.opt: Delete.
2576         * config.gcc: Remove references to config/sparc/little-endian.opt
2577         * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
2578         * config/sparc/linux64.h: Delete references to -mlittle-endian.
2579         * config/sparc/netbsd-elf.h: Likewise.
2580         * config/sparc/openbsd64.h: Likewise.
2581         * config/sparc/sparc.h: Likewise.
2582         * config/sparc/sp64-elf.h: Likewise and delete overrides for
2583         BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
2584         * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
2585         to MASK_LITTLE_ENDIAN.
2586         * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
2587
2588         * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
2589         Only use D, Y, and Z constraints in vector insns.
2590
2591         * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
2592         (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
2593         called *movsi_insn.
2594         (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
2595         into *movdi_insn_sp32.
2596         (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
2597         one pattern called *movdi_insn_sp64.
2598         (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
2599         Consolidate into one pattern called *movsf_insn.
2600         (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
2601         *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
2602         into *movdf_insn_sp32.
2603         (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
2604         *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
2605         *movdf_insn_sp64.
2606         (*zero_extendsidi2_insn_sp64_novis3,
2607         *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
2608         called *zero_extendsidi2_insn_sp64.
2609         (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
2610         Consolidate into one pattern named *sign_extendsidi2_insn.
2611         (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
2612         Consolidate into one pattern named *mov<VM32:mode>_insn.
2613         (*mov<VM64:mode>_insn_sp64_novis3,
2614         *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
2615         named *mov<VM64:mode>_insn_sp64.
2616         (*mov<VM64:mode>_insn_sp32_novis3,
2617         *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
2618         named *mov<VM64:mode>_insn_sp32.
2619
2620 2011-10-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2621
2622         * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
2623         (zero_length_string): Change assertion to accept strinfo without
2624         length but with stmt instead.
2625         Set the endptr pointer also if starting a new chain.
2626         (adjust_related_strinfos): Ignore strinfos marked for delayed
2627         length computation.
2628         (handle_builtin_strcpy): Mark earlier strinfo elements also for
2629         delayed length computation.
2630
2631 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
2632
2633         PR target/50820
2634         Port from 4.6 branch r180379
2635         * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
2636         handling and indirect jump/calls on devices > 128k.
2637
2638 2011-10-24  Anatoly Sokolov  <aesok@post.ru>
2639             Georg-Johann Lay  <avr@gjlay.de>
2640
2641         PR target/49824
2642         * doc/extend.texi (Declaring Attributes of Functions):
2643         Document OS_main and OS_task attributes.
2644         (Specifying Attributes of Variables): Move up
2645         subsection "AVR Variable Attributes" as of alphabetical order.
2646
2647 2011-10-24  Richard Guenther  <rguenther@suse.de>
2648
2649         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
2650         to vector element type.
2651         (vectorizable_assignment): Bail out for non-mode-precision operations.
2652         (vectorizable_shift): Likewise.
2653         (vectorizable_operation): Likewise.
2654         (vectorizable_type_demotion): Likewise.
2655         (vectorizable_type_promotion): Likewise.
2656         (vectorizable_store): Handle non-mode-precision stores.
2657         (vectorizable_load): Handle non-mode-precision loads.
2658         (get_vectype_for_scalar_type_and_size): Return a vector type
2659         for non-mode-precision integers.
2660         * tree-vect-loop.c (vectorizable_reduction): Bail out for
2661         non-mode-precision reductions.
2662
2663 2011-10-24  Julian Brown  <julian@codesourcery.com>
2664
2665         * config/m68k/m68k.c (notice_update_cc): Tighten condition for
2666         setting CC_REVERSED for FP comparisons.
2667
2668 2011-10-24  Richard Guenther  <rguenther@suse.de>
2669
2670         PR tree-optimization/50838
2671         * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
2672         a MEM_REF base if we change it.
2673
2674 2011-10-24  Bernd Schmidt  <bernds@codesourcery.com>
2675
2676         PR bootstrap/50836
2677         * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
2678
2679         PR rtl-optimization/50833
2680         * function.c (thread_prologue_and_epilogue_insns): Expect the
2681         return insn optimization only if optimize.
2682
2683 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
2684
2685         * config/avr/avr.c: Break long lines.
2686         Define target hooks on the fly if applicable.
2687         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
2688         overridden later.
2689         (targetm): Move definition to end of file.
2690         (avr_can_eliminate): Make static on the fly.
2691         (avr_frame_pointer_required_p): Ditto.
2692         (avr_hard_regno_scratch_ok): Ditto.
2693         (avr_builtin_setjmp_frame_value): Make static on the fly.
2694         Indent according to coding rules.
2695         (avr_case_values_threshold): Ditto.
2696         (avr_attribute_table): Move down.
2697
2698 2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
2699
2700         PR tree-optimization/50730
2701         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
2702         analysis if encountered unsupported data-ref.
2703
2704 2011-10-23  David S. Miller  <davem@davemloft.net>
2705
2706         * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
2707         cpu adjustment.
2708         * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
2709         append -mcpu=v9 when -mv8plus is given.
2710
2711         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
2712         between float and non-float regs when VIS3.
2713         * config/sparc/sparc.c (eligible_for_restore_insn): We can't
2714         use a restore when the source is a float register.
2715         (sparc_split_regreg_legitimate): When VIS3 allow moves between
2716         float and integer regs.
2717         (sparc_register_move_cost): Adjust to account for VIS3 moves.
2718         (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
2719         integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
2720         (sparc_secondary_reload): On 32-bit with VIS3 when moving between
2721         float and integer regs we sometimes need a FP_REGS class
2722         intermediate move to satisfy the reload.  When this happens
2723         specify an extra cost of 2.
2724         (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
2725         (*movdi_insn_sp32_v9): Likewise.
2726         (*movdi_insn_sp64): Likewise.
2727         (*movsf_insn): Likewise.
2728         (*movdf_insn_sp32_v9): Likewise.
2729         (*movdf_insn_sp64): Likewise.
2730         (*zero_extendsidi2_insn_sp64): Likewise.
2731         (*sign_extendsidi2_insn): Likewise.
2732         (*movsi_insn_vis3): New insn.
2733         (*movdi_insn_sp32_v9_vis3): New insn.
2734         (*movdi_insn_sp64_vis3): New insn.
2735         (*movsf_insn_vis3): New insn.
2736         (*movdf_insn_sp32_v9_vis3): New insn.
2737         (*movdf_insn_sp64_vis3): New insn.
2738         (*zero_extendsidi2_insn_sp64_vis3): New insn.
2739         (*sign_extendsidi2_insn_vis3): New insn.
2740         (TFmode reg/reg split): Make sure both REG operands are float.
2741         (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
2742         easy constant to integer reg alternatives.
2743         (*mov<VM64:mode>_insn_sp64): Likewise.
2744         (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
2745         (*mov<VM32:mode>_insn_vis3): New insn.
2746         (*mov<VM64:mode>_insn_sp64_vis3): New insn.
2747         (*mov<VM64:mode>_insn_sp32_vis3): New insn.
2748         (VM64 reg<-->reg split): New splitter for 32-bit.
2749
2750         * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
2751         * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
2752         Declare it.
2753         * config/sparc/sparc.md (DImode reg/reg split): Use it.
2754         (DFmode reg/reg split): Likewise.
2755
2756         * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
2757         generating fzero and fone instructions.
2758         (DImode const_int --> reg splitter): Only trigger for integer regs.
2759
2760         * config/sparc/predicates.md (input_operand): Disallow vector
2761         constants other than 0 and -1.
2762         * config/sparc/sparc.c (sparc_preferred_reload_class): Return
2763         NO_REGS for vector constants other than 0 and -1.
2764
2765         * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
2766         SPARC_INT_REG_P): Define.
2767         (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
2768         (REGNO_OK_FOR_INDEX_P): Likewise.
2769         * config/sparc/sparc.c (gen_df_reg): Likewise.
2770         (eligible_for_return_delay): Likewise.
2771         (eligible_for_sibcall_delay): Likewise.
2772         (sparc_legitimate_address_p): Likewise.
2773         (emit_save_or_restore_regs): Likewise.
2774         (registers_ok_for_ldd_peep): Likewise.
2775         * config/spac/sparc.md (DI mode splitters): Likewise.
2776         (SF mode const splitters): Likewise.
2777         (DF mode splitters): Likewise.
2778         (32-bit DI mode logical op splitters): Likewise.
2779
2780 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2781
2782         PR c++/50841
2783         Revert:
2784         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2785
2786         PR c++/50810
2787         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
2788
2789 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
2790
2791         * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
2792         (VI248_256): Remove mode iterator.
2793         * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
2794         instead of gen_avx2_lshlv4di3.
2795         (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
2796         CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
2797
2798 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
2799
2800         * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
2801         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
2802         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
2803         pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
2804         *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
2805         iterator.  Use sseintprefix mode attribute.
2806         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
2807         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
2808         pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
2809         *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
2810         iterator.  Use sseintprefix mode attribute.
2811         (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
2812         attributes.
2813         (*avx2_gatherdi<mode>): Ditto.
2814         (*avx2_gatherdi<mode>256): Ditto.
2815         (VI48_AVX2): Remove mode iterator.
2816         (gthrlastfp): Remove mode attribute.
2817
2818 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2819
2820         PR c++/50810
2821         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
2822
2823 2011-10-23  Tom de Vries  <tom@codesourcery.com>
2824
2825         PR tree-optimization/50763
2826         * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
2827         out of ...
2828         (same_succ_flush_bbs): Use same_succ_flush_bb.
2829         (purge_bbs): Remove argument.  Remove calls to same_succ_flush_bbs,
2830         release_last_vdef and delete_basic_block.
2831         (unlink_virtual_phi): New function.
2832         (update_vuses): Add and use vuse1_phi_args argument.  Set var to
2833         SSA_NAME_VAR of vuse1 or vuse2, and use var.  Handle case that
2834         def_stmt2 is NULL.  Use phi result as phi arg in case vuse1 or vuse2
2835         is NULL_TREE.  Replace uses of vuse1 if vuse2 is NULL_TREE.  Fix code
2836         to limit replacement of uses.  Propagate phi argument for phis with a
2837         single argument.
2838         (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
2839         Set vuse1_phi_args if vuse1 is a phi defined in bb1.  Add
2840         vuse1_phi_args as argument to call to update_vuses.  Call
2841         release_last_vdef, same_succ_flush_bb, delete_basic_block.  Update
2842         CDI_DOMINATORS info.
2843         (tail_merge_optimize): Remove argument in call to purge_bbs.  Remove
2844         call to free_dominance_info.  Only call calculate_dominance_info once.
2845
2846 2011-10-23  Eric Botcazou  <ebotcazou@adacore.com>
2847
2848         * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
2849
2850         PR tree-optimization/44683
2851         * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
2852         we can be sure that there are no signed zeros involved.
2853
2854 2011-10-23  Jan Hubicka  <jh@suse.cz>
2855
2856         * ipa-inline.c (estimate_badness): Scale up and handle overflows.
2857
2858 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
2859
2860         PR target/50788
2861         * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
2862         Remove (match_dup 0).
2863         (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
2864         (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
2865         (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
2866         (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
2867         (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
2868         (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
2869
2870 2011-10-23  Ira Rosen  <ira.rosen@linaro.org>
2871
2872         PR tree-optimization/50819
2873         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
2874         the last argument.
2875         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
2876         vect_analyze_data_ref_dependences.
2877         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
2878         the last argument.  Check load-after-store dependence for unknown
2879         dependencies in basic blocks.
2880         (vect_analyze_data_ref_dependences): Update call to
2881         vect_analyze_data_ref_dependences.
2882         * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
2883         * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
2884         (vect_slp_analyze_bb_1): Update call to
2885         vect_analyze_data_ref_dependences.  Don't call
2886         vect_bb_vectorizable_with_dependencies.
2887
2888 2011-10-22  David S. Miller  <davem@davemloft.net>
2889
2890         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
2891         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
2892         * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
2893         (sparc_secondary_reload): New function.
2894
2895         * config/sparc/sparc.h (sparc_costs): Remove extern decl.
2896         (struct processor_costs): Move from here..
2897         * config/sparc/sparc.c (struct processor_costs): To here.
2898         (sparc_costs): Mark static.
2899
2900         * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
2901         * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
2902         Get rid of declarations.
2903
2904 2011-10-21  Paul Brook  <paul@codesourcery.com>
2905
2906         * config/c6x/c6x.c (c6x_asm_emit_except_personality,
2907         c6x_asm_init_sections): New functions.
2908         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
2909
2910 2011-10-21  Jakub Jelinek  <jakub@redhat.com>
2911
2912         PR target/50813
2913         * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
2914         V4DImode and V8SImode for !TARGET_AVX2.
2915
2916 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
2917
2918         PR bootstrap/50825
2919         * sched-deps.c (add_dependence): If not doing predication, promote
2920         REG_DEP_CONTROL to REG_DEP_ANTI.
2921
2922 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
2923
2924         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
2925         instead of X to avr_legitimize_reload_address.
2926         * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
2927         first argument's type from rtx to rtx*.
2928         * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
2929         Pass PX to push_reload instead of &X.  Change log messages for
2930         better distinction.
2931
2932 2011-10-21  Roland Stigge  <stigge@antcom.de>
2933
2934         PR translation/47064
2935         * params.def: Fix typo "compilatoin" -> "compilation".
2936
2937 2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>
2938             Kirill Yukhin  <kirill.yukhin@intel.com>
2939
2940         PR target/50740
2941         * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
2942         if max_level allows that.
2943
2944 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
2945
2946         * reg-notes.def (DEP_CONTROL): New.
2947         * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
2948         not doing speculation.
2949         * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
2950         record_hard_reg_uses_1, record_hard_reg_uses): New functions.
2951         * function.c (record_hard_reg_sets, record_hard_reg_uses,
2952         record_hard_reg_uses_1): Remove; move to rtlanal.c.
2953         * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
2954         * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
2955         (MUST_RECOMPUTE_SPEC_P): New macro.
2956         (real_insn_for_shadow): New function.
2957         (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
2958         toggle_cancelled_flags): New static functions.
2959         (schedule_insn): Relax an assert to only check for empty hard back
2960         dependencies.  Skip cancelled dependencies.  Call
2961         check_clobbered_conditions.
2962         (copy_insn_list): Remove function, renamed moved to lists.c.
2963         (save_backtrack_point): Use new spelling copy_INSN_LIST.
2964         (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
2965         (restore_last_backtrack_point): Likewise.  Call toggle_cancelled_flags.
2966         (estimate_insn_tick): Ignore cancelled dependencies.
2967         (haifa_speculate_insn): Move declaration.
2968         (try_ready): Move code into recompute_todo_spec and call it.  Tweak
2969         some asserts.  Ensure predicated patterns are restored if necessary.
2970         Dump DEP_CONTROL flag.
2971         (haifa_change_pattern): Merge with sched_change_pattern.
2972         (sched_change_pattern): Remove function.
2973         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove.  All
2974         uses changed to simply not test NON_FLUSH_JUMP_P.
2975         (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
2976         REG_DEP_CONTROL.
2977         (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
2978         (reg_pending_control_uses, control_dependency_cache): New static
2979         variables.
2980         (sched_get_reverse_condition_uncached): New function.
2981         (sd_find_dep_between): Remove pointless assert.  Look in
2982         control_dependency_cache.
2983         (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
2984         extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
2985         and control_dependency_cache.
2986         (sd_unresolve_dep): Use dep_spec_p.
2987         (add_dependence): Now a wrapper around add_dependence_1, handling
2988         REG_DEP_CONTROL specially.
2989         (flush_pending_lists): Clear pending_jump_insns.
2990         (sched_analyze_1): Handle pending_jump_insns like a memory flush.
2991         (sched_analyze_2): Unconditionally add to pending memory flushes,
2992         keep previous behaviour but apply it to pending_jump_insns instead.
2993         (sched_analyze_insn): Defer adding jump reg dependencies using
2994         reg_pending_control_uses; add them to the control_uses list.  Handle
2995         pending_jump_insns and control_uses when adding dependence lists.
2996         (deps_analyze_insn): Update INSN_COND_DEPS.
2997         (deps_analyze_insn): Add jumps to pending_jump_insns rather than
2998         last_pending_memory_flush.
2999         (init_deps): Initialize pending_jump_insns.
3000         (free_deps): Free control_uses.
3001         (remove_from_deps): Remove from pending_jump_insns.
3002         (init_deps_global): Allocate reg_pending_control_uses).
3003         (finish_deps_global): Free it.
3004         (add_dependence_1): Renamed from add_dependence.  Handle
3005         REG_DEP_CONTROL.
3006         * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
3007         (copy_INSN_LIST, concat_INSN_LIST): Declare.
3008         * sched-int.h (struct deps_reg): Add control_uses.
3009         (struct deps_desc): Add pending_jump_insns.
3010         (struct _haifa_deps_insn_data): Add cond_deps.
3011         (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
3012         (INSN_COND_DEPS, PREDICATED_PAT): New macros.
3013         (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
3014         (DEP_CONTROL): New macro.
3015         (DEP_TYPES): Include it.
3016         (HARD_DEP): Adjust definition.
3017         (DEP_CANCELLED): New macro.
3018         (enum SCHED_FLAGS): Add DO_PREDICATION.
3019         (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
3020         * sched-rgn.c (concat_INSN_LIST): Remove function.
3021         (deps_join): Handle pending_jump_insns.
3022         (free_pending_lists): Likewise.
3023         * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
3024         schedule.
3025
3026 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
3027
3028         PR target/50820
3029         * config/avr/libgcc.S (__EIND__): New define to 0x3C.
3030         (__tablejump__): Consistently use EIND for indirect jump/call.
3031         (__tablejump_elpm__): Ditto.
3032
3033 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
3034
3035         * config/c6x/c6x.md (attr "op_pattern"): New.
3036         (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
3037         * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
3038         Likewise.
3039         * config/c6x/c6x-mult.md: Regenerate.
3040         * config/c6x/c6x.c: Include "regrename.h".
3041         (unit_req_table): New typedef.
3042         (unit_reqs): Use it for the declaration.
3043         (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
3044         get_unit_operand_masks, try_rename_operands, reshuffle_units): New
3045         static functions.
3046         (count_unit_reqs): New arg reqs.  All callers changed.  Use
3047         get_unit_reqs, and don't merge here.
3048         (res_mii): New arg reqs.  All callers changed.  Rewrite to use a loop
3049         using unit_req_factor.
3050         (hwloop_optimize): Call reshuffle_units.  Call merge_unit_reqs after
3051         count_unit_reqs.
3052         (c6x_reorg): Add reg notes problem, and call df_analyze.
3053         * Makefile.in ($(out_object_file)): Depend on regrename.h.
3054
3055 2011-10-21  Kai Tietz  <ktietz@redhat.com>
3056
3057         * fold-const.c (simple_operand_p_2): Handle integral
3058         casts from boolean-operands.
3059
3060 2011-10-21  Jan Hubicka  <jh@suse.cz>
3061
3062         * cgraph.c (dump_cgraph_node): Dump alias flag.
3063         * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
3064         no destination.
3065         (get_alias_symbol): New function.
3066         (output_weakrefs): Output also weakrefs with no destinatoin.
3067         (lto_output_node): Output weakref alias flag when at function boundary.
3068
3069 2011-10-21  Andrew Stubbs  <ams@codesourcery.com>
3070
3071         PR target/50809
3072         * config/arm/driver-arm.c (vendors): Make static.
3073
3074 2011-10-21  Uros Bizjak  <ubizjak@gmail.com>
3075
3076         * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
3077         (ix86_emit_swsqrtsf): Force a into register.
3078
3079 2011-10-20  Mike Stump  <mikestump@comcast.net>
3080
3081         * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
3082         after validate_change wipes it out.
3083
3084 2011-10-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3085
3086         * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
3087         before using the shufb instruction.
3088
3089 2011-10-20  Kirill Yukhin  <kirill.yukhin@intel.com>
3090
3091         PR target/50766
3092         * config/i386/i386.md (bmi_bextr_<mode>): Update register/
3093         memory operand order.
3094         (bmi2_bzhi_<mode>3): Ditto.
3095         (bmi2_pdep_<mode>3): Ditto.
3096         (bmi2_pext_<mode>3): Ditto.
3097
3098 2011-10-20  Richard Henderson  <rth@redhat.com>
3099
3100         * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
3101         * optabs.c (can_vec_perm_expr_p): Update to match.
3102         (expand_vec_perm_expr): Likewise.
3103         * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
3104         from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
3105         * doc/tm.texi.in: Likewise.
3106
3107 2011-10-20  Sergey Ostanevich  <sergos.gnu@gmail.com>
3108
3109         PR target/50572
3110         * config/i386/i386.c (processor_target_table): Change Atom
3111         align_loops_max_skip to 15.
3112
3113 2011-10-20  Richard Henderson  <rth@redhat.com>
3114
3115         * target.def (builtin_vec_perm): Remove.
3116         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
3117
3118         * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
3119         (IX86_BUILTIN_VEC_PERM_*): Remove.
3120         (bdesc_args): Remove vec_perm builtins
3121         (ix86_expand_builtin): Likewise.
3122         (ix86_expand_vec_perm_const_1): Rename from
3123         ix86_expand_vec_perm_builtin_1.
3124         (extract_vec_perm_cst): Merge into...
3125         (ix86_vectorize_vec_perm_const_ok): ... here.  Rename from
3126         ix86_vectorize_builtin_vec_perm_ok.
3127         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
3128
3129         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
3130         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
3131
3132         * config/spu/spu.c (spu_builtin_vec_perm): Remove.
3133         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
3134
3135 2011-10-20  Uros Bizjak  <ubizjak@gmail.com>
3136
3137         PR target/47989
3138         * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
3139         * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
3140         * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
3141         implements vectorized single float division and vectorized sqrtf(x)
3142         with reciprocal sequence with additional Newton-Raphson step with
3143         -ffast-math.
3144
3145 2011-10-20  Dodji Seketeli  <dodji@redhat.com>
3146
3147         * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
3148         ggc_alloced_size_order_for_request into ggc_round_alloc_size like
3149         it was done in ggc-page.c.
3150
3151         PR other/50659
3152         * doc/cppopts.texi: Use @smallexample/@end smallexample in
3153         documentation for -fdebug-cpp instead of @quotation/@end quotation
3154         that is not supported by contrib/texi2pod.pl.
3155
3156 2011-10-19  Jan Hubicka  <jh@suse.cz>
3157
3158         * ipa-inline.c (inline_small_functions): Always update all calles after
3159         inlining.
3160
3161 2011-10-19  Jan Hubicka  <jh@suse.cz>
3162
3163         PR bootstrap/50709
3164         * ipa-inline.c (inline_small_functions): Fix checking code to not make
3165         effect on fibheap stability.
3166
3167 2011-10-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
3168
3169         * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
3170
3171 2011-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3172
3173         PR target/50106
3174         * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
3175         reg size from 1-3.
3176
3177 2011-10-20  Richard Guenther  <rguenther@suse.de>
3178
3179         * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
3180         and rotates to the set of expensive operations.
3181
3182 2011-10-19  David S. Miller  <davem@davemloft.net>
3183
3184         * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
3185         (sparc_emit_set_const32): Likewise.
3186         (sparc_emit_set_const64_longway): Likewise.
3187         (sparc_emit_set_const64): Likewise.
3188         (sparc_legitimize_pic_address): Likewise.
3189         (memory_ok_for_ldd): Likewise.
3190
3191 2011-10-20  Dehao Chen  <dehao@google.com>
3192
3193         * profile.c (compute_branch_probabilities): Compute and dump the
3194         overlap between the static estimation and the instrumentation profile.
3195         (OVERLAP_BASE): New macro.
3196         (compute_frequency_overlap): New function
3197
3198 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
3199
3200         * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
3201         d->op1 instead of d->op0 for the second vpshufb.
3202         (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
3203         (ix86_expand_vec_perm_const): If mask indicates two operands are
3204         needed, but both are the same and expanding them as d.op0 == d.op1
3205         failed, retry with d.op0 != d.op1.
3206         (ix86_expand_vec_perm_builtin): Likewise.  Handle sorry printing
3207         also for d.nelt == 32.
3208
3209         PR middle-end/50754
3210         * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
3211         VEC_PERM_EXPR.
3212
3213 2011-10-19  Bernd Schmidt  <bernds@codesourcery.com>
3214
3215         * regrename.h: New file.
3216         * regrename.c: Include it.  Also include "emit-rtl.h".
3217         (struct du_head, struct du_chain, du_head_p DEF_VEC and
3218         DEF_VEC_ALLOC_P): Move to regrename.h.
3219         (do_replace): Remove declaration.
3220         (insn_rr): New variable.
3221         (cur_operand): New static variable.
3222         (regrename_chain_from_id): Renamed from chain_from_id and no longer
3223         static.  All callers changed.
3224         (record_operand_use): New static function.
3225         (scan_rtx_reg): Use it.
3226         (find_best_rename_reg): New function, broken out of rename_chains.
3227         (rename_chains): Use it.  Don't update chain regno and nregs here, ...
3228         (regrename_do_replace): ... do it here instead.  Renamed from
3229         do_replace, and no longer static.  All callers changed.
3230         (regrename_analyze): No longer static.  New arg bb_mask.
3231         All callers changed.  If bb_mask is nonzero, use it to limit the
3232         number of basic blocks we analyze.  If we failed to analyze a block,
3233         clear insn operand data.
3234         (record_out_operands): New arg insn_info.  Update cur_operand if it is
3235         nonnull.
3236         (build_def_use): If insn_rr is nonnull, pass an insn_info to
3237         record_out_operands, and update cur_operand here as well.
3238         (regrename_init, regrename_finish): New functions.
3239         (regrename_optimize): Use them.
3240         * Makefile.in (regrename.o): Adjust dependencies.
3241
3242 2011-10-19  Tom de Vries  <tom@codesourcery.com>
3243
3244         PR tree-optimization/50769
3245         * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
3246         unconditionally.  Handle case that phi_vuse2 is not an SSA_NAME.  Add
3247         dummy argument .MEM to phi when increasing number of arguments of phi by
3248         redirecting edges to the block with phi.
3249
3250 2011-10-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3251
3252         PR bootstrap/50777
3253         * configure.ac: Save and restore CXXFLAGS around
3254         gcc_AC_CHECK_DECLS uses.
3255         Check for madvise() declaration with g++ if --enable-build-with-cxx.
3256         * configure: Regenerate.
3257         * config.in: Regenerate.
3258         * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
3259
3260 2011-10-19  Alexandre Oliva  <aoliva@redhat.com>
3261
3262         PR debug/49310
3263         * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
3264         (variable_part): Replace offset with union.
3265         (enum onepart_enum, onepart_enum_t): New.
3266         (variable_def): Drop cur_loc_changed, add onepart.
3267         (value_chain_def, const_value_chain): Remove.
3268         (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
3269         (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
3270         (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
3271         (value_chain_pool, value_chains): Remove.
3272         (dropped_values): New.
3273         (struct parm_reg): Only if HAVE_window_save.
3274         (vt_stack_adjustments): Don't record register arguments.
3275         (dv_as_rtx): New.
3276         (dv_onepart_p): Return a onepart_enum_t.
3277         (onepart_pool): New.
3278         (dv_pool): Remove.
3279         (dv_from_rtx): New.
3280         (variable_htab_free): Release onepart aux data.  Reset flags.
3281         (value_chain_htab_hash, value_chain_htab_eq): Remove.
3282         (unshare_variable): Use onepart field.  Propagate onepart aux
3283         data or offset.  Drop cur_loc_changed.
3284         (val_store): Cope with NULL insn.  Rephrase dump output.  Check
3285         for unsuitable locs.  Add FIXME on using cselib locs.
3286         (val_reset): Remove FIXME of unfounded concerns.
3287         (val_resolve): Check for unsuitable locs.  Add FIXME on using
3288         cselib locs.
3289         (variable_union): Use onepart field, adjust access to offset.
3290         (NO_LOC_P): New.
3291         (VALUE_CHANGED, DECL_CHANGED): Update doc.
3292         (set_dv_changed): Clear NO_LOC_P when changed.
3293         (find_loc_in_1pdv): Use onepart field.
3294         (intersect_loc_chains): Likewise.
3295         (unsuitable_loc): New.
3296         (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
3297         (add_value_chain, add_value_chains): Remove.
3298         (add_cselib_value_chains, remove_value_chain): Likewise.
3299         (remove_value_chains, remove_cselib_value_chains): Likewise.
3300         (canonicalize_loc_order_check): Use onepart.  Drop cur_loc_changed.
3301         (canonicalize_values_star, canonicalize_vars_star): Use onepart.
3302         (variable_merge_over_cur): Likewise.  Adjust access to offset.
3303         Drop cur_loc_changed.
3304         (variable_merge_over_src): Use onepart field.
3305         (remove_duplicate_values): Likewise.
3306         (variable_post_merge_new_vals): Likewise.
3307         (find_mem_expr_in_1pdv): Likewise.
3308         (dataflow_set_preserve_mem_locs): Likewise.  Drop cur_loc_changed
3309         and value chains.
3310         (dataflow_set_remove_mem_locs): Likewise.  Use VAR_LOC_FROM.
3311         (variable_different_p): Use onepart field.  Move onepart test out
3312         of the loop.
3313         (argument_reg_set): Drop.
3314         (add_uses, add_stores): Preserve but do not record in dynamic
3315         tables equivalences for ENTRY_VALUEs and CFA_based addresses.
3316         Avoid unsuitable address expressions.
3317         (EXPR_DEPTH): Unlimit.
3318         (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
3319         (prepare_call_arguments): Use DECL_RTL_IF_SET.
3320         (dump_var): Adjust access to offset.
3321         (variable_from_dropped, recover_dropped_1paux): New.
3322         (variable_was_changed): Drop cur_loc_changed.  Use onepart.
3323         Preserve onepart aux in empty_var.  Recover empty_var and onepart
3324         aux from dropped_values.
3325         (find_variable_location_part): Special-case onepart.  Adjust
3326         access to offset.
3327         (set_slot_part): Use onepart.  Drop cur_loc_changed.  Adjust
3328         access to offset.  Initialize onepaux.  Drop value chains.
3329         (delete_slot_part): Drop value chains.  Use VAR_LOC_FROM.
3330         (VEC (variable, heap), VEC (rtx, stack)): Define.
3331         (expand_loc_callback_data): Drop dummy, cur_loc_changed,
3332         ignore_cur_loc.  Add expanding, pending, depth.
3333         (loc_exp_dep_alloc, loc_exp_dep_clear): New.
3334         (loc_exp_dep_insert, loc_exp_dep_set): New.
3335         (notify_dependents_of_resolved_value): New.
3336         (update_depth, vt_expand_var_loc_chain): New.
3337         (vt_expand_loc_callback): Revamped.
3338         (resolve_expansions_pending_recursion): New.
3339         (INIT_ELCD, FINI_ELCD): New.
3340         (vt_expand_loc): Use the new macros above.  Drop ignore_cur_loc
3341         parameter, adjust all callers.
3342         (vt_expand_loc_dummy): Drop.
3343         (vt_expand_1pvar): New.
3344         (emit_note_insn_var_location): Operate on non-debug decls only.
3345         Revamp multi-part cur_loc recomputation and one-part expansion.
3346         Drop cur_loc_changed.  Adjust access to offset.
3347         (VEC (variable, heap)): Drop.
3348         (changed_variables_stack, changed_values_stack): Drop.
3349         (check_changed_vars_0, check_changed_vars_1): Remove.
3350         (check_changed_vars_2, check_changed_vars_3): Remove.
3351         (values_to_stack, remove_value_from_changed_variables): New.
3352         (notify_dependents_of_changed_value, process_changed_values): New.
3353         (emit_notes_for_changes): Revamp onepart updates.
3354         (emit_notes_for_differences_1): Use onepart.  Drop cur_loc_changed
3355         and value chains.  Propagate onepaux.  Recover empty_var and onepaux
3356         from dropped_values.
3357         (emit_notes_for_differences_2): Drop value chains.
3358         (emit_notes_in_bb): Adjust.
3359         (vt_emit_notes): Drop value chains, changed_variables_stack.
3360         Initialize and release dropped_values.
3361         (create_entry_value): Revamp.
3362         (vt_add_function_parameter): Use new interface.
3363         (note_register_arguments): Remove.
3364         (vt_initialize): Drop value chains and register arguments.
3365         (vt_finalize): Drop value chains.  Release windowed_parm_regs only
3366         if HAVE_window_save.
3367         * rtl.h: Document various pass-local uses of RTL flags.
3368         * tree.h (DECL_RTL_KNOWN_SET): New.
3369         * doc/invoke.texi (param max-vartrack-expr-depth): Update
3370         description and default.
3371
3372 2011-10-19  Georg-Johann Lay  <avr@gjlay.de>
3373
3374         PR target/50447
3375         * config/avr/avr.md (cc): New alternative out_plus_noclobber.
3376         (adjust_len): Ditto.
3377         (addhi3): Don't pipe through short; use gen_int_mode instead.
3378         Prior to reload, expand to gen_addhi3_clobber.
3379         (*addhi3): Use avr_out_plus_noclobber if applicable, use
3380         out_plus_noclobber in cc and adjust_len attribute.
3381         (addhi3_clobber): 2 new RTL peepholes.
3382         (addhi3_clobber): New insn.
3383         * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
3384         * config/avr/avr.c (avr_out_plus_noclobber): New function.
3385         (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
3386         (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
3387         Set cc0 to set_zn for adiw on 16-bit values.
3388         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
3389         (expand_epilogue): No need to add 0 to frame_pointer_rtx.
3390
3391 2011-10-19  Richard Guenther  <rguenther@suse.de>
3392
3393         PR middle-end/50780
3394         * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
3395         the condition is properly gimple before using it.
3396         * tree-eh (stmt_could_throw_1_p): Properly extract the
3397         operation type from comparisons.
3398
3399 2011-10-19  Roland Stigge  <stigge@antcom.de>
3400
3401         PR translation/48638
3402         * plugin.c (add_new_plugin): Fix typo in fatal_error message.
3403
3404 2011-10-19  Roland Stigge  <stigge@antcom.de>
3405
3406         PR translation/49517
3407         * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
3408
3409 2011-10-19  Richard Guenther  <rguenther@suse.de>
3410
3411         PR middle-end/50768
3412         * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
3413
3414 2011-10-19  Andrey Belevantsev  <abel@ispras.ru>
3415
3416         PR rtl-optimization/50340
3417         * sel-sched-ir.c (update_target_availability): LHS register
3418         availability is not known if the unavailable LHS of the other
3419         expression is a different register.
3420
3421 2011-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3422
3423         PR target/50310
3424         * config/spu/spu.c (spu_emit_vector_compare): Support unordered
3425         floating-point comparisons.
3426
3427 2011-10-19  Jan Hubicka  <jh@suse.cz>
3428
3429         * cgraphunit.c (handle_alias_pairs): Also handle wekref with
3430         destination declared.
3431         (output_weakrefs): New function.
3432         * varpool.c (varpool_create_variable_alias): Handle external aliases.
3433
3434 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
3435
3436         * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
3437         second argument instead of mode.
3438
3439 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
3440
3441         * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
3442         mode SUBREG of operands[0] as target.
3443         (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
3444         (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
3445         (expand_vec_perm_1): Handle identity and some broadcast
3446         permutations.
3447         (expand_vec_perm_interleave2): Handle also 32-byte modes, using
3448         vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
3449         For d->testing_p return true earlier to avoid creating more GC
3450         garbage.
3451         (expand_vec_perm_vpermq_perm_1): New function.
3452         (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
3453         earlier to avoid creating more GC garbage.  Fix handling of
3454         V16HImode.  Avoid some SUBREGs in SET_DEST.
3455         (expand_vec_perm_broadcast_1): Return false for 32-byte integer
3456         vector modes.
3457         (expand_vec_perm_vpshufb4_vpermq2): New function.
3458         (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
3459         and expand_vec_perm_vpshufb4_vpermq2.
3460
3461 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
3462
3463         * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
3464         before exiting.
3465
3466 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
3467
3468         PR tree-optimization/50717
3469         * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
3470         parameter.  Calculate 'type' from stmt.
3471         (convert_mult_to_widen): Update call the is_widening_mult_p.
3472         (convert_plusminus_to_widen): Likewise.
3473
3474 2011-10-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3475
3476         * config/spu/spu.c (struct machine_function): New data structure.
3477         (spu_init_machine_status): New function.
3478         (spu_option_override): Install it.
3479         (get_pic_reg): Set and use cfun->machine->pic_reg.
3480         (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
3481         (need_to_save_reg): Use cfun->machine->pic_reg instead of
3482         checking crtl->uses_pic_offset_table.
3483         (spu_expand_prologue): Likewise.
3484
3485 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
3486
3487         PR tree-optimization/50735
3488         * function.c (gimplify_parameters): Use create_tmp_var instead of
3489         create_tmp_reg.  If parm is not TREE_ADDRESSABLE and type is complex
3490         or vector type, set DECL_GIMPLE_REG_P.
3491
3492 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
3493
3494         * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
3495         * config/arm/arm.opt: Add 'native' processor_type and
3496         arm_arch enum values.
3497         * config/arm/arm.h (host_detect_local_cpu): New prototype.
3498         (EXTRA_SPEC_FUNCTIONS): New define.
3499         (MCPU_MTUNE_NATIVE_SPECS): New define.
3500         (DRIVER_SELF_SPECS): New define.
3501         * config/arm/driver-arm.c: New file.
3502         * config/arm/x-arm: New file.
3503         * doc/invoke.texi (ARM Options): Document -mcpu=native,
3504         -mtune=native and -march=native.
3505
3506 2011-10-18  Alexander Monakov  <amonakov@ispras.ru>
3507
3508         PR rtl-optimization/50205
3509         * sel-sched.c (count_occurrences_1): Simplify on the assumption that
3510         p->x is a register.  Forbid substitution when the same register is
3511         found in a different mode.
3512         (count_occurrences_equiv): Assert that 'what' is a register.
3513
3514 2011-10-18  Richard Guenther  <rguenther@suse.de>
3515
3516         PR tree-optimization/50767
3517         * tree-ssa-pre.c (create_expression_by_pieces): Update the
3518         folded statement.
3519
3520 2011-10-18  Julian Brown  <julian@codesourcery.com>
3521
3522         * config/arm/arm.c (arm_block_move_unaligned_straight)
3523         (arm_adjust_block_mem, arm_block_move_unaligned_loop)
3524         (arm_movmemqi_unaligned): New.
3525         (arm_gen_movmemqi): Support unaligned block copies.
3526
3527 2011-10-18  Ira Rosen  <ira.rosen@linaro.org>
3528
3529         * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
3530         vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
3531         * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
3532         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
3533         (op_code_prio): Likewise.
3534         (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
3535         * optabs.c (optab_for_tree_code): Handle
3536         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
3537         (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
3538         * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
3539         * genopinit.c (optabs): Initialize the new optabs.
3540         * expr.c (expand_expr_real_2): Handle
3541         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
3542         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
3543         * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
3544         * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
3545         VEC_WIDEN_LSHIFT_LO_EXPR): New.
3546         * cfgexpand.c (expand_debug_expr): Handle new tree codes.
3547         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3548         vect_recog_widen_shift_pattern.
3549         (vect_handle_widen_mult_by_const): Rename...
3550         (vect_handle_widen_op_by_const): ...to this.  Handle shifts.
3551         Add a new argument, update documentation.
3552         (vect_recog_widen_mult_pattern): Assume that only second
3553         operand can be constant.  Update call to
3554         vect_handle_widen_op_by_const.
3555         (vect_recog_over_widening_pattern): Fix typo.
3556         (vect_recog_widen_shift_pattern): New.
3557         * tree-vect-stmts.c (vectorizable_type_promotion): Handle
3558         widening shifts.
3559         (supportable_widening_operation): Likewise.
3560         * tree-inline.c (estimate_operator_cost): Handle new tree codes.
3561         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
3562         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
3563         * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
3564         (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
3565         vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
3566         Likewise.
3567         * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
3568         New.
3569         * config/arm/iterators.md (V_innermode): New.
3570         * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
3571         for widening shift.
3572
3573 2011-10-18  Richard Guenther  <rguenther@suse.de>
3574
3575         * tree-ssa-alias.h (struct pt_solution): Remove
3576         vars_contains_restrict member.
3577         (pt_solutions_same_restrict_base): Remove.
3578         (pt_solution_set): Adjust.
3579         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
3580         vars_contains_restrict handling.
3581         (dump_points_to_solution): Likewise.
3582         (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
3583         * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
3584         field.
3585         (new_var_info): Do not initialize it.
3586         (ipa_escaped_pt): Adjust.
3587         (make_constraint_from_restrict): Make the tag global.
3588         (make_constraint_from_global_restrict): New function.
3589         (make_constraint_from_heapvar): Remove.
3590         (create_variable_info_for): Do not make restrict vars point
3591         to NONLOCAL.
3592         (intra_create_variable_infos): Likewise.
3593         (find_what_var_points_to): Remove vars_contains_restrict handling.
3594         (pt_solution_set): Adjust.
3595         (pt_solution_ior_into): Likewise.
3596         (pt_solutions_same_restrict_base): Remove.
3597         (compute_points_to_sets): Do not test is_restrict_var.
3598         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
3599         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
3600
3601 2011-10-18  Tom de Vries  <tom@codesourcery.com>
3602
3603         PR tree-optimization/50672
3604         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
3605         factored out of ...
3606         (mark_virtual_phi_result_for_renaming): Use
3607         mark_virtual_operand_for_renaming.
3608         * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
3609         * tree-ssa-tail-merge.c (release_last_vdef): New function.
3610         (purge_bbs): Add update_vops parameter.  Call release_last_vdef for each
3611         deleted basic block.
3612         (tail_merge_optimize): Add argument to call to purge_bbs.
3613
3614 2011-10-18  Richard Guenther  <rguenther@suse.de>
3615
3616         PR middle-end/50716
3617         * expr.c (get_object_or_type_alignment): New function.
3618         (expand_assignment): Use it.
3619         (expand_expr_real_1): Likewise.
3620
3621 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
3622
3623         PR bootstrap/50760
3624         * input.c (dump_line_table_statistics): Use long, not size_t.
3625
3626 2011-10-17  Eric Botcazou  <ebotcazou@adacore.com>
3627
3628         * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
3629
3630 2011-10-17  Simon Baldwin  <simonb@google.com>
3631             Ian Lance Taylor  <iant@google.com>
3632
3633         * configure.ac: Add --with-native-system-header-dir.  Set and
3634         substitute NATIVE_SYSTEM_HEADER_DIR.  Use native_system_header
3635         when setting target_header_dir.
3636         * config.gcc: Always set native_system_header_dir.
3637         (*-*-gnu*): Set native_system_header_dir.  Don't use t-gnu.
3638         (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir.  Don't
3639         use i386/t-djgpp.
3640         (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
3641         native_system_header_dir.
3642         (spu-*-elf*): Set native_system_header_dir.
3643         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
3644         @NATIVE_SYSTEM_HEADER_DIR@.
3645         (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
3646         * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
3647         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
3648         STANDARD_INCLUDE_COMPONENT.
3649         (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR.  Rename
3650         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
3651         * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
3652         STANDARD_INCLUDE_COMPONENT.
3653         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
3654         * config/i386/t-mingw-w32: Likewise.
3655         * config/i386/t-mingw-w64: Likewise.
3656         * config/spu/t-spu-elf: Likewise.
3657         * config/i386/t-djgpp: Remove.
3658         * config/t-gnu: Remove.
3659         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
3660         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
3661         STANDARD_INCLUDE_COMPONENT.
3662         * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
3663         * config/spu/spu-elf.h: Likewise.
3664         * config/vms/xm-vms.h: Likewise.
3665         * config/gnu.h: Likewise.
3666         * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
3667         and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
3668         NATIVE_SYSTME_HEADER_COMPONENT.
3669         * doc/install.texi (Configuration): Document
3670         --with-native-system-header-dir.  Mention it in the documentation
3671         for --with-sysroot and --with-build-sysroot.
3672         * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
3673         STANDARD_INCLUDE_DIR.  Rename STANDARD_INCLUDE_COMPONENT to
3674         NATIVE_SYSTEM_HEADER_COMPONENT.  Rename uses of
3675         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
3676         * doc/fragments.texi (Target Fragment): Don't document
3677         NATIVE_SYSTEM_HEADER_DIR.
3678         * configure, doc/tm.texi: Rebuild.
3679
3680 2011-10-17  Richard Henderson  <rth@redhat.com>
3681
3682         * config/sparc/sparc.md: Use register_or_zero_operand where rJ
3683         is the constraint.
3684
3685         * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
3686         patterns.
3687         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
3688         * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
3689
3690 2011-10-17  David S. Miller  <davem@davemloft.net>
3691
3692         * config/sparc/sparc-modes.def: Add single entry vector modes for
3693         DImode and SImode.
3694         * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
3695         mode iterators.
3696         (mov<V32:mode>): Revert back to plain SFmode pattern.
3697         (*movsf_insn): Likewise.
3698         (mov<V64:mode>): Revert back to plain DFmode pattern.
3699         (*movdf_insn_sp32): Likewise.
3700         (*movdf_insn_sp32_v9): Likewise.
3701         (*movdf_insn_sp64): Likewise.
3702         (V64 mode splitters) Likewise.
3703         (addsi3): Remove VIS alternatives.
3704         (subsi3): Likewise.
3705         (and<V64I:mode>3): Revert to DImode only pattern.
3706         (and<V64I:mode>3_sp32): Likewise.
3707         (*and<V64I:mode>3_sp64): Likewise.
3708         (and<V32I:mode>3): Likewise.
3709         (*and_not_<V64I:mode>_sp32): Likewise.
3710         (*and_not_<V64I:mode>_sp64): Likewise.
3711         (*and_not_<V32I:mode>): Likewise.
3712         (ior<V64I:mode>3): Likewise.
3713         (*ior<V64I:mode>3_sp32): Likewise.
3714         (*ior<V64I:mode>3_sp64): Likewise.
3715         (ior<V32I:mode>3): Likewise.
3716         (*or_not_<V64I:mode>_sp32): Likewise.
3717         (*or_not_<V64I:mode>_sp64): Likewise.
3718         (*or_not_<V32I:mode>): Likewise.
3719         (xor<V64I:mode>3): Likewise.
3720         (*xor<V64I:mode>3_sp32): Likewise.
3721         (*xor<V64I:mode>3_sp64): Likewise.
3722         (xor<V32I:mode>3): Likewise.
3723         (V64I mode splitters): Likewise.
3724         (*xor_not_<V64I:mode>_sp32): Likewise.
3725         (*xor_not_<V64I:mode>_sp64): Likewise.
3726         (*xor_not_<V32I:mode>): Likewise.
3727         (one_cmpl<V64I:mode>2): Likewise.
3728         (*one_cmpl<V64I:mode>2_sp32): Likewise.
3729         (*one_cmpl<V64I:mode>2_sp64): Likewise.
3730         (one_cmpl<V32I:mode>2): Likewise.
3731         (VM32, VM64, VMALL): New mode iterators.
3732         (vbits, vconstr, vfptype): New mode attributes.
3733         (mov<VMALL:mode>): New expander.
3734         (*mov<VM32:mode>_insn): New insn.
3735         (*mov<VM64:mode>_insn_sp64): New insn.
3736         (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
3737         specifically for the register to memory case.
3738         (vec_init<mode>): New expander.
3739         (VADDSUB): New mode iterator.
3740         (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
3741         with...
3742         (<plusminus_insn><mode>3): New consolidated pattern.
3743         (VL): New mode iterator for logical operations.
3744         (vlsuf): New more attribute.
3745         (vlop): New code iterator.
3746         (vlinsn, vlninsn): New code attributes.
3747         (<code><mode>3): New insn to non-negated vector logical ops.
3748         (*not_<code><mode>3): Likewise for negated variants.
3749         (*nand<mode>_vis): New insn.
3750         (vlnotop): New code iterator.
3751         (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
3752         (one_cmpl<mode>2): New insn.
3753         (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
3754         (bshuffle<VM64:mode>_vis): Likewise.
3755         (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
3756         (fp<plusminus_insn>64_vis): Use V1DI mode.
3757         (VASS mode iterator): Use V1SI not SI mode.
3758         * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
3759         single-entry vector mode changes.
3760         (sparc_expand_builtin): Likewise.
3761         (sparc_expand_vector_init): New function.
3762         * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
3763
3764 2011-10-17  Kai Tietz  <ktietz@redhat.com>
3765
3766         * fold-const.c (simple_operand_p_2): New function.
3767         (fold_truthop): Rename to
3768         (fold_truth_andor_1): function name.
3769         Additionally remove branching creation for logical and/or.
3770         (fold_truth_andor): Handle branching creation for logical and/or here.
3771
3772 2011-10-17  Andi Kleen  <ak@linux.intel.com>
3773
3774         * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
3775
3776 2011-10-17  Georg-Johann Lay  <avr@gjlay.de>
3777
3778         * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
3779         * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
3780         (adjust_len): Add alternative "call".
3781         (isa, enabled): New insn attributes.
3782         (length): Use match_test with AVR_HAVE_JMP_CALL instead of
3783         mcu_mega attribute.
3784         (*sbrx_branch<mode>): Ditto.
3785         (*sbrx_and_branch<mode>): Ditto.
3786         (*sbix_branch): Ditto.
3787         (*sbix_branch_bit7): Ditto.
3788         (*sbix_branch_tmp): Ditto.
3789         (*sbix_branch_tmp_bit7): Ditto.
3790         (jump): Ditto.
3791         (negsi2): Use attribute "isa" instead of assembler dialect.
3792         (extendhisi2): Ditto.
3793         (call_insn, call_value_insn): Set adjust_len attribute.
3794         (indirect_jump): Indent to coding rules.
3795         (call_prologue_saves): Use isa attribute instead of mcu_mega.
3796         (epilogue_restores): Ditto.  Fix setting of SP as described in the
3797         RTX pattern.
3798         (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
3799         and *indirect_jump_avr6.
3800         (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
3801         (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
3802         (*tablejump_rjmp, *tablejump_lib): Remove.
3803         * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
3804
3805 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
3806
3807         PR c++/50757
3808         * doc/invoke.texi ([Wnonnull]): Update.
3809
3810 2011-10-17  Richard Henderson  <rth@redhat.com>
3811
3812         PR 50746
3813         * optabs.c (expand_vec_perm_expr): Fix indexing error.
3814
3815 2011-10-17  Sergio Durigan Junior  <sergiodj@redhat.com>
3816
3817         * configure.ac: Display `yes' if the SystemTap header has been found.
3818         * configure: Regenerate.
3819
3820 2011-10-08  Andi Kleen  <ak@linux.intel.com>
3821
3822         PR other/50636
3823         * config.in, configure: Regenerate.
3824         * configure.ac (madvise): Add to AC_CHECK_FUNCS.
3825         * ggc-page.c (USING_MADVISE): Add.
3826         (page_entry): Add discarded field.
3827         (alloc_page): Check for discarded pages.
3828         (release_pages): Add USING_MADVISE branch.
3829
3830 2011-10-17  Richard Guenther  <rguenther@suse.de>
3831
3832         PR tree-optimization/50729
3833         * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
3834         (simplify_conversion_using_ranges): Properly test the
3835         intermediate result.
3836
3837 2011-10-15  Tom Tromey  <tromey@redhat.com>
3838             Dodji Seketeli  <dodji@redhat.com>
3839
3840         * ggc.h (ggc_round_alloc_size): Declare new public entry point.
3841         * ggc-none.c (ggc_round_alloc_size): New public stub function.
3842         * ggc-page.c (ggc_alloced_size_order_for_request): New static
3843         function.  Factorized from ggc_internal_alloc_stat.
3844         (ggc_round_alloc_size): New public function.  Uses
3845         ggc_alloced_size_order_for_request.
3846         (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
3847         * ggc-zone.c (ggc_round_alloc_size): New public function extracted
3848         from ggc_internal_alloc_zone_stat.
3849         (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
3850         * toplev.c (general_init): Initialize
3851         line_table->alloced_size_for_request.
3852
3853 2011-10-15  Tom Tromey  <tromey@redhat.com>
3854             Dodji Seketeli  <dodji@redhat.com>
3855
3856         * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
3857         (num_expanded_macros_counter, num_macro_tokens_counter): Declare
3858         new counters.
3859         (dump_line_table_statistics): Define new function.
3860         * input.h (dump_line_table_statistics): Declare new function.
3861         * toplev.c (dump_memory_report): Call dump_line_table_statistics.
3862
3863 2011-10-15  Tom Tromey  <tromey@redhat.com>
3864             Dodji Seketeli  <dodji@redhat.com>
3865
3866         * doc/cppopts.texi: Document -fdebug-cpp.
3867         * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
3868
3869 2011-10-15  Tom Tromey  <tromey@redhat.com>
3870             Dodji Seketeli  <dodji@redhat.com>
3871
3872         * gcc/diagnostic.h (diagnostic_report_current_module): Add a
3873         location parameter.
3874         * diagnostic.c (diagnostic_report_current_module): Add a location
3875         parameter to the function definition.  Use it instead of
3876         input_location.  Resolve the virtual location rather than just
3877         looking up its map and risking to touch a resulting macro map.
3878         (default_diagnostic_starter): Pass the relevant diagnostic
3879         location to diagnostic_report_current_module.
3880         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
3881         (virt_loc_aware_diagnostic_finalizer): Likewise.
3882         (diagnostic_report_current_function): Pass the
3883         relevant location to diagnostic_report_current_module.
3884         * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
3885         new function.
3886         * toplev.c (general_init): By default, use the new
3887         virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
3888         * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
3889
3890 2011-10-15  Tom Tromey  <tromey@redhat.com>
3891             Dodji Seketeli  <dodji@redhat.com>
3892
3893         * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
3894         * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
3895         preprocessor related options.
3896
3897 2011-10-15  Tom Tromey  <tromey@redhat>
3898             Dodji Seketeli  <dodji@redhat.com>
3899
3900         * input.h (struct expanded_location): Move to libcpp/line-map.h.
3901         (LOCATION_COLUMN): New accessor
3902         (in_system_header_at): Use linemap_location_in_system_header_p.
3903         * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
3904         touching the internals of struct line_map.  Use the public API instead.
3905         (diagnostic_report_diagnostic): Don't use relational operator '<'
3906         on virtual locations.  Use linemap_location_before_p instead.
3907         * input.c (expand_location): Adjust to expand to the tokens'
3908         spelling location when macro location tracking is on.
3909
3910
3911 2011-10-08  Andi Kleen  <ak@linux.intel.com>
3912
3913         * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
3914
3915 2011-10-13  Andi Kleen  <ak@linux.intel.com>
3916
3917         * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
3918
3919 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
3920
3921         PR tree-optimization/50727
3922         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
3923         DEF_STMT to the list of statements to be replaced by the
3924         pattern statements.
3925
3926 2011-10-16  Eric Botcazou  <ebotcazou@adacore.com>
3927
3928         PR rtl-optimization/50615
3929         * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
3930
3931 2011-10-16  Jakub Jelinek  <jakub@redhat.com>
3932
3933         PR tree-optimization/50596
3934         * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
3935         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3936         vect_recog_bool_pattern.
3937         (check_bool_pattern, adjust_bool_pattern_cast,
3938         adjust_bool_pattern, vect_recog_bool_pattern): New functions.
3939
3940 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
3941
3942         * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
3943         treat the first load of the node as the first element in its
3944         interleaving chain.
3945         * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
3946         necessary and possible.
3947         (vect_build_slp_tree): Add new argument.  Allow load groups of any size
3948         in basic blocks.  Keep all the loads for further permutation check.
3949         Use the new argument to determine if there is a permutation.  Update
3950         the recursive calls.
3951         (vect_supported_load_permutation_p): Allow subchains of interleaving
3952         chains in basic block vectorization.
3953         (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
3954         Check load permutation based on the new parameter.
3955         (vect_schedule_slp_instance): Don't start from the first element in
3956         interleaving chain unless the loads are permuted.
3957
3958 2011-10-15  Jan Hubicka  <jh@suse.cz>
3959
3960         PR target/48668
3961         PR target/50689
3962         * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
3963         after function body.
3964
3965 2011-10-15  Richard Henderson  <rth@redhat.com>
3966
3967         * tree-vect-slp.c: Include langhooks.h.
3968         (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
3969         (vect_transform_slp_perm_load): Use can_vec_perm_expr_p.  Simplify
3970         mask creation for VEC_PERM_EXPR.
3971         * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
3972         not the builtin.
3973         (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
3974         * Makefile.in (tree-vect-slp.o): Update dependency.
3975         * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
3976
3977 2011-10-15  Alan Modra  <amodra@gmail.com>
3978
3979         PR bootstrap/50738
3980         * ifcvt.c (dead_or_predicable): Revert accidental commit with
3981         HAVE_simple_return test.
3982
3983 2011-10-15  Alan Modra  <amodra@gmail.com>
3984
3985         * ifcvt.c (dead_or_predicable): Disable if-conversion when
3986         doing so is likely to kill a shrink-wrapping opportunity.
3987
3988         PR rtl-optimization/49941
3989         * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
3990
3991         * rtl.h (set_return_jump_label): Declare.
3992         * function.c (set_return_jump_label): New function, extracted..
3993         (thread_prologue_and_epilogue_insns): ..from here.  Use it in
3994         another instance to set return jump_label.
3995         * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
3996         * reorg.c (find_end_label): Likewise.
3997
3998 2011-10-14  David S. Miller  <davem@davemloft.net>
3999
4000         * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
4001         with a more complete cpp test.
4002         * config/sparc/linux64.h: Likewise.
4003         * config/sparc/linux.h: Likewise.
4004         * config/sparc/sparc.opt (sparc_debug): New target variable.
4005         (mdebug): New target option.
4006         * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
4007         TARGET_DEBUG_OPTIONS): New defines.
4008         * config/sparc/sparc.c (debug_target_flag_bits,
4009         debug_target_flags): New functions.
4010         (sparc_option_override): Add name strings back to cpu_table[].
4011         Parse -mdebug string.  When TARGET_DEBUG_OPTIONS is true, print
4012         out the target flags before and after override processing as well
4013         as the selected cpu.  If MASK_V8PLUS, make sure that the selected
4014         cpu is at least v9.
4015
4016 2011-10-15  Oleg Endo  <oleg.endo@t-online.de>
4017
4018         PR target/49263
4019         * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
4020         * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
4021         * config/sh/sh.md (tstsi_t): Name existing insn.  Make inner
4022         and instruction commutative.
4023         (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
4024         tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
4025         tstsi_t_zero_extract_subreg_xor_little,
4026         tstsi_t_zero_extract_subreg_xor_big): New insns.
4027         (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
4028         asm output.
4029         (*andsi_compact): Reorder alternatives so that K08 is considered first.
4030
4031 2011-10-14  Eric Botcazou  <ebotcazou@adacore.com>
4032
4033         PR target/50354
4034         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
4035         processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
4036
4037 2011-10-14  Gerald Pfeifer  <gerald@pfeifer.com>
4038
4039         * invoke.texi (AVR Options): Avoid \leq{}.
4040
4041 2011-10-14  Kai Tietz  <ktietz@redhat.com>
4042
4043         * gimplify.c (gimplify_expr): Take care that for bitwise-binary
4044         transformation the operands have compatible types.
4045
4046 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
4047
4048         * config/i386/sse.md (vec_widen_smult_hi_v8hi,
4049         vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
4050         vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
4051         mode iterator and any_extend code iterator.
4052         (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
4053         (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
4054         also for TARGET_SSE4_1 using pmuldq insn.
4055         (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
4056         (sse2_sse4_1): New code attr.
4057         (udot_prodv4si): Macroize using any_extend code iterator.
4058         (<s>dot_prodv8si): New expander.
4059
4060 2011-10-14  Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
4061
4062         * config/i386/i386.c (atom_cost): Changed cost for loading
4063         QImode using movzbl.
4064
4065 2011-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4066
4067         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
4068         change on October 11th, 2011.
4069
4070 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
4071
4072         * config/i386/sse.md (vec_interleave_high<mode>,
4073         vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
4074         * config/i386/i386.c (expand_vec_perm_interleave3): New function.
4075         (ix86_expand_vec_perm_builtin_1): Call it.
4076
4077 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
4078
4079         Fix thinko from r179765
4080         * config/avr/avr.c (avr_option_override): Don't override
4081         flag_omit_frame_pointer if not actually needed.
4082
4083 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
4084
4085         PR target/46278
4086         * doc/invoke.texi (AVR Options): Document -mstrict-X.
4087
4088         * config/avr/avr.opt (-mstrict-X): New option.
4089         (avr_strict_X): New variable reflecting -mstrict-X.
4090         * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
4091         outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
4092         (avr_legitimate_address_p): Pass outer_code to
4093         avr_reg_ok_for_addr_p and use that function in case PLUS.
4094         (avr_mode_code_base_reg_class): Depend on avr_strict_X.
4095         (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
4096         (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
4097
4098 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
4099
4100         * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
4101         of VI_128.
4102
4103         * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
4104         (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
4105         Use <sseinsnmode> instead of TI in mode attr.
4106
4107 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
4108
4109         * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
4110         * config/arm/linux-atomic.c: Change comment to point to 64bit version.
4111         (SYNC_LOCK_RELEASE): Instantiate 64bit version.
4112         * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
4113
4114 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
4115
4116         * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
4117         (arm_output_strex): Support strexd.
4118         (arm_output_it): New helper to output it in Thumb2 mode only.
4119         (arm_output_sync_loop): Support DI mode.  Change comment to
4120         not support const_int.
4121         (arm_expand_sync): Support DI mode.
4122         * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
4123         and LDREXD.
4124         * config/arm/iterators.md (NARROW): move from sync.md.
4125         (QHSD): New iterator for all current ARM integer modes.
4126         (SIDI): New iterator for SI and DI modes only.
4127         * config/arm/sync.md (sync_predtab): New mode_attr.
4128         (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
4129         (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
4130         (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
4131         (sync_nandsi): Fold into sync_nand<mode>.
4132         (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
4133         (sync_new_nandsi): Fold into sync_new_nand<mode>.
4134         (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
4135         (sync_old_nandsi): Fold into sync_old_nand<mode>.
4136         (sync_compare_and_swap<mode>): Support SI & DI.
4137         (sync_lock_test_and_set<mode>): Likewise.
4138         (sync_<sync_optab><mode>): Likewise.
4139         (sync_nand<mode>): Likewise.
4140         (sync_new_<sync_optab><mode>): Likewise.
4141         (sync_new_nand<mode>): Likewise.
4142         (sync_old_<sync_optab><mode>): Likewise.
4143         (sync_old_nand<mode>): Likewise.
4144         (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
4145         (arm_sync_lock_test_and_setsi): Likewise.
4146         (arm_sync_new_<sync_optab>si): Likewise.
4147         (arm_sync_new_nandsi): Likewise.
4148         (arm_sync_old_<sync_optab>si): Likewise.
4149         (arm_sync_old_nandsi): Likewise.
4150         (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
4151         (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
4152         (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
4153         (arm_sync_new_nand<mode> NARROW): Likewise.
4154         (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
4155         (arm_sync_old_nand<mode> NARROW): Likewise.
4156
4157 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
4158
4159         PR target/48126
4160         * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
4161
4162 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
4163
4164         * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
4165
4166 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
4167
4168         * doc/invoke.texi ([Wformat-zero-length]): Tidy.
4169
4170 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
4171
4172         * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
4173         on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
4174
4175 2011-10-14  Richard Guenther  <rguenther@suse.de>
4176
4177         PR tree-optimization/50723
4178         * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
4179
4180 2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4181
4182         * gengtype.c (files_rules): Added rules for objc/objc-map.h and
4183         objc/objc-map.c.
4184
4185 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
4186
4187         PR c++/17212
4188         * doc/invoke.texi ([Wformat-zero-length]): Update.
4189
4190 2011-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4191
4192         PR bootstrap/50699
4193         * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
4194         build for powerpc targets.  (darwin_patch_builtins): Only build for
4195         powerpc targets.
4196
4197 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
4198
4199         * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
4200         (avx_cvtdq2pd256_2): ... this.
4201         (sseunpackfltmode): New mode attr.
4202         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
4203         vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
4204         using VI2_AVX2 iterator.
4205         (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
4206
4207 2011-10-13  David S. Miller  <davem@davemloft.net>
4208
4209         * config/sparc/sparc.md (plusminus): New code iterator.
4210         (plusminus_insn): New code attr.
4211         (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
4212         using plusminus and plusminus_insn.
4213         (fpadd64_vis, fpsub64_vis): Likewise.
4214
4215 2011-10-13  Richard Henderson  <rth@redhat.com>
4216
4217         * doc/md.texi (vec_perm): Document fallback to byte permutation.
4218         * genopinit.c (optabs): Add vec_perm_const.
4219         * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
4220         Reject non-vector modes.  Allow fallback to byte permutation.
4221         (expand_vec_perm_expr_1): Split out from ...
4222         (expand_vec_perm_expr): ... here.  Allow fallback to byte permutation.
4223         * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
4224         * tree-vect-generic.c (lower_vec_perm): Update for name change.
4225
4226 2011-10-13  Richard Henderson  <rth@redhat.com>
4227
4228         * config/rs6000/altivec.md (vec_permv16qi): New pattern.
4229
4230         * config/rs6000/spu.md (vec_permv16qi): New pattern.
4231
4232         * config/i386/i386.c (ix86_expand_vec_perm_const): New.
4233         * config/i386/i386-protos.h: Update.
4234         * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
4235         (vec_perm_const<VEC_PERM_CONST>): New expander.
4236
4237         * optabs.c (expand_vector_broadcast): New.
4238         (expand_binop): Expand scalar shifts of vectors to vector shifts
4239         of vectors, if the former isn't supported.
4240         * tree-vect-generic.c (expand_vector_operations_1): Don't do that
4241         here; always simplify to scalar shift of vector if possible.
4242
4243         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
4244         test for vector splat.
4245
4246 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
4247
4248         * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
4249
4250 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
4251             Richard Guenther  <rguenther@suse.de>
4252
4253         * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
4254         or complex vars even if their DECL_UID is in not_reg_needs bitmap.
4255
4256 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
4257
4258         * config/i386/sse.md (reduc_umin_v8hi): New pattern.
4259         * config/i386/i386.c (ix86_build_const_vector): Handle
4260         also V32QI, V16QI, V16HI and V8HI modes.
4261         (emit_reduc_half): New function.
4262         (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
4263         Use emit_reduc_half helper function.
4264
4265 2011-10-13  Lawrence Crowl  <crowl@google.com>
4266             Diego Novillo  <dnovillo@google.com>
4267
4268         * lto-streamer-in.c (input_struct_function_base): Factor out of ...
4269         (input_function): ... here.
4270         * lto-streamer-out.c (output_struct_function_base): Factor out of ...
4271         (output_function): ... here.
4272
4273 2011-10-13  Gabriel Charette  <gchare@google.com>
4274             Diego Novillo  <dnovillo@google.com>
4275
4276         * streamer-hooks.h (struct streamer_hooks): Add hooks
4277         input_location and output_location.
4278         * lto-streamer-in.c (lto_input_location): Use
4279         streamer_hooks.input_location, if set.
4280         * lto-streamer-out.c (lto_output_location): Use
4281         streamer_hooks.output_location, if set.
4282
4283 2011-10-13  Eric Botcazou  <ebotcazou@adacore.com>
4284
4285         * doc/invoke.texi (SPARC options): Document -mfix-at697f.
4286         * config/sparc/sparc.opt (mfix-at697f): New option.
4287         * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4288         (sparc_reorg): New function.
4289
4290 2011-10-13  Richard Guenther  <rguenther@suse.de>
4291
4292         PR tree-optimization/50712
4293         * ipa-split.c (split_function): Always re-gimplify parameters
4294         when they are not gimple vals before passing them.  Properly
4295         check for type compatibility.
4296
4297 2011-10-13  Tom de Vries  <tom@codesourcery.com>
4298
4299         * function.c (gimplify_parameters): Set number of arguments of call to
4300         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
4301
4302 2011-10-13  Tom de Vries  <tom@codesourcery.com>
4303
4304         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
4305         for static const strings.
4306         * varasm.c (build_constant_desc): Generate the memory location of the
4307         constant using gen_const_mem.
4308
4309 2011-10-13  Richard Guenther  <rguenther@suse.de>
4310
4311         PR tree-optimization/50698
4312         * tree-data-ref.c (split_constant_offset_1): Also process
4313         offsets of &MEM.
4314
4315 2011-10-12  David S. Miller  <davem@davemloft.net>
4316
4317         * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
4318         (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
4319         unspecs.
4320         (fpmerge_vis): Remove inaccurate comment, represent using vec_select
4321         of a vec_concat.
4322         (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
4323         (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
4324         Reimplement as unspecs and remove inaccurate comments.
4325         (vis3_shift_patname): New code attr.
4326         (<vis3_shift_insn><vbits>_vis): Rename to
4327         "v<vis3_shift_patname><mode>3".
4328         (vis3_addsub_ss_patname): New code attr.
4329         (<vis3_addsub_ss_insn><vbits>_vis): Rename to
4330         "<vis3_addsub_ss_patname><mode>3".
4331         * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
4332         accommodate pattern name changes.
4333
4334         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
4335         to zero when assembler lacks support for such instructions.
4336         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
4337         and MASK_FMAF in defaults when assembler lacks necessary support.
4338
4339 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
4340
4341         * config/i386/sse.md (vec_unpacks_lo_<mode>,
4342         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
4343         vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
4344         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
4345         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
4346
4347         * config/i386/sse.md (vec_avx2): New mode_attr.
4348         (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
4349         (mul<mode>3): ... this.
4350
4351         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
4352         * config/i386/i386.c (ix86_expand_vec_perm): Handle
4353         V16QImode and V32QImode for TARGET_AVX2.
4354         (MAX_VECT_LEN): Increase to 32.
4355         (expand_vec_perm_blend): Add support for 32-byte integer
4356         vectors with TARGET_AVX2.
4357         (valid_perm_using_mode_p): New function.
4358         (expand_vec_perm_pshufb): Add support for 32-byte integer
4359         vectors with TARGET_AVX2.
4360         (expand_vec_perm_vpshufb2_vpermq): New function.
4361         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
4362         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
4363         with TARGET_AVX2.
4364         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
4365         and expand_vec_perm_vpshufb2_vpermq_even_odd.
4366         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
4367         32-byte integer vector modes.
4368         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
4369         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
4370         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
4371         4 new operands.
4372         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
4373         match_dup, instead add 4 new operands and require they have
4374         right cross-lane values.
4375         (avx2_permv4di): Change into define_expand.
4376         (avx2_permv4di_1): New instruction.
4377         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
4378         for "xm" constrained operand.
4379         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
4380
4381         * config/i386/sse.md (avx2_gathersi<mode>,
4382         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
4383         match_scratch, change memory_operand to register_operand,
4384         add (mem:BLK (scratch)) use.
4385         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
4386         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
4387         add earlyclobber to the output operand and match_scratch,
4388         add (mem:BLK (scratch)) use, change the other mem to match_operand.
4389         Use %p6 instead of %c6 in the pattern.
4390         * config/i386/i386.c (ix86_expand_builtin): Adjust for
4391         operand 2 being a Pmode register_operand instead of memory_operand.
4392
4393 2011-10-12  Kai Tietz  <ktietz@redhat.com>
4394
4395         * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
4396
4397 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
4398
4399         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
4400
4401 2011-10-12  Richard Guenther  <rguenther@suse.de>
4402
4403         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
4404         of the first store we visit in a basic-block.
4405         (get_continuation_for_phi): Search for a candidate VUSE that
4406         might dominates all others.  Do pairwise disambiguation against
4407         that candidate.
4408
4409 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
4410
4411         PR tree-optimization/50189
4412         * tree-vrp.c (extract_range_from_assert): Use the type of
4413         the variable, not the limit.
4414
4415 2011-10-12  Richard Guenther  <rguenther@suse.de>
4416
4417         PR tree-optimization/50700
4418         * tree-object-size.c (addr_object_size): Simplify and treat
4419         MEM_REF bases consistently.
4420
4421 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
4422
4423         * function.c (prepare_shrink_wrap, bb_active_p): New function.
4424         (thread_prologue_and_epilogue_insns): Use bb_active_p.  Call
4425         prepare_shrink_wrap, then recompute bb_active_p for the last block.
4426
4427 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
4428
4429         PR c/50565
4430         * convert.c (convert_to_integer): Do not narrow operands of
4431         pointer subtraction.
4432
4433 2011-10-12  Nick Clifton  <nickc@redhat.com>
4434
4435         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
4436         emit a .eabi_attribute assembler directive, possibly with a
4437         comment attached.
4438         * config/arm/arm.c (arm_file_start): Use the new macro.
4439         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
4440
4441 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
4442
4443         PR target/49939
4444         * config/avr/avr.md (*movqi): Rename to movqi_insn.
4445         (*call_insn): Rename to call_insn.
4446         (*call_value_insn): Rename to call_value_insn.
4447         * config/avr/avr.c (avr_2word_insn_p): New static function.
4448         (jump_over_one_insn_p): Use it.
4449
4450 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
4451
4452         * expr.h (copy_blkmode_to_reg): Declare.
4453         * expr.c (copy_blkmode_to_reg): New function.
4454         (expand_assignment): Don't expand register RESULT_DECLs before
4455         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
4456         RESULT_DECL register.
4457         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
4458         * stmt.c (expand_return): Move BLKmode-to-register code into
4459         copy_blkmode_to_reg.
4460
4461 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
4462
4463         PR target/49965
4464         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
4465         (mov<F:mode>cc): Likewise.
4466
4467 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4468
4469         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
4470
4471 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4472
4473         * tree.h (built_in_decls): Delete old interface with two parallel
4474         arrays to hold standard builtin declarations, and replace it with
4475         a function based interface that can support creating builtins on
4476         the fly in the future.  Change all uses, and poison the old
4477         names.  Make sure 0 is not a legitimate builtin index.
4478         (implicit_built_in_decls): Ditto.
4479         (built_in_info): Ditto.
4480         (BUILTIN_VALID_P): Ditto.
4481         (builtin_decl_explicit): Ditto.
4482         (builtin_decl_implicit): Ditto.
4483         (set_builtin_decl): Ditto.
4484         (set_builtin_decl_implicit_p): Ditto.
4485         (builtin_decl_explicit_p): Ditto.
4486         (builtin_decl_implicit_p): Ditto.
4487         * tree-complex.c (expand_complex_libcall): Ditto.
4488         * tree-loop-distribution.c (generate_memset_zero): Ditto.
4489         * tree-ssa-strlen.c (get_string_length): Ditto.
4490         (handle_builtin_strcpy): Ditto.
4491         (handle_builtin_strcat): Ditto.
4492         * tree.c (iterative_hash_expr): Ditto.
4493         (local_define_builtin): Ditto.
4494         (build_common_builtin_nodes): Ditto.
4495         * builtins.c (built_in_decls): Ditto.
4496         (implicit_built_in_decls): Ditto.
4497         (built_in_info): Ditto
4498         (expand_builtin_classify_type): Ditto.
4499         (mathfn_built_in_1): Ditto.
4500         (expand_builtin_cexpi): Ditto.
4501         (expand_builtin_mempcpy_args): Ditto.
4502         (expand_builtin_stpcpy): Ditto.
4503         (gimplify_va_arg_expr): Ditto.
4504         (expand_builtin_sync_operation): Ditto.
4505         (build_builtin_expect_predicate): Ditto.
4506         (fold_builtin_memory_op): Ditto.
4507         (fold_builtin_strcpy): Ditto.
4508         (fold_builtin_stpcpy): Ditto.
4509         (fold_builtin_strncpy): Ditto.
4510         (fold_builtin_interclass_mathfn): Ditto.
4511         (fold_builtin_classify): Ditto.
4512         (fold_builtin_2): Ditto.
4513         (fold_builtin_strstr): Ditto.
4514         (fold_builtin_strrchr): Ditto.
4515         (fold_builtin_strpbrk): Ditto.
4516         (fold_builtin_strcat): Ditto.
4517         (fold_builtin_strncat): Ditto.
4518         (fold_builtin_strcspn): Ditto.
4519         (fold_builtin_fputs): Ditto.
4520         (fold_builtin_sprintf): Ditto.
4521         (fold_builtin_snprintf): Ditto.
4522         (expand_builtin_memory_chk): Ditto.
4523         (fold_builtin_memory_chk): Ditto.
4524         (fold_builtin_stxcpy_chk): Ditto.
4525         (fold_builtin_strncpy_chk): Ditto.
4526         (fold_builtin_strcat_chk): Ditto.
4527         (fold_builtin_strncat_chk): Ditto.
4528         (fold_builtin_sprintf_chk_1): Ditto.
4529         (fold_builtin_snprintf_chk_1): Ditto.
4530         (fold_builtin_printf): Ditto.
4531         (fold_builtin_fprintf): Ditto.
4532         (fold_call_stmt): Ditto.
4533         (set_builtin_user_assembler_name): Ditto.
4534         * tree-emutls.c (emutls_common_1): Ditto.
4535         * omp-low.c (scan_omp): Ditto.
4536         (lower_rec_input_clauses): Ditto.
4537         (lower_reduction_clauses): Ditto.
4538         (expand_parallel_call): Ditto.
4539         (expand_task_call): Ditto.
4540         (maybe_catch_exception): Ditto.
4541         (optimize_omp_library_calls): Ditto.
4542         (expand_omp_for_generic): Ditto.
4543         (expand_omp_for_static_nochunk): Ditto.
4544         (expand_omp_for_static_chunk): Ditto.
4545         (expand_omp_sections): Ditto.
4546         (expand_omp_atomic_fetch_op): Ditto.
4547         (expand_omp_atomic_pipeline): Ditto.
4548         (expand_omp_atomic_mutex): Ditto.
4549         (lower_omp_single_simple): Ditto.
4550         (lower_omp_single_copy): Ditto.
4551         (lower_omp_master): Ditto.
4552         (lower_omp_ordered): Ditto.
4553         (lower_omp_critical): Ditto.
4554         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
4555         * builtins.c (DEF_BUILTIN_STUB): Ditto.
4556         (BUILT_IN_NONE): Ditto.
4557         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
4558         * gimple-low.c (lower_function_body): Ditto.
4559         (lower_builtin_setjmp): Ditto.
4560         * c-decl.c (merge_decls): Ditto.
4561         * tree-eh.c (lower_resx): Ditto.
4562         (lower_resx): Ditto.
4563         (lower_eh_dispatch): Ditto.
4564         * function (gimplify_parameters): Ditto.
4565         * c-typeck.c (build_function_call_vec): Ditto.
4566         * gimplify.c (build_stack_save_restore): Ditto.
4567         (gimplify_vla_decl): Ditto.
4568         (gimplify_modify_expr_to_memcpy): Ditto.
4569         (gimplify_modify_expr_to_memset): Ditto.
4570         (gimplify_variable_sized_compare): Ditto.
4571         (gimplify_function_tree): Ditto.
4572         * calls.c (emit_call_1): Ditto.
4573         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
4574         * tree-nested.c (convert_nl_goto_reference): Ditto.
4575         (convert_tramp_reference_op): Ditto.
4576         (finalize_nesting_tree_1): Ditto.
4577         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
4578         (tree_ssa_prefetch_arrays): Ditto.
4579         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
4580         * system.h (built_in_decls): Ditto.
4581         (implicit_built_in_decls): Ditto.
4582         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
4583         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
4584         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
4585         (ix86_veclibabi_svml): Ditto.
4586         (ix86_veclibabi_acml): Ditto.
4587         * config/vms/vms.c (vms_patch_builtins): Ditto.
4588         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
4589         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
4590         (rs6000_builtin_vectorized_libmass): Ditto.
4591         (rs6000_init_builtins): Ditto.
4592         * config/darwin.c (darwin_override_options): Ditto.
4593         (darwin_patch_builtin): Ditto.
4594         (darwin_rename_builtins): Ditto.
4595         * config/pa/pa.c (pa_init_builtins): Ditto.
4596
4597 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4598
4599         * tree.h (copy_ref_info): Expose existing function.
4600         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
4601         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
4602
4603 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
4604
4605         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
4606         prototype.
4607         (avr_regno_mode_code_ok_for_base_p): New prototype.
4608         * config/avr/avr.h (BASE_REG_CLASS): Remove.
4609         (REGNO_OK_FOR_BASE_P): Remove.
4610         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
4611         (REG_OK_FOR_BASE_STRICT_P): Remove.
4612         (MODE_CODE_BASE_REG_CLASS): New define.
4613         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
4614         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
4615         (avr_regno_mode_code_ok_for_base_p): New function.
4616         (avr_reg_ok_for_addr_p): New static function.
4617         (avr_legitimate_address_p): Use it.  Beautify.
4618
4619 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
4620
4621         PR target/50447
4622         * config/avr/avr.md (cc): Add out_plus attribute alternative.
4623         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
4624         avr_out_plus for all CONST_INT addends.
4625         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
4626         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
4627         CC_OUT_PLUS.
4628         (avr_out_plus_1): Change prototype and report effect on cc0.
4629         (avr_out_plus): Ditto.
4630         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
4631
4632 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
4633
4634         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
4635         the extra break.
4636
4637 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
4638
4639         * doc/invoke.texi: Document new warning.
4640         * common.opt (Wvector-operation-performance): Define new warning.
4641         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
4642         vector operation.
4643         (exapnd_vector_parallel): Warn about expanded vector operation.
4644         (lower_vec_shuffle): Warn about expanded vector operation.
4645         * c-typeck.c (c_build_vec_perm_expr): Store correct location
4646         when creating VEC_PERM_EXPR.
4647
4648 2011-10-11  Richard Guenther  <rguenther@suse.de>
4649
4650         PR tree-optimization/50204
4651         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
4652         two argument handling from ...
4653         (get_continuation_for_phi): ... here.  Handle arbitrary number
4654         of PHI args.
4655
4656 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
4657
4658         * modulo-sched.c: Fix comment typo.  Mention the possibility
4659         of using scheduling windows of II+1 cycles.
4660
4661 2011-10-11  Tristan Gingold  <gingold@adacore.com>
4662
4663         * doc/invoke.texi (C Dialect Options): Document
4664         -fallow-parameterless-variadic-functions.
4665         * c-parser.c (c_parser_parms_list_declarator): Handle it.
4666
4667 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
4668
4669         * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
4670         to 0 if frame pointer is needed for unwinding.
4671
4672 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
4673
4674         PR bootstrap/50665
4675         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
4676         optab_index to enum direct_optab_index.
4677         (vec_perm_optab): Update.
4678
4679 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
4680
4681         * config/cris/cris.c (cris_preferred_reload_class): New function.
4682         (TARGET_PREFERRED_RELOAD_CLASS): Define.
4683         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
4684
4685 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
4686
4687         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
4688         !AVR_HAVE_JMP_CALL.
4689         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
4690         (*tablejump_enh, *tablejump): Remove insns.
4691         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
4692         EIJMP for indirect jump.  Use LPM Z+ where available.
4693
4694 2011-10-10  Richard Henderson  <rth@redhat.com>
4695
4696         * doc/md.texi (vec_perm_const): Fix typo in cindex.
4697
4698 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
4699             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
4700
4701         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
4702
4703 2011-10-10  Richard Guenther  <rguenther@suse.de>
4704
4705         PR middle-end/50389
4706         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
4707         mark symbols for renaming.  Append the VUSE to all statements
4708         that possibly can have one.
4709
4710 2011-10-10  Richard Guenther  <rguenther@suse.de>
4711
4712         * ipa-split.c (pass_split_functions): Add verification TODOs.
4713         (pass_feedback_split_functions): Likewise.
4714
4715 2011-10-10  Richard Guenther  <rguenther@suse.de>
4716
4717         PR middle-end/50195
4718         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
4719         only when optimizing.
4720
4721 2011-10-10  Nick Clifton  <nickc@redhat.com>
4722
4723         PR middle-end/49801
4724         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
4725         df_get_live_out instead of accessing the bitmaps directly.
4726         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
4727         df_live_add_problem and df_analyze.
4728
4729 2011-10-10  Michael Matz  <matz@suse.de>
4730
4731         PR middle-end/50638
4732         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
4733
4734 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
4735
4736         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
4737         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
4738         (node_sched_params): Remove first_reg_move and nreg_moves.
4739         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
4740         (update_node_sched_params): Move up file.
4741         (print_node_sched_params): Print the stage.  Don't dump info related
4742         to first_reg_move and nreg_moves.
4743         (set_columns_for_row): New function.
4744         (set_columns_for_ps): Move up file and use set_columns_for_row.
4745         (schedule_reg_move): New function.
4746         (schedule_reg_moves): Call extend_node_sched_params and
4747         schedule_reg_move.  Extend size of uses bitmap.  Initialize
4748         num_consecutive_stages.  Return false if a move could not be
4749         scheduled.
4750         (apply_reg_moves): Don't emit moves here.
4751         (permute_partial_schedule): Handle register moves.
4752         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
4753         to the same stage-count test as ddg nodes.
4754         (generate_prolog_epilog): Update calls accordingly.
4755         (sms_schedule): Allow move-scheduling to add a new first stage.
4756
4757 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
4758
4759         * modulo-sched.c (ps_insn): Adjust comment.
4760         (ps_reg_move_info): New structure.
4761         (partial_schedule): Add reg_moves field.
4762         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
4763         (node_sched_params): Turn first_reg_move into an identifier.
4764         (ps_reg_move): New function.
4765         (ps_rtl_insn): Cope with register moves.
4766         (ps_first_note): Adjust comment and assert that the instruction
4767         isn't a register move.
4768         (node_sched_params): Replace with...
4769         (node_sched_param_vec): ...this vector.
4770         (set_node_sched_params): Adjust accordingly.
4771         (print_node_sched_params): Take a partial schedule instead of a ddg.
4772         Use ps_rtl_insn and ps_reg_move.
4773         (generate_reg_moves): Rename to...
4774         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
4775         move in the partial schedule, but don't emit it here.  Don't perform
4776         register substitutions here either.
4777         (apply_reg_moves): New function.
4778         (duplicate_insns_of_cycles): Use register indices directly,
4779         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
4780         (sms_schedule): Call schedule_reg_moves before committing to
4781         a partial schedule.   Try the next ii if the schedule fails.
4782         Use apply_reg_moves instead of generate_reg_moves.  Adjust
4783         call to print_node_sched_params.  Free node_sched_param_vec
4784         instead of node_sched_params.
4785         (create_partial_schedule): Initialize reg_moves.
4786         (free_partial_schedule): Free reg_moves.
4787
4788 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
4789
4790         * modulo-sched.c (ps_insn): Replace node field with an identifier.
4791         (SCHED_ASAP): Replace with..
4792         (NODE_ASAP): ...this macro.
4793         (SCHED_PARAMS): New macro.
4794         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
4795         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
4796         (node_sched_params): Remove asap.
4797         (ps_rtl_insn, ps_first_note): New functions.
4798         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
4799         asap values.
4800         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
4801         (generate_reg_moves): Pass ids to the SCHED_* macros.
4802         (update_node_sched_params): Take a ps insn identifier rather than
4803         a node as parameter.  Use ps_rtl_insn.
4804         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
4805         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
4806         (optimize_sc): Update for above field and SCHED_* macro changes.
4807         Update calls to try_scheduling_node_in_cycle and
4808         update_node_sched_params.
4809         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
4810         macro changes.  Use ps_rtl_insn and ps_first_note.
4811         (sms_schedule): Pass ids to the SCHED_* macros.
4812         (get_sched_window): Adjust for above field and SCHED_* macro changes.
4813         Use NODE_ASAP instead of SCHED_ASAP.
4814         (try_scheduling_node_in_cycle): Remove node parameter.  Update
4815         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_* macros.
4816         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
4817         (ps_insert_empty_row): Adjust for above field changes.
4818         (compute_split_row): Use ids rather than nodes.
4819         (verify_partial_schedule): Adjust for above field changes.
4820         (print_partial_schedule): Use ps_rtl_insn.
4821         (create_ps_insn): Take an id rather than a node.
4822         (ps_insn_find_column): Adjust for above field changes.
4823         Use ps_rtl_insn.
4824         (ps_insn_advance_column): Adjust for above field changes.
4825         (add_node_to_ps): Remove node parameter.  Update call to
4826         create_ps_insn.
4827         (ps_has_conflicts): Use ps_rtl_insn.
4828         (ps_add_node_check_conflicts): Replace node parameter than an id.
4829
4830 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
4831
4832         * modulo-sched.c (undo_replace_buff_elem): Delete.
4833         (generate_reg_moves): Don't build and return an undo list.
4834         (free_undo_replace_buff): Delete.
4835         (sms_schedule): Adjust call to generate_reg_moves.
4836         Don't call free_undo_replace_buff.
4837
4838 2011-10-10  Matthias Klose <doko@ubuntu.com>
4839
4840         * common/config/m32c: Remove empty directory.
4841
4842 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
4843
4844         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
4845
4846 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
4847
4848         PR target/50652
4849         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
4850         atmega164a to 0x100.
4851
4852 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
4853
4854         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
4855         the replacement if the conversion to the LHS type is not useless.
4856
4857 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
4858
4859         PR tree-optimization/50635
4860         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
4861         DEF_STMT to the list of statements to be replaced by the
4862         pattern statements.
4863         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
4864
4865 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
4866
4867         * system.h: Commit forgotten hunk in previous patch.
4868         (OUTPUT_ADDR_CONST_EXTRA): Poison.
4869
4870 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
4871
4872         PR libobjc/50428
4873         * doc/objc.texi (Garbage Collection): Updated example to protect
4874         +initialize against execution in subclasses.
4875
4876 2011-10-07  Richard Henderson  <rth@redhat.com>
4877
4878         * doc/extend.texi (__builtin_shuffle): Improve the description to
4879         include the modulus of the selector.  Mention OpenCL.
4880         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
4881
4882         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
4883         * genopinit.c (optabs): Rename vshuffle to vec_perm.
4884         * c-typeck.c (c_build_vec_perm_expr): Rename from
4885         c_build_vec_shuffle_expr.  Update for name changes.
4886         * optabs.c (expand_vec_perm_expr_p): Rename from
4887         expand_vec_shuffle_expr_p.
4888         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
4889         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
4890         (vec_perm_optab): Rename from vshuffle_optab.
4891         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
4892         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
4893         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
4894
4895         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
4896         ix86_expand_vshuffle.
4897         * config/i386/i386-protos.h: Update.
4898         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
4899         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
4900
4901 2011-10-07  Richard Henderson  <rth@redhat.com>
4902
4903         * config/i386/predicates.md (avx2_pblendw_operand): New.
4904         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
4905         (avx2_pblendw, *avx2_pblendw): New expander and insn.
4906
4907 2011-10-07  Richard Henderson  <rth@redhat.com>
4908
4909         * config/i386/i386.c (bdesc_args): Update code for
4910         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
4911         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
4912         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
4913         * config/i386/sse.md (mode iterator V16): Add V2TI.
4914         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
4915         (mode attr ssse3_avx2): Add V2TI.
4916         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
4917
4918 2011-10-07  David S. Miller  <davem@davemloft.net>
4919
4920         PR 50655
4921         * configure.ac: Add .register directives to VIS3 test.
4922         * configure: Regenerate.
4923
4924 2011-10-07  Richard Henderson  <rth@redhat.com>
4925
4926         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
4927
4928 2011-10-07  Richard Henderson  <rth@redhat.com>
4929
4930         PR 49752
4931         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
4932
4933 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
4934
4935         * config/arm/predicates.md (shift_amount_operand): Remove constant
4936         range check.
4937         (shift_operator): Check range of constants for all shift operators.
4938
4939 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4940
4941         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
4942         Load GOT pointer for non-pic builds.
4943         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
4944         (s390_emit_call): Likewise.
4945
4946 2011-10-07  Tom de Vries  <tom@codesourcery.com>
4947
4948         PR middle-end/50527
4949         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
4950         BUILT_IN_ALLOCA_WITH_ALIGN.  Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
4951         throw.
4952         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
4953         arglist.  Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
4954         (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4955         (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4956         * tree-ssa-ccp.c (evaluate_stmt): Set align for
4957         BUILT_IN_ALLOCA_WITH_ALIGN.
4958         (fold_builtin_alloca_for_var): Rename to ...
4959         (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
4960         BUILT_IN_ALLOCA_WITH_ALIGN argument.
4961         (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
4962         fold_builtin_alloca_with_align.
4963         (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4964         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
4965         DEF_BUILTIN_STUB.
4966         * ipa-pure-const.c (special_builtin_state): Handle
4967         BUILT_IN_ALLOCA_WITH_ALIGN.
4968         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
4969         (call_may_clobber_ref_p_1): Same.
4970         * function.c (gimplify_parameters): Lower vla to
4971         BUILT_IN_ALLOCA_WITH_ALIGN.
4972         * gimplify.c (gimplify_vla_decl): Same.
4973         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4974         * tree-mudflap.c (mf_xform_statements): Same.
4975         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
4976         (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
4977         * varasm.c (incorporeal_function_p): Same.
4978         * tree-object-size.c (alloc_object_size): Same.
4979         * gimple.c (gimple_build_call_from_tree): Same.
4980
4981 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
4982
4983         * function.c (frame_required_for_rtx): Remove function.
4984         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
4985         changed.  Compute a set of mentioned registers and compare against
4986         the new arg rather than calling frame_required_for_rtx.
4987         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
4988         reg set.  Convert the unconverted_simple_returns mechanism to store
4989         jump insns rather than their basic blocks.  Also check the
4990         orig_entry_edge destination for new blocks.
4991
4992 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
4993
4994         PR tree-optimization/50650
4995         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
4996         call vect_is_simple_cond here, instead fail if cond_expr isn't
4997         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
4998         for cond_expr's first operand.
4999         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
5000         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
5001
5002 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5003
5004         * config/s390/s390.md (DWH, dwh): New mode macros.
5005         ("umulsidi3"): Extend to support "umulditi3" as well.
5006
5007 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
5008             H.J. Lu  <hongjiu.lu@intel.com>
5009
5010         PR target/50603
5011         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
5012         integer PLUS RTX to a register to improve address combine.
5013
5014 2011-10-06  Richard Henderson  <rth@redhat.com>
5015
5016         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
5017         parameter; use it to decide whether to merge two notes.
5018         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
5019         for the deallocation case as well.
5020
5021 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
5022
5023         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
5024         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
5025         * doc/tm.texi: Regenerate.
5026         * target.def (output_addr_const_extra): Use
5027         hook_bool_FILEptr_rtx_false.
5028         * targhooks.c (default_asm_output_addr_const_extra): Remove.
5029         * targhooks.h (default_asm_output_addr_const_extra): Remove.
5030         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
5031         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
5032
5033 2011-10-06  David S. Miller  <davem@davemloft.net>
5034
5035         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
5036         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
5037         SI mode 64-bit code gen case explicitly zero-extend and truncate.
5038         (*popcount<mode>_sp64): Split up into...
5039         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
5040         SImode case use truncate.
5041         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
5042         subtract so the compiler can optimize it.
5043         (SIDI): Remove unused mode iterator.
5044
5045 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
5046
5047         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
5048         on the orig_entry_edge. Don't account for it in prologue_clobbered.
5049
5050 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
5051
5052         PR tree-optimization/50596
5053         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
5054         (NUM_PATTERNS): Change to 6.
5055         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
5056         function.
5057         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
5058         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
5059         if it already has one, and don't set STMT_VINFO_VECTYPE in it
5060         if it is already set.
5061         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
5062         COND_EXPR in pattern stmts.
5063         (vect_is_simple_cond): No longer static.
5064
5065 2001-10-06  Richard Henderson  <rth@redhat.com>
5066
5067         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
5068         * config/i386/sse.md (sseshuffint): Remove.
5069         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
5070         (VSHUFFLE_AVX2): New mode iterator.
5071         (vshuffle<mode>): Use it.
5072         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
5073
5074         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
5075         for vector_all_ones_operand.
5076         (ix86_expand_int_vcond): Distinguish between comparison mode
5077         and data mode.  Allow them to differ.
5078         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
5079
5080 2001-10-06  Richard Henderson  <rth@redhat.com>
5081
5082         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
5083         mask operand.  Tidy the code.
5084
5085 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
5086
5087         * tree-vect-patterns.c (vect_pattern_recog_1): Use
5088         vect_recog_func_ptr typedef for the first argument.
5089         (vect_pattern_recog): Rename vect_recog_func_ptr variable
5090         to vect_recog_func, use vect_recog_func_ptr typedef for it.
5091
5092         PR tree-optimization/49279
5093         * tree-ssa-structalias.c (find_func_aliases): Don't handle
5094         CAST_RESTRICT.
5095         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
5096         restrict propagation.
5097         * tree-ssa.c (useless_type_conversion_p): Don't return false
5098         if TYPE_RESTRICT differs.
5099
5100 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
5101
5102         * function.c (thread_prologue_and_epilogue_insns): Build a vector
5103         of unconverted simple return blocks rather than trying to
5104         recompute them later based on bb_flags bitmap tests.
5105
5106 2011-10-06  Michael Matz  <matz@suse.de>
5107
5108         * tree-flow.h (get_var_ann): Don't declare.
5109         * tree-flow-inline.h (get_var_ann): Remove.
5110         (set_is_used): Use var_ann, not get_var_ann.
5111         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
5112         * tree-profile.c (gimple_gen_edge_profiler): Call
5113         find_referenced_var_in.
5114         (gimple_gen_interval_profiler): Ditto.
5115         (gimple_gen_pow2_profiler): Ditto.
5116         (gimple_gen_one_value_profiler): Ditto.
5117         (gimple_gen_average_profiler): Ditto.
5118         (gimple_gen_ior_profiler): Ditto.
5119         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
5120         (gimple_gen_ic_func_profiler): Call add_referenced_var.
5121         * tree-mudflap.c (execute_mudflap_function_ops): Call
5122         add_referenced_var.
5123
5124 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
5125
5126         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
5127         don't set SSA_NAME_DEF_STMT that has been already set by
5128         gimple_build_assign_with_ops.
5129         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
5130         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
5131         Likewise.
5132
5133         * tree.h (avoid_folding_inline_builtin): New prototype.
5134         * builtins.c (avoid_folding_inline_builtin): No longer static.
5135         * gimple-fold.c (gimple_fold_builtin): Give up if
5136         avoid_folding_inline_builtin returns true.
5137
5138 2011-10-06  Richard Guenther  <rguenther@suse.de>
5139
5140         * tree-vect-generic.c (vector_element): Look at previous
5141         generated results.
5142
5143 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
5144
5145         PR target/39950
5146         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
5147         __powerpc__, __PPC__, __unix__.
5148
5149 2011-10-06  Michael Matz  <matz@suse.de>
5150
5151         * i386/i386.opt (recip_mask, recip_mask_explicit,
5152         x_recip_mask_explicit): New variables and cl_target member.
5153         (mrecip=): New option.
5154         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
5155         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
5156         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
5157         TARGET_RECIP_VEC_SQRT): New tests.
5158         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
5159         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
5160         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
5161         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
5162         * i386/i386.c (ix86_option_override_internal): Set recip_mask
5163         for -mrecip and -mrecip=options.
5164         (ix86_function_specific_save): Save recip_mask_explicit.
5165         (ix86_function_specific_restore): Restore recip_mask_explicit.
5166
5167         * doc/invoke.texi (ix86 Options): Document the new option.
5168
5169 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
5170
5171         PR target/49049
5172         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
5173
5174 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
5175
5176         PR target/50305
5177         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
5178         output of a previous pass through legitimize_reload_address.
5179         Do not attempt to optimize addresses if the base register is
5180         equivalent to a constant.
5181
5182 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5183
5184         * function.c (thread_prologue_and_epilogue_insns): Mark
5185         last_bb_active as possibly unused.  It is unused for targets which
5186         do neither have "return" nor "simple_return" expanders.
5187
5188 2011-10-06  Richard Guenther  <rguenther@suse.de>
5189
5190         * fold-const.c (fold_ternary_loc): Also fold non-constant
5191         vector CONSTRUCTORs.  Make more efficient.
5192         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
5193         (cprop_into_stmt): Don't propagate into virtual operands.
5194         (optimize_stmt): Really dump original statement.
5195
5196 2011-10-06  Nick Clifton  <nickc@redhat.com>
5197
5198         * config/rx/rx.md (smin3): Revert previous delta.
5199
5200 2011-10-06  Richard Guenther  <rguenther@suse.de>
5201
5202         PR tree-optimization/38884
5203         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
5204         reads from aggregate SSA names.
5205
5206 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
5207
5208         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
5209         argument, truncate it at the beginning instead of allocating there
5210         and freeing at the end.
5211         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
5212         pass its address to vect_pattern_recog_1.
5213
5214 2011-10-05  David S. Miller  <davem@davemloft.net>
5215
5216         * config/sparc/sparc.opt (POPC): New option.
5217         * doc/invoke.texi: Document it.
5218         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
5219         default on Niagara-2 and later.
5220         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
5221         * config/sparc/sparc.md (SIDI): New mode iterator.
5222         (ffsdi2): Delete commented out pattern and comments.
5223         (popcount<mode>2, clz<mode>2): New expanders.
5224         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
5225         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
5226
5227 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
5228
5229         PR middle-end/50607
5230         * c-tree.h (c_expr_t): New typedef for struct c_expr.
5231         (C_EXPR_APPEND): New macro.
5232         * c-parser.c (c_parser_get_builtin_args): Preserve
5233         original_tree_code of c_expr structure.
5234         (c_parser_postfix_expression): Adjust to the new function.
5235
5236 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
5237
5238         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
5239         if profiling after the prologue.
5240
5241 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
5242
5243         PR tree-optimization/50613
5244         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
5245         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
5246         and if it is neither that not SSA_NAME, give up.
5247
5248 2011-10-05  Richard Henderson  <rth@redhat.com>
5249
5250         * tree-vect-generic.c (vector_element): Never fail.  Use
5251         build_zero_cst.  Tidy up type references.
5252         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
5253         code duplication.  Do update_stmt here ...
5254         (expand_vector_operations_1): ... not here.
5255
5256         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
5257         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
5258         duplication.  Handle V2DI without SSE4.1.
5259         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
5260         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
5261
5262 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
5263
5264         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
5265         of "found".  Simplify return value calculation.
5266         (distance_agu_use): Ditto.
5267
5268 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
5269
5270         PR bootstrap/50621
5271         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
5272         if the function was not shrink-wrapped.
5273         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
5274         to an insn.
5275         * function.c (thread_prologue_and_epilogue_insns): Make sure the
5276         shrink_wrapped flag is set even if there is no dump file.
5277
5278 2011-10-05  DJ Delorie  <dj@redhat.com>
5279             Nick Clifton  <nickc@redhat.com>
5280
5281         * config/rx/rx.opt (mpid): Define.
5282         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
5283         (MULTILIB_DIRNAMES): Add pid.
5284         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
5285         (rx_num_interrupt_regs): New variable.
5286         (rx_gp_base_regnum): New function.  Returns the number of the
5287         small data area register.
5288         (rx_pid_base_regnum): New function.  Returns the number of the pid
5289         base register.
5290         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
5291         (rx_pid_data_operand): New function.  Returns whether an object is
5292         in the position independent data area.
5293         (rx_legitimize_address): New function.  Puts undecided PID
5294         objects in the PID data area.
5295         (rx_is_legitimate_address): Add support for PID operands.
5296         (rx_print_operand_address): Likewise.
5297         (rx_print_operand): Likewise.
5298         (rx_maybe_pidify_operand): New function.  Determine if an operand
5299         is suitable for PID addressing.
5300         (rx_gen_move_template): Add PID support.
5301         (rx_conditional_register_usage): Likewise.
5302         (rx_option_override): Initialise rx_num_interrupt_regs.
5303         (rx_is_legitimate_constant): Add support for PID constants.
5304         (TARGET_LEGITIMIZE_ADDRESS): Define.
5305         * config/rx/constraints.md (Rpid): Define.
5306         (Rpda): Define.
5307         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
5308         (tablejump): Add PID support.
5309         (mov<>): Likewise.
5310         (mov<>_internal): Likewise.
5311         (addsi3): Convert to an expander.  Add PID support.
5312         (pid_addr): New pattern.
5313         * config/rx/rx.h (CPP_SPEC): Define.
5314         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
5315         (CASE_VECTOR_PC_RELATIVE): Define.
5316         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
5317         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
5318         * doc/invoke.texi (RX Options): Document -mpid command line option.
5319
5320 2011-10-05  Richard Guenther  <rguenther@suse.de>
5321
5322         PR tree-optimization/38885
5323         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
5324         from constants.
5325
5326 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
5327
5328         * doc/invoke.texi (-fshrink-wrap): Document.
5329         * opts.c (default_options_table): Add it.
5330         * common.opt (fshrink-wrap): Add.
5331         * function.c (emit_return_into_block): Remove useless declaration.
5332         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
5333         requires_stack_frame_p, gen_return_pattern): New static functions.
5334         (emit_return_into_block): New arg simple_p.  All callers changed.
5335         Use gen_return_pattern.
5336         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
5337         * config/i386/i386.md (return): Expand into a simple_return.
5338         (simple_return): New expander):
5339         (simple_return_internal, simple_return_internal_long,
5340         simple_return_pop_internal_long, simple_return_indirect_internal):
5341         Renamed from return_internal, return_internal_long,
5342         return_pop_internal_long and return_indirect_internal; changed to use
5343         simple_return.
5344         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
5345         simple returns.
5346         (ix86_pad_returns): Likewise.
5347         * function.h (struct rtl_data): Add member shrink_wrapped.
5348         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
5349         are not jumps or sibcalls can't be compared.
5350
5351 2011-10-05  Richard Guenther  <rguenther@suse.de>
5352
5353         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
5354         vector type.
5355         (simplify_unary_expression): Handle BIT_FIELD_REFs.
5356         (try_to_simplify): Handle BIT_FIELD_REFs.
5357
5358 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
5359
5360         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
5361         * config/avr/avr.c (avr_out_addto_sp): New function.
5362         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
5363         * config/avr/avr.md (adjust_len): Add "addto_sp".
5364         (*movhi_sp): Remove insn.
5365         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
5366
5367 2011-10-05  Richard Guenther  <rguenther@suse.de>
5368
5369         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
5370         with an embedded expression valueize and fold that as well.
5371         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
5372         results from gimple_fold_stmt_to_constant_1.
5373
5374 2011-10-05  Nick Clifton  <nickc@redhat.com>
5375
5376         * config/rx/rx.md (tablejump): Add missing label.
5377         (adddi3_internal): Mark operand 0 as early-clobbered.
5378         (smaxsi3): Revert previous delta.
5379         (adc_internal): Fix whitespace in generated asm.
5380         (adc_flags): Likewise.
5381
5382 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5383
5384         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
5385         with the new widening_optab_handler.
5386
5387 2011-10-05  Richard Guenther  <rguenther@suse.de>
5388
5389         PR tree-optimization/50609
5390         * gimple-fold.c (fold_array_ctor_reference): Also handle
5391         vector typed constructors.
5392         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
5393         for vector typed constructors.
5394
5395 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
5396
5397         * config/i386/i386.c (ix86_emit_binop): New static function.
5398         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
5399         instructions.
5400         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
5401
5402 2011-10-04  David S. Miller  <davem@davemloft.net>
5403
5404         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
5405         UNSPEC_XMUL): New unspecs.
5406         (muldi3_v8plus): Use output_v8plus_mult.
5407         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
5408         New VIS 3.0 combiner patterns.
5409         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
5410         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
5411         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
5412         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
5413         builtins patterns.
5414         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
5415         (output_v8plus_mult): New function.
5416         * config/sparc/sparc-protos.h: Declare it.
5417         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
5418         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
5419         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
5420         * doc/extend.texi: Document new builtins.
5421
5422 2011-10-04  Richard Henderson  <rth@redhat.com>
5423
5424         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
5425         Avoid save_expr unless two_arguments.
5426
5427 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
5428
5429         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
5430         * config/i386/mingw32.h (CPP_SPEC): Likewise.
5431
5432 2011-10-04  David S. Miller  <davem@davemloft.net>
5433
5434         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
5435         under Linux.
5436
5437 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
5438
5439         PR tree-optimization/50604
5440         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
5441         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
5442         last argument to memcpy has size_type_node type instead of ssizetype.
5443         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
5444         instead of TREE_TYPE (len) as type for newlen.
5445
5446         PR tree-optimization/50522
5447         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
5448         TYPE_RESTRICT.
5449         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
5450         unconditionally.
5451
5452         * fold-const.c (fold_unary_loc): Don't optimize
5453         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
5454         casting the inner pointer if it isn't TYPE_RESTRICT.
5455         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
5456         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
5457
5458 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
5459
5460         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
5461
5462 2011-10-04  Jan Hubicka  <jh@suse.cz>
5463
5464         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
5465         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
5466         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
5467         * lto-cgraph.c (order_base): New static var.
5468         (lto_output_node): Stream in order.
5469         (lto_output_varpool_node): Stream out order.
5470         (input_node): Stream in order.
5471         (input_varpool_node): Stream out order.
5472         (input_cgraph_1): Initialize order base; update call of
5473         lto_input_toplevel_asms.
5474
5475 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
5476
5477         PR target/50566
5478         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
5479         prototype.
5480         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
5481         from here...
5482         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
5483         function.  Log if avr_log.legitimize_reload_address.
5484
5485 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
5486
5487         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
5488
5489 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5490
5491         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
5492         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
5493
5494 2011-10-03  David S. Miller  <davem@davemloft.net>
5495
5496         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
5497         GSR_REG an input operand to UNSPEC instead of a parallel USE.
5498         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
5499         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
5500         Reference GSR_REG in DI mode, simplify convoluted expressions by using
5501         zero_extract.
5502         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
5503
5504 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
5505
5506         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
5507
5508 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
5509             Ian Lance Taylor  <iant@google.com>
5510
5511         * godump.c (go_output_typedef): Support printing enum values that
5512         don't fit in a signed HOST_WIDE_INT.
5513
5514 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
5515
5516         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
5517         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5518         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5519         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
5520
5521 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
5522
5523         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
5524         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5525         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5526         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
5527
5528 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
5529
5530         PR target/49967
5531         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
5532         (gcc_cv_ld_static_option): Ditto.
5533         (gcc_cv_ld_dynamic_option): Ditto.
5534         * configure: Regenerate.
5535
5536 2011-10-03  David S. Miller  <davem@davemloft.net>
5537
5538         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
5539         and 'si' patterns which describe the GSR changes explicitly in the
5540         RTL using zero_extract.
5541         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
5542
5543         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
5544         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
5545
5546 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
5547
5548         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
5549         if given expression can be expanded by the target.
5550         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
5551         using target vector instructions.
5552         * optabs.h: New optab vshuffle.
5553         (expand_vec_shuffle_expr_p): New prototype.
5554         (expand_vec_shuffle_expr): New prototype.
5555         (vshuffle_optab): New optab.
5556         * genopinit.c: Adjust to support vecshuffle.
5557         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
5558         * expr.c (expand_expr_real_2): Adjust.
5559         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
5560         recognizing the cases of two and three arguments.
5561         (convert_arguments) (build_binary_op)
5562         (scalar_to_vector) (build_array_ref): Spurious whitespace.
5563         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
5564         * tree.def: New tree code VEC_SHUFFLE_EXPR.
5565         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
5566         * tree-vect-generic.c (vector_element): New function. Returns an
5567         element of the vector at the given position.
5568         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
5569         by the backend or expand an expression piecewise.
5570         (expand_vector_operations_1): Adjusted.
5571         (gate_expand_vector_operations_noop): New gate function.
5572         * Makefile.in (tree-vect-generic.o): New include.
5573         * gimple.c (get_gimple_rhs_num_ops): Adjust.
5574         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
5575         * passes.c: Move veclower down.
5576         * tree-pretty-print.c (dump_generic_node): Recognize
5577         VEC_SHUFFLE_EXPR as valid expression.
5578         * c-parser.c (c_parser_get_builtin_args): Helper function for the
5579         builtins with variable number of arguments.
5580         (c_parser_postfix_expression): Use a new helper function for
5581         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
5582         * tree-ssa-operands: Adjust.
5583         * c-family/c-common.c: New __builtin_shuffle keyword.
5584         * c-family/c-common.h: New __builtin_shuffle keyword.
5585         * gcc/doc/extend.texi: Adjust.
5586
5587         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
5588         between the vector and the type of the mask when shuffling.
5589         (vecshuffle<mode>): New expansion.
5590         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
5591         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
5592         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
5593
5594 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
5595
5596         PR tree-optimization/50587
5597         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
5598         arg0 is not a SSA_NAME.
5599
5600 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
5601
5602         * ipa-inline-analysis.c (MAX_TIME): Update comment.
5603
5604 2011-10-02  Richard Henderson  <rth@redhat.com>
5605             David S. Miller  <davem@davemloft.net>
5606
5607         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
5608         conditional insn type setting, we always emit a shift.
5609         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
5610         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
5611         * config/sparc/predicates.md (const_one_operand): Delete.
5612
5613 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
5614
5615         * invoke.texi (SPARC Options): Refer to GNU/Linux.
5616
5617 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
5618
5619         * config/mips/mips.c (mips_frame_barrier): New function.
5620         (mips_expand_prologue): Call it after allocating stack space.
5621         (mips_deallocate_stack): New function.
5622         (mips_expand_epilogue): Call mips_frame_barrier and
5623         mips_deallocate_stack.
5624
5625 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
5626
5627         PR target/49696
5628         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
5629         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
5630         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
5631
5632 2011-10-02  Jan Hubicka  <jh@suse.cz>
5633
5634         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
5635
5636         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
5637         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
5638         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
5639         functions are reachable when address is taken.
5640         * tree-sra.c (modify_function): Free dominance info.
5641
5642 2011-10-02  Jan Hubicka  <jh@suse.cz>
5643
5644         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
5645
5646         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
5647         (reset_inline_summary): New function.
5648         (compute_inline_parameters, inline_node_removal_hook,
5649         inline_edge_removal_hook): Use it.
5650         (inline_free_summary): Reset holders correctly.
5651         (inline_generate_summary): Free summary before computing it.
5652
5653 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
5654
5655         PR preprocessor/36819
5656         * incpath.c (merge_include_chains): Call free_path on
5657         heads[QUOTE] and tails[QUOTE].
5658
5659 2011-10-02  Jan Hubicka  <jh@suse.cz>
5660
5661         PR lto/47247
5662         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
5663         when resolution is already availbale from plugin.
5664         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
5665         * cgraph.c (ld_plugin_symbol_resolution): Add
5666         prevailing_def_ironly_exp.
5667         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
5668         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
5669         externally visible.
5670         * varasm.c (resolution_to_local_definition_p): Add
5671         LDPR_PREVAILING_DEF_IRONLY_EXP.
5672         (resolution_local_p): Likewise.
5673
5674 2011-10-01  David S. Miller  <davem@davemloft.net>
5675
5676         * config/sparc/sparc.opt (VIS3): New option.
5677         * doc/invoke.texi: Document it.
5678         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
5679         not capable of such instructions.
5680         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
5681         to 0x300 when TARGET_VIS3.
5682         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
5683         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
5684         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
5685         (V64N8, VASS): New mode iterators.
5686         (vis3_shift, vis3_addsub_ss): New code iterators.
5687         (vbits, vconstr): New mode attributes.
5688         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
5689         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
5690         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
5691         fmean16_vis, fpadd64_vis, fpsub64_vis,
5692         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
5693         VIS 3.0 instruction patterns.
5694         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
5695         default when targetting capable cpus.  TARGET_VIS3 implies
5696         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
5697         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
5698         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
5699         is ignored.
5700         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
5701         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
5702         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
5703         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
5704         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
5705         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
5706         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
5707         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
5708         * doc/extend.texi: Document new VIS 3.0 builtins.
5709
5710 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
5711
5712         * ira-color.c (assign_hard_reg): Fix typo.
5713
5714 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
5715
5716         * doc/extend.texi: Add missing ','.
5717
5718 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
5719
5720         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
5721         Enable -fmodulo-sched at -O2 and above.
5722         * config/c6x/c6x.md (doloop_end): New expander.
5723         (mvilc, sploop, spkernel, loop_end): New patterns.
5724         (loop_end with memory destination splitter): New.
5725         * config/c6x/c6x.c: Include "hw-doloop.h".
5726         (enum unitreqs): New.
5727         (unit_req_table): New typedef.
5728         (unit_reqs): New static variable.
5729         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
5730         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
5731         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
5732         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
5733         (struct c6x_sched_context): New member last_scheduled_iter0.
5734         (init_sched_state): Initialize it.
5735         (c6x_variable_issue): Update it.
5736         (sploop_max_uid_iter0): New static variable.
5737         (c6x_sched_reorder_1): Be careful about issuing sploop.
5738         (c6x_reorg): Call c6x_hwlooops before the final schedule.
5739
5740 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
5741
5742         PR target/50566
5743         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
5744         * config/avr/avr.c (avr_address_cost): Use it.
5745         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
5746         (avr_log_vadump): Unknown %-codes finish printing.
5747
5748 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
5749
5750         PR inline-asm/50571
5751         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
5752         input constraints allow mem and not reg, pass true instead of
5753         false as second argument to maybe_fold_reference.
5754
5755         PR tree-optimization/46309
5756         * fold-const.c (make_range, merge_ranges): Remove prototypes.
5757         (make_range_step): New function.
5758         (make_range): Use it.
5759         * tree.h (make_range_step): New prototypes.
5760         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
5761         * tree-ssa-reassoc.c: Include diagnostic-core.h.
5762         (struct range_entry): New type.
5763         (init_range_entry, range_entry_cmp, update_range_test,
5764         optimize_range_tests): New functions.
5765         (reassociate_bb): Call optimize_range_tests.
5766
5767 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
5768             Richard Guenther  <rguenther@suse.de>
5769
5770         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
5771         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
5772         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
5773         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
5774         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
5775         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
5776
5777 2011-09-30  Jan Beulich  <jbeulich@suse.com>
5778
5779         * lto-cgraph.c (output_cgraph): Remove processing of
5780         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
5781         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
5782         lto_input_toplevel_asms() instead.
5783         * lto-section-in.c (lto_section_name): Add "asm" entry.
5784         * lto-streamer-in.c (lto_input_toplevel_asms): New.
5785         * lto-streamer-out.c (lto_output_toplevel_asms): New.
5786         * lto-streamer.h (LTO_minor_version): Bump.
5787         (enum lto_section_type): Add LTO_section_asm.
5788         (struct lto_asm_header): New.
5789         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
5790         * tree-streamer.h (streamer_write_string_cst): Declare.
5791         * tree-streamer-out.c (write_string_cst): Rename to
5792         streamer_write_string_cst and make global. Handle incoming string
5793         being NULL.
5794         (streamer_write_tree_header): Adjust call to renamed function.
5795
5796 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
5797
5798         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
5799         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
5800         modulo_last_stage): New static variables.
5801         (set_modulo_params, discard_delay_pairs_above): New functions.
5802         (struct delay_pair): New member stages.
5803         (htab_i2_traverse, htab_i1_traverse): New static functions.
5804         (record_delay_slot_pair): New arg stages.  All callers changed.
5805         Record it.
5806         (pair_delay): Take stages into account.
5807         (add_delay_dependencies): Don't do so for stage pairs.
5808         (struct sched_block_state): New member modulo_epilogue.
5809         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
5810         (unschedule_insns_until): Decrease modulo_insns_scheduled.
5811         Set HARD_DEP without using or.
5812         (resolve_dependencies): New static function.
5813         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
5814         If it is true, allow only insns with INSN_EXACT_TICK set.
5815         (schedule_block): Return bool, always true for normal scheduling,
5816         true or false depending on modulo scheduling success otherwise.
5817         Add bookkeeping for modulo scheduling, and call resolve_dependencies
5818         on everything left over after a modulo schedule.
5819         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
5820         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
5821         declarations.
5822         (set_modulo_params, discard_delay_pairs_above): Declare.
5823         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
5824         * doc/invoke.texi (--param): Document it.
5825
5826         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
5827         New arg modulo_scheduling.  All callers changed.  Move note handling
5828         code here from schedule_ebbs.
5829         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
5830         out of schedule_ebbs.
5831         (schedule_ebbs): Call them.  Remove note handling code moved to
5832         schedule_ebb.
5833         * sched-int.h (schedule_ebb, schedule_ebbs_init,
5834         schedule_ebbs_finish): Declare.
5835
5836 2011-09-30  Richard Guenther  <rguenther@suse.de>
5837
5838         PR middle-end/50574
5839         * tree-cfg.c (verify_gimple_comparison): Compare component
5840         mode sizes for vector comparisons.
5841
5842 2011-09-30  Revital Eres  <revital.eres@linaro.org>
5843
5844         * ddg.c (autoinc_var_is_used_p): New function.
5845         (create_ddg_dep_from_intra_loop_link,
5846         add_cross_iteration_register_deps): Call it.
5847         * ddg.h (autoinc_var_is_used_p): Declare.
5848         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
5849         (sms_schedule): Handle instructions with REG_INC.
5850
5851 2011-09-30  Revital Eres  <revital.eres@linaro.org>
5852
5853         * modulo-sched.c (generate_reg_moves): Skip instructions that
5854         do not set a register and verify no regmoves are created for
5855         !single_set instructions.
5856
5857 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
5858
5859         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
5860         insns.
5861
5862 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5863
5864         PR target/50099
5865         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
5866         (qhs_zextenddi_op): New.
5867         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
5868         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
5869         Distinguish between ARM and Thumb2 states.
5870
5871 2011-09-30  David S. Miller  <davem@davemloft.net>
5872
5873         * config/sparc/sparc.opt (VIS2): New option.
5874         * doc/invoke.texi: Document it.
5875         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
5876         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
5877         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
5878         (define_attr type): New insn type 'edgen'.
5879         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
5880         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
5881         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
5882         patterns.
5883         * niagara.md: Handle edgen.
5884         * niagara2.md: Likewise.
5885         * ultra1_2.md: Likewise.
5886         * ultra3.md: Likewise.
5887         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
5888         to 0x200 when TARGET_VIS2.
5889         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
5890         default when targetting capable cpus.  TARGET_VIS2 implies
5891         TARGET_VIS, clear and it when TARGET_FPU is disabled.
5892         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
5893         (sparc_expand_builtin): Fix predicate indexing when builtin returns
5894         void.
5895         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
5896         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
5897         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
5898         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
5899         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
5900         * doc/extend.texi: Document new VIS 2.0 builtins.
5901
5902 2011-09-29  Nick Clifton  <nickc@redhat.com>
5903             Bernd Schmidt  <bernds@codesourcery.com>
5904
5905         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
5906         * config/frv/frvend.c: Likewise.
5907         * config/frv/frv.c (frv_function_prologue): Move misplaced
5908         CALL_ARG_LOCATION notes back to their proper locations.
5909
5910 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
5911
5912         PR target/50566
5913         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
5914         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
5915         from avr_rtx_costs.
5916         (avr_legitimate_address_p): Use avr_edump to print log information
5917         filtered by avr_log.
5918         (extra_constraint_Q): Ditto.
5919         (avr_legitimize_address): Ditto.
5920         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
5921         (final_prescan_insn): Use avr_log.rtx_costs as filter.
5922
5923 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
5924
5925         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
5926         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
5927         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
5928         NEON vector and structure modes to be tied.
5929
5930 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5931
5932         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
5933         forward declaration.
5934         (remove_duplicate_close_phi): Detect and repair creation of
5935         duplicate close-phis for a containing loop.
5936
5937 2011-09-27   Andi Kleen <ak@linux.intel.com>
5938
5939         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
5940         /dev/urandom.  Add getpid call.
5941         (compare_debug_dump_opt_spec_function): Drop getpid call.
5942
5943 2011-09-26   Andi Kleen <ak@linux.intel.com>
5944
5945         * toplev.c (init_local_tick): Try reading random seed
5946         from /dev/urandom.
5947
5948 2011-09-26   Andi Kleen <ak@linux.intel.com>
5949
5950         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
5951         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
5952         Handle numerical random seed.
5953         * lto-streamer.h (lto_file_decl_data): Change id to
5954         unsigned HOST_WIDE_INT.
5955         * toplev.c (random_seed): Add.
5956         (init_random_seed): Change for numerical random seed.
5957         (get_random_seed): Return as HOST_WIDE_INT.
5958         (set_random_seed): Crc32 existing string.
5959         * toplev.h (get_random_seed): Change to numercal return.
5960         * tree.c (get_file_function_name): Remove CRC. Handle
5961         numerical random seed.
5962
5963 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
5964
5965         PR target/50566
5966         * config.gcc (extra_objs): Add avr-log.o for $target in:
5967         avr-*-rtems*, avr-*-*.
5968         * config/avr/t-avr (avr-log.o): New rule to compile...
5969         * config/avr/avr-log.c: ...this new file.
5970         * config/avr/avr.opt (mlog=): New option.
5971         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
5972         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
5973         (avr_log_set_avr_log): New prototype.
5974         (avr_log_t): New typedef.
5975         (avr_log): New declaration.
5976         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
5977
5978 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
5979
5980         * expr.c (do_store_flag): Expand vector comparison by
5981         building an appropriate VEC_COND_EXPR.
5982         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
5983         (c_objc_common_truthvalue_conversion): Adjust.
5984         * tree-vect-generic.c (do_compare): Helper function.
5985         (expand_vector_comparison): Check if hardware supports
5986         vector comparison of the given type or expand vector piecewise.
5987         (expand_vector_operation): Treat comparison as binary
5988         operation of vector type.
5989         (expand_vector_operations_1): Adjust.
5990
5991 2011-09-29  Richard Guenther  <rguenther@suse.de>
5992
5993         * tree.c (build_opaque_vector_type): Make opaque vectors
5994         variant types of the corresponding non-opaque type.  Make
5995         sure to share opaque vector types properly.
5996
5997 2011-09-29  David S. Miller  <davem@davemloft.net>
5998
5999         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
6000         UNSPEC_ARRAY32): New unspec.
6001         (define_attr type): New type 'array'.
6002         (array{8,16,32}<P:mode>_vis): New patterns.
6003         * config/sparc/ultra1_2.md: Add reservations for 'array'.
6004         * config/sparc/ultra3.md: Likewise.
6005         * config/sparc/niagara.md: Likewise.
6006         * config/sparc/niagara2.md: Likewise.
6007         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
6008         array builtins.
6009         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
6010         __vis_array32): New.
6011         * doc/extend.texi: Document new VIS builtins.
6012
6013         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
6014         (VIS pixel-compare insn): Just use <gcond:name>.
6015
6016         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
6017         code iterator used, so just use <code>.  There are two mode iterators
6018         so explicitly use <GCM:gcm_name>.
6019
6020 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
6021
6022         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
6023         Darwin >= 9.
6024
6025 2011-09-28  David S. Miller  <davem@davemloft.net>
6026
6027         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
6028         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
6029         (UNSPEC_FCMP): New unspec.
6030         (gcond): New code iterator.
6031         (gcond_name): New code attr.
6032         (GCM): New mode iterator.
6033         (gcm_name): New mode attr.
6034         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
6035
6036 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
6037
6038         PR target/49486
6039         * config/sh/sh.md (negdi2): Move expansion into split to
6040         allow more combination options.  Add T_REG clobber.
6041         (abssi2): New expander.
6042         (*negdi2, *abssi2, *negabssi2): New insns.
6043         (cneg): Change from insn to insn_and_split.  Rename to
6044         negsi_cond.  Add alternative for non-SH4.
6045
6046 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
6047
6048         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
6049         (neon_move_hi_quad_<mode>): Likewise.
6050         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
6051
6052 2011-09-28  Nick Clifton  <nickc@redhat.com>
6053
6054         * config/rx/predicates.md (rx_minmax_operand): New predicate.
6055         Accepts immediates and a restricted subset of MEMs.
6056         * config/rx/rx.md (int_modes): New iterator.
6057         (smaxsi3, sminsi3): Delete and replace with...
6058         (smax<int_mode>3, smin<int_mode>3): New patterns.
6059         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
6060
6061 2011-09-28  Richard Guenther  <rguenther@suse.de>
6062
6063         PR middle-end/50460
6064         * fold-const.c (try_move_mult_to_index): Handle &a.array the
6065         same as &a.array[0].
6066
6067 2011-09-28  Kai Tietz  <ktietz@redhat.com>
6068
6069         * configure.ac: Add test for new section attribute
6070         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
6071         * config.in: Regenerated.
6072         * configure: Regenerated.
6073         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
6074         new section flag "e" for excluded sections, if supported.
6075         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
6076
6077 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
6078
6079         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
6080         throughout file.
6081
6082 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
6083
6084         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
6085         throughout file.
6086
6087 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
6088
6089         * output.h (SECTION_EXCLUDE): New macro.
6090         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
6091
6092 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
6093
6094         * fwprop.c (forward_propagate_and_simplify): After checking
6095         reg/subreg combinations, check whether the modes are the same.
6096
6097 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
6098             Richard Sandiford  <rdsandiford@googlemail.com>
6099
6100         * config/mips/mips.c (mips_add_cfa_restore): New function.
6101         (mips16e_save_restore_reg): Use it.
6102         (mips_restore_reg): Likewise.  Split double FPRs for
6103         REG_CFA_RESTORE notes.
6104
6105 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
6106
6107         PR middle-end/50386
6108         PR middle-end/50326
6109         * tree-sra.c (build_ref_for_model): Use the type of the field as
6110         the type of the COMPONENT_REF.
6111
6112 2011-09-27  Jeff Law  <law@redhat.com>
6113
6114         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
6115         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
6116         (find_if_case_1): Use the probability of the THEN clause when
6117         determining if speculation is profitable.
6118         (find_if_case_2): Similarly for the ELSE clause.
6119
6120 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
6121
6122         * common.opt: Add -foptimize-strlen option.
6123         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
6124         (tree-sssa-strlen.o): Add dependencies.
6125         * opts.c (default_options_table): Enable -foptimize-strlen
6126         by default at -O2 if not -Os.
6127         * passes.c (init_optimization_passes): Add pass_strlen
6128         after pass_object_sizes.
6129         * timevar.def (TV_TREE_STRLEN): New timevar.
6130         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
6131         * tree-pass.h (pass_strlen): Declare.
6132         * tree-ssa-strlen.c: New file.
6133         * c-decl.c (merge_decls): If compatible stpcpy prototype
6134         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
6135
6136 2011-09-27  Tom de Vries  <tom@codesourcery.com>
6137
6138         PR middle-end/43864
6139         * tree-ssa-tail-merge.c: New file.
6140         (struct same_succ_def): Define.
6141         (same_succ, const_same_succ): New typedef.
6142         (struct bb_cluster_def): Define.
6143         (bb_cluster, const_bb_cluster): New typedef.
6144         (struct aux_bb_info): Define.
6145         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
6146         (gvn_uses_equal): New function.
6147         (same_succ_print, same_succ_print_traverse, update_dep_bb)
6148         (stmt_update_dep_bb, local_def, same_succ_hash)
6149         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
6150         (same_succ_reset): New function.
6151         (same_succ_htab, same_succ_edge_flags)
6152         (deleted_bbs, deleted_bb_preds): New var.
6153         (debug_same_succ): New function.
6154         (worklist): New var.
6155         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
6156         (init_worklist, delete_worklist, delete_basic_block_same_succ)
6157         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
6158         (print_cluster, debug_cluster, update_rep_bb)
6159         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
6160         (all_clusters): New var.
6161         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
6162         (merge_clusters, set_cluster): New function.
6163         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
6164         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
6165         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
6166         (find_clusters_1, find_clusters): New function.
6167         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
6168         (update_bbs): New var.
6169         (apply_clusters): New function.
6170         (update_debug_stmt, update_debug_stmts): New function.
6171         (tail_merge_optimize): New function.
6172         tree-pass.h (tail_merge_optimize): Declare.
6173         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
6174         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
6175         (tree-ssa-tail-merge.o): New rule.
6176         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
6177         default at OPT_LEVELS_2_PLUS.
6178         * tree-ssa-sccvn.c (vn_valueize): Move to ...
6179         * tree-ssa-sccvn.h (vn_valueize): Here.
6180         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
6181         * common.opt (ftree-tail-merge): New switch.
6182         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
6183         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
6184         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
6185         (-ftree-tail-merge, max-tail-merge-comparisons)
6186         (max-tail-merge-iterations): New item.
6187
6188 2011-09-27  Jan Hubicka  <jh@suse.cz>
6189
6190         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
6191
6192 2011-09-27  Jan Hubicka  <jh@suse.cz>
6193
6194         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
6195         parameters passed by reference; handle loads from non-SSA scalars
6196         and update comments.
6197
6198 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
6199
6200         PR rtl-optimization/50249
6201         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
6202         instead of opnum and type.  All callers changed.  Remove useless
6203         declaration.
6204         Search forward for other reloads of the same type for the same operand
6205         using the same register; if any are found, return false.
6206         (reload_regs_reach_end_p): Same argument changes; all callers changed.
6207
6208 2011-09-27  Andi Kleen  <ak@linux.intel.com>
6209             Jan Hubicka  <jh@suse.cz>
6210
6211         * doc/invoke.texi (ffat-lto-objects): Document.
6212         * toplev.c (compile_file): Do not output assembly when doing slim lto;
6213         Output __gnu_slim_lto when doing slim lto.
6214         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
6215         (cgraph_optimize): Return early when doing slim lto.
6216         * opts.c (finish_options): Complain about lack of linker plugin
6217         when doing slim lto.
6218         * common.opt (ffat-lto-objects): New.
6219
6220 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
6221
6222         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
6223         between signed and unsigned.
6224
6225 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
6226
6227         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
6228         vectorization.
6229         (vectorizable_type_promotion): Likewise.
6230         (vect_analyze_stmt): Call vectorizable_type_demotion and
6231         vectorizable_type_promotion for basic blocks.
6232         (supportable_widening_operation): Don't assume loop vectorization.
6233         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
6234         basic blocks.  Update vectorization factor for basic block
6235         vectorization.
6236         (vect_analyze_slp_instance): Allow multiple types for basic block
6237         vectorization.  Recheck unrolling factor after construction of SLP
6238         instance.
6239
6240 2011-09-27  Richard Guenther  <rguenther@suse.de>
6241
6242         * tree-object-size.c (compute_object_sizes): Fix dumping of
6243         folded statement.
6244
6245 2011-09-27  Richard Guenther  <rguenther@suse.de>
6246
6247         PR tree-optimization/50363
6248         * tree-ssa-pre.c (create_expression_by_pieces): Handle
6249         pointer conversions in POINTER_PLUS_EXPRs properly.
6250
6251 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
6252
6253         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
6254         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
6255         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
6256         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
6257         that produce subreg moves.  Define using VQX iterators.
6258
6259 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
6260
6261         * config/avr/avr.md (ashrqi3): Split alternative "n"
6262         into its remaining parts C03, C04, C05, C06, C07 and describe
6263         impact in CC by attribute "cc" appropriately.
6264         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
6265         by digging RTX.
6266
6267 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
6268
6269         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
6270         from 3 x MAX_MACHINE_MODE.
6271         (CONSTM1_RTX): Define.
6272         * emit-rtl.c (const_tiny_rtx): Change into array of
6273         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
6274         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
6275         CONSTM1_RTX.
6276         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
6277         MODE_VECTOR_INT modes.
6278         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
6279         Optimize if one operand is CONSTM1_RTX.
6280         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
6281         into mask | x.
6282
6283 2011-09-26  David S. Miller  <davem@davemloft.net>
6284
6285         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
6286         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
6287         * config/sparc/visintrin.h: Update edge and pixel-compare
6288         intrinsics to return 'long' instead of 'int'.
6289         * doc/extend.texi: Update documentation to match.
6290         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
6291         flat, allow any instruction.  Otherwise, when V9 allow parallels
6292         which consist only of sets to registers outside of %o0 to %o5.
6293         (sparc_vis_init_builtins): Update VIS builtin types for edge
6294         and pixel-compare.
6295
6296         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
6297         is enabled, mark %gsr as global.
6298         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
6299         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
6300
6301         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
6302         which will now define __VIS and __VIS__ when -mvis is enabled.
6303         * config/sparc/t-sparc: Likewise.
6304         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
6305         and add t-sparc to tmake_file for all sparc targets.
6306         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
6307         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
6308
6309         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
6310         builtins for VIS vector addition and subtraction.
6311         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
6312         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
6313         __vis_fpsub32, __vis_fpsub32s): New.
6314         * doc/extend.texi: Document new VIS intrinsics.
6315
6316 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
6317
6318         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
6319         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
6320         EQ/NE comparisons against +/-1 in the case of unused-after,
6321         non-ld-regs target.
6322
6323 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
6324
6325         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
6326         gctx.into_ssa after push_gimplify_context.
6327
6328         * gimple.c (gimple_build_call_valist): New function.
6329         * gimple.h (gimple_build_call_valist): New prototype.
6330         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
6331         (update_gimple_call): Likewise.
6332         (update_call_from_tree): Use finish_update_gimple_call.
6333         * tree-ssa-propagate.h (update_gimple_call): New prototype.
6334
6335 2011-09-26  Richard Guenther  <rguenther@suse.de>
6336
6337         PR tree-optimization/50472
6338         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
6339         volatile references.
6340
6341 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
6342
6343         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
6344         * target.def: (addr_space_subset_p): Likewise.
6345
6346 2011-09-26  Tom de Vries  <tom@codesourcery.com>
6347
6348         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
6349         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
6350         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
6351         of new var.
6352
6353 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
6354
6355         PR target/50465
6356         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
6357         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
6358         output_reload_insisf.
6359         (adjust_len): Set default to "no".
6360         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
6361         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
6362         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
6363         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
6364         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
6365         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
6366         *lshrsi3_const): Set attribute "adjust_len".
6367         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
6368         (output_movsisf): Don't pass insn to output_reload_insisf.
6369         (adjust_insn_length): Handle new alternatives to adjust_len.
6370         Remove handling of ADJUST_LEN_YES.  Clean-up code.
6371
6372 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
6373
6374         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
6375         may_trap_p to detect loads that may trap of fault.
6376
6377 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
6378
6379         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
6380         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
6381         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
6382         prototype.
6383         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
6384         * config/avr/avr.c: Rename output_reload_insisf_1 to
6385         output_reload_in_const.
6386         (avr_popcount_each_byte): Handle SFmode, too.
6387         (output_reload_in_const): Change so it can handle HI loads, too.
6388         Use avr_popcount_each_byte to work out if scratch register must be
6389         created on the fly.
6390         (output_reload_inhi): Rewrite using output_reload_in_const and...
6391         (output_movhi): ...use it to print constants' loads.
6392         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
6393
6394 2011-09-25  David S. Miller  <davem@davemloft.net>
6395
6396         * config/sparc/constraints.md (C, P, Z): New constraints for
6397         const_doube, const_int, and const_vector "all ones" values.
6398         Make unused constraint letters comment match reality.
6399         * config/sparc/predicates.md (const_all_ones_operand,
6400         register_or_zero_or_all_ones_operand): New predicates.
6401         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
6402         as well as zero constants when VIS.
6403         (sparc_legitimate_constant_p): Likewise.
6404         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
6405         (movsf_insn): Likewise
6406         (movdi_insn_sp64): Add fone alternative.
6407         (movdf_insn_sp32_v9): Likewise.
6408         (movdf_insn_sp64): Likewise.
6409
6410         * configure.ac: Add feature check to make sure the assembler
6411         supports the FMAF, HPC, and VIS 3.0 instructions found on
6412         Niagara-3 and later cpus.
6413         * configure: Rebuild.
6414         * config.in: Likewise.
6415         * config/sparc/sparc.opt: New option '-mfmaf'.
6416         * config/sparc/sparc.md: Add float fused multiply-add patterns.
6417         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
6418         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
6419         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
6420         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
6421         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
6422         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
6423         disabled.
6424         (sparc_rtx_costs): Handle 'FMA'.
6425         * doc/invoke.texi: Document -mfmaf.
6426
6427 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
6428
6429         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
6430         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
6431         DECL_BY_REFERENCE parameters.
6432
6433 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
6434
6435         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
6436         if there is no outgoing edge.
6437
6438         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
6439         integral types.
6440
6441 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
6442
6443         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
6444         of vect_analyze_bb here.
6445         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
6446
6447 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
6448
6449         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
6450         Allow not simple iv if analyzing basic block.
6451         (create_data_ref): Update call to dr_analyze_innermost.
6452         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
6453         * tree-loop-distribution.c (generate_memset_zero): Likewise.
6454         * tree-predcom.c (find_looparound_phi): Likewise.
6455         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
6456
6457 2011-09-24  David S. Miller  <davem@davemloft.net>
6458
6459         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
6460         (SPARC_GSR_REG): Define.
6461         (FIXED_REGISTERS): Mark GSR as fixed.
6462         (CALL_USED_REGISTERS): Mark GSR as call used.
6463         (HARD_REGNO_NREGS): GSR is always 1 register.
6464         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
6465         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
6466         (REGISTER_NAMES): Add "%gsr".
6467         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
6468         (UNSPEC_WRGSR): New unspec.
6469         (GSR_REG): New constant.
6470         (type): Add new insn type 'gsr'.
6471         (fpack16_vis, fpackfix_vis, fpack32_vis,
6472         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
6473         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
6474         rdgsr_v8plus): New expanders and insns.
6475         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
6476         using patterns which show that this is a plus in addition to a
6477         modification of GSR_REG, instead of an unspec.
6478         * config/sparc/ultra1_2.md: Handle 'gsr'.
6479         * config/sparc/ultra3.md: Likewise.
6480         * config/sparc/niagara.md: Likewise.
6481         * config/sparc/niagara2.md: Likewise.
6482         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
6483         end of table.
6484         (sparc_option_override): Make -mvis imply -mv8plus.
6485         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
6486         for %gsr.
6487         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
6488         __builtin_vis_read_gsr.
6489         (sparc_expand_buildin): Handle builtins that take one argument and
6490         return void.
6491         (sparc_fold_builtin): Never fold writes to %gsr.
6492         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
6493         * doc/extend.texi: Document new VIS intrinsics.
6494
6495 2011-09-23  Jan Hubicka  <jh@suse.cz>
6496
6497         * ipa-inline-transform.c (inline_call): Add comment.
6498         * ipa-inline.h (inline_param_summary): New structure and vector.
6499         (struct inline_edge_summary): Add param field.
6500         * ipa-inline-analysis.c (CHANGED): New constant.
6501         (add_clause): Handle CHANGED and NOT_CONSTANT.
6502         (predicate_probability): New function.
6503         (dump_condition): Dump CHANGED predicate.
6504         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
6505         of unknown function wide invariant.
6506         (evaluate_conditions_for_edge): Handle change probabilities.
6507         (inline_edge_duplication_hook): Copy param summaries.
6508         (inline_edge_removal_hook): Free param summaries.
6509         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
6510         sizes; dump param summaries.
6511         (will_be_nonconstant_predicate): Use CHANGED predicate.
6512         (record_modified_bb_info): New structure.
6513         (record_modified): New function.
6514         (param_change_prob): New function.
6515         (estimate_function_body_sizes): Compute param summaries.
6516         (estimate_edge_size_and_time): Add probability argument.
6517         (estimate_node_size_and_time): Add inline_param_summary argument;
6518         handle predicate probabilities.
6519         (remap_predicate): Fix formating.
6520         (remap_edge_change_prob): New function.
6521         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
6522         (remap_edge_predicates): ... this one.
6523         (inline_merge_summary): Remap edge summaries; handle predicate
6524         probabilities; remove param summaries after we are done.
6525         (do_estimate_edge_time): Update.
6526         (do_estimate_edge_growth): Update.
6527         (read_inline_edge_summary): Read param info.
6528         (inline_read_summary): Fix formating.
6529         (write_inline_edge_summary): Write param summaries.
6530
6531 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
6532
6533         * config/i386/i386.c (ix86_print_operand): Handle %~.
6534         (ix86_print_operand_punct_valid_p): Return true also for '~'.
6535         * config/i386/sse.md (i128): New mode_attr.
6536         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
6537         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
6538         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
6539         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
6540         patterns, use "<sseinsnmode>" for "mode" attribute.
6541         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
6542         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
6543         %~128 in the patterns, use "OI" for "mode" attribute.
6544
6545 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
6546
6547         PR target/50447
6548         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
6549         "tstsi", "compare".
6550         (*cmpqi_sign_extend): Use s8_operand.
6551         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
6552         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
6553         prototypes.
6554         (out_tsthi, out_tstsi): Remove prototypes.
6555         (avr_out_tsthi, avr_out_tstsi): New prototypes.
6556         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
6557         (avr_asm_len): Negative length now sets *plen to -length.
6558         (compare_sign_p): Return bool instead of int.
6559         (compare_diff_p, compare_eq_p): Ditto and make static.
6560         (avr_out_tsthi): New function.
6561         (avr_out_tstsi): New function.
6562         (avr_out_compare): New function.
6563         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
6564         ADJUST_LEN_COMPARE.
6565
6566 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
6567
6568         PR target/50447
6569         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
6570         (addsi3): Rewrite using QI scratch register.  Adjust text
6571         peepholes using plus:SI.
6572         (*addsi3_zero_extend.hi): New insn.
6573         (*subsi3_zero_extend.hi): New insn.
6574         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
6575         (*subsi3_zero_extend): Ditto.
6576         (subsi3): Change predicate #2 to register_operand.
6577         * config/avr/avr-protos.h (avr_out_plus): New prototype.
6578         (avr_out_plus_1): New static function.
6579         (avr_out_plus): New function.
6580         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
6581
6582 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
6583
6584         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
6585         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
6586
6587 2011-09-23  Ian Lance Taylor  <iant@google.com>
6588
6589         * godump.c (go_define): Treat a single character in single quotes,
6590         or a string, as an operand.
6591
6592 2011-09-23  Martin Jambor  <mjambor@suse.cz>
6593
6594         * ipa-prop.h (jump_func_type): Updated comments.
6595         (ipa_known_type_data): New type.
6596         (ipa_jump_func): Use it to describe known type jump functions.
6597         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
6598         reflect the new known type jump function contents.
6599         (compute_known_type_jump_func): Likewise.
6600         (combine_known_type_and_ancestor_jfs): Likewise.
6601         (try_make_edge_direct_virtual_call): Likewise.
6602         (ipa_write_jump_function): Likewise.
6603         (ipa_read_jump_function): Likewise.
6604         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
6605         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
6606         (propagate_accross_jump_function): Likewise.
6607
6608 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
6609
6610         PR target/50446
6611         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
6612         (rotlqi3_4): Turn insn into expander.
6613         (*rotlqi3): New insn.
6614         (rotlhi3, rotlsi3): Support rotate left/right by 1.
6615         (*rotlhi2.1, *rotlhi2.15): New insns.
6616         (*rotlsi2.1, *rotlsi2.31): New insns.
6617         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
6618
6619 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
6620
6621         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
6622
6623 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
6624
6625         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
6626
6627 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6628
6629         * reload.c (find_reloads): Set operand_mode to Pmode for address
6630         operands consisting of just a CONST_INT.
6631
6632 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
6633
6634         PR target/50482
6635         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
6636         blendv, force op_true to register if it doesn't satisfy
6637         nonimmediate_operand predicate.
6638
6639 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
6640
6641         PR middle-end/50113
6642         PR middle-end/50061
6643         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
6644         get the locate.where_pad value for register-only arguments.
6645         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
6646         (arm_pad_reg_upward): Handle null types.
6647
6648 2011-09-22  Jan Hubicka  <jh@suse.cz>
6649
6650         * ipa-inline-analysis.c: Fix overly long lines.
6651
6652 2011-09-22  Jan Hubicka  <jh@suse.cz>
6653
6654         * ipa-inline-transform.c (inline_call): Always update jump functions
6655         after inlining.
6656         * ipa-inline.c (ipa_inline): Likewise; do not call
6657         ipa_create_all_structures_for_iinln.
6658         (ipa_inline): Always free jump functions.
6659         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
6660         (remap_edge_predicates): Fix pasto.
6661         (inline_merge_summary): Remove nlined edge predicate; remove hack.
6662         (inline_analyze_function): Always initialize jump functions.
6663         (inline_generate_summary): Likewise.
6664         (inline_write_summary): Always write jump functions when ipa-cp
6665         is not doing that.
6666         (inline_read_summary): Always read jump functions when ipa-cp
6667         is not doing that.
6668         * ipa-prop.c (iinlining_processed_edges): Remove.
6669         (update_indirect_edges_after_inlining): Do not use
6670         iinlining_processed_edges; instead set param_index to -1.
6671         (propagate_info_to_inlined_callees): Only try to indirect inlining
6672         when asked to do so; update jump functions of indirect calls, too;
6673         remove jump functions of the inlined edge.
6674         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
6675         (ipa_create_all_structures_for_iinln): Remove.
6676         (ipa_free_all_structures_after_iinln): Do not free
6677         iinlining_processed_edges.
6678         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
6679
6680 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
6681
6682         * config/arm/predicates.md (expandable_comparison_operator): New
6683         predicate, extracted from...
6684         (arm_comparison_operator): ...here.
6685         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
6686         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
6687         (movdfcc): Use expandable_comparison_operator.
6688
6689 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
6690
6691         PR target/50447
6692         PR target/50465
6693         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
6694         (avr_popcount_each_byte): New prototype.
6695         * config/avr/avr.c (avr_popcount): New static function.
6696         (avr_popcount_each_byte): New function.
6697         (avr_out_bitop): New function.
6698         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
6699         avr_out_bitop.  Cleanup code.
6700         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
6701         (Ca4, Co4, Cx4): New constraints.
6702         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
6703         alternative.
6704         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
6705         (andsi3, iorsi3, xorsi3): Ditto.
6706         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
6707
6708 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
6709
6710         PR tree-optimization/50451
6711         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
6712         constant operands in reduction.
6713         (vect_get_slp_defs): Don't create vector operand for NULL scalar
6714         operand.
6715
6716 2011-09-22  David S. Miller  <davem@davemloft.net>
6717
6718         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
6719         fpack16, fpack32, fpackfix as const.
6720
6721         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
6722         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
6723         constants.  Use them everywhere.
6724
6725 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
6726
6727         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
6728         Added AND special case.  Adapted comments.
6729         (sh_rtx_costs): Added XOR and IOR case.
6730
6731 2011-09-21  Jan Hubicka  <jh@suse.cz>
6732
6733         * ipa-inline-analsis.c (compute_inline_parameters): Set
6734         cfun and current_function_decl.
6735
6736 2011-09-21  Jan Hubicka  <jh@suse.cz>
6737
6738         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
6739         handled components in parameter of builtin_constant_p.
6740         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
6741
6742 2011-09-21  Jan Hubicka  <jh@suse.cz>
6743
6744         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
6745         * ipa-inline.h (estimate_edge_time): Fix pasto.
6746         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
6747
6748 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
6749
6750         * config/i386/i386.c (ix86_expand_sse_movcc): Use
6751         blendvps, blendvpd and pblendvb if possible.
6752
6753 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
6754
6755         PR target/50464
6756         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
6757         operand 1 predicate to register_operand and operand 2 predicate
6758         to nonimmediate_operand.
6759         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
6760         xop_pcmov, force op_true to register.  Also, force op_false to
6761         register if it doesn't satisfy nonimmediate_operand predicate.
6762
6763 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
6764
6765         * config/i386/bmi2intrin.h (_mulx_u64): New.
6766         (_mulx_u32): Ditto.
6767
6768 2011-09-21  Jan Hubicka  <jh@suse.cz>
6769
6770         PR tree-optimization/50433
6771         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
6772         Use get_base_address.
6773
6774 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
6775
6776         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
6777         nonimmediate_operand instead of register_operand predicate for operands
6778         1 and 2, force them into registers if expanding them as comparison.
6779         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
6780         V8HImode force into register just operand 1.
6781
6782 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
6783
6784         PR target/45099
6785         * config/avr/avr.c (avr_function_arg_advance): Change error to
6786         warning if a fixed register is needed as function argument.
6787
6788 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
6789
6790         PR target/50449
6791         PR target/50465
6792         * config/avr/avr.md (adjust_len): New insn attribute.
6793         (*reload_insi, *reload_insf): Use it.
6794         (*movsi, *movsf): Use new interface of output_movsisf.
6795         * config/avr/avr-protos.h (output_movsisf): Change prototype.
6796         * config/avr/avr.c (output_movsisf): Ditto.
6797         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
6798         lengths of insns *reload_insi, *reload_insf.
6799         (output_reload_insisf_1): New static function.
6800         (output_reload_insisf): Use it.
6801
6802 2011-09-21  David S. Miller  <davem@davemloft.net>
6803
6804         * config/sparc/sparc.c (def_builtin): Change from macro into function.
6805         (def_builtin_const): New.
6806         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
6807         other than alignaddr and falignaddr.
6808
6809         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
6810         UNSPEC_FCMPEQ): New unspec codes.
6811         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
6812         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
6813         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
6814         new pixel compare VIS patterns.
6815         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
6816         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
6817         __vis_fcmpeq16, __vis_fcmpeq32): New.
6818         * doc/extend.texi: Document new pixel compare VIS intrinsics.
6819
6820 2011-09-21  Tom de Vries  <tom@codesourcery.com>
6821
6822         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
6823
6824 2011-09-20  David S. Miller  <davem@davemloft.net>
6825
6826         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
6827         (aligneddrl<P:mode>_vis): New pattern.
6828         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
6829         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
6830         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
6831         alignaddrl insn, and adjust edge operations for updated types.
6832         * config/sparc/visintrin.h: Likewise.
6833         * doc/extend.texi: Make typing in VIS documentation match reality.
6834
6835 2011-09-20  Terry Guo  <terry.guo@arm.com>
6836
6837         * config/arm/arm-arches.def: Add armv6s-m.
6838         * config/arm/arm-tables.opt: Regenerate.
6839
6840 2011-09-20  Wei Guozhi  <carrot@google.com>
6841
6842         PR rtl-optimization/49452
6843         * postreload.c (reload_combine): Invalidate use information when across
6844         volatile insn.
6845
6846 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
6847
6848         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
6849         Remove maintenance overhead.
6850         (haifa_sched_init, sched_finish): Update.
6851
6852 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
6853
6854         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
6855         to calculate unit, prefix_rep and prefix_data16 attributes.
6856         (*mov<mode>_internal): Ditto for unit attribute.
6857         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
6858         (*movv2sf_internal): Ditto.
6859         * config/i386/sse.md (VI1248_256): Remove mode iterator.
6860         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
6861         (*avx2_eq<mode>3): Ditto.
6862         (avx2_gt<mode>3): Ditto.
6863
6864 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
6865
6866         * config/i386/i386.md (maxmin): New code iterator.
6867         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
6868         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
6869         code iterator.
6870         (*avx2_<maxmin:code><mode>3): Macroize isn from
6871         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
6872         maxmin code iterator.
6873         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
6874         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
6875         <umaxmin:code>v16qi3.
6876
6877 2011-09-19  Alan Modra  <amodra@gmail.com>
6878             Michael Meissner  <meissner@linux.vnet.ibm.com>
6879
6880         PR target/50341
6881         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
6882         split the load of the indirect function's TOC from the call to
6883         prevent the compiler from moving the load of the new TOC above
6884         code that references the current function's TOC.
6885         (call_indirect_aix<ptrsize>_internal): Ditto.
6886         (call_indirect_aix<ptrsize>_nor11): Ditto.
6887         (call_indirect_aix<ptrsize>_internal2): Ditto.
6888         (call_value_indirect_aix<ptrsize>): Ditto.
6889         (call_value_indirect_aix<ptrsize>_internal): Ditto.
6890         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6891         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6892
6893 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
6894
6895         * config/i386/sse.md (*sse4_1_extractps): Change into
6896         define_insn_and_split, add =x 0 n and =x x n alternatives
6897         and split them after reload.
6898
6899 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
6900
6901         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
6902
6903 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
6904
6905         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
6906
6907 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
6908
6909         PR tree-optimization/50413
6910         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
6911         a basic block if one of its data-refs can't be analyzed.
6912
6913 2011-09-19  Paul Brook  <paul@codesourcery.com>
6914
6915         * config/arm/predicates.md (shift_amount_operand): Check constant
6916         shift count is in range.
6917         (const_shift_operand): Remove.
6918
6919 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
6920             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
6921
6922         PR target/50091
6923         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
6924         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
6925
6926 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
6927
6928         * config/i386/bmiintrin.h: Remove tmp.
6929         * config/i386/tbmintrin.h: Likewise.
6930
6931 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
6932
6933         PR tree-optimization/50414
6934         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
6935         MIN_EXPR.
6936
6937 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
6938
6939         PR tree-optimization/50412
6940         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
6941         acceses that require epilogue loop if vectorizing outer loop.
6942
6943 2011-09-17  David S. Miller  <davem@davemloft.net>
6944
6945         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
6946         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
6947         New unspecs.
6948         (define_attr type): New type 'edge'.
6949         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
6950         edge32l_vis): New patterns.
6951         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
6952         * config/sparc/ultra3.md: Likewise.
6953         * config/sparc/niagara.md: Likewise.
6954         * config/sparc/niagara2.md: Likewise.
6955         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
6956         builtins for VIS edge instructions.
6957         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
6958         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
6959         intrinsics.
6960         (__v8qi, __v4qi): Make unsigned.
6961         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
6962         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
6963         __vis_fpack32): Fix types.
6964         * doc/extend.texi: Document new 'edge' VIS intrinsics.
6965
6966         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
6967         divide costs.
6968         (niagara3_costs): New.
6969         (sparc_option_override): Use it.
6970         * gcc/config/sparc/niagara2.md: Adjust with more accurate
6971         Niagara-3 reservations.
6972
6973 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
6974
6975         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
6976         (sse2_avx, sseinsnmode): Add V2TI.
6977         (REDUC_SMINMAX_MODE): New mode iterator.
6978         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
6979         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
6980         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
6981         (sse2_lshrv1ti3): Rename to...
6982         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
6983         iterator.  Move before umaxmin expanders.
6984         * config/i386/i386.h (VALID_AVX256_REG_MODE,
6985         SSE_REG_MODE_P): Accept V2TImode.
6986         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
6987         V16HImode, V8SImode and V4DImode.
6988
6989         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
6990         and V4DImode.
6991         (ix86_build_signbit_mask): Likewise.
6992         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
6993         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
6994         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
6995         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
6996         (<code><mode>3) ... this.
6997         (avx2_<code><mode>3 smaxmin expand): Rename to...
6998         (<code><mode>3) ... this.
6999         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
7000         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
7001         VI8_AVX2 mode iterator.
7002         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
7003         VI8_AVX2 mode iterator.
7004         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
7005         New expanders.
7006
7007 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
7008
7009         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
7010         throughout file.
7011
7012 2011-09-16  David S. Miller  <davem@davemloft.net>
7013
7014         * config/sparc/visintrin.h: New file.
7015         * config.gcc: Add it to extra_headers on sparc.
7016
7017 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
7018
7019         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
7020         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
7021         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
7022         reduc_smin_v4sf): Adjust callers.
7023         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
7024         New expanders.
7025
7026         * config/i386/sse.md (vec_extract_hi_<mode>,
7027         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
7028         vextracti128 instead of vextractf128 for -mavx2 and
7029         integer vectors.  For V4DFmode fix up mode attribute.
7030         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
7031         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
7032         instead of V8SF mode attribute.
7033         (avx2_extracti128): Change into define_expand.
7034         * config/i386/i386.c (ix86_expand_vector_extract): Handle
7035         32-byte vector modes if TARGET_AVX.
7036
7037 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
7038
7039         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
7040         (umulqi3_highpart, smulqi3_highpart): Ditto.
7041         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
7042         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
7043         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
7044
7045 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
7046
7047         PR target/50358
7048         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
7049         (*maddqi4, *maddqi4.const): New insns.
7050         (*msubqi4, *msubqi4.const): New insns.
7051         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
7052         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
7053         HImode by 1 in the case of multiplying with a CONST_INT.
7054         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
7055
7056 2011-09-15   Jan Hubicka  <jh@suse.cz>
7057
7058         PR lto/50430
7059         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
7060         error_mark_node in the DECL_INITIAL of vtable.
7061
7062 2011-09-15   Diego Novillo  <dnovillo@google.com>
7063
7064         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
7065         @SYSROOT_CFLAGS_FOR_TARGET@.
7066         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
7067         * configure: Regenerate.
7068         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
7069         Remove setting of GCC_UNDER_TEST.
7070
7071 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
7072
7073         * config/i386/i386.c (output_fp_compare): Return %v prefixed
7074         instruction mnemonics for TARGET_AVX.
7075
7076         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
7077         "type" attribute calculation.
7078         (*movdf_internal): Ditto.
7079         (*movsf_internal): Ditto.
7080
7081 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
7082
7083         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
7084
7085 2011-09-15  Jason Merrill  <jason@redhat.com>
7086
7087         PR c++/50361
7088         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
7089
7090 2011-09-15  Jan Hubicka  <jh@suse.cz>
7091
7092         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
7093         simplify obviously true clauses.
7094         (and_predicates, or_predicates): Add conditions parameter.
7095         (inline_duplication_hoook): Update.
7096         (mark_modified): New function.
7097         (unmodified_parm): New function.
7098         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
7099         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
7100         Use unmodified_parm.
7101         (estimate_function_body_sizes): Update.
7102         (remap_predicate): Update.
7103
7104 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
7105
7106         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
7107         read-after-read dependencies in basic block SLP.
7108
7109 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
7110
7111         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
7112         throughout file.
7113
7114 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
7115
7116         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
7117         throughout file.
7118
7119 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
7120
7121         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
7122         throughout file.
7123
7124 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
7125
7126         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
7127         throughout file.
7128         * config/rs6000/constraints.md: Likewise.
7129
7130 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
7131
7132         * config/microblaze/microblaze.md: Use match_test rather than
7133         eq/ne symbol_ref throughout file.
7134
7135 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
7136
7137         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
7138         throughout file.
7139
7140 2011-09-14  Tom de Vries  <tom@codesourcery.com>
7141
7142         PR middle-end/50251
7143         * explow.c (emit_stack_restore): Set crtl->need_drap if
7144         stack_restore is emitted.
7145
7146 2011-09-14  Julian Brown  <julian@codesourcery.com>
7147
7148         * config/arm/arm.c (arm_override_options): Add unaligned_access
7149         support.
7150         (arm_file_start): Emit attribute for unaligned access as appropriate.
7151         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
7152         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
7153         (insv, extzv): Add unaligned-access support.
7154         (extv): Change to expander. Likewise.
7155         (extzv_t1, extv_regsi): Add helpers.
7156         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
7157         (unaligned_storesi, unaligned_storehi): New.
7158         (*extv_reg): New (previous extv implementation).
7159         * config/arm/arm.opt (munaligned_access): Add option.
7160         * config/arm/constraints.md (Uw): New constraint.
7161         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
7162         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
7163         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
7164         volatile accesses when -fstrict-volatile-bitfields is in effect.
7165         (extract_bit_field_1): Likewise.
7166
7167 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
7168
7169         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
7170         a scalar integer before applying integer-only optimisations to
7171         inner arithmetic.
7172
7173 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
7174
7175         * config/mips/mips.c (mips_expand_epilogue): Generate a
7176         simple_return only if the return address is in r31.
7177
7178 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
7179
7180         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
7181         NULL for a jump that is a cc0 insn, pick the previous insn for
7182         move_before.
7183
7184 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
7185
7186         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
7187         throughout file.
7188
7189 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
7190
7191         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
7192         throughout file.
7193
7194 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
7195
7196         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
7197         symbol_ref throughout file.
7198
7199 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
7200
7201         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
7202         throughout file.
7203
7204 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
7205
7206         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
7207         throughout file.
7208
7209 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
7210
7211         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
7212         throughout file.
7213         * config/arm/neon.md: Likewise.
7214         * config/arm/vfp.md: Likewise.
7215         * config/arm/thumb2.md: Likewise.
7216         * config/arm/cortex-m4.md: Likewise.
7217
7218 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
7219
7220         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
7221         define_insn patterns for combine.
7222
7223 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
7224
7225         * reorg.c: Always define make_return_insns.
7226
7227 2011-09-13  Jan Hubicka  <jh@suse.cz>
7228
7229         PR other/49533
7230         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
7231
7232 2011-09-13  Jan Hubicka  <jh@suse.cz>
7233
7234         PR other/49533
7235         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
7236
7237 2011-09-13  Paul Brook  <paul@codesourcery.com>
7238
7239         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7240         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
7241         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
7242         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
7243         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
7244         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
7245         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
7246         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
7247         enabling unwind tables.
7248         (c6x_debug_unwind_info): New function.
7249         (TARGET_ARM_EABI_UNWINDER): Define.
7250         (TARGET_DEBUG_UNWIND_INFO): Define.
7251         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
7252         (TARGET_EXTRA_CFI_SECTION): Remove.
7253         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
7254         * ginclude/unwind-arm-common.h: New file.
7255
7256 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
7257
7258         PR target/50358
7259         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
7260         * config/avr/avr.md: (extend_s): New code attribute.
7261         (mul_r_d): New code attribute.
7262         (*maddqihi4, *umaddqihi4): New insns.
7263         (*msubqihi4, *umsubqihi4): New insns.
7264         (*usmaddqihi4, *sumaddqihi4): New insns.
7265         (*usmsubqihi4, *susubdqihi4): New insns.
7266         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
7267         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
7268         (*umsubqihi4.uconst.ashift): New insn-and-split.
7269         (*msubqihi4.sconst.ashift): New insn-and-split.
7270         (*sumaddqihi4.uconst): New insn-and-split.
7271         (*sumsubqihi4.uconst): New insn-and-split.
7272         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
7273         PLUS:HI and MINUS:HI.
7274
7275 2011-09-13  Revital Eres  <revital.eres@linaro.org>
7276
7277         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
7278         (optimize_sc): Adjust call to remove_node_from_ps.
7279         (sms_schedule): Add print info.
7280
7281 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
7282
7283         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
7284         flags specially.
7285
7286 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
7287
7288         PR bootstrap/50010
7289         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
7290         NOTE_INSN_CFI notes, with the exception of
7291         NOTE_INSN_SWITCH_TEXT_SECTIONS.
7292
7293 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
7294             Richard Sandiford  <rdsandiford@googlemail.com>
7295
7296         * config/mips/mips.c (mips_epilogue): New structure.
7297         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
7298         restoring registers.
7299         (mips_epilogue_emit_cfa_restores): New function.
7300         (mips_epilogue_set_cfa): Likewise.
7301         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
7302         the current CFA register from the stack, redefine the CFA in terms
7303         of the stack pointer.
7304         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
7305         to the epilogue instructions.
7306
7307 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
7308
7309         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
7310         argument.
7311         (mips16e_build_save_restore): Update accordingly.
7312
7313 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
7314
7315         PR rtl-optimization/50212
7316         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
7317         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
7318
7319         PR debug/50299
7320         * calls.c (load_register_parameters): Use use_reg_mode instead
7321         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
7322         entry.
7323         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
7324         for stack CALL_INSN_FUNCTION_USAGE uses.
7325         * expr.h (use_reg_mode): New prototype.
7326         (use_reg): Changed into inline around use_reg_mode.
7327         * expr.c (use_reg): Renamed to...
7328         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
7329         mode to that mode instead of VOIDmode.
7330         * var-tracking.c (prepare_call_arguments): Don't track parameters
7331         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
7332         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
7333         EXPR_LIST mode.
7334
7335 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
7336
7337         PR target/43746
7338         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
7339         (progmem_section): New Variable.
7340         (avr_asm_init_sections): Initialize it.
7341         (TARGET_ASM_SELECT_SECTION): Define to...
7342         (avr_asm_select_section): ... this new Function.
7343         (avr_replace_prefix): New Function.
7344         (avr_asm_function_rodata_section): Use it.
7345         (avr_insert_attributes): Don't add section attribute for PROGMEM.
7346         (avr_section_type_flags): Use avr_progmem_p instead of section
7347         name to detect if object is in PROGMEM.
7348         (avr_asm_named_section): Set section name prefix for objects in
7349         PROGMEM.
7350
7351 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
7352
7353         PR bootstrap/50352
7354         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
7355         sprintf format string.
7356
7357 2011-09-12  Richard Guenther  <rguenther@suse.de>
7358
7359         PR tree-optimization/50343
7360         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
7361         that the reduction is over an SSA name before checking its definition.
7362
7363 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
7364
7365         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
7366         throughout file.
7367
7368 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
7369
7370         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
7371         throughout file.
7372         * config/mips/sb1.md: Likewise.
7373         * config/mips/predicates.md: Replace (match_test "!...")
7374         with (not (match_test "..."))
7375         * config/mips/constraints.md: Likewise.
7376
7377 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
7378
7379         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
7380         * config/arm/arm-tables.opt: Regenerate.
7381         * config/arm/arm-tune.md: Regenerate.
7382         * config/arm/arm.c (arm_file_start): Output .arch directive when
7383         user passes -mcpu=generic-*.
7384         (arm_issue_rate): Add genericv7a support.
7385         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
7386         (ASM_CPU_SPEC): New define.
7387         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
7388         * config/arm/semi.h (ASM_SPEC): Likewise.
7389         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
7390         and -mtune=generic-*.
7391
7392 2011-09-09  Richard Guenther  <rguenther@suse.de>
7393
7394         PR tree-optimization/50328
7395         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
7396         constant or default-def operand.
7397
7398 2011-09-09  Richard Guenther  <rguenther@suse.de>
7399
7400         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
7401         last statement.
7402
7403 2011-09-09  Richard Guenther  <rguenther@suse.de>
7404
7405         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
7406         instead of a statement.
7407         * gimple-fold.c (fold_stmt_inplace): Likewise.
7408         * sese.c (graphite_copy_stmts_from_block): Adjust.
7409         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
7410         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
7411         fold_stmt.
7412         (forward_propagate_addr_into_variable_array_index): Likewise.
7413         (forward_propagate_addr_expr_1): adjust.
7414         (associate_plusminus): Likewise.
7415         (ssa_forward_propagate_and_combine): Likewise.
7416         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
7417         (execute_cse_reciprocals): Likewise.
7418         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
7419
7420 2011-09-09  Nick Clifton  <nickc@redhat.com>
7421
7422         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
7423         Return a positive value to indicate that the bits at the
7424         bottom of the register should be cleared.
7425
7426 2011-09-09  Richard Guenther  <rguenther@suse.de>
7427
7428         * tree-ssa-operands.c (swap_tree_operands): Always adjust
7429         existing operand positions.
7430
7431 2011-09-09  Richard Guenther  <rguenther@suse.de>
7432
7433         PR middle-end/50333
7434         * tree-data-ref.c (split_constant_offset): Do not try to handle
7435         ternary ops.
7436
7437 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
7438
7439         PR tree-optimization/50318
7440         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
7441         typo in use of mult_rhs1 and mult_rhs2.
7442
7443 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
7444
7445         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
7446         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
7447
7448 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
7449
7450         * config/arm/arm.md (push_multi): Emit predicates.
7451         (push_fp_multi): Likewise.
7452         * config/arm/arm.c (vfp_output_fstmd): Likewise.
7453
7454 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
7455
7456         PR c++/33255 - Support -Wunused-local-typedefs warning
7457         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
7458         (pushdecl): Use the new record_locally_defined_typedef.
7459         (store_parm_decls): Allocate cfun->language.
7460         (finish_function): Use the new maybe_warn_unused_local_typedefs,
7461         and free cfun->language.
7462         (c_push_function_context): Allocate cfun->language here only if needed.
7463         (c_pop_function_context): Likewise, mark cfun->language
7464         for collection only when it should be done.
7465         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
7466         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
7467         maybe_record_local_typedef_use.
7468         * doc/invoke.texi: Update documentation for
7469         -Wunused-local-typedefs.
7470
7471 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
7472
7473         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
7474         (ix86_avoid_lea_for_add): Likewise.
7475         (ix86_avoid_lea_for_addr): Likewise.
7476         (ix86_split_lea_for_addr): Likewise.
7477
7478         * config/i386/i386.c (LEA_MAX_STALL): New.
7479         (increase_distance): Likewise.
7480         (insn_defines_reg): Likewise.
7481         (insn_uses_reg_mem): Likewise.
7482         (distance_non_agu_define_in_bb): Likewise.
7483         (distance_agu_use_in_bb): Likewise.
7484         (ix86_lea_outperforms): Likewise.
7485         (ix86_ok_to_clobber_flags): Likewise.
7486         (ix86_avoid_lea_for_add): Likewise.
7487         (ix86_avoid_lea_for_addr): Likewise.
7488         (ix86_split_lea_for_addr): Likewise.
7489         (distance_non_agu_define): Search in pred BBs added.
7490         (distance_agu_use): Search in succ BBs added.
7491         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
7492         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
7493         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
7494
7495         * config/i386/i386.md: Split added to transform non destructive
7496         add into move and add.
7497         (lea_1): transformed into insn_and_split to avoid AGU stalls.
7498         (lea<mode>_2): Likewise.
7499
7500 2011-09-08  Martin Jambor  <mjambor@suse.cz>
7501
7502         PR tree-optimization/50287
7503         * ipa-split.c (split_function): Do not create SSA names for
7504         non-gimple-registers.
7505
7506 2011-09-08  Richard Guenther  <rguenther@suse.de>
7507
7508         PR tree-optimization/19831
7509         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
7510         skip builtins with vdefs that do not really store something.
7511         (propagate_necessity): For calls to free that we can associate
7512         with an allocation function do not mark the freed pointer
7513         definition necessary.
7514         (eliminate_unnecessary_stmts): Remove a call to free if
7515         the associated call to an allocation function is not necessary.
7516
7517 2011-09-08  Richard Guenther  <rguenther@suse.de>
7518
7519         PR tree-optimization/19831
7520         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
7521         allocation functions as necessary.
7522
7523 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
7524
7525         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
7526         cut from ...
7527         (darwin_default_min_version): Amended to provide defaults
7528         for the cross directory case.
7529         (darwin_driver_init): call darwin_default_min_version unconditionally.
7530         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
7531         * config/darwin9.h: Likewise.
7532         * config/darwin10.h: Likewise.
7533         * config/rs6000/darwin7.h: Likewise.
7534
7535 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
7536
7537         PR target/50310
7538         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
7539         code early if TARGET_AVX.
7540         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
7541
7542 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
7543
7544         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
7545         duplicates.
7546
7547         PR target/50310
7548         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
7549         "mode" attribute computation.
7550
7551 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
7552
7553         * regrename.c (struct du_head): Make nregs signed.
7554         (closed_chains): Remove.
7555         (create_new_chain): Return the new chain.
7556         (chain_from_id): New static function.
7557         (dump_def_use_chain): Change argument to be an int, indicating
7558         the first ID to print.  All callers changed.
7559         (merge_overlapping_regs): Use chain_from_id.  Assert that
7560         chains don't conflict with themselves.
7561         (rename_chains): Take no argument.  Iterate over id_to_chain
7562         rather to find chains to rename.  Clear tick before the main loop.
7563         (struct incoming_reg_info): New struct.
7564         (struct bb_rename_info): New struct.
7565         (init_rename_info, set_incoming_from_chain, merge_chains): New
7566         static functions.
7567         (regrename_analyze): New static function, broken out of
7568         regrename_optimize.  Record and make use of open chain information
7569         at basic block boundaries, and merge chains where possible.
7570         (scan_rtx_reg): Make this_nregs signed.  Don't update
7571         closed_chains.
7572         (build_def_use): Return a bool to indicate success.  All callers
7573         changed.  Don't initialize global data here.
7574         (regrename_optimize): Move most code out of here into
7575         regrename_analyze.
7576         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
7577         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
7578         static inline functions.
7579         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
7580
7581         * bb-reorder.c (insert_section_boundary_note): Don't check
7582         optimize_function_for_speed_p.
7583         (gate_handle_partition_blocks): Do it here instead.
7584         (gate_handle_reorder_blocks): Move preliminary checks here ...
7585         (rest_of_handle_reorder_blocks): ... from here.
7586
7587 2011-09-07  Martin Jambor  <mjambor@suse.cz>
7588
7589         PR middle-end/50301
7590         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
7591         function index bounds.
7592         (perhaps_add_new_callers): Likewise.
7593
7594 2011-09-07  Martin Jambor  <mjambor@suse.cz>
7595
7596         PR tree-optimization/49911
7597         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
7598         enumerations to the corresponding plain integer type.
7599
7600 2011-09-07  Richard Guenther  <rguenther@suse.de>
7601
7602         PR tree-optimization/50319
7603         * tree-if-conv.c (set_bb_predicate): Assert we only set
7604         canonical predicates.
7605         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
7606         around canonical predicates.
7607         (predicate_bbs): Do not re-gimplify already canonical
7608         predicates.  Properly unshare them though.
7609         (find_phi_replacement_condition): Simplify.
7610
7611 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
7612
7613         PR target/49030
7614         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
7615         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
7616         reusing the old code from get_arm_condition_code.  Return ARM_NV
7617         for invalid comparison codes.
7618         (get_arm_condition_code): Redefine in terms of
7619         maybe_get_arm_condition_code.
7620         * config/arm/predicates.md (arm_comparison_operator): Use
7621         maybe_get_arm_condition_code.
7622
7623 2011-09-07  Richard Guenther  <rguenther@suse.de>
7624
7625         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
7626         Canonicalize negated predicates by swapping edges.
7627         (forward_propagate_into_cond): Likewise.
7628
7629 2011-09-07  Richard Guenther  <rguenther@suse.de>
7630
7631         PR tree-optimization/50213
7632         * tree-flow.h (simple_iv_increment_p): Declare.
7633         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
7634         POINTER_PLUS_EXPR.
7635         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
7636         not propagate simple IV counter increments.
7637
7638 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
7639             Iain Sandoe  <iains@gcc.gnu.org>
7640
7641         * config/rs6000/rs6000.c (compute_save_world_info): Test
7642         cfun->has_nonlocal_label to determine if the out-of-line save
7643         world call may be used.
7644
7645 2011-09-07  Nick Clifton  <nickc@redhat.com>
7646
7647         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
7648         label on the parallel part of the insn.
7649
7650 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
7651
7652         PR debug/50191
7653         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
7654         avoid_constant_pool_reference first instead of last.
7655
7656 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
7657
7658         * doc/configfiles.texi (Configuration Files): Update documentation
7659         about tm_p.h and remove FIXME comment.
7660
7661 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
7662
7663         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
7664         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
7665
7666 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
7667
7668         * config/darwin10.h Remove duplicate LIB_SPEC.
7669
7670 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
7671
7672         PR middle-end/44382
7673         * target.def (reassociation_width): New hook.
7674
7675         * doc/tm.texi.in (reassociation_width): Likewise.
7676
7677         * doc/tm.texi (reassociation_width): Likewise.
7678
7679         * doc/invoke.texi (tree-reassoc-width): New param documented.
7680
7681         * hooks.h (hook_int_uint_mode_1): New default hook.
7682
7683         * hooks.c (hook_int_uint_mode_1): Likewise.
7684
7685         * config/i386/i386.h (ix86_tune_indices): Add
7686         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
7687
7688         (TARGET_REASSOC_INT_TO_PARALLEL): New.
7689         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
7690
7691         * config/i386/i386.c (initial_ix86_tune_features): Add
7692         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
7693
7694         (ix86_reassociation_width): New function.
7695
7696         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
7697
7698         * tree-ssa-reassoc.c (get_required_cycles): New function.
7699         (get_reassociation_width): Likewise.
7700         (swap_ops_for_binary_stmt): Likewise.
7701         (rewrite_expr_tree_parallel): Likewise.
7702
7703         (rewrite_expr_tree): Refactored.  Part of code moved into
7704         swap_ops_for_binary_stmt.
7705
7706         (reassociate_bb): Now checks reassociation width to be used and
7707         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
7708
7709 2011-09-06  Richard Guenther  <rguenther@suse.de>
7710
7711         PR tree-optimization/47025
7712         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
7713         uses nothing.
7714         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
7715         BUILT_IN_FREE.
7716         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
7717         definitely points to.
7718         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7719         BUILT_IN_VA_START doesn't let its va_list argument escape.
7720         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
7721         not make any previous stores necessary.
7722
7723 2011-09-06  Martin Jambor  <mjambor@suse.cz>
7724
7725         * ipa-inline.h (struct inline_summary): Move versionable flag...
7726         * cgraph.h (struct cgraph_local_info): ...here
7727         * ipa-cp.c (determine_versionability): Use the new versionable flag.
7728         (determine_versionability): Likewise.
7729         (ipcp_versionable_function_p): Likewise.
7730         (ipcp_generate_summary): Likewise.
7731         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
7732         versionable flag.
7733         (compute_inline_parameters): Do not clear the versionable flag.
7734         (inline_read_section): Do not stream the versionable flag.
7735         (inline_write_summary): Likewise.
7736         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
7737         (input_overwrite_node): Likewise.
7738
7739 2011-09-06  Richard Guenther  <rguenther@suse.de>
7740
7741         PR tree-optimization/48149
7742         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
7743         (vn_valueize): Move earlier.
7744         (valueize_expr): Use vn_valueize.
7745         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
7746         operands.
7747         (simplify_unary_expression): Simplify.
7748
7749 2011-09-06  Richard Guenther  <rguenther@suse.de>
7750
7751         PR tree-optimization/48317
7752         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
7753         trailing array.
7754         (sizeof_vn_nary_op): New inline function.
7755         (vn_nary_op_lookup_pieces): Adjust.
7756         (vn_nary_op_insert_pieces): Likewise.
7757         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
7758         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
7759         any number of operands.
7760         (vn_nary_length_from_stmt): New function.
7761         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
7762         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
7763         sized temporary.
7764         (vn_nary_op_lookup): Likewise.
7765         (vn_nary_op_lookup_stmt): Likewise.
7766         (vn_nary_op_insert_into): Likewise.
7767         (vn_nary_op_insert_stmt): Likewise.
7768         (visit_use): Handle CONSTRUCTOR as nary.
7769         * tree-ssa-pre.c (phi_translate_1): Adjust.
7770         (create_expression_by_pieces): Likewise.
7771         (compute_avail): Likewise.
7772
7773 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
7774
7775          * config/arm/arm.c (arm_preferred_simd_mode): Check
7776         TARGET_NEON_VECTORIZE_DOUBLE instead of
7777         TARGET_NEON_VECTORIZE_QUAD.
7778         (arm_autovectorize_vector_sizes): Likewise.
7779         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
7780         mask of mvectorize-with-neon-double.  Add RejectNegative.
7781         (mvectorize-with-neon-double): New.
7782
7783 2011-09-06  Richard Guenther  <rguenther@suse.de>
7784
7785         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
7786
7787 2011-09-06  Tom de Vries  <tom@codesourcery.com>
7788
7789         * recog.c (asm_labels_ok): New function.
7790         (check_asm_operands): Use asm_labels_ok.
7791
7792 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
7793
7794         PR target/49606
7795         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
7796         (PMODE_INSN): New macro.
7797         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
7798         (mips_got_load, mips_expand_synci_loop): Likewise.
7799         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
7800         cprestore patterns.
7801         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
7802         copygp_mips16 patterns.
7803         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
7804         and use_cprestore patterns.
7805         (mips_override_options): Check for incompatible -mabi and -mlong
7806         combinations.
7807         * config/mips/mips.md (unspec_got<mode>): Rename to...
7808         (unspec_got_<mode>): ...this.
7809         (copygp_mips16): Use the Pmode iterator.
7810         (potential_cprestore, cprestore, use_cprestore): Likewise.
7811         (clear_cache, indirect_jump): Use PMODE_INSN.
7812         (indirect_jump<mode>): Rename to...
7813         (indirect_jump_<mode>): ...this.
7814         (tablejump): Use PMODE_INSN.
7815         (tablejump<mode>): Rename to...
7816         (tablejump_<mode>): ...this.
7817         (exception_receiver): Handle restore_gp_si and restore_gp_di.
7818         (restore_gp): Use the Pmode iterator.
7819         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
7820         PMODE_INSN.
7821
7822 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
7823
7824         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
7825         Fix the type of the BIT_AND_EXPR.
7826
7827 2011-09-05  David S. Miller  <davem@davemloft.net>
7828
7829         * config.host: Add driver-sparc.o and sparc/x-sparc on
7830         native sparc*-*-linux* builds.
7831         * config/sparc/driver-sparc.c: Correct Linux strings.
7832         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
7833         * config/sparc/linux64.h: Likewise.
7834         * doc/invoke.texi: Document that Linux also supports
7835         -mcpu=native and -mtune=native on sparc.
7836
7837         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
7838         PROCESSOR_NIAGARA4): New.
7839         * config/sparc/sparc.opt: Handle new processor types.
7840         * config/sparc/sparc.md: Add to "cpu" attribute.
7841         * config/sparc/sparc.h (TARGET_CPU_niagara3,
7842         TARGET_CPU_niagara4): New, treat as niagara2.
7843         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
7844         * config/sparc/sol2.h: Likewise.
7845         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
7846         * config/sparc/sparc.c (sparc_option_override): Add
7847         niagara3 and niagara4 handling.
7848         (sparc32_initialize_trampoline): Likewise.
7849         (sparc64_initialize_trampoline): Likewise.
7850         (sparc_use_sched_lookahead): Likewise.
7851         (sparc_issue_rate): Likewise.
7852         (sparc_register_move_cost): Likewise.
7853         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
7854         and niagara4 as appropriate.
7855         * doc/invoke.texi: Document new processor types.
7856         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
7857         and --with-tune options.
7858
7859         * config/sparc/sol2-64.h: Move ...
7860         * config/sparc/default-64.h: ... to here.  Update comment.
7861         * config.gcc: Update Solaris sparc to use default-64.h, also
7862         prefix this header into the list on sparc64-*-linux.
7863         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
7864         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
7865         to MASK_HARD_QUAD.
7866
7867 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
7868
7869         PR target/50289
7870         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
7871         that contain global register variable.
7872
7873 2011-09-05  Richard Guenther  <rguenther@suse.de>
7874
7875         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
7876
7877 2011-09-05  Richard Guenther  <rguenther@suse.de>
7878
7879         * stor-layout.c (layout_type): Use size_binop for array size
7880         calculations.
7881
7882 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
7883
7884         * config/avr/avr.h (progmem_section): Remove Declaration.
7885         * config/avr/avr.c (progmem_section): Make static and rename to
7886         progmem_swtable_section.
7887         (avr_output_addr_vec_elt): No need to switch sections.
7888         (avr_asm_init_sections): Use output_section_asm_op as section
7889         callback for progmem_swtable_section.
7890         (avr_output_progmem_section_asm_op): Remove Function.
7891         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
7892         (avr_asm_function_rodata_section): New static Function.
7893         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
7894         alignment 2**1 for jump tables.
7895
7896 2011-09-04  Jan Hubicka  <jh@suse.cz>
7897
7898         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
7899         parameter is SSA name.
7900
7901 2011-09-04  Richard Guenther  <rguenther@suse.de>
7902
7903         Revert
7904         2011-08-31  Richard Guenther  <rguenther@suse.de>
7905
7906         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
7907         special-casing.
7908
7909 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
7910
7911         PR debug/49901
7912         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
7913
7914 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
7915             Ira Rosen  <ira.rosen@linaro.org>
7916
7917         PR tree-optimization/50208
7918         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
7919         argument.  Check that def_stmt is inside the loop.
7920         (vect_recog_widen_mult_pattern): Update calls to
7921         vect_handle_widen_mult_by_cons.
7922         (vect_operation_fits_smaller_type): Check that def_stmt is
7923         inside the loop.
7924
7925 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
7926
7927         * tree-vectorizer.c (vect_print_dump_info): Print line
7928         number when dumping to a file.
7929         (vectorize_loops): Add new messages to dump file.
7930
7931 2011-09-03  Martin Jambor  <mjambor@suse.cz>
7932
7933         * ipa-prop.h (ipa_jump_func_t): New typedef.
7934         (struct ipa_edge_args): Removed field argument_count, field
7935         jump_functions turned into a vector.
7936         (ipa_set_cs_argument_count): Removed.
7937         (ipa_get_cs_argument_count): Updated to work on vectors.
7938         (ipa_get_ith_jump_func): Likewise.
7939         * ipa-prop.c (ipa_count_arguments): Removed.
7940         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
7941         jump functions.  Update caller.
7942         (compute_pass_through_member_ptrs): Likewise.
7943         (compute_cst_member_ptr_arguments): Likewise.
7944         (ipa_compute_jump_functions_for_edge): Get number of arguments from
7945         the statement, allocate vector.
7946         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
7947         (duplicate_ipa_jump_func_array): Removed.
7948         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
7949         (ipa_read_node_info): Allocate vector.
7950
7951 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7952
7953         PR middle-end/50232
7954         * config/pa/pa.md (return): Define "return" insn pattern.
7955         (epilogue): Use it when no epilogue is needed.
7956         * config/pa/pa.c (pa_can_use_return_insn): New function.
7957         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
7958
7959 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
7960
7961         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
7962         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
7963         Force at least BITS_PER_UNIT alignment on the new variable.
7964
7965 2011-09-02  Gary Funck <gary@intrepid.com>
7966
7967         * opts.c (print_specific_help): Fix off-by-one compare in
7968         assertion check.
7969         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7970         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
7971         Increase by +5 to allow for more languages.
7972         * optc-gen.awk: Generate #if that ensures that the number of
7973         languages is within the implementation-defined limit.
7974
7975 2011-09-02  Michael Matz  <matz@suse.de>
7976
7977         PR middle-end/50260
7978         * ipa-split.c (split_function): Call add_referenced_var.
7979
7980         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
7981         (cond_if_else_store_replacement_1): Ditto.
7982         * tree-ssa-pre.c (get_representative_for): Ditto.
7983         (create_expression_by_pieces): Ditto.
7984         (insert_into_preds_of_block): Ditto.
7985         * tree-sra.c (create_access_replacement): Ditto.
7986         (get_replaced_param_substitute): Ditto.
7987
7988 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
7989
7990         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
7991         automata_options.
7992         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
7993         (l1w, s1w, l2w, s2w): Define in the main automaton.
7994         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
7995         units.
7996         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
7997         (c6x_unit_names): Add the new units.
7998         (c6x_unit_codes): New static array.
7999         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
8000         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
8001         UNIT_QID_SIDE_OFFSET): New macros.
8002         (RESERVATION_S2): Adjust value.
8003         (c6x_option_override): Compute c6x_unit_codes.
8004         (assign_reservations): Take the unit_mask of the last instruction
8005         into account.  Detect floating point reservations by looking for
8006         the new units.  Don't assign reservations if the field is already
8007         nonzero.
8008         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
8009         (init_sched_state): Initialize it.
8010         (c6x_clear_sched_context): Free it.
8011         (insn_set_clock): Clear reservation.
8012         (prev_cycle_state): New static variable.
8013         (c6x_init_sched_context): Save it.
8014         (c6x_sched_init): Allocate space for it and clear it.
8015         (c6x_sched_dfa_pre_cycle_insn): New static function.
8016         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
8017         (c6x_variable_issue): Only record units in the unit_mask that
8018         were not set at the start of the cycle.
8019         (c6x_variable_issue): Compute and store the unit_mask from the
8020         current state.
8021         (reorg_split_calls): Ensure the new information remains correct.
8022         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
8023         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
8024         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
8025         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
8026         Add special reservations.
8027         * config/c6x/c6x-sched.md: Regenerate.
8028
8029 2011-09-02  Martin Jambor  <mjambor@suse.cz>
8030
8031         * ipa-prop.h (ipa_node_params): Removed fields
8032         called_with_var_arguments and node_versionable.
8033         (ipa_set_called_with_variable_arg): Removed.
8034         (ipa_is_called_with_var_arguments): Likewise.
8035         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
8036         (determine_versionability): Do not check for type attributes and va
8037         builtins.  Record versionability into inline summary.
8038         (initialize_node_lattices): Do not check
8039         ipa_is_called_with_var_arguments.
8040         (propagate_constants_accross_call): Likewise, ignore arguments we do
8041         not have PARM_DECLs for, set variable flag for parameters that were
8042         not passed a value.
8043         (create_specialized_node): Dump info that we cannot change signature.
8044         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
8045         number of arguments.
8046         (ipa_make_edge_direct_to_target): Likewise.
8047         (ipa_update_after_lto_read): Likewise.
8048         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
8049         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
8050         they were remapped.
8051
8052 2011-09-02  Richard Guenther  <rguenther@suse.de>
8053
8054         PR tree-optimization/27460
8055         PR middle-end/29269
8056         * doc/md.texi (vcond): Document.
8057         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
8058         optab with two modes.
8059         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
8060         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
8061         (vcond_optab): Adjust.
8062         (vcondu_optab): Likewise.
8063         (expand_vec_cond_expr_p): Adjust prototype.
8064         * optabs.c (get_vcond_icode): Adjust.
8065         (expand_vec_cond_expr_p): Likewise.
8066         (expand_vec_cond_expr): Likewise.
8067         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
8068         vector type.
8069         (vectorizable_condition): Allow differing types for comparison
8070         and result.
8071         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
8072         for the comparison.
8073         * config/i386/sse.md (vcond<mode>): Split to
8074         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
8075         vcond<V_128:mode><VI124_128:mode> and
8076         vcondu<V_128:mode><VI124_128:mode>.
8077         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
8078         (vconduv2di): Likewise.
8079         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
8080         (vcondu<mode>): Likewise.
8081         * config/ia64/vect.md (vcond<mode>): Likewise.
8082         (vcondu<mode>): Likewise.
8083         (vcondv2sf): Likewise.
8084         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
8085         * config/rs6000/paired.md (vcondv2sf): Likewise.
8086         * config/rs6000/vector.md (vcond<mode>): Likewise.
8087         (vcondu<mode>): Likewise.
8088         * config/spu/spu.md (vcond<mode>): Likewise.
8089         (vcondu<mode>): Likewise.
8090
8091 2011-09-02  Richard Guenther  <rguenther@suse.de>
8092
8093         * pretty-print.h (pp_unsigned_wide_integer): New.
8094         * tree-pretty-print.c (dump_generic_node): Print unsigned
8095         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
8096
8097 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
8098
8099         PR target/49987
8100         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
8101         valid CONST_VECTOR operands.
8102         (rs6000_expand_vector_init): Likewise.
8103
8104 2011-09-02  Martin Jambor  <mjambor@suse.cz>
8105
8106         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
8107         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
8108         BINFO_VTABLE.  Parameter delta removed, all callers updated.
8109         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
8110         BINFO_VTABLE.
8111         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
8112         all calls.
8113         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
8114         handling of thunk_delta.
8115         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
8116         (devirtualization_time_bonus): Do not handle thunk deltas.
8117         (ipcp_discover_new_direct_edges): Likewise.
8118         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8119         (try_make_edge_direct_simple_call): Likewise.
8120         (try_make_edge_direct_virtual_call): Likewise.
8121         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
8122         parameter set as unused.
8123         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
8124         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
8125         parameter set as unused.
8126         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
8127         (input_edge_opt_summary): Likewise.
8128         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
8129         BINFO_VIRTUALS at all.
8130         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
8131
8132 2011-09-02  Richard Guenther  <rguenther@suse.de>
8133
8134         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
8135         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
8136
8137 2011-08-31  Richard Guenther  <rguenther@suse.de>
8138
8139         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
8140         handling here, from ...
8141         (expand_expr_real_1): ... here.
8142         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
8143         and VEC_COND_EXPR.
8144         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
8145         a GIMPLE_TERNARY_RHS.
8146         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
8147         and VEC_COND_EXPR here ...
8148         (verify_gimple_assign_single): ... not here.
8149         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
8150         * tree-object-size.c (cond_expr_object_size): Adjust.
8151         (collect_object_sizes_for): Likewise.
8152         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
8153         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
8154         (ssa_forward_propagate_and_combine): Adjust.
8155         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
8156         as ternary.
8157         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
8158         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
8159         * tree-vect-stmt.c (vectorizable_condition): Likewise.
8160         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
8161         (extract_range_from_assignment): Likewise.
8162
8163 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
8164
8165         * config/i386/i386.md: Use (match_test ...) for attribute tests.
8166         * config/i386/mmx.md: Likewise.
8167         * config/i386/sse.md: Likewise.
8168         * config/i386/predicates.md (call_insn_operand): Use
8169         (not (match_test "...")) instead of (match_test "!...")
8170         * config/i386/constraints.md (w): Likewise.
8171
8172 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
8173
8174         * doc/md.texi: Describe the use of match_tests in attribute tests.
8175         * rtl.def (MATCH_TEST): Update commentary.
8176         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
8177         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
8178
8179 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
8180
8181         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
8182         (attr_string): Use copy_md_ptr_loc.
8183
8184 2011-08-31  Martin Jambor  <mjambor@suse.cz>
8185
8186         PR middle-end/49886
8187         * ipa-inline-analysis.c (compute_inline_parameters): Set
8188         can_change_signature of noes with typde attributes.
8189         * ipa-split.c (split_function): Do not skip any arguments if
8190         can_change_signature is set.
8191
8192 2011-08-31  Martin Jambor  <mjambor@suse.cz>
8193
8194         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
8195         check removed.
8196
8197 2011-08-31  Richard Guenther  <rguenther@suse.de>
8198
8199         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
8200         special-casing.
8201
8202 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
8203
8204         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
8205
8206 2011-08-31  Tom de Vries  <tom@codesourcery.com>
8207
8208         PR middle-end/43513
8209         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
8210         * tree-ssa-ccp.c (params.h): Include.
8211         (fold_builtin_alloca_for_var): New function.
8212         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
8213
8214 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
8215
8216         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
8217         Handle FMA option.
8218
8219 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
8220
8221         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
8222         b3 and b4 unsigned.
8223
8224 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
8225
8226         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
8227         when code is SET.
8228
8229 2011-08-30  Richard Guenther  <rguenther@suse.de>
8230
8231         PR middle-end/48571
8232         * gimple.h (maybe_fold_offset_to_address): Remove.
8233         (maybe_fold_offset_to_reference): Likewise.
8234         (maybe_fold_stmt_addition): Likewise.
8235         (may_propagate_address_into_dereference): Likewise.
8236         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
8237         array references.
8238         * gimple-fold.c (canonicalize_constructor_val): Likewise.
8239         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
8240         addresses instead.
8241         (may_propagate_address_into_dereference): Remove.
8242         (maybe_fold_offset_to_array_ref): Likewise.
8243         (maybe_fold_offset_to_reference): Likewise.
8244         (maybe_fold_offset_to_address): Likewise.
8245         (maybe_fold_stmt_addition): Likewise.
8246         (fold_gimple_assign): Do not reconstruct array references but
8247         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
8248         MEM_REF addresses.
8249         (gimple_fold_stmt_to_constant_1): Likewise.
8250         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
8251         * gimplify.c (gimplify_conversion): Likewise.
8252         (gimplify_expr): Likewise.
8253
8254 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
8255
8256         * config/i386/fmaintrin.h: New.
8257         * config.gcc: Add fmaintrin.h.
8258         * config/i386/i386.c
8259         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
8260         <IX86_BUILTIN_VFMADDSD3>: Likewise.
8261         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
8262         (*fmai_fmadd_<mode>): Likewise.
8263         (*fmai_fmsub_<mode>): Likewise.
8264         (*fmai_fnmadd_<mode>): Likewise.
8265         (*fmai_fnmsub_<mode>): Likewise.
8266         * config/i386/immintrin.h: Add fmaintrin.h.
8267
8268 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
8269
8270         * genautomata.c (NO_COMB_OPTION): New macro.
8271         (no_comb_flag): New static variable.
8272         (gen_automata_option): Handle NO_COMB_OPTION.
8273         (comb_vect_p): False if no_comb_flag.
8274         (add_vect): Move computation of min/max values.  Return early if
8275         no_comb_flag.
8276         * doc/md.texi (automata_option): Document no-comb-vect.
8277
8278         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
8279         "__x86.get_pc_thunk".
8280
8281         * bb-reorder.c (insert_section_boundary_note): Only do it if
8282         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
8283
8284 2011-08-30  Christian Bruel  <christian.bruel@st.com>
8285
8286         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
8287         flag_profile_use.
8288
8289 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
8290
8291         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
8292         to off.  Document switch.
8293         * doc/invoke.texi (-msave-toc-indirect): Ditto.
8294
8295 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
8296
8297         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
8298         conditionals and comments inside macro arguments.
8299
8300 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
8301             Richard Guenther  <rguenther@suse.de>
8302
8303         * tree.h (constant_boolean_node): Adjust prototype.
8304         * fold-const.c (fold_convert_loc): Move aggregate conversion
8305         leeway down.
8306         (constant_boolean_node): Make value parameter boolean, add
8307         vector type handling.
8308         (fold_unary_loc): Use constant_boolean_node.
8309         (fold_binary_loc): Preserve types properly when folding
8310         COMPLEX_EXPR <__real x, __imag x>.
8311         * gimplify.c (gimplify_expr): Handle vector comparison.
8312         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
8313         comparison.
8314         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
8315         comparisons.
8316
8317 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
8318
8319         PR middle-end/48722
8320         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
8321         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
8322         (verify_rtl_sharing): Likewise and verify_rtx_sharing
8323         in there too.
8324         (unshare_all_rtl_in_chain): For CALL_INSNs
8325         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
8326
8327 2011-08-29  Richard Guenther  <rguenther@suse.de>
8328
8329         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
8330         on the built ADDR_EXPR.
8331
8332 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
8333
8334         PR debug/50215
8335         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
8336         before adding ENTRY_VALUE to val->locs.
8337
8338 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
8339
8340         PR bootstrap/50218
8341         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
8342         comp.
8343
8344 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
8345
8346         * doc/rtl.texi (simple_return): Document.
8347         (parallel, PATTERN): Here too.
8348         * doc/md.texi (return): Mention it's allowed to expand to simple_return
8349         in some cases.
8350         (simple_return): Document standard pattern.
8351         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
8352         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
8353         * reorg.c (function_return_label, function_simple_return_label):
8354         New static variables, replacing...
8355         (end_of_function_label): ... this.
8356         (simplejump_or_return_p): New static function.
8357         (optimize_skip, steal_delay_list_from_fallthrough,
8358         fill_slots_from_thread): Use it.
8359         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
8360         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
8361         (find_end_label): Take a new arg which is one of the two return
8362         rtxs.  Depending on which, set either function_return_label or
8363         function_simple_return_label.  All callers changed.
8364         (make_return_insns): Make both kinds.
8365         (dbr_schedule): Adjust for two kinds of end labels.
8366         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
8367         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
8368         (gen_expand, gen_split): Use ANY_RETURN_P.
8369         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
8370         * rtl.def (SIMPLE_RETURN): New code.
8371         * ifcvt.c (find_if_case_1): Be more careful about
8372         redirecting jumps to the EXIT_BLOCK.
8373         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
8374         returnjump_p_1): Handle SIMPLE_RETURNs.
8375         * print-rtl.c (print_rtx): Likewise.
8376         * rtl.c (copy_rtx): Likewise.
8377         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
8378         * combine.c (simplify_set): Likewise.
8379         * resource.c (find_dead_or_set_registers, mark_set_resources):
8380         Likewise.
8381         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
8382         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
8383         (init_emit_regs): Initialize simple_return_rtx.
8384         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
8385         force_nonfallthru_and_redirect.
8386         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
8387         (GR_SIMPLE_RETURN): New enum value.
8388         (simple_return_rtx): New macro.
8389         * basic-block.h (force_nonfallthru_and_redirect): Adjust
8390         declaration.
8391         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
8392         argument.  All callers changed.  Be careful about what kinds of
8393         returnjumps to generate.
8394         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
8395         ix86_pad_short_function): Likewise.
8396         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
8397         of return.
8398         * config/mips/mips.md (any_return): New code_iterator.
8399         (optab): Add cases for return and simple_return.
8400         (return): Expand to a simple_return.
8401         (simple_return): New pattern.
8402         (*<optab>, *<optab>_internal for any_return): New patterns.
8403         (return_internal): Remove.
8404         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
8405         a simple_return_internal.
8406
8407 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
8408
8409         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
8410         (vec_extract_lo_<mode>): Prevent both operands in memory.
8411         (vec_extract_lo_v16hi): Ditto.
8412         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
8413
8414 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
8415
8416         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
8417         (*sse2_mulv4si3): Ditto.
8418         (mulv2di3): Ditto.
8419         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
8420         notes to REG_EQUAL.
8421
8422 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
8423
8424         PR target/50202
8425         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
8426         when all outputs are unused.
8427         (sse4_2_pcmpistr): Ditto.
8428
8429 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
8430
8431         * config/i386/i386.md (round<mode>2): New expander.
8432         * config/i386/i386.c (enum ix86_builtins): Add
8433         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
8434         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
8435         descriptions.
8436         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
8437         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
8438
8439 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
8440
8441         PR middle-end/50083
8442         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
8443         only when TARGET_C99_FUNCTIONS.
8444         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
8445         <BUILT_IN_RINT{,F,L}>: Ditto.
8446
8447 2011-08-26  Michael Matz  <matz@suse.de>
8448             Jakub Jelinek  <jakub@redhat.com>
8449
8450         PR lto/50165
8451         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
8452         don't call strlen twice, use memcpy.
8453
8454 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
8455
8456         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
8457         * config/i386/bmiintrin.h: Likewise.
8458         * config/i386/lzcntintrin.h: Likewise.
8459
8460         * config/i386/immintrin.h: Include <lzcntintrin.h>,
8461         <bmiintrin.h> and <bmi2intrin.h>.
8462
8463 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8464
8465         PR target/50166
8466         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
8467         * configure: Regenerate.
8468
8469 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
8470
8471         PR c/50179
8472         * c-typeck.c (c_process_expr_stmt): Skip over nops and
8473         call mark_exp_read even if exprv is ADDR_EXPR.
8474
8475 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
8476
8477         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
8478         to df_set_dead_notes_for_mw.
8479
8480 2011-08-26  Richard Guenther  <rguenther@suse.de>
8481
8482         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
8483
8484 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
8485             Tom de Vries  <tom@codesourcery.com>
8486
8487         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
8488         (struct ivopts_data): Add loop_single_exit_p field.
8489         (niter_for_exit): Change parameter desc_p into return value.  Return
8490         desc if desc->may_be_zero.  Free desc if unused.
8491         (niter_for_single_dom_exit): Change return type.
8492         (find_induction_variables): Handle changed return type of
8493         niter_for_single_dom_exit.  Dump may_be_zero.
8494         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
8495         (set_use_iv_cost): Add and handle comp parameter.
8496         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
8497         comp argument to set_use_iv_cost.
8498         (strip_wrap_conserving_type_conversions, expr_equal_p)
8499         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
8500         (may_eliminate_iv): Add comp parameter.  Handle new return type of
8501         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
8502         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
8503         and may_eliminate_iv.
8504         (rewrite_use_compare): Move call to iv_elimination_compare to ...
8505         (may_eliminate_iv): Here.
8506         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
8507
8508 2011-08-26  Tom de Vries  <tom@codesourcery.com>
8509
8510         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
8511         accessing TREE_TYPE.
8512
8513 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
8514
8515         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
8516         (*ior_scc_scc_cmp): Likewise
8517         (*and_scc_scc): Likewise.
8518         (*and_scc_scc_cmp): Likewise.
8519         (*and_scc_scc_nodom): Likewise.
8520         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
8521
8522 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
8523
8524         * rtlanal.c (nonzero_bits1): Handle CLRSB.
8525
8526 2011-08-26  Richard Guenther  <rguenther@suse.de>
8527
8528         * expr.c (string_constant): Handle &MEM_REF.
8529
8530 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
8531
8532         * config/arm/arm.c (struct four_ints): New type.
8533         (count_insns_for_constant): Delete function.
8534         (find_best_start): Delete function.
8535         (optimal_immediate_sequence): New function.
8536         (optimal_immediate_sequence_1): New function.
8537         (arm_gen_constant): Move constant splitting code to
8538         optimal_immediate_sequence.
8539         Rewrite constant negation/invertion code.
8540
8541 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
8542
8543         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
8544         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
8545         Remove prototype. Remove static function type.
8546         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
8547         Add arch attribute.
8548         * config/arm/constraints.md (Pj, PJ): New constraints.
8549
8550 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8551
8552         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
8553         ("cortex_a9_multiply_long"): New and use above.  Handle all
8554         long multiply cases.
8555         ("cortex_a9_multiply"): Handle smmul and smmulr.
8556         ("cortex_a9_mac"): Handle smmla.
8557
8558 2011-08-25  Richard Henderson  <rth@redhat.com>
8559
8560         PR 50132
8561         PR 49864
8562         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
8563         non-constant stack adjutment.
8564         * expr.c (find_args_size_adjust): Break out from ...
8565         (fixup_args_size_notes): ... here.
8566         * rtl.h (find_args_size_adjust): Declare.
8567
8568 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
8569
8570         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
8571         sse4 and sse4_noavx.
8572         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
8573         (*pushdf_rex64): Change Y2 register constraint to x.
8574         (*movdf_internal_rex64): Ditto.
8575         (*zero_extendsidi2_rex64): Ditto.
8576         (*movdi_internal): Change Y2 register constraint to x
8577         and update "isa" attribute.
8578         (*pushdf): Ditto.
8579         (*movdf internal): Ditto.
8580         (zero_extendsidi2_1): Ditto.
8581         (*truncdfdf_mixed): Ditto.
8582         (*truncxfdf2_mixed): Ditto.
8583         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
8584         register constraint to x.
8585         (*movv2sf_internal_rex64): Ditto.
8586         (*mov<mode>_internal): Change Y2 register constraint to x
8587         and add "isa" attribute.
8588         (*movv2sf_internal): Ditto.
8589         (*vec_extractv2si_1): Ditto.
8590         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
8591         constraints to x and update "isa" attribute.
8592         (*vec_interleave_highv2df): Change Y3 registerconstraint
8593         to x and update "isa" attribute.
8594         (*vec_interleave_lowv2df): Ditto.
8595         (*vec_concatv2df): Change Y2 register constraint to x and
8596         update "isa" attribute.
8597         (sse2_loadld): Ditto.
8598         (*vec_extractv2di_1): Ditto.
8599         (*vec_dupv4si): Ditto.
8600         (*vec_dupv2di): Ditto.
8601         (*vec_concatv4si): Ditto.
8602         (vec_concatv2di): Ditto.
8603         * config/i386/constraints.md (Y2): Remove.
8604         (Y3): Ditto.
8605         (Y4): Ditto.
8606
8607 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
8608
8609         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
8610         dump_def_use_chain): Don't declare.
8611         (mark_conflict, create_new_chain): Move before users.
8612         (regrename_optimize): Move to near end of file.
8613
8614 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
8615
8616         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
8617         (secondary_input_reload_class): Remove Prototype.
8618         * config/avr/avr.c (byte_immediate_operand): Remove Function.
8619         * config/avr/avr.md (setmemhi): Use u8_operand.
8620         (strlenhi): Use const0_rtx for comparison.
8621         * config/avr/avr.h (avr_reg_order): Remove Declaration.
8622
8623 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
8624
8625         * config/avr/avr.c (reg_class_tab): Make local to
8626         avr_regno_reg_class.  Return smallest register class available.
8627
8628 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
8629
8630         * config/avr/avr.c (STR_PREFIX_P): New Define.
8631         (avr_asm_declare_function_name): Use it.
8632         (avr_asm_named_section): Use it.
8633         (avr_section_type_flags): Use it.
8634
8635 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
8636
8637         * doc/md.texi (automata_option): Document collapse-ndfa.
8638         * genautomata.c (COLLAPSE_OPTION): New macro.
8639         (collapse_flag): New static variable.
8640         (struct description): New member normal_decls_num.
8641         (struct automaton): New members advance_ainsn and collapse_ainsn.
8642         (gen_automata_option): Check for COLLAPSE_OPTION.
8643         (collapse_ndfa_insn_decl): New static variable.
8644         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
8645         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
8646         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
8647         necessary.  Use normal_decls_num rather than decls_num, remove
8648         test for special decls.
8649         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
8650         (make_automaton); Likewise.  Use the new advance_cycle_insn member
8651         of struct automaton.
8652         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
8653         is set.
8654         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
8655         transition.  Create the necessary transitions for it.
8656         (create_ainsns): Return void.  Take an automaton_t argument, and
8657         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
8658         callers changed.
8659         (COLLAPSE_NDFA_VALUE_NAME): New macro.
8660         (output_tables): Output code to define it.
8661         (output_internal_insn_code_evaluation): Output code to accept
8662         const0_rtx as collapse-ndfa transition.
8663         (output_default_latencies, output_print_reservation_func,
8664         output_print_description): Reorganize loops to use normal_decls_num
8665         as loop bound; remove special case for advance_cycle_insn_decl.
8666         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
8667         (check_automata_insn_issues): Check for collapse_ainsn.
8668         (expand_automate): Allocate sufficient space.  Initialize
8669         normal_decls_num.
8670
8671 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
8672
8673         * config/avr/avr.md: Fix indentation from r177991.
8674
8675 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
8676
8677         * regrename.c (struct du_head): Remove member terminated.
8678         (create_new_chain): Don't initialize it.
8679         (scan_rtx_reg): Don't set or test it, test the open_chains_set
8680         bitmap instead.
8681         (tick, this_tick): New global variables, moved out of
8682         regrename_optimize.
8683         (current_id, open_chains, closed_chains, open_chains_set,
8684         live_in_chains, live_hard_regs): Reorder declarations.
8685         (dump_def_use_chain): Move function earlier in the file.
8686         (rename_chains): New static function, broken out of
8687         regrename_optimize.
8688         (regrename_optimize): Use it.  Remove #if 0'ed code.
8689
8690 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8691
8692         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
8693
8694 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
8695
8696         PR target/50172
8697         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
8698
8699 2011-08-24  Richard Guenther  <rguenther@suse.de>
8700
8701         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
8702         ref in the basic-block case.  Move stripping array-refs
8703         to the place we create an access-function for it.  Remove
8704         bogus stripping down a MEM_REF to its base.
8705
8706 2011-08-24  Richard Guenther  <rguenther@suse.de>
8707
8708         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
8709         with -fno-strict-overflow.
8710
8711 2011-08-24  Richard Guenther  <rguenther@suse.de>
8712
8713         * tree-vectorizer.c (vect_print_dump_info): Avoid the
8714         file and location clutter when dumping to dump files.
8715
8716 2011-08-24  Simon Baldwin  <simonb@google.com>
8717
8718         * gengtype-state.c (write_state): Remove timestamped header line.
8719
8720 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
8721
8722         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
8723         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
8724         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
8725         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
8726         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
8727         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
8728         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
8729         rules.
8730         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
8731
8732 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
8733
8734         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
8735
8736 2011-08-24  Richard Guenther  <rguenther@suse.de>
8737
8738         PR tree-optimization/50067
8739         * tree-data-ref.c (dr_analyze_indices): Do not add an access
8740         function for a MEM_REF base that has no evolution in the loop
8741         nest or that is not analyzable.
8742
8743 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
8744
8745         * ira.c (ira_init_register_move_cost): Check small subclasses
8746         through ira_reg_class_max_nregs and ira_available_class_regs.
8747
8748 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
8749
8750         * config/i386/constraints.md (Yp): New register constraint.
8751         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
8752         Yp register constraint.
8753         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
8754         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
8755         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
8756
8757 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
8758
8759         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
8760
8761 2011-08-23  Mark Heffernan  <meheff@google.com>
8762
8763         PR middle-end/38509
8764         * common.opt (Wfree-nonheap-object): New option.
8765         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
8766         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
8767         to warning.
8768         (expand_builtin): Make warning conditional.
8769
8770 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
8771
8772         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
8773         (length_immediate): Handle imulx, ishiftx and rotatex.
8774         (imm_disp): Ditto.
8775         (isa): Add bmi2.
8776         (enabled): Handle bmi2.
8777         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
8778         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
8779         (*bmi2_umulditi3_1): New insn pattern.
8780         (*bmi2_umulsidi3_1): Ditto.
8781         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
8782         (*bmi2_ashl<mode>3_1): New insn pattern.
8783         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
8784         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
8785         (*bmi2_ashlsi3_1_zext): New insn pattern.
8786         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
8787         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
8788         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
8789         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
8790         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
8791         flags dependency.
8792         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
8793         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
8794         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
8795         flags dependency.
8796         (*bmi2_rorx<mode>3_1): New insn pattern.
8797         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
8798         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
8799         (*rotatert<mode>3_1 splitter): Ditto.
8800         (*bmi2_rorxsi3_1_zext): New insn pattern.
8801         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
8802         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
8803         (*rotatertsi3_1_zext splitter): Ditto.
8804
8805 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
8806
8807         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
8808         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
8809         (ix86_handle_option): Handle OPT_mbmi2 case.
8810         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
8811         (x86_64-*-*): Likewise.
8812         * config/i386/bmi2intrin.h: New file.
8813         * config/i386/cpuid.h (bit_BMI2): New.
8814         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8815         BMI2 feature.
8816         * config/i386/i386-c.c (ix86_target_macros_internal):
8817         Conditionally define __BMI2__.
8818         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
8819         Handle BMI2 option.
8820         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
8821         (print_reg): New code.
8822         (ix86_print_operand): Likewise.
8823         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
8824         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
8825         IX86_BUILTIN_PEXT64.
8826         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
8827         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
8828         IX86_BUILTIN_PEXT64.
8829         * config/i386/i386.h (TARGET_BMI2): New.
8830         * config/i386/i386.md (UNSPEC_PDEP): New.
8831         (UNSPEC_PEXT): Likewise.
8832         (*bmi2_bzhi_<mode>3): Likewise.
8833         (*bmi2_pdep_<mode>3): Likewise.
8834         (*bmi2_pext_<mode>3): Likewise.
8835         * config/i386/i386.opt (mbmi2): New.
8836         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
8837         is defined.
8838         * doc/extend.texi: Document BMI2 built-in functions.
8839         * doc/invoke.texi: Document -mbmi2.
8840
8841 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
8842
8843         PR middle-end/50161
8844         * simplify-rtx.c (simplify_const_unary_operation): If
8845         op is CONST_INT, don't look at op_mode, but use instead mode.
8846         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
8847         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
8848         operation and TRUNCATE/ZERO_EXTEND if needed.
8849         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
8850         Document that operand mode must be same as operation mode,
8851         or VOIDmode.
8852         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
8853         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
8854         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
8855         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
8856         use the mode of operand for the operation and add truncate
8857         or zero_extend around if needed.
8858         * config/c6x/c6x.md (ctzdi2): Likewise.
8859         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
8860
8861 2011-08-12  Michael Matz  <matz@suse.de>
8862
8863         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
8864         (gimple_expand_cfg): Merge alignment info for coalesced pointer
8865         SSA names.
8866
8867 2011-08-23  Richard Guenther  <rguenther@suse.de>
8868
8869         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
8870         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
8871         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
8872         from ...
8873         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
8874         (mem_refs_may_alias_p): Adjust.
8875         * tree-data-ref.h (dr_may_alias_p): Adjust.
8876         * tree-data-ref.c: Include tree-affine.h.
8877         (dr_analyze_indices): Do nothing for the non-loop case.
8878         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
8879         more cases in the non-loop case.
8880         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
8881         calls to dr_may_alias_p.
8882         (write_alias_graph_to_ascii_ecc): Likewise.
8883         (write_alias_graph_to_ascii_dot): Likewise.
8884         (build_alias_set_optimal_p): Likewise.
8885
8886 2011-08-23  Richard Guenther  <rguenther@suse.de>
8887
8888         PR tree-optimization/50162
8889         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
8890
8891 2011-08-23  Richard Guenther  <rguenther@suse.de>
8892
8893         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
8894         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
8895         (create_data_ref): Also dump access functions for the created data-ref.
8896
8897 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
8898             Kirill Yukhin  <kirill.yukhin@intel.com>
8899
8900         PR target/50155
8901         * config/i386/sse.md (VI_AVX2): New.
8902         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
8903         (*<plusminus_insn><mode>3): Ditto.
8904         (<sse2_avx2>_andnot<mode>3): Ditto.
8905         (*andnot<mode>3): Fix order of cond operands.
8906         Add asserts for correct TARGET_xxx.
8907         (*<any_logic:code><mode>3): Ditto.
8908
8909 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
8910
8911         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
8912         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
8913         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
8914         regclass argument type to reg_class_t. Change 'max' and 'v' vars
8915         and return types to unsigned char. Use reg_class_contents instead
8916         of class_contents.
8917         (TARGET_CLASS_MAX_NREGS): Define.
8918
8919 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
8920
8921         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
8922         to make computed_jump_p return true.
8923
8924 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8925
8926         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
8927         (PICFLAG_FOR_TARGET): Substitute.
8928         * aclocal.m4: Regenerate.
8929         * configure: Regenerate.
8930
8931 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
8932
8933         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
8934         after reading in the pch.
8935
8936 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8937
8938         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
8939         * configure: Regenerated.
8940
8941 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
8942
8943         PR tree-optimization/50133
8944         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
8945         from stmt instead of some statement around gsi.
8946
8947         PR middle-end/50141
8948         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
8949         innerdecl is a VAR_DECL.
8950
8951 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8952
8953         * config/i386/avx2intrin.h: New file.
8954         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
8955         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
8956         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
8957         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
8958         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
8959         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
8960         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
8961         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
8962         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
8963         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
8964         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
8965         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
8966         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
8967         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
8968         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
8969         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
8970         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
8971         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
8972         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
8973         VOID_FTYPE_PV8SI_V8SI_V8SI,
8974         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
8975         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
8976         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
8977         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
8978         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
8979         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
8980         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
8981         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
8982         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
8983         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
8984         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
8985         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
8986         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
8987         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
8988         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
8989         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
8990         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
8991         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
8992         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
8993         V4DI_FTYPE_V4DI_INT_CONVERT,
8994         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
8995         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
8996         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
8997         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
8998         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
8999         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
9000         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
9001         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
9002         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
9003         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
9004         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
9005         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
9006         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
9007         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
9008         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
9009         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
9010         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
9011         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
9012         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
9013         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
9014         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
9015         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
9016         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
9017         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
9018         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
9019         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
9020         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
9021         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
9022         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
9023         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
9024         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
9025         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
9026         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
9027         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
9028         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
9029         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
9030         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
9031         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
9032         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
9033         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
9034         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
9035         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
9036         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
9037         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
9038         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
9039         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
9040         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
9041         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
9042         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
9043         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
9044         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
9045         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
9046         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
9047         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
9048         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
9049         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
9050         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
9051         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
9052         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
9053         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
9054         IX86_BUILTIN_VBROADCASTSS_PS256,
9055         IX86_BUILTIN_VBROADCASTSD_PD256,
9056         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
9057         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
9058         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
9059         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
9060         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
9061         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
9062         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
9063         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
9064         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
9065         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
9066         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
9067         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
9068         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
9069         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
9070         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
9071         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
9072         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
9073         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
9074         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
9075         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
9076         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
9077         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
9078         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
9079         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
9080         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
9081         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
9082         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
9083         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
9084         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
9085         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
9086         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
9087         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
9088         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
9089         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
9090         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
9091         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
9092         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
9093         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
9094         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
9095         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
9096         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
9097         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
9098         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
9099         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
9100         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
9101         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
9102         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
9103         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
9104         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
9105         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
9106         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
9107         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
9108         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
9109         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
9110         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
9111         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
9112         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
9113         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
9114         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
9115         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
9116         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
9117         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
9118         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
9119         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
9120         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
9121         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
9122         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
9123         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
9124         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
9125         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
9126         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
9127         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
9128         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
9129         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
9130         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
9131         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
9132         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
9133         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
9134         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
9135         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
9136         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
9137         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
9138         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
9139         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
9140         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
9141         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
9142         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
9143         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
9144         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
9145         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
9146         IX86_BUILTIN_VBROADCASTSD_PD256,
9147         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
9148         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
9149         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
9150         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
9151         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
9152         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
9153         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
9154         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
9155         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
9156         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
9157         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
9158         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
9159         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
9160         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
9161         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
9162         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
9163         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
9164         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
9165         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
9166         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
9167         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
9168         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
9169         IX86_BUILTIN_GATHERDIV8SI.
9170         (ix86_preferred_simd_mode): Support AVX2 modes.
9171         (ix86_expand_args_builtin): Support AVX2 builtins.
9172         (ix86_expand_special_args_builtin): Likewise.
9173         (ix86_expand_builtin): Likewise.
9174         * config/i386/i386.md (UNSPEC_VPERMSI): New.
9175         (UNSPEC_VPERMDF): Likewise.
9176         (UNSPEC_VPERMSF): Likewise.
9177         (UNSPEC_VPERMDI): Likewise.
9178         (UNSPEC_VPERMTI): Likewise.
9179         (UNSPEC_GATHER): Likewise.
9180         (ssemodesuffix): Extend.
9181         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
9182         is defined.
9183         * config/i386/predicates.md (const1248_operand): New.
9184         * config/i386/sse.md (VI1_AVX2): New mode iterator.
9185         (VI2_AVX2): Likewise.
9186         (VI4_AVX2): Likewise.
9187         (VI8_AVX2): Likewise.
9188         (VIMAX_AVX2): Likewise.
9189         (SSESCALARMODE): Likewise.
9190         (VI12_AVX2): Likewise.
9191         (VI24_AVX2): Likewise.
9192         (VI124_AVX2): Likewise.
9193         (VI248_AVX2): Likewise.
9194         (VI48_AVX2): Likewise.
9195         (VI4SD_AVX2): Likewise.
9196         (V48_AVX2): Likewise.
9197         (AVX256MODE2P): Likewise.
9198         (AVXMODE48P_DI): Likewise.
9199         (sse2_avx2): New mode attribute.
9200         (ssse3_avx2): Likewise.
9201         (sse4_1_avx2): Likewise.
9202         (avx_avx2): Likewise.
9203         (ssebytemode): Likewise.
9204         (AVXTOSSEMODE): Likewise.
9205         (AVXMODE48P_DI): Likewise.
9206         (gthrfirstp): Likewise.
9207         (gthrlastp): Likewise.
9208         (lshift): New code_iterator
9209         (lshift): New code attribute.
9210         (lshift): Likewise.
9211         (ssescalarmodesuffix): Update.
9212         (sseunpackmode): Likewise.
9213         (ssepackmode): Likewise.
9214         (avx2_vec_dupv4sf): New insn pattern.
9215         (avx2_vec_dupv8sf): Likewise.
9216         (avx2_interleave_highv4di): Likewise.
9217         (avx2_interleave_lowv4di): Likewise.
9218         (avx2_umulv4siv4di3): Likewise
9219         (*avx2_umulv4siv4di3): Likewise
9220         (avx2_pmaddwd): Likewise.
9221         (*avx2_pmaddwd): Likewise.
9222         (avx2_lshrqv4di3): Likewise.
9223         (avx2_lshlqv4di3): Likewise.
9224         (avx2_lshl<mode>3): Likewise.
9225         (avx2_<umaxmin:code><mode>3): Likewise.
9226         (*avx2_<umaxmin:code><mode>3): Likewise.
9227         (avx2_<smaxmin:code><mode>3): Likewise.
9228         (*avx2_<smaxmin:code><mode>3): Likewise.
9229         (avx2_eq<mode>3): Likewise.
9230         (*avx2_eq<mode>3): Likewise.
9231         (avx2_gt<mode>3): Likewise.
9232         (avx2_interleave_highv32qi): New.
9233         (avx2_interleave_lowv32qi): Likewise.
9234         (avx2_interleave_highv16hi): Likewise.
9235         (avx2_interleave_lowv16hi): Likewise.
9236         (avx2_interleave_highv8si): Likewise.
9237         (avx2_interleave_lowv8si): Likewise.
9238         (avx2_pshufd): Likewise.
9239         (avx2_pshufd_1): Likewise.
9240         (avx2_pshuflwv3): Likewise.
9241         (avx2_pshuflw_1): Likewise.
9242         (avx2_pshufhwv3): Likewise.
9243         (avx2_pshufhw_1): Likewise.
9244         (avx2_uavgv32qi3): Likewise.
9245         (*avx2_uavgv32qi3): Likewise.
9246         (avx2_uavgv16hi3): Likewise.
9247         (*avx2_uavgv16hi3): Likewise.
9248         (avx2_pmovmskb): Likewise.
9249         (avx2_phaddwv16hi3): Likewise.
9250         (avx2_phadddv8si3): Likewise.
9251         (avx2_phaddswv16hi3): Likewise.
9252         (avx2_phsubwv16hi3): Likewise.
9253         (avx2_phsubdv8si3): Likewise.
9254         (avx2_phsubswv16hi3): Likewise.
9255         (avx2_pmaddubsw256): Likewise.
9256         (avx2_umulhrswv16hi3): Likewise.
9257         (*avx2_umulhrswv16hi3): Likewise.
9258         (avx2_packusdw): Likewise.
9259         (avx2_pblendd<mode>): Likewise.
9260         (avx2_<code>v16qiv16hi2): Likewise.
9261         (avx2_<code>v8qiv8si2): Likewise.
9262         (avx2_<code>v8hiv8si2): Likewise.
9263         (avx2_<code>v4qiv4di2): Likewise.
9264         (avx2_<code>v4hiv4di2): Likewise.
9265         (avx2_<code>v4siv4di2): Likewise.
9266         (avx2_pbroadcast<mode>): Likewise.
9267         (avx2_permvarv8si): Likewise.
9268         (avx2_permv4df): Likewise.
9269         (avx2_permvarv8sf): Likewise.
9270         (avx2_permv4di): Likewise.
9271         (avx2_permv2ti): Likewise.
9272         (avx2_vec_dupv4df): Likewise.
9273         (avx2_vbroadcasti128_<mode>): Likewise.
9274         (avx2_vec_set_lo_v4di): Likewise.
9275         (avx2_vec_set_hi_v4di): Likewise.
9276         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
9277         (avx2_extracti128): Likewise.
9278         (avx2_inserti128): Likewise.
9279         (avx2_ashrvv8si): Likewise.
9280         (avx2_ashrvv4si): Likewise.
9281         (avx2_<lshift>vv8si): Likewise.
9282         (avx2_<lshift>v<mode>): Likewise.
9283         (avx2_<lshift>vv2di): Likewise.
9284         (avx2_gathersi<mode>): Likewise.
9285         (*avx2_gathersi<mode>): Likewise.
9286         (avx2_gatherdi<mode>): Likewise.
9287         (*avx2_gatherdi<mode>): Likewise.
9288         (avx2_gatherdi<mode>256): Likewise.
9289         (*avx2_gatherdi<mode>256): Likewise.
9290         (<plusminus_insn><mode>3): Use VI mode iterator.
9291         (*<plusminus_insn><mode>3): Use VI mode iterator.
9292         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
9293         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
9294         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
9295         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
9296         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
9297         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
9298         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
9299         Use VI2_AVX2 mode iterator.
9300         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
9301         Use VI2_AVX2 mode iterator.
9302         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
9303         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
9304         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
9305         Use VI4_AVX2 mode iterator.
9306         (ashr<mode>3): Use VI24_AVX2 mode iterator.
9307         (lshr<mode>3): Use VI248_AVX2 mode iterator.
9308         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
9309         Use VIMAX_AVX2 mode iterator.
9310         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
9311         Use VI mode iterator.
9312         (*andnot<mode>3): Update for AVX2.
9313         (*<any_logic:code><mode>3): Likewise.
9314         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
9315         Use VI1_AVX mode iterator.
9316         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
9317         Use VI2_AVX mode iterator.
9318         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
9319         Use VI1_AVX mode iterator.
9320         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
9321         Use VI8_AVX2 mode iterator.
9322         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
9323         Use VI1_AVX2 mode iterator.
9324         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
9325         Use VI124_AVX2 mode iterator.
9326         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
9327         Use SSESCALARMODE mode iterator.
9328         (abs<mode>2): Use VI124_AVX2 mode iterator.
9329         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
9330         Use VI8_AVX2 mode iterator.
9331         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
9332         Use VI1_AVX2 mode iterator.
9333         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
9334         Use VI1_AVX2 mode iterator.
9335         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
9336         Use VI2_AVX2 mode iterator.
9337         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
9338         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
9339         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
9340         avx_maskstore<ssemodesuffix><avxsizesuffix>.
9341         Use V48_AVX2 mode iterator.
9342         * doc/extend.texi: Document AVX2 built-in functions.
9343         * doc/invoke.texi: Document -mavx2.
9344
9345 2011-08-22  Matthias Klose <doko@debian.org>
9346
9347         Revert:
9348         2011-07-11  Arthur Loiret  <aloiret@debian.org>
9349                     Matthias Klose <doko@debian.org>
9350         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
9351         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
9352         convention.
9353         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
9354
9355 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
9356
9357         PR bootstrap/50146
9358         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
9359         to #ifndef HONOR_REG_ALLOC_ORDER block.
9360
9361 2011-08-21  Richard Henderson  <rth@redhat.com>
9362
9363         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
9364         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
9365         * resource.c (next_insn_no_annul): Likewise.
9366         (mark_set_resources): Likewise.
9367         * reorg.c (delete_from_delay_slot): Likewise.
9368         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
9369         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
9370
9371 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
9372
9373         * config/i386/i386.md (any_div): Remove.
9374         (sgnprefix): Update for removal.
9375         (u): Ditto.
9376
9377 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
9378
9379         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
9380         for ira_reg_class_max_nregs.  Increase pressure by 1.
9381         (mark_pseudo_regno_subword_dead): Use allocno class
9382         for ira_reg_class_max_nregs.
9383
9384 2011-08-20  Richard Henderson  <rth@redhat.com>
9385
9386         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
9387         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
9388         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
9389         config/c6x/ltf.c: Adjust include path for soft-fp.
9390
9391 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9392
9393         PR other/46770
9394         * config.gcc (tm_file): Add initfini-array.h if
9395         .init_arrary/.fini_array are supported.
9396
9397         * crtstuff.c: Don't generate .ctors nor .dtors sections if
9398         USE_INITFINI_ARRAY is defined.
9399
9400         * output.h (default_elf_init_array_asm_out_constructor): New.
9401         (default_elf_fini_array_asm_out_destructor): Likewise.
9402         * varasm.c (elf_init_array_section): Likewise.
9403         (elf_fini_array_section): Likewise.
9404         (get_elf_initfini_array_priority_section): Likewise.
9405         (default_elf_init_array_asm_out_constructor): Likewise.
9406         (default_elf_fini_array_asm_out_destructor): Likewise.
9407
9408         * config/initfini-array.h: New.
9409
9410 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
9411
9412         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
9413         OK for ST_REGS and FP_REGS before taking those classes into account.
9414
9415 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
9416
9417         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
9418         before checking for annulled branches.
9419
9420 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
9421
9422         * config/i386/i386.c (ix86_binary_operator_ok): Use
9423         satisfies_constraint_L.
9424
9425 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
9426             Michael Matz  <matz@suse.de>
9427
9428         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
9429         trunc (a + copysign (nextafter (0.5, 0.0), a)).
9430
9431 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
9432
9433         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9434         * doc/tm.texi: Regenerate.
9435         * targhooks.c (default_preferred_output_reload_class): Don't use
9436         PREFERRED_OUTPUT_RELOAD_CLASS macro.
9437         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
9438
9439 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
9440
9441         PR tree-optimization/48739
9442         * tree-ssa.c: Include cfgloop.h.
9443         (execute_update_addresses_taken): When updating ssa, if in loop closed
9444         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
9445         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
9446
9447 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
9448
9449         PR rtl-optimization/49936
9450         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
9451         for calculation of max register move costs.
9452
9453 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
9454
9455         * c-parser.c (c_parser_postfix_expression): Convert operands of
9456         __builtin_complex to their semantic types.
9457
9458 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
9459
9460         PR middle-end/49721
9461         * explow.c (convert_memory_address_addr_space): Also permute the
9462         conversion and addition of constant for zero-extend.
9463
9464 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
9465
9466         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
9467         * doc/extend.texi (__builtin_complex): Document.
9468
9469 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9470
9471         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
9472         beyond conversions.
9473         (convert_mult_to_widen): Convert constant inputs to the right type.
9474         (convert_plusminus_to_widen): Don't automatically reject inputs that
9475         are not an SSA_NAME.
9476         Convert constant inputs to the right type.
9477
9478 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9479
9480         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
9481         to the correct type.
9482
9483 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9484
9485         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
9486         unsigned inputs of different modes.
9487         (convert_plusminus_to_widen): Likewise.
9488
9489 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9490
9491         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
9492         'type'.
9493         Use 'type' from caller, not inferred from 'rhs'.
9494         Don't reject non-conversion statements. Do return lhs in this case.
9495         (is_widening_mult_p): Add new argument 'type'.
9496         Use 'type' from caller, not inferred from 'stmt'.
9497         Pass type to is_widening_mult_rhs_p.
9498         (convert_mult_to_widen): Pass type to is_widening_mult_p.
9499         (convert_plusminus_to_widen): Likewise.
9500
9501 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9502
9503         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
9504         Ensure the the larger type is the first operand.
9505
9506 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9507
9508         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
9509         unsupported unsigned multiplies to signed.
9510         (convert_plusminus_to_widen): Likewise.
9511
9512 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9513
9514         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
9515         conversion statement separating multiply-and-accumulate.
9516
9517 2011-08-19  Richard Guenther  <rguenther@suse.de>
9518
9519         PR tree-optimization/50067
9520         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
9521         offset only if we accounted for it.
9522
9523 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9524
9525         * config/arm/arm.md (maddhidi4): Remove '*' from name.
9526         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
9527         * optabs.c (find_widening_optab_handler_and_mode): New function.
9528         (expand_widen_pattern_expr): Use find_widening_optab_handler.
9529         (expand_binop_directly): Likewise.
9530         (expand_binop): Likewise.
9531         * optabs.h (find_widening_optab_handler): New macro define.
9532         (find_widening_optab_handler_and_mode): New prototype.
9533         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
9534         type precision rules.
9535         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
9536         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
9537         (is_widening_mult_rhs_p): Allow widening by more than one mode.
9538         Explicitly disallow mis-matched input types.
9539         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
9540         input types to fit the new handler.
9541         (convert_plusminus_to_widen): Likewise.
9542
9543 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9544
9545         * expr.c (expand_expr_real_2): Use widening_optab_handler.
9546         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
9547         (gen_insn): $N now means $a must be wider than $b, not consecutive.
9548         * optabs.c (widened_mode): New function.
9549         (expand_widen_pattern_expr): Use widening_optab_handler.
9550         (expand_binop_directly): Likewise.
9551         (expand_binop): Likewise.
9552         * optabs.h (widening_optab_handlers): New struct.
9553         (optab_d): New member, 'widening'.
9554         (widening_optab_handler): New function.
9555         (set_widening_optab_handler): New function.
9556         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
9557         widening_optab_handler.
9558         (convert_plusminus_to_widen): Likewise.
9559
9560 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
9561
9562         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
9563         pedantic.
9564         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
9565         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
9566
9567 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
9568
9569         * opth-gen.awk: Do not declare target save/restore structures and
9570         functions if IN_RTS defined.
9571
9572 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
9573
9574         PR target/49437
9575         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
9576         when stack was realigned in interrupt handler prologue.
9577
9578 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
9579
9580         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
9581         (quals_from_declspecs): Assert _Noreturn not present.
9582         (grokdeclarator): Handle _Noreturn.
9583         (build_null_declspecs): Initialize noreturn_p.
9584         (declspecs_add_scspec): Handle RID_NORETURN.
9585         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
9586         (c_parser_attributes): Handle RID_NORETURN.
9587         * c-tree.h (struct c_declspecs): Add noreturn_p.
9588         * ginclude/stdnoreturn.h: New.
9589         * Makefile.in (USER_H): Add stdnoreturn.h.
9590
9591 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
9592
9593         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
9594         (OPTION_MASK_ISA_AVX_UNSET): Update.
9595         (OPTION_MASK_ISA_AVX2_UNSET): New.
9596         (ix86_handle_option): Handle OPT_mavx2 case.
9597         * config/i386/cpuid.h (bit_AVX2): New.
9598         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
9599         AVX2 feature.
9600         * config/i386/i386-c.c (ix86_target_macros_internal):
9601         Conditionally define __AVX2__.
9602         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
9603         Define "core-avx2" processor alias.  Handle avx2 option.
9604         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
9605         * config/i386/i386.h (TARGET_AVX2): New.
9606         * config/i386/i386.opt (mavx2): New.
9607         * doc/invoke.texi: Document -mavx2.
9608
9609 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
9610
9611         PR rtl-optimization/49890
9612         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
9613         subclasses of class which is superset of a pressure class.
9614
9615 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9616             Igor Zamyatin <igor.zamyatin@intel.com>
9617
9618         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
9619         with HOST_WIDE_INT for isa_flag.
9620         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
9621         isa variables.
9622
9623         * config/i386/i386.c (ix86_target_string): Replace int with
9624         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
9625         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
9626         (pta_flags): Removed.
9627         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
9628         (pta): Use HOST_WIDE_INT on flags.
9629         (builtin_isa): Use HOST_WIDE_INT on isa.
9630         (ix86_add_new_builtins): Likewise.
9631         (def_builtin): Use HOST_WIDE_INT on mask.
9632         (def_builtin_const): Likewise.
9633         (builtin_description): Likewise.
9634
9635         * config/i386/i386.opt (ix86_isa_flags): Replace int with
9636         HOST_WIDE_INT.
9637         (ix86_isa_flags_explicit): Likewise.
9638         (x_ix86_isa_flags_explicit): Likewise.
9639
9640 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
9641
9642         PR rtl-optimization/50107
9643         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
9644         (ira_hard_reg_in_set_p): New.
9645
9646         * ira-color.c (calculate_saved_nregs): New.
9647         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
9648         hard regs.
9649         (allocno_reload_assign, fast_allocation): Use
9650         ira_hard_reg_set_intersection_p instead of
9651         ira_hard_reg_not_in_set_p.
9652
9653         * ira.c (setup_reg_renumber): Use
9654         ira_hard_reg_set_intersection_p instead of
9655         ira_hard_reg_not_in_set_p.
9656         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
9657         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
9658
9659         * ira-costs.c (ira_tune_allocno_costs): Use
9660         ira_hard_reg_set_intersection_p instead of
9661         ira_hard_reg_not_in_set_p.
9662
9663 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9664             Igor Zamyatin <igor.zamyatin@intel.com>
9665
9666         * hwint.h (HOST_WIDE_INT_1): New.
9667
9668         * opt-functions.awk (switch_bit_fields): Initialize the
9669         host_wide_int field.
9670         (host_wide_int_var_name): New.
9671         (var_type_struct): Check and return HOST_WIDE_INT.
9672
9673         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
9674
9675         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
9676
9677         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
9678         check masks for HOST_WIDE_INT.
9679
9680         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
9681         (option_enabled): Likewise.
9682         (get_option_state): Likewise.
9683
9684         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
9685         to HOST_WIDE_INT.
9686
9687 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9688             Marc Glisse  <marc.glisse@normalesup.org>
9689
9690         PR libstdc++-v3/1773
9691         * target.def (decl_mangling_context): New C++ hook.
9692         * doc/tm.texi: Regenerate.
9693         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
9694         * config/sol2-protos.h: Group by source file.
9695         (solaris_cxx_decl_mangling_context): Declare.
9696         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
9697         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
9698         Use $<.
9699         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
9700         Add sol2-stubs.o to extra_objs.
9701
9702 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
9703
9704         PR target/50009
9705         * stor-layout.c (update_alignment_for_field): Don't ICE on
9706         packed flexible array members if ms_bitfield_layout_p.
9707
9708         PR target/50092
9709         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
9710         on the result before returning it.
9711
9712         PR debug/50017
9713         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
9714         is a debug stmt, use location of the first non-debug stmt after it.
9715
9716 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
9717
9718         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
9719         (arm_size_rtx_costs): Likewise.
9720
9721 2011-08-18  Richard Guenther  <rguenther@suse.de>
9722
9723         * tree.h (tree_int_cst_msb): Remove.
9724         * tree.c (tree_int_cst_msb): Likewise.
9725         (tree_int_cst_sign_bit): Move from ...
9726         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
9727
9728 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
9729
9730         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
9731         * doc/tm.texi: Regenerate.
9732         * target.def (rtx_costs): Add an opno parameter.
9733         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
9734         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
9735         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
9736         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
9737         * cse.c (COST_IN): Add an opno parameter.
9738         (notreg_cost): Likewise.  Update call to rtx_cost.
9739         (COST, fold_rtx): Update accordingly.
9740         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
9741         * expmed.c (emit_store_flag): Likewise.
9742         * optabs.c (avoid_expensive_constant): Add an opno parameter.
9743         Update call to rtx_cost.
9744         (expand_binop_directly, expand_binop): Likewise.
9745         (expand_twoval_binop, prepare_cmp_insn): Likewise.
9746         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
9747         (set_src_cost, get_full_set_src_cost): Update accordingly.
9748         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
9749         to target hook.
9750         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
9751         (default_adress_cost): Update calls to rtx_cost.
9752
9753         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
9754         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
9755         (arm_rtx_costs): Add an opno parameter.
9756         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
9757         adjust any recursive rtx-cost calls.
9758         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
9759         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9760         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
9761         * config/cris/cris.c (cris_rtx_costs): Likewise.
9762         * config/frv/frv.c (frv_rtx_costs): Likewise.
9763         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
9764         * config/i386/i386.c (ix86_rtx_costs): Likewise.
9765         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
9766         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
9767         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
9768         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
9769         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
9770         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
9771         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
9772         * config/mep/mep.c (mep_rtx_cost): Likewise.
9773         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
9774         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
9775         (mips_zero_extend_cost): Add an opno parameter.
9776         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
9777         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
9778         to rtx_cost.
9779         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
9780         rtx-cost calls.
9781         * config/pa/pa.c (hppa_rtx_costs): Likewise.
9782         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
9783         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
9784         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
9785         (rs6000_debug_rtx_costs): Likewise.
9786         * config/s390/s390.c (s390_rtx_costs): Likewise.
9787         * config/score/score-protos.h (score_rtx_costs): Likewise.
9788         * config/score/score.c (score_rtx_costs): Likewise.
9789         * config/sh/sh.c (andcosts): Update call to rtx_cost.
9790         (sh_rtx_costs): Add an opno parameter.
9791         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
9792         * config/spu/spu.c (spu_rtx_costs): Likewise.
9793         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
9794         * config/v850/v850.c (v850_rtx_costs): Likewise.
9795         * config/vax/vax.c (vax_rtx_costs): Likewise.
9796         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
9797
9798 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
9799
9800         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
9801         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
9802         rtx_cost.
9803         * calls.c (precompute_register_parameters): Likewise.
9804         * combine.c (expand_compound_operation, make_extraction): Likewise.
9805         (force_to_mode, distribute_and_simplify_rtx): Likewise.
9806         * dse.c (find_shift_sequence): Likewise.
9807         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
9808         * expr.c (compress_float_constant): Likewise.
9809         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
9810         * gcse.c (want_to_gcse_p): Likewise.
9811         * ifcvt.c (noce_try_sign_mask): Likewise.
9812         * loop-doloop.c (doloop_optimize): Likewise.
9813         * loop-invariant.c (create_new_invariant): Likewise.
9814         * optabs.c (avoid_expensive_constant): Likewise.
9815         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
9816         (try_replace_in_use, reload_cse_move2add): Likewise.
9817         * reload1.c (calculate_elim_costs_all_insns): Likewise.
9818         (note_reg_elim_costly): Likewise.
9819         * rtlanal.c (insn_rtx_cost): Likewise.
9820         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9821         * stmt.c (lshift_cheap_p): Likewise.
9822         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
9823         * config/avr/avr.c (final_prescan_insn): Likewise.
9824         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9825         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
9826
9827 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
9828
9829         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
9830         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
9831         * cfgloopanal.c (seq_cost): Likewise.
9832         * loop-invariant.c (create_new_invariant): Likewise.
9833         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
9834         (reload_cse_move2add): Use get_full_set_rtx_cost.
9835
9836 2011-08-18  Richard Guenther  <rguenther@suse.de>
9837
9838         * expr.c (get_inner_reference): Fix typo in last change.
9839
9840 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
9841             Joseph Myers  <joseph@codesourcery.com>
9842
9843         PR tree-optimization/49963
9844         * hwint.c (absu_hwi): Define.
9845         * hwint.h (absu_hwi): Declare.
9846         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
9847         of abs_hwi.
9848         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
9849         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
9850
9851 2011-08-18  Richard Guenther  <rguenther@suse.de>
9852
9853         * expr.c (get_inner_reference): Sign-extend the constant
9854         twos-complement offset before doing arbitrary precision
9855         arithmetic on it.
9856         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
9857         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
9858         to get_constraint_for_ptr_offset.
9859
9860 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
9861
9862         PR target/50068
9863         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
9864
9865 2011-08-17  Richard Guenther  <rguenther@suse.de>
9866
9867         * tree.h (convert_to_ptrofftype_loc): New function.
9868         (convert_to_ptrofftype): Define.
9869         * builtins.c (expand_builtin_bzero): Use size_type_node.
9870         (fold_builtin_bzero): Likewise.
9871         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
9872         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
9873         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
9874         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
9875         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
9876         * fold-const.c (build_range_check): Negate using the original type.
9877         (fold_unary_loc): Use fold_build_pointer_plus_loc.
9878         * gimple-fold.c (gimple_adjust_this_by_delta): Use
9879         convert_to_ptrofftype.
9880         * gimplify.c (gimplify_self_mod_expr): Likewise.
9881         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
9882         (graphite_create_new_loop_guard): Likewise.
9883         * graphite-sese-to-poly.c (my_long_long): Remove.
9884         (scop_ivs_can_be_represented): Adjust.
9885         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
9886         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
9887         * tree-loop-distribution.c (build_size_arg_loc): Use
9888         size_type_node.
9889         (generate_memset_zero): Simplify.
9890         * tree-mudflap.c: Use fold_convert, not convert.
9891         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
9892         its own type.
9893         (determine_offset): Likewise for DR_STEP.
9894         (valid_initializer_p): Likewise.
9895         * tree-profile.c (prepare_instrumented_value): Convert the pointer
9896         to an integer type of same size.
9897         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
9898         to sizetype without need.
9899         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
9900         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
9901         * tree-ssa-loop-manip.c (create_iv): Likewise.
9902         (determine_exit_conditions): Adjust comment.
9903         * tree-ssa-pre.c (create_expression_by_pieces): Use
9904         convert_to_ptrofftype.
9905         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
9906         * varasm.c (array_size_for_constructor): Compute using double_ints.
9907
9908 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9909
9910         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
9911         when generating an integer result where possible.  Short-cut
9912         comparison against 0 also for QImode.
9913
9914 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9915
9916         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
9917         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
9918         prototype.
9919         * config/spu/spu.c (spu_legitimize_reload_address): New function.
9920         (spu_legitimate_address_p): Do not check displacement if the base
9921         is an eliminable stack register.
9922
9923 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
9924
9925         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
9926         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
9927         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
9928         m32c_preferred_output_reload_class): Remove.
9929         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
9930         Change rclass argument and return types to reg_class_t. Use
9931         reg_class_subset_p instead of class_sizes.
9932         (m32c_preferred_output_reload_class): Make static. Change rclass
9933         argument and return types to reg_class_t.
9934         (TARGET_PREFERRED_RELOAD_CLASS,
9935         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9936
9937 2011-08-16  Kai Tietz  <ktietz@redhat.com>
9938
9939         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
9940
9941 2011-08-16  Richard GUenther  <rguenther@suse.de>
9942
9943         PR tree-optimization/50082
9944         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
9945         warnings here, instead of ...
9946         (ssa_forward_propagate_and_combine): ... here.
9947         (forward_propagate_into_comparison_1): Adjust.
9948         (forward_propagate_into_comparison): Likewise.
9949         (forward_propagate_into_gimple_cond): Likewise.
9950         (forward_propagate_into_cond): Likewise.
9951
9952 2011-08-16  Andreas Schwab  <schwab@redhat.com>
9953
9954         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
9955         instead of ggc_alloc_zone_vec_rtvec_def.
9956
9957 2011-08-16  Richard Guenther  <rguenther@suse.de>
9958
9959         * tree.h (ptrofftype_p): New helper function.
9960         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
9961         offset verification.
9962         (verify_gimple_assign_binary): Likewise.
9963         * tree.c (build2_stat): Likewise.
9964         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
9965         (reset_evolution_in_loop): Likewise.
9966         * tree-chrec.h (build_polynomial_chrec): Likewise.
9967
9968 2011-08-16  Liang Wang  <lwang1@marvell.com>
9969
9970         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
9971         ggc_alloc_zone_vec_rtvec_def.
9972
9973 2011-08-16  Richard Guenther  <rguenther@suse.de>
9974
9975         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
9976         helper factored out from ...
9977         (extract_range_from_binary_expr_1): ... here.  Re-structure
9978         to not glob handling too different tree codes.
9979
9980 2011-08-15  Richard Henderson  <rth@redhat.com>
9981
9982         PR middle-end/50006
9983         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
9984         setting out to include allocate_stack named pattern as well.
9985         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
9986         * stmt.c (expand_stack_restore): Likewise.
9987
9988 2011-08-15  Richard Guenther  <rguenther@suse.de>
9989
9990         PR middle-end/50082
9991         * fold-const.c (maybe_canonicalize_comparison_1): Properly
9992         convert the modified operand to the other operand type.
9993         (fold_comparison): Call maybe_canonicalize_comparison_1 with
9994         useless conversions stripped from comparison operands.
9995
9996 2011-08-15  Richard Guenther  <rguenther@suse.de>
9997
9998         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
9999         (extract_range_from_unary_expr_1): Restructure.
10000
10001 2011-08-15  Richard Guenther  <rguenther@suse.de>
10002
10003         PR tree-optimization/50058
10004         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
10005         copy matching.
10006
10007 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10008
10009         PR target/50022
10010         * config/arm/arm.c (output_move_double): Add 2 parameters
10011         to count the number of insns emitted and whether to emit or not.
10012         Use the flag to decide when to emit and count number of instructions
10013         that will be emitted.
10014         Handle case where output_move_double might be called for calculating
10015         lengths with an invalid constant.
10016         (arm_count_output_move_double_insns): Define.
10017         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
10018         (output_move_double): Adjust prototype.
10019         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
10020         output_move_double.
10021         ("*movdi_vfp_cortexa8"): Likewise and add attribute
10022         for ce_count.
10023         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
10024         ("*movdf_soft_insn"): Likewise.
10025         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
10026         ("*cirrus_thumb2_movdi"): Likewise.
10027         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
10028         ("*cirrus_movdf_hard_insn"): Likewise.
10029         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
10030         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
10031         ("mov<mode>_internal VMMX"): Likewise.
10032         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
10033
10034 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
10035
10036         * config/i386/i386.c (ix86_expand_round_sse4): New function.
10037         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
10038         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
10039         for TARGET_ROUND.
10040
10041         (rint<mode>2): Simplify TARGET_ROUND check.
10042         (floor<mode>2): Ditto.
10043         (ceil<mode>2): Ditto.
10044         (btrunc<mode>2): Ditto.
10045
10046 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
10047
10048         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
10049         as mmix_preferred_output_reload_class.
10050
10051 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
10052
10053         * PR target/49903
10054         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
10055         (branch_unspec): New insn.
10056         (branch): Beauty farm.
10057         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
10058         to be IF_THEN_ELSE.
10059         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
10060         New static functions.
10061         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
10062         Use CONST_INT_P.  Beauty.
10063
10064 2011-08-12  Richard Henderson  <rth@redhat.com>
10065
10066         PR rtl-opt/49994
10067         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
10068         * sched-deps.c (init_deps): Clear it.
10069         (deps_analyze_insn): Consume it.
10070         (sched_analyze_insn): Fill it.
10071
10072 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10073
10074         PR target/48328
10075         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
10076         for tbh instructions.
10077
10078 2011-08-12  Diego Novillo  <dnovillo@google.com>
10079
10080         * data-streamer.h (streamer_write_zero): Rename from output_zero.
10081         (streamer_write_uhwi): Rename from lto_output_uleb128.
10082         (streamer_write_hwi): Rename from output_sleb128.
10083         (streamer_write_string): Rename from lto_output_string.
10084         (streamer_string_index): Rename from lto_string_index.
10085         (streamer_write_string_with_length): Rename from
10086         lto_output_string_with_length.
10087         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
10088         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
10089         (streamer_read_string): Rename from lto_input_string.
10090         (streamer_read_indexed_string): Rename from input_string_internal.
10091         (streamer_read_uhwi): Rename from lto_input_uleb128.
10092         (streamer_read_hwi): Rename from lto_input_sleb128.
10093         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
10094         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
10095         (streamer_write_enum): Rename from lto_output_enum.
10096         (streamer_read_enum): Rename from lto_input_enum.
10097         (streamer_write_record_start): Rename from output_record_start.
10098         (streamer_read_record_start): Rename from input_record_start.
10099         (streamer_write_bitpack): Rename from lto_output_bitpack.
10100         (streamer_read_bitpack): Rename from lto_input_bitpack.
10101         (streamer_write_char_stream): Rename from lto_output_1_stream.
10102         (streamer_read_uchar): Rename from lto_input_1_unsigned.
10103         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
10104         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
10105         (streamer_read_string_cst): Rename from input_string_cst.
10106         (streamer_read_chain): Rename from lto_input_chain.
10107         (streamer_alloc_tree): Rename from lto_materialize_tree.
10108         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
10109         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
10110         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
10111         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
10112         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
10113         (streamer_write_chain): Rename from lto_output_chain.
10114         (streamer_write_tree_header): Rename from lto_output_tree_header.
10115         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
10116         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
10117         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
10118         (streamer_write_builtin): Rename from lto_output_builtin_tree.
10119         (streamer_check_handled_ts_structures): Rename from
10120         check_handled_ts_structures.
10121         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
10122         (streamer_tree_cache_insert_at): Rename from
10123         lto_streamer_cache_insert_at.
10124         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
10125         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
10126         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
10127         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
10128         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
10129         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
10130         (write_identifier): Rename from output_identifier.
10131         (write_ts_common_tree_pointers): Rename from
10132         lto_output_ts_common_tree_pointers.
10133         (write_ts_vector_tree_pointers): Rename from
10134         lto_output_ts_vector_tree_pointers.
10135         (write_ts_complex_tree_pointers): Rename from
10136         lto_output_ts_complex_tree_pointers.
10137         (write_ts_decl_minimal_tree_pointers): Rename from
10138         lto_output_ts_decl_minimal_tree_pointers.
10139         (write_ts_decl_common_tree_pointers): Rename from
10140         lto_output_ts_decl_common_tree_pointers.
10141         (write_ts_decl_non_common_tree_pointers): Rename from
10142         lto_output_ts_decl_non_common_tree_pointers.
10143         (write_ts_decl_with_vis_tree_pointers): Rename from
10144         lto_output_ts_decl_with_vis_tree_pointers.
10145         (write_ts_field_decl_tree_pointers): Rename from
10146         lto_output_ts_field_decl_tree_pointers.
10147         (write_ts_function_decl_tree_pointers): Rename from
10148         lto_output_ts_function_decl_tree_pointers.
10149         (write_ts_type_common_tree_pointers): Rename from
10150         lto_output_ts_type_common_tree_pointers.
10151         (write_ts_type_non_common_tree_pointers): Rename from
10152         lto_output_ts_type_non_common_tree_pointers.
10153         (write_ts_list_tree_pointers): Rename from
10154         lto_output_ts_list_tree_pointers.
10155         (write_ts_vec_tree_pointers): Rename from
10156         lto_output_ts_vec_tree_pointers.
10157         (write_ts_exp_tree_pointers): Rename from
10158         lto_output_ts_exp_tree_pointers.
10159         (write_ts_block_tree_pointers): Rename from
10160         lto_output_ts_block_tree_pointers.
10161         (write_ts_binfo_tree_pointers): Rename from
10162         lto_output_ts_binfo_tree_pointers.
10163         (write_ts_constructor_tree_pointers): Rename from
10164         lto_output_ts_constructor_tree_pointers.
10165         (write_ts_target_option): Rename from lto_output_ts_target_option.
10166         (write_ts_translation_unit_decl_tree_pointers): Rename from
10167         lto_output_ts_translation_unit_decl_tree_pointers.
10168         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
10169         Rename from lto_streamer_cache_add_to_node_array.
10170         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
10171         (record_common_node): Rename from lto_record_common_node.
10172
10173         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
10174         declarations.
10175         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
10176         function.
10177         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
10178         unused function.
10179         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
10180         (ipa-reference.o): Likewise.
10181         * lto-section-out.c: Include data-streamer.h.
10182         * ipa-reference.c: Include data-streamer.h.
10183
10184 2011-08-12  Nick Clifton  <nickc@redhat.com>
10185
10186         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
10187         * doc/md.texi (cmpstrn): Note that the comparison stops if both
10188         fetched bytes are zero.
10189         (cmpstr): Likewise.
10190         (cmpmem): Note that the comparison does not stop if both of the
10191         fetched bytes are zero.
10192
10193 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
10194
10195         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
10196         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
10197         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
10198         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
10199         to integer_type_node.
10200         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
10201         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
10202         * builtins.c (expand_builtin_in): Ditto.
10203         (mathfn_built_in_1): Ditto.
10204         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
10205         BUILT_IN_IFLOOR.
10206         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
10207         BUILT_IN_IROUND.
10208         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
10209         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
10210         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
10211
10212 2011-08-12  Richard Guenther  <rguenther@suse.de>
10213
10214         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
10215
10216 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
10217
10218         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
10219
10220 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
10221
10222         * config/arm/arm.c (get_label_padding): New function.
10223         (create_fix_barrier, arm_reorg): Use it.
10224
10225 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
10226
10227         PR target/49781
10228         * config/i386/i386.md (*lea_5_zext): New.
10229         (*lea_6_zext): Ditto.
10230         * config/i386/predicates.md (const_32bit_mask): New predicate.
10231         (lea_address_operand): Reject AND.
10232         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
10233         const_32bit_mask immediate.
10234         (ix86_print_operand_address): Handle AND.
10235         (memory_address_length): Ditto.
10236
10237 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
10238             Brian Hackett  <bhackett1024@gmail.com>
10239
10240         * plugin.def: Add event for finish_decl.
10241         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
10242         * c-decl.c (finish_decl): Invoke callbacks on above event.
10243         * doc/plugins.texi: Document above event.
10244
10245 2011-08-11  Richard Guenther  <rguenther@suse.de>
10246
10247         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
10248         lookups, make looking through aggregate copies stronger.
10249
10250 2011-08-11  Richard Henderson  <rth@redhat.com>
10251
10252         PR bootstrap/50018
10253         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
10254
10255 2011-08-11  Richard Guenther  <rguenther@suse.de>
10256
10257         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
10258         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
10259         (vrp_visit_stmt): Likewise.
10260
10261 2011-08-11  Richard Guenther  <rguenther@suse.de>
10262
10263         PR middle-end/50040
10264         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
10265         load of the other piece with TREE_NO_WARNING.
10266         * tree-flow.h (warn_uninit): Adjust prototype.
10267         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
10268         the base variable and the expression that is used separately.
10269         Properly query all TREE_NO_WARNING flags.
10270         (struct walk_data): Remove.
10271         (warn_uninitialized_var): Likewise.
10272         (warn_uninitialized_vars): Do not walk gimple pieces but simply
10273         look at all SSA uses of the statement.  Handle unused memory
10274         separately.
10275         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
10276
10277 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
10278
10279         * config/rx/rx.md (movsicc): Allow register to register transfers.
10280         (*movsicc): Likewise.
10281         (*stcc): Restrict this pattern to EQ and NE compares.
10282         (*stcc_reg): New pattern.  Works for any comparison but only for
10283         register transfers.
10284
10285 2011-08-11   Diego Novillo  <dnovillo@google.com>
10286
10287         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
10288         Call stream_write_tree instead of output_record_start.
10289         (lto_output_ts_binfo_tree_pointers): Likewise.
10290
10291         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
10292         Convert it to a macro.
10293         (stream_read_tree): Likewise.
10294
10295         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
10296         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
10297
10298         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
10299         and tree_read_bitfields.
10300         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
10301         (lto_write_tree): Call it.
10302         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
10303         * streamer-hooks.h (struct streamer_hooks): Remove fields
10304         name, is_streamable and alloc_tree. Update all users.
10305         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
10306         (lto_materialize_tree): ... here.
10307         Handle CALL_EXPR codes.
10308         Remove call to lto_streamer_cache_append.
10309         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
10310         * tree-streamer.h (tree_read_bitfields): Declare.
10311
10312         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
10313         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
10314         * tree-streamer.h (stream_read_tree): New.  Replace all calls
10315         to lto_input_tree with it.
10316         (stream_write_tree): New.  Replace all calls to lto_output_tree,
10317         lto_output_tree_ref and lto_output_tree_or_ref with it.
10318         * lto-streamer-in.c (lto_read_tree): Inline code from
10319         lto_streamer_read_tree.
10320         (lto_input_tree): Move from tree-streamer-in.c.
10321         * lto-streamer-out.c (lto_output_tree_ref): Make static.
10322         Remove handling of NULL values for EXPR.
10323         Do not handle EXPRs that are not indexable.
10324         (lto_write_tree): Move from tree-streamer-out.c.
10325         Inline lto_streamer_write_tree.
10326         (lto_output_tree): Move from tree-streamer-out.c.
10327         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
10328         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
10329         (lto_preload_common_nodes): Likewise.
10330         Remove assertions and adjustments for nodes
10331         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
10332         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
10333         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
10334         * lto-streamer.h (lto_input_tree): Declare.
10335         (lto_output_tree_ref): Remove.
10336         * streamer-hooks.h (struct streamer_hooks): Remove fields
10337         preload_common_nodes, indexable_with_decls_p,
10338         pack_value_fields, unpack_value_fields and output_tree_header.
10339         Update all users.
10340         * tree-streamer-in.c (lto_materialize_tree): Make extern.
10341         (lto_input_tree_pointers): Likewise.
10342         (lto_read_tree): Move to lto-streamer-in.c.
10343         (lto_input_integer_cst): Make extern.
10344         (lto_get_pickled_tree): Likewise.
10345         (lto_get_builtin_tree): Likewise.
10346         (lto_input_tree): Move to lto-streamer-in.c.
10347         * tree-streamer-out.c (pack_value_fields): Make extern.
10348         (lto_output_tree_or_ref): Remove.  Replace all callers with
10349         calls to stream_write_tree.
10350         (lto_output_builtin_tree): Make extern.
10351         (lto_streamer_write_tree): Inline into lto_write_tree.
10352         (lto_output_tree_pointers): Make extern.
10353         (lto_output_tree_header): Likewise.
10354         (lto_output_integer_cst): Likewise.
10355         (lto_write_tree): Move to lto-streamer-out.c.
10356         (lto_output_tree): Likewise.
10357         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
10358         (preload_common_nodes): Likewise.
10359         (lto_streamer_cache_create): Call it.
10360         * tree-streamer.h: Include streamer-hooks.h.
10361         (stream_write_tree): New.
10362         (stream_read_tree): New.
10363         (lto_input_tree): Remove.
10364         (lto_materialize_tree): Declare.
10365         (lto_input_tree_pointers): Declare.
10366         (lto_get_pickled_tree): Declare.
10367         (lto_get_builtin_tree): Declare.
10368         (lto_input_integer_cst): Declare.
10369         (lto_output_tree_header): Declare.
10370         (pack_value_fields): Declare.
10371         (lto_output_tree_pointers): Declare.
10372         (lto_output_integer_cst): Declare.
10373         (lto_output_builtin_tree): Declare.
10374
10375 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
10376
10377         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
10378         only if producer writes to the register given by regno.
10379
10380 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
10381             Alexander Monakov  <amonakov@ispras.ru>
10382
10383         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
10384         (sched_get_condition_with_rev_uncached): ... this.  Factor out
10385         condition caching logic into ...
10386         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
10387         attempt to use cache for instructions with zero luid.
10388         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
10389         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
10390
10391 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
10392
10393         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
10394         get_seqno_for_a_jump.  Update the caller.
10395         (get_seqno_by_succs): New.  Use it ...
10396         (get_seqno_for_a_jump): ... here to find a seqno if looking at
10397         predecessors was not sufficient.
10398         (get_seqno_by_preds): Include head in iteration range, exclude insn.
10399
10400 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
10401
10402         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
10403
10404 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
10405
10406         * sel-sched-ir.h (register_unavailable_p): Declare.
10407         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
10408         (set_unavailable_target_for_expr): ... here to properly test
10409         availability of a register.
10410         (speculate_expr): Ditto.
10411         * sel-sched.c (substitute_reg_in_expr): Ditto.
10412         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
10413
10414 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
10415
10416         * sel-sched.c (verify_target_availability): Fix usage of
10417         hard_regno_nregs.
10418
10419 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
10420
10421         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
10422         recognized by cannot_copy_insn_p hook and volatile instructions.
10423
10424 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
10425
10426         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
10427
10428 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
10429
10430         * doc/md.texi (define_bypass): Say that the instruction names can
10431         be filename-style globs.
10432         * Makefile.in (FNMATCH_H): Define.
10433         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
10434         * genattrtab.c: Include fnmatch.h.
10435         (bypass_list): Change field name from "insn" to "pattern".
10436         (gen_bypass_1): Update accordingly.
10437         (process_bypasses): Use fnmatch to check for matches between
10438         insn reservations and define_bypasses.
10439         * genautomata.c: Include fnmatch.h.
10440         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
10441         and out_pattern respectively.
10442         (gen_bypass, insert_bypass): Update accordingly.
10443         (for_each_matching_insn, process_bypass_2, process_bypass_1)
10444         (process_bypass): New functions.
10445         (process_decls): Use process_bypass.  Update after field name changes.
10446
10447 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
10448
10449         PR target/49687
10450         * config/avr/avr.md (smulqi3_highpart): New insn.
10451         (umulqi3_highpart): New insn.
10452         (*subqi3.ashiftrt7): New insn.
10453         (smulhi3_highpart): New expander.
10454         (umulhi3_highpart): Nex expander.
10455         (*smulhi3_highpart_call): New insn.
10456         (*umulhi3_highpart_call): New insn.
10457         (extend_u): New code attribute.
10458         (extend_prefix): Rename code attribute to extend_su.
10459         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
10460         widening QI/HI multiply.
10461
10462 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
10463
10464         PR tree-optimization/50039
10465         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
10466         that DEF_STMT has a stmt_vec_info.
10467
10468 2011-08-10  Richard Guenther  <rguenther@suse.de>
10469
10470         * tree.h (can_trust_pointer_alignment): Remove.
10471         * builtins.c (can_trust_pointer_alignment): Remove.
10472
10473 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
10474
10475         * c-typeck.c (scalar_to_vector): New function. Try scalar to
10476         vector conversion.
10477         (stv_conv): New enum for scalar_to_vector return type.
10478         (build_binary_op): Adjust.
10479         * doc/extend.texi: Description of scalar to vector expansion.
10480
10481 2011-08-10  Richard Guenther  <rguenther@suse.de>
10482
10483         * tree.h (get_pointer_alignment): Remove max-align argument.
10484         (get_object_alignment): Likewise.
10485         * builtins.c (get_object_alignment_1): Adjust.
10486         (get_object_alignment): Remove max-align argument.
10487         (get_pointer_alignment): Likewise.
10488         (expand_builtin_strlen): Adjust.
10489         (expand_builtin_memcpy): Likewise.
10490         (expand_builtin_mempcpy_args): Likewise.
10491         (expand_builtin_strncpy): Likewise.
10492         (expand_builtin_memset_args): Likewise.
10493         (expand_builtin_memcmp): Likewise.
10494         (expand_builtin_strcmp): Likewise.
10495         (expand_builtin_strncmp): Likewise.
10496         (get_builtin_sync_mem): Likewise.
10497         (fold_builtin_memset): Likewise.
10498         (fold_builtin_memory_op): Likewise.
10499         (expand_builtin_memory_chk): Likewise.
10500         * emit-rtl.c (get_mem_align_offset): Likewise.
10501         (set_mem_attributes_minus_bitpos): Likewise.
10502         * expr.c (expand_assignment): Likewise.
10503         (expand_expr_real_1): Likewise.
10504         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
10505         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
10506         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
10507         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
10508         * value-prof.c (gimple_stringops_transform): Likewise.
10509
10510 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
10511
10512         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
10513         * doc/tm.texi: Regenerate.
10514
10515 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
10516
10517         PR target/29560
10518         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
10519         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
10520         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
10521         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
10522         shift target is unused.
10523
10524 2011-08-10  Richard Guenther  <rguenther@suse.de>
10525
10526         PR tree-optimization/49937
10527         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
10528         using get_object_alignment_1.
10529
10530 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
10531
10532         * config/i386/i386.c (ix86_emit_i387_round): New function.
10533         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
10534         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
10535         Use ix86_emit_i387_round to expand round function for i387 math.
10536         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
10537         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
10538
10539 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10540
10541         * config/sync.c: Move to ../libgcc.
10542         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
10543         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
10544         Remove.
10545
10546 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
10547
10548         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
10549         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
10550         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
10551         Change 'from' and 'to' arguments type to reg_class_t.
10552         (TARGET_REGISTER_MOVE_COST): Define.
10553
10554 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
10555
10556         PR target/50026
10557         Revert:
10558         PR rtl-optimization/49990
10559         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
10560         ignore classes which can not change mode.
10561         (find_costs_and_classes): Ditto.
10562
10563 2011-08-09  Richard Guenther  <rguenther@suse.de>
10564
10565         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
10566         information for ranges with only negative values.
10567         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
10568         BIT_AND_EXPR handling to handle ranges with negative values.
10569
10570 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
10571
10572         * config/i386/i386.c: Remove traling spaces.
10573         * config/i386/sse.md: Likewise.
10574         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
10575         (*fma_fmsub_<mode>): Likewise.
10576         (*fma_fnmadd_<mode>): Likewise.
10577         (*fma_fnmsub_<mode>): Likewise.
10578
10579 2011-08-09  Nick Clifton  <nickc@redhat.com>
10580
10581         * config/rx/rx.md: Disable extender peepholes at -O3.
10582
10583 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
10584
10585         PR target/49781
10586         * config/i386/i386.md (reload_noff_load): New.
10587         (reload_noff_store): Ditto.
10588         * config/i386/i386.c (ix86_secondary_reload): Use
10589         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
10590         double-word moves from/to non-offsetable addresses instead of
10591         generating XMM temporary.
10592
10593 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
10594
10595         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
10596
10597 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
10598
10599         PR tree-optimization/50014
10600         * tree-vect-loop.c (vectorizable_reduction): Get def type before
10601         calling vect_get_vec_def_for_stmt_copy ().
10602
10603 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
10604
10605         PR rtl-optimization/49990
10606         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
10607         ignore classes which can not change mode.
10608         (find_costs_and_classes): Ditto.
10609
10610 2011-08-08  Richard Henderson  <rth@redhat.com>
10611
10612         PR middle-end/49990
10613         * config/i386/i386.c (ix86_expand_prologue): Call
10614         for SEH target gen_prologue_use instead of gen_blockage
10615         at prologue's end.
10616
10617 2011-08-08  Martin Jambor  <mjambor@suse.cz>
10618
10619         PR middle-end/49923
10620         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
10621         memory alignment.
10622
10623 2011-08-08   Diego Novillo  <dnovillo@google.com>
10624
10625         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
10626         (DATA_STREAMER_H): New.
10627         (GIMPLE_STREAMER_H): New.
10628         (TREE_STREAMER_H): New.
10629         (STREAMER_HOOKS_H): New.
10630         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
10631         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
10632         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
10633         (data-streamer.o): New.
10634         (data-streamer-in.o): New.
10635         (data-streamer-out.o): New.
10636         (gimple-streamer-in.o): New.
10637         (gimple-streamer-out.o): New.
10638         (streamer-hooks.o): New.
10639         (tree-streamer.o): New.
10640         (tree-streamer-in.o): New.
10641         (tree-streamer-out.o): New.
10642         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
10643         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
10644         GIMPLE_STREAMER_H and TREE_STREAMER_H.
10645         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
10646         GIMPLE_STREAMER_H and TREE_STREAMER_H.
10647         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
10648         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
10649         (ipa-inline-analysis.o): Likewise.
10650         (ipa-pure-const.o): Likewise.
10651         * data-streamer-in.c: New.
10652         * data-streamer-out.c: New.
10653         * data-streamer.c: New.
10654         * data-streamer.h: New.
10655         * gimple-streamer-in.c: New.
10656         * gimple-streamer-out.c: New.
10657         * gimple-streamer.h: New.
10658         * ipa-inline-analysis.c: Include data-streamer.h.
10659         * ipa-prop.c: Include data-streamer.h.
10660         * ipa-pure-const.c: Include data-streamer.h.
10661         * lto-cgraph.c: Include data-streamer.h.
10662         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
10663         (lto_input_widest_uint_uleb128): Likewise.
10664         (lto_input_sleb128): Likewise.
10665         (bp_unpack_var_len_unsigned): Likewise.
10666         (bp_unpack_var_len_int): Likewise.
10667         * lto-section-out.c (lto_output_uleb128_stream): Move to
10668         data-streamer-out.c.
10669         (lto_output_widest_uint_uleb128_stream): Likewise.
10670         (lto_output_sleb128_stream): Likewise.
10671         (bp_pack_var_len_unsigned): Likewise.
10672         (bp_pack_var_len_int): Likewise.
10673         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
10674         (struct string_slot): Remove.  Update all users.
10675         (lto_tag_check_set): Make extern.
10676         (lto_tag_check_range): Move to lto-streamer.h.
10677         (lto_tag_check): Likewise.
10678         (hash_string_slot_node): Remove.  Update all users.
10679         (eq_string_slot_node): Remove.  Update all users.
10680         (string_for_index): Move to data-streamer-in.c
10681         (input_string_internal): Likewise.
10682         (input_string_cst): Move to tree-streamer-in.c.
10683         (input_identifier): Likewise.
10684         (lto_input_string): Move to data-streamer-in.c
10685         (input_record_start): Move to data-streamer.h
10686         (canon_file_name): Use new definition of struct string_slot
10687         from data-streamer.h.  Set S_SLOT.LEN.
10688         (lto_input_location): Make extern.
10689         (lto_input_chain): Move to tree-streamer-in.c.
10690         (lto_init_eh): Make extern.
10691         (input_phi): Move to gimple-streamer-in.c.
10692         (input_gimple_stmt): Likewise.
10693         (input_bb): Likewise.
10694         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
10695         (unpack_ts_real_cst_value_fields): Likewise.
10696         (unpack_ts_fixed_cst_value_fields): Likewise.
10697         (unpack_ts_decl_common_value_fields): Likewise.
10698         (unpack_ts_decl_wrtl_value_fields): Likewise.
10699         (unpack_ts_decl_with_vis_value_fields): Likewise.
10700         (unpack_ts_function_decl_value_fields): Likewise.
10701         (unpack_ts_type_common_value_fields): Likewise.
10702         (unpack_ts_block_value_fields): Likewise.
10703         (unpack_ts_translation_unit_decl_value_fields): Likewise.
10704         (unpack_value_fields): Likewise.
10705         (lto_materialize_tree): Likewise.
10706         (lto_input_ts_common_tree_pointers): Likewise.
10707         (lto_input_ts_vector_tree_pointers): Likewise.
10708         (lto_input_ts_complex_tree_pointers): Likewise.
10709         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
10710         (lto_input_ts_decl_common_tree_pointers): Likewise.
10711         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
10712         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
10713         (lto_input_ts_field_decl_tree_pointers): Likewise.
10714         (lto_input_ts_function_decl_tree_pointers): Likewise.
10715         (lto_input_ts_type_common_tree_pointers): Likewise.
10716         (lto_input_ts_type_non_common_tree_pointers): Likewise.
10717         (lto_input_ts_list_tree_pointers): Likewise.
10718         (lto_input_ts_vec_tree_pointers): Likewise.
10719         (lto_input_ts_exp_tree_pointers): Likewise.
10720         (lto_input_ts_block_tree_pointers): Likewise.
10721         (lto_input_ts_binfo_tree_pointers): Likewise.
10722         (lto_input_ts_constructor_tree_pointers): Likewise.
10723         (lto_input_ts_target_option): Likewise.
10724         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
10725         (lto_input_tree_pointers): Likewise.
10726         (lto_get_pickled_tree): Likewise.
10727         (lto_get_builtin_tree): Likewise.
10728         (lto_read_tree): Likewise.
10729         (lto_input_integer_cst): Likewise.
10730         (lto_input_tree): Likewise.
10731         * lto-streamer-out.c: Include data-streamer.h,
10732         gimple-streamer.h and streamer-hooks.h.
10733         (struct string_slot): Move to data-streamer.h.
10734         (hash_string_slot_node): Likewise.
10735         (eq_string_slot_node): Likewise.
10736         (lto_string_index): Move to data-streamer-out.c.
10737         (lto_output_string_with_length): Likewise.
10738         (lto_output_string): Likewise.
10739         (output_string_cst): Move to tree-streamer-out.c.
10740         (output_identifier): Likewise.
10741         (output_zero): Move to data-streamer-out.c
10742         (output_uleb128): Likewise.
10743         (output_sleb128): Likewise.
10744         (output_record_start): Move to data-streamer.h
10745         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
10746         (pack_ts_real_cst_value_fields): Likewise.
10747         (pack_ts_fixed_cst_value_fields): Likewise.
10748         (pack_ts_decl_common_value_fields): Likewise.
10749         (pack_ts_decl_wrtl_value_fields): Likewise.
10750         (pack_ts_decl_with_vis_value_fields): Likewise.
10751         (pack_ts_function_decl_value_fields): Likewise.
10752         (pack_ts_type_common_value_fields): Likewise.
10753         (pack_ts_block_value_fields): Likewise.
10754         (pack_ts_translation_unit_decl_value_fields): Likewise.
10755         (pack_value_fields): Likewise.
10756         (lto_output_chain): Likewise.
10757         (lto_output_ts_common_tree_pointers): Likewise.
10758         (lto_output_ts_vector_tree_pointers): Likewise.
10759         (lto_output_ts_complex_tree_pointers): Likewise.
10760         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
10761         (lto_output_ts_decl_common_tree_pointers): Likewise.
10762         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
10763         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
10764         (lto_output_ts_field_decl_tree_pointers): Likewise.
10765         (lto_output_ts_function_decl_tree_pointers): Likewise.
10766         (lto_output_ts_type_common_tree_pointers): Likewise.
10767         (lto_output_ts_type_non_common_tree_pointers): Likewise.
10768         (lto_output_ts_list_tree_pointers): Likewise.
10769         (lto_output_ts_vec_tree_pointers): Likewise.
10770         (lto_output_ts_exp_tree_pointers): Likewise.
10771         (lto_output_ts_block_tree_pointers): Likewise.
10772         (lto_output_ts_binfo_tree_pointers): Likewise.
10773         (lto_output_ts_constructor_tree_pointers): Likewise.
10774         (lto_output_ts_target_option): Likewise.
10775         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
10776         (lto_output_tree_pointers): Likewise.
10777         (lto_output_tree_header): Likewise.
10778         (lto_output_builtin_tree): Likewise.
10779         (lto_write_tree): Likewise.
10780         (lto_output_integer_cst): Likewise.
10781         (lto_output_tree): Likewise.
10782         (output_phi): Move to gimple-streamer-out.c.
10783         (output_gimple_stmt): Likewise.
10784         (output_bb): Likewise.
10785         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
10786         (streamer_hooks): Move to streamer-hooks.c.
10787         (check_handled_ts_structures): Move to tree-streamer.c
10788         (lto_streamer_cache_add_to_node_array): Likewise.
10789         (lto_streamer_cache_insert_1): Likewise.
10790         (lto_streamer_cache_insert): Likewise.
10791         (lto_streamer_cache_insert_at): Likewise.
10792         (lto_streamer_cache_append): Likewise.
10793         (lto_streamer_cache_lookup): Likewise.
10794         (lto_streamer_cache_get): Likewise.
10795         (lto_record_common_node): Likewise.
10796         (lto_preload_common_nodes): Likewise.
10797         (lto_streamer_cache_create): Likewise.
10798         (lto_streamer_cache_delete): Likewise.
10799         (streamer_hooks_init): Move to streamer-hooks.c.
10800         * lto-streamer.h: Include diagnostic.h
10801         (struct output_block, struct lto_input_block,
10802         struct data_in, struct bitpack_d): Remove forward declarations.
10803         (struct bitpack_d): Move to data-streamer.h.
10804         (struct lto_streamer_cache_d): Move to tree-streamer.h.
10805         (struct streamer_hooks): Move to streamer-hooks.h.
10806         (bp_pack_var_len_unsigned): Move to data-streamer.h.
10807         (bp_pack_var_len_int): Likewise.
10808         (bp_unpack_var_len_unsigned): Likewise.
10809         (bp_unpack_var_len_int): Likewise.
10810         (lto_input_location): Declare.
10811         (lto_tag_check_set): Declare.
10812         (lto_init_eh): Declare.
10813         (lto_output_tree_ref): Declare.
10814         (lto_output_location): Declare.
10815         (bitpack_create): Move to data-streamer.h.
10816         (bp_pack_value): Likewise.
10817         (lto_output_bitpack): Likewise.
10818         (lto_input_bitpack): Likewise.
10819         (bp_unpack_value): Likewise.
10820         (lto_output_1_stream): Likewise.
10821         (lto_input_1_unsigned): Likewise.
10822         (lto_output_int_in_range): Likewise.
10823         (lto_input_int_in_range): Likewise.
10824         (bp_pack_int_in_range): Likewise.
10825         (bp_unpack_int_in_range): Likewise.
10826         (lto_output_enum): Likewise.
10827         (lto_input_enum): Likewise.
10828         (bp_pack_enum): Likewise.
10829         (bp_unpack_enum): Likewise.
10830         * streamer-hooks.c: New.
10831         * streamer-hooks.h: New.
10832         * tree-streamer-in.c: New.
10833         * tree-streamer-out.c: New.
10834         * tree-streamer.c: New.
10835         * tree-streamer.h: New.
10836
10837 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10838
10839         * gthr-posix95.h: Remove.
10840         * gthr.h [_PTHREADS95]: Remove.
10841         * configure.ac (enable_threads): Remove posix95.
10842         * configure: Regenerate.
10843         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
10844
10845 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
10846
10847         PR target/49781
10848         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
10849         SImode addresses.
10850         (ix86_print_operand_address): Handle zero-extended addresses.
10851         (memory_address_length): Add length of addr32 prefix for
10852         zero-extended addresses.
10853         (ix86_secondary_reload): Handle moves to/from double-word general
10854         registers from/to zero-extended addresses.
10855         * config/i386/predicates.md (lea_address_operand): Reject
10856         zero-extended operands.
10857
10858 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
10859
10860         PR other/48007
10861         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
10862
10863         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
10864         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
10865
10866         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
10867         (_Unwind_Context_Reg_Val): Likewise.
10868         (_Unwind_Get_Unwind_Word): Likewise.
10869         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
10870         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
10871         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
10872         for EXTENDED_CONTEXT_BIT.
10873         (__frame_state_for): Likewise.
10874         (uw_init_context_1): Likewise.
10875         (_Unwind_GetGR): Updated.
10876         (_Unwind_SetGR): Likewise.
10877         (_Unwind_GetGRPtr): Likewise.
10878         (_Unwind_SetGRPtr): Likewise.
10879         (_Unwind_SetGRValue): Likewise.
10880         (_Unwind_GRByValue): Likewise.
10881         (uw_install_context_1): Likewise.
10882
10883         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
10884         ASSUME_EXTENDED_UNWIND_CONTEXT.
10885         * doc/tm.texi: Regenerated.
10886
10887 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10888
10889         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
10890
10891 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10892
10893         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
10894         Linux/GNU-specific.
10895         (DEC Alpha Options, -mtune): Likewise.
10896         (MIPS Options, -march): native is supported on IRIX.
10897
10898 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10899
10900         * config/sparc/driver-sparc.c: New file.
10901         * config/sparc/x-sparc: New file.
10902         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
10903         * config/sparc/sparc.opt (native): New value for enum processor_type.
10904         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
10905         * config/sparc/sparc.c (sparc_option_override): Abort if
10906         PROCESSOR_NATIVE gets here.
10907         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
10908         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
10909         DRIVER_SELF_SPECS): Define.
10910         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
10911         (SPARC Options, -mtune): Likewise.
10912         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
10913         Substitute result.
10914         * configure: Regenerate.
10915         * Makefile.in (EXTRA_GCC_LIBS): Set.
10916         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
10917         (cpp$(exeext)): Likewise.
10918
10919 2011-08-08  Richard Guenther  <rguenther@suse.de>
10920
10921         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
10922         split out from ...
10923         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
10924         by composition.
10925
10926 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
10927
10928         PR tree-optimization/50005
10929         * ipa-inline-analysis (remap_predicate): Add cast to
10930         silence signed/unsigned comparison warning.
10931
10932 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
10933
10934         * modulo-sched.c (get_sched_window): Use a table for the debug output.
10935         Print the current ii.
10936         (sms_schedule_by_order): Reduce whitespace in dump line.
10937
10938 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
10939
10940         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
10941         and one loop for successors.  Fix upper bound of memory range.
10942
10943 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
10944
10945         PR target/50001
10946         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
10947         (TARGET_INSTANTIATE_DECLS): New define.
10948
10949 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
10950             Mikael Morin   <mikael.morin@sfr.fr>
10951
10952         * Makefile.in (INCLUDES_FOR_TARGET): New.
10953         (LIBGCC2_CFLAGS): Use it.
10954         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
10955
10956 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
10957
10958         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
10959         frame->save_regs_using_mov calculation.
10960
10961 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
10962
10963         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
10964         * config/i386/sse.md (castmode): New mode attribute.
10965         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
10966         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
10967
10968 2011-08-05  Jan Hubicka  <jh@suse.cz>
10969
10970         PR middle-end/49494
10971         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
10972
10973 2011-08-05  Jan Hubicka  <jh@suse.cz>
10974
10975         PR middle-end/49500
10976         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
10977         handle aliases.
10978         (create_emultls_var):New function.
10979         (ipa_lower_emutls): Handle aliases correctly.
10980
10981 2011-08-05  Jan Hubicka  <jh@suse.cz>
10982
10983         PR middle-end/49735
10984         * ipa-inline.c (recursive_inlining): Look through aliases.
10985
10986 2011-08-05  Jason Merrill  <jason@redhat.com>
10987
10988         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
10989         declarations to beginning of function.
10990
10991 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
10992
10993         PR rtl-optimization/49900
10994         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
10995         ensure basic blocks stay in the same order.
10996
10997 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
10998
10999         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
11000         store_bit_field.
11001         (s390_expand_atomic): Same.
11002
11003 2011-08-05  Richard Henderson  <rth@redhat.com>
11004
11005         PR rtl-opt/49977
11006         * dwarf2cfi.c (scan_insn_after): Split out of ...
11007         (scan_trace): ... here.  Correctly place notes wrt sequences.
11008
11009 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
11010             Richard Henderson  <rth@redhat.com>
11011
11012         PR rtl-opt/49982
11013         * expr.c (fixup_args_size_notes): Look through no-op moves.
11014
11015 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
11016
11017         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
11018         of "m" for operand 0.  Add type and mode attribute.
11019         (*pushxf_nointeger"): Use "<" constraint for operand 0.
11020         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
11021         constraint instead of "o" for opreand 1.
11022         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
11023         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
11024         operand 0, alternative 4.
11025         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
11026
11027 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
11028
11029         * config/i386/predicates.md (lea_address_operand): Rename from
11030         no_seg_address_operand.
11031         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
11032         (*lea_1_zext): Ditto.
11033         (*lea_2): Ditto.
11034         (*lea_2_zext): Ditto.
11035
11036 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
11037
11038         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
11039         parts.base and parts.index.
11040         * config/i386/predicates.md (aligned_operand): Ditto.
11041         (cmpxchg8b_pic_memory_operand): Ditto.
11042
11043 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11044
11045         * config/soft-fp: Move to ../libgcc.
11046         * Makefile.in (SFP_MACHINE): Remove.
11047         (libgcc-support): Remove $(SFP_MACHINE) dependency.
11048         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
11049         * config/arm/t-arm-softfp: Move to
11050         ../libgcc/config/arm/t-softfp.
11051         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
11052         * config/c6x/t-c6x-softfp: Remove.
11053         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
11054         * config/i386/t-fprules-softfp: Move to
11055         ../libgcc/config/t-softfp-tf.
11056         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
11057         * config/ia64/t-fprules-softfp: Remove.
11058         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
11059         * config/lm32/t-fprules-softfp: Remove.
11060         * config/moxie/sfp-machine.h: Remove.
11061         * config/moxie/t-moxie-softfp: Remove.
11062         * config/rs6000/darwin-ldouble-format: Move to
11063         ../libgcc/config/rs6000/ibm-ldouble-format.
11064         * config/rs6000/darwin-ldouble.c: Move to
11065         ../libgcc/config/rs6000/ibm-ldouble.c
11066         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
11067         * config/rs6000/libgcc-ppc64.ver: Likewise.
11068         * config/rs6000/sfp-machine.h: Likewise.
11069         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
11070         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
11071         (LIB2FUNCS_EXTRA): Remove.
11072         (TARGET_LIBGCC2_CFLAGS): Remove.
11073         * config/rs6000/t-aix52: Likewise
11074         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
11075         $(srcdir)/config/rs6000/darwin-ldouble.c.
11076         (SHLIB_MAPFILES): Remove.
11077         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
11078         $(srcdir)/config/rs6000/darwin-ldouble.c.
11079         * config/rs6000/t-fprules-softfp: Move to
11080         ../libgcc/config/t-softfp-sfdf.
11081         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
11082         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
11083         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
11084         $(srcdir)/config/rs6000/darwin-ldouble.c.
11085         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
11086         * config/score/t-score-softfp: Remove.
11087         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
11088         soft-fp/t-softfp from tmake_file.
11089         (arm*-*-uclinux*): Likewise.
11090         (arm*-*-ecos-elf): Likewise.
11091         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
11092         (arm*-*-rtems*): Likewise.
11093         (arm*-*-elf): Likewise.
11094         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
11095         tmake_file.
11096         (moxie-*-uclinux*): Likewise.
11097         (moxie-*-rtems*): Likewise.
11098         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
11099         tmake_file.
11100         (lm32-*-rtems*): Likewise.
11101         (lm32-*-uclinux*): Likewise.
11102         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
11103         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
11104         (powerpc-*-linux*, powerpc64-*-linux*): Remove
11105         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
11106         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
11107         tmake_file.
11108         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
11109         tmake_file.
11110         (tic6x-*-uclinux): Likewise.
11111         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
11112         soft-fp/t-softfp from tmake_file.
11113         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
11114         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
11115         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
11116         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
11117         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
11118
11119 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11120
11121         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
11122         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
11123         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
11124         TPBIT, TPBIT_FUNCS.
11125         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
11126         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
11127         Remove.
11128         * config/arm/t-vxworks: Likewise.
11129         * config/arm/t-wince-pe: Likewise.
11130         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
11131         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11132         * config/bfin/t-bfin-elf: Likewise.
11133         * config/bfin/t-bfin-linux: Likewise.
11134         * config/bfin/t-bfin-uclinux: Likewise.
11135         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
11136         Remove.
11137         * config/fr30/t-fr30: Likewise.
11138         * config/frv/t-frv: Likewise.
11139         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
11140         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11141         * config/m32c/t-m32c: Likewise.
11142         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
11143         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11144         * config/mcore/t-mcore: Likewise.
11145         * config/mep/t-mep: Likewise.
11146         * config/microblaze/t-microblaze: Likewise.
11147         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
11148         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11149         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
11150         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11151         * config/mn10300/t-linux: Remove.
11152         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11153         * config/pdp11/t-pdp11: Likewise.
11154         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
11155         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
11156         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11157         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
11158         * config/rs6000/t-aix52: Likewise.
11159         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
11160         $(srcdir)/config/rs6000/ppc64-fp.c.
11161         * config/rs6000/t-fprules-fpbit: Remove.
11162         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
11163         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11164         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
11165         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11166         * config/sparc/t-elf: Likewise.
11167         * config/sparc/t-leon: Likewise.
11168         * config/sparc/t-leon3: Likewise.
11169         * config/spu/t-spu-elf: Likewise.
11170         (DPBIT_FUNCS): Remove.
11171         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11172         * config/v850/t-v850: Likewise.
11173         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
11174         (avr-*-*): Likewise.
11175         (h8300-*-rtems*): Set libgcc_tm_file.
11176         (h8300-*-elf*): Likewise.
11177         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
11178         tmake_file.
11179         (powerpc-*-eabisim*): Likewise.
11180         (powerpc-*-elf*): Likewise.
11181         (powerpc-*-eabialtivec*): Likewise.
11182         (powerpc-xilinx-eabi*): Likewise.
11183         (powerpc-*-eabi*): Likewise.
11184         (powerpc-*-rtems*): Likewise.
11185         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
11186         (powerpcle-*-elf*): Likewise.
11187         (powerpcle-*-eabisim*): Likewise.
11188         (powerpcle-*-eabi*): Likewise.
11189         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
11190         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
11191         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
11192         Remove.
11193
11194 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11195
11196         * Makefile.in (UNWIND_H): Remove.
11197         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
11198         ../libgcc/Makefile.in.
11199         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
11200         (LIBUNWINDDEP): Remove.
11201         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
11202         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
11203         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
11204         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
11205         Don't copy $(UNWIND_H).
11206         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
11207         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
11208         * aclocal.m4: Regenerate.
11209         * configure: Regenerate.
11210         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
11211         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
11212         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
11213         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
11214         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
11215         * config/arm/libunwind.S, config/arm/pr-support.c,
11216         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
11217         ../libgcc/config/arm.
11218         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
11219         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
11220         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
11221         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
11222         ($(T)frvend$(objext)): Likewise.
11223         * config/ia64/t-glibc (LIB2ADDEH): Remove.
11224         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
11225         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
11226         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
11227         ../libgcc/config/ia64.
11228         * config/ia64/t-hpux (LIB2ADDEH): Remove.
11229         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
11230         * config/ia64/t-vms (LIB2ADDEH): Remove.
11231         * config/ia64/vms.h (UNW_IVMS_MODE,
11232         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
11233         * config/picochip/t-picochip (LIB2ADDEH): Remove.
11234         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
11235         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
11236         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
11237         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
11238         $(srcdir)/../libgcc to refer to unwinder sources.
11239         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
11240         * config/t-darwin (LIB2ADDEH): Remove.
11241         * config/t-freebsd (LIB2ADDEH): Remove.
11242         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
11243         * config/t-libunwind-elf: Move to ../libgcc/config.
11244         * config/t-linux (LIB2ADDEH): Remove.
11245         * config/t-sol2 (LIB2ADDEH): Remove.
11246         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
11247         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
11248
11249 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
11250
11251         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
11252
11253         * doc/invoke.texi: Document core-avx-i.
11254
11255 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11256
11257         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
11258
11259 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
11260
11261         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
11262         result of multiple results reduction when extracting the final
11263         value using scalar code.
11264
11265 2011-08-05  Richard Guenther  <rguenther@suse.de>
11266
11267         PR tree-optimization/49984
11268         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
11269
11270 2011-08-05  Richard Guenther  <rguenther@suse.de>
11271
11272         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
11273         return true for constant integer ranges.
11274         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
11275         BIT_IOR_EXPR handling.
11276
11277 2011-08-04  Kai Tietz  <ktietz@redhat.com>
11278
11279         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
11280         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
11281
11282 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
11283
11284         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
11285         pattern def statement, and its access macro.
11286         (NUM_PATTERNS): Set to 5.
11287         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
11288         pattern def statement.
11289         (vect_transform_loop): Likewise.
11290         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
11291         function vect_recog_over_widening_pattern ().
11292         (vect_operation_fits_smaller_type): New function.
11293         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
11294         Likewise.
11295         (vect_pattern_recog_1): Move the code that marks pattern
11296         statements to vect_mark_pattern_stmts (), and call it.  Update
11297         documentation.
11298         * tree-vect-stmts.c (vect_supportable_shift): New function.
11299         (vect_analyze_stmt): Handle pattern def statement.
11300         (new_stmt_vec_info): Initialize pattern def statement.
11301
11302 2011-08-04  Richard Henderson  <rth@redhat.com>
11303
11304         PR target/49964
11305         * config/i386/i386.c (ix86_expand_call): Don't create nested
11306         PARALLELs for TARGET_VZEROUPPER.
11307         (ix86_split_call_vzeroupper): Fix extraction of the original call.
11308         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
11309         recognize nested PARALLELs.
11310         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
11311         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
11312         *sibcall_value_pop_vzeroupper): Likewise.
11313
11314 2011-08-04  Richard Henderson  <rth@redhat.com>
11315
11316         PR middle-end/49968
11317         * calls.c (expand_call): Use fixup_args_size_notes for
11318         emit_stack_restore.
11319         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
11320         in non-standard modes.
11321
11322 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
11323
11324         * gcc.c (self_spec): New variable.
11325         (static_specs): Add self_spec.
11326         (main): Call do_self_spec on "self_spec" specs after reading
11327         user specs files.  Move compare_debug handling right after that.
11328
11329 2011-08-04  Richard Guenther  <rguenther@suse.de>
11330
11331         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
11332         (value_range_nonnegative_p): New function.
11333         (ssa_name_nonnegative_p): Use it.
11334         (value_range_constant_singleton): New function.
11335         (op_with_constant_singleton_value_range): Use it.
11336         (extract_range_from_binary_expr_1): New function, split out from ...
11337         (extract_range_from_binary_expr): ... this.  Remove fallback
11338         constant folding done here.
11339
11340 2011-08-04  Richard Guenther  <rguenther@suse.de>
11341
11342         PR tree-optimization/49806
11343         * tree-vrp.c (op_with_boolean_value_range_p): New function.
11344         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
11345         a new statement for a final conversion to bool.
11346
11347 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
11348
11349         * gengtype-state.c: Include "bconfig.h" if
11350         GENERATOR_FILE is defined, "config.h" otherwise.
11351         * gengtype.c: Likewise.
11352         * gengtype-lex.l: Likewise.
11353         * gengtype-parse.c: Likewise.
11354         * Makefile.in (gengtype-lex.o-warn): New variable.
11355         (plugin_resourcesdir): Likewise.
11356         (plugin_bindir): Likewise.
11357         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
11358         (MOSTLYCLEANFILES): Add gengtype$(exeext).
11359         (native): Depend on gengtype$(exeext) is $enable_plugin
11360         is set to "yes".
11361         (gtype.state): Depend on s-gtype. Use temporary file.
11362         (gengtype-lex.o): New rule.
11363         (gengtype-parse.o): Likewise.
11364         (gengtype-state.o): Likewise.
11365         (gengtype$(exeext)): Likewise.
11366         (install-gengtype): Likewise.
11367         (gengtype.o): Likewise.
11368         (build/gengtype.o): Depend on version.h.
11369         (build/gengtype-state): Depend on double-int.h, version.h,
11370         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
11371         (install-plugin): Depend on install-gengtype.
11372
11373 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
11374
11375         PR middle-end/49905
11376         * tree.h (init_attributes): New prototype.
11377         * attribs.c (init_attributes): No longer static.
11378
11379 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11380
11381         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
11382         maybe_suffix.
11383
11384 2011-08-03   David Li  <davidxl@google.com>
11385
11386         * tree-optimize.c (execute_fixup_cfg): Fix up entry
11387         outgoing edge counts after inlining.
11388
11389 2011-08-03   David Li  <davidxl@google.com>
11390
11391         * profile.c (compute_branch_probabilities): Compute
11392         function frequency after profile annotation.
11393
11394 2011-08-04  Alan Modra  <amodra@gmail.com>
11395
11396         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
11397         use_backchain_to_restore_sp initialisation.
11398         (rs6000_legitimate_offset_address_p): Simplify offset test.
11399
11400 2011-08-03  Richard Henderson  <rth@redhat.com>
11401
11402         * config/spu/spu.md: Use define_c_enum instead of define_constants.
11403         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
11404         (UNSPECV_NOP): New.
11405
11406 2011-08-03  Richard Henderson  <rth@redhat.com>
11407
11408         PR target/34888
11409         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
11410
11411 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
11412
11413         PR tree-optimization/49948
11414         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
11415
11416 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
11417
11418         * config/m32c/m32c.c (class_sizes): Remove.
11419         (reduce_class): Change arguments and return type to reg_class_t.
11420         Change type cc var to HARD_REG_SET. Change type best var to
11421         reg_class_t. Change type best_size var to unsigned int. Remove
11422         initialization class_sizes var. Use reg_class_size array instead
11423         of class_sizes. Use reg_class_contents array instead
11424         of class_contents.
11425
11426 2011-08-03  Richard Guenther  <rguenther@suse.de>
11427
11428         PR middle-end/49958
11429         * fold-const.c (fold_binary_loc): Only associate
11430         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
11431         overflow wraps.
11432
11433 2011-08-03  Alan Modra  <amodra@gmail.com>
11434
11435         PR rtl-optimization/49941
11436         * jump.c (mark_jump_label): Comment.
11437         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
11438         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
11439         (mark_used_flags): Don't mark RETURN.
11440
11441 2011-08-03  Richard Guenther  <rguenther@suse.de>
11442
11443         PR tree-optimization/49938
11444         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
11445         deal with a POLYNOMIAL_CHREC.
11446
11447 2011-08-03  Revital Eres  <revital.eres@linaro.org>
11448
11449         * modulo-sched.c (calculate_stage_count,
11450         calculate_must_precede_follow, get_sched_window,
11451         try_scheduling_node_in_cycle, remove_node_from_ps): Add
11452         declaration.
11453         (update_node_sched_params, set_must_precede_follow, optimize_sc):
11454         New functions.
11455         (reset_sched_times): Call update_node_sched_params.
11456         (sms_schedule): Call optimize_sc.
11457         (get_sched_window): Change function arguments.
11458         (sms_schedule_by_order): Update call to get_sched_window.
11459         Call set_must_precede_follow.
11460         (calculate_stage_count): Add function argument.
11461
11462 2011-08-02  Richard Henderson  <rth@redhat.com>
11463
11464         PR target/49864
11465         PR target/49879
11466         * reg-notes.def (REG_ARGS_SIZE): New.
11467         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
11468         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
11469         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
11470         different stack levels.
11471         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
11472         (maybe_move_args_size_note): New.
11473         (combine_stack_adjustments_for_block): Use it.
11474         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
11475         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
11476         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
11477         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
11478         (cur_cfa): New.
11479         (queued_args_size): Remove.
11480         (add_cfi_args_size): Assert size is non-negative.
11481         (stack_adjust_offset, dwarf2out_args_size): Remove.
11482         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
11483         (notice_args_size, notice_eh_throw): New.
11484         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
11485         (dwarf2out_frame_debug_adjust_cfa): Likewise.
11486         (dwarf2out_frame_debug_cfa_offset): Likewise.
11487         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
11488         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
11489         (change_cfi_row): Don't emit args_size.
11490         (maybe_record_trace_start_abnormal): Split out from ...
11491         (maybe_record_trace_start): Here.  Set args_size_undefined.
11492         (create_trace_edges): Update to match.
11493         (scan_trace): Handle REG_ARGS_SIZE.
11494         (connect_traces): Connect args_size between EH insns.
11495         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
11496         * explow.c (suppress_reg_args_size): New.
11497         (adjust_stack_1): Split out from ...
11498         (adjust_stack): ... here.
11499         (anti_adjust_stack): Use it.
11500         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
11501         * expr.c (mem_autoinc_base): New.
11502         (fixup_args_size_notes): New.
11503         (emit_single_push_insn_1): Rename from emit_single_push_insn.
11504         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
11505         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
11506         * reload1.c (reload_as_needed): Likewise.
11507         * rtl.h (fixup_args_size_notes): Declare.
11508
11509 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
11510
11511         PR bootstrap/49914
11512         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
11513         of abs.
11514         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
11515         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
11516
11517 2011-08-02  Richard Henderson  <rth@redhat.com>
11518
11519         * config/h8300/h8300.c (push, pop): Return the insn.
11520         (h8300_swap_into_er6): Generate correct unwind info.
11521         (h8300_swap_out_of_er6): Likewise.
11522         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
11523         complex cfa expression.
11524         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
11525
11526 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11527
11528         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
11529
11530 2011-08-02  Richard Henderson  <rth@redhat.com>
11531
11532         PR target/49878
11533         * config/h8300/h8300.c (h8300_move_ok): New.
11534         * config/h8300/h8300-protos.h: Declare it.
11535         * config/h8300/h8300.md (P): New mode iterator.
11536         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
11537         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
11538         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
11539         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
11540         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
11541         and pushqi1_h8300hs_normal; use PRE_MODIFY and
11542         register_no_sp_elim_operand.
11543         (*pushhi1_h8300hs_<P>): Similarly.
11544         (pushqi1, pushhi1, pushhi1_h8300): Remove.
11545         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
11546
11547 2011-08-02  Richard Henderson  <rth@redhat.com>
11548
11549         PR target/49881
11550         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
11551
11552 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
11553
11554         * c-parser.c (enum c_parser_prec): New enum, moved from within
11555         c_parser_binary_expression.
11556         (c_parser_binary_expression): Add PREC argument.  Stop parsing
11557         if operator has lower or equal precedence than PREC.
11558         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
11559         callers.
11560         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
11561         Adjust c_finish_omp_atomic caller.
11562         (c_parser_omp_taskyield): New function.
11563         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
11564         (c_parser_omp_clause_name): Handle final and mergeable clauses.
11565         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
11566         functions.
11567         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
11568         and PRAGMA_OMP_CLAUSE_MERGEABLE.
11569         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
11570         (c_parser_omp_clause_reduction): Handle min and max.
11571         * c-typeck.c (c_finish_omp_clauses): Don't complain about
11572         const qualified predetermined vars in firstprivate clause.
11573         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11574         Handle MIN_EXPR and MAX_EXPR.
11575         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
11576         and OMP_CLAUSE_MERGEABLE.
11577         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
11578         and OMP_ATOMIC_CAPTURE_NEW.
11579         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
11580         OMP_CLAUSE_MERGEABLE.
11581         (omp_clause_code_name): Likewise.
11582         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11583         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
11584         and OMP_CLAUSE_MERGEABLE.
11585         (OMP_CLAUSE_FINAL_EXPR): Define.
11586         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
11587         OMP_CLAUSE_MERGEABLE.
11588         (expand_task_call): Likewise.
11589         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
11590         (expand_omp_atomic_fetch_op): Handle cases where old or new
11591         value is needed afterwards.
11592         (expand_omp_atomic): Call expand_omp_atomic_load resp.
11593         expand_omp_atomic_store.
11594         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
11595         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
11596         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
11597         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11598         * tree-nested.c (convert_nonlocal_omp_clauses,
11599         convert_local_omp_clauses): Likewise.
11600         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
11601         OMP_ATOMIC_CAPTURE_NEW): New.
11602         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
11603         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
11604         New inlines.
11605         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
11606         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
11607         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11608
11609 2011-08-02  Kai Tietz  <ktietz@redhat.com>
11610
11611         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
11612         boolean-type.
11613         (ssa_forward_propagate_and_combine): Interprete result of
11614         forward_propagate_comparison.
11615         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
11616         boolean-typed operands for comparisons.
11617
11618 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
11619
11620         * config/avr/libgcc.S: Gather related function in the
11621         same input section.
11622         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
11623         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
11624         references.
11625         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
11626         __udivmodsi4, __divmodsi4, __prologue_saves__,
11627         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
11628         __do_copy_data, __do_clear_bss, __do_global_ctors,
11629         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
11630
11631 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
11632
11633         PR target/47766
11634         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
11635         (stack_protect_test): The pattern compares ptr_mode value.
11636
11637 2011-08-02  Alan Modra  <amodra@gmail.com>
11638
11639         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
11640         note for save_LR_around_toc_setup sequence.
11641
11642 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
11643
11644         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
11645
11646 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
11647             Joseph Myers  <joseph@codesourcery.com>
11648
11649         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
11650         * hwint.c: Include diagnostic-core.h.
11651         (abs_hwi): New.
11652         (gcd): Moved here...
11653         (pos_mul_hwi): New.
11654         (mul_hwi): New.
11655         (least_common_multiple): Moved here...
11656         * hwint.h (gcd): ... from here.
11657         (least_common_multiple): ... from here.
11658         (HOST_WIDE_INT_MIN): New.
11659         (HOST_WIDE_INT_MAX): New.
11660         (abs_hwi): Declared.
11661         (gcd): Declared.
11662         (pos_mul_hwi): Declared.
11663         (mul_hwi): Declared.
11664         (least_common_multiple): Declared.
11665         * omega.c (check_pos_mul): Removed.
11666         (check_mul): Removed.
11667         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
11668         mul_hwi instead of check_mul.
11669
11670 2011-08-01  Richard Henderson  <rth@redhat.com>
11671
11672         PR target/49881
11673         * config/avr/avr.h (PUSH_ROUNDING): New.
11674         * config/avr/avr.md (pushqi1): Rename from *pushqi.
11675         (*pushhi, *pushsi, *pushsf): Remove.
11676         (MPUSH): New mode iterator.
11677         (push<MPUSH>1): New expander.
11678
11679 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
11680
11681         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
11682         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
11683         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
11684         mmix_preferred_output_reload_class): Remove.
11685         * config/mmix/mmix.c (mmix_preferred_reload_class,
11686         mmix_preferred_output_reload_class): Make static. Change rclass
11687         argument and return type to reg_class_t.
11688         (TARGET_PREFERRED_RELOAD_CLASS,
11689         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11690
11691 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11692
11693         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
11694         handling.
11695
11696 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
11697
11698         PR target/47766
11699         * config/i386/i386.md (PTR): New.
11700         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
11701         (stack_protect_test): Likewise.
11702         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
11703         (stack_tls_protect_set_<mode>): Likewise.
11704         (stack_tls_protect_test_<mode>): Likewise.
11705
11706 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
11707
11708         PR target/49927
11709         * config/i386/i386.c (ix86_address_subreg_operand): New.
11710         (ix86_decompose_address): Use ix86_address_subreg_operand.
11711         (ix86_legitimate_address_p): Do not assert that subregs satisfy
11712         register_no_elim_operand in DImode.
11713
11714 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
11715
11716         PR tree-optimization/49926
11717         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
11718         in a chain doesn't have uses both inside and outside the loop.
11719
11720 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
11721
11722         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
11723         * config/avr/avr-devices.c (avr_mcu_types): Use it.
11724         * config/avr/avr-mcus.def (AVR_MCU): Use it.
11725         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
11726         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
11727         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
11728         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
11729         to detect if XJMP must not be skipped.
11730
11731 2011-08-02  Alan Modra  <amodra@gmail.com>
11732
11733         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
11734         Delete.
11735         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
11736         (rs6000_emit_prologue): Don't prematurely return when
11737         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
11738         save_toc_in_prologue case.
11739         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
11740         calls_alloca.
11741
11742 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
11743
11744         * config/avr/avr-devices.c: Delete SVN property svn:executable.
11745         * config/avr/predicates.md: Ditto.
11746         * config/avr/driver-avr.c: Ditto.
11747         * config/avr/genopt.sh: Set SVN property svn:executable to *.
11748
11749 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
11750
11751         * calls.c (emit_library_call_value_1): Declare size only if
11752         BLOCK_REG_PADDING is defined.
11753
11754 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
11755
11756         PR target/49547
11757         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
11758         (x86_64-*-*): Likewise.
11759         * config/i386/i386.opt (mlzcnt): New.
11760         * config/i386/abmintrin.h: File removed.
11761         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
11762         * config/i386/lzcntintrin.h: ... here.  New file.
11763         (__lzcnt): Rename to ...
11764         (__lzcnt32): ... this.
11765         * config/i386/bmiintrin.h (head): Update copyright year.
11766         (__lzcnt_u16): Removed.
11767         (__lzcnt_u32): Likewise.
11768         (__lzcnt_u64): Likewise.
11769         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
11770         is defined, remove abmintrin.h.
11771         * config/i386/cpuid.h (bit_LZCNT): New.
11772         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
11773         LZCNT feature.
11774         * config/i386/i386-c.c (ix86_target_macros_internal): Define
11775         __LZCNT__ if needed.
11776         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
11777         (ix86_option_override_internal): Handle LZCNT option.
11778         (ix86_valid_target_attribute_inner_p): Likewise.
11779         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
11780         * config/i386/i386.h (TARGET_LZCNT): New.
11781         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
11782         * config/i386/i386.md (clz<mode>2): Update insn constraint.
11783         (clz<mode>2_lzcnt): Likewise.
11784         * doc/invoke.texi: Mention -mlzcnt option.
11785         * doc/extend.texi: Likewise.
11786
11787 2011-08-01  Julian Brown  <julian@codesourcery.com>
11788
11789         * configure.ac (fixed-point): Add ARM support.
11790         * configure: Regenerate.
11791         * config/arm/arm.c (arm_fixed_mode_set): New struct.
11792         (arm_set_fixed_optab_libfunc): New.
11793         (arm_set_fixed_conv_libfunc): New.
11794         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
11795         ARM-specific names.
11796         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
11797         return values in SImode.
11798         (arm_return_in_msb): Return fixed-point types in the msb.
11799         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
11800         upwards.
11801         (arm_scalar_mode_supported_p): Support fixed-point modes.
11802         (arm_vector_mode_supported_p): Support vector fixed-point modes.
11803         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
11804         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
11805         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
11806         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
11807         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
11808         New mode iterators.
11809         (qaddsub_suf): New mode attribute.
11810         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
11811         vector modes.
11812         * config/arm/predicates.md (sat_shift_operator): New predicate.
11813         * config/arm/arm-fixed.md: New.
11814         * config/arm/arm.md: Include arm-fixed.md.
11815         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
11816
11817 2011-08-01  Julian Brown  <julian@codesourcery.com>
11818
11819         * calls.c (emit_library_call_value_1): Support padding for libcall
11820         arguments and return values.
11821         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
11822         downwards in big-endian mode.
11823
11824 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11825
11826         PR debug/49887
11827         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
11828         * config/sol2-protos.h: Likewise.
11829         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
11830         solaris_code_end.
11831         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
11832         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
11833         solaris_file_end.
11834         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
11835
11836 2011-08-01  Julian Brown  <julian@codesourcery.com>
11837
11838         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
11839
11840 2011-08-01  Julian Brown  <julian@codesourcery.com>
11841
11842         * final.c (output_addr_const): Print fixed-point constants as
11843         decimal not hex.
11844
11845 2011-08-01  Richard Guenther  <rguenther@suse.de>
11846
11847         * stor-layout.c (initialize_sizetypes): Properly sign-extend
11848         bitsiztype TYPE_MAX_VALUE.
11849
11850 2011-08-01  Julian Brown  <julian@codesourcery.com>
11851
11852         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
11853         comparison helpers.
11854
11855 2011-07-31  Richard Henderson  <rth@redhat.com>
11856
11857         * config/h8300/crti.asm: Add flags to .section directive.
11858         * config/h8300/crtn.asm: Likewise.
11859
11860 2011-07-31  Richard Henderson  <rth@redhat.com>
11861
11862         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
11863         * tree.c (build_common_tree_nodes): Likewise.
11864
11865 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
11866
11867         PR target/49880
11868         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
11869         (divsi3_i1): Likewise.
11870
11871 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11872
11873         PR tree-optimization/49749
11874         * tree-ssa-reassoc.c (get_rank): New forward declaration.
11875         (PHI_LOOP_BIAS): New macro.
11876         (phi_rank): New function.
11877         (loop_carried_phi): Likewise.
11878         (propagate_rank): Likewise.
11879         (get_rank): Add calls to phi_rank and propagate_rank.
11880
11881 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
11882
11883         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
11884         of TARGET_64BIT.
11885         (PTRDIFF_TYPE): Likewise.
11886
11887 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
11888
11889         PR target/49920
11890         * config/i386/i386.md (strset): Do not expand strset_singleop
11891         when %eax or $edi are fixed.
11892         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
11893         (*strsetsi_1): Ditto.
11894         (*strsethi_1): Ditto.
11895         (*strsetqi_1): Ditto.
11896         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
11897         (*rep_stossi): Ditto.
11898         (*rep_stosqi): Ditto.
11899         (*strlenqi_1): Ditto.
11900         (cmpstrnsi): Also fail when %ecx is fixed.
11901         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
11902         (*cmpstrnqi_1): Ditto.
11903         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
11904         (*strmovsi_1): Ditto.
11905         (*strmovhi_1): Ditto.
11906         (*strmovqi_1): Ditto.
11907         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
11908         (*rep_movsi): Ditto.
11909         (*rep_movqi): Ditto.
11910
11911 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
11912
11913         PR target/47908
11914         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
11915         Disable instruction scheduling for non-ColdFire targets.
11916         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
11917
11918 2011-07-31  Revital Eres  <revital.eres@linaro.org>
11919
11920         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
11921         of anti-dep edge from a branch.
11922         (add_cross_iteration_register_deps): Create anti-dep edge from
11923         a branch.
11924
11925 2011-07-31  Revital Eres  <revital.eres@linaro.org>
11926
11927         * modulo-sched.c: Change comment.
11928         (reset_sched_times): Fix print message.
11929         (print_partial_schedule): Add print info.
11930
11931 2011-07-31  Tom de Vries  <tom@codesourcery.com>
11932
11933         PR middle-end/43513
11934         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
11935         get_object_alignment and TYPE_ALIGN.
11936
11937 2011-07-30  Tom de Vries  <tom@codesourcery.com>
11938
11939         PR middle-end/43513
11940         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
11941         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
11942
11943 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11944
11945         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
11946         <sys/sbd.h>.
11947         (cpu_types): New array.
11948         (cputype): New function.
11949         (host_detect_local_cpu): Only define buf, f if !__sgi__.
11950         Use scaninvent instead of /proc/cpuinfo if __sgi__.
11951         * config.host: Also use driver-native.o, mips/x-native on
11952         mips-sgi-irix*.
11953         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
11954         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
11955         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
11956
11957 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
11958
11959         PR middle-end/49897
11960         PR middle-end/49898
11961         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
11962         in nested parallel and outer is a gimple_reg, mark it as addressable
11963         and set its bit in task_shared_vars bitmap too.
11964
11965 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
11966
11967         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
11968
11969 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11970
11971         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
11972         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
11973         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
11974         AMASK_LOCKPFTCHOK): Define.
11975         (host_detect_local_cpu): Remove buf, f, cpu_names.
11976         Define cpu_types, implver, amask.
11977         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
11978         native CPU.
11979         * config.host: Also use driver-alpha.o, alpha/x-alpha on
11980         alpha*-dec-osf*.
11981         * config/alpha/osf5.h [__alpha__ || __alpha]
11982         (host_detect_local_cpu): Declare.
11983         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
11984         (DRIVER_SELF_SPECS): Define.
11985
11986 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
11987
11988         PR target/47715
11989         * config/i386/i386.md (*load_tp_x32): New.
11990         (*load_tp_x32_zext): Ditto.
11991         (*add_tp_x32): Ditto.
11992         (*add_tp_x32_zext): Ditto.
11993         (*load_tp_<mode>): Disable for TARGET_X32 targets.
11994         (*add_tp_<mode>): Ditto.
11995         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
11996         ptr_mode and convert to Pmode if needed.
11997
11998 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
11999
12000         PR target/49687
12001         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
12002         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
12003         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
12004         Add X to register footprint: Clobber r26/r27.
12005
12006 2011-07-29  Richard Guenther  <rguenther@suse.de>
12007
12008         * builtins.c (fold_builtin_signbit): Build the comparison
12009         with a proper type.
12010
12011 2011-07-29  Richard Guenther  <rguenther@suse.de>
12012
12013         PR tree-optimization/49893
12014         * tree-predcom.c (suitable_reference_p): Volatile references
12015         are not suitable.
12016
12017 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
12018
12019         PR target/49313
12020         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
12021         (__ctzsi2): Result for 0 may be undefined.
12022         (__ctzhi2): Result for 0 may be undefined.
12023         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
12024         (__popcountsi2): Ditto. And don't clobber r26.
12025         (__popcountdi2): Ditto. And don't clobber r27.
12026         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
12027         (parityhi2): New expand.
12028         (paritysi2): New expand.
12029         (popcounthi2): New expand.
12030         (popcountsi2): New expand.
12031         (clzhi2): New expand.
12032         (clzsi2): New expand.
12033         (ctzhi2): New expand.
12034         (ctzsi2): New expand.
12035         (ffshi2): New expand.
12036         (ffssi2): New expand.
12037         (copysignsf3): New insn.
12038         (bswapsi2): New expand.
12039         (*parityhi2.libgcc): New insn.
12040         (*parityqihi2.libgcc): New insn.
12041         (*paritysihi2.libgcc): New insn.
12042         (*popcounthi2.libgcc): New insn.
12043         (*popcountsi2.libgcc): New insn.
12044         (*popcountqi2.libgcc): New insn.
12045         (*popcountqihi2.libgcc): New insn-and-split.
12046         (*clzhi2.libgcc): New insn.
12047         (*clzsihi2.libgcc): New insn.
12048         (*ctzhi2.libgcc): New insn.
12049         (*ctzsihi2.libgcc): New insn.
12050         (*ffshi2.libgcc): New insn.
12051         (*ffssihi2.libgcc): New insn.
12052         (*bswapsi2.libgcc): New insn.
12053
12054 2011-07-29  Richard Guenther  <rguenther@suse.de>
12055
12056         * tree-vrp.c (get_value_range): Only set parameter default
12057         definitions to varying, leave others at undefined.
12058         (extract_range_from_binary_expr): Fix undefined handling.
12059         (vrp_visit_phi_node): Handle merged undefined state.
12060
12061 2011-07-29  Wei Guozhi  <carrot@google.com>
12062
12063         PR rtl-optimization/49799
12064         * combine.c (make_compound_operation): Check if the bit field is valid
12065         before change it to bit field extraction.
12066
12067 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
12068
12069         PR rtl-optimization/49891
12070         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
12071         newly created returnjumps.
12072
12073 2011-07-28  DJ Delorie  <dj@redhat.com>
12074
12075         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
12076         local frame in a naked function, and produce a suitable error for
12077         that specific case.
12078
12079         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
12080         registers to be reloaded in HI classes when the target is HI.
12081
12082 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
12083
12084         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
12085         bound_one, bound_two.
12086
12087 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
12088
12089         PR middle-end/48648
12090         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
12091         CLAST assignments.
12092         (translate_clast): Same.
12093         (translate_clast_assignment): New.
12094
12095 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
12096
12097         PR tree-optimization/49876
12098         * sese.c (rename_uses): Do not return false on gloog_error: set
12099         the new_expr to integer_zero_node and continue code generation.
12100         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
12101
12102 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
12103
12104         PR debug/49846
12105         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
12106         arguments also check if they aren't initialized with a MODE_INT
12107         mode of the same size.
12108
12109 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
12110
12111         * expr.c (get_bit_range): Handle *MEM_REF's.
12112
12113 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
12114
12115         * rtlanal.c (tablejump_p): False for returns.
12116         * reorg.c (first_active_target_insn): New static function.
12117         (find_end_label): Set JUMP_LABEL for a new returnjump.
12118         (optimize_skip, get_jump_flags, rare_destination,
12119         mostly_true_jump, get_branch_condition,
12120         steal_delay_list_from_target, own_thread_p,
12121         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
12122         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
12123         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
12124         * jump.c (delete_related_insns): Likewise.
12125         (jump_to_label_p): New function.
12126         (redirect_target): New static function.
12127         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
12128         (redirect_jump_1): Assert that the new label is nonnull.
12129         (redirect_jump): Likewise.
12130         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
12131         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
12132         exit block.
12133         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
12134         changed.  Ensure that the right label is passed to redirect_jump.
12135         * function.c (emit_return_into_block,
12136         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
12137         ret_rtx in their JUMP_LABEL.
12138         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
12139         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
12140         pass ret_rtx as label.
12141         * cfglayout.c (fixup_reorder_chain): Use
12142         force_nonfallthru_and_redirect rather than force_nonfallthru.
12143         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
12144         * rtl.h (ANY_RETURN_P): New macro.
12145         (jump_to_label_p): Declare.
12146         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
12147         JUMP_LABELs.
12148         (mark_target_live_regs): Likewise.
12149         * basic-block.h (force_nonfallthru_and_redirect): Declare.
12150         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
12151         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
12152         alpha_tablejump_best_label): Remove functions.
12153         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
12154         alpha_tablejump_best_label): Remove declarations.
12155         * config/sh/sh.c (barrier_align, split_branches): Adjust for
12156         ret_rtx in JUMP_LABELs.
12157         * config/arm/arm.c (is_jump_table): Likewise.
12158
12159 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
12160
12161         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
12162         special predicate.  Remove explicit mode checks.
12163
12164 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
12165
12166         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
12167         DW_AT_data_member_location containing just DW_OP_plus_uconst.
12168
12169         PR debug/49871
12170         * dwarf2out.c (size_of_die, value_format, output_die): Use
12171         DW_FORM_udata instead of DW_FORM_data[48] for
12172         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
12173
12174 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
12175
12176         * config/i386/i386.md (*tls_global_dynamic_64): Update
12177         length attribute.
12178
12179 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
12180
12181         PR target/47715
12182         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
12183         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
12184         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
12185         (tls_dynamic_gnu2_64): Ditto.
12186         (*tls_dynamic_gnu2_lea_64): Ditto.
12187         (*tls_dynamic_gnu2_call_64): Ditto.
12188         (*tls_dynamic_gnu2_combine_64): Ditto.
12189
12190 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
12191
12192         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
12193
12194 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
12195
12196         PR target/47364
12197         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
12198
12199 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12200
12201         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
12202         before the core constraints. Adjust attributes.
12203         ("*thumb2_movdf_vfp"): Likewise.
12204
12205 2011-07-28  Kai Tietz  <ktietz@redhat.com>
12206
12207         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
12208         (simplify_truth_ops_using_ranges): Likewise.
12209         (build_assert_expr_for): Likewise.
12210         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
12211         and handle BIT_NOT_EXPR for truth-operation.
12212
12213 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
12214
12215         PR target/49313
12216         Undo r176835 from trunk
12217         2011-07-27  Georg-Johann Lay
12218
12219 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
12220
12221         PR target/49687
12222         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
12223         Add _muluhisi3, _mulshisi3, _usmulhisi3.
12224         * config/avr/libgcc.S (__mulsi3): Rewrite.
12225         (__mulhisi3): Rewrite.
12226         (__umulhisi3): Rewrite.
12227         (__usmulhisi3): New.
12228         (__muluhisi3): New.
12229         (__mulshisi3): New.
12230         (__mulohisi3): New.
12231         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
12232         declare.
12233         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
12234         (pseudo_register_or_const_int_operand): New.
12235         (combine_pseudo_register_operand): New.
12236         (u16_operand): New.
12237         (s16_operand): New.
12238         (o16_operand): New.
12239         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
12240         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
12241         (any_extend, any_extend2): New code iterators.
12242         (extend_prefix): New code attribute.
12243         (mulsi3): Rewrite. Turn insn to expander.
12244         (mulhisi3): Ditto.
12245         (umulhisi3): Ditto.
12246         (usmulhisi3): New expander.
12247         (*mulsi3): New insn-and-split.
12248         (mulu<mode>si3): New insn-and-split.
12249         (muls<mode>si3): New insn-and-split.
12250         (mulohisi3): New insn-and-split.
12251         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
12252         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
12253         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
12254         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
12255         insn-and-split.
12256         (*mulsi3_call): Rewrite.
12257         (*mulhisi3_call): Rewrite.
12258         (*umulhisi3_call): Rewrite.
12259         (*usmulhisi3_call): New insn.
12260         (*muluhisi3_call): New insn.
12261         (*mulshisi3_call): New insn.
12262         (*mulohisi3_call): New insn.
12263         (extendqihi2): Use combine_pseudo_register_operand as predicate
12264         for operand 1.
12265         (extendqisi2): Ditto.
12266         (zero_extendqihi2): Ditto.
12267         (zero_extendqisi2): Ditto.
12268         (zero_extendhisi2): Ditto.
12269         (extendhisi2): Ditto. Don't early-clobber operand 0.
12270
12271 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
12272
12273         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
12274
12275 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
12276
12277         PR tree-optimization/49471
12278         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
12279         iv only when the largest type is unsigned.  Do not call
12280         lang_hooks.types.type_for_size.
12281
12282 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
12283
12284         PR middle-end/45450
12285         * graphite-poly.c (apply_poly_transforms): Disable legality check
12286         after an openscop read.
12287
12288 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
12289
12290         PR middle-end/47691
12291         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
12292         copy_bb_and_scalar_dependences.
12293         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
12294         (graphite_copy_stmts_from_block): Update call to rename_uses.
12295         (copy_bb_and_scalar_dependences): Update call to
12296         graphite_copy_stmts_from_block.
12297         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
12298
12299 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
12300
12301         PR target/49313
12302         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
12303         (__ctzsi2): Result for 0 may be undefined.
12304         (__ctzhi2): Result for 0 may be undefined.
12305         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
12306         (__popcountsi2): Ditto. And don't clobber r26.
12307         (__popcountdi2): Ditto. And don't clobber r27.
12308         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
12309         (parityhi2): New expand.
12310         (paritysi2): New expand.
12311         (popcounthi2): New expand.
12312         (popcountsi2): New expand.
12313         (clzhi2): New expand.
12314         (clzsi2): New expand.
12315         (ctzhi2): New expand.
12316         (ctzsi2): New expand.
12317         (ffshi2): New expand.
12318         (ffssi2): New expand.
12319         (copysignsf3): New insn.
12320         (bswapsi2): New expand.
12321         (*parityhi2.libgcc): New insn.
12322         (*parityqihi2.libgcc): New insn.
12323         (*paritysihi2.libgcc): New insn.
12324         (*popcounthi2.libgcc): New insn.
12325         (*popcountsi2.libgcc): New insn.
12326         (*popcountqi2.libgcc): New insn.
12327         (*popcountqihi2.libgcc): New insn-and-split.
12328         (*clzhi2.libgcc): New insn.
12329         (*clzsihi2.libgcc): New insn.
12330         (*ctzhi2.libgcc): New insn.
12331         (*ctzsihi2.libgcc): New insn.
12332         (*ffshi2.libgcc): New insn.
12333         (*ffssihi2.libgcc): New insn.
12334         (*bswapsi2.libgcc): New insn.
12335
12336 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
12337
12338         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
12339         the mode of symbolic_opreand RTXes.
12340
12341 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
12342
12343         * config/i386/predicates.md (x86_64_movabs_operand): Return false
12344         for pic_32bit_operand RTXes.
12345         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
12346         in DImode.
12347
12348 2011-07-27  Kai Tietz  <ktietz@redhat.com>
12349
12350         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
12351         for 32-bit, too.
12352         (ix86_handle_abi_attribute): Allow function attributes
12353         ms_abi/sysv_abi in 32-bit mode, too.
12354         * doc/extend.texi: Adjust attribute documentation.
12355
12356         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
12357         expression handling.
12358         (and_var_with_comparison_1): Likewise.
12359
12360 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
12361
12362         * params.h (ALLOW_STORE_DATA_RACES): New.
12363         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
12364         * Makefile.in (expr.o): Depend on PARAMS_H.
12365         * machmode.h (get_best_mode): Add argument.
12366         * fold-const.c (optimize_bit_field_compare): Add argument to
12367         get_best_mode.
12368         (fold_truthop): Same.
12369         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
12370         * expr.c (emit_group_store): Same.
12371         (copy_blkmode_from_reg): Same.
12372         (write_complex_part): Same.
12373         (optimize_bitfield_assignment_op): Add argument.
12374         Add argument to get_best_mode.
12375         (get_bit_range): New.
12376         (expand_assignment): Calculate maxbits and pass it down accordingly.
12377         (store_field): New argument.
12378         (expand_expr_real_2): New argument to store_field.  Include params.h.
12379         * expr.h (store_bit_field): New argument.
12380         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
12381         into account maxbits.
12382         * calls.c (store_unaligned_arguments_into_pseudos): New argument
12383         to store_bit_field.
12384         * expmed.c (store_bit_field_1): New argument.  Use it.
12385         (store_bit_field): Same.
12386         (store_fixed_bit_field): Same.
12387         (store_split_bit_field): Same.
12388         (extract_bit_field_1): Pass new argument to get_best_mode.
12389         (extract_bit_field): Same.
12390         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
12391         * doc/invoke.texi: Document parameter allow-store-data-races.
12392
12393 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
12394
12395         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
12396
12397 2011-07-27  Kai Tietz  <ktietz@redhat.com>
12398
12399         * tree-vrp.c (extract_range_from_binary_expr): Remove
12400         TRUTH-binary cases and add new bitwise-cases.
12401         (extract_range_from_assignment): Likewise.
12402         (register_edge_assert_for_1): Likeiwise.
12403         (register_edge_assert_for): Likewise.
12404         (simplify_truth_ops_using_ranges): Likewise.
12405         (simplify_stmt_using_ranges): Likewise.
12406
12407 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
12408
12409         PR target/47372
12410         * config/i386/i386.c (ix86_delegitimize_address): Call
12411         simplify_gen_subreg for PIC with mode of x only if modes of
12412         x and orig_x are different.
12413
12414 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
12415
12416         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
12417         to GC allocated copy of the string.
12418         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
12419         before .debug_line, not after it.
12420
12421 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
12422
12423         PR middle-end/47046
12424         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
12425         evolution_function_is_affine_p on CHREC_RIGHT.
12426
12427 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
12428
12429         * tree-data-ref.c (max_stmt_executions_tree): Do not call
12430         lang_hooks.types.type_for_size.
12431
12432 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
12433
12434         PR middle-end/47653
12435         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
12436         loops using wrapping semantics.
12437
12438 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
12439
12440         PR middle-end/48805
12441         * tree-scalar-evolution.c (instantiate_scev_r): Return
12442         chrec_dont_know for ADDR_EXPR.
12443
12444 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
12445             H.J. Lu  <hongjiu.lu@intel.com>
12446
12447         PR target/47369
12448         PR target/49853
12449         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
12450         if legitimize_tls_address returned operand in wrong mode. Allow
12451         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
12452         if legitimize_pic_address returned operand in wrong mode.
12453
12454 2011-07-26  Martin Jambor  <mjambor@suse.cz>
12455
12456         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
12457         return false for invariants.
12458
12459 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
12460
12461         * config/i386/i386.md (add->lea splitter): Implement using SWI
12462         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
12463         (add->lea zext splitter): Change operand 2 predicate to
12464         x86_64_nonmemory_operand.
12465
12466 2011-07-26  Richard Guenther  <rguenther@suse.de>
12467
12468         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
12469         frequency makes everything hot.
12470
12471 2011-07-26  Richard Guenther  <rguenther@suse.de>
12472
12473         PR tree-optimization/49840
12474         * tree-vrp.c (range_fits_type_p): Properly handle full
12475         double-int precision.
12476
12477 2011-07-26  Martin Jambor  <mjambor@suse.cz>
12478
12479         PR bootstrap/49786
12480         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
12481         counts.
12482         (update_specialized_profile): Likewise.
12483
12484 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
12485             H.J. Lu  <hongjiu.lu@intel.com>
12486
12487         PR target/47381
12488         PR target/49832
12489         PR target/49833
12490         * config/i386/i386.md (i): Change SImode attribute to "e".
12491         (g): Change SImode attribute to "rme".
12492         (di): Change SImode attribute to "nF".
12493         (general_operand): Change SImode attribute to x86_64_general_operand.
12494         (general_szext_operand): Change SImode attribute to
12495         x86_64_szext_general_operand.
12496         (immediate_operand): Change SImode attribute to
12497         x86_64_immediate_operand.
12498         (nonmemory_operand): Change SImode attribute to
12499         x86_64_nonmemory_operand.
12500         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
12501         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
12502         (*lea_1): Use SWI48 mode iterator.
12503         (*lea_1_zext): New insn pattern.
12504         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
12505         (*bt<mode>): Ditto.
12506         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
12507         Update operand constraints.
12508         (addsi_1_zext): Ditto.
12509         (*add<mode>2): Ditto.
12510         (*addsi_3_zext): Ditto.
12511         (*subsi_1_zext): Ditto.
12512         (*subsi_2_zext): Ditto.
12513         (*subsi_3_zext): Ditto.
12514         (*addsi3_carry_zext): Ditto.
12515         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
12516         (*mulsi3_1_zext): Ditto.
12517         (*andsi_1): Ditto.
12518         (*andsi_1_zext): Ditto.
12519         (*andsi_2_zext): Ditto.
12520         (*<any_or:code>si_1_zext): Ditto.
12521         (*<any_or:code>si_2_zext): Ditto.
12522         (*test<mode>_1): Use <general_operand> predicate for operand 1.
12523         (*and<mode>_2): Ditto.
12524         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
12525         (add->lea splitter): Check operand modes in insn constraint.  Extend
12526         operands less than SImode wide to SImode.
12527         (add->lea zext splitter): Do not extend input operands to DImode.
12528         (*lea_general_1): Handle only QImode and HImode operands.
12529         (*lea_general_2): Ditto.
12530         (*lea_general_3): Ditto.
12531         (*lea_general_1_zext): Remove.
12532         (*lea_general_2_zext): Ditto.
12533         (*lea_general_3_zext): Ditto.
12534         (*lea_general_4): Check operand modes in insn constraint.  Extend
12535         operands less than SImode wide to SImode.
12536         (ashift->lea splitter): Ditto.
12537         * config/i386/i386.c (ix86_print_operand_address): Print address
12538         registers with 'q' modifier on 64bit targets.
12539         * config/i386/predicates.md (pic_32bit_opreand): Define as special
12540         predicate.  Reject non-SI and non-DI modes.
12541
12542 2011-07-25  Andrew Pinski  <apinski@cavium.com>
12543
12544         PR tree-opt/49671
12545         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
12546         TREE_THIS_NOTRAP into the inner most MEM_REF.
12547         Always copy TREE_THIS_VOLATILE.
12548         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
12549         arguments are not volatile references.
12550
12551 2011-07-25  Richard Henderson  <rth@redhat.com>
12552
12553         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
12554         * final.c (final_scan_insn): Don't test for it.
12555         (rest_of_clean_state): Likewise.
12556
12557 2011-07-25  Richard Henderson  <rth@redhat.com>
12558
12559         PR debug/49841
12560         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
12561         (emit_frame_save): Likewise.
12562         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
12563         insn onto a dummy blockage insn after the join label.
12564
12565 2011-07-25  Richard Henderson  <rth@redhat.com>
12566
12567         * dwarf2cfi.c (dw_trace_info): Add ID member.
12568         (get_trace_index): Remove.  Change users to use ID member.
12569         (before_next_cfi_note): New.
12570         (connect_traces): Remove unreachable traces before the main loop.
12571         Look across one trace and generate remember/restore_state if needed.
12572
12573 2011-07-25  Richard Henderson  <rth@redhat.com>
12574
12575         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
12576
12577 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
12578
12579         * genattr.c (write_upcase, gen_attr <enum definition writing>):
12580         Move to ...
12581         * genattr-common.c ... here.
12582         (main): Call gen_attr.
12583         * optc-gen.awk: Make generated program include insn-attr-common.h .
12584         * Makefile.in (oprions.o): Depend on insn-attr-common.h
12585
12586 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
12587
12588         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
12589         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
12590         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
12591         m32c_print_operand, m32c_print_operand_address): Remove.
12592         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
12593         Change return type to bool. Change argument type to bool.
12594         (m32c_print_operand, m32c_print_operand_address): Make static.
12595         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
12596         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12597
12598 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12599
12600         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
12601         attributes): Document mmap.
12602
12603 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
12604
12605         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
12606         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
12607         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
12608         mmix_print_operand, mmix_print_operand_address): Remove.
12609         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
12610         Change return type to bool. Change argument type to bool.
12611         (mmix_print_operand, mmix_print_operand_address): Make static.
12612         (mmix_intval, mmix_output_condition): Change 'x' argument type
12613         to const_rtx.
12614         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
12615         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12616
12617 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
12618
12619         PR target/39386
12620         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
12621         shift counter for x << x and x >> x shifts.
12622
12623 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12624
12625         PR target/47124
12626         * config.gcc: Reject *-*-solaris2 configuration.
12627
12628 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
12629
12630         PR tree-optimization/49809
12631         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
12632         gimple_get_lhs instead of gimple_assign_lhs.
12633
12634 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12635
12636         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
12637
12638 2011-07-25  Richard Guenther  <rguenther@suse.de>
12639
12640         PR tree-optimization/49822
12641         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
12642         more.  Make sure to preserve stmts with side-effects.  Properly
12643         handle virtual defs, follow a longer def chain.
12644
12645 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
12646
12647         PR plugins/45348
12648         PR plugins/48425
12649         PR plugins/46577
12650         * Makefile.in: Do not flatten c-family directory when installing
12651         plugin headers.
12652
12653 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
12654
12655         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
12656         original nodes if we are dealing with virtual clones.
12657
12658 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
12659
12660         * common/config/c6x/c6x-common.c: New file.
12661
12662 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
12663
12664         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
12665
12666 2011-07-25  Richard Guenther  <rguenther@suse.de>
12667
12668         PR tree-optimization/49715
12669         * tree-vrp.c: Include expr.h and optabs.h.
12670         (range_fits_type_): New function.
12671         (simplify_float_conversion_using_ranges): Likewise.
12672         (simplify_stmt_using_ranges): Call it.
12673         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
12674         * optabs.c (can_float_p): Export.
12675         * optabs.h (can_float_p): Declare.
12676
12677 2011-07-25  Richard Guenther  <rguenther@suse.de>
12678
12679         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
12680         (get_value_range): For out-of-range SSA names or names created
12681         after propagation return a read-only varying range.
12682         (dump_all_value_ranges): Adjust.
12683         (vrp_initialize): Likewise.
12684         (vrp_finalize): Likewise.
12685
12686 2011-07-24  Richard Henderson  <rth@redhat.com>
12687
12688         PR debug/49831
12689         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
12690         them entirely.
12691
12692 2011-07-24  Richard Henderson  <rth@redhat.com>
12693
12694         PR debug/49825
12695         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
12696         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
12697
12698 2011-07-24  Richard Henderson  <rth@redhat.com>
12699
12700         PR debug/49827
12701         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
12702
12703 2011-07-24  Richard Henderson  <rth@redhat.com>
12704
12705         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
12706         Zero args_size for abnormal edges.  Adjust all callers.
12707
12708 2011-07-24  Richard Henderson  <rth@redhat.com>
12709
12710         PR debug/49825
12711         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
12712
12713 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12714
12715         PR bootstrap/49835
12716         * collect2.c (demangle_flag): Removed.
12717
12718 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
12719
12720         * configure.ac (demangler_in_ld): Default to yes.
12721         * configure: Regenerated.
12722         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
12723         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
12724         --no-demangle options straight through to ld.  When
12725         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
12726         way that has the intended effect on Windows.
12727
12728 2011-07-23  Richard Henderson  <rth@redhat.com>
12729
12730         * dwarf2cfi.c: Include basic-block.h.
12731         (dw_label_info): Remove.
12732         (trace_work_list, trace_index): New.
12733         (remember_row, emit_cfa_remember): Remove.
12734         (dw_trace_info_hash, dw_trace_info_eq): New.
12735         (get_trace_index, get_trace_info): New.
12736         (save_point_p): New.
12737         (free_cfi_row): Remove.
12738         (add_cfi): Do not emit DW_CFA_remember_state.
12739         (cfa_row_equal_p): New.
12740         (barrier_args_size): Remove.
12741         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
12742         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
12743         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
12744         (dwarf2out_cfi_begin_epilogue): Remove.
12745         (dwarf2out_frame_debug_restore_state): Remove.
12746         (connect_traces, create_pseudo_cfg): New.
12747         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
12748         * Makefile.in (dwarf2cfi.o): Update.
12749
12750 2011-07-23  Richard Henderson  <rth@redhat.com>
12751
12752         * dwarf2cfi.c (dw_trace_info): New.
12753         (dw_label_info): New.
12754         (cie_return_save): New.
12755         (cur_trace): New.
12756         (queued_args_size): Rename from args_size.  Update all users.
12757         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
12758         (def_cfa_1): Use cur_trace instead of cfa_*.
12759         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
12760         (clobbers_queued_reg_save, reg_saved_in): Likewise.
12761         (dwarf2out_frame_debug_expr): Likewise.
12762         (create_cie_data): Split out from ...
12763         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
12764
12765 2011-07-23  Richard Henderson  <rth@redhat.com>
12766
12767         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
12768         Update all users to match.
12769         (execute_dwarf2_frame): Free reg_saved_in_data.
12770
12771 2011-07-23  Richard Henderson  <rth@redhat.com>
12772
12773         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
12774         (queued_reg_saves): Don't GTY.  Change to a VEC.
12775         (queue_reg_save): Update to match.
12776         (dwarf2out_flush_queued_reg_saves): Likewise.
12777         (clobbers_queued_reg_save): Likewise.
12778         (reg_saved_in): Likewise.
12779         (execute_dwarf2_frame): Free queued_reg_saves.
12780
12781 2011-07-23  Richard Henderson  <rth@redhat.com>
12782
12783         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
12784
12785 2011-07-23  Richard Henderson  <rth@redhat.com>
12786
12787         * dwarf2cfi.c (add_cfi_args_size): Split out from...
12788         (dwarf2out_args_size): ... here.
12789         (add_cfi_restore): Split out from ...
12790         (dwarf2out_frame_debug_cfa_restore): ... here.
12791         (def_cfa_0): Split out from ...
12792         (def_cfa_1): ... here.
12793         (cfi_oprnd_equal_p, cfi_equal_p): New.
12794         (change_cfi_row): New.
12795         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
12796         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
12797         (output_cfis): Remove.
12798         * dwarf2out.c (output_fde): Simplify output_cfi loop.
12799         (dwarf2out_switch_text_section): Don't call output_cfis.
12800         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
12801         * dwarf2out.h: Update decls.
12802         (enum dw_val_class): Add dw_val_class_none.
12803
12804 2011-07-23  Richard Henderson  <rth@redhat.com>
12805
12806         * dwarf2cfi.c (update_row_reg_save): New.
12807         (dwarf2out_frame_debug_cfa_expression): Use it.
12808         (dwarf2out_frame_debug_cfa_restore): Likewise.
12809         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
12810
12811 2011-07-23  Richard Henderson  <rth@redhat.com>
12812
12813         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
12814
12815 2011-07-23  Richard Henderson  <rth@redhat.com>
12816
12817         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
12818         (cie_cfi_row): New.
12819         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
12820         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
12821         (cur_row, remember_row): New.
12822         (def_cfa_1): Use cur_row instead of the old_* variables.
12823         (dwarf2out_frame_debug_restore_state): Similarly.
12824         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
12825         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
12826         (dwarf2out_frame_debug_adjust_cfa): Likewise.
12827         (dwarf2out_frame_debug_cfa_offset): Likewise.
12828         (dwarf2out_frame_debug_expr): Likewise.
12829         (execute_dwarf2_frame): Set up cur_row.
12830         * dwarf2out.h (struct cfa_loc): Mark for GTY.
12831
12832 2011-07-23  Richard Henderson  <rth@redhat.com>
12833
12834         * basic-block.h (EDGE_PRESERVE): New.
12835         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
12836         * bb-reorder.c: Include except.h.
12837         (fix_up_crossing_landing_pad): New.
12838         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
12839         landing pads in the right partition.  Duplicate as necessary.
12840         (partition_hot_cold_basic_blocks): Fix up DF info after
12841         duplicating landing pads.
12842         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
12843         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
12844         is set properly.  Validate that EH edges are not CROSSING.
12845         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
12846         (dw2_build_landing_pads): ... here.
12847         (convert_to_eh_region_ranges): Remove code to fixup crossing
12848         landing pads.
12849         * except.h (expand_dw2_landing_pad_for_region): Declare.
12850         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
12851
12852 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
12853
12854         PR target/49816
12855         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
12856
12857 2011-07-22  Jason Merrill  <jason@redhat.com>
12858
12859         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
12860
12861 2011-07-22  Richard Henderson  <rth@redhat.com>
12862
12863         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
12864
12865 2011-07-22  Richard Henderson  <rth@redhat.com>
12866
12867         * jump.c (maybe_propagate_label_ref): Split out of...
12868         (mark_all_labels): ... here.  Do not attempt label_ref
12869         propagation while in cfglayout mode.
12870
12871 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
12872
12873         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
12874         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
12875         (dwarf_attr_name): Handle DW_AT_GNU_macros.
12876         (dwarf2out_define): If the vector is empty and
12877         lineno is 0, emit a dummy entry first.
12878         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
12879         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
12880         optimize_macinfo_range): New functions.
12881         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
12882         mergeable, optimize longer strings using
12883         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
12884         optimize longer sequences of define/undef ops from headers
12885         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
12886         emit a section headers.
12887         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
12888         and macinfo_section_label to DEBUG_MACRO_SECTION
12889         resp. DEBUG_MACRO_SECTION_LABEL.
12890         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
12891         instead of DW_AT_macro_info.
12892
12893         PR other/32998
12894         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
12895         options.
12896         * dwarf2out.c: Include opts.h.
12897         (dchar_p): New typedef.  Define heap VEC for it.
12898         (producer_string): New variable.
12899         (gen_producer_string): New function.
12900         (gen_compile_unit_die): Use it.
12901         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
12902         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
12903         * doc/invoke.texi: Document -grecord-gcc-switches and
12904         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
12905         to -frecord-gcc-switches description.
12906
12907 2011-07-22  Jason Merrill  <jason@redhat.com>
12908
12909         PR c++/30112
12910         * c-decl.c (c_linkage_bindings): Define.
12911
12912 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
12913
12914         PR debug/49815
12915         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
12916
12917 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
12918
12919         * config/i386/i386.c (ix86_option_override_internal): Disallow
12920         MS ABI in x32 mode.
12921         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
12922         only for TARGET_LP64.
12923         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
12924
12925 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
12926
12927         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
12928         avoid warnings when GCC is built with a C++ compiler.
12929
12930 2011-07-22  Martin Jambor  <mjambor@suse.cz>
12931
12932         PR lto/49796
12933         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
12934         if decl node is in another partition, call cgraph_get_node only once.
12935
12936 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
12937
12938         * config.gcc (x86_64-*-linux*): Set
12939         default_gnu_indirect_function to yes.
12940
12941 2011-07-22  Richard Guenther  <rguenther@suse.de>
12942
12943         PR tree-optimization/45819
12944         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
12945         preserve volatile and notrap flags.
12946
12947 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12948             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12949
12950         PR bootstrap/49794
12951         * configure.ac: Test AM_ICONV with CXX.
12952         * configure: Regenerate.
12953         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
12954
12955 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12956
12957         PR bootstrap/49797
12958         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
12959         (set_cloog_options): Use it.
12960
12961 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
12962
12963         PR c++/49756
12964         * gcc.c (main): Call stack_limit_increase (64MB).
12965         * toplev.c (toplev_main): Likewise.
12966
12967 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
12968
12969         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
12970         instead of force_reg.
12971
12972 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
12973
12974         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
12975         needed and use force_reg after convert.
12976         (ix86_expand_call): Likewise.
12977         (ix86_expand_special_args_builtin): Likewise.
12978         (ix86_expand_builtin): Likewise.
12979
12980 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12981
12982         PR middle-end/47654
12983         PR middle-end/49649
12984         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
12985         in parameter.  Initialize v1 and v2 based on the values returned
12986         by clast_name_to_lb_ub.
12987         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
12988         values.
12989         (type_for_clast_bin): Same.
12990         (type_for_clast_expr): Same.
12991         (type_for_clast_eq): Update calls to type_for_clast_expr.
12992         (type_for_clast_for): Same.
12993         (build_iv_mapping): Same.
12994         * graphite-ppl.h (value_min): New.
12995
12996 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12997
12998         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
12999         types whenever possible.
13000
13001 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
13002
13003         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
13004         and ub fields.
13005         (new_clast_name_index): Add lb and ub parameters.
13006         (free_clast_name_index): New.
13007         (clast_name_to_lb_ub): New.
13008         (save_clast_name_index): Add lb and ub parameters.
13009         (compute_bounds_for_param): New.
13010         (type_for_level): Removed.
13011         (type_for_clast_for): Removed level parameter.  Do not call
13012         type_for_level.
13013         (graphite_create_new_loop): Store the lb and ub for the clast_name
13014         of the iterator of the loop that has been generated.
13015         (graphite_create_new_loop_guard): Remove parameter level.
13016         (create_params_index): Store the lb and ub of each parameter.
13017         (gloog): Use free_clast_name_index.  Pass to create_params_index
13018         the current scop.
13019
13020 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
13021
13022         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
13023         (max_precision_type): Inline max_signed_precision_type.
13024         (type_for_clast_red): Use max_precision_type.
13025         (type_for_clast_bin): Same.
13026         (type_for_clast_for): Same.
13027
13028 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
13029
13030         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
13031         type_for_interval.
13032         (gcc_type_for_value): Renamed type_for_value.
13033         (gcc_type_for_clast_term): Renamed type_for_clast_term.
13034         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
13035         (gcc_type_for_clast_red): Renamed type_for_clast_red.
13036         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
13037         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
13038         (graphite_translate_clast_equation): Update calls.
13039         (compute_type_for_level): Renamed type_for_level.
13040         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
13041         (build_iv_mapping): Update calls.
13042         (graphite_create_new_loop_guard): Same.
13043
13044 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
13045
13046         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
13047         comment.
13048
13049 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
13050
13051         * graphite-clast-to-gimple.c (struct ivs_params): New.
13052         (clast_name_to_gcc): Use ivs_params to pass around parameters.
13053         (clast_to_gcc_expression): Same.
13054         (clast_to_gcc_expression_red): Same.
13055         (gcc_type_for_clast_term): Same.
13056         (gcc_type_for_clast_expr): Same.
13057         (gcc_type_for_clast_red): Same.
13058         (gcc_type_for_clast_bin): Same.
13059         (gcc_type_for_clast_eq): Same.
13060         (graphite_translate_clast_equation): Same.
13061         (graphite_create_guard_cond_expr): Same.
13062         (graphite_create_new_guard): Same.
13063         (graphite_create_new_loop): Same.
13064         (build_iv_mapping): Same.
13065         (translate_clast_user): Same.
13066         (graphite_create_new_loop_guard): Same.
13067         (translate_clast): Same.
13068         (translate_clast_for_loop): Same.
13069         (translate_clast_for): Same.
13070         (translate_clast_guard): Same.
13071         (initialize_cloog_names): Fix typo.
13072         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
13073
13074 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
13075
13076         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
13077         (new_clast_name_index): Add level parameter.
13078         (clast_name_to_level): New.
13079         (save_clast_name_index): Add level parameter.
13080         (newivs_to_depth_to_newiv): Removed.
13081         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
13082         (graphite_create_new_loop): Add level parameter.  Pass level to
13083         save_clast_name_index.
13084         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
13085         (create_params_index): Pass level to save_clast_name_index.
13086
13087 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
13088
13089         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
13090         recompute type, lb, and ub.  Get them from...
13091         (graphite_create_new_loop_guard): ...here.  Pass in parameter
13092         pointers to type, lb, and ub.
13093         (translate_clast_for_loop): Update function calls.
13094         (translate_clast_for): Same.
13095
13096 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
13097
13098         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
13099         psct_dynamic_dim.
13100         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
13101         (gcc_type_for_iv_of_clast_loop): Update use of level.
13102         (gloog): Start counting nesting level from 0.
13103         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
13104         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
13105         psct_dynamic_dim on level.
13106
13107 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
13108
13109         * config/i386/i386.c (ix86_legitimize_address): Convert to
13110         Pmode if needed.
13111
13112 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
13113
13114         * config/i386/i386.c (function_value_64): Always return pointers
13115         in Pmode.
13116         (ix86_promote_function_mode): New.
13117         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
13118
13119 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13120
13121         PR tree-optimization/49749
13122         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
13123         remove no-longer-used maxrank variable.
13124
13125 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
13126
13127         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
13128
13129 2011-07-21  Jason Merrill  <jason@redhat.com>
13130
13131         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
13132         * recog.h (struct insn_data_d): Check it instead of
13133         HAVE_DESIGNATED_INITIALIZERS.
13134         * genoutput.c (output_insn_data): Likewise.
13135
13136 2011-07-21  Richard Guenther  <rguenther@suse.de>
13137
13138         PR tree-optimization/49770
13139         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
13140         valueized any operand.  Renamed from ...
13141         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
13142         (valueize_shared_reference_ops_from_ref): Return whether we
13143         valueized any operand.
13144         (vn_reference_lookup): Only when we valueized any operand
13145         use the valueized reference for alias analysis.  Do not preserve
13146         the original reference tree in this case.
13147
13148 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
13149
13150         * config/i386/i386.c (ix86_decompose_address): Reject all but
13151         register operands and subregs of DImode hard registers in index.
13152
13153 2011-07-21  Kai Tietz  <ktietz@redhat.com>
13154
13155         * fold-const.c (fold_unary_loc): Preserve indirect
13156         comparison cast to none-boolean type.
13157         * tree-ssa.c (useless_type_conversion_p): Preserve cast
13158         from/to boolean-type.
13159         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
13160         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
13161         * tree-cfg.c (verify_gimple_comparison): Check result
13162         type of comparison expression.
13163         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
13164         of condition result and disallow type-cast sinking into comparison.
13165
13166 2011-07-21  Richard Guenther  <rguenther@suse.de>
13167
13168         * tree-ssa-forwprop.c (combine_conversions): Return whether
13169         we have to run cfg-cleanup.  Properly remove dead stmts.
13170         (ssa_forward_propagate_and_combine): Adjust.
13171
13172 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
13173
13174         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
13175
13176 2011-07-21  Kai Tietz  <ktietz@redhat.com>
13177
13178         * tree-ssa-propagate.c (substitute_and_fold): Use
13179         do_dce flag to deside, if BB's statements are scanned
13180         in last to first, or first to last order.
13181
13182 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
13183
13184         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
13185
13186 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
13187             Uros Bizjak  <ubizjak@gmail.com>
13188             Richard Henderson  <rth@redhat.com>
13189
13190         * config/i386/constraints.md (w): New.
13191
13192         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
13193         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
13194
13195         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
13196         instead of TARGET_64BIT.
13197
13198         * config/i386/i386.md (indirect_jump): Replace
13199         nonimmediate_operand with indirect_branch_operand.
13200         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
13201         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
13202         Convert operand 0 to Pmode for x32 if not PIC.
13203         (*tablejump_1): Replace nonimmediate_operand with
13204         indirect_branch_operand.  Replace constraint "m" with "w".
13205         (*call_vzeroupper): Replace constraint "m" with "w".
13206         (*call): Likewise.
13207         (*call_rex64_ms_sysv_vzeroupper): Likewise.
13208         (*call_rex64_ms_sysv): Likewise.
13209         (*call_value_vzeroupper): Likewise.
13210         (*call_value): Likewise.
13211         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
13212         (*call_value_rex64_ms_sysv): Likewise.
13213         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
13214
13215         * config/i386/predicates.md (indirect_branch_operand): New.
13216         (call_insn_operand): Support x32.
13217
13218 2011-07-20  Michael Eager  <eager@eagercon.com>
13219
13220         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
13221
13222 2011-07-20  Richard Henderson  <rth@redhat.com>
13223
13224         * cfg.c (dump_bb_info): Dump basic_block->flags.
13225         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
13226
13227 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
13228
13229         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
13230         of DImode hard registers in index.
13231         (ix86_legitimate_address_p): Allow subregs of base and index to span
13232         more than a word.  Assert that subregs of base and index satisfy
13233         register_no_elim_operand predicates.  Reject addresses where
13234         base and index have different modes.
13235
13236 2011-07-20  Robert Millan  <rmh@gnu.org>
13237
13238         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
13239
13240 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13241
13242         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
13243         removing now-unnecessary assignment.
13244
13245 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13246
13247         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
13248         memory address space to the type's address space.
13249
13250 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
13251
13252         PR target/36467
13253         PR target/49687
13254         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
13255         and expand appropriately if there is a CONST_INT in operand2.
13256         (usmulqihi3): New insn.
13257         (*sumulqihi3): New insn.
13258         (*osmulqihi3): New insn.
13259         (*oumulqihi3): New insn.
13260         (*muluqihi3.uconst): New insn_and_split.
13261         (*muluqihi3.sconst): New insn_and_split.
13262         (*mulsqihi3.sconst): New insn_and_split.
13263         (*mulsqihi3.uconst): New insn_and_split.
13264         (*mulsqihi3.oconst): New insn_and_split.
13265         (*ashifthi3.signx.const): New insn_and_split.
13266         (*ashifthi3.signx.const7): New insn_and_split.
13267         (*ashifthi3.zerox.const): New insn_and_split.
13268         (mulsqihi3): New insn.
13269         (muluqihi3): New insn.
13270         (muloqihi3): New insn.
13271         * config/avr/predicates.md (const_2_to_7_operand): New.
13272         (const_2_to_6_operand): New.
13273         (u8_operand): New.
13274         (s8_operand): New.
13275         (o8_operand): New.
13276         (s9_operand): New.
13277         (register_or_s9_operand): New.
13278
13279 2011-07-20  Kai Tietz  <ktietz@redhat.com>
13280
13281         * builtins.c (fold_builtin_expect): See through the cast
13282         from truthvalue_type_node to long.
13283
13284 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
13285
13286         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
13287         where we can use them from the standard and altivec instruction
13288         sets, instead of always using the 3 operand VSX forms that require
13289         the destination to overlap one of the inputs.
13290         (vsx_fms*): Ditto.
13291         (vsx_fnma*): Ditto.
13292         (vsx_fnms*): Ditto.
13293
13294         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
13295         for DF types.
13296         (fmsdf4_fpr): Ditto.
13297         (nfmadf4_fpr): Ditto.
13298         (nfmsdf4_fpr): Ditto.
13299
13300 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
13301
13302         * genrecog.c (make_insn_sequence): Correct position numbering
13303         when filtering out match_scratch and match_dup.
13304
13305 2011-07-20  Richard Guenther  <rguenther@suse.de>
13306
13307         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
13308         against already removed statements.
13309         (forward_propagate_into_comparison): Remove dead defining stmts.
13310         (forward_propagate_into_gimple_cond): Likewise.
13311         (forward_propagate_into_cond): Simplify.
13312         (ssa_forward_propagate_and_combine): Handle changed cfg from
13313         forward_propagate_into_comparison.
13314         * tree-ssa-phiopt.c (conditional_replacement): Use proper
13315         locations for newly built statements.
13316
13317 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
13318
13319         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
13320
13321 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13322
13323         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
13324         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
13325
13326 2011-07-20  Richard Guenther  <rguenther@suse.de>
13327
13328         PR middle-end/18908
13329         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
13330         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
13331         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
13332
13333 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
13334
13335         * config/frv/frv.c (frv_register_move_cost): Define explicitly
13336         costs for subclasses of GR_REGS.
13337
13338 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
13339
13340         PR target/49780
13341         * config/i386/predicates.md (no_seg_addres_operand): No more special.
13342         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
13343         of DImode hard registers in base.
13344         (ix86_legitimate_address_p): Allow SImode and DImode base and index
13345         registers.
13346
13347 2011-07-20  Richard Guenther  <rguenther@suse.de>
13348
13349         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
13350         (unify_nodes): Deal with that.
13351         (solve_graph): Likewise.
13352
13353 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
13354
13355         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
13356         canonicalize left operand from ZERO_EXTEND to AND.
13357
13358 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
13359
13360         * target.def (class_max_nregs): New hook.
13361         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
13362         * doc/tm.texi: Regenerate.
13363         * targhooks.c (default_class_max_nregs): New function.
13364         * targhooks.h (default_class_max_nregs): Declare.
13365         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
13366         x_ira_reg_class_min_nregs arrays to unsigned char.
13367         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
13368         hook instead of CLASS_MAX_NREGS macro.
13369         * reginfo.c (restore_register_info): Ditto.
13370         * ira-conflicts.c (process_regs_for_copy): Use
13371         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
13372         Change type rclass and aclass vars to reg_class_t.
13373         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
13374         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
13375         reg_class_t.
13376         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
13377         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
13378
13379         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
13380         * config/i386/i386.c (ix86_class_max_nregs): New function.
13381         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
13382         instead of CLASS_MAX_NREGS macro.
13383         (TARGET_CLASS_MAX_NREGS): Define.
13384         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
13385         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
13386         * config/avr/avr.c (class_max_nregs): Remove function.
13387         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
13388         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
13389         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
13390         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
13391         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
13392         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
13393         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
13394         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
13395         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
13396         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
13397         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
13398         * config/score/score.h (CLASS_MAX_NREGS): Remove.
13399         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
13400         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
13401         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
13402
13403 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
13404
13405         * cif-code.def (OVERWRITABLE): Fix typo and move around.
13406         (TARGET_OPTIMIZATION_MISMATCH): Delete.
13407         (EH_PERSONALITY): Fix typo.
13408         (NON_CALL_EXCEPTIONS): Fix message.
13409         (OPTIMIZATION_MISMATCH): Adjust message.
13410         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
13411
13412 2011-07-19  Ian Lance Taylor  <iant@google.com>
13413
13414         * doc/install.texi (Configuration): Document
13415         --enable-build-poststage1-with-cxx.
13416
13417 2011-07-19  Robert Millan  <rmh@gnu.org>
13418
13419         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
13420         (GLIBC_DYNAMIC_LINKER): Remove.
13421
13422         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
13423         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
13424         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
13425         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
13426         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
13427         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
13428
13429         * config/mips/linux.h: Remove everything except for ...
13430         (GLIBC_DYNAMIC_LINKER): ... this macro.
13431
13432         * config/mips/linux64.h: Remove everything except for ...
13433         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
13434         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
13435         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
13436         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
13437         (GNU_USER_LINK_EMULATIONN32): New macros.
13438
13439         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
13440         Use the new headers.
13441
13442 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
13443
13444         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
13445         Add offset_known_p and size_known_p fields.
13446         (MEM_OFFSET_KNOWN_P): Update accordingly.
13447         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
13448         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
13449         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
13450         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
13451         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
13452         (init_emit_regs): Likewise.
13453
13454 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
13455
13456         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
13457         (MEM_OFFSET): Change from returning an rtx to returning a
13458         HOST_WIDE_INT.
13459         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
13460         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
13461         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
13462         (clear_mem_offset): Declare.
13463         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
13464         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
13465         MEM_OFFSET to get a HOST_WIDE_INT offset.
13466         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
13467         (adjust_offset_for_component_ref): Take a bool "known_p"
13468         parameter and a HOST_WIDE_INT "offset" parameter.
13469         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
13470         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
13471         than an rtx.  Use clear_mem_offset to clear the offset.
13472         * cfgcleanup.c (merge_memattrs): Likewise.
13473         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
13474         * function.c (assign_parm_find_stack_rtl): Likewise.
13475         (assign_parm_setup_stack): Likewise.
13476         * print-rtl.c (print_rtx): Likewise.
13477         * reload.c (find_reloads_subreg_address): Likewise.
13478         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
13479         * var-tracking.c (INT_MEM_OFFSET): Likewise.
13480         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
13481         (get_mem_align_offset): Likewise.
13482         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
13483         (clear_mem_offset): New function.
13484         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
13485         offset rather than an rtx.  Assume both the expressio and offset
13486         are available.
13487         (r10k_needs_protection_p_1): Update accordingly, checking the
13488         expression and offset availability here instead.
13489
13490 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
13491
13492         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
13493         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
13494         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
13495         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
13496         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
13497         (clear_mem_size): Declare.
13498         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
13499         (clear_mem_size): New function.
13500         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
13501         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
13502         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
13503         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
13504         to clear the size.
13505         (nonoverlapping_memrefs_p): Likewise.
13506         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
13507         (expand_builtin_init_trampoline): Likewise.
13508         * calls.c (compute_argument_addresses): Likewise.
13509         * cfgcleanup.c (merge_memattrs): Likewise.
13510         * dce.c (find_call_stack_args): Likewise.
13511         * dse.c (record_store, scan_insn): Likewise.
13512         * dwarf2out.c (dw_sra_loc_expr): Likewise.
13513         * expr.c (emit_block_move_hints): Likewise.
13514         * function.c (assign_parm_find_stack_rtl): Likewise.
13515         * print-rtl.c (print_rtx): Likewise.
13516         * reload.c (find_reloads_subreg_address): Likewise.
13517         * rtlanal.c (may_trap_p_1): Likewise.
13518         * var-tracking.c (track_expr_p): Likewise.
13519         * varasm.c (assemble_trampoline_template): Likewise.
13520         * config/arm/arm.c (arm_print_operand): Likewise.
13521         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
13522         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
13523         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
13524         (expand_constant_setmem_prologue): Likewise.
13525         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
13526         * config/rs6000/rs6000.c (expand_block_move): Likewise.
13527         (adjacent_mem_locations): Likewise.
13528         * config/s390/s390.c (s390_expand_setmem): Likewise.
13529         (s390_expand_insv): Likewise.
13530         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
13531         (*extendqi<mode>2_short_displ): Likewise.
13532         * config/sh/sh.c (expand_block_move): Likewise.
13533         * config/sh/sh.md (extv, extzv): Likewise.
13534
13535 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
13536
13537         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
13538         (mem_attrs_htab_eq): ...here.
13539         (find_mem_attrs): Replace with...
13540         (set_mem_attrs): ...this function.  Take a mem_attrs structure
13541         rather than individual fields.
13542         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
13543         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
13544         (set_mem_size, change_address, adjust_address_1, offset_address)
13545         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
13546         Update accordingly.
13547
13548 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
13549
13550         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
13551         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
13552         Provide a dummy definition of MEM_ADDR_SPACE for generators.
13553         (target_rtl): Add x_mode_mem_attrs.
13554         (mode_mem_attrs): New macro.
13555         (get_mem_attrs): New function.
13556         * emit-rtl.c (get_mem_attrs): Rename to...
13557         (find_mem_attrs): ...this.
13558         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
13559         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
13560         (set_mem_size, change_address, adjust_address_1, offset_address)
13561         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
13562         Update accordingly.
13563         (init_emit_regs): Initialize mode_mem_attrs.
13564
13565 2011-07-19  Richard Guenther  <rguenther@suse.de>
13566
13567         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
13568         TRUTH_*_EXPR handling.
13569         * tree-ssa-operands.c (get_expr_operands): Likewise.
13570         * tree-ssa-pre.c (fully_constant_expression): Likewise.
13571         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
13572         Likewise.
13573         (is_and_or_or): Likewise.
13574         (is_norm_cond_subset_of): Likewise.
13575
13576 2011-07-19  Richard Guenther  <rguenther@suse.de>
13577
13578         * tree.h (fold_build_pointer_plus_loc): New helper function.
13579         (fold_build_pointer_plus_hwi_loc): Likewise.
13580         (fold_build_pointer_plus): Define.
13581         (fold_build_pointer_plus_hwi): Likewise.
13582         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
13583         (fold_builtin_memory_op): Likewise.
13584         (fold_builtin_stpcpy): Likewise.
13585         (fold_builtin_memchr): Likewise.
13586         (fold_builtin_strstr): Likewise.
13587         (fold_builtin_strchr): Likewise.
13588         (fold_builtin_strrchr): Likewise.
13589         (fold_builtin_strpbrk): Likewise.
13590         (fold_builtin_strcat): Likewise.
13591         (expand_builtin_memory_chk): Likewise.
13592         (fold_builtin_memory_chk): Likewise.
13593         * c-typeck.c (build_unary_op): Likewise.
13594         * cgraphunit.c (thunk_adjust): Likewise.
13595         * fold-const.c (build_range_check): Likewise.
13596         (fold_binary_loc): Likewise.
13597         * omp-low.c (extract_omp_for_data): Likewise.
13598         (expand_omp_for_generic): Likewise.
13599         (expand_omp_for_static_nochunk): Likewise.
13600         (expand_omp_for_static_chunk): Likewise.
13601         * tree-affine.c (add_elt_to_tree): Likewise.
13602         * tree-data-ref.c (split_constant_offset_1): Likewise.
13603         * tree-loop-distribution.c (generate_memset_zero): Likewise.
13604         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
13605         * tree-predcom.c (ref_at_iteration): Likewise.
13606         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
13607         (add_to_parts): Likewise.
13608         (create_mem_ref): Likewise.
13609         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
13610         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
13611         (number_of_iterations_le): Likewise.
13612         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
13613         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
13614         (vect_create_addr_base_for_vector_ref): Likewise.
13615         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
13616         (vect_create_cond_for_alias_checks): Likewise.
13617         * tree-vrp.c (extract_range_from_assert): Likewise.
13618         * config/alpha/alpha.c (alpha_va_start): Likewise.
13619         (alpha_gimplify_va_arg_1): Likewise.
13620         * config/i386/i386.c (ix86_va_start): Likewise.
13621         (ix86_gimplify_va_arg): Likewise.
13622         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
13623         * config/mep/mep.c (mep_expand_va_start): Likewise.
13624         (mep_gimplify_va_arg_expr): Likewise.
13625         * config/mips/mips.c (mips_va_start): Likewise.
13626         (mips_gimplify_va_arg_expr): Likewise.
13627         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
13628         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
13629         (rs6000_gimplify_va_arg): Likewise.
13630         * config/s390/s390.c (s390_va_start): Likewise.
13631         (s390_gimplify_va_arg): Likewise.
13632         * config/sh/sh.c (sh_va_start): Likewise.
13633         (sh_gimplify_va_arg_expr): Likewise.
13634         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
13635         * config/spu/spu.c (spu_va_start): Likewise.
13636         (spu_gimplify_va_arg_expr): Likewise.
13637         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
13638         Likewise.
13639         (xstormy16_gimplify_va_arg_expr): Likewise.
13640         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
13641         (xtensa_gimplify_va_arg_expr): Likewise.
13642
13643 2011-07-19  Richard Guenther  <rguenther@suse.de>
13644
13645         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
13646         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
13647         handling.
13648
13649         PR middle-end/18908
13650         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
13651         result of BIT_*_EXPR to bitfield precision.
13652
13653 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
13654
13655         PR tree-optimization/49742
13656         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
13657         as a potential write.
13658
13659 2011-07-19  Richard Guenther  <rguenther@suse.de>
13660
13661         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
13662         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
13663         (forward_propagate_comparison): Simplify, remove obsolete code.
13664
13665 2011-07-19  Richard Guenther  <rguenther@suse.de>
13666
13667         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
13668         BIT_XOR_EXPR, same as the RTL expander does.
13669         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
13670         (verify_gimple_assign_unary): Likewise.
13671         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
13672         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
13673         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
13674
13675 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
13676
13677         PR tree-optimization/49768
13678         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
13679         if offset is smaller than bitoffset, but offset+size is bigger
13680         than bitoffset.
13681
13682 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
13683
13684         PR tree-optimization/49771
13685         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
13686         zero step, set segment length to the size of the data-ref's type.
13687
13688 2011-07-18  Martin Jambor  <mjambor@suse.cz>
13689
13690         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
13691         comments.
13692         (ipcp_values_pool): Declare.
13693         (ipcp_sources_pool): Likewise.
13694         (ipcp_lattice): Changed to forward declaration.
13695         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
13696         cannot_devirtualize.
13697         (ipa_node_params): New fields descriptors, lattices, known_vals,
13698         clone_for_all_contexts and node dead, removed fields params and
13699         count_scale.
13700         (ipa_set_param_count): Removed.
13701         (ipa_get_param_count): Made to work with descriptors vector.
13702         (ipa_get_param): Updated.
13703         (ipa_param_cannot_devirtualize_p): Removed.
13704         (ipa_param_types_vec_empty): Likewise.
13705         (ipa_set_param_used): New function.
13706         (ipa_get_param_used): Updated to use descriptors vector.
13707         (ipa_func_list): Removed.
13708         (ipa_init_func_list): Removed declaration.
13709         (ipa_push_func_to_list_1): Likewise.
13710         (ipa_pop_func_from_list): Likewise.
13711         (ipa_push_func_to_list): Removed.
13712         (ipa_lattice_from_jfunc): Remove declaration.
13713         (ipa_get_jf_pass_through_result): Declare.
13714         (ipa_get_jf_ancestor_result): Likewise.
13715         (ipa_value_from_jfunc): Likewise.
13716         (ipa_get_lattice): Update.
13717         (ipa_lat_is_single_const): New function.
13718         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
13719         (ipa_init_func_list): Likewise.
13720         (ipa_pop_func_from_list): Likewise.
13721         (ipa_get_param_decl_index): Fix coding style.
13722         (count_formal_params): Removed.
13723         (count_formal_params_1): Renamed to count_formal_params.
13724         (ipa_populate_param_decls): Update to use descriptors vector.
13725         (ipa_initialize_node_params): Likewise.
13726         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
13727         (ipa_analyze_params_uses): Likewise.
13728         (ipa_free_node_params_substructures): Likewise and free also lattices
13729         and known values.
13730         (duplicate_array): Removed.
13731         (ipa_edge_duplication_hook): Add the new edge to the list of edge
13732         clones.
13733         (ipa_node_duplication_hook): Update to use new lattices.
13734         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
13735         (ipa_free_all_structures_after_iinln): Likewise.
13736         (ipa_write_node_info): Update to use new lattices.
13737         (ipa_read_node_info): Likewise.
13738         (ipa_get_jf_pass_through_result): New function.
13739         (ipa_get_jf_ancestor_result): Likewise.
13740         (ipa_value_from_jfunc): Likewise.
13741         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
13742         * ipa-cp.c: Reimplemented.
13743         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
13744         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
13745         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
13746         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
13747         * doc/invoke.texi (devirt-type-list-size): Removed description.
13748         (ipa-cp-value-list-size): Added description.
13749
13750 2011-07-18  Richard Henderson  <rth@redhat.com>
13751
13752         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
13753         before calling create_basic_block.
13754
13755 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
13756
13757         PR middle-end/49675
13758         * tree.c (build_common_builtin_nodes): Register
13759         __builtin_return_address, __cyg_profile_func_enter
13760         and __cyg_profile_func_exit.
13761
13762 2011-07-18  Richard Henderson  <rth@redhat.com>
13763
13764         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
13765         (add_labels_and_missing_jumps): ... here.
13766         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
13767
13768 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
13769
13770         PR target/47744
13771         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
13772         of DImode hard registers in PLUS address chains.
13773
13774 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13775
13776         PR bootstrap/49769
13777         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
13778         (alpha*-*-freebsd*): Likewise.
13779         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
13780         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
13781         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
13782         crtprec80.o, crtfastmath.o to extra_parts for all targets.
13783         (ia64*-*-elf*): Remove extra_parts.
13784         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
13785         (sparc64-*-linux*): Likewise.
13786         (sparc64-*-freebsd*): Likewise.
13787
13788         Revert:
13789         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
13790         (ia64*-*-linux*): Likewise.
13791         (mips64*-*-linux*): Likewise.
13792         (mips*-*-linux*): Likewise.
13793
13794 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
13795
13796         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
13797
13798 2011-07-18  Richard Guenther  <rguenther@suse.de>
13799
13800         * gimplify.c (gimplify_expr): Use input_location, not saved_location
13801         when building new trees.
13802
13803 2011-07-18  Richard Guenther  <rguenther@suse.de>
13804
13805         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
13806         expansion result to bitfield precision if required.
13807
13808 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13809
13810         * config.gcc (i[3456x]86-*-netware*): Remove.
13811
13812         * gthr-nks.h: Remove.
13813         * configure.ac (enable_threads): Remove nks.
13814         * configure: Regenerate.
13815
13816         * config/i386/i386.c (ix86_encode_section_info): Remove netware
13817         reference.
13818         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
13819         <netware.h> reference.
13820
13821         * config/i386/netware-libgcc.c,
13822         gcc/config/i386/netware-libgcc.def,
13823         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
13824         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
13825         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
13826         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
13827
13828         * doc/extend.texi (Function Attributes,
13829         callee_pop_aggregate_return): Remove i?86-netware reference.
13830         * doc/install.texi (Configuration, --enable-threads): Remove nks.
13831
13832 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13833
13834         PR target/49746
13835         Revert:
13836         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13837
13838         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
13839         patterns.
13840
13841 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
13842
13843         PR middle-end/49732
13844         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
13845
13846 2011-07-16  Matthias Klose  <doko@ubuntu.com>
13847
13848         * doc/install.texi: Document --enable-static-libjava.
13849
13850 2011-07-15  Richard Henderson  <rth@redhat.com>
13851
13852         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
13853         Replace all three arguments by returning a VEC of edges.
13854         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
13855         pointers and counts.
13856         (fix_edges_for_rarely_executed_code): Merge ...
13857         (rest_of_handle_partition_blocks): ... into...
13858         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
13859         any work was performed.
13860         (pass_partition_blocks): Clear todo_flags_finish.
13861
13862 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
13863             Jakub Jelinek  <jakub@redhat.com>
13864             Jonathan Wakely  <jwakely.gcc@gmail.com>
13865
13866         PR libstdc++/49745
13867         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
13868         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
13869
13870 2011-07-15  Jason Merrill  <jason@redhat.com>
13871
13872         PR testsuite/49741
13873         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
13874         rather than --tool_opts.
13875
13876 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
13877
13878         * doc/plugins.texi (Building GCC plugins): gengtype needs its
13879         corresponding gtype.state.
13880
13881 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13882
13883         PR target/49723
13884         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
13885
13886 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
13887
13888         PR target/48220
13889         * doc/md.texi (Standard Names): Document window_save.
13890         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
13891         expand_debug_expr and expand_debug_source_expr.  If the target has
13892         a window_save instruction, adjust the ENTRY_VALUE_EXP.
13893         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
13894         SSA_NAME_VAR is a parameter.
13895         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
13896         * var-tracking.c (parm_reg_t): New type and associated vector type.
13897         (windowed_parm_regs): New variable.
13898         (adjust_insn): If the target has a window_save instruction and this
13899         is the instruction, make its effect on parameter registers explicit.
13900         (next_non_note_insn_var_location): New function.
13901         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
13902         (vt_add_function_parameter): If the target has a window_save insn,
13903         adjust the incoming RTL and record that in windowed_parm_regs.
13904         (vt_finalize): Free windowed_parm_regs.
13905
13906 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
13907
13908         * doc/invoke.texi (C6X Options): New section.
13909         * doc/md.texi (TI C6X family): New section.
13910         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
13911         tic6x-*-uclinux.
13912         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
13913         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
13914         Provide C6X definitions.
13915         * config/c6x/c6x.md: New file.
13916         * config/c6x/constraints.md: New file.
13917         * config/c6x/predicates.md: New file.
13918         * config/c6x/c6x-sched.md.in: New file.
13919         * config/c6x/c6x-sched.md: New file.
13920         * config/c6x/gensched.sh: New file.
13921         * config/c6x/c6x-mult.md.in: New file.
13922         * config/c6x/genmult.sh: New file.
13923         * config/c6x/c6x-mult.md: New file.
13924         * config/c6x/sync.md: New file.
13925         * config/c6x/c6x-protos.h: New file.
13926         * config/c6x/sfp-machine.h: New file.
13927         * config/c6x/c6x.c: New file.
13928         * config/c6x/c6x.h: New file.
13929         * config/c6x/crti.s: New file.
13930         * config/c6x/crtn.s: New file.
13931         * config/c6x/lib1funcs.asm: New file.
13932         * config/c6x/c6x-modes.def: New file.
13933         * config/c6x/genopt.sh: New file.
13934         * config/c6x/c6x.opt: New file.
13935         * config/c6x/c6x-tables.opt: New file.
13936         * config/c6x/c6x-opts.h: New file.
13937         * config/c6x/c6x-isas.def: New file.
13938         * config/c6x/elf.h: New file.
13939         * config/c6x/elf-common.h: New file.
13940         * config/c6x/uclinux-elf.h: New file.
13941         * config/c6x/t-c6x: New file.
13942         * config/c6x/t-c6x-elf: New file.
13943         * config/c6x/t-c6x-uclinux: New file.
13944         * config/c6x/t-c6x-softfp: New file.
13945         * config/c6x/gtd.c: New file.
13946         * config/c6x/gtf.c: New file.
13947         * config/c6x/ltd.c: New file.
13948         * config/c6x/ltf.c: New file.
13949         * config/c6x/ged.c: New file.
13950         * config/c6x/gef.c: New file.
13951         * config/c6x/led.c: New file.
13952         * config/c6x/lef.c: New file.
13953         * config/c6x/eqd.c: New file.
13954         * config/c6x/eqf.c: New file.
13955         * config/c6x/libgcc-c6xeabi.ver: New file.
13956
13957         Revert
13958         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
13959         PR rtl-optimization/11320
13960         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
13961         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
13962         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
13963         current_sched_info->compute_jump_reg_dependencies. Record which
13964         registers are used and which registers are set by the jump.
13965         Clear deps->reg_conditional_sets after a barrier.
13966         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
13967         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
13968         (init_deps): Initialize reg_conditional_sets.
13969         (free_deps): Clear reg_conditional_sets.
13970         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
13971         Mark registers live on entry of the fallthrough block and conditionally
13972         set as set by the jump. Mark registers live on entry of non-fallthrough
13973         blocks as used by the jump.
13974         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
13975         Mark new parameters as unused.
13976
13977 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
13978
13979         PR tree-opt/49309
13980         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
13981         Use fold_build2_loc instead of build2.
13982         Use the correct type for the new tree.
13983
13984 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
13985
13986         PR rtl-optimization/11320
13987         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
13988         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
13989
13990 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
13991
13992         PR target/49487
13993         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
13994         of REG.
13995         (*rotw<mode>): Use const_int_operand for operand2.
13996         Use match_scatch for operand3.
13997         (*rotb<mode>): Ditto
13998         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
13999
14000 2011-07-14  Richard Guenther  <rguenther@suse.de>
14001
14002         PR tree-optimization/49651
14003         * tree-ssa-structalias.c (get_constraint_for_1): Properly
14004         handle dereferences with subvariables.
14005
14006 2011-07-14  Richard Guenther  <rguenther@suse.de>
14007
14008         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
14009         (fold_stmt_1): Do it here directly on gimple and as a first thing.
14010
14011 2011-07-14  Richard Guenther  <rguenther@suse.de>
14012
14013         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
14014         not bool_var when folding bool_var != 1 or bool_var == 0.
14015
14016 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
14017
14018         * haifa-sched.c (schedule_insns): Remove outdated comment.
14019         (schedule_block): When computing a known value for TODO_SPEC,
14020         just set it rather than using logical operations.
14021         (try_ready): Likewise.  Use a local variable rather than a
14022         pointer to TODO_SPEC.  Reorder an if statement to move the
14023         easy case to the then block.
14024         * sched-deps.c (dep_spec_p): New static function.
14025         (update_dep): Use it to decide whether to call
14026         change_spec_dep_to_hard.
14027         (get_back_and_forw_lists): Use it.
14028         (sd_resolve_dep): Likewise.
14029         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
14030         (haifa_note_mem_dep): Likewise.
14031         (check_dep): Likewise.
14032         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
14033         (sched_free_deps): Free in two passes.
14034
14035 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
14036
14037         PR middle-end/49736
14038         * expr.c (all_zeros_p): Undo bogus part of last change.
14039
14040 2011-07-14  Matthias Klose <doko@ubuntu.com>
14041
14042         * doc/extend.texi (optimize attribute): Fix typo.
14043
14044 2011-07-14  Richard Guenther  <rguenther@suse.de>
14045
14046         * gimplify.c (gimplify_expr): Only do required conversions.
14047
14048 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
14049
14050         PR target/43746
14051         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
14052         i.e. use default_elf_select_section.
14053         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
14054         (READONLY_DATA_SECTION_ASM_OP): Remove.
14055         (TARGET_ASM_NAMED_SECTION): Move from here...
14056         * config/avr/avr.c: ...to here.
14057         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
14058         (avr_asm_named_section): Make static.
14059
14060 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14061
14062         PR bootstrap/49739
14063         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
14064         and crtfastmath.o for Linux/x86.
14065
14066 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
14067
14068         * haifa-sched.c: Include "hashtab.h"
14069         (sched_no_dce): New global variable.
14070         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
14071         SHADOW_P): New macros.
14072         (last_clock_var, cycle_issued_insns): Move declarations.
14073         (must_backtrack): New static variable.
14074         (struct delay_pair): New structure.
14075         (delay_htab, delay_htab_i2): New static variables.
14076         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
14077         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
14078         functions.
14079         (dep_cost_1): If delay pairs exist, try to look up the insns and
14080         use the correct pair delay if we find them.
14081         (rank-for_schedule): Tweak priority for insns that must be scheduled
14082         soon to avoid backtracking.
14083         (queue_insn): Detect conditions which force backtracking.
14084         (ready_add): Likewise.
14085         (struct sched_block_state): Add member shadows_only_p.
14086         (struct haifa_save_data): New structure.
14087         (backtrack_queue): New static variable.
14088         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
14089         unschedule_insns_until, restore_last_backtrack_point,
14090         free_topmost_backtrack_point, free_backtrack_queue,
14091         estimate_insn_tick, estimate_shadow_tick): New functions.
14092         (prune_ready_list): New arg shadows_only_p.  All callers changed.
14093         If true, remove everything that isn't SHADOW_P.  Look up delay
14094         pairs and estimate ticks to avoid scheduling the first insn too early.
14095         (verify_shadows): New function.
14096         (schedule_block): Add machinery to enable backtracking.
14097         (sched_init): Take sched_no_dce into account when setting
14098         DF_LR_RUN_DCE.
14099         (free_delay_pairs): New function.
14100         (init_h_i_d): Initialize INSN_EXACT_TICK.
14101         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
14102         * sched-deps.c (sd_unresolve_dep): New function.
14103         * sched-int. (struct haifa_sched_info): New fields save_state
14104         and restore_state.
14105         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
14106         feeds_backtrack_insn and shadow_p.
14107         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
14108         (sched_no_dce): Declare variable.
14109         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
14110         sd_unresolve_dep): Declare functions.
14111         * modulo-sched.c (sms_sched_info): Clear the two new fields.
14112         * sched-rgn.c (rgn_const_sched_info): Likewise.
14113         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
14114         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
14115         (ebb_sched_info): Add them for the two new fields.
14116         (add_deps_for_risky_insns): Call add_delay_dependencies.
14117
14118 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14119
14120         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
14121         Rename -mr11.
14122         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
14123         (rs6000_call_indirect_aix): Ditto.
14124         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
14125         (call_indirect_aix<ptrsize>_internal): Ditto.
14126         (call_indirect_aix<ptrsize>_nor11): Ditto.
14127         (call_indirect_aix<ptrsize>_internal2): Ditto.
14128         (call_value_indirect_aix<ptrsize>): Ditto.
14129         (call_value_indirect_aix<ptrsize>_internal): Ditto.
14130         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
14131         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
14132         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
14133
14134 2011-07-13  Jason Merrill  <jason@redhat.com>
14135
14136         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
14137
14138 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14139
14140         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
14141         * config/spu/spu.md ("clrsb<mode>2"): New expander.
14142
14143 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
14144
14145         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
14146         * configure: Regenerate.
14147
14148 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14149
14150         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
14151         (asm_file_start): Remove.
14152         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
14153         free_bb_for_insn around code that modifies insns before
14154         restarting df analysis.
14155
14156 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14157
14158         PR target/49541
14159         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
14160         (LINK_SPEC): ... here.
14161
14162 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
14163
14164         * haifa-sched.c (struct sched_block_state): New.
14165         (schedule_block): Move some local variables into such a structure.
14166
14167 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14168
14169         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
14170         * config/i386/t-crtpc: Remove.
14171         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
14172         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
14173         tmake_file.
14174         (x86_64-*-darwin*): Likewise.
14175         (i[34567]86-*-linux*): Likewise.
14176         (x86_64-*-linux*): Likewise.
14177
14178         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
14179         Handle -mpc32, -mpc64, -mpc80.
14180
14181 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14182
14183         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
14184         * config/alpha/t-crtfm: Remove.
14185         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
14186         * config/i386/t-crtfm: Remove.
14187         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
14188         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
14189         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
14190         * config/sparc/t-crtfm: Remove.
14191
14192         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
14193         (alpha*-*-freebsd*): Likewise.
14194         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
14195         (x86_64-*-darwin*): Likewise.
14196         (i[34567]86-*-linux*): Likewise.
14197         (x86_64-*-linux*): Likewise.
14198         (x86_64-*-mingw*): Likewise.
14199         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
14200         (ia64*-*-freebsd*): Likewise.
14201         (ia64*-*-linux*): Likewise.
14202         (mips64*-*-linux*): Likewise.
14203         (mips*-*-linux*): Likewise.
14204         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
14205         (sparc64-*-linux*): Likewise.
14206         (sparc64-*-freebsd*): Likewise.
14207
14208 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14209
14210         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
14211         * config/darwin-crt3.c: Move to ../libgcc/config.
14212         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
14213         ($(T)crt3$(objext)): Remove.
14214         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
14215         ($(T)crt2$(objext)): Remove.
14216         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
14217         (powerpc64-*-darwin*): Likewise.
14218
14219 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
14220
14221         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
14222
14223         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
14224         (addsi_1_zext): This.
14225
14226 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
14227
14228         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
14229         * doc/tm.texi: Regenerate.
14230         * target.def (mergeable_rodata_prefix): New defhookpod.
14231         * varasm.c (mergeable_string_section, mergeable_constant_section):
14232         Use it. Allocate name with alloca.
14233
14234 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
14235
14236         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
14237
14238 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
14239
14240         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
14241         overlap check.
14242
14243 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
14244
14245         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
14246         (count_type_elements): Delete.
14247         (complete_ctor_at_level_p): Declare.
14248         * expr.c (flexible_array_member_p): New function, split out from...
14249         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
14250         parameter with for_ctor_p.  When for_ctor_p is true, return the
14251         number of elements that should appear in the top-level constructor,
14252         otherwise return an estimate of the number of scalars.
14253         (categorize_ctor_elements): Replace p_must_clear with p_complete.
14254         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
14255         (complete_ctor_at_level_p): New function, borrowing union logic
14256         from old categorize_ctor_elements_1.
14257         (mostly_zeros_p): Return true if the constructor is not complete.
14258         (all_zeros_p): Update call to categorize_ctor_elements.
14259         * gimplify.c (gimplify_init_constructor): Update call to
14260         categorize_ctor_elements.  Don't call count_type_elements.
14261         Unconditionally prevent clearing for variable-sized types,
14262         otherwise rely on categorize_ctor_elements to detect
14263         incomplete initializers.
14264
14265 2011-07-13  Richard Guenther  <rguenther@suse.de>
14266
14267         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
14268         the final type is integral.
14269
14270 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
14271
14272         * sched-int.h (struct _dep): Add member cost.
14273         (DEP_COST, UNKNOWN_DEP_COST): New macros.
14274         * sched-deps.c (init_dep_1): Initialize DEP_COST.
14275         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
14276         (sched_change_pattern): Reset it for dependent insns.
14277
14278 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14279
14280         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
14281         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
14282         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
14283         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
14284         (CRT0_S, MCRT0_S): Remove.
14285         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
14286         Remove.
14287         (s-crt0): Remove.
14288         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
14289
14290 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
14291
14292         * cse.c (insert_with_costs): Put semi-colon after empty loop body
14293         on the next line.
14294         * emit-rtl.c (push_to_sequence): Likewise.
14295         * haifa-sched.c (max_issue): Likewise.
14296         * matrix-reorg.c (add_allocation_site): Likewise.
14297         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
14298         * reload.c (alternative_allows_const_pool_ref): Likewise.
14299         * sched-rgn.c (rgn_add_block): Likewise.
14300         (rgn_fix_recovery_cfg): Likewise.
14301         * tree.c (attribute_list_contained): Likewise.
14302
14303 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
14304
14305         * config/i386/i386.c: Tidy processor feature bitmasks.
14306         (m_P4_NOCONA): New.
14307
14308 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
14309
14310         PR rtl-opt/49474
14311         * cprop.c (find_implicit_sets): Correct the condition.
14312
14313 2011-07-12  Richard Henderson  <rth@redhat.com>
14314
14315         PR target/49713
14316         * dwarf2out.h (dwarf_frame_regnum): Remove.
14317         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
14318         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
14319         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
14320         (execute_dwarf2_frame): Initialize them.
14321         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
14322         users of the macros with the variables.
14323         (expand_builtin_dwarf_sp_column): Revert last change.
14324         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
14325         result of DWARF_FRAME_REGNUM into a local variable.
14326
14327 2011-07-12  Richard Henderson  <rth@redhat.com>
14328
14329         PR target/49714
14330         * config/i386/i386.c (x86_output_mi_thunk): Use
14331         machopic_indirect_call_target instead of machopic_indirection_name
14332         directly.
14333
14334 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
14335             Eric Botcazou  <ebotcazou@adacore.com>
14336
14337         * prefix.h: Wrap up in extern "C" block.
14338
14339 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
14340
14341         AMD bdver2 Enablement
14342         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
14343         (case ${target}): Add bdver2.
14344         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14345         -march=native recognize bdver2 processors.
14346         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14347         bdver2 def_and_undef
14348         * config/i386/i386.c (struct processor_costs bdver2_cost): New
14349         bdver2 cost table.
14350         (m_BDVER2): New definition.
14351         (m_AMD_MULTIPLE): Includes m_BDVER2.
14352         (initial_ix86_tune_features): Add bdver2 tuning.
14353         (processor_target_table): Add bdver2 entry.
14354         (static const char *const cpu_names): Add bdver2 entry.
14355         (ix86_option_override_internal): Add bdver2 instruction sets.
14356         (ix86_issue_rate): Add bdver2.
14357         (ix86_adjust_cost): Add bdver2.
14358         (has_dispatch): Add bdver2.
14359         * config/i386/i386.h (TARGET_BDVER2): New definition.
14360         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
14361         (enum processor_type): Add PROCESSOR_BDVER2.
14362         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
14363         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
14364         description.
14365
14366 2011-07-12  Richard Henderson  <rth@redhat.com>
14367
14368         PR target/49714
14369         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
14370         destination address in memory on some paths.
14371
14372 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
14373
14374         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
14375         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
14376         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
14377         * function.c (locate_and_pad_parm): Take it into account.
14378         * target.def (function_arg_round_boundary): New hook.
14379         * targhooks.c (default_function_arg_round_boundary): New function.
14380         * targhooks.h (default_function_arg_round_boundary): Declare.
14381         * doc/tm.texi: Regenerate.
14382
14383 2011-07-12  Richard Guenther  <rguenther@suse.de>
14384
14385         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
14386         Do not perform no-op changes.
14387
14388 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
14389
14390         * config/arm/predicates.md (neon_struct_operand): Make a normal
14391         predicate.
14392         (neon_struct_or_register_operand): New predicate.
14393         * config/arm/neon.md (movmisalign<mode>): Replace predicates
14394         with neon_struct_or_register_operand.
14395         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
14396         neon_struct_operand instead of memory_operand.
14397
14398 2011-07-12  Martin Jambor  <mjambor@suse.cz>
14399
14400         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
14401         * cgraph.c (cgraph_get_node_or_alias): Removed.
14402         (change_decl_assembler_name): Changed all calls to
14403         cgraph_get_node_or_alias to a call to cgraph_get_node.
14404         (cgraph_make_decl_local): Likewise.
14405         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
14406         * varasm.c (default_binds_local_p_1): Likewise.
14407         (decl_binds_to_current_def_p): Likewise.
14408
14409 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
14410
14411         PR tree-optimization/49712
14412         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
14413
14414 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
14415
14416         * genautomata.c (add_arc): Return void.  All callers changed.
14417         (make_automaton): Remove dead code.
14418
14419 2011-07-11  Richard Henderson  <rth@redhat.com>
14420
14421         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
14422         (DW_FRAME_POINTER_REGNUM): New.
14423         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
14424         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
14425         (dwf_regno): New.
14426         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
14427         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
14428         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
14429         Use it.
14430         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
14431         * dwarf2out.h (dwarf_frame_regnum): New.
14432         (struct cfa_loc): Document the domain of the reg member.
14433
14434 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
14435
14436         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
14437         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
14438
14439 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
14440
14441         PR debug/49676
14442         * dwarf2out.c (int_shift_loc_descriptor): New function.
14443         (int_loc_descriptor): If shorter, emit i as
14444         (i >> shift), shift, DW_OP_shl for suitable shift value.
14445         Similarly, try to optimize large negative values using
14446         DW_OP_neg of a positive value if shorter.
14447         (size_of_int_shift_loc_descriptor): New function.
14448         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
14449         changes.
14450         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
14451         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
14452         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
14453         is shorter.
14454         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
14455         addend as added DW_OP_plus if it is shorter.
14456
14457 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14458
14459         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
14460         (DTORS_SECTION_ASM_OP): Define.
14461
14462 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14463
14464         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
14465         * config/t-dfprules: Move to ../libgcc/config.
14466         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
14467         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
14468         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
14469         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
14470         Likewise.
14471         (i[34567]86-*-cygwin*): Likewise.
14472         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
14473         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
14474         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
14475         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
14476         D64PBIT_FUNCS, D128PBIT_FUNCS.
14477
14478 2011-07-11  Richard Guenther  <rguenther@suse.de>
14479
14480         * tree-vrp.c (simplify_conversion_using_ranges): Manually
14481         translate the source value-range through the conversion chain.
14482
14483 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
14484
14485         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
14486
14487 2011-07-11  Arthur Loiret  <aloiret@debian.org>
14488
14489         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
14490         a bi-arch compiler defaulting to 31-bit. In this case:
14491         (tmake_file): Add s390/t-linux64.
14492         * doc/install.texi: Add s390-linux to the list of targets supporting
14493         --enable-targets=all.
14494
14495 2011-07-11  Arthur Loiret  <aloiret@debian.org>
14496             Matthias Klose <doko@debian.org>
14497
14498         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
14499         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
14500         (tm_file): Add mips/linux64.h.
14501         (tmake_file): Add mips/t-linux64.
14502         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
14503         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
14504         instead of hardcoded mabi=n32.
14505         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
14506         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
14507         convention.
14508
14509 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14510
14511         * passes.c (init_optimization_passes): Add invariant motion pass
14512         after induction variable optimization.
14513
14514 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
14515
14516         PR target/39633
14517         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
14518         offsets 1..5 set cc0 in a usable way.
14519
14520 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
14521
14522         * tree.h (call_expr_arg): Remove.
14523         (call_expr_argp): Likewise.
14524
14525 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
14526
14527         * config/sparc/sparc.md (save_register_window_1): Rename to...
14528         (window_save): ...this.
14529         * config/sparc/sparc.c (emit_save_register_window): Rename to...
14530         (emit_window_save): ...this.
14531         (sparc_expand_prologue): Adjust to above renaming.
14532
14533 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
14534
14535         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
14536         of movabs for x32.
14537
14538 2011-07-10  Richard Henderson  <rth@redhat.com>
14539
14540         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
14541         run final, instead of emitting text directly.
14542
14543 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
14544
14545         * config/i386/i386.c (ix86_option_override_internal): Turn on
14546         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
14547         small PIC models for TARGET_X32.
14548
14549 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
14550
14551         PR target/49684
14552         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
14553         $(LIBGCC2_CFLAGS).
14554
14555         PR bootstrap/49680
14556         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
14557         stray notes and debug insns by using prev_nonnote_nondebug_insn
14558         instead of PREV_INSN.
14559
14560 2011-07-09  Richard Henderson  <rth@redhat.com>
14561
14562         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
14563         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
14564         * dwarf2out.c: ... here.
14565         (output_all_cfis): Remove.
14566         (dwarf2out_switch_text_section): Use output_cfis directly.
14567         (size_of_locs): Export.
14568         (output_loc_sequence, output_loc_sequence_raw): Export.
14569         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
14570         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
14571         output_cfa_loc_raw): Move to ...
14572         * dwarfcfi.c: ... here.
14573         * dwarf2out.h: Update decls.
14574
14575 2011-07-09  Richard Henderson  <rth@redhat.com>
14576
14577         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
14578         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
14579         * dwarf2cfi.c: ... here.
14580         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
14581         (DWARF_ROUND, DWARF_CIE_ID): Remove.
14582         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
14583         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
14584         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
14585
14586 2011-07-09  Richard Henderson  <rth@redhat.com>
14587
14588         * dwarf2cfi.c (cie_return_save): New.
14589         (queue_reg_save): Use compare_reg_or_pc.
14590         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
14591         (dwarf2out_frame_debug_expr): Likewise.
14592         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
14593         (initial_return_save): Likewise.
14594         (execute_dwarf2_frame): Save and restore initial return save from
14595         the cie to the fde.
14596         * config/mips/mips.c (mips_frame_set): Remove special case for
14597         DWARF_FRAME_RETURN_COLUMN.
14598
14599 2011-07-09  Richard Henderson  <rth@redhat.com>
14600
14601         * dwarf2cfi.c (lookup_cfa): Remove.
14602         (execute_dwarf2_frame): Assert queues are empty on entry.
14603         Setup initial cfa directly, not via lookup_cfa.
14604         Don't clear args_size state here.
14605
14606 2011-07-09  Richard Henderson  <rth@redhat.com>
14607
14608         * dwarf2cfi.c (add_cfi_vec): New.
14609         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
14610         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
14611         (execute_dwarf2_frame): Set add_cfi_vec.
14612
14613 2011-07-09  Richard Henderson  <rth@redhat.com>
14614
14615         * defaults.h (ASM_COMMENT_START): Move here...
14616         * dwarf2asm.c: ... from here.
14617         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
14618         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
14619         * varasm.c: Likewise.
14620
14621 2011-07-09  Richard Henderson  <rth@redhat.com>
14622
14623         PR debug/49686
14624         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
14625         (create_cfi_notes): ... do it here instead.
14626
14627 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
14628
14629         PR debug/49676
14630         * dwarf2out.c (size_of_int_loc_descriptor): New function.
14631         (address_of_int_loc_descriptor): Use it.
14632         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
14633
14634 2011-07-09  Richard Henderson  <rth@redhat.com>
14635
14636         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
14637         (prologue, epilogue): New.
14638         (return, *rts): New.
14639         (blockage, setd, seti): New.
14640         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
14641         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
14642         (pdp11_saved_regno): New.
14643         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
14644         generate rtl instead of text.
14645         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
14646         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
14647         * config/pdp11/pdp11-protos.h: Update.
14648
14649 2011-07-09  Richard Henderson  <rth@redhat.com>
14650
14651         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
14652         try to insert an rtl prologue here.
14653         (rs6000_output_function_epilogue): Similarly.
14654         * config/rs6000/rs6000.md (prologue): Emit a barrier to
14655         satisfy !TARGET_SCHED_PROLOG.
14656         (epilogue, sibcall_epilogue): Likewise.
14657
14658 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
14659
14660         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
14661         (FP_REG_P): Delete.
14662         (IN_OR_GLOBAL_P): Likewise.
14663
14664 2011-07-08  Jason Merrill  <jason@redhat.com>
14665
14666         PR c++/45437
14667         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
14668         compound assignment.
14669
14670         * cgraph.c (cgraph_add_to_same_comdat_group): New.
14671         * cgraph.h: Declare it.
14672         * ipa.c (function_and_variable_visibility): Make sure thunks
14673         have the right visibility.
14674
14675 2011-07-08  Richard Henderson  <rth@redhat.com>
14676
14677         PR bootstrap/49680
14678         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
14679         any tablejump vector.
14680
14681         PR bootstrap/49680
14682         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
14683         end of the prologue.
14684
14685 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
14686
14687         PR target/49621
14688         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
14689         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
14690         * config/rs6000/vector.md (vector_select_<mode>,
14691         vector_select_<mode>_uns): Change second operand of NE to
14692         CONST0_RTX (<MODE>mode) instead of const0_rtx.
14693         * config/rs6000/altivec.md (*altivec_vsel<mode>,
14694         *altivec_vsel<mode>_uns): Expect second operand of NE to be
14695         zero_constant of the corresponding vector mode.
14696         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
14697         Likewise.
14698
14699 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
14700
14701         * graphite-dependences.c (build_alias_set_powerset): Remove
14702         continue from loop, add one more assert.
14703
14704 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
14705
14706         PR target/46779
14707         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
14708         In particular, allow 8-bit values in r28 and r29.
14709         (avr_hard_regno_scratch_ok): Disallow any register that might be
14710         part of the frame pointer.
14711         (avr_hard_regno_rename_ok): Same.
14712         (avr_legitimate_address_p): Don't allow SUBREGs.
14713
14714 2011-07-08  Julian Brown  <julian@codesourcery.com>
14715
14716         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
14717         big-endian mode.
14718         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
14719         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
14720         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
14721         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
14722         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
14723         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
14724         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
14725         registers in big-endian mode.
14726
14727 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
14728
14729         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
14730         in terms of another.
14731         (write_attr_value): Write a cast if necessary.
14732
14733         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
14734         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
14735         (REG_WORDS_BIG_ENDIAN): Document.
14736         * doc/tm.texi: Regenerate.
14737         * reload.c (operands_match_p): Take it into account.
14738         (reload_adjust_reg_for_mode): Likewise.
14739         * rtlanal.c (subreg_get_info): Likewise.
14740
14741 2011-07-08  Richard Guenther  <rguenther@suse.de>
14742
14743         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
14744         folding.
14745
14746 2011-07-08  Kai Tietz  <ktietz@redhat.com>
14747
14748         * fold-const.c (fold_truth_andor): Factored out truth_andor
14749         label from fold_binary as function.
14750         (fold_binary_loc): Replace truth_andor lable
14751         by function fold_truth_andor.
14752
14753 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
14754
14755         PR middle-end/49519
14756         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
14757         check if address is stored in register. If so - give up.
14758         (check_sibcall_argument_overlap_1): Do not perform check of
14759         overlapping when it is call to address.
14760
14761 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
14762
14763         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
14764         of magic '31'.
14765
14766 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
14767
14768         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
14769         GET_MODE_BITSIZE where appropriate.
14770         (widen_leading, expand_parity, expand_ctz, expand_ffs,
14771         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
14772         expand_float, expand_fix): Likewise.
14773         * expr.c (convert_move, convert_modes, expand_expr_real_2,
14774         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
14775         * stor-layout.c (get_mode_bounds): Likewise.
14776         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
14777         Likewise.
14778         * convert.c (convert_to_integer): Likewise.
14779         * expmed.c (expand_shift_1): Likewise.
14780
14781         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
14782         a bitsize.
14783
14784         * optabs.c (expand_binop): Tighten conditions for doubleword
14785         expansions.
14786         (widen_bswap): Assert that mode bitsize and precision are the same.
14787         * stor-layout.c (get_best_mode): Skip modes that have lower
14788         precision than bitsize.
14789         * recog.c (simplify_while_replacing): Assert that bitsize and
14790         precision are the same.
14791
14792 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14793
14794         * Makefile.in (LIBGCOV): Remove.
14795         (libgcc.mvars): Remove LIBGCOV.
14796         * libgov.c: Move to ../libgcc.
14797
14798 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14799
14800         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
14801
14802 2011-07-08  Martin Jambor  <mjambor@suse.cz>
14803
14804         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
14805         is too big for total scalarization.
14806
14807 2011-07-07  Richard Henderson  <rth@redhat.com>
14808
14809         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
14810         (DBX_DEBUGGING_INFO): Undef.
14811
14812 2011-07-07  Richard Henderson  <rth@redhat.com>
14813
14814         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
14815         Handle some opcodes specially for debugging.
14816         * print-rtl.c: Include dwarf2out.h
14817         (print_rtx): Handle NOTE_INSN_CFI.
14818         * Makefile.in (print-rtl.o): Update.
14819
14820 2011-07-07  Richard Henderson  <rth@redhat.com>
14821
14822         * tree-pass.h (pass_dwarf2_frame): Declare.
14823         * passes.c (init_optimization_passes): Add it.
14824         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
14825         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
14826         make static, do not call add_cfis_to_fde.
14827         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
14828         dwarf2out_frame_init): Merge into...
14829         (execute_dwarf2_frame): ... here.  New function.
14830         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
14831         saved_do_cfi_asm to a tri-state variable.
14832         (gate_dwarf2_frame, pass_dwarf2_frame): New.
14833         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
14834         if it has yet to be done.  Don't call dwarf2cfi_function_init.
14835         * dwarf2out.h, debug.h: Update decls.
14836         * final.c (final_start_function): Don't call
14837         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
14838         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
14839         * toplev.c (lang_dependent_init): Likewise.
14840
14841 2011-07-07  Richard Henderson  <rth@redhat.com>
14842
14843         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
14844         FDE_TABLE_INCREMENT): Replace with...
14845         (fde_vec): ... this, a new vector.
14846         (current_fde): Remove.  Replace all users with cfun->fde.
14847         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
14848         (size_of_aranges, dwarf2out_finish): Likewise.
14849         (dwarf2out_alloc_current_fde): Break out from ...
14850         (dwarf2out_begin_prologue): ... here.
14851         (dwarf2out_frame_init): Remove.
14852         * dwarf2cfi.c: Update all users of current_fde.
14853         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
14854         * dwarf2out.h: Update decls.
14855         (dw_fde_node): Add fde_index member.
14856         * function.h (struct function): Add fde member.
14857
14858 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
14859             Richard Henderson  <rth@redhat.com>
14860
14861         * dwarf2cfi.c (add_cfi): Remove.
14862         (dwarf2out_cfi_label): Remove force argument.  Only generate the
14863         label name.
14864         (add_fde_cfi): Simplify the different code paths.
14865         (add_cie_cfi): New.
14866         (old_cfa, old_cfa_remember): New.
14867         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
14868         (last_reg_save_label): Remove.
14869         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
14870         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
14871         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
14872         dwarf2out_frame_debug_cfa_expression,
14873         dwarf2out_frame_debug_cfa_restore,
14874         dwarf2out_frame_debug_cfa_window_save,
14875         dwarf2out_frame_debug_expr): Remove label parameter.
14876         (cfi_label_required_p, add_cfis_to_fde): New.
14877         (dwarf2out_frame_debug_after_prologue): New.
14878         (dwarf2cfi_frame_init): Initialize old_cfa.
14879         (dwarf2out_frame_debug_restore_state): Likewise.
14880         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
14881         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
14882         * final.c (final_start_function): Call
14883         dwarf2out_frame_debug_after_prologue.
14884
14885 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
14886             Richard Henderson  <rth@redhat.com>
14887
14888         * dwarf2cfi.c (cfi_insn): New.
14889         (dwarf2out_cfi_label): Don't emit cfi label here.
14890         (add_fde_cfi): Create a NOTE_INSN_CFI.
14891         (dwarf2out_frame_debug): Setup cfi_insn.
14892         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
14893         (dwarf2out_cfi_begin_epilogue): Make static.
14894         (dwarf2out_frame_debug_restore_state): Make static.
14895         * dwarf2out.c (output_cfi_directive): Make static.
14896         (dwarf2out_emit_cfi): New.
14897         * dwarf2out.h: Update.
14898         * final.c (final): Remove CFI notes.
14899         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
14900         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
14901         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
14902         * insn-notes.def (NOTE_INSN_CFI): New.
14903         (NOTE_INSN_CFI_LABEL): New.
14904         * rtl.h (union rtunion_def): Add rt_cfi member.
14905         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
14906
14907 2011-07-07  Richard Henderson  <rth@redhat.com>
14908
14909         * dwarf2cfi.c: New file.
14910         * Makefile.in (OBJS): Add it.
14911         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
14912         * gengtype.c (open_base_files): Include dwarf2out.h.
14913         * coretypes.h (enum var_init_status): Move from ...
14914         * rtl.h: ... here.
14915         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
14916         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
14917         expand_builtin_dwarf_sp_column, init_return_column_size,
14918         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
14919         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
14920         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
14921         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
14922         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
14923         compute_barrier_args_size, dwarf2out_args_size,
14924         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
14925         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
14926         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
14927         queue_reg_save, dwarf2out_flush_queued_reg_saves,
14928         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
14929         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
14930         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
14931         dwarf2out_frame_debug_cfa_expression,
14932         dwarf2out_frame_debug_cfa_restore,
14933         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
14934         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
14935         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
14936         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
14937         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
14938         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
14939         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
14940         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
14941         dw_loc_descr_node): Move to dwarf2out.h.
14942         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
14943         mem_loc_descriptor): Export.
14944         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
14945         (dwarf2out_frame_init): Extract CIE generation code to
14946         dwarf2cfi_frame_init.
14947
14948 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
14949
14950         PR target/49660
14951         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
14952         MASK_V8PLUS, remove commented out flag and reorder.
14953
14954 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
14955
14956         PR c/49644
14957         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
14958         one non-complex and one complex argument, call c_save_expr on both
14959         operands.
14960
14961 2011-07-07  Martin Jambor  <mjambor@suse.cz>
14962
14963         PR middle-end/49495
14964         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
14965         (verify_cgraph_node): Some functinality moved to
14966         verify_edge_corresponds_to_fndecl, call it.
14967
14968 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
14969
14970         * config.gcc (*local*): Remove.
14971         * doc/install-old.texi: Don't mention local configurations.
14972
14973 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
14974
14975         PR debug/49522
14976         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
14977         referencing debug insns that have been reset.
14978         (dead_debug_insert_before): Don't assert reg is non-NULL,
14979         instead return immediately if it is NULL.
14980
14981 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
14982
14983         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
14984
14985 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
14986
14987         * hw-doloop.c: New file.
14988         * hw-doloop.h: New file.
14989         * Makefile.in (OBJS): Add hw-doloop.o.
14990         (hw-doloop.o): New rule.
14991         ($(obj_out_file)): Add hw-doloop.h dependency.
14992         * config/bfin/bfin.c: Include "hw-doloop.h".
14993         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
14994         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
14995         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
14996         type changed to hwloop_info.  Return bool, true if the loop was
14997         successfully optimized.  Remove code that was moved to
14998         hw-doloop.c, and adjust other parts.
14999         (hwloop_fail): New static function, containing parts that used
15000         to be in bfin_optimize_loop.
15001         (bfin_discover_loop, bfin_discover_loops, free_loops,
15002         bfin_reorder_loops): Remove.
15003         (hwloop_pattern_reg): New static function.
15004         (bfin_doloop_hooks): New variable.
15005         (bfin_reorg_loops): Remove most code, call reorg_loops.
15006         * config/bfin/bfin.md (doloop_end splitter): Also enable if
15007         loop counter is a memory_operand.
15008
15009 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15010
15011         * config.gcc: Support --with-multilib-list for x86 Linux targets.
15012
15013         * configure.ac: Mention x86-64 for --with-multilib-list.
15014         * configure: Regenerated.
15015
15016         * config/i386/gnu-user64.h (SPEC_64): Support x32.
15017         (SPEC_32): Likewise.
15018         (ASM_SPEC): Likewise.
15019         (LINK_SPEC): Likewise.
15020         (TARGET_THREAD_SSP_OFFSET): Likewise.
15021         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
15022         (SPEC_X32): New.
15023
15024         * config/i386/i386.h (TARGET_X32): New.
15025         (TARGET_LP64): New.
15026         (LONG_TYPE_SIZE): Likewise.
15027         (POINTER_SIZE): Likewise.
15028         (POINTERS_EXTEND_UNSIGNED): Likewise.
15029         (OPT_ARCH64): Support x32.
15030         (OPT_ARCH32): Likewise.
15031
15032         * config/i386/i386.opt (mx32): New.
15033
15034         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
15035         (GLIBC_DYNAMIC_LINKERX32): Likewise.
15036         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
15037         (GLIBC_DYNAMIC_LINKERX32): Likewise.
15038
15039         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
15040         (BIONIC_DYNAMIC_LINKERX32): Likewise.
15041         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
15042
15043         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
15044
15045         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
15046
15047         * doc/invoke.texi: Document -mx32.
15048
15049 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
15050
15051         * doc/invoke.texi (mwords-little-endian): Deprecate.
15052         * config/arm/arm.opt (mwords-little-endian): Likewise.
15053         * config/arm/arm.c (arm_option_override): Warn about the deprecation
15054         of -mwords-little-endian.
15055
15056 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
15057
15058         * reload1.c (choose_reload_regs): Use mode sizes to check whether
15059         an old reload register completely defines the required value.
15060
15061 2011-07-07  Richard Guenther  <rguenther@suse.de>
15062
15063         * fold-const.c (fold_unary_loc): Do not strip sign-changes
15064         for NEGATE_EXPR.
15065
15066 2011-07-07  Richard Guenther  <rguenther@suse.de>
15067
15068         * tree-vrp.c (simplify_conversion_using_ranges): New function.
15069         (simplify_stmt_using_ranges): Call it.
15070
15071 2011-07-07  Kai Tietz  <ktietz@redhat.com>
15072
15073         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
15074         (lookup_logical_inverted_value): Likewise.
15075         (simplify_bitwise_binary_1): Likewise.
15076         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
15077
15078 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
15079
15080         * gcc.c (%[Spec]): Don't document.
15081         (struct spec_list): Update comment.
15082         (do_spec_1): Don't handle %[Spec].
15083         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
15084
15085 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
15086
15087         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
15088         default based on TARGET_ASM_NAMED_SECTION.
15089         * common/common-target.def (have_named_sections): Default to true.
15090         * common/config/default-common.c: Don't include tm.h.
15091         * common/config/picochip/picochip-common.c
15092         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
15093         * common/config/m32c/m32c-common.c: Remove.
15094         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
15095         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
15096         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
15097         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
15098         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
15099         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
15100         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
15101
15102 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
15103
15104         PR middle-end/49640
15105         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
15106         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
15107
15108 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15109
15110         PR libmudflap/49550
15111         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
15112
15113 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15114
15115         PR target/39150
15116         * configure.ac (gcc_cv_as_hidden): Also accept
15117         x86_64-*-solaris2.1[0-9]*.
15118         (gcc_cv_as_cfi_directive): Likewise.
15119         (gcc_cv_as_comdat_group_group): Likewise.
15120         (set_have_as_tls): Likewise.
15121         * configure: Regenerate.
15122         * config.gcc (i[34567]86-*-solaris2*): Also handle
15123         x86_64-*-solaris2.1[0-9]*.
15124         * config.host (i[34567]86-*-solaris2*): Likewise.
15125         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
15126         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
15127         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
15128         (TARGET_LD_EMULATION): Use it.
15129         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
15130         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
15131         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
15132         (ASM_CPU64_DEFAULT_SPEC): Define.
15133         (ASM_CPU_SPEC): Use %(asm_cpu_default).
15134         (ASM_SPEC): Redefine.
15135         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
15136         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
15137         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
15138         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
15139         configuration.
15140         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
15141
15142 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15143
15144         * config/sol2.h (ASM_SPEC): Split into ...
15145         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
15146         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
15147         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
15148         (ASM_SPEC): Use ASM_SPEC_BASE.
15149         * config/sparc/sol2.h (ASM_SPEC): Redefine.
15150
15151 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
15152
15153         * config/avr/avr.md (*reload_insi): Change predicate #1 to
15154         const_int_operand.  Ditto for peep2 producing this insn.
15155         Add argument to output_reload_insisf call.
15156         (*movsi,*movsf): Add argument to output_movsisf call.
15157         (*reload_insf): New insn and new peep2 to produce it.
15158         * config/avr/avr-protos.h (output_movsisf): Change prototype.
15159         (output_reload_insisf): Change prototype.
15160         * config/avr/avr.c (avr_asm_len): New function.
15161         (output_reload_insisf): Rewrite.
15162         (output_movsisf): Change prototype.  output_reload_insisf for
15163         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
15164         (adjust_insn_length): Add argument to output_movsisf and
15165         output_reload_insisf call.
15166
15167 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
15168
15169         * emit-rtl.c (paradoxical_subreg_p): New function.
15170         * rtl.h (paradoxical_subreg_p): Declare.
15171         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
15172         apply_distributive_law, simplify_comparison, simplify_set): Use it.
15173         * cse.c (record_jump_cond, cse_insn): Likewise.
15174         * expr.c (force_operand): Likewise.
15175         * rtlanal.c (num_sign_bit_copies1): Likewise.
15176         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
15177         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
15178         (push_reload): Use precision to check for paradoxical subregs.
15179         * expmed.c (extract_bit_field_1): Likewise.
15180
15181         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
15182         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
15183         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
15184         simplify_set, simplify_logical, expand_compound_operation,
15185         make_extraction, force_to_mode, if_then_else_cond, extended_count,
15186         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
15187         record_value_for_reg): Likewise.
15188         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
15189         * simplify-rtx. c (simplify_unary_operation_1,
15190         simplify_binary_operation_1, simplify_const_relational_operation):
15191         Likewise.
15192
15193         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
15194         instead of GET_MODE_BITSIZE where appropriate.
15195         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
15196         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
15197         init_num_sign_bit_copies_in_rep): Likewise.
15198         * cse.c (fold_rtx, cse_insn): Likewise.
15199         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
15200         * simplify-rtx.c (simplify_unary_operation_1,
15201         simplify_const_unary_operation, simplify_binary_operation_1,
15202         simplify_const_binary_operation, simplify_ternary_operation,
15203         simplify_const_relational_operation, simplify_subreg): Likewise.
15204         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
15205         simplify_if_then_else, simplify_set, expand_compound_operation,
15206         expand_field_assignment, make_extraction, if_then_else_cond,
15207         make_compound_operation, force_to_mode, make_field_assignment,
15208         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
15209         extended_count, try_widen_shift_mode, simplify_shift_const_1,
15210         simplify_comparison, record_promoted_value, simplify_compare_const,
15211         record_dead_and_set_regs_1): Likewise.
15212
15213         Revert:
15214         * simplify-rtx.c (simplify_const_binary_operation): Use the
15215         shift_truncation_mask hook instead of performing modulo by width.
15216         Compare against mode precision, not bitsize.
15217         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
15218         Use shift_truncation_mask instead of constructing the value manually.
15219
15220 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
15221
15222         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
15223         declaration.
15224         (rs6000_save_toc_in_prologue_p): Ditto.
15225
15226         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
15227         up the static chain (r11) during indirect function calls.
15228         (-msave-toc-indirect): New undocumented debug switch.
15229
15230         * config/rs6000/rs6000.c (struct machine_function): Add
15231         save_toc_in_prologue field to note whether the prologue needs to
15232         save the TOC value in the reserved stack location.
15233         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
15234         to save the TOC in the prologue, do so.
15235         (rs6000_trampoline_init): Don't allow creating AIX style
15236         trampolines if -mno-r11 is in effect.
15237         (rs6000_call_indirect_aix): New function to create AIX style
15238         indirect calls, adding support for -mno-r11 to suppress loading
15239         the static chain, and saving the TOC in the prologue instead of
15240         the call body.
15241         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
15242         TOC in the prologue.
15243
15244         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
15245         register numbers.
15246         (TOC_REGNUM): Ditto.
15247         (STATIC_CHAIN_REGNUM): Ditto.
15248         (ARG_POINTER_REGNUM): Ditto.
15249         (SFP_REGNO): Delete, unused.
15250         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
15251         function descriptor offsets.
15252         (TOC_SAVE_OFFSET_64BIT): Ditto.
15253         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
15254         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
15255         (AIX_FUNC_DESC_SC_32BIT): Ditto.
15256         (AIX_FUNC_DESC_SC_64BIT): Ditto.
15257         (ptrload): New mode attribute for the appropriate load of a pointer.
15258         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
15259         (call_indirect_aix64): Ditto.
15260         (call_value_indirect_aix32): Ditto.
15261         (call_value_indirect_aix64): Ditto.
15262         (call_indirect_nonlocal_aix32_internal): Ditto.
15263         (call_indirect_nonlocal_aix32): Ditto.
15264         (call_indirect_nonlocal_aix64_internal): Ditto.
15265         (call_indirect_nonlocal_aix64): Ditto.
15266         (call): Rewrite AIX indirect function calls.  Add support for
15267         eliminating the static chain, and for moving the save of the TOC
15268         to the function prologue.
15269         (call_value): Ditto.
15270         (call_indirect_aix<ptrsize>): Ditto.
15271         (call_indirect_aix<ptrsize>_internal): Ditto.
15272         (call_indirect_aix<ptrsize>_internal2): Ditto.
15273         (call_indirect_aix<ptrsize>_nor11): Ditto.
15274         (call_value_indirect_aix<ptrsize>): Ditto.
15275         (call_value_indirect_aix<ptrsize>_internal): Ditto.
15276         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
15277         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
15278         (call_nonlocal_aix32): Relocate in the rs6000.md file.
15279         (call_nonlocal_aix64): Ditto.
15280
15281         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
15282         -mno-r11 documentation.
15283
15284 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
15285
15286         PR other/49658
15287         * doc/extend.texi (Compound Literals): Fix typo.
15288
15289 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
15290
15291         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
15292
15293 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
15294
15295         * configure.ac (plugin-version.h): Generate
15296         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
15297         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
15298         macros.
15299
15300         * configure: Regenerate.
15301
15302         * doc/plugins.texi (Building GCC plugins): Mention
15303         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
15304
15305 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
15306
15307         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
15308         * combine.c (make_extraction, gen_lowpart_or_truncate,
15309         apply_distributive_law, simplify_comparison,
15310         reg_truncated_to_mode, record_truncated_value): Use it.
15311         * cse.c (notreg_cost): Likewise.
15312         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
15313         * expr.c (convert_move, convert_modes): Likewise.
15314         * optabs.c (expand_binop, expand_unop): Likewise.
15315         * postreload.c (move2add_last_label): Likewise.
15316         * regmove.c (optimize_reg_copy_3): Likewise.
15317         * rtlhooks.c (gen_lowpart_general): Likewise.
15318         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
15319
15320 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
15321
15322         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
15323
15324 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
15325
15326         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
15327         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
15328         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
15329         (simplify_const_unary_operation, simplify_binary_operation_1,
15330         simplify_const_binary_operation, simplify_const_relational_operation):
15331         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
15332         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
15333         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
15334         simplify_shift_const_1, simplify_comparison): Likewise.
15335         * expr.c (convert_modes): Likewise.
15336         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
15337         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
15338         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
15339
15340         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
15341
15342 2011-07-06  Richard Guenther  <rguenther@suse.de>
15343
15344         PR tree-optimization/49645
15345         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
15346         register variables.
15347         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
15348         in type qualification here ...
15349         (copy_reference_ops_from_ref): ... not here.
15350         (vn_reference_lookup_3): ... or here.
15351         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
15352         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
15353
15354 2011-07-06  Ian Lance Taylor  <iant@google.com>
15355
15356         * doc/install.texi (Configuration): It's
15357         --enable-gnu-indirect-function, not --enable-indirect-function.
15358
15359 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
15360
15361         * simplify-rtx.c (simplify_const_binary_operation): Use the
15362         shift_truncation_mask hook instead of performing modulo by width.
15363         Compare against mode precision, not bitsize.
15364         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
15365         Use shift_truncation_mask instead of constructing the value manually.
15366
15367 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
15368
15369         PR middle-end/47383
15370         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
15371         address computation and convert to address_mode if needed.
15372
15373 2011-07-06  Richard Guenther  <rguenther@suse.de>
15374
15375         * tree.c (build_common_tree_nodes_2): Merge with
15376         build_common_tree_nodes.
15377         * tree.h (build_common_tree_nodes): Adjust prototype.
15378         (build_common_tree_nodes_2): Remove.
15379         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
15380         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
15381
15382 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
15383
15384         PR tree-optimization/49618
15385         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
15386         t recurse on the decl.
15387         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
15388         return true if expr isn't known to be defined in current
15389         TU or some other LTO partition.
15390
15391 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
15392
15393         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
15394         override CASE_VALUES_THRESHOLD.
15395
15396         * stmt.c (toplevel): Include params.h.
15397         (case_values_threshold): Use the --param case-values-threshold
15398         value if non-zero, otherwise use machine dependent value.
15399         (expand_case): Use case_values_threshold.
15400
15401         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
15402
15403         * doc/invoke.texi (--param case-values-threshold): Document.
15404
15405 2011-07-05  Richard Henderson  <rth@redhat.com>
15406
15407         * dwarf2out.c (dwarf2out_cfi_label): Make static.
15408         (dwarf2out_flush_queued_reg_saves): Make static.
15409         (dwarf2out_reg_save): Remove.
15410         (dwarf2out_return_save): Remove.
15411         (dwarf2out_return_reg): Remove.
15412         (dwarf2out_reg_save_reg): Remove.
15413         (dwarf2out_def_cfa): Merge into ...
15414         (dwarf2out_frame_init): ... here.
15415         * dwarf2out.h, tree.h: Remove declarations as necessary.
15416
15417 2011-07-05  Richard Henderson  <rth@redhat.com>
15418
15419         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
15420         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
15421         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
15422         the alloc insn.
15423
15424         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
15425         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
15426         (process_epilogue): Don't call dwarf2out_def_cfa.
15427
15428         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
15429         indicate the return address save.
15430         (process_cfa_register): Likewise.
15431
15432         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
15433         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
15434
15435         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
15436         for ar.pfs save at alloc insn.
15437
15438 2011-07-05  Richard Henderson  <rth@redhat.com>
15439
15440         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
15441         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
15442         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
15443         stack pointer save.
15444         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
15445         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
15446         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
15447         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
15448
15449 2011-07-05  Richard Henderson  <rth@redhat.com>
15450
15451         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
15452         VUNSPEC_* constants here instead of via define_constants.
15453         (VUNSPEC_PEM): New constant.
15454         (procedure_entry_mask): New insn.
15455         (prologue): New expander.
15456         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
15457         (vax_expand_prologue): Rename from vax_output_function_prologue;
15458         emit rtl instead of text.
15459         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
15460         (print_operand): Add 'x' prefix.
15461
15462 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
15463
15464         PR middle-end/47715
15465         * calls.c (precompute_register_parameters): Promote the function
15466         argument before checking non-legitimate constant.
15467
15468 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
15469
15470         PR tree-optimization/47654
15471         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
15472         (lst_do_strip_mine_loop): Return an int.
15473         (lst_do_strip_mine): Same.
15474         (scop_do_strip_mine): Same.
15475         (scop_do_block): Loop blocking should strip-mine at least two loops.
15476         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
15477         (scop_do_interchange): Same.
15478         * graphite-poly.h (scop_do_interchange): Update declaration.
15479         (scop_do_strip_mine): Same.
15480
15481 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
15482
15483         * graphite-clast-to-gimple.c (precision_for_value): Removed.
15484         (precision_for_interval): Removed.
15485         (gcc_type_for_interval): Use mpz_sizeinbase.
15486
15487 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
15488
15489         * graphite-ppl.h (value_max): Correct computation of max.
15490
15491 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
15492
15493         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
15494
15495 2011-07-05  Richard Guenther  <rguenther@suse.de>
15496
15497         * c-decl.c (c_init_decl_processing): Defer building common
15498         tree nodes to c_common_nodes_and_builtins.
15499
15500 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
15501
15502         PR tree-optimization/49580
15503         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
15504         the loop's number of iterations.
15505         * tree-parloops.c (transform_to_exit_first_loop): Add the
15506         handling of the loop's number of iterations before the call
15507         to gimple_duplicate_sese_tail.
15508         Insert the stmt caclculating the new rhs of the loop's
15509         condition stmt to the preheader instead of iters_bb.
15510
15511 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
15512
15513         PR rtl-optimization/47449
15514         * fwprop.c (forward_propagate_subreg): Don't propagate hard
15515         register nor zero/sign extended hard register.
15516
15517 2011-07-05  Richard Guenther  <rguenther@suse.de>
15518
15519         PR tree-optimization/49518
15520         PR tree-optimization/49628
15521         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
15522         irrelevant and invariant data-references.
15523         (vect_analyze_data_ref_access): For invariant loads clear the
15524         group association.
15525
15526 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
15527
15528         PR rtl-optimization/49619
15529         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
15530         pass VOIDmode as op0_mode to recursive call, and return temp even
15531         when different from tor, just if it is not IOR of the original
15532         PLUS arguments.
15533
15534         PR rtl-optimization/49472
15535         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
15536         negating MULT, negate the second operand instead of first.
15537         (simplify_binary_operation_1) <case MULT>: If one operand is
15538         a NEG and the other is MULT, don't attempt to optimize by negation
15539         of the MULT operand if it only moves the NEG operation around.
15540
15541         PR debug/49602
15542         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
15543         get_current_def return value if it can't be trusted to be
15544         the current value of the variable in the current bb.
15545
15546 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
15547
15548         PR target/49600
15549         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
15550         general register to memory for !TARGET_INTER_UNIT_MOVES.
15551
15552 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
15553
15554         PR target/44643
15555         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
15556         instead of TREE_READONLY.
15557
15558 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
15559
15560         * doc/extend.texi (AVR Built-in Functions): Update documentation
15561         of __builtin_avr_fmul*.
15562         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
15563         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
15564         * config/avr/avr.md (fmul): Rename to fmul_insn.
15565         (fmuls): Rename to fmuls_insn.
15566         (fmulsu): Rename to fmulsu_insn.
15567         (fmul,fmuls,fmulsu): New expander.
15568         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
15569         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
15570         * config/avr/libgcc.S (__fmul): New function.
15571         (__fmuls): New function.
15572         (__fmulsu,__fmulsu_exit): New function.
15573
15574 2011-07-04  Richard Guenther  <rguenther@suse.de>
15575
15576         PR tree-optimization/49615
15577         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
15578         basic-block index check.
15579
15580 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
15581
15582         * longlong.h (count_leading_zeros, count_trailing_zeros,
15583         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
15584         resp. 64.
15585
15586 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
15587
15588         PR tree-optimization/49610
15589         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
15590         a basic block.
15591
15592 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
15593             Olivier Hainque  <hainque@adacore.com>
15594             Nicolas Setton  <setton@adacore.com>
15595
15596         * tree.h (TYPE_ARTIFICIAL): New flag.
15597         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
15598         the DIE of the type if it is artificial.
15599         (gen_array_type_die): Likewise.
15600         (gen_enumeration_type_die): Likewise.
15601         (gen_struct_or_union_type_die): Likewise.
15602         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
15603         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
15604
15605 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
15606
15607         * tree-object-size.c (pass_through_call): Handle
15608         BUILT_IN_ASSUME_ALIGNED.
15609
15610 2011-07-01  Martin Jambor  <mjambor@suse.cz>
15611
15612         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
15613
15614 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
15615
15616         PR middle-end/48016
15617         * explow.c (update_nonlocal_goto_save_area): Use proper mode
15618         for stack save area.
15619         * function.c (expand_function_start): Likewise.
15620
15621 2011-07-01  Richard Guenther  <rguenther@suse.de>
15622
15623         PR middle-end/49596
15624         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
15625         may have unknown refs.
15626
15627 2011-07-01  Kai Tietz  <ktietz@redhat.com>
15628
15629         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
15630
15631 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15632
15633         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
15634         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
15635         (Specific, mips-sgi-irix6): Likewise.
15636
15637 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15638
15639         PR libmudflap/49549
15640         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
15641
15642 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
15643
15644         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
15645         [idx]= and [idx1 ... idx2]= before initializers if needed for
15646         array initializers.
15647
15648 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
15649
15650         * config.gcc (score-*-elf): Remove score7.o.
15651         * config/score/t-score-elf: Likewise.
15652         * config/score/score.c: Merge score7 to score.c and
15653         remove forwarding functions.
15654         * config/score/score7.c: Deleted.
15655         * config/score/score7.h: Deleted.
15656
15657 2011-07-01  Richard Guenther  <rguenther@suse.de>
15658
15659         PR tree-optimization/49603
15660         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
15661
15662 2011-06-30  Martin Jambor  <mjambor@suse.cz>
15663
15664         * tree-sra.c (struct access): Rename total_scalarization to
15665         grp_total_scalarization
15666         (completely_scalarize_var): New function.
15667         (sort_and_splice_var_accesses): Set total_scalarization in the
15668         representative access.
15669         (analyze_access_subtree): Propagate total scalarization accross the
15670         tree, no holes in totally scalarized trees, simplify coverage
15671         computation.
15672         (analyze_all_variable_accesses): Call completely_scalarize_var instead
15673         of completely_scalarize_record.
15674
15675 2011-06-30  Richard Henderson  <rth@redhat.com>
15676
15677         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
15678         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
15679         * config/i386/i386.c: Don't include dwarf2out.h.
15680         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
15681         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
15682         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
15683         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
15684         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
15685
15686 2011-06-30  Richard Henderson  <rth@redhat.com>
15687
15688         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
15689         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
15690         * final.c (final_scan_insn): Look for it, and invoke
15691         dwarf2out_frame_debug before the insn if found.
15692
15693 2011-06-30  Richard Henderson  <rth@redhat.com>
15694
15695         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
15696         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
15697
15698 2011-06-30  Richard Henderson  <rth@redhat.com>
15699
15700         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
15701         Define a vector of this type.
15702         (regs_saved_in_regs): Use a VEC.
15703         (num_regs_saved_in_regs): Remove.
15704         (compare_reg_or_pc): New.
15705         (record_reg_saved_in_reg): Split out from...
15706         (dwarf2out_flush_queued_reg_saves): ... here.
15707         (clobbers_queued_reg_save): Update for VEC.
15708         (reg_saved_in): Likewise.
15709         (dwarf2out_frame_debug_init): Likewise.
15710         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
15711         (dwarf2out_frame_debug_cfa_register): Likewise.
15712
15713 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
15714
15715         PR tree-optimization/49572
15716         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
15717         type of the RHS instead of that of the LHS for the expression type.
15718
15719 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
15720
15721         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
15722         unconditionally.
15723
15724 2011-06-30  Richard Guenther  <rguenther@suse.de>
15725
15726         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
15727         * tree-ssa-structalias.c (create_variable_info_for): Do not
15728         add initial constraints for non-var-decls.  Properly handle
15729         globals in other ltrans partitions.
15730         (intra_create_variable_infos): Manually create constraints for
15731         the fake no-alias parameter.
15732         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
15733         and assert there are no clones.
15734
15735 2011-06-30  Richard Guenther  <rguenther@suse.de>
15736
15737         PR tree-optimization/46787
15738         * tree-data-ref.c (dr_address_invariant_p): Remove.
15739         (find_data_references_in_stmt): Invariant accesses are ok now.
15740         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
15741         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
15742         invariant loads.
15743
15744 2011-06-30  Martin Jambor  <mjambor@suse.cz>
15745
15746         PR tree-optimization/49094
15747         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
15748         (build_accesses_from_assign): Use it.
15749
15750 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
15751
15752         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
15753         handling of BUILT_IN_ASSUME_ALIGNED.
15754
15755         PR debug/49364
15756         * dwarf2out.c (output_abbrev_section): Don't return early
15757         if abbrev_die_table_in_use is 1.
15758         (dwarf2out_finish): Instead don't call output_abbrev_section
15759         nor emit abbrev_section_label in that case.
15760
15761 2011-06-30  Nick Clifton  <nickc@redhat.com>
15762
15763         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
15764         for the V850E.
15765
15766 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
15767
15768         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
15769         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
15770
15771 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
15772
15773         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
15774         both pattern and original statements if necessary.
15775         (vect_transform_loop): Likewise.
15776         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
15777         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
15778         Mark the pattern statement only if the original statement doesn't
15779         have its own uses.
15780         (process_use): Call vect_mark_relevant with additional parameter.
15781         (vect_mark_stmts_to_be_vectorized): Likewise.
15782         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
15783         (vect_analyze_stmt): Handle both pattern and original statements
15784         if necessary.
15785         (vect_transform_stmt): Don't store vectorized pattern statement
15786         in the original statement.
15787         (vect_is_simple_use_1): Use related pattern statement only if the
15788         original statement is irrelevant.
15789         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
15790
15791 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
15792
15793         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
15794         option.
15795         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
15796         entry.
15797         (TARGET_AVX128_OPTIMAL): New definition.
15798         * config/i386/i386.c (initial_ix86_tune_features): Initialize
15799         X86_TUNE_AVX128_OPTIMAL entry.
15800         (ix86_option_override_internal): Enable the generation
15801         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
15802         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
15803         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
15804
15805 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
15806
15807         PR tree-optimization/49539
15808         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
15809         names by means of stmt_references_abnormal_ssa_name.
15810         (associate_plusminus): Call can_propagate_from before propagating
15811         from definition statements.
15812         (ssa_forward_propagate_and_combine): Remove superfluous newline.
15813
15814 2011-06-29  Richard Guenther  <rguenther@suse.de>
15815
15816         * doc/invoke.texi: Document -scev dump modifier.
15817         * tree-pass.h (TDF_SCEV): New dump flag.
15818         * tree-dump.c (dump_option_value_in): Add scev.
15819         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
15820         * tree-scalar-evolution.c: Likewise.
15821
15822 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
15823
15824         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
15825         (cxa_type_match): Correct declaration.
15826         (__gnu_unwind_pr_common): Reconstruct additional indirection
15827         when __cxa_type_match returns succeeded_with_ptr_to_base.
15828
15829 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15830
15831         PR rtl-optimization/49114
15832         * reload.c (struct replacement): Remove SUBREG_LOC member.
15833         (push_reload): Do not set it.
15834         (push_replacement): Likewise.
15835         (subst_reload): Remove dead code.
15836         (copy_replacements): Remove assertion.
15837         (copy_replacements_1): Do not handle SUBREG_LOC.
15838         (move_replacements): Likewise.
15839         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
15840         Detect subregs via recursive descent instead of via SUBREG_LOC.
15841
15842 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
15843
15844         * config/avr/avr.c (avr_encode_section_info): Dispatch to
15845         default_encode_section_info.
15846
15847 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
15848
15849         PR tree-optimization/49545
15850         * builtins.c (get_object_alignment_1): Update function comment.
15851         Do not use DECL_ALIGN for functions, but test
15852         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
15853         * fold-const.c (get_pointer_modulus_and_residue): Don't check
15854         for functions here.
15855         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
15856
15857 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
15858
15859         PR debug/49567
15860         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
15861         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
15862
15863 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
15864
15865         PR target/34734
15866         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
15867         about uninitialized data attributed 'progmem' from here...
15868         (avr_encode_section_info): ...to this new function.
15869         (TARGET_ENCODE_SECTION_INFO): New define.
15870         (avr_section_type_flags): For data in ".progmem.data", remove
15871         section flag SECTION_WRITE.
15872
15873 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
15874
15875         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
15876         _xmulhisi3_exit.
15877         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
15878         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
15879         (__umulhisi3): Ditto.
15880         * config/avr/avr.md (mulhisi3): New insn expender.
15881         (umulhisi3): New insn expender.
15882         (*mulhisi3_call): New insn.
15883         (*umulhisi3_call): New insn.
15884
15885 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
15886
15887         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
15888
15889 2011-06-28  Richard Henderson  <rth@redhat.com>
15890
15891         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
15892         all code and arguments that handled pushes.  Update all callers.
15893
15894 2011-06-28  Richard Henderson  <rth@redhat.com>
15895
15896         * config/arm/arm.c (arm_output_function_prologue): Don't call
15897         thumb1_output_function_prologue.
15898         (arm_expand_prologue): Avoid dead store.
15899         (number_of_first_bit_set): Use ctz_hwi.
15900         (thumb1_emit_multi_reg_push): New.
15901         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
15902         to emit the entire prologue as rtl.
15903         (thumb1_output_interwork): Split out from
15904         thumb1_output_function_prologue.
15905         (thumb1_output_function_prologue): Remove.
15906         (arm_attr_length_push_multi): Handle thumb1.
15907         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
15908         (prologue_thumb1_interwork): New.
15909         (*push_multi): Allow thumb1; use push_mult_memory_operand.
15910         * config/arm/predicates.md (push_mult_memory_operand): New.
15911
15912 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
15913
15914         * config/sparc/sync.md (*stbar): Delete.
15915         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
15916
15917 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
15918
15919         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
15920
15921 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15922
15923         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
15924         (TARGET_64BIT_DEFAULT): Define.
15925         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
15926         of tm_file.
15927         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
15928
15929 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
15930
15931         * common.opt (in_lto_p): New Variable entry.
15932         * flags.h (in_lto_p): Move to common.opt.
15933         * gcc.c: Include params.h.
15934         (set_option_handlers): Also use common_handle_option and
15935         target_handle_option.
15936         (main): Call global_init_params, finish_params and init_options_struct.
15937         * opts.c (debug_type_names): Move from toplev.c.
15938         (print_filtered_help): Access quiet_flag through opts pointer.
15939         (common_handle_option): Return early in the driver for some options.
15940         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
15941         opts pointer.
15942         * toplev.c (in_lto_p): Move to common.opt.
15943         (debug_type_names): Move to opts.c.
15944         * Makefile.in (OBJS): Remove opts.o.
15945         (OBJS-libcommon-target): Add opts.o.
15946         (gcc.o): Update dependencies.
15947
15948 2011-06-28  Kai Tietz  <ktietz@redhat.com>
15949
15950         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
15951
15952 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15953
15954         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
15955         with '=' constraint modifier.
15956         (*divdf3_vfp): Likewise.
15957         ("*mulsf3_vfp"): Likewise.
15958         ("*muldf3_vfp"): Likewise.
15959         ("*mulsf3negsf_vfp"): Likewise.
15960         ("*muldf3negdf_vfp"): Likewise.
15961
15962 2011-06-28  Nick Clifton  <nickc@redhat.com>
15963
15964         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
15965         relaxation when performing an incremental link.
15966
15967 2011-06-28  Kai Tietz  <ktietz@redhat.com>
15968
15969         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
15970         within BB from last to first.
15971
15972 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
15973
15974         * genattr-common.c: New.  Based on genattr.c.
15975         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
15976         (MOSTLYCLEANFILES): Add insn-attr-common.h.
15977         (opts.o): Update dependencies.
15978         (.PRECIOUS): Add insn-attr-common.h.
15979         (simple_rtl_generated_h): Add insn-attr-common.h.
15980         (build/genattr-common.o): New.
15981         (genprogrtl): Add attr-common.
15982         * genattr.c (main): Include insn-attr-common.h.  Don't generate
15983         definitions of DELAY_SLOTS or INSN_SCHEDULING.
15984         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
15985
15986 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
15987
15988         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
15989         avr-*-* and avr-*-rtems* targets.
15990
15991         * config/avr/elf.h: New file.
15992         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
15993         (TARGET_ASM_SELECT_SECTION): Define.
15994         (INIT_SECTION_ASM_OP): Undefine.
15995         (FINI_SECTION_ASM_OP): Undefine.
15996         (READONLY_DATA_SECTION_ASM_OP): Undefine.
15997         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
15998         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
15999         * config/avr/avr.h:
16000         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
16001         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
16002         (MAX_OFILE_ALIGNMENT): Move to elf.h.
16003         (STRING_LIMIT): Move to elf.h.
16004         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
16005         (ASM_DECLARE_OBJECT_NAME): Remove.
16006         (ESCAPES): Remove.
16007         (ASM_OUTPUT_SKIP): Remove.
16008         (DWARF2_DEBUGGING_INFO): Remove.
16009         (OBJECT_FORMAT_ELF): Remove.
16010         (USER_LABEL_PREFIX): Remove.
16011         (ASM_OUTPUT_EXTERNAL): Remove.
16012         (ASM_OUTPUT_ASCII): Remove.
16013         (TYPE_ASM_OP): Remove.
16014         (SIZE_ASM_OP): Remove.
16015         (WEAK_ASM_OP): Remove.
16016         (STRING_ASM_OP): Remove.
16017         (SET_ASM_OP): Remove.
16018         (ASM_WEAKEN_LABEL): Remove.
16019         (TYPE_OPERAND_FMT): Remove.
16020         (ASM_DECLARE_FUNCTION_SIZE): Remove.
16021         (ASM_FINISH_DECLARE_OBJECT): Remove.
16022         (NO_DOLLAR_IN_LABEL): Remove.
16023         (ASM_GENERATE_INTERNAL_LABEL): Remove.
16024         (ASM_OUTPUT_CASE_LABEL): Remove.
16025         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
16026         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
16027         (gas_output_ascii): Remove.
16028         (gas_output_limited_string): Remove.
16029         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
16030         * config/avr/avr-protos.h
16031         (gas_output_ascii): Remove prototye.
16032         (gas_output_limited_string): Remove prototype.
16033
16034 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
16035
16036         PR target/48637
16037         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
16038         asm operands.
16039
16040 2011-06-27  Jan Hubicka  <jh@suse.cz>
16041
16042         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
16043         node instead of references in node.
16044
16045 2011-06-27  Richard Henderson  <rth@redhat.com>
16046
16047         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
16048         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
16049         inside ifdef.
16050
16051 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
16052
16053         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
16054
16055         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
16056         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
16057         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
16058         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
16059         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
16060         (evaluate_stmt, execute_fold_all_builtins): Handle
16061         BUILT_IN_ASSUME_ALIGNED.
16062         * tree-ssa-dce.c (propagate_necessity): Likewise.
16063         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
16064         call_may_clobber_ref_p_1): Likewise.
16065         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
16066         (expand_builtin_assume_aligned): New function.
16067         * doc/extend.texi (__builtin_assume_aligned): Document.
16068
16069         PR debug/49544
16070         * cselib.c (promote_debug_loc): If cselib_preserve_constants
16071         and l has two DEBUG_INSN owned locs instead of just one, adjust
16072         the second location's setting_insn too.
16073
16074 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16075
16076         PR libmudflap/38738
16077         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
16078
16079 2011-06-27  Nick Clifton  <nickc@redhat.com>
16080
16081         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
16082         bit position of highest bit set into a count of the high zero bits.
16083
16084 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
16085
16086         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
16087
16088 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
16089
16090         PR lto/48492
16091         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
16092         to a NULL parent.
16093
16094 2011-06-27  Richard Guenther  <rguenther@suse.de>
16095
16096         PR tree-optimization/49394
16097         * passes.c (execute_one_pass): Restore current_pass after
16098         applying IPA transforms.
16099
16100 2011-06-27  Kai Tietz  <ktietz@redhat.com>
16101
16102         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
16103         out of type precision after operation.
16104         (find_bswap): Take for limit value the integer auto-promotion
16105         into account.
16106
16107 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
16108
16109         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
16110         forward scan as well.
16111
16112 2011-06-27  Tristan Gingold  <gingold@adacore.com>
16113
16114         PR target/44241
16115         * config/vms/vms-protos.h: New file.
16116         * config/vms/vms-crtlmap.map: New file.
16117         * config/vms/vms.c: New file.
16118         * config/vms/make-crtlmap.awk: New file.
16119         * config/vms/vms-crtl.h: File removed.
16120         * config/vms/vms-crtl-64.h: File removed.
16121         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
16122         * config/alpha/vms64.h: Do not include vms-crtl-64.h
16123         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
16124         clear some builtins on VMS.  Calls vms_patch_builtins.
16125         (avms_asm_output_external): Remove.
16126         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
16127         (struct crtl_name_spec): Remove
16128         (DO_CTRL_NAMES): Remove.
16129         * config/ia64/vms.h (struct crtl_name_spec): Remove
16130         (DO_CTRL_NAMES): Remove.
16131         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
16132         clear some builtins on VMS.  Calls vms_patch_builtins.
16133         (ia64_asm_output_external): Remove DO_CRTL_NAME.
16134         * config/ia64/vms64.h: Do not include vms-crtl-64.h
16135         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
16136
16137 2011-06-27  Tristan Gingold  <gingold@adacore.com>
16138
16139         * config/alpha/alpha.c (alpha_end_function): Always generate .end
16140         directive on VMS.
16141
16142 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
16143
16144         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
16145         the function receives nonlocal gotos.
16146
16147 2011-06-27  Richard Guenther  <rguenther@suse.de>
16148
16149         PR tree-optimization/49536
16150         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16151         For non-scalar inner types use a scalar type according to
16152         the scalar inner mode.
16153
16154 2011-06-27  Richard Guenther  <rguenther@suse.de>
16155
16156         PR tree-optimization/49365
16157         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
16158
16159 2011-06-27  Richard Guenther  <rguenther@suse.de>
16160
16161         PR tree-optimization/49169
16162         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
16163         the alignment of function decls.
16164
16165 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
16166
16167         PR target/47997
16168         * config/darwin.c (darwin_mergeable_string_section): Place string
16169         constants in '.cstring' rather than '.const' when CF/NSStrings are
16170         active.
16171
16172 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
16173
16174         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
16175         (emit_save_register_window): Likewise.
16176         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
16177         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
16178         Swap back %o7/%i7 in register naming.
16179
16180 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
16181
16182         PR driver/49371
16183         * config/darwin.c (darwin_override_options): Improve warning when
16184         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
16185         is given with fpie/fPIE.
16186         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
16187         * config/darwin9.h (PIE_SPEC): New.
16188
16189 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
16190
16191         * timevar.c (timevar_print): Increase width for display of timevar
16192         name.
16193
16194 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
16195
16196         PR c++/46400
16197         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
16198         instead of TYPE_CHAIN for chain_next for types.
16199
16200 2011-06-24  Richard Henderson  <rth@redhat.com>
16201
16202         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
16203         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
16204         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
16205         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
16206         (sparc_flat_expand_prologue): Emit individual instructions
16207         instead of one of the above.
16208
16209 2011-06-24  Easwaran Raman  <eraman@google.com>
16210
16211         PR rtl-optimization/49429
16212         PR target/49454
16213         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
16214         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
16215         used to copy y into x.
16216         * calls.c (initialize_argument_information): Mark
16217         an argument addressable if it is passed by invisible reference.
16218         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
16219         if it is passed by reference.
16220
16221 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16222
16223         PR rtl-optimization/49504
16224         * rtlanal.c (nonzero_bits1): Properly handle addition or
16225         subtraction of a pointer in Pmode if pointers extend unsigned.
16226         (num_sign_bit_copies1): Likewise.
16227
16228 2011-06-24  Martin Jambor  <mjambor@suse.cz>
16229
16230         PR tree-optimizations/49516
16231         * tree-sra.c (sra_modify_assign): Choose the safe path for
16232         aggregate copies if we also did scalar replacements.
16233
16234 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16235
16236         PR target/49335
16237         * config/arm/predicates.md (add_operator): New.
16238         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
16239
16240 2011-06-24  Andi Kleen  <ak@linux.intel.com>
16241
16242         * tree-sra.c (type_internals_preclude_sra_p): Add msg
16243         parameter. Split up ifs and report reason in *msg.
16244         (reject): Add.
16245         (find_var_candiate): Add msg variable.
16246         Split up ifs and report reason to reject.
16247         (find_param_candidates): Add msg variable.
16248         Pass msg to type_internals_preclude_sra_p.
16249
16250 2011-06-23  Jeff Law  <law@redhat.com>
16251
16252         PR middle-end/48770
16253         * reload.h (reload): Change to return a bool.
16254         * ira.c (ira): If requested by reload, run a fast DCE pass after
16255         reload has completed.  Fix comment typo.
16256         * reload1.c (need_dce): New file scoped static.
16257         (reload): Set reload_completed here.  Return whether or not a DCE
16258         pass after reload is needed.
16259         (delete_dead_insn): Set need_dce as needed.
16260
16261         PR middle-end/49465
16262         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
16263         to detect threading through joiner block.  If there was already
16264         an edge to the new target, then do not change the PHI nodes.
16265
16266 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
16267
16268         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
16269         get_pointer_alignment to see if base isn't sufficiently aligned.
16270
16271 2011-06-23  Jan Hubicka  <jh@suse.cz>
16272
16273         PR tree-optimize/49373
16274         * tree-pass.h (all_late_ipa_passes): Declare.
16275         * cgraphunit.c (init_lowered_empty_function): Fix properties.
16276         (cgraph_optimize): Execute late passes; remove unreachable funcions
16277         after materialization.
16278         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
16279         LTOing.
16280         * passes.c (all_late_ipa_passes): Declare.
16281         (dump_passes, register_pass): Handle late ipa passes.
16282         (init_optimization_passes): Move ipa_pta to late passes; schedule
16283         fixup_cfg at beggining of all_passes.
16284         (apply_ipa_transforms): New function.
16285         (execute_one_pass): When doing simple ipa pass, apply all transforms.
16286
16287 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
16288
16289         * params.c: Include common/common-target.h.  Don't include tm.h.
16290         (lang_independent_params): Move from toplev.c.
16291         (global_init_params): New.
16292         * params.h (global_init_params): Declare.
16293         * target.def (default_params): Move to common-target.def.
16294         * toplev.c (lang_independent_options): Remove.
16295         (lang_independent_params): Move to params.c.
16296         (general_init): Use global_init_params.
16297         * common/common-target.def (option_default_params): Move from
16298         target.def.
16299         * common/config/ia64/ia64-common.c: Include params.h.
16300         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
16301         from ia64.c.
16302         * common/config/rs6000/rs6000-common.c: Include params.h.
16303         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
16304         from rs6000.c.
16305         * common/config/sh/sh-common.c: Include params.h.
16306         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
16307         from sh.c.
16308         * common/config/spu/spu-common.c: Include params.h.
16309         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
16310         from spu.c.
16311         * config/ia64/ia64.c (ia64_option_default_params,
16312         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
16313         * config/rs6000/rs6000.c (rs6000_option_default_params,
16314         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
16315         * config/sh/sh.c (sh_option_default_params,
16316         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
16317         * config/spu/spu.c (spu_option_default_params,
16318         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
16319         * Makefile.in (OBJS): Remove params.o.
16320         (OBJS-libcommon-target): Add params.o.
16321         (params.o, $(common_out_object_file)): Update dependencies.
16322         * doc/tm.texi: Regenerate.
16323
16324 2011-06-23  Alan Modra  <amodra@gmail.com>
16325
16326         PR bootstrap/49383
16327         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
16328         invocation for 2011-06-09 changes.
16329
16330 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
16331
16332         PR libgomp/49490
16333         * omp-low.c (expand_omp_for_static_nochunk): Only
16334         use n ceil/ nthreads size for the first n % nthreads threads in the
16335         team instead of all threads except for the last few ones which
16336         get less work or none at all.
16337
16338         PR debug/49496
16339         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
16340         uses.
16341
16342 2011-06-22  Richard Guenther  <rguenther@suse.de>
16343
16344         PR tree-optimization/49493
16345         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
16346         Refer to the alias target of variables.
16347         (associate_varinfo_to_alias_1): Remove.
16348         (ipa_pta_execute): Do not associate aliases with anything.
16349         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
16350         (cgraph_function_node): Likewise.
16351         (cgraph_function_or_thunk_node): Likewise.
16352         (varpool_variable_node): Likewise.
16353
16354 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
16355
16356         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
16357         * config.gcc (arm*-*-linux*): Default to gnu tls.
16358         (arm*-*-*): Add --with-tls option.
16359         (all_defaults): Add 'tls'.
16360
16361 2011-06-22  Richard Henderson  <rth@redhat.com>
16362
16363         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
16364         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
16365         (dwarf2out_frame_debug_cfa_window_save): Rename from
16366         dwarf2out_window_save; make static.
16367         * tree.h (dwarf2out_window_save): Don't declare.
16368
16369         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
16370         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
16371         (emit_save_register_window): Rename from gen_save_register_window;
16372         emit the insn and add REG_CFA_* notes.
16373         (sparc_expand_prologue): Update to match.
16374         * config/sparc/sparc.md (save_register_window_1): Simplify from
16375         save_register_window<P:mode>.
16376
16377 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16378
16379         PR target/49497
16380         * config/i386/i386.md (*lea_general_2): Always allow SImode.
16381         (*lea_general_2_zext): Likewise.
16382         (imul to lea peepholes): Use const359_operand and check
16383         TARGET_PARTIAL_REG_STALL.
16384
16385         * config/i386/predicates.md (const359_operand): New.
16386
16387 2011-06-22  Michael Matz  <matz@suse.de>
16388
16389         * cgraphunit.c (assemble_thunk): Use correct return type.
16390
16391 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
16392             Dmitry Melnik  <dm@ispras.ru>
16393
16394         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
16395         (neon_output_shift_immediate): Ditto.
16396         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
16397         prototype.
16398         (neon_output_shift_immediate): Ditto.
16399         * config/arm/neon.md (vashl<mode>3): Modified constraint.
16400         (vashr<mode>3_imm): New insn pattern.
16401         (vlshr<mode>3_imm): Ditto.
16402         (vashr<mode>3): Modified constraint.
16403         (vlshr<mode>3): Ditto.
16404         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
16405         predicate.
16406         (imm_for_neon_rshift_operand): Ditto.
16407         (imm_lshift_or_reg_neon): Ditto.
16408         (imm_rshift_or_reg_neon): Ditto.
16409
16410         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
16411
16412 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
16413
16414         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
16415         builtin calls even if likelyvalue is not CONSTANT.
16416         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
16417         Return get_value_for_expr of first operand
16418         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
16419         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
16420         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
16421         their non-checking counterparts.
16422         (call_may_clobber_ref_p_1): Likewise.
16423         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
16424         like their non-checking counterparts.
16425         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16426         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
16427         like their non-checking counterparts.
16428         (find_func_clobbers): Likewise.
16429         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
16430         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
16431
16432         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
16433         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
16434         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
16435         of base type reference as argument.
16436         (resolve_addr_in_expr): Likewise.  Fix keep computation.
16437         (convert_descriptor_to_signed): Renamed to...
16438         (convert_descriptor_to_mode): ... this.  For wider types convert to
16439         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
16440         (typed_binop): New function.
16441         (scompare_loc_descriptor, ucompare_loc_descriptor,
16442         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
16443         default to unsigned type instead of signed.
16444
16445         PR debug/47858
16446         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
16447         (gimple_build_debug_source_bind_stat): New prototype.
16448         (gimple_build_debug_source_bind): Define.
16449         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
16450         gimple_debug_source_bind_get_value,
16451         gimple_debug_source_bind_get_value_ptr,
16452         gimple_debug_source_bind_set_var,
16453         gimple_debug_source_bind_set_value): New inlines.
16454         * gimple.c (gimple_build_debug_source_bind_stat): New function.
16455         * gimple-pretty-print.c (dump_gimple_debug): Handle
16456         GIMPLE_DEBUG_SOURCE_BIND.
16457         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
16458         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16459         * tree-parloops.c (eliminate_local_variables,
16460         separate_decls_in_region): Likewise.
16461         (separate_decls_in_region_debug): Renamed from
16462         separate_decls_in_region_debug_bind.  Handle
16463         gimple_debug_source_bind_p.
16464         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
16465         prototypes.
16466         (DECL_HAS_DEBUG_ARGS_P): Define.
16467         (struct tree_function_decl): Add has_debug_args_flag field.
16468         * tree.c (debug_args_for_decl): New variable.
16469         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
16470         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
16471         (rewrite_debug_stmt_uses): New function.
16472         (rewrite_stmt): Use it to rewrite debug stmt uses.
16473         * rtl.def (DEBUG_PARAMETER_REF): New.
16474         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
16475         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
16476         DEBUG_PARAMETER_REF.
16477         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
16478         * print-rtl.c (print_rtx): Likewise.
16479         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
16480         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
16481         debug stmts in the first bb.
16482         * tree-inline.c (remap_ssa_name): If remapping default def
16483         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
16484         a source bind debug stmt.
16485         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
16486         (maybe_move_debug_stmts_to_successors): Likewise.
16487         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
16488         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
16489         debug args vector from old_decl to new_decl.
16490         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
16491         or modified parameters, add debug bind stmts before call
16492         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
16493         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
16494         on DECL_DEBUG_EXPRs from debug args vector.
16495         (expand_debug_source_expr): New function.
16496         (expand_debug_locations): Use it for source bind insns.
16497         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
16498         * var-tracking.c (prepare_call_arguments): Add debug args
16499         to call_arguments if any.
16500         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
16501         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
16502         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
16503         (get_ref_die_offset, parameter_ref_descriptor): New functions.
16504         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
16505         (gen_subprogram_die): Handle parameters identified by
16506         DEBUG_PARAMETER_REF.
16507
16508 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
16509
16510         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
16511         * doc/install.texi (Configuration): Document --with-tls.
16512         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
16513         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
16514         (arm_tls_descseq_addr): New.
16515         (legitimize_tls_address): Add tlsdesc support.
16516         (arm_cannot_copy_insn_p): Check for tlscall.
16517         (arm_emit_tls_decoration): Likewise.
16518         * config/arm/arm.h (TARGET_GNU2_TLS): New.
16519         (OPTION_DEFAULT_SPECS): Add with-tls support.
16520         * config/arm/arm.md (R1_REGNUM): Define.
16521         (tlscall): New.
16522         * config/arm/arm.opt (tls_type): New enumeration type and values.
16523         (mtls-dialect): New switch.
16524         * config/arm/arm-opts.h (enum tls_type): New.
16525
16526 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
16527
16528         * attribs.c (register_attribute): Added assert to check that all
16529         attribute specs are registered with a name that is not empty and
16530         does not start with '_'.
16531         (decl_attributes): Avoid the lookup of the "naked" attribute spec
16532         if the function has no attributes.
16533         * tree.c (is_attribute_with_length_p): Removed.
16534         (is_attribute_p): Removed.
16535         (private_is_attribute_p): New.
16536         (private_lookup_attribute): New.
16537         (lookup_attribute): Removed.
16538         (lookup_ident_attribute): New.
16539         (remove_attribute): Require the first argument to be in the form
16540         'text', not '__text__'.  Updated asserts.
16541         (merge_attributes): Use lookup_ident_attributes instead of
16542         lookup_attribute.
16543         (merge_dllimport_decl_attributes): Use remove_attribute.
16544         (attribute_list_contained): Likewise.
16545         (attribute_list_equal): Immediately return 1 if the arguments are
16546         identical pointers.
16547         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
16548         'int'.  Require the first argument to be in the form 'text', not
16549         '__text__'.  Require the second argument to be an identifier.
16550         (lookup_attribute): Made inline.  Require the first argument to be
16551         in the form 'text', not '__text__'.
16552         (private_is_attribute_p, private_lookup_attribute): New.
16553         Updated comments.
16554
16555 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
16556
16557         * builtins.c: Add sync_ or SYNC__ to builtin names.
16558         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
16559         * omp-low.c: Add sync_ or SYNC__ to builtin names.
16560
16561 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
16562
16563         PR target/33049
16564         * config/avr/avr.md (extzv): New expander.
16565         (*extzv): New insn.
16566         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
16567         * config/avr/constraints.md (C04): New constraint.
16568         * doc/md.texi (Machine Constraints): Document it.
16569
16570 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
16571
16572         PR middle-end/49489
16573         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
16574         unsignedp argument instead of 1 for clrsb_optab.
16575         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
16576         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
16577         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
16578         * optabs.c (widen_leading): Call widen_operand and expand_unop
16579         with 0 as unsignedp argument instead of 1 for clrsb_optab.
16580         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
16581
16582 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
16583
16584         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
16585
16586 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
16587
16588         * gensupport.c (add_define_attr): New static function.
16589         (is_predicable): Allow multi-alternative lists for the "predicable"
16590         attribute.
16591         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
16592         (process_one_cond_exec): Call alter_attrs_for_insn.
16593         * doc/md.texi (Defining Attributes): Mention some standard names.
16594         (Conditional Execution): Update documentation for "predicable".
16595
16596         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
16597         __builtin_clrsbll): Document.
16598         * doc/rtl.texi (clrsb): New entry.
16599         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
16600         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
16601         (expand_unop): Handle clrsb_optab.
16602         (init_optabs): Initialize it.
16603         * optabs.h (enum optab_index): New entry OTI_clrsb.
16604         (clrsb_optab): Define.
16605         * genopinit.c (optabs): Add an entry for it.
16606         * builtins.c (expand_builtin): Handle clrsb builtin functions.
16607         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
16608         BUILT_IN_CLRSBLL): New.
16609         * rtl.def (CLRSB): New code.
16610         * dwarf2out.c (mem_loc_descriptor): Handle it.
16611         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
16612         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
16613         and popcount.
16614         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
16615         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
16616         (__ctzDI2): Move declaration.
16617         * config/bfin/bfin.md (clrsbsi2): New expander.
16618         (signbitssi2): Use the CLRSB rtx.
16619         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
16620         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
16621
16622 2011-06-21  Richard Guenther  <rguenther@suse.de>
16623
16624         * ipa-inline-transform.c (inline_transform): Fix previous change.
16625
16626 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
16627
16628         PR tree-optimization/49478
16629         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
16630         with constant operand.
16631
16632 2011-06-21  Richard Guenther  <rguenther@suse.de>
16633
16634         * ipa-inline-transform.c (inline_transform): Fix typo.
16635
16636 2011-06-21  Richard Guenther  <rguenther@suse.de>
16637
16638         PR tree-optimization/49483
16639         * tree-vect-stmts.c (vectorizable_assignment): Also handle
16640         VIEW_CONVERT_EXPR conversions.
16641
16642 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
16643
16644         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
16645         * config/avr/avr-tables.opt: New file (generated).
16646         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
16647         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
16648         avr-mcus.def.
16649         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
16650         (avr_option_override): Don't process -mmcu= argument here.  Set
16651         avr_current_device using avr_mcu_index.
16652         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
16653         * config/avr/avr.opt (mmcu=): Use Enum.
16654         * config/avr/t-avr (avr-devices.o): Update dependencies.
16655         ($(srcdir)/config/avr/avr-tables.opt): New.
16656         * target.def (help): Remove.
16657         * doc/tm.texi.in (TARGET_HELP): Remove.
16658         * doc/tm.texi: Regenerate.
16659         * opts.c: Don't include target.h.
16660         (common_handle_option): Don't call targetm.help.
16661         * system.h (TARGET_HELP): Poison.
16662         * Makefile.in (opts.o): Update dependencies.
16663
16664 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16665
16666         * config/usegld.h: New file.
16667         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
16668         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
16669         (LIB_SPEC): Likewise.  Search /lib.
16670         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
16671         (RDYNAMIC_SPEC): Handle GNU ld.
16672         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
16673         Define.
16674         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
16675         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
16676         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
16677         (STACK_CHECK_STATIC_BUILTIN): Define.
16678         * config/sol2.opt (compat-bsd): Remove.
16679         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
16680         * config/sol2-bi.h: New file.
16681         * config/sol2-gld.h: Remove.
16682         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
16683         (NO_DBX_BNSYM_ENSYM): Remove.
16684         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
16685         (STACK_CHECK_STATIC_BUILTIN): Remove.
16686         Test USE_GLD instead of TARGET_GNU_LD.
16687         * config/i386/sol2-10.h: Rename to ...
16688         * config/i386/sol2-bi.h .. this.
16689         (SUBTARGET_EXTRA_SPECS): Redefine.
16690         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
16691         (MULTILIB_DEFAULTS): Remove.
16692         (DEFAULT_ARCH32_P): Define.
16693         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
16694         (ARCH64_SUBDIR): Define.
16695         Test USE_GLD instead of TARGET_GNU_LD.
16696         (I386_EMULATION): Rename to ...
16697         (ARCH32_EMULATION): ... this.
16698         (X86_64_EMULATION): Rename to ...
16699         (ARCH64_EMULATION): ... this.
16700         (TARGET_LD_EMULATION): Remove.
16701         (LINK_ARCH_SPEC): Remove.
16702         * config/i386/sol2-gas.h: Remove.
16703         * config/i386/t-sol2-10: Rename to ...
16704         * config/i386/t-sol2-64: ... this.
16705         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
16706         (AS_SPARC64_FLAG): Define.
16707         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
16708         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
16709         depending on TARGET_CPU_DEFAULT.
16710         (CPP_CPU_SPEC): Redefine.
16711         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
16712         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
16713         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
16714         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
16715         ASM_ARCH_DEFAULT_SPEC): Redefine.
16716         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16717         LINK_ARCH_DEFAULT_SPEC.
16718         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
16719         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
16720         (ARCH64_SUBDIR): Define.
16721         (LINK_ARCH64_SPEC): Redefine.
16722         (CC1_SPEC): Redefine.
16723         (OPTION_DEFAULT_SPECS): Redefine.
16724         (MULTILIB_DEFAULTS): Define.
16725         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
16726         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
16727         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
16728         (NO_DBX_BNSYM_ENSYM): Remove.
16729         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
16730         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
16731         (TARGET_ASM_NAMED_SECTION): Likewise.
16732         (STACK_CHECK_STATIC_BUILTIN): Remove.
16733         * config/sparc/sol2-bi.h: Remove.
16734         * config/sparc/sol2-gas-bi.h: Remove.
16735         * config/sparc/sol2-gas.h: Remove.
16736         * config/sparc/sol2-gld-bi.h: Remove.
16737         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
16738         common parts ...
16739         (*-*-solaris2*): ... here.
16740
16741 2011-06-21  Christian Bruel  <christian.bruel@st.com>
16742
16743         PR other/43564
16744         * ipa-inline.c (can_inline_edge_p): Check
16745         !DECL_DISREGARD_INLINE_LIMITS.
16746
16747 2011-06-21  Christian Bruel  <christian.bruel@st.com>
16748
16749         PR middle-end/49139
16750         * cgraphunit.c (process_function_and_variable_attributes): warn when
16751         always_inline functions that are not inline.
16752         * ipa-inline-transform.c (inline_transform): Always call
16753         optimize_inline.
16754         * tree-inline.c (tree_inlinable_function_p): Use error instead
16755         of sorry.
16756         (expand_call_inline): Likewise.
16757
16758 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
16759
16760         * Makefile.in (dg_target_exps): Set.
16761         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
16762         instead of 7, try to divide it more evenly.
16763
16764 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
16765
16766         PR target/49089
16767         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
16768         (avx256_split_unaligned_store): New definition.
16769         (ix86_option_override_internal): Enable avx256 unaligned load/store
16770         splitting only when avx256_split_unaligned_load/store is set.
16771
16772 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
16773
16774         * regrename.c (scan_rtx_reg): Handle the case where we write to an
16775         open chain in a smaller mode without failing the entire block.
16776
16777 2011-06-21  Alan Modra  <amodra@gmail.com>
16778
16779         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
16780         CONST high part large-toc address.
16781         (rs6000_tls_referenced_p): Make static.
16782         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
16783
16784 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16785
16786         PR target/49385
16787         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
16788         one of the operands is a register.
16789
16790 2011-06-20  Kai Tietz  <ktietz@redhat.com>
16791
16792         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
16793         operations in combination with binary and.
16794
16795 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
16796
16797         * regrename.c (do_replace): Don't update notes.
16798
16799 2011-06-20  Alan Modra  <amodra@gmail.com>
16800
16801         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
16802         of toc-relative address in CONST.
16803         (rs6000_delegitimize_address): Recognize changed address.
16804         (rs6000_legitimize_reload_address): Likewise.
16805         (rs6000_emit_move): Don't force these constants to memory.
16806         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
16807         toc-relative address in CONST.
16808         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
16809         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
16810
16811 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
16812
16813         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
16814         (count_trailing_zeros): Likewise.
16815
16816 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
16817
16818         PR other/49325
16819         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
16820         .init_array can be used with .ctors on targets.
16821         * configure: Regenerated.
16822
16823 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
16824
16825         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
16826         if the element type is volatile.
16827
16828 2011-06-18  Jan Hubicka  <jh@suse.cz>
16829
16830         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
16831         extra name aliases.
16832         (lto_symtab_resolve_can_prevail_p): Likewise.
16833         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
16834         * cgraphbuild.c (record_reference): Remove extra body alias code.
16835         (mark_load): Likewise.
16836         (mark_store): Likewise.
16837         * cgraph.h (varpool_node): Remove extra_name filed;
16838         add alias_of and extraname_alias.
16839         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
16840         (varpool_alias_aliased_node): New inline function.
16841         (varpool_variable_node): New function.
16842         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
16843         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
16844         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
16845         (input_varpool_node): Likewise.
16846         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
16847         (varpool_externally_visible_p): Remove extra body alias code.
16848         (function_and_variable_visibility): Likewise.
16849         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
16850         (ipa_pta_execute): Use it.
16851         * varpool.c (varpool_remove_node): Remove extra name alias code.
16852         (varpool_mark_needed_node): Likewise.
16853         (varpool_analyze_pending_decls): Analyze aliases.
16854         (assemble_aliases): New functoin.
16855         (varpool_assemble_decl): Use it.
16856         (varpool_create_variable_alias): New function.
16857         (varpool_extra_name_alias): Rewrite.
16858         (varpool_for_node_and_aliases): New function.
16859
16860 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
16861
16862         PR target/49411
16863         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
16864         last_arg_constant and last argument doesn't match its predicate,
16865         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
16866         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
16867         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
16868         spelling of error message.
16869         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
16870         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
16871         const_0_to_255_operand instead of const_int_operand.
16872
16873         Revert:
16874         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16875
16876         * config/i386/sse.md (blendbits): Remove mode attribute.
16877         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16878         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16879         Check integer value of operand 3 in insn constraint.
16880
16881 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
16882
16883         PR rtl-optimization/48542
16884         * reload.c (find_equiv_reg): Stop looking when finding a
16885         setjmp-type call.
16886         * reload1.c (reload_as_needed): Invalidate all reload
16887         registers when crossing a setjmp-type call.
16888
16889 2011-06-16  Jeff Law  <law@redhat.com>
16890
16891         * tree-ssa-threadupdate.c (struct redirection_data): New field
16892         intermediate_edge.
16893         (THREAD_TARGET2): Define.
16894         (redirection_data_eq): Also check that the intermediate edge is equal.
16895         (lookup_redirection_data): Drop useless argument.  Extract the
16896         outgoing_edge and intermediate edge from E.  Callers updated.
16897         (copy_phi_args, update_destination_phis): New functions.
16898         (fix_duplicate_block_edges): Likewise.
16899         (create_edge_and_update_destination_phis): Duplicate all the edges
16900         hung off e->aux.  Use copy_phi_args.
16901         (create_duplicates): Use fix_duplicate_block_edges.
16902         (fixup_template_block): Likewise.
16903         (redirect_edges): If necessary, redirect the joiner block's incoming
16904         edge to the duplicate of the joiner block.
16905         (thread_block): Don't muck up loops when threading through a joiner
16906         block.
16907         (thread_through_loop_header): Handle threading through a joiner block.
16908         (mark_threaded_blocks, register_jump_thread): Likewise.
16909         * tree-flow.h (register_jump_thread): Add new argument.  Callers
16910         updated.
16911         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
16912         (thread_across_edge): Handle threading through a joiner block.
16913
16914 2011-06-16  Martin Jambor  <mjambor@suse.cz>
16915
16916         PR tree-optimization/49343
16917         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
16918         calculate offset, provide 2nd operand for the new COMPONENT_REF.
16919
16920 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
16921
16922         * config/darwin-protos.h (machopic_select_rtx_section): Move to
16923         inside RTX_CODE ifdef.
16924
16925 2011-06-16  Tom de Vries  <tom@codesourcery.com>
16926
16927         PR target/45098
16928         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
16929         Disallow NULL pointer for pointer arithmetic.
16930
16931 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16932
16933         PR target/49398
16934         Revert.
16935         2011-06-10  Wei Guozhi  <carrot@google.com>
16936
16937         PR target/45335
16938         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
16939         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
16940         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
16941         related peephole2.
16942         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
16943         related peephole2.
16944         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
16945         (arm_legitimate_ldrd_p): New prototype.
16946         (arm_output_ldrd): New prototype.
16947         * config/arm/arm.c (arm_check_ldrd_operands): New function.
16948         (arm_legitimate_ldrd_p): New function.
16949         (arm_output_ldrd): New function.
16950
16951 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
16952
16953         PR middle-end/46500
16954         * doc/tm.texi.in: Update Copyright date.
16955         * doc/tm.texi: Regenerate.
16956         * targhooks.c (default_setup_incoming_varargs): Replace
16957         CUMULATIVE_ARGS* argument type with cumulative_args_t.
16958         (default_pretend_outgoing_varargs_named): Likewise.
16959         (hook_pass_by_reference_must_pass_in_stack): Likewise.
16960         (hook_callee_copies_named): Likewise.
16961         (default_function_arg_advance): Likewise.
16962         (default_function_arg): Likewise.
16963         (default_function_incoming_arg): Likewise.
16964         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
16965         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
16966         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
16967         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16968         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
16969         * targhooks.h (default_setup_incoming_varargs): Likewise.
16970         (default_pretend_outgoing_varargs_named): Likewise.
16971         (hook_pass_by_reference_must_pass_in_stack): Likewise.
16972         (hook_callee_copies_named): Likewise.
16973         (default_function_arg_advance): Likewise.
16974         (default_function_arg): Likewise.
16975         (default_function_incoming_arg): Likewise.
16976         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
16977         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
16978         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
16979         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16980         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
16981         * target.def (pass_by_reference): Likewise.
16982         (setup_incoming_varargs, strict_argument_naming): Likewise.
16983         (pretend_outgoing_varargs_named, callee_copies): Likewise.
16984         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
16985         (function_incoming_arg): Likewise.
16986         * target.h: Don't include "tm.h" .
16987         (cumulative_args_t): New typedef.
16988         [GCC_TM_H] (get_cumulative_args): New static inline function.
16989         [GCC_TM_H] (pack_cumulative_args): Likewise.
16990         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
16991         argument type with cumulative_args_t.
16992         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
16993         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
16994         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
16995         (frv_arg_partial_bytes, frv_function_arg): Likewise.
16996         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
16997         (frv_function_arg_1): Likewise.
16998         * config/s390/s390.c (s390_pass_by_reference): Likewise.
16999         (s390_function_arg_advance, s390_function_arg): Likewise.
17000         * config/m32c/m32c.c (m32c_function_arg): Likewise.
17001         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
17002         (m32c_strict_argument_naming): Likewise.
17003         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
17004         (spu_function_arg_advance): Likewise.
17005         (spu_setup_incoming_varargs): Likewise.  Make static.
17006         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
17007         Remove prototype.
17008         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
17009         CUMULATIVE_ARGS* argument type with cumulative_args_t.
17010         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
17011         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
17012         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
17013         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
17014         (mep_pass_by_reference, mep_function_arg): Likewise.
17015         (mep_function_arg_advance): Likewise.
17016         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
17017         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
17018         (m32r_function_arg, m32r_function_arg_advance): Likewise.
17019         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
17020         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
17021         (ix86_function_arg, ix86_pass_by_reference): Likewise.
17022         (ix86_setup_incoming_varargs): Likewise.
17023         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
17024         (sh_strict_argument_naming): Likewise.
17025         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
17026         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
17027         (sh_function_arg_advance, sh_function_arg): Likewise.
17028         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
17029         (pdp11_function_arg_advance): Likewise.
17030         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
17031         Likewise.
17032         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
17033         * config/avr/avr.c (avr_function_arg): Likewise.
17034         (avr_function_arg_advance): Likewise.
17035         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
17036         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
17037         (xtensa_function_arg_1): Likewise.
17038         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
17039         Likewise.
17040         (xstormy16_function_arg): Likewise.
17041         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
17042         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
17043         (fr30_function_arg_advance): Likewise.
17044         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
17045         (lm32_function_arg, lm32_function_arg_advance): Likewise.
17046         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
17047         (moxie_function_arg, moxie_function_arg_advance): Likewise.
17048         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
17049         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
17050         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
17051         (cris_function_arg, cris_function_incoming_arg): Likewise.
17052         (cris_function_arg_advance, cris_function_arg_1): Likewise.
17053         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
17054         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
17055         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
17056         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
17057         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
17058         (mn10300_arg_partial_bytes): Likewise.
17059         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
17060         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
17061         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
17062         (ia64_function_arg_1): Likewise.
17063         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
17064         (m68k_function_arg): Likewise.
17065         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
17066         (rs6000_function_arg, setup_incoming_varargs): Likewise.
17067         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
17068         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
17069         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
17070         (picochip_arg_advance): Likewise.
17071         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
17072         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
17073         (mcore_function_arg_advance): Likewise.
17074         * config/score/score.c (score_pass_by_reference): Likewise.
17075         (score_function_arg_advance): Likewise.
17076         (score_arg_partial_bytes): Likewise.  Make static.
17077         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
17078         * config/arm/arm.c (arm_arg_partial_bytes): Replace
17079         CUMULATIVE_ARGS* argument type with cumulative_args_t.
17080         (arm_function_arg, arm_function_arg_advance): Likewise.
17081         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
17082         * config/pa/pa.c (pa_pass_by_reference): Likewise.
17083         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
17084         (pa_function_arg): Likewise.
17085         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
17086         (mips_function_arg, mips_function_arg_advance): Likewise.
17087         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
17088         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
17089         * config/vax/vax.c (vax_function_arg): Likewise.
17090         (vax_function_arg_advance): Likewise.
17091         * config/h8300/h8300.c (h8300_function_arg): Likewise.
17092         (h8300_function_arg_advance): Likewise.
17093         * config/v850/v850.c (v850_pass_by_reference): Likewise.
17094         (v850_strict_argument_naming, v850_function_arg): Likewise.
17095         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
17096         (v850_setup_incoming_varargs): Likewise.
17097         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
17098         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
17099         (mmix_function_arg, mmix_pass_by_reference): Likewise.
17100         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
17101         with const void *.
17102         * config/bfin/bfin.c (setup_incoming_varargs): Replace
17103         CUMULATIVE_ARGS* argument type with cumulative_args_t.
17104         (bfin_function_arg_advance, bfin_function_arg): Likewise.
17105         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
17106         * calls.c (emit_call_1): Change type of args_so_far to
17107         cumulative_args_t.  Changed all callers.
17108         (initialize_argument_information): Likewise.
17109         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
17110         * dse.c (get_call_args): Likewise.
17111         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
17112         * function.c (pass_by_reference, reference_callee_copied): Likewise.
17113         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
17114         New member args_so_far_v.  Changed all users.
17115         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
17116         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
17117         * config/mips/mips.c (mips_output_args_xfer): Likewise.
17118         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
17119         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17120         * config/microblaze/microblaze.c (microblaze_expand_prologue):
17121         Likewise.
17122         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
17123         m32r_pass_by_reference.
17124
17125 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
17126
17127         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
17128         argument to be a VEC of statements.
17129         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
17130         assert that pattern statements have to have their vector type set.
17131         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
17132         Change the first argument to be a VEC of statements.  Update
17133         documentation.
17134         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
17135         (vect_handle_widen_mult_by_const): New function.
17136         (vect_recog_widen_mult_pattern):  Change the first argument to be a
17137         VEC of statements.  Update documentation.  Check that the constant is
17138         INTEGER_CST.  Support multiplication by a constant that fits an
17139         intermediate type - call vect_handle_widen_mult_by_const.
17140         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
17141         call.  Handle additional pattern statements if necessary.
17142
17143 2011-06-16  Nick Clifton  <nickc@redhat.com>
17144
17145         PR target/49427
17146         * config.gcc: Set cpu_type to v850 for any V850 architecture.
17147         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
17148         md_file, extra_modes, out_file and extra_options are these are all
17149         deduced from cpu_type.
17150
17151 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
17152
17153         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
17154         truncation mask to 63.
17155
17156 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
17157
17158         PR target/49313
17159         PR target/29524
17160         * longlong.h: Add AVR support:
17161         (count_leading_zeros): New macro.
17162         (count_trailing_zeros): New macro.
17163         (COUNT_LEADING_ZEROS_0): New macro.
17164         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
17165         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
17166         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
17167         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
17168         (LIB2FUNCS_EXCLUDE): Add _clz.
17169         * config/avr/libgcc.S (XCALL): Move up in file.
17170         (XJMP): New C Macro.
17171         (DEFUN): New asm macro.
17172         (ENDF): New asm macro.
17173         (__ffssi2): New function.
17174         (__ffshi2): New function.
17175         (__loop_ffsqi2): New function.
17176         (__ctzsi2): New function.
17177         (__ctzhi2): New function.
17178         (__clzdi2): New function.
17179         (__clzsi2): New function.
17180         (__clzhi2): New function.
17181         (__paritydi2): New function.
17182         (__paritysi2): New function.
17183         (__parityhi2): New function.
17184         (__parityqi2): New function.
17185         (__popcounthi2): New function.
17186         (__popcountsi2): New function.
17187         (__popcountdi2): New function.
17188         (__popcountqi2): New function.
17189         (__bswapsi2): New function.
17190         (__bswapdi2): New function.
17191         (__ashldi3): New function.
17192         (__ashrdi3): New function.
17193         (__lshrdi3): New function.
17194         Fix suspicous lines.
17195
17196 2011-06-16  Richard Guenther  <rguenther@suse.de>
17197
17198         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
17199         the same as x != 0.
17200         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
17201         to (bool) X & 1.
17202         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
17203         equality compares against zero for the lower bit.
17204
17205 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
17206
17207         PR tree-optimization/49419
17208         * tree-vrp.c (execute_vrp): Call init_range_assertions
17209         before estimate_numbers_of_iterations, call
17210         free_number_of_iterations_estimates before calling
17211         remove_range_assertions.
17212
17213 2011-06-16  Revital Eres  <revital.eres@linaro.org>
17214
17215         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
17216         (struct partial_schedule): Add rows_length field.
17217         (verify_partial_schedule): Check rows_length.
17218         (ps_insert_empty_row): Handle rows_length.
17219         (create_partial_schedule): Likewise.
17220         (free_partial_schedule): Likewise.
17221         (reset_partial_schedule): Likewise.
17222         (create_ps_insn): Remove rest_count argument.
17223         (remove_node_from_ps): Update rows_length.
17224         (add_node_to_ps): Update rows_length and call create_ps_insn
17225         without passing row_rest_count.
17226         (rotate_partial_schedule): Update rows_length.
17227
17228 2011-06-16  Revital Eres  <revital.eres@linaro.org>
17229
17230         * ddg.c (add_intra_loop_mem_dep): New function.
17231         (build_intra_loop_deps): Call it.
17232
17233 2011-06-13  Jeff Law  <law@redhat.com>
17234
17235         * df-problems.c (df_lr_local_compute): Manually CSE
17236         PIC_OFFSET_TABLE_REGNUM.
17237         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
17238         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
17239
17240 2011-06-13  Jan Hubicka  <jh@suse.cz>
17241
17242         * cgraphunit.c (handle_alias_pairs): New function.
17243         (cgraph_finalize_compilation_unit): Use it.
17244         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
17245         as externally visible.
17246
17247 2011-06-15  Richard Guenther  <rguenther@suse.de>
17248
17249         * expr.c (expand_expr_real_2): Reduce all integral types to
17250         bitfield precision.
17251         (expand_expr_real_1): Likewise.
17252
17253 2011-06-15  Martin Jambor  <mjambor@suse.cz>
17254
17255         PR tree-optimization/48613
17256         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
17257         ipa_node_params_vector is NULL.
17258
17259 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
17260
17261         PR debug/49382
17262         * dwarf2out.c (dw_loc_list_node): Add force field.
17263         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
17264         location in the list, even if it is modified before first real insn.
17265         (output_loc_list): Emit empty ranges with force flag set.
17266         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
17267
17268 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
17269
17270         PR target/49349
17271         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
17272         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
17273         above a fence.  Update comments.
17274         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
17275         placed just above it.  Do not allow NULL place_to_insert.
17276
17277 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
17278
17279         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
17280         (slpeel_tree_peel_loop_to_edge): Don't call
17281         remove_dead_stmts_from_loop.
17282         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
17283         remove irrelevant pattern statements.  For irrelevant statements
17284         check if it is the last statement of a detected pattern, use
17285         corresponding pattern statement instead.
17286         (destroy_loop_vec_info): No need to remove pattern statements,
17287         only free stmt_vec_info.
17288         (vect_transform_loop): For irrelevant statements check if it is
17289         the last statement of a detected pattern, use corresponding
17290         pattern statement instead.
17291         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
17292         pattern statements.  Set basic block for the new statement.
17293         (vect_pattern_recog): Update documentation.
17294         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
17295         operands of pattern statements.
17296         (vectorizable_call): Fix printing.  In case of a pattern statement
17297         use the lhs of the original statement when creating a dummy
17298         statement to replace the original call.
17299         (vect_analyze_stmt): For irrelevant statements check if it is
17300         the last statement of a detected pattern, use corresponding
17301         pattern statement instead.
17302         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
17303         statements use gsi of the original statement.
17304
17305 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
17306
17307         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
17308         common/common-target-def.h.
17309         * target.def (default_target_flags, handle_option,
17310         supports_split_stack, optimization_table, init_struct,
17311         except_unwind_info, unwind_tables_default, have_named_sections):
17312         Move to common/common-target.def.
17313         * target.h (enum opt_levels, struct default_options): Move to
17314         common/common-target.h.
17315         * targhooks.c (default_except_unwind_info,
17316         dwarf2_except_unwind_info, sjlj_except_unwind_info,
17317         default_target_handle_option, empty_optimization_table): Move to
17318         common/common-targhooks.c.
17319         * targhooks.h (default_except_unwind_info,
17320         dwarf2_except_unwind_info, sjlj_except_unwind_info,
17321         default_target_handle_option, empty_optimization_table): Move to
17322         common/common-targhooks.h.
17323         * common/common-target-def.h: Include common/common-targhooks.h.
17324         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
17325         defined.
17326         * common/common-target.def (handle_option, option_init_struct,
17327         option_optimization_table, default_target_flags,
17328         except_unwind_info, supports_split_stack, unwind_tables_default,
17329         have_named_sections): Move from target.def.
17330         (HOOK_PREFIX): Undefine at end of file.
17331         * common/common-target.h: Include input.h.
17332         (enum opt_levels, struct default_options): Move from target.h.
17333         * common/common-targhooks.c, common/common-targhooks.h: New.
17334         * config.gcc (target_has_targetm_common): Default to yes.
17335         (moxie*): Set target_has_targetm_common=no.
17336         (hppa*-*-*): Don't set target_has_targetm_common=yes.
17337         * doc/tm.texi: Regenerate.
17338         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
17339         (C_TARGET_DEF_H): Add common/common-targhooks.h.
17340         (GCC_OBJS): Remove vec.o.
17341         (OBJS): Remove hooks.o and vec.o.
17342         (OBJS-libcommon-target): Add vec.o, hooks.o and
17343         common/common-targhooks.o.
17344         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
17345         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
17346         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
17347         cfglayout.o, $(out_object_file), $(common_out_object_file)):
17348         Update dependencies.
17349         (common/common-targhooks.o): New.
17350         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
17351         * common/config/pa/pa-common.c: Include more headers.  Take
17352         copyright dates from pa.c.
17353         (pa_option_optimization_table, pa_handle_option,
17354         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
17355         TARGET_HANDLE_OPTION): Move from pa.c.
17356         * common/config/alpha/alpha-common.c,
17357         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
17358         common/config/bfin/bfin-common.c,
17359         common/config/cris/cris-common.c,
17360         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
17361         common/config/h8300/h8300-common.c,
17362         common/config/i386/i386-common.c,
17363         common/config/ia64/ia64-common.c,
17364         common/config/iq2000/iq2000-common.c,
17365         common/config/lm32/lm32-common.c,
17366         common/config/m32c/m32c-common.c,
17367         common/config/m32r/m32r-common.c,
17368         common/config/m68k/m68k-common.c,
17369         common/config/mcore/mcore-common.c,
17370         common/config/mep/mep-common.c,
17371         common/config/microblaze/microblaze-common.c,
17372         common/config/mips/mips-common.c,
17373         common/config/mmix/mmix-common.c,
17374         common/config/mn10300/mn10300-common.c,
17375         common/config/pdp11/pdp11-common.c,
17376         common/config/picochip/picochip-common.c,
17377         common/config/rs6000/rs6000-common.c,
17378         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
17379         common/config/score/score-common.c, common/config/sh/sh-common.c,
17380         common/config/sparc/sparc-common.c,
17381         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
17382         common/config/vax/vax-common.c,
17383         common/config/xstormy16/xstormy16-common.c,
17384         common/config/xtensa/xtensa-common.c: New.
17385         * config/alpha/alpha.c: Include common/common-target.h.
17386         (alpha_option_optimization_table, alpha_handle_option,
17387         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17388         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
17389         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
17390         * config/arm/arm.c (arm_option_optimization_table,
17391         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
17392         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
17393         arm-common.c.
17394         * config/avr/avr.c (avr_option_optimization_table,
17395         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
17396         to avr-common.c.
17397         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
17398         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
17399         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
17400         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
17401         * config/cris/cris.c (cris_option_optimization_table,
17402         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17403         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
17404         cris-common.c.
17405         * config/fr30/fr30.c (fr30_option_optimization_table,
17406         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
17407         to fr30-common.c.
17408         * config/frv/frv.c (frv_option_optimization_table,
17409         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
17410         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
17411         * config/h8300/h8300.c (h8300_option_optimization_table,
17412         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
17413         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
17414         * config/i386/i386-protos.h (ix86_handle_option): Declare.
17415         * config/i386/i386.c: Include common/common-target.h.
17416         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
17417         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
17418         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
17419         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
17420         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
17421         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
17422         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
17423         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
17424         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
17425         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
17426         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
17427         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
17428         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
17429         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
17430         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
17431         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
17432         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
17433         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
17434         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
17435         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
17436         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
17437         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
17438         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
17439         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
17440         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
17441         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
17442         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
17443         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
17444         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
17445         ix86_option_optimization_table, ix86_option_init_struct,
17446         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
17447         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
17448         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
17449         i386-common.c.
17450         * config/i386/t-i386 (i386.o): Update dependencies.
17451         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
17452         * config/ia64/ia64.c (ia64_option_optimization_table,
17453         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
17454         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17455         ia64_handle_option): Move to ia64-common.c.
17456         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
17457         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
17458         * config/lm32/lm32.c (lm32_option_optimization_table,
17459         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
17460         to lm32-common.c.
17461         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
17462         m32c-common.c.
17463         * config/m32r/m32r.c (m32r_option_optimization_table,
17464         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17465         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
17466         m32r_handle_option): Move to m32r-common.c.
17467         (m32r_memory_move_cost): Remove comment referring to
17468         TARGET_HANDLE_OPTION.
17469         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
17470         Move to m68k-common.c.
17471         * config/mcore/mcore.c (mcore_option_optimization_table,
17472         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
17473         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
17474         * config/mep/mep.c (mep_option_optimization_table,
17475         mep_handle_option, TARGET_HANDLE_OPTION,
17476         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
17477         Move to mep-common.c.
17478         * config/microblaze/microblaze.c
17479         (microblaze_option_optimization_table,
17480         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
17481         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
17482         * config/mips/mips.c (mips_handle_option,
17483         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
17484         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
17485         mips-common.c.
17486         * config/mmix/mmix.c (mmix_option_optimization_table,
17487         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
17488         Move to mmix-common.c.
17489         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
17490         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
17491         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17492         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
17493         * config/pa/pa.c: Include common/common-target.h.
17494         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
17495         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17496         pa_handle_option): Move to pa-common.c.
17497         (pa_option_override): Use targetm_common.except_unwind_info.
17498         (pa_asm_output_mi_thunk, pa_function_section): Use
17499         targetm_common.have_named_sections.
17500         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
17501         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17502         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
17503         pdp11_handle_option, pdp11_option_init_struct): Move to
17504         pdp11-common.c.
17505         * config/picochip/picochip.c (picochip_option_optimization_table,
17506         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
17507         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
17508         * config/rs6000/rs6000.c: Include common/common-target.h.
17509         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
17510         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
17511         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
17512         rs6000_handle_option): Move to rs6000-common.c.
17513         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
17514         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
17515         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
17516         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
17517         * config/s390/s390.c (processor_flags_table,
17518         s390_option_optimization_table, s390_option_init_struct,
17519         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
17520         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
17521         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
17522         * config/s390/s390.h (processor_flags_table): Declare.
17523         * config/score/score.c (score_option_optimization_table,
17524         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17525         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
17526         score_handle_option): Move to score-common.c.
17527         * config/sh/sh.c (sh_option_optimization_table,
17528         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
17529         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17530         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
17531         * config/sparc/sparc.c: Include common/common-target.h.
17532         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
17533         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
17534         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
17535         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
17536         spu_option_init_struct): Move to spu-common.c.
17537         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
17538         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
17539         * config/v850/v850.c (small_memory_physical_max,
17540         v850_handle_memory_optionn v850_handle_option,
17541         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
17542         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
17543         v850-common.c.
17544         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
17545         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
17546         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
17547         Move to xtensa-common.c.
17548         * cfglayout.c: Include common/common-target.h.
17549         (fixup_reorder_chain): Use targetm_common.have_named_sections.
17550         * cfgrtl.c: Include common/common-target.h.
17551         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
17552         targetm_common.have_named_sections.
17553         * dbxout.c: Include common/common-target.h.
17554         (dbxout_function_end): Use targetm_common.have_named_sections.
17555         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
17556         targetm_common.except_unwind_info.
17557         * dwarf2out.c: Include common/common-target.h.
17558         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
17559         dwarf2out_begin_prologue, dwarf2out_frame_init,
17560         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
17561         targetm_common.except_unwind_info.
17562         * except.c: Include common/common-target.h.
17563         (init_eh, finish_eh_generation,
17564         output_one_function_exception_table): Use
17565         targetm_common.except_unwind_info.
17566         (switch_to_exception_section): Use targetm_common.have_named_sections.
17567         * explow.c: Include common/common-target.h.
17568         * expr.c: Include common/common-target.h.
17569         (build_personality_function): Use targetm_common.except_unwind_info.
17570         * function.c: Include common/common-target.h.
17571         (expand_function_end): Use targetm_common.except_unwind_info.
17572         * haifa-sched.c: Include common/common-target.h.
17573         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
17574         * lto-opts.c: Include common/common-target.h instead of target.h.
17575         (lto_reissue_options): Use targetm_common.handle_option.
17576         * opts.c: Include common/common-target.h.
17577         (target_handle_option): Use targetm_common.handle_option.
17578         (init_options_struct): Update comment referring to
17579         targetm.target_option.optimization.  Use
17580         targetm_common.default_target_flags,
17581         targetm_common.unwind_tables_default and
17582         targetm_common.option_init_struct.
17583         (default_options_optimization): Use
17584         targetm_common.option_optimization_table.
17585         (finish_options): Use targetm_common.except_unwind_info,
17586         targetm_common.unwind_tables_default,
17587         targetm_common.have_named_sections and
17588         targetm_common.supports_split_stack.
17589         * toplev.c: Include common/common-target.h.
17590         (process_options): Use targetm_common.have_named_sections.
17591         * tree-tailcall.c: Include common/common-target.h.
17592         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
17593         * tree.c: Include common/common-target.h.
17594         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
17595         * varasm.c: Include common/common-target.h.
17596         (resolve_unique_section, hot_function_section,
17597         default_function_section): Use targetm_common.have_named_sections.
17598
17599 2011-06-14  Easwaran Raman  <eraman@google.com>
17600
17601         PR rtl-optimization/44194
17602         * dse.c: Include tree-flow.h
17603         (insn_info): Add new field non_frame_wild_read.
17604         (group_info): Add new fields escaped_n and escaped_p.
17605         (kill_on_calls): New variable.
17606         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
17607         (dse_step0): Initialize kill_on_calls.
17608         (can_escape): New function.
17609         (set_usage_bits): Add additional parameter; record information
17610         about escaped locations.
17611         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
17612         (dse_step2_nospill): Set kill_on_calls based on
17613         group->escaped_n and group->escaped_n.
17614         (add_wild_read): Refactor into...
17615         (reset_active_stores): ... New function, and
17616         (free_read_records): ... New function.
17617         (add_non_frame_wild_read): New function.
17618         (scan_insn): Call add_non_frame_wild_read on non-const calls.
17619         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
17620         (dse_step5_nospill): Call scan_reads_nospill for instructions
17621         marked as non_frame_wild_read.
17622         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
17623
17624 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
17625
17626         * common/common-target-def.h, common/common-target.def,
17627         common/common-target.h, common/config/default-common.c,
17628         common/config/pa/pa-common.c: New files.
17629         * Makefile.in (common_out_file, common_out_object_file,
17630         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
17631         (OBJS-libcommon-target): Include $(common_out_object_file).
17632         (prefix.o): Update dependencies.
17633         ($(common_out_object_file), common/common-target-hooks-def.h,
17634         s-common-target-hooks-def-h): New.
17635         (s-tm-texi): Also check timestamp on common-target.def.
17636         (build/genhooks.o): Update dependencies.
17637         * config.gcc (common_out_file, target_has_targetm_common): Define.
17638         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
17639         TARGET_ALWAYS_STRIP_DOTDOT.
17640         * configure.ac (common_out_object_file): Define.
17641         (common_out_file, common_out_object_file): Substitute.
17642         (common): Create directory.
17643         * configure: Regenerate.
17644         * doc/tm.texi.in (targetm_common): Document.
17645         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
17646         * doc/tm.texi: Regenerate.
17647         * genhooks.c (hook_array): Also include common/common-target.def.
17648         * prefix.c (tm.h): Don't include.
17649         (common/common-target.h): Include.
17650         (ALWAYS_STRIP_DOTDOT): Don't define.
17651         (update_path): Use targetm_common.always_strip_dotdot instead of
17652         ALWAYS_STRIP_DOTDOT.
17653         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
17654
17655 2011-06-14  David Li  <davidxl@google.com>
17656
17657         * passes.c (execute_function_todo): Remove TODO_dump_func.
17658         (execute_one_pass): Remove TODO_dump_func.
17659         (execute_function_dump): New function.
17660         * tree-vrp.c: Remove TODO_dump_func.
17661         * regrename.c: Remove TODO_dump_func.
17662         * fwprop.c: Remove TODO_dump_func.
17663         * tree-into-ssa.c: Remove TODO_dump_func.
17664         * tree-complex.c: Remove TODO_dump_func.
17665         * tracer.c: Remove TODO_dump_func.
17666         * tree-loop-distribution.c: Remove TODO_dump_func.
17667         * postreload-gcse.c: Remove TODO_dump_func.
17668         * postreload.c: Remove TODO_dump_func.
17669         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
17670         * tree-tailcall.c: Remove TODO_dump_func.
17671         * ipa-cp.c: Remove TODO_dump_func.
17672         * final.c: Remove TODO_dump_func.
17673         * tree-emutls.c: Remove TODO_dump_func.
17674         * omp-low.c: Remove TODO_dump_func.
17675         * tree-ssa-dse.c: Remove TODO_dump_func.
17676         * tree-ssa-uncprop.c: Remove TODO_dump_func.
17677         * auto-inc-dec.c: Remove TODO_dump_func.
17678         * reorg.c: Remove TODO_dump_func.
17679         * tree-ssa-copyrename.c: Remove TODO_dump_func.
17680         * tree-ssa-ccp.c: Remove TODO_dump_func.
17681         * compare-elim.c: Remove TODO_dump_func.
17682         * mode-switching.c: Remove TODO_dump_func.
17683         * modulo-sched.c: Remove TODO_dump_func.
17684         * tree-call-cdce.c: Remove TODO_dump_func.
17685         * cse.c: Remove TODO_dump_func.
17686         * web.c: Remove TODO_dump_func.
17687         * tree-stdarg.c: Remove TODO_dump_func.
17688         * lto-streamer-out.c: Remove TODO_dump_func.
17689         * tree-ssa-math-opts.c: Remove TODO_dump_func.
17690         * tree-ssa-dom.c: Remove TODO_dump_func.
17691         * tree-nrv.c: Remove TODO_dump_func.
17692         * loop-init.c: Remove TODO_dump_func.
17693         * gimple-low.c: Remove TODO_dump_func.
17694         * ipa-inline.c: Remove TODO_dump_func.
17695         * tree-ssa-sink.c: Remove TODO_dump_func.
17696         * jump.c: Remove TODO_dump_func.
17697         * ifcvt.c: Remove TODO_dump_func.
17698         * tree-ssa-loop.c: Remove TODO_dump_func.
17699         * recog.c: Remove TODO_dump_func.
17700         * dse.c: Remove TODO_dump_func.
17701         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
17702         * matrix-reorg.c: Remove TODO_dump_func.
17703         * tree-eh.c: Remove TODO_dump_func.
17704         * regmove.c: Remove TODO_dump_func.
17705         * function.c: Remove TODO_dump_func.
17706         * tree-vectorizer.c: Remove TODO_dump_func.
17707         * ipa-split.c: Remove TODO_dump_func.
17708         * gcse.c: Remove TODO_dump_func.
17709         * tree-if-conv.c: Remove TODO_dump_func.
17710         * init-regs.c: Remove TODO_dump_func.
17711         * tree-ssa-phiopt.c: Remove TODO_dump_func.
17712         * implicit-zee.c: Remove TODO_dump_func.
17713         * lower-subreg.c: Remove TODO_dump_func.
17714         * bt-load.c: Remove TODO_dump_func.
17715         * tree-dfa.c: Remove TODO_dump_func.
17716         * except.c: Remove TODO_dump_func.
17717         * emit-rtl.c: Remove TODO_dump_func.
17718         * store-motion.c: Remove TODO_dump_func.
17719         * cfgexpand.c: Remove TODO_dump_func.
17720         * tree-cfgcleanup.c: Remove TODO_dump_func.
17721         * cfgcleanup.c: Remove TODO_dump_func.
17722         * tree-ssa-pre.c: Remove TODO_dump_func.
17723         * tree-sra.c: Remove TODO_dump_func.
17724         * tree-mudflap.c: Remove TODO_dump_func.
17725         * tree-ssa-copy.c: Remove TODO_dump_func.
17726         * cfglayout.c: Remove TODO_dump_func.
17727         * tree-ssa-forwprop.c: Remove TODO_dump_func.
17728         * tree-ssa-dce.c: Remove TODO_dump_func.
17729         * ira.c: Remove TODO_dump_func.
17730         * tree-ssa.c: Remove TODO_dump_func.
17731         * integrate.c: Remove TODO_dump_func.
17732         * tree-optimize.c: Remove TODO_dump_func.
17733         * tree-ssa-phiprop.c: Remove TODO_dump_func.
17734         * tree-object-size.c: Remove TODO_dump_func.
17735         * combine.c: Remove TODO_dump_func.
17736         * bb-reorder.c: Remove TODO_dump_func.
17737         * cprop.c: Remove TODO_dump_func.
17738         * var-tracking.c: Remove TODO_dump_func.
17739         * tree-profile.c: Remove TODO_dump_func.
17740         * tree-vect-generic.c: Remove TODO_dump_func.
17741         * reg-stack.c: Remove TODO_dump_func.
17742         * sched-rgn.c: Remove TODO_dump_func.
17743         * tree-ssa-structalias.c: Remove TODO_dump_func.
17744         * tree-switch-conversion.c: Remove TODO_dump_func.
17745         * tree-cfg.c: Remove TODO_dump_func.
17746         * tree-ssa-reassoc.c: Remove TODO_dump_func.
17747         * combine-stack-adj.c: Remove TODO_dump_func.
17748         * dce.c: Remove TODO_dump_func.
17749         * tree-ssanames.c: Remove TODO_dump_func.
17750         * regcprop.c: Remove TODO_dump_func.
17751
17752 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
17753
17754         PR middle-end/47364
17755         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
17756         and properly handle result not in Pmode.
17757
17758 2011-06-14  Robert Millan  <rmh@gnu.org>
17759
17760         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
17761         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
17762         `config/linux.h'.
17763
17764         * config/i386/kfreebsd-gnu64.h: New file.
17765         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
17766         with `i386/kfreebsd-gnu64.h'.
17767
17768         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
17769         (GNU_USER_LINK_EMULATION64): New macros.
17770         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
17771         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
17772         of hardcoding `elf_i386' and `elf_x86_64'.
17773
17774 2011-06-14  Nick Clifton  <nickc@redhat.com>
17775
17776         PR target/49403
17777         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
17778
17779         PR target/49402
17780         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
17781
17782 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
17783
17784         PR fortran/49103
17785         * tree.h (DECL_NONSHAREABLE): Define.
17786         (struct tree_decl_common): Change decl_common_unused to
17787         decl_nonshareable_flag.
17788         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
17789         Ignore vars with DECL_NONSHAREABLE bit set.
17790         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
17791         on stores to automatic aggregate vars.
17792
17793         PR rtl-optimization/49390
17794         Revert:
17795         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
17796
17797         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
17798         MEM_ALIAS_SET.
17799
17800 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
17801             Tom de Vries  <tom@codesourcery.com>
17802
17803         PR target/45098
17804         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
17805         Document changed semantics.
17806         (max_stmt_executions, max_stmt_executions_int): Declare.
17807         * tree-data-ref.c (estimated_loop_iterations)
17808         (estimated_loop_iterations_int): Move functions...
17809         * tree-ssa-loop-niter.c (estimated_loop_iterations)
17810         (estimated_loop_iterations_int): here.
17811         (record_estimate): Change nb_iterations_upper_bound and
17812         nb_iterations_estimate semantics.
17813         (max_stmt_executions, max_stmt_executions_int): New function.
17814         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
17815         (max_stmt_executions_tree): this.
17816         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
17817         estimated_loop_iterations_tree.
17818         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
17819         max_stmt_executions_int instead of estimated_loop_iterations_int.
17820         * predict.c (predict_loops): Idem.
17821         * tree-parloops.c (parallelize_loops): Idem.
17822         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
17823         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
17824         (init_omega_for_ddr_1): Idem.
17825         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
17826         (loop_prefetch_arrays): Idem
17827         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
17828         max_stmt_executions instead of estimated_loop_iterations.
17829         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
17830         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
17831         instead of nb_iterations_upper_bound.
17832
17833 2011-06-13  Jan Hubicka  <jh@suse.cz>
17834
17835         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
17836
17837 2011-06-14  Richard Henderson  <rth@redhat.com>
17838
17839         PR debug/48459
17840         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
17841         (based_loc_descr): Assert it's true.
17842         (compute_frame_pointer_to_fb_displacement): Set it, rather than
17843         aborting immediately.
17844
17845 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
17846             Mingfeng Wu  <mingfeng@faraday-tech.com>
17847
17848         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
17849
17850 2011-06-13  Jan Hubicka  <jh@suse.cz>
17851
17852         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
17853
17854 2011-06-13  Jan Hubicka  <jh@suse.cz>
17855
17856         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
17857         similarly to DECL_COMDAT.
17858         * cgraphunit.c (cgraph_analyze_function): Likewise.
17859         * ipa.c (function_and_variable_visibility): Likewise.
17860
17861 2011-06-13  Jan Hubicka  <jh@suse.cz>
17862
17863         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
17864         BINFO_VIRTUALS when streaming for ltrans unit.
17865
17866 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
17867
17868         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
17869         (movdi_internal64): Same.
17870
17871 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
17872
17873         PR target/44618
17874         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
17875         a set of similar patterns, where the MATCH_OPERAND for the function
17876         argument is replaced with individual references to hardware registers.
17877         (save_fpregs_<mode>): Ditto
17878         (restore_gpregs_<mode>): Ditto
17879         (return_and_restore_gpregs_<mode>): Ditto
17880         (return_and_restore_fpregs_<mode>): Ditto
17881         (return_and_restore_fpregs_aix_<mode>): Ditto
17882
17883 2011-06-13  Jan Hubicka  <jh@suse.cz>
17884
17885         * ipa-utils.c (postorder_stack): New structure.
17886         (ipa_reverse_postorder): Handle aliases.
17887
17888 2011-06-13  Jan Hubicka  <jh@suse.cz>
17889
17890         * ipa-inline.c (reset_edge_caches): Walk aliases.
17891         (update_caller_keys): Do not test inlinability of aliases.
17892         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
17893         (do_estimate_growth): Fix typo.
17894
17895 2011-06-13  Jan Hubicka  <jh@suse.cz>
17896
17897         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
17898         (can_remove_node_now_p): ... here; handle same comdat groups.
17899         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
17900         (inline_call): Update use of can_remove_node_now_p.
17901
17902 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
17903
17904         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
17905         condition to disallow non-identical memory locations.
17906         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
17907         preference to bit manipulation instructions.
17908
17909 2011-06-13  Jan Hubicka  <jh@suse.cz>
17910
17911         * cgraph.c (cgraph_for_node_thunks_and_aliases,
17912         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
17913         (nonremovable_p): New function.
17914         (cgraph_can_remove_if_no_direct_calls_p): New function.
17915         (used_from_object_file_p): New functoin.
17916         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
17917         references from aliases.
17918         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
17919         * ipa-inline.c (check_caller_edge): New function.
17920         (want_inline_function_called_once_p): Use it; accept aliases called
17921         once, too.
17922         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
17923
17924 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17925
17926         PR target/48454
17927         * config/arm/neon.md (vec_pack_trunc): Set the lengths
17928         correctly for the case with Quad vectors.
17929
17930 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
17931            Ira Rosen  <ira.rosen@linaro.org>
17932
17933         PR tree-optimization/49352
17934         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
17935         all, make sure loop_use_stmt after the loop is a def stmt of a used
17936         SSA_NAME that is the only one defined inside of the loop.  Don't
17937         check for COND_EXPR and GIMPLE_BINARY_RHS.
17938         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
17939         check_reduction is true.
17940
17941 2011-06-11  Jan Hubicka  <jh@suse.cz>
17942
17943         PR middle-end/49373
17944         * ipa.c (cgraph_externally_visible_p): Check resolution info.
17945
17946 2011-06-11  Jan Hubicka  <jh@suse.cz>
17947
17948         PR middle-end/48836
17949         * ipa-inline-transform.c: Include tree-pass.h
17950         (inline_transform): Set TODO_update_ssa_only_virtuals.
17951         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
17952
17953 2011-06-11  Jan Hubicka  <jh@suse.cz>
17954
17955         PR middle-end/49378
17956         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
17957         aliases and thunks.
17958
17959 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
17960
17961         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
17962         Take number of iterations to peel into account for equally frequent
17963         misalignment values.
17964
17965 2011-06-11  Jan Hubicka  <jh@suse.cz>
17966
17967         * lto-streamer-out.c (produce_symtab): Stream out the newly
17968         represented aliases.
17969
17970 2011-06-11  Jan Hubicka  <jh@suse.cz>
17971
17972         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
17973         varying args.
17974         (ipa_update_after_lto_read): Likewise.
17975         (ipa_write_node_info): Do not sream call_with_var_arguments.
17976         (ipa_read_node_info): Likewise.
17977
17978 2011-06-11  Jan Hubicka  <jh@suse.cz>
17979
17980         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
17981
17982 2011-06-11  Jan Hubicka  <jh@suse.cz>
17983
17984         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
17985         (lto_symtab_resolve_can_prevail_p): Likewise.
17986         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
17987         * cgraph.c (same_body_aliases_done): New global var.
17988         (cgraph_same_body_alias_1): Rename to ...
17989         (cgraph_create_function_alias): ... this one; reorg to new
17990         representation.
17991         (cgraph_same_body_alias): Use cgraph_create_function_alias;
17992         record references when asked to.
17993         (cgraph_add_thunk): Fix formating.
17994         (cgraph_get_node): Kill same body alias code.
17995         (cgraph_node_for_asm): Likewise.
17996         (cgraph_remove_same_body_alias): Remove.
17997         (cgraph_remove_node): Kill same body alias code.
17998         (cgraph_mark_address_taken_node): Mark also the aliased function
17999         as having address taken.
18000         (dump_cgraph_node): Dump same body aliases.
18001         (cgraph_for_node_thunks_and_aliases): Update for new alias
18002         representation.
18003         (cgraph_for_node_and_aliases): Likewise.
18004         * cgraph.h (same_body): Kll pointer.
18005         (same_body_alias): Update comment.
18006         (same_body_aliases_done): Declare.
18007         (cgraph_remove_same_body_alias): Remove declaration.
18008         (cgraph_create_function_alias): Declare.
18009         (cgraph_process_same_body_aliases): Declare.
18010         (cgraph_function_with_gimple_body_p): Check for alias.
18011         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
18012         (cgraph_alias_aliased_node): New function.
18013         (cgraph_function_node): Update for new aliases.
18014         (cgraph_function_or_thunk_node): Likewise.
18015         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
18016         (inline_call): Remove dead aliases.
18017         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
18018         name hack for same body aliases.
18019         (clone_of_p): Look through aliases.
18020         (verify_cgraph_node): Verify aliases.
18021         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
18022         (cgraph_process_same_body_aliases): New function.
18023         (process_function_and_variable_attributes): Disable weakref warning on
18024         alias.
18025         (cgraph_analyze_functions): Handle aliases.
18026         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
18027         (assemble_thunks): Rename to ...
18028         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
18029         (cgraph_expand_function): Remove alias output code.
18030         (cgraph_output_in_order): Skip aliases.
18031         (cgraph_preserve_function_body_p): Aliases don't need preserving.
18032         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
18033         (ipa_record_reference): Do not assert on alias references.
18034         (ipa_ref_has_aliases_p): New function.
18035         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
18036         (ipa_ref_has_aliases_p): Declare.
18037         * lto-cgraph.c (lto_output_node): Handle aliases.
18038         (input_node): Likewise.
18039         * lto-streamer-out.c (lto_output): Skip aliases.
18040         (produce_symtab): Kill same_body_alias code.
18041         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
18042         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
18043         * ipa-inline.c (update_caller_keys): Walk aliases.
18044         (inline_small_functions): Fix thinko in previous patch.
18045         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
18046         (function_and_variable_visibility): Do not walk same body aliases.
18047         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
18048         (ipa_pta_execute): Use it.
18049
18050 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
18051
18052         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
18053         (*vec_dupv2df): Rename from vec_dupv2df.
18054         (vec_dupv2df): New expander.
18055
18056 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
18057
18058         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
18059
18060 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
18061
18062         * config/i386/i386.md: Use default value in "isa" attribute.
18063         * config/i386/sse.md: Ditto.
18064         * config/i386/mmx.md: Ditto.
18065
18066 2011-06-10  Wei Guozhi  <carrot@google.com>
18067
18068         PR target/45335
18069         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
18070         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
18071         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
18072         related peephole2.
18073         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
18074         related peephole2.
18075         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
18076         (arm_legitimate_ldrd_p): New prototype.
18077         (arm_output_ldrd): New prototype.
18078         * config/arm/arm.c (arm_check_ldrd_operands): New function.
18079         (arm_legitimate_ldrd_p): New function.
18080         (arm_output_ldrd): New function.
18081
18082 2011-06-10  David Li  <davidxl@google.com>
18083
18084         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
18085         * passes.c (passr_eq): New function.
18086         (create_pass_tab): New function.
18087         (pass_traverse): New function.
18088         (dump_one_pass): New function.
18089         (dump_pass_list): New function.
18090         (dump_passes): New function.
18091
18092 2011-06-10  Jan Hubicka  <jh@suse.cz>
18093
18094         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
18095         setting the nothrow flag.
18096         * ipa-reference.c (propagate): Skip aliases.
18097         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
18098         (propagate_nothrow): Skip aliases; do not update cgraph.
18099         (local_pure_const): Do not update cgraph.
18100         * tree-profile.c (tree_profiling): Do fixup_cfg.
18101
18102 2011-06-10  Jan Hubicka  <jh@suse.cz>
18103
18104         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
18105         (cgraph_local_node_p): ... here; handle aliases.
18106         (has_addr_references_p): Break out from ...;
18107         (cgraph_remove_unreachable_nodes) ... here.
18108
18109 2011-06-10  Jan Hubicka  <jh@suse.cz>
18110
18111         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
18112         * common.opt (flag_inline_functions_called_once): Do not
18113         initialize to 1.
18114
18115 2011-06-10  Jan Hubicka  <jh@suse.cz>
18116
18117         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
18118         (ipcp_initialize_node_lattices): Do not deal with aliases;
18119         Do not try to propagate through thunks.
18120         (ipcp_change_tops_to_bottom): Do not deal with aliases.
18121
18122 2011-06-10  Jan Hubicka  <jh@suse.cz>
18123
18124         * ipa-prop.c (ipa_write_node_info): Stream jump functions
18125         for indirect calls.
18126         (ipa_read_node_info): Likewise.
18127
18128 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18129
18130         PR lto/49302
18131         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
18132         (build_and_insert_call): Likewise.
18133         (build_and_insert_ref): New.
18134         (gimple_expand_builtin_pow): Minor cleanup.
18135         (gimple_expand_builtin_cabs): New.
18136         (execute_cse_sincos): Add case for BUILT_IN_CABS.
18137
18138 2011-06-10  Jan Hubicka  <jh@suse.cz>
18139
18140         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
18141         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
18142         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
18143         (ipcp_propagate_stage): Skip aliases when propagating.
18144         (ipcp_need_redirect_p): Skip aliases.
18145         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
18146         collect_callers_of_node.
18147         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
18148         for aliases.
18149         (ipa_compute_jump_functions): Look through aliases.
18150
18151 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18152
18153         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
18154
18155 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
18156
18157         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
18158         Adjust comments.
18159         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
18160
18161 2011-06-10  Jan Hubicka  <jh@suse.cz>
18162
18163         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
18164         Update call of gimple_get_virt_method_for_binfo.
18165         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
18166         refuse_thunks parameter.
18167         (gimple_fold_call): Update.
18168         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
18169
18170 2011-06-10  Jan Hubicka  <jh@suse.cz>
18171
18172         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
18173         (not_all_callers_have_enough_arguments_p): ... this one; turn into
18174         worker for cgraph_for_node_and_aliases.
18175         (convert_callers_for_node): Break out from ...
18176         (convert_callers): ... here.
18177         (modify_function): Use collect_callers_of_node.
18178         (ipa_early_sra): Use cgraph_for_node_and_aliases.
18179
18180 2011-06-10  Richard Guenther  <rguenther@suse.de>
18181
18182         PR tree-optimization/49361
18183         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
18184         when not already in gimple form.
18185
18186 2011-06-10  Richard Guenther  <rguenther@suse.de>
18187
18188         PR bootstrap/49344
18189         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
18190         FOR_EACH_PHI_OR_STMT_USE.
18191
18192 2011-06-10  Jan Hubicka  <jh@suse.cz>
18193
18194         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
18195         (clone_inlined_nodes): ... here.
18196         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
18197         to real destination prior inlining.
18198         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
18199         can_early_inline_edge_p, want_early_inline_function_p,
18200         want_early_inline_function_p, want_inline_small_function_p,
18201         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
18202         edge_badness, update_all_callee_keys, lookup_recursive_calls,
18203         add_new_edges_to_heap, inline_small_functions, flatten_function,
18204         inline_always_inline_functions, early_inline_small_functions): Use
18205         cgraph_function_or_thunk_node.
18206         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
18207         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
18208         (do_estimate_edge_growth_1): Break out from ...
18209         (do_estimate_growth) ... here; walk aliases.
18210         (inline_generate_summary): Skip aliases.
18211
18212 2011-06-10  Richard Guenther  <rguenther@suse.de>
18213
18214         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
18215         forward when combining, visit inserted stmts when a stmt was changed.
18216
18217 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
18218
18219         * tree.h (error_operand_p): Add.
18220         * dbxout.c (dbxout_type_fields): Use the latter.
18221         * c-decl.c (add_stmt): Likewise.
18222         * gimplify.c (omp_add_variable, omp_notice_variable,
18223         gimplify_scan_omp_clauses): Likewise.
18224
18225 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
18226
18227         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
18228         when a value is actually passed in regs.
18229
18230 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
18231             Laurent Rougé  <laurent.rouge@menta.fr>
18232
18233         * doc/invoke.texi (SPARC options): Add -mflat.
18234         * config/sparc/sparc.opt: Likewise.
18235         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
18236         (sparc_flat_expand_prologue): Declare.
18237         (sparc_flat_expand_epilogue): Likewise.
18238         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
18239         (CPP_ENDIAN_SPEC): Replace with...
18240         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
18241         (CPP_SPEC): Adjust to above change.
18242         (EXTRA_SPECS): Likewise.
18243         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
18244         (INCOMING_REGNO): Likewise.
18245         (OUTGOING_REGNO): Likewise.
18246         (LOCAL_REGNO): Likewise.
18247         (SETUP_FRAME_ADDRESSES): Likewise.
18248         (FIXED_REGISTERS): Set 0 for %fp.
18249         (CALL_USED_REGISTERS): Likewise.
18250         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
18251         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
18252         (RETURN_ADDR_REGNUM): Define.
18253         (RETURN_ADDR_RTX): Use it.
18254         (INCOMING_RETURN_ADDR_REGNUM): Define.
18255         (INCOMING_RETURN_ADDR_RTX): Use it.
18256         (DWARF_FRAME_RETURN_COLUMN): Likewise.
18257         (EH_RETURN_REGNUM): Define.
18258         (EH_RETURN_STACKADJ_RTX): Use it.
18259         (EH_RETURN_HANDLER_RTX): Delete.
18260         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
18261         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
18262         Delete.
18263         (struct machine_function): Add frame_size, apparent_frame_size,
18264         frame_base_reg, frame_base_offset, n_global_fp_regs and
18265         save_local_in_regs_p fields.
18266         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
18267         sparc_frame_base_offset, sparc_n_global_fp_regs,
18268         sparc_save_local_in_regs_p): New macros.
18269         (sparc_option_override): Error out if -fcall-saved-REG is specified
18270         for Out registers.
18271         (eligible_for_restore_insn): Fix formatting.
18272         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
18273         (eligible_for_sibcall_delay): Likewise.
18274         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
18275         (sparc_legitimate_address_p): Adjust to above change.
18276         (save_global_or_fp_reg_p): New predicate.
18277         (return_addr_reg_needed_p): Likewise.
18278         (save_local_or_in_reg_p): Likewise.
18279         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
18280         (SORR_SAVE, SORR_RESTORE): Delete.
18281         (sorr_pred_t): New typedef.
18282         (sorr_act_t): New enum.
18283         (save_or_restore_regs): Rename to...
18284         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
18285         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
18286         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
18287         mechanism.  Add CFI information for double-word saves in 32-bit mode.
18288         (emit_adjust_base_to_offset): New function extracted from...
18289         (emit_save_or_restore_regs): ...this.  Rename the rest to...
18290         (emit_save_or_restore_regs_global_fp_regs): ...this.
18291         (emit_save_or_restore_regs_local_in_regs): New function.
18292         (gen_create_flat_frame_[123]): New functions.
18293         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
18294         (sparc_flat_expand_prologue): New function.
18295         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
18296         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
18297         (sparc_flat_expand_epilogue): New function.
18298         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
18299         (output_return): Likewise.
18300         (output_sibcall): Likewise.
18301         (sparc_output_mi_thunk): Likewise.
18302         (sparc_frame_pointer_required): Likewise.
18303         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
18304         function optimization.
18305         * config/sparc/sparc.md (flat): New attribute.
18306         (prologue): Add TARGET_FLAT handling.
18307         (save_register_window): Disable if TARGET_FLAT.
18308         (create_flat_frame_[123]): New patterns.
18309         (epilogue): Add TARGET_FLAT handling.
18310         (sibcall_epilogue): Likewise.
18311         (eh_return): New expander.
18312         (eh_return_internal): New insn and splitter.
18313         (return_internal): Add TARGET_FLAT handling.
18314         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
18315         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
18316         (nonlocal_goto): Add TARGET_FLAT handling.
18317         * config/sparc/t-elf: Add -mflat multilib.
18318         * config/sparc/t-leon: Likewise.
18319
18320 2011-06-10  Jan Hubicka  <jh@suse.cz>
18321
18322         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
18323         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
18324         (self_recursive_p): Use cgraph_function_node.
18325         (propagate_pure_const): Likewise.
18326         (propagate_nothrow): Likewise.
18327         * ipa-reference.c (ipa_reference_get_not_read_global): Use
18328         cgraph_function_node.
18329         (propagate_bits): Likewise.
18330         (propagate): Likewise.
18331
18332 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18333             Richard Earnshaw  <rearnsha@arm.com>
18334
18335         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
18336         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
18337         (*thumb2_movdi_vfp): Delete.
18338         (*arm_movdi_vfp_cortexa8): Delete.
18339         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
18340         (*movdi_vfp_cortexa8): Likewise.
18341
18342 2011-06-10  Richard Guenther  <rguenther@suse.de>
18343
18344         * stor-layout.c (initialize_sizetypes): Give names to all
18345         sizetype kinds.
18346
18347 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
18348
18349         PR tree-optimization/49318
18350         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
18351         irrelevant pattern statements.
18352
18353 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
18354
18355         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
18356
18357         PR bootstrap/49354
18358         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
18359         to last assignment.
18360
18361 2011-06-09  Jan Hubicka  <jh@suse.cz>
18362
18363         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
18364         do not recompute reachable flag.
18365         (cgraph_finalize_function, cgraph_analyze_functions): Set
18366         redefined_extern_inline here.
18367
18368 2011-06-09  Jan Hubicka  <jh@suse.cz>
18369
18370         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
18371         (cgraph_only_called_directly_p): ... this one; bring offline.
18372         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
18373         varpool_used_from_object_file_p): Drop names from the declaratoin.
18374         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
18375         collect_callers_of_node): New.
18376         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
18377         (cgraph_edge_recursive_p): Use cgraph_function_node.
18378         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
18379         (cgraph_node_cannot_be_local_p_1): Break out from ...
18380         (cgraph_node_can_be_local_p): ... here; walk aliases.
18381         (cgraph_for_node_thunks_and_aliases): New function.
18382         (cgraph_for_node_and_aliases): New function.
18383         (cgraph_make_node_local_1): Break out from ...
18384         (cgraph_make_node_local) ... here; use
18385         cgraph_for_node_thunks_and_aliases.
18386         (cgraph_set_nothrow_flag_1): Break out from ...
18387         (cgraph_set_nothrow_flag) ... here;
18388         use cgraph_for_node_thunks_and_aliases.
18389         (cgraph_set_const_flag_1): Break out from ...
18390         (cgraph_set_const_flag) ... here;
18391         use cgraph_for_node_thunks_and_aliases.
18392         (cgraph_set_pure_flag_1): Break out from ...
18393         (cgraph_set_pure_flag) ... here;
18394         use cgraph_for_node_thunks_and_aliases.
18395         (cgraph_propagate_frequency_1): Break out from ...
18396         (cgraph_propagate_frequency) ... here; use
18397         cgraph_for_node_thunks_and_aliases.
18398         (cgraph_used_from_object_file_p): Do not care about aliases.
18399         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
18400         New functions.
18401         (collect_callers_of_node_1, collect_callers_of_node): New functions.
18402
18403 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
18404
18405         PR rtl-optimization/49154
18406         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
18407         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
18408         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
18409         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
18410         * config/cris/cris.h (cris_register_move_cost): Remove
18411         !TARGET_V32 code.  Tweak comments.
18412
18413 2011-06-09  Jan Hubicka  <jh@suse.cz>
18414
18415         * cgraphbuild.c (record_eh_tables): Mark personality function as having
18416         address taken.
18417
18418 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
18419
18420         PR rtl-optimization/49154
18421         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
18422         is a matching slot in the hashtable, assign it to classes_ptr.
18423
18424         PR rtl-optimization/49154
18425         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
18426         register classes.
18427         * doc/tm.texi: Regenerate.
18428
18429 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
18430
18431         PR target/49307
18432         * config/sh/sh.md (UNSPEC_CHKADD): New.
18433         (chk_guard_add): New define_insn_and_split.
18434         (symGOT_load): Use chk_guard_add instead of blockage.
18435
18436 2011-06-09  Kai Tietz  <ktietz@redhat.com>
18437
18438         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
18439
18440 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
18441
18442         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
18443
18444 2011-06-09  Wei Guozhi  <carrot@google.com>
18445
18446         PR target/46975
18447         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
18448         (peephole2 for conditional move): Generate 16 bit instructions.
18449
18450 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
18451
18452         * config/i386/i386.md (*movdi_internal_rex64): Merge
18453         alternatives 6 and 8.
18454
18455 2011-06-09  David Li  <davidxl@google.com>
18456
18457         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
18458         * passes.c (passr_eq): New function.
18459         (create_pass_tab): New function.
18460         (pass_traverse): New function.
18461         (dump_one_pass): New function.
18462         (dump_pass_list): New function.
18463         (dump_passes): New function.
18464
18465 2011-06-09  David Li  <davidxl@google.com>
18466
18467         * tree-complex.c (tree_lower_complex): Gate cleanup.
18468         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
18469         (execute_optimize_stdarg): Ditto.
18470         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
18471         (execute_cleanup_eh_1): Ditto.
18472         (execute_cleanup_eh): Ditto.
18473         * gcse.c (gate_rtl_pre): Ditto.
18474         (execute_rtl_pre): Ditto.
18475         * except.c (finish_eh_generation): Ditto.
18476         (convert_to_eh_region_ranges): Ditto.
18477         * cprop.c (one_cprop_pass): Ditto.
18478
18479 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
18480
18481         PR target/48673
18482         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
18483         in all basic blocks.
18484
18485 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18486
18487         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
18488         (HAVE_ENABLE_EXECUTE_STACK): Define.
18489         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
18490         (HAVE_ENABLE_EXECUTE_STACK): Define.
18491         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
18492         (HAVE_ENABLE_EXECUTE_STACK): Define.
18493         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
18494         (ENABLE_EXECUTE_STACK): Remove.
18495         (HAVE_ENABLE_EXECUTE_STACK): Define.
18496         [IN_LIBGCC2]: Don't include <windows.h>.
18497         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
18498         (HAVE_ENABLE_EXECUTE_STACK): Define.
18499         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
18500         (HAVE_ENABLE_EXECUTE_STACK): Define.
18501         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
18502         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
18503         (HAVE_ENABLE_EXECUTE_STACK): Define.
18504         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
18505         (HAVE_ENABLE_EXECUTE_STACK): Define.
18506         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
18507         (HAVE_ENABLE_EXECUTE_STACK): Define.
18508         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
18509         (HAVE_ENABLE_EXECUTE_STACK): Define.
18510         * config/alpha/alpha.c (alpha_trampoline_init): Test
18511         HAVE_ENABLE_EXECUTE_STACK.
18512         * config/i386/i386.c (ix86_trampoline_init): Likewise.
18513         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
18514         (sparc64_initialize_trampoline): Likewise.
18515         * libgcc2.c [L_enable_execute_stack]: Remove.
18516         * system.h (ENABLE_EXECUTE_STACK): Poison.
18517         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
18518         * doc/tm.texi: Regenerate.
18519         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
18520
18521 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
18522
18523         PR middle-end/49308
18524         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
18525         variable.  After resetting and rescanning insn continue with previous
18526         statement.
18527
18528 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18529
18530         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
18531         (gcc_cv_ld_hidden): Likewise.
18532         * configure: Regenerate.
18533         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
18534         (ix86_stack_protect_fail): Mark unused.
18535         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
18536         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
18537         [TARGET_MACHO]: Don't define.
18538         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
18539         (TARGET_STACK_PROTECT_FAIL): Likewise.
18540         (rs6000_stack_protect_fail): Mark unused.
18541         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
18542         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
18543
18544 2011-06-08  Andi Kleen  <ak@linux.intel.com>
18545
18546         * varasm.c (get_section): Print location of other conflict
18547         for section conflicts.
18548
18549 2011-06-08  Andi Kleen  <ak@linux.intel.com>
18550
18551         * config/i386/driver-i386.c (host_detect_local_cpu):
18552         Add model 0x2d Intel CPU.
18553
18554 2011-06-08  Andi Kleen  <ak@linux.intel.com>
18555
18556         * reginfo.c (global_regs_decl): Add.
18557         (globalize_reg): Add decl parameter. Compute location.  Pass location
18558         to warnings and add inform. Store decl in global_regs_decl.
18559         * rtl.h (globalize_reg): Update prototype.
18560         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
18561
18562 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
18563
18564         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
18565
18566 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18567
18568         PR target/49305
18569         * config/sh/predicates.md (general_movsrc_operand): Check
18570         mode for memory with indexed address for QI and HImode.
18571         (general_movdst_operand): Likewise.
18572
18573 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
18574
18575         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
18576
18577 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
18578
18579         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
18580         (num_ssa_operands): Likewise.
18581         (op_iter_init_phiuse): Forward-declare.
18582         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
18583
18584 2011-06-08  Nick Clifton  <nickc@redhat.com>
18585
18586         * doc/invoke.texi (ARM Options): Update description of
18587         -mthumb-interwork.
18588
18589 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
18590
18591         * config/i386/driver-i386.c (host_detect_local_cpu): Support
18592         unknown Intel family 0x6 CPUs.
18593
18594 2011-06-08  Martin Jambor  <mjambor@suse.cz>
18595
18596         * tree-sra.c (mark_rw_status): Removed.
18597         (analyze_access_subtree): New parameter parent instead of
18598         mark_read and mark_write, propagate from that.
18599
18600 2011-06-08  Julian Brown  <julian@codesourcery.com>
18601
18602         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
18603         for double-precision helper functions in hard-float mode if only
18604         single-precision arithmetic is supported in hardware.
18605
18606 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
18607
18608         PR rtl-optimization/49303
18609         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
18610         code_motion_path_driver returned 0 or 1.
18611         (sel_region_finish): Clear h_d_i_d.
18612
18613 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18614
18615         * config/sh/sh.c (prepare_move_operands): Set pic register
18616         appropriately for global and local dynamic tls models even
18617         if flag_pic is unset.
18618
18619 2011-06-07  Jason Merrill  <jason@redhat.com>
18620
18621         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
18622
18623 2011-06-07  Xinliang David Li  <davidxl@google.com>
18624         * passes.c (enable_disable_pass): Handle assembler name.
18625         (is_pass_explicitly_enabled_or_disabled): Ditto.
18626
18627 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18628
18629         PR tree-optimization/48497
18630         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
18631
18632 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18633
18634         PR tree-optimization/46728
18635         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
18636         to use gimple_val_nonnegative_real_p.
18637         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
18638         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
18639
18640 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
18641
18642         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
18643
18644 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
18645
18646         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
18647         constant vectors.
18648
18649 2011-06-07  Richard Guenther  <rguenther@suse.de>
18650
18651         * stor-layout.c (initialize_sizetypes): Initialize all
18652         sizetypes based on target definitions.
18653         (set_sizetype): Remove.
18654         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
18655         * tree.h (set_sizetype): Remove.
18656
18657 2011-06-07  Nick Clifton  <nickc@redhat.com>
18658
18659         * config.gcc: Unify V850 architecture options and add support for
18660         newer V850 architectures.
18661         * config/v850/t-v850e: Delete.
18662
18663 2011-06-07  Richard Guenther  <rguenther@suse.de>
18664
18665         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
18666         Call set_sizetype from here.
18667
18668 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
18669
18670         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
18671         (*maddhisi4tb, *maddhisi4tt): New define_insns.
18672
18673 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
18674             Andrew Stubbs  <ams@codesourcery.com>
18675
18676         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
18677         multiplies.
18678         * doc/md.texi (Canonicalization of Instructions): Document widening
18679         multiply canonicalization.
18680
18681 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
18682
18683         PR gcov-profile/49299
18684         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
18685
18686 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
18687
18688         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
18689         a pointer.
18690         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
18691         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
18692         vect_recog_pow_pattern): Likewise.
18693         (vect_pattern_recog_1): Remove declaration.
18694         (widened_name_p): Remove declaration.  Add new argument to specify
18695         whether to check that both types are either signed or unsigned.
18696         (vect_recog_widen_mult_pattern): Update documentation.  Handle
18697         unsigned patterns and multiplication by constants.
18698         (vect_pattern_recog_1): Update vect_recog_func references.  Use
18699         statement information from the statement returned from pattern
18700         detection functions.
18701         (vect_pattern_recog): Update vect_recog_func reference.
18702         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
18703         multiplication by a constant use the type of the other operand.
18704
18705 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
18706
18707         PR rtl-optimization/49145
18708         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
18709
18710 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
18711
18712         PR debug/49262
18713         * dwarf2out.c (native_encode_initializer): Decrement count in each
18714         iteration.
18715
18716         PR debug/49294
18717         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
18718         non-MODE_INT modes.
18719
18720         PR c++/49264
18721         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
18722         if stmt folded into nothing.
18723         * tree-inline.c (fold_marked_statements): If a builtin at the end of
18724         a bb folded into nothing, just update cgraph edges and move to next bb.
18725         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
18726         to be NULL.  Don't compute count and frequency if new_call is NULL.
18727
18728 2011-06-04  Diego Novillo  <dnovillo@google.com>
18729
18730         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
18731         (cgraph.o): Likewise.
18732         (cgraphunit.o): Likewise.
18733         * cgraphunit.c: Include lto-streamer.h
18734         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
18735         if LTO is enabled.
18736         * lto-streamer-in.c (unpack_value_fields): Call
18737         streamer_hooks.unpack_value_fields if set.
18738         (lto_materialize_tree): For unhandled nodes, first try to
18739         call lto_streamer_hooks.alloc_tree, if it exists.
18740         (lto_input_ts_decl_common_tree_pointers): Move reading of
18741         DECL_INITIAL to lto_streamer_read_tree.
18742         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
18743         (lto_streamer_read_tree): New.
18744         (lto_reader_init): Rename from lto_init_reader.
18745         Move initialization code to lto/lto.c.
18746         * lto-streamer-out.c (pack_value_fields): Call
18747         streamer_hooks.pack_value_fields if set.
18748         (lto_output_tree_ref): For tree nodes that are not normally indexable,
18749         call streamer_hooks.indexable_with_decls_p before giving up.
18750         (lto_output_ts_decl_common_tree_pointers): Move handling
18751         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
18752         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
18753         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
18754         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
18755         (lto_streamer_write_tree): New.
18756         (lto_output): Call lto_streamer_init directly.
18757         (lto_writer_init): Remove.
18758         * lto-streamer.c (streamer_hooks): New.
18759         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
18760         instead of lto_preload_common_nodes.
18761         (lto_is_streamable): Move from lto-streamer.h
18762         (lto_streamer_hooks_init): New.
18763         (streamer_hooks): New.
18764         (streamer_hooks_init): New.
18765         * lto-streamer.h (struct output_block): Forward declare.
18766         (struct lto_input_block): Likewise.
18767         (struct data_in): Likewise.
18768         (struct bitpack_d): Likewise.
18769         (struct streamer_hooks): Declare.
18770         (streamer_hooks): Declare.
18771         (lto_streamer_hooks_init): Declare.
18772         (lto_streamer_write_tree): Declare.
18773         (lto_streamer_read_tree): Declare.
18774         (streamer_hooks_init): Declare.
18775         (lto_is_streamable): Move to lto-streamer.c
18776
18777 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18778
18779         * longlong.h (smul_ppmm): The resulting register pair contains the
18780         higher order word first.
18781
18782 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18783
18784         PR tree-optimization/46728
18785         * builtins.c (powi_table): Remove.
18786         (powi_lookup_cost): Remove.
18787         (powi_cost): Remove.
18788         (expand_powi_1): Remove.
18789         (expand_powi): Remove.
18790         (expand_builtin_pow_root): Remove.
18791         (expand_builtin_pow): Remove.
18792         (expand_builtin_powi): Eliminate handling of constant exponent.
18793         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
18794
18795 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
18796
18797         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
18798
18799 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
18800
18801         * dce.c (reset_unmarked_insns_debug_uses): New.
18802         (delete_unmarked_insns): Skip debug insns.
18803         (prescan_insns_for_dce): Likewise.
18804         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
18805         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
18806         active reg can be found.
18807         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
18808         (convert_regs_1): Use it.
18809
18810 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
18811
18812         * tree-pretty-print.c (dump_function_header): Add flags.
18813         Don't dump decl_uid with nouid.
18814         * tree-pretty-print.h (dump_function_header): Adjust.
18815         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
18816         * passes.c (pass_init_dump_file): Pass dump_flags on.
18817         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
18818
18819 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
18820
18821         PR bootstrap/49270
18822         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
18823
18824 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
18825
18826         PR tree-optimization/49243
18827         * calls.c (setjmp_call_p): Also check if fndecl has the
18828         returns_twice attribute.
18829
18830 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18831
18832         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
18833         -ffast-math etc.
18834
18835 2011-06-06  Richard Henderson  <rth@redhat.com>
18836             Georg-Johann Lay  <avr@gjlay.de>
18837
18838         PR target/42210
18839         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
18840         New predicates.
18841         * config/avr/avr.md ("insv"): New insn expander.
18842         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
18843         "*insv.not.io", "*insv.reg"): New insns.
18844
18845 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
18846
18847         PR target/49285
18848         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
18849         to nonimmediate_operand from memory_operand for the operand that is to
18850         be forced to memory by the expander.  Lose the constraints.
18851
18852 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
18853
18854         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
18855         EH return when delayed branches are disabled.
18856
18857 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
18858
18859         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
18860         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
18861         calculation.
18862         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
18863         Simplify MODE_V1DF and MODE_V2SF handling.
18864         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
18865         Simplify MODE_SF handling.
18866
18867 2011-06-04  Jan Hubicka  <jh@suse.cz>
18868
18869         PR tree-optimization/48893
18870         PR tree-optimization/49091
18871         PR tree-optimization/49179
18872         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
18873         Bounds check.
18874
18875 2011-06-04  Jan Hubicka  <jh@suse.cz>
18876
18877         PR lto/48954
18878         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
18879         bitmaps.
18880
18881 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
18882
18883         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
18884
18885 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18886
18887         PR target/49281
18888         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
18889         to be strictly smaller than 1 << shiftcount.
18890
18891 2011-06-04  Jan Hubicka  <jh@suse.cz>
18892
18893         PR tree-optimize/48929
18894         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
18895         of empty predicate.
18896
18897 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
18898
18899         PR debug/48333
18900         * calls.c (emit_call_1): Prefer the __builtin declaration of
18901         builtin functions.
18902
18903 2011-06-03   Diego Novillo  <dnovillo@google.com>
18904
18905         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
18906         (lto_input_tree_pointers): Likewise.
18907         * lto-streamer-out.c (pack_value_fields): Likewise.
18908         (lto_output_tree_pointers): Likewise.
18909         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
18910         and OPTIMIZATION_NODE.
18911
18912 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18913
18914         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
18915         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
18916         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
18917         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
18918         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
18919         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
18920         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
18921         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
18922         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
18923         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
18924         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
18925         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
18926         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
18927         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
18928         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
18929         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
18930         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
18931         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
18932         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
18933         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
18934         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
18935         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
18936         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
18937         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
18938         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
18939         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
18940         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
18941         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
18942         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
18943         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
18944         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
18945         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
18946         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
18947         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
18948         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
18949         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
18950         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
18951         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
18952         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
18953         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
18954         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
18955         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
18956         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
18957         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
18958         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
18959         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
18960         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
18961         * system.h (MD_UNWIND_SUPPORT): Poison.
18962         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
18963         * doc/tm.texi: Regenerate.
18964         * unwind-dw2.c: Include md-unwind-support.h instead of
18965         MD_UNWIND_SUPPORT.
18966         * config/ia64/unwind-ia64.c: Likewise.
18967         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
18968
18969 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
18970
18971         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
18972
18973 2011-06-03  Richard Henderson  <rth@redhat.com>
18974             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18975
18976         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
18977         (sigill_hdlr): Correct insn, insn size.
18978         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
18979
18980 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18981
18982         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
18983         t-slibgcc-dummy.
18984         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
18985         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
18986         * config/mips/t-iris: Remove.
18987         * config/mips/t-irix6: New file.
18988         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
18989
18990 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18991
18992         * Makefile.in (LIB2ADDEHDEP): Remove.
18993         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
18994         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
18995         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
18996         * config/t-darwin (LIB2ADDEHDEP): Remove.
18997         * config/t-freebsd (LIB2ADDEHDEP): Remove.
18998         * config/t-linux (LIB2ADDEHDEP): Remove.
18999
19000 2011-06-03  Diego Novillo  <dnovillo@google.com>
19001
19002         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
19003         (lto_register_var_decl_in_symtab): Likewise.
19004         (lto_register_function_decl_in_symtab): Likewise.
19005         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
19006         logic to uniquify_nodes.
19007
19008 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19009
19010         * config/alpha/t-osf5: Remove.
19011         * config/alpha/t-osf-pthread: Remove.
19012         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
19013         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
19014
19015 2011-06-03  Julian Brown  <julian@codesourcery.com>
19016
19017         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
19018         (strongarm1110): Use strongarm tuning.
19019         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
19020         * config/arm/arm.c (arm_strongarm_tune): New.
19021         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
19022         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
19023         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
19024         setting, using previous defaults or 1 for Cortex-A5.
19025         (arm_option_override): Set max_insns_skipped from current tuning.
19026
19027 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
19028
19029         * doc/install.texi (Options specification): Document --with-specs.
19030
19031 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19032
19033         * config/arm/neon.md (orndi3_neon): Actually split it.
19034
19035 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
19036
19037         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
19038         * var-tracking.c (reverse_op): Limite recurse depth to 5.
19039
19040 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
19041
19042         PR debug/47590
19043         * target.def (delay_sched2, delay_vartrack): New.
19044         * doc/tm.texi.in: Update.
19045         * doc/tm.texi: Rebuild.
19046         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
19047         * var-tracking.c (gate_handle_var_tracking): Likewise.
19048         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
19049         (bfin_flag_var_tracking): Drop.
19050         (output_file_start): Don't save and override flag_var_tracking.
19051         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
19052         (bfin_reorg): Test original variables.
19053         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
19054         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
19055         (ia64_flag_var_tracking): Drop.
19056         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
19057         (ia64_file_start): Don't save and override flag_var_tracking.
19058         (ia64_override_options_after_change): Ditto
19059         flag_schedule_insns_after_reload.
19060         (ia64_reorg): Test original variables.
19061         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
19062         (picochip_flag_var_tracking): Drop.
19063         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
19064         (picochip_option_override): Don't save and override
19065         flag_schedule_insns_after_reload.
19066         (picochip_asm_file_start): Ditto flag_var_tracking.
19067         (picochip_reorg): Test original variables.
19068         * config/spu/spu.c (spu_flag_var_tracking): Drop.
19069         (TARGET_DELAY_VARTRACK): Define.
19070         (spu_var_tracking): New.
19071         (spu_machine_dependent_reorg): Call it.
19072         (asm_file_start): Don't save and override flag_var_tracking.
19073
19074 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
19075
19076         PR target/49163
19077         * config/sh/predicates.md (general_movsrc_operand): Return 0
19078         for memory and memory subreg of which address is an invalid
19079         indexed address for QI and HImode.
19080         (general_movdst_operand): Likewise.
19081
19082 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
19083
19084         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
19085         edges only, when there is a non-local label in the function.
19086         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
19087
19088 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
19089
19090         * config/i386/constraints.md (Y3): New register constraint.
19091         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
19092         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
19093         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
19094         *sse2_interleave_lowv2df.
19095
19096 2011-06-02  Julian Brown  <julian@codesourcery.com>
19097
19098         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
19099         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
19100         (arm_cortex_a5_tune): New.
19101
19102 2011-06-02  Julian Brown  <julian@codesourcery.com>
19103
19104         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
19105         * config/arm/arm.c (arm_default_branch_cost): New.
19106         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
19107         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
19108         (arm_fa726_tune): Set branch_cost field using
19109         arm_default_branch_cost.
19110         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
19111         current_tune structure.
19112         * dojump.c (tm_p.h): Include file.
19113
19114 2011-06-02  Julian Brown  <julian@codesourcery.com>
19115
19116         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
19117         tuning.
19118         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
19119         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
19120         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
19121         field.
19122         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
19123         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
19124         (arm_fa726te_tune): Add prefer_constant_pool setting.
19125         (arm_v6t2_tune, arm_cortex_tune): New.
19126         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
19127         prefer_constant_pool setting.
19128
19129 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
19130
19131         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
19132         switch statement.
19133         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
19134         (*movdf_internal) <case 6,7,8>: Ditto.
19135
19136         * config/i386/constraints.md (Y4): New register constraint.
19137         * config/i386/sse.md (vec_set<mode>_0): Merge with
19138         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
19139         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
19140         *vec_extractv2di_1_sse.
19141         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
19142         and *vec_concatv2di_rex64_sse.
19143
19144 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
19145
19146         PR target/48807
19147         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
19148         of cgraph_local_info for null before attempting to use it.
19149
19150 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
19151
19152         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
19153         (current_function_dynamic_alloc_count): Delete.
19154         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
19155         (expand_builtin_nonlocal_goto): Remove obsolete comment.
19156         (expand_builtin_update_setjmp_buf): Remove dead code.
19157         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
19158         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
19159         support.
19160         * function.c (instantiate_virtual_regs): Likewise.
19161         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
19162         for a block with a single abnormal incoming edge.
19163         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
19164         (SETJMP_VIA_SAVE_AREA): Delete.
19165         * config/sparc/sparc-protos.h (load_got_register): Declare.
19166         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
19167         (load_got_register): Make global.
19168         (sparc_frame_pointer_required): Add 'static'.
19169         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
19170         (sparc_builtin_setjmp_frame_value): New function.
19171         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
19172         (save_stack_nonlocal): New expander.
19173         (restore_stack_nonlocal): Likewise.
19174         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
19175         (nonlocal_goto_internal): New insn.
19176         (goto_handler_and_restore): Delete.
19177         (builtin_setjmp_setup): Likewise.
19178         (do_builtin_setjmp_setup): Likewise.
19179         (setjmp): Likewise.
19180         (builtin_setjmp_receiver): New expander.
19181
19182 2011-06-01  David Li  <davidxl@google.com>
19183
19184         PR middle-end/49261
19185         * tree-pretty-print.c (dump_function_header): Format cleanup.
19186
19187 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
19188
19189         PR target/49238
19190         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
19191         needed when original operands are used for msw_skip comparison.
19192
19193 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
19194
19195         PR debug/49250
19196         * var-tracking.c (add_uses, add_stores): Don't call
19197         cselib_subst_to_values on ENTRY_VALUE.
19198
19199 2011-06-01  Diego Novillo  <dnovillo@google.com>
19200
19201         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
19202         output_record_start with LTO_null instead of output_zero.
19203         (lto_output_ts_binfo_tree_pointers): Likewise.
19204         (lto_output_tree): Likewise.
19205         (output_eh_try_list): Likewise.
19206         (output_eh_region): Likewise.
19207         (output_eh_lp): Likewise.
19208         (output_eh_regions): Likewise.
19209         (output_bb): Likewise.
19210         (output_function): Likewise.
19211         (output_unreferenced_globals): Likewise.
19212         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
19213         instead of NUM_TREE_CODES.
19214         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
19215         (lto_output_int_in_range): Change << to >> when shifting VAL.
19216
19217 2011-06-01  Diego Novillo  <dnovillo@google.com>
19218
19219         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
19220         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
19221
19222 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
19223
19224         PR target/45074
19225         * optabs.h (valid_multiword_target_p): Declare.
19226         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
19227         doing multi-word operations.
19228         * optabs.c (expand_binop): Likewise.
19229         (expand_doubleword_bswap): Likewise.
19230         (expand_absneg_bit): Likewise.
19231         (expand_unop): Likewise.
19232         (expand_copysign_bit): Likewise.
19233         (multiword_target_p): New function.
19234
19235 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
19236
19237         PR rtl-optimization/48830
19238         PR rtl-optimization/48808
19239         PR rtl-optimization/48792
19240         * reload.c (push_reload): Check contains_reg_of_mode.
19241         * reload1.c (strip_paradoxical_subreg): New function.
19242         (gen_reload_chain_without_interm_reg_p): Use it to handle
19243         paradoxical subregs.
19244         (emit_output_reload_insns, gen_reload): Likewise.
19245
19246 2011-06-01  David Li  <davidxl@google.com>
19247
19248         * predict.c : Change pass name
19249         * ipa.c: Ditto.
19250         * dce.c: Ditto.
19251         * tree-profile.c: Ditto.
19252         * except.c: Ditto.
19253
19254 2011-06-01  David Li  <davidxl@google.com>
19255
19256         * tree-pretty-print.c (dump_function_header): New function.
19257         * final.c (rest_of_clean_state): Use header dumper.
19258         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
19259         * passes.c (pass_init_dump_file): Use header dumper.
19260
19261 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
19262
19263         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
19264         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
19265         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
19266         New functions.
19267         (mem_loc_descriptor): Use them.
19268
19269         * var-tracking.c (create_entry_value): New function.
19270         (vt_add_function_parameter): Use it.
19271
19272 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19273
19274         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
19275         Include <signal.h>, <ucontext.h>.
19276         (sigill_caught): Define.
19277         (sigill_hdlr): New function.
19278         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
19279         insns can be executed.
19280         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
19281         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
19282
19283 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19284
19285         * config/t-slibgcc-darwin: Move to ...
19286         * config/t-slibgcc-dummy: ... this.  Clarify comments.
19287         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
19288         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
19289         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
19290         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
19291         Remove i386/t-crtstuff from tmake_file.
19292         (i[34567]86-*-solaris2*): Remove t-svr4,
19293         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
19294         t-slibgcc-dummy.
19295         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
19296         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
19297         sparc/t-crtfm from tmake_file.
19298         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
19299         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
19300         Remove extra_parts.
19301         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
19302         * config/i386/t-nwld (SHLIB_LINK): Remove.
19303         * config/i386/t-rtems-i386: Rename to ...
19304         * config/i386/t-rtems: ... this.
19305         ($(T)crti.o, $(T)crtn.o): Remove.
19306         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
19307         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
19308         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
19309         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
19310         EXTRA_MULTILIB_PARTS): Remove.
19311         * config/sparc/t-sol2-64: Likewise.
19312         * config/sparc/t-sol2: Remove.
19313         * config/sparc/t-crtin: Remove.
19314         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
19315         * config/i386/gmon-sol2.c: Remove.
19316         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
19317         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
19318         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
19319         * config/i386/sol2-gc1.asm: Remove.
19320         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
19321         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
19322         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
19323         * config/t-slibgcc-sld: Remove.
19324
19325 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
19326
19327         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
19328         base_type_for_mode with op_mode instead of mode.
19329
19330 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
19331
19332         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
19333         Cortex-A15.
19334         * config/arm/arm-tune.md: Regenerate.
19335         * config/arm/arm-tables.opt: Regenerate.
19336         * config/arm/arm.c (FL_DIV): Rename...
19337         (FL_THUMB_DIV): ... to this.
19338         (FL_ARM_DIV): Define.
19339         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
19340         (arm_arch_hwdiv): Remove.
19341         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
19342         (arm_issue_rate): Add cortexr5.
19343         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
19344         __ARM_ARCH_EXT_IDIV__.
19345         (TARGET_IDIV): Define.
19346         (arm_arch_hwdiv): Remove.
19347         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
19348         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
19349         (divsi3, udivsi3): New patterns.
19350         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
19351         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
19352
19353 2011-06-01  Martin Jambor  <mjambor@suse.cz>
19354
19355         * ipa-utils.c (ipa_dfs_info): New field scc_no.
19356         * ipa-utils.c (searchc): Set scc_no.
19357
19358 2011-06-01  Martin Jambor  <mjambor@suse.cz>
19359
19360         * ipa-utils.c (searchc_env): New field allow_overwritable.
19361         (searchc): do not ignore edges to overwritable nodes if indicated
19362         by env->allow_overwritable.
19363         (ipa_reduced_postorder): Set env.allow_overwritable.
19364
19365 2011-06-01  Richard Guenther  <rguenther@suse.de>
19366
19367         * tree.c (free_lang_data): Do not reset boolean_type_node nor
19368         char_type_node.
19369         * lto-streamer.c (lto_record_common_node): Take node pointer,
19370         do not register types.
19371         (lto_preload_common_nodes): Explicitly skip preloading nodes
19372         that differ between frontends.
19373
19374 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
19375
19376         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
19377         NON_FLOAT_REGS.
19378
19379 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
19380
19381         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
19382         parameter value for dump. Dump cost on outermost call only.
19383         (rs6000_memory_move_cost): Dump cost on outermost call only.
19384
19385 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
19386
19387         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
19388         DW_OP_GNU_convert ops.
19389
19390         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
19391         cselib_preserve_constants.
19392         (cselib_lookup_1): If cselib_preserve_constants,
19393         a new VALUE is being created for REG and there is a VALUE for the
19394         same register in wider mode, add another loc with lowpart SUBREG of
19395         the wider VALUE.
19396         (cselib_subst_to_values): Handle ENTRY_VALUE.
19397         * var-tracking.c  (replace_expr_with_values): Return NULL for
19398         ENTRY_VALUE too.
19399         * dwarf2out.c (convert_descriptor_to_signed): New function.
19400         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
19401         instead of two shifts.
19402         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
19403         the right mode if needed.
19404         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
19405         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
19406         convert_descriptor_to_signed.
19407         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
19408         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
19409
19410         PR target/48688
19411         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
19412
19413 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
19414
19415         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
19416         of X87MODEI12 and SWI48x instead of SSEMODEI24.
19417         (SWI248x): New mode iterator, rename from X87MODEI.
19418         (X87MODEI): Remove mode iterator.
19419         (X87MODEI12): Ditto.
19420         (SSEMODEI24): Ditto.
19421
19422 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
19423
19424         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
19425         * doc/invoke.texi: Document max-vartrack-expr-depth.
19426         * var-tracking.c (EXPR_DEPTH): New.
19427         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
19428
19429 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
19430
19431         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
19432         * config/i386/sse.md: Add n to negated FMA pattern names.
19433
19434 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
19435
19436         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
19437
19438 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
19439
19440         * gengtype-state.c (read_state_params_structs): Initialize previous.
19441
19442 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
19443
19444         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
19445         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
19446
19447 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
19448
19449         * config/i386/i386.md (*movtf_internal): Avoid allocating general
19450         registers.  Penalize F*r->o alternative to prevent partial memory
19451         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
19452         CONST_DOUBLE immediates when optimizing function for size.  Do not move
19453         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
19454         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
19455         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
19456         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
19457         alternatives.
19458         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
19459
19460         (fp_register_operand splitters): Use fp_register_operand
19461         constraint.  Do not use FP_REG_P in insn condition.
19462         (any_fp_register_operand splitters): Use any_fp_register_operand
19463         constraint.  Do not use ANY_FP_REG_P in insn condition.
19464
19465 2011-05-31  Jan Hubicka  <jh@suse.cz>
19466
19467         * cgraph.h (cgraph_inline_failed_t): Give enum a name
19468         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
19469         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
19470         (lto_output_edge): Use output_enum and var_len_unsigned.
19471         (lto_output_varpool_node): Likewise.
19472         (input_overwrite_node): Do not take resolution parameter;
19473         extract it from a bitpack.
19474         (input_node): Do not read resolution; use input_enum and
19475         var_len_unsigned.
19476         (input_varpool_node): Likewise.
19477         (input_edge): Likewise.
19478         (input_cgraph_1): Likewise.
19479
19480 2011-05-31  Richard Guenther  <rguenther@suse.de>
19481
19482         * gimple.c (gimple_register_canonical_type): Do not register
19483         any types via gimple_register_type.
19484
19485 2011-05-31  Jan Hubicka  <jh@suse.cz>
19486
19487         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
19488         of thunks.
19489
19490 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
19491
19492         PR rtl-optimization/49235
19493         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
19494         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
19495
19496 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
19497
19498         PR tree-optimization/49093
19499         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
19500         data references.
19501
19502 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
19503
19504         PR debug/49047
19505         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
19506         for concrete functions containing the code of cloned functions.
19507
19508 2011-05-31  Richard Guenther  <rguenther@suse.de>
19509
19510         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
19511         to ...
19512         (forward_propagate_into_comparison_1): ... this.
19513         (forward_propagate_comparison): Rename to ...
19514         (forward_propagate_into_comparison): ... this.  Split out
19515         real forward propagation code to ...
19516         (forward_propagate_comparison): ... this.
19517         (forward_propagate_into_gimple_cond): Remove looping.
19518         (forward_propagate_into_cond): Likewise.
19519         (simplify_not_neg_expr): Return whether we have done something.
19520         (simplify_gimple_switch): Likewise.
19521         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
19522         (ssa_forward_propagate_and_combine): ... this.  Re-structure
19523         to do a forward forward-propagation walk on BBs and a backward
19524         stmt combining walk on BBs.  Consistently re-scan changed statements.
19525         (pass_forwprop): Adjust.
19526
19527 2011-05-30  Ian Lance Taylor  <iant@google.com>
19528
19529         * godump.c (go_format_type): Correct length of name added to
19530         obstack for anonymous field.
19531
19532 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
19533
19534         PR target/49186
19535         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
19536         part of the second operand is 0.
19537
19538 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
19539
19540         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
19541         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
19542         to memory for !TARGET_MEMORY_MISMATCH_STALL.
19543         (*movdf_internal_rex64): Do not penalize F->r alternative.
19544         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
19545         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
19546         when optimizing function for size.  Do not move CONST_DOUBLEs
19547         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
19548         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
19549         SUBREGs.  Do not check for MEM_P operands in the insn condition,
19550         check for ANY_FP_REGNO_P instead.
19551         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
19552         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
19553         function for speed.
19554         * config/i386/i386.c (ix86_option_override_internal): Do not
19555         set TARGET_INTEGER_DFMODE_MOVES here.
19556
19557 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
19558
19559         PR target/49168
19560         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
19561
19562 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
19563
19564         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
19565         DW_TAG_rvalue_reference_type even for
19566         -gdwarf-4 -fno-debug-types-section.
19567
19568 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19569
19570         PR tree-optimization/46728
19571         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
19572         (build_and_insert_binop): New.
19573         (gimple_expand_builtin_pow): Reorder args for
19574         build_and_insert_call; use build_and_insert_binop; add more
19575         optimizations for fractional exponents.
19576
19577 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
19578
19579         PR bootstrap/49190
19580
19581         Revert:
19582         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
19583
19584         * tree.h (struct tree_identifier): Inherit from tree_typed, not
19585         tree_common.
19586         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
19587         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
19588         TS_BASE instead of TS_COMMON.
19589         * varasm.c (assemble_name): Remove assert.
19590
19591 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
19592
19593         * config.gcc: Keep obselete list sorted.
19594
19595 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
19596             Eric Botcazou  <ebotcazou@adacore.com>
19597
19598         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
19599         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
19600         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
19601         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
19602         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
19603
19604 2011-05-30  Richard Guenther  <rguenther@suse.de>
19605
19606         * gimple.c (gimple_types_compatible_p_1): Compare record
19607         and union type members properly.
19608
19609 2011-05-30  Richard Guenther  <rguenther@suse.de>
19610
19611         PR tree-optimization/49210
19612         * ipa-split.c (split_function): Care for the case where the call
19613         result is not trivially convertible to the result holding variable.
19614
19615 2011-05-30  Richard Guenther  <rguenther@suse.de>
19616
19617         PR tree-optimization/49218
19618         * tree-vrp.c (adjust_range_with_scev): Properly check whether
19619         overflow occured.
19620
19621 2011-05-30  Richard Guenther  <rguenther@suse.de>
19622
19623         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
19624         New function split out from ...
19625         (forward_propagate_into_gimple_cond): ... here.  Adjust.
19626         (forward_propagate_into_cond): Likewise.
19627         (forward_propagate_comparison): Also propagate into
19628         comparisons on assignment RHS.  Change return value to
19629         behave similar to forward_propagate_into_cond.
19630         (tree_ssa_forward_propagate_single_use_vars): Handle
19631         strict-overflow warnings properly for forward_propagate_comparison.
19632
19633 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19634
19635         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
19636         from plugin linker.
19637         * configure: Regenerate.
19638
19639 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
19640
19641         PR tree-optimization/49199
19642         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
19643         non-reduction operands are either defined in the loop or by induction.
19644
19645 2011-05-29  Xinliang David Li  <davidxl@google.com>
19646
19647         * opts-global.c (handle_common_deferred_options): Handle new options.
19648         * passes.c (register_one_dump_file): Call register_pass_name.
19649         (execute_one_pass): Check explicit enable/disable flag.
19650         (passr_hash): New function.
19651         (passr_eq): Ditto.
19652         (register_pass_name): Ditto.
19653         (get_pass_by_name): Ditto.
19654         (pass_hash): Ditto.
19655         (pass_eq): Ditto.
19656         (enable_pass): Ditto.
19657         (disable_pass): Ditto.
19658         (is_pass_explicitly_enabled_or_disabled): Ditto.
19659
19660 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
19661
19662         * config/i386/i386.md (*movoi_internal_avx): Use
19663         standard_sse_constant_opcode for alternative 0.
19664         (*movti_internal_sse): Ditto.
19665         (*movti_internal_rex64): Use standard_sse_constant_opcode for
19666         alternative 2.
19667         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
19668         sselog1 type moves.
19669         (*movsi_internal): Ditto.
19670         (*movdi_internal): Ditto.  Add ssecvt type moves.
19671
19672 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
19673
19674         PR target/48830
19675         * rtlanal.c (simplify_subreg_regno): Adjust comment.
19676
19677 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
19678
19679         PR rtl-optimization/49095
19680         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
19681         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
19682
19683 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
19684
19685         PR target/43995
19686         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
19687         recurse_p argument.  Only follow register copies if it is set,
19688         and prevent mips_find_pic_call_symbol from recursing.
19689         (mips_find_pic_call_symbol): Add a recurse_p argument.
19690         Pass it to mips_pic_call_symbol_from_set.
19691         (mips_annotate_pic_calls): Update accordingly.
19692
19693 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
19694
19695         * emit-rtl.c (try_split): Use a loop to search for
19696         NOTE_INSN_CALL_ARG_LOCATIONs.
19697
19698 2011-05-29  Richard Guenther  <rguenther@suse.de>
19699
19700         PR tree-optimization/49217
19701         * ipa-pure-const.c (propagate_pure_const): Fix typos.
19702
19703 2011-05-28  Jan Hubicka  <jh@suse.cz>
19704
19705         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
19706         length.
19707         (string_slot_free): Remove
19708         (create_output_block): Initialize obstack.
19709         (destroy_output_block): Free obstack.
19710         (lto_string_index): Add PERSISTENT parameter; do not duplicate
19711         the string unless it needs to be added into the hash.
19712         (lto_output_string_with_length): Add persistent attribute;
19713         handle NULL strings.
19714         (lto_output_string): Add PERSISTENT parameter.
19715         (output_string_cst, output_identifier): Simplify.
19716         (lto_output_location_bitpack): Update.
19717         (lto_output_builtin_tree): Update.
19718         * lto-streamer.h (struct output_block): Add obstack.
19719         (lto_output_string, lto_output_string_with_length): Remove
19720         declarations; functions are static now.
19721
19722 2011-05-28  Jan Hubicka  <jh@suse.cz>
19723
19724         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
19725         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
19726         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
19727         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
19728         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
19729         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
19730         unpack_ts_decl_with_vis_value_fields,
19731         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
19732         lto_get_builtin_tree): Use enum and variable length i/o.
19733         * basic-block.h (profile_status_d): Add PROFILE_LAST.
19734         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
19735         New functions.
19736         (bp_pack_enum, bp_unpack_enum): New macros.
19737
19738 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
19739
19740         * genrecog.c: Remove redundant forward declarations.
19741
19742 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
19743
19744         * config.gcc: Deprecate mips*-*-openbsd*.
19745
19746 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
19747
19748         PR bootstrap/49195
19749         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
19750         for match_op_dup.
19751
19752 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
19753
19754         PR middle-end/48981
19755         * gengtype.c (vec_prefix_type): New function.
19756         (note_def_vec): Use vec_prefix_type and change the length
19757         attribute to be based on the prefix.
19758         * vec.c: Include coretypes.h before vec.h.
19759         (struct vec_prefix): Remove.
19760         (vec_gc_p_reserve): Change the offsetof to sizeof.
19761         (vec_gc_p_reserve_exact): Likewise.
19762         (vec_heap_p_reserve): Likewise.
19763         (vec_heap_p_reserve_exact): Likewise.
19764         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
19765         (vec_stack_p_reserve): Change the offsetof to sizeof.
19766         (vec_stack_p_reserve_exact): Likewise.
19767         * vec.h (struct vec_prefix): New struct definition.
19768         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
19769         (VEC_T_GTY(T,B)): Likewise.
19770         (DEF_VEC_FUNC_P(T)): Use prefix field.
19771         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
19772         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
19773
19774 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19775
19776         PR tree-optimization/46728
19777         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
19778         (powi_as_mults): Add gimple_set_location.
19779         (build_and_insert_call): New.
19780         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
19781         0.5, 0.25, 0.75, 1./3., or 1./6.
19782
19783 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
19784
19785         * doc/contrib.texi: Update copyright years.
19786         (Contributors): Add Zdenek Sojka.
19787
19788 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
19789
19790         * c-decl.c (c_push_function_context): Copy the current statement
19791         list stack.
19792         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
19793         (finish_struct): Call building_stmt_list_p instead of checking
19794         cur_stmt_list.
19795         * c-parser.c (c_parser_postfix_expression): Likewise.
19796         * c-typeck.c (c_end_compound_stmt): Likewise.
19797         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
19798         * tree-iterator.c (stmt_list_cache): Change to a VEC.
19799         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
19800         (free_stmt_list): Likewise.
19801         * tree.h (struct tree_statement_list): Include typed_tree instead
19802         of tree_common.
19803         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
19804         as TS_TYPED instead of TS_COMMON.
19805
19806 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19807             Uros Bizjak  <ubizjak@gmail.com>
19808
19809         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
19810         (HAVE_AS_IX86_TLSGDPTL): Define.
19811         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
19812         (HAVE_AS_IX86_TLSLDMPLT): Define.
19813         * configure: Regenerate.
19814         * config.in: Regenerate.
19815         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
19816         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
19817         TARGET_SUN_TLS, use @tlsgdplt or @plt.
19818         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
19819         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
19820         @tlsldmplt or @plt.
19821         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
19822
19823 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
19824
19825         * sched-int.h (struct _haifa_deps_insn_data): New members cond
19826         and reverse_cond.
19827         (INSN_COND, INSN_REVERSE_COND): New macros.
19828         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
19829         once.
19830         (sched_get_condition_with_rev): Cache the results, and look them up
19831         if possible.
19832         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
19833         are clobbered by the current insn.
19834         * target.def (exposed_pipline): New sched data hook.
19835         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
19836         * doc/tm.texi: Regenerate.
19837
19838 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19839
19840         PR tree-optimization/49170
19841         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
19842         sincos or cexp.
19843
19844 2011-05-27  Richard Guenther  <rguenther@suse.de>
19845
19846         PR middle-end/49189
19847         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
19848         of comparisons.
19849
19850 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
19851
19852         * haifa-sched.c (sched_scan_info): Remove.
19853         (schedule_block): Call sched_extend_luids rather than sched_init_luids
19854         with NULL args.
19855         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
19856         Remove functions.
19857         (sched_scan): Remove.
19858         (sched_extend_luids): Renamed from luids_extend_insn and no longer
19859         static.  All callers changed.
19860         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
19861         static.  All callers changed.
19862         (sched_init_luids): Remove all arguments except the first.  All
19863         callers changed.  Don't use sched_scan.
19864         (haifa_init_h_i_d): Likewise.
19865         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
19866         manually rather than using sched_init_luids.  Likewise with
19867         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
19868         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
19869         rather than sched_init_luids with NULL args.
19870         * sel-sched-ir.c (new_insns): Remove variable.
19871         (sched_scan): New static function, previously in haifa-sched.c.  Remove
19872         all arguments but the first two; all callers changed.
19873         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
19874         rather than sched_init_luids.
19875         (sel_init_bbs): Remove second argument.  All callers changed.
19876         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
19877         with NULL arguments.
19878         (create_insn_rtx_from_pattern): Likewise.
19879         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
19880         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
19881         (sched_init_insn_luid, sched_extend_luids): Declare.
19882         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
19883         declarations.
19884
19885 2011-05-27  Richard Guenther  <rguenther@suse.de>
19886
19887         PR middle-end/49177
19888         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
19889         A CMP B ? (T) true : (T) false for non-integral types T again.
19890
19891 2011-05-27  Jan Hubicka  <jh@suse.cz>
19892
19893         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
19894         so 0 means NULL string.
19895         (lto_output_string_with_length): ... here.
19896         (lto_output_string, output_string_cst, output_identifier): Update
19897         handling of NULL strings.
19898         (lto_output_location_bitpack): New function.
19899         (lto_output_location): Use it.
19900         (lto_output_tree_ref): Use output_record_start.
19901         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
19902         len values.
19903         * lto-streamer-in.c (string_for_index): Break out from ...; offset
19904         values by 1.
19905         (input_string_internal): ... here;
19906         (input_string_cst, input_identifier, lto_input_string): Update handling
19907         of NULL strings.
19908         (lto_input_location_bitpack): New function
19909         (lto_input_location): Use it.
19910         (unpack_ts_type_common_value_fields): Pack align & alias in var len
19911         values.
19912         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
19913         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
19914         (bp_pack_value): Sanity check the value range.
19915         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
19916         New functions.
19917         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
19918         New functions.
19919
19920 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
19921
19922         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
19923         call_arg_location instructions down the floor.
19924
19925 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
19926
19927         PR rtl-optimization/49154
19928         * ira.c (setup_pressure_classes): Process class without sublcasses
19929         as a candidate for pressure classes.
19930
19931 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
19932
19933         PR rtl-optimization/48575
19934         * genrecog.c (position_type): New enum.
19935         (position): New structure.
19936         (decision): Use position structure instead of a string.
19937         (root_pos, peep2_insn_pos_list): New variables.
19938         (next_position, compare_positions): New functions.
19939         (new_decision): Use position structures instead of strings.
19940         (maybe_both_true): Likewise.
19941         (change_state): Likewise.
19942         (write_tree): Likewise.
19943         (make_insn_sequence): Likewise.
19944
19945 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
19946
19947         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
19948         TS_BASE instead of TS_COMMON.
19949         (find_decls_types_r): Check for TS_TYPED structure before looking at
19950         TREE_TYPE.
19951         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
19952         Add chain field.
19953         (BLOCK_CHAIN): Use new chain field.
19954
19955 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
19956
19957         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
19958         moves expensive on Power7 also.
19959
19960 2011-05-26  Richard Guenther  <rguenther@suse.de>
19961
19962         * fold-const.c (fold_unary_loc): Remove bogus code.
19963
19964 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
19965
19966         * tree.h (struct tree_identifier): Inherit from tree_typed, not
19967         tree_common.
19968         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
19969         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
19970         TS_BASE instead of TS_COMMON.
19971         * varasm.c (assemble_name): Remove assert.
19972
19973 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
19974
19975         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
19976         substituted first.
19977         * libgcc-std.ver: Delete file.
19978
19979 2011-05-26  Richard Guenther  <rguenther@suse.de>
19980
19981         PR tree-optimization/48702
19982         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
19983         only when we know the base address is within bounds.
19984         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
19985         assume the base address of TARGET_MEM_REFs is in bounds.
19986
19987 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19988
19989         PR target/49099
19990         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
19991         declaration in TARGET_SOLARIS.
19992
19993 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
19994
19995         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
19996         The instruction is then expanded explicitly.
19997         (supported_compare): Callable instruction.
19998         (compare): Likewise.
19999
20000 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
20001
20002         PR c++/49165
20003         * gimplify.c (shortcut_cond_r): Don't special case
20004         COND_EXPRs if they have void type on one of their arms.
20005
20006 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
20007
20008         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
20009         to reduce duplication, and to achieve a slightly more logical order
20010         of operations.
20011
20012 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
20013
20014         PR tree-optimization/49161
20015         * tree-vrp.c (struct case_info): New type.
20016         (compare_case_labels): Sort case_info structs instead of
20017         trees, and not primarily by CASE_LABEL uids but by
20018         label_for_block indexes.
20019         (find_switch_asserts): Put case labels into struct case_info
20020         array instead of TREE_VEC, adjust sorting, compare label_for_block
20021         values instead of CASE_LABELs.
20022
20023 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20024
20025         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
20026         ("orndi3_neon"): Likewise.
20027         ("bic<mode>3_neon"): Likewise.
20028
20029 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
20030
20031         PR tree-optimization/49038
20032         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
20033         Ensure at least one epilogue iteration if required by data
20034         accesses with gaps.
20035         * tree-vectorizer.h (struct _loop_vec_info): Add new field
20036         to mark loops that require peeling for gaps.
20037         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
20038         (vect_get_known_peeling_cost): Take peeling for gaps into
20039         account.
20040         (vect_transform_loop): Generate epilogue if required by data
20041         access with gaps.
20042         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
20043         loop as requiring an epilogue if there are gaps in the end of
20044         the strided group.
20045
20046 2011-05-25  Ian Lance Taylor  <iant@google.com>
20047
20048         * godump.c (go_format_type): Output the first field with a usable
20049         Go type, if any.
20050
20051 2011-05-25  Ian Lance Taylor  <iant@google.com>
20052
20053         * godump.c (go_format_type): Check for invalid type names, pointer
20054         target types, and struct field types.
20055
20056 2011-05-25  Jason Merrill  <jason@redhat.com>
20057
20058         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
20059
20060 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
20061
20062         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
20063
20064 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
20065
20066         * config/i386/i386.md (*movqi_extv_1)): Put back
20067         "register_operand" check in "type" calculation.
20068         (*movqi_extzv_2): Likewise.
20069
20070 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
20071
20072         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
20073
20074 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
20075
20076         PR bootstrap/49160
20077         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
20078         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
20079         __divxc3, __divtc3): Wrap definitions in #ifndef.
20080
20081 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
20082
20083         PR target/49142
20084         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
20085         "register_operand" check and replace q_regs_operand with
20086         QIreg_operand in "type" calculation.
20087         (*movqi_extv_1): Likewise.
20088         (*movqi_extzv_2_rex64): Likewise.
20089         (*movqi_extzv_2): Likewise.
20090
20091         * config/i386/predicates.md (QIreg_operand): New.
20092
20093 2011-05-25  Richard Guenther  <rguenther@suse.de>
20094
20095         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
20096         type-based offset disambiguation, streamline MEM_REF and
20097         TARGET_MEM_REF handling.
20098
20099 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
20100
20101         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
20102         (bdesc_special_args): Add pause intrinsic.
20103
20104         * config/i386/i386.md (UNSPEC_PAUSE): New.
20105         (pause): Likewise.
20106         (*pause): Likewise.
20107         * config/i386/ia32intrin.h (__pause): Likewise.
20108
20109         * doc/extend.texi (X86 Built-in Functions): Add documentation for
20110         pause intrinsic.
20111
20112 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20113
20114         PR tree-optimization/46728
20115         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
20116         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
20117
20118 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
20119
20120         * tree.h (struct tree_exp): Inherit from struct tree_typed.
20121         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
20122         instead of TS_COMMON.
20123
20124 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
20125
20126         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
20127         LIBGCC2_GNU_PREFIX is defined.
20128         (__N): New macro.
20129         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
20130         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
20131         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
20132         __clz_tab): Define using __N.
20133         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
20134         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
20135         * target.def (libfunc_gnu_prefix): New hook.
20136         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
20137         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
20138         * doc/tm.texi: Regenerate.
20139         * system.h (LIBGCC2_GNU_PREFIX): Poison.
20140         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
20141         account.
20142         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
20143         (init_optabs): Likewise for the bswap libfuncs.
20144         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
20145         and divide.
20146         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
20147         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
20148         * libgcc-std.ver: Remove.
20149         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
20150         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
20151         libgcc-std.ver.
20152         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
20153         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
20154         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
20155         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
20156         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
20157         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
20158         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
20159         * config/fixed-bit.h (FIXED_OP): Define differently depending on
20160         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
20161         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
20162
20163 2011-05-25  Jan Hubicka  <jh@suse.cz>
20164
20165         * lto-streamer-out.c (output_record_start): Use lto_output_enum
20166         (lto_output_tree): Use output_record_start.
20167         * lto-streamer-in.c (input_record_start): Use lto_input_enum
20168         (lto_get_pickled_tree): Use input_record_start.
20169         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
20170         (lto_value_range_error): New function.
20171         * lto-streamer.h (lto_value_range_error): Declare.
20172         (lto_output_int_in_range, lto_input_int_in_range): New functions.
20173         (lto_output_enum, lto_input_enum): New macros.
20174
20175 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
20176
20177         * common.opt (flag_stack_usage_info): New variable.
20178         (-Wstack-usage): New option.
20179         * doc/invoke.texi (Warning options): Document -Wstack-usage.
20180         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
20181         <OPT_fstack_usage>: Likewise.
20182         * toplev.c (output_stack_usage): Handle -Wstack-usage.
20183         * calls.c (expand_call): Test flag_stack_usage_info variable instead
20184         of flag_stack_usage.
20185         (emit_library_call_value_1): Likewise.
20186         * explow.c (allocate_dynamic_stack_space): Likewise.
20187         * function.c (instantiate_virtual_regs ): Likewise.
20188         (prepare_function_start): Likewise.
20189         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
20190         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
20191         * config/arm/arm.c (arm_expand_prologue): Likewise.
20192         (thumb1_expand_prologue): Likewise.
20193         * config/avr/avr.c (expand_prologue): Likewise.
20194         * config/i386/i386.c (ix86_expand_prologue): Likewise.
20195         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
20196         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
20197         * config/mips/mips.c (mips_expand_prologue): Likewise.
20198         * config/pa/pa.c (hppa_expand_prologue): Likewise.
20199         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
20200         * config/s390/s390.c (s390_emit_prologue): Likewise.
20201         * config/sh/sh.c (sh_expand_prologue): Likewise.
20202         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
20203         * config/spu/spu.c (spu_expand_prologue): Likewise.
20204
20205 2011-05-25  Richard Guenther  <rguenther@suse.de>
20206
20207         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
20208         (gimple_canonical_types_compatible_p): Likewise.
20209
20210 2011-05-25  Jan Hubicka  <jh@suse.cz>
20211
20212         PR middle-end/49062
20213         * ipa.c (function_and_variable_visibility): Only add to same
20214         comdat group list if DECL_ONE_ONLY.
20215
20216 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
20217
20218         PR rtl-optimization/49014
20219         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
20220
20221 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
20222
20223         PR target/49128
20224         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
20225
20226 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
20227
20228         PR rtl-optimization/48757
20229         * ira-build.c (loop_with_eh_edge_p): Rename to
20230         loop_with_complex_edge_p, check edges on complexity, make function
20231         conditional.
20232         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
20233         conditional.
20234
20235 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
20236
20237         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
20238         force flag_ira_share_save_slots to 0.
20239
20240 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
20241
20242         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
20243         (vt_initialize): Set PROLOGUE_BB unconditionally.
20244         Add block comment about CFA_BASE_RTX machinery.
20245         Reset FP_CFA_OFFSET to -1 on all invalid paths.
20246         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
20247
20248 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
20249
20250         PR objc/48187
20251         * c-parser.c (c_parser_objc_class_instance_variables): More robust
20252         parsing of syntax error in ObjC instance variable lists.  In
20253         particular, avoid an infinite loop if there is a stray ']'.
20254         Updated error message.
20255
20256 2011-05-24  Ian Lance Taylor  <iant@google.com>
20257
20258         * godump.c (go_define): Don't accept a string immediately after
20259         another operand.
20260
20261 2011-05-24  Ian Lance Taylor  <iant@google.com>
20262
20263         * godump.c (struct godump_container): Add invalid_hash field.
20264         (go_format_type): Return false if type is found in invalid_hash.
20265         (go_output_typedef): Add invalid type to invalid_hash.
20266         (go_finish): Create and delete invalid_hash.
20267
20268 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20269
20270         PR tree-optimization/46728
20271         * tree-ssa-math-opts.c (powi_table): New.
20272         (powi_lookup_cost): New.
20273         (powi_cost): New.
20274         (powi_as_mults_1): New.
20275         (powi_as_mults): New.
20276         (gimple_expand_builtin_powi): New.
20277         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
20278         (gate_cse_sincos): Remove sincos/cexp restriction.
20279
20280 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20281
20282         PR target/3746
20283         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
20284         mips-tdump native.
20285         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
20286         * mips-tdump.c: Likewise.
20287
20288 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
20289
20290         PR target/49128
20291         * config/i386/driver-i386.c (host_detect_local_cpu): Always
20292         add -mno-XXX.  Handle FMA.
20293
20294 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
20295
20296         PR rtl-optimization/48633
20297         * ira-build.c (loop_with_eh_edge_p): New function.
20298         (mark_loops_for_removal): Use it.
20299
20300 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
20301
20302         PR rtl-optimization/48971
20303         * ira.c (setup_pressure_classes): Don't check register move cost
20304         for classes with one registers.  Don't add pressure class if there
20305         is a pressure class with the same available hard registers.
20306         Check contains_reg_of_mode.  Fix a typo in collecting
20307         temp_hard_regset.  Ignore hard registers not belonging to a class.
20308
20309 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
20310
20311         PR target/49133
20312         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
20313
20314 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
20315             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20316
20317         PR gcov-profile/48845
20318         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
20319
20320 2011-05-24  Richard Guenther  <rguenther@suse.de>
20321
20322         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
20323         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
20324         (gimple_types_compatible_p_1): Adjust.
20325         (iterative_hash_canonical_type): Do not bother about complete vs.
20326         incomplete types.
20327         (gimple_canonical_types_compatible_p): Likewise.
20328
20329 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20330
20331         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
20332
20333 2011-05-24  Richard Guenther  <rguenther@suse.de>
20334
20335         PR bootstrap/49078
20336         * gimple.c (gimple_register_canonical_type): Revert
20337         previous change.
20338         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
20339         does not for a tree for the case where it matters.  Cache
20340         pointer-type alias-sets.
20341
20342 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
20343
20344         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
20345         (OBJS): Remove options.o, opts-common.o and prefix.o.
20346         (OBJS-libcommon-target): New.
20347         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
20348         (BACKEND): Include libcommon-target.a.
20349         (MOSTLYCLEANFILES): Include libcommon-target.a.
20350         (libcommon-target.a): New.
20351         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
20352         prefix.o.
20353
20354 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
20355
20356         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
20357         parts of output shared with the driver.
20358         * optc-gen.awk: Don't generate parts of output not shared with the
20359         driver.
20360         * opth-gen.awk: Remove GCC_DRIVER conditionals.
20361         * doc/options.texi (SourcerInclude): Mention options-save.c.
20362         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
20363         (OBJS): Add options-save.o.
20364         (options-save.c, options-save.o): New.
20365         (options.o): Update dependencies.
20366         (gcc-options.o): Remove.
20367         (mostlyclean): Remove options-save.c.
20368
20369 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
20370
20371         PR debug/49032
20372         * dbxout.c: Include cgraph.h.
20373         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
20374         and without value expr, return NULL if no varpool node exists for
20375         it or if it is not needed.
20376         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
20377
20378         PR c/49120
20379         * c-decl.c (start_decl): Convert expr to void_type_node.
20380
20381 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
20382
20383         PR rtl-optimization/48826
20384         * emit-rtl.c (try_split): When splitting a call that is followed
20385         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
20386
20387 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
20388
20389         * cfgexpand.c (expand_debug_expr): For unused non-addressable
20390         parameters passed in memory prefer using DECL_INCOMING_RTL over
20391         the pseudos it will be copied into.
20392
20393 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
20394
20395         PR target/47315
20396         * config/i386/i386.c (ix86_option_override_internal): Save the
20397         initial options after checking vzeroupper.
20398
20399 2011-05-23  David Li  <davidxl@google.com>
20400
20401         PR tree-optimization/48988
20402         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
20403         Initialize has_valid_pred for each pred chain.
20404
20405 2011-05-23  Richard Guenther  <rguenther@suse.de>
20406
20407         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
20408         (iterative_hash_gimple_type): Always hash type names.
20409
20410 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
20411
20412         * c-typeck.c (build_function_call_vec): Tweak call to
20413         check_function_arguments.
20414
20415 2011-05-23  Richard Guenther  <rguenther@suse.de>
20416
20417         PR tree-optimization/49115
20418         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
20419         is not necessarily carried out, do not claim it kills the ref.
20420         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
20421
20422 2011-05-23  Richard Guenther  <rguenther@suse.de>
20423
20424         PR middle-end/15419
20425         * builtins.c (fold_builtin_memory_op): Be less restrictive about
20426         what pointer types we accept for folding.
20427
20428 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20429
20430         * gthr-gnat.c: Remove.
20431         * gthr-gnat.h: Remove.
20432         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
20433         * config/t-freebsd (LIB2ADDEH): Likewise.
20434         * config/t-linux (LIB2ADDEH): Likewise.
20435         * config/t-sol2 (LIB2ADDEH): Likewise.
20436         * config/ia64/t-vms (LIB2ADDEH): Likewise.
20437         * configure.ac (target_thread_file): Remove gnat handling.
20438         * configure: Regenerate.
20439         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
20440
20441 2011-05-23  Tristan Gingold  <gingold@adacore.com>
20442             Eric Botcazou  <ebotcazou@adacore.com>
20443
20444         * gcov.c (create_file_names): If no object directory is specified,
20445         keep the directory of the file.
20446
20447 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20448
20449         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
20450         * configure: Regenerate.
20451
20452 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
20453
20454         PR middle-end/48973
20455         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
20456         failed and the comparison has a single bit signed type, use
20457         constm1_rtx instead of const1_rtx for true value.
20458         (do_store_flag): If ops->type is single bit signed type, disable
20459         signel bit test optimization and pass -1 instead of 1 as last
20460         parameter to emit_store_flag_force.
20461
20462 2011-05-23  Tom de Vries  <tom@codesourcery.com>
20463
20464         PR target/45098
20465         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
20466         function.
20467         (infer_loop_bounds_from_undefined): Use new function.
20468
20469 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
20470
20471         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
20472         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
20473         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
20474         and -O0 otherwise.
20475         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
20476
20477 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
20478
20479         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
20480         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
20481         returns true.
20482
20483 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
20484
20485         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
20486
20487 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
20488
20489         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
20490         UNSPEC_MOVE_PIC pattern.
20491
20492 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
20493
20494         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
20495         (sparc-*-rtems*): Likewise.
20496         (sparc64-*-elf*): Likewise.
20497         (sparc64-*-rtems*): Likewise.
20498         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
20499         * config/sparc/t-crtin: New file.
20500         * config/sparc/t-sol2 (crti.o): Delete rule.
20501         (crtn.o): Likewise.
20502         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
20503         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
20504         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
20505         (ENDFILE_SPEC): Add crtn.o.
20506
20507 2011-05-22  Tom de Vries  <tom@codesourcery.com>
20508
20509         PR middle-end/48689
20510         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
20511         CODE_CONTAINS_STRUCT (TS_COMMON).
20512
20513 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
20514
20515         PR middle-end/49029
20516         * expmed.c (extract_fixed_bit_field): Test whether target can be used
20517         only after deciding which mode to use.
20518
20519 2011-05-22  Tom de Vries  <tom@codesourcery.com>
20520
20521         PR target/45098
20522         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
20523         for call to get_shiftadd_cost.
20524
20525 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
20526
20527         PR target/49104
20528         * config/i386/cpuid.h (bit_MMXEXT): New define.
20529
20530 2011-05-22  Nick Clifton  <nickc@redhat.com>
20531
20532         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
20533         initialisation of non-existant args[2] element.  Use args[] array
20534         not arg[] array to pass arguments to build_function_type_list.
20535
20536 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
20537
20538         PR tree-optimization/49087
20539         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
20540
20541 2011-05-21  Jason Merrill  <jason@redhat.com>
20542
20543         PR c++/49092
20544         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
20545         static storage duration.
20546
20547 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
20548
20549         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
20550         frame pointer.
20551
20552 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
20553
20554         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
20555         false if there are call-saved registers here...
20556         (sparc_can_use_return_insn_p): ...but here instead.
20557         (save_or_restore_regs): Fix thinko.
20558         (sparc_expand_prologue): Use current_function_is_leaf.
20559         (sparc_frame_pointer_required): Likewise.
20560
20561 2011-05-21  Nick Clifton  <nickc@redhat.com>
20562
20563         PR target/49098
20564         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
20565
20566 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
20567
20568         * gengtype.c (walk_type): Implemented "atomic" GTY option.
20569         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
20570
20571 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
20572
20573         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
20574         * optc-gen.awk: Move common code to opt-read.awk.
20575         * opth-gen.awk: Likewise.
20576         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
20577
20578 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
20579
20580         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
20581
20582 2011-05-20  Tom de Vries  <tom@codesourcery.com>
20583
20584         PR target/45098
20585         * tree-ssa-loop-ivopts.c: Include expmed.h.
20586         (get_shiftadd_cost): New function.
20587         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
20588
20589 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
20590
20591         PR bootstrap/49086
20592         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
20593         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
20594
20595 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
20596
20597         * Makefile.in: Update comment referring to $(OBJS-common).
20598
20599 2011-05-20  Ian Lance Taylor  <iant@google.com>
20600
20601         * godump.c (go_output_typedef): Put enum constants in the macro
20602         hash table to avoid duplicate Go const definitions.
20603
20604 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
20605
20606         * Makefile.in (LIBDEPS): Add libcommon.a.
20607         (LIBS): Likewise.
20608         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
20609         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
20610         pretty-print.o and version.o.
20611         (OBJS-libcommon): New.
20612         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
20613         (BACKEND): Add libcommon.a.
20614         (MOSTLYCLEANFILES): Likewise.
20615         (libcommon.a): New.
20616         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
20617         (cpp$(exeext)): Likewise.
20618         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
20619         pretty-print.o and input.o.
20620         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
20621         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
20622         (errors.o): Remove.
20623         (mips-tfile): Don't explicitly use version.o.
20624         (mips-tdump): Likewise.
20625         (gcov.o): Depend on $(DIAGNOSTIC_H).
20626         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
20627         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
20628         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
20629         * gcov-dump.c: Include intl.h and diagnostic.h.
20630         (main): Initialize diagnostics.
20631         * gcov.c: Include diagnostic.h.
20632         (fnotice): Remove.
20633         (main): Initialize diagnostics.
20634         * lto-wrapper.c: Include diagnostic.h.
20635         (main): Initialize diagnostics.
20636
20637 2011-05-20  Michael Matz  <matz@suse.de>
20638
20639         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
20640
20641 2011-05-20  Michael Matz  <matz@suse.de>
20642             Richard Guenther  <rguenther@suse.de>
20643
20644         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
20645         use lto_streamer_cache_append directly instead of returning a VEC.
20646         (preload_common_node): Remove.
20647         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
20648         track seen nodes.
20649         (lto_streamer_cache_create): Call lto_preload_common_nodes.
20650
20651 2011-05-20  Richard Guenther  <rguenther@suse.de>
20652
20653         PR tree-optimization/49079
20654         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
20655         MEM_REFs correctly for the trailing array access detection.
20656         Special case constants the same way as decls for overall size
20657         constraining.
20658
20659 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
20660
20661         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
20662         argument expansion.
20663
20664 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
20665
20666         PR tree-optimization/49073
20667         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
20668         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
20669         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
20670
20671 2011-05-20  Richard Guenther  <rguenther@suse.de>
20672
20673         PR middle-end/48849
20674         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
20675         of pointer types the same way the middle-end does.
20676
20677 2011-05-20  Richard Guenther  <rguenther@suse.de>
20678
20679         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
20680         or pointer-to chains.  Delay all fixup to uniquify_nodes.
20681
20682 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
20683
20684         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
20685         (fma4_fmaddsub): Likewise
20686
20687 2011-05-19  Jan Hubicka  <jh@suse.cz>
20688
20689         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
20690         (GIMPLE_TYPE_PAIR_SIZE): New macro.
20691         (type_pair_cache): New static var.
20692         (lookup_type_pair): Use fixed sized custom hash; make inline.
20693         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
20694         calls of lookup_type_pair.
20695         (print_gimple_types_stats): Remove cache stats.
20696         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
20697         and gtc_ob.
20698
20699 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
20700
20701         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
20702         when TARGET_RDRND is active.
20703         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
20704         Generate dummy SImode target register when target is NULL.
20705
20706 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
20707
20708         * config/arm/arm-fpus.def: New.
20709         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
20710         arm-fpus.def.
20711         * config/arm/arm-tables.opt: Regenerate.
20712         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
20713         (arm_option_override): Don't decode FPU name to string here.
20714         * config/arm/arm.opt (mfpu=): Use Enum.
20715         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
20716         Update dependencies.
20717
20718 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
20719
20720         * collect2.c: Include diagnostic.h.
20721         (fatal_perror, fatal, error, fancy_abort): Remove.
20722         (main): Set progname.  Call xmalloc_set_program_name and
20723         diagnostic_initialize.
20724         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
20725         scan_libraries, resolve_lib_name): Call fatal_error instead of
20726         fatal and fatal_perror.
20727         * collect2.h (error, fatal, fatal_perror): Don't declare.
20728         * tlink.c: Include diagnostic-core.h.
20729         (recompile_files): Call fatal_error instead of fatal_perror.
20730         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
20731         pretty-print.o and input.o.
20732         (collect2.o, tlink.o): Update dependencies.
20733
20734 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20735
20736         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
20737
20738 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20739
20740         PR target/40483
20741         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
20742         COMDAT group syntax, both SPARC and x86 variants.
20743         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
20744         * configure: Regenerate.
20745         * config/sol2.h (TARGET_SOLARIS): Define.
20746         (PUSHSECTION_FORMAT): Remove.
20747         (SECTION_NAME_FORMAT): Define.
20748         * config/sol2.c: Include hashtab.h.
20749         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
20750         expansion, using SECTION_NAME_FORMAT.
20751         (solaris_comdat_htab): New variable.
20752         (struct comdat_entry): Define.
20753         (comdat_hash): New function.
20754         (comdat_eq): New function.
20755         (solaris_elf_asm_comdat_section): New function.
20756         (solaris_define_comdat_signature): New function.
20757         (solaris_code_end): New function.
20758         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
20759         (solaris_code_end): Declare.
20760         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
20761         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
20762         solaris_code_end.
20763         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
20764         Remove ATTRIBUTE_UNUSED.
20765         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
20766         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
20767         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
20768         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
20769         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
20770         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
20771         (PUSHSECTION_FORMAT): Remove.
20772         (SECTION_NAME_FORMAT): Redefine.
20773
20774 2011-05-19  Kai Tietz  <ktietz@redhat.com>
20775
20776         * tree-cfg.c (verify_gimple_assign_binary): Barf on
20777         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
20778         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
20779
20780 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
20781             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20782
20783         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
20784
20785 2011-05-19  Richard Guenther  <rguenther@suse.de>
20786
20787         PR middle-end/48985
20788         * tree-object-size.c (addr_object_size): If the pointed-to
20789         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
20790
20791 2011-05-19  Richard Guenther  <rguenther@suse.de>
20792
20793         * gimple.c (gimple_types_compatible_p_1): Compare names of
20794         the types themselves.
20795         (iterative_hash_gimple_type): And hash them that way.
20796         (gimple_register_type_1): If we register a main variant properly
20797         initialize the leader to ourselves.
20798
20799 2011-05-19  Tom de Vries  <tom@codesourcery.com>
20800
20801         PR target/45098
20802         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
20803         get_loop_invariant_expr_id.
20804         (get_loop_invariant_expr_id): Use get_expr_id.
20805         (parm_decl_cost): New function.
20806         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
20807         Improve bound cost estimation.  Use different inv_expr_id for elim and
20808         express cases.
20809
20810 2011-05-19  Tom de Vries  <tom@codesourcery.com>
20811
20812         PR target/45098
20813         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
20814         cost_base.cost == 0.
20815
20816 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
20817
20818         PR target/49002
20819         * config/i386/sse.md
20820         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
20821         load cast.
20822
20823 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
20824
20825         PR tree-optimization/49039
20826         * tree-vrp.c (extract_range_from_binary_expr): For
20827         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
20828         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
20829
20830 2011-05-18  Tom de Vries  <tom@codesourcery.com>
20831
20832         PR target/45098
20833         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
20834
20835 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
20836
20837         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
20838         (*tls_global_dynamic_64): Ditto.
20839         (*tls_local_dynamic_base_32_gnu): Ditto.
20840         (*tls_local_dynamic_base_64): Ditto.
20841         (tls_initial_exec_64_sun): Ditto.
20842
20843 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
20844
20845         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
20846         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
20847         bf592-none.
20848         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
20849         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
20850         * config/bfin/bfin.c (bfin_cpus): Add bf592.
20851         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
20852         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
20853         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
20854         * config/bfin/elf.h (LIB_SPEC): Add bf592.
20855
20856 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
20857
20858         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
20859         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
20860         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
20861         target_thread_pointer, arm_structure_size_boundary, struct
20862         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
20863         struct abi_name, arm_all_abis): Remove.
20864         (arm_option_override) Don't process most enumerated option values here.
20865         Don't process target_fpe_name here.  Work with integer not string for
20866         structure size boundary; use separate diagnostics for each case.
20867         * config/arm/arm.h (enum float_abi_type, enum
20868         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
20869         to arm-opts.h.
20870         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
20871         arm_structure_size_boundary): Remove.
20872         * config/arm/arm.opt (mabi=): Use Enum and Init.
20873         (arm_abi_type): New Enum and EnumValue entries.
20874         (mfloat-abi=): Use Enum and Init.
20875         (float_abi_type): New Enum and EnumValue entries.
20876         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
20877         (mfp16-format=): Use Enum and Init.
20878         (arm_fp16_format_type): New Enum and EnumValue entries.
20879         (mstructure-size-boundary=): Use UInteger and Init.
20880         (mtp=): Use Enum and Init.
20881         (arm_tp_type): New Enum and EnumValue entries.
20882
20883 2011-05-18  Richard Guenther  <rguenther@suse.de>
20884
20885         PR tree-optimization/49018
20886         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
20887         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
20888         gimple_has_side_effects.
20889
20890 2011-05-18  Richard Guenther  <rguenther@suse.de>
20891
20892         * gimple.c (gimple_register_type_1): New function, split out from ...
20893         (gimple_register_type): ... here.  Avoid infinite recursion.
20894
20895 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
20896
20897         PR tree-optimization/41881
20898         * tree-vectorizer.h (struct _loop_vec_info): Add new field
20899         reduction_chains along with a macro for its access.
20900         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
20901         (destroy_loop_vec_info): Free reduction chains.
20902         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
20903         (vect_is_slp_reduction): New function.
20904         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
20905         (vect_create_epilog_for_reduction): Support SLP reduction chains.
20906         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
20907         definition types for reduction chains.
20908         (vect_supported_load_permutation_p): Don't allow permutations for
20909         reduction chains.
20910         (vect_analyze_slp_instance): Support reduction chains.
20911         (vect_analyze_slp): Try to build SLP instance from reduction chains.
20912         (vect_get_constant_vectors):  Handle reduction chains.
20913         (vect_schedule_slp_instance): Mark the first statement of the
20914         reduction chain as reduction.
20915
20916 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
20917
20918         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
20919         names for group elements access.
20920         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
20921         reduction chains as well.  Remove data reference and interleaving
20922         related words from the fields names.
20923         * tree-vect-loop.c (vect_transform_loop): Use new names for group
20924         elements access.
20925         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
20926         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
20927         vect_update_interleaving_chain, vect_same_range_drs,
20928         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
20929         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
20930         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
20931         vect_analyze_group_access, vect_analyze_data_ref_access,
20932         vect_create_data_ref_ptr, vect_transform_strided_load,
20933         vect_record_strided_load_vectors): Likewise.
20934         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
20935         vect_model_load_cost, vectorizable_store, vectorizable_load,
20936         vect_remove_stores, new_stmt_vec_info): Likewise.
20937         * tree-vect-slp.c (vect_build_slp_tree,
20938         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
20939
20940 2011-05-18  Richard Guenther  <rguenther@suse.de>
20941
20942         PR middle-end/48989
20943         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
20944         operand verification.
20945         (verify_gimple_assign_binary): Likewise.
20946         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
20947         to non-1-precision BOOLEAN_TYPEs.
20948
20949 2011-05-18  Tom de Vries  <tom@codesourcery.com>
20950
20951         PR target/45098
20952         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
20953
20954 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
20955
20956         PR tree-optimization/49000
20957         * tree-ssa.c (execute_update_addresses_taken): Call
20958         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
20959         be rewritten and decl has been marked for renaming, reset
20960         the debug stmt.
20961
20962 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
20963
20964         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
20965         enum_opts_set when testing if attributes have set -mfpmath=.
20966
20967 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
20968
20969         * config/mips/mips.c (mips_handle_option): Remove unused variable.
20970
20971 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
20972
20973         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
20974         info->entry with 0
20975         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
20976         id.transform_lang_insert_block with NULL.
20977
20978 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
20979
20980         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
20981         (output_fp_compare): Change args 3 and 4 to bool.
20982         (ix86_expand_call): Change arg 6 to bool.
20983         (ix86_attr_length_immediate_default): Change arg 2 to bool.
20984         (ix86_attr_length_vex_default): Change arg 3 to bool.
20985         * config/i386/i386.md: Update all uses.
20986         * config/i386/i386.c: Ditto.
20987         (ix86_flags_dependent): Change return type to bool.
20988
20989 2011-05-17  Richard Guenther  <rguenther@suse.de>
20990
20991         * gimple.c (type_hash_pair_compare): Fix comparison.
20992
20993 2011-05-17  Richard Guenther  <rguenther@suse.de>
20994
20995         * gimple.c (iterative_hash_gimple_type): Simplify singleton
20996         case some more, fix final hash value of the non-singleton case.
20997
20998 2011-05-17  Richard Guenther  <rguenther@suse.de>
20999
21000         PR bootstrap/49013
21001         Revert
21002         2011-05-16  Richard Guenther  <rguenther@suse.de>
21003
21004         * gimple.c (gimple_types_compatible_p_1): Use names of the
21005         type itself, not its main variant.
21006         (iterative_hash_gimple_type): Likewise.
21007
21008 2011-05-17  Richard Guenther  <rguenther@suse.de>
21009
21010         * gimple.c (gimple_register_canonical_type): Use the main-variant
21011         leader for computing the canonical type.
21012
21013 2011-05-17  Nick Clifton  <nickc@redhat.com>
21014
21015         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
21016         moves.
21017
21018         * config/rx/rx.md: Add peephole to remove redundant extensions
21019         after loads.
21020         (bitset_in_memory): Use rx_restricted_mem_operand.
21021         (bitinvert_in_memory): Likewise.
21022         (bitclr_in_memory): Likewise.
21023
21024 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
21025             Nick Clifton  <nickc@redhat.com>
21026
21027         * config/rx/rx.md: Add peepholes to match a register move followed
21028         by a comparison of the moved register.  Replace these with an
21029         addition of zero that does both actions in one instruction.
21030
21031 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
21032
21033         PR target/48986
21034         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
21035         predicate to allow CONST_INT.
21036         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
21037
21038 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
21039
21040         * opts-common.c (opt_enum_arg_to_value): New.
21041         * opts.h (opt_enum_arg_to_value): Declare.
21042         * config/i386/i386.opt (fpmath): Remove.
21043         (mfpmath=): Use Enum, Init and Save.
21044         (fpmath_unit): New Enum and EnumValue entries.
21045         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
21046         name for function fpmath state.
21047         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
21048         * config/i386/i386.c: Include diagnostic.h.
21049         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
21050         (ix86_target_string): Take enum fpmath_unit value instead of string.
21051         (ix86_debug_options): Update call to ix86_target_string.
21052         (ix86_option_override_internal): Don't process fpmath strings here.
21053         (x86_function_specific_save, ix86_function_specific_restore):
21054         Don't handle fpmath state specially.
21055         (ix86_function_specific_print): Pass fpmath state to
21056         ix86_target_string instead of printing in this function.
21057         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
21058         Handle enum attributes.
21059         (IX86_ATTR_ENUM, ix86_opt_enum): New.
21060         (ix86_valid_target_attribute_tree): Update option_strings
21061         handling.  Handle fpmath as enum option.
21062         (ix86_can_inline_p): Update field names for function fpmath state.
21063         (ix86_expand_builtin): Update call to ix86_target_string.
21064         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
21065         (ix86_fpmath): Remove.
21066         * config/i386/t-i386 (i386.o): Update dependencies.
21067
21068 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
21069
21070         PR preprocessor/48677
21071         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
21072         from decoded_options[0], not from itself.
21073
21074 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
21075
21076         * config/i386/constraints.md (z): New constraint.
21077         * config/i386/i386.c (c): New mode attribute.
21078         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
21079         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
21080         constraint for operand 0.
21081         (*call_vzeroupper): Ditto.
21082         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
21083         (*call_rex64_ms_sysv_vzeroupper): Ditto.
21084         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
21085         Use "lzm" constraint for operand 0.
21086         (*call_pop_vzeroupper): Ditto.
21087         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
21088         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
21089         constraint for operand 0.
21090         (*sibcall_vzeroupper): Ditto.
21091         (*sibcall_rex64_ms_sysv): Ditto.
21092         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
21093         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
21094         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
21095         (*sibcall_pop_vzeroupper): Ditto.
21096         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
21097         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
21098         mode iterator.  Use "<c>zm" constraint for operand 1.
21099         (*call_value_vzeroupper): Ditto.
21100         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
21101         for operand 1.
21102         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
21103         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
21104         *call_value_pop_1.  Use "lzm" constraint for operand 1.
21105         (*call_value_pop_vzeroupper): Ditto.
21106         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
21107         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
21108         mode iterator.  Use "Uz" constraint for operand 1.
21109         (*sibcall_value_vzeroupper): Ditto.
21110         (*sibcall_value_rex64_ms_sysv): Ditto.
21111         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
21112         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
21113         constraint for operand 1.
21114         (*sibcall_value_pop_vzeroupper): Ditto.
21115         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
21116         and "z" constraint for operand 2.
21117         (*tls_global_dynamic_32_gnu): Ditto.
21118         (*tls_local_dynamic_base_32_gnu): Ditto.
21119         (*tls_local_dynamic_base_64): Ditto.
21120         (*tls_local_dynamic_32_once): Ditto.
21121         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
21122         Update all callers.
21123         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
21124
21125 2011-05-16  Richard Guenther  <rguenther@suse.de>
21126
21127         * gimple.c (gimple_types_compatible_p_1): Use names of the
21128         type itself, not its main variant.
21129         (iterative_hash_gimple_type): Likewise.
21130
21131 2011-05-16  Richard Guenther  <rguenther@suse.de>
21132
21133         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
21134         always visit pointer target and function result and argument types.
21135
21136 2011-05-16  Jason Merrill  <jason@redhat.com>
21137
21138         PR c++/48999
21139         * tree-inline.c (copy_statement_list): Put back recursion.
21140
21141 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
21142
21143         PR target/27663
21144         PR target/41076
21145         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
21146         * config/avr/avr.md ("*ior<mode>qi.byte0",
21147         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
21148
21149 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
21150
21151         PR target/45099
21152         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
21153         register is needed for a function argument.
21154
21155 2011-05-16  Richard Guenther  <rguenther@suse.de>
21156
21157         * gimple.c (struct type_hash_pair): New type.
21158         (type_hash_pair_compare): New function.
21159         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
21160
21161 2011-05-16  Revital Eres  <revital.eres@linaro.org>
21162
21163         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
21164
21165 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
21166
21167         * config/i386/i386.md (floating point move splitters): Fix
21168         usage of standard_80387_constant_p.
21169         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
21170
21171 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
21172
21173         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
21174
21175 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
21176
21177         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
21178         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
21179         (tree_ssa_lim_finalize): Likewise.
21180
21181 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
21182
21183         * config/i386/constraint.md (Yd, Yx): New register constraints.
21184         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
21185         Yd conditional register constraint.
21186         (*movtf_internal): Use standard_sse_constant_opcode.
21187         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
21188         Yx conditional register constraint.
21189         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
21190         Yd conditional register constraint.  Use standard_sse_constant_p to
21191         check for valid SSE constants and call standard_sse_constant_opcode to
21192         output SSE insn.
21193         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
21194         constants and call standard_sse_constant_opcode to output SSE insn.
21195         * config/i386/i386.c (ix86_option_ovverride_internal): Set
21196         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
21197         optimize_size is set.
21198         (standard_sse_constant_opcode): Output conditional AVX insn templates.
21199
21200 2011-05-14  Tobias Burnus  <burnus@net-b.de>
21201
21202         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
21203
21204 2011-05-13  Martin Jambor  <mjambor@suse.cz>
21205
21206         * ipa-prop.c (ipa_cst_from_jfunc): New function.
21207         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
21208         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
21209         (evaluate_conditions_for_ipcp_clone): Removed.
21210         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
21211         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
21212         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
21213
21214 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
21215
21216         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
21217         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
21218         lieu of MAY_HAVE_DEBUG_STMTS.
21219         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
21220         debug statements if !MAY_HAVE_DEBUG_STMTS.
21221
21222 2011-05-13  Martin Thuresson  <martint@google.com>
21223
21224         PR gcov-profile/47793
21225         * libgcov.c (gcov_exit): Support relative profile paths.
21226         * doc/invoke.texi (-fprofile-dir): Update for above change.
21227
21228 2011-05-13  Richard Guenther  <rguenther@suse.de>
21229
21230         * gimple.c (gimple_canonical_types_compatible_p): Do not use
21231         type-pair caching, do not compare hashes.
21232
21233 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
21234
21235         PR middle-end/48965
21236         * tree-cfg.c (edge_to_cases_cleanup): Return true.
21237         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
21238
21239 2011-05-13  Kai Tietz  <ktietz@redhat.com>
21240
21241         * gimplify.c (gimplify_expr): Make sure operand is boolified.
21242         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
21243         compatible type for TRUTH_NOT_EXPR.
21244
21245 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
21246
21247         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
21248         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
21249         can_create_pseudo_p ().
21250
21251 2011-05-13  Richard Guenther  <rguenther@suse.de>
21252
21253         PR lto/48978
21254         * gimple.c (iterative_hash_gimple_type): Revert change in
21255         pointer target and function result and argument hashing.
21256
21257 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
21258
21259         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
21260         (*movxf_internal_nointeger): Ditto.
21261         (*movdf_internal_rex64): Ditto.
21262         (*movdf_internal): Ditto.
21263         (*movdf_internal_nointeger): Ditto.
21264         (*movsf_internal): Ditto.
21265         (sincos splitters): Use can_create_pseudo ().
21266
21267 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
21268
21269         * config/i386/i386-opts.h: New.
21270         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
21271         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
21272         ix86_section_threshold): Remove.
21273         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
21274         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
21275         OPT_mbranch_cost_.
21276         (ix86_option_override_internal): Don't decode strings for options
21277         other than -march=, -mtune= and -mfpmath=.  Don't allow for
21278         __attribute__ uses in remaining diagnostics for options with
21279         string arguments.  Don't check for integer arguments being negative.
21280         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
21281         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
21282         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
21283         ix86_branch_cost, ix86_section_threshold): Remove.
21284         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
21285         HeaderInclude.
21286         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
21287         but not Var.
21288         (masm=): Use Enum and Init.
21289         (asm_dialect): New Enum and EnumValue entries.
21290         (mbranch-cost=): Use UInteger.
21291         (mlarge-data-threshold=): Use UInteger and Init.
21292         (mcmodel=): Use Enum and Init.
21293         (cmodel): New Enum and EnumValue entries.
21294         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
21295         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
21296         mregparm=): Use UInteger.
21297         (mstringop-strategy=): Use Enum and Init.
21298         (stringop_alg): New Enum and EnumValue entries.
21299         (mtls-dialect=): Use Enum and Init.
21300         (tls_dialect): New Enum and EnumValue entries.
21301         (mabi=): Use Enum and Init.
21302         (calling_abi): New Enum and EnumValue entries.
21303         (mveclibabi=): Use Enum and Init.
21304         (ix86_veclibabi): New Enum and EnumValue entries.
21305
21306 2011-05-13  Nick Clifton  <nickc@redhat.com>
21307
21308         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
21309         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
21310
21311 2011-05-13  Kai Tietz  <ktietz@redhat.com>
21312
21313         PR middle-end/48984
21314         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
21315         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
21316         (gimple_boolify): Check for cast for boolean_type_node instead for
21317         BOOLEAN_TYPE.
21318
21319 2011-05-13  Richard Guenther  <rguenther@suse.de>
21320
21321         PR tree-optimization/48172
21322         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
21323         multiplying by number of iterations for equal step.
21324         (vect_create_cond_for_alias_checks): Likewise.
21325
21326 2011-05-13  Andreas Schwab  <schwab@redhat.com>
21327
21328         * configure.ac: Use AS_HELP_STRING throughout.
21329         * configure: Regenerate.
21330
21331 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
21332
21333         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
21334         (ix86_emit_restore_regs_using_mov): Likewise.
21335         (ix86_emit_restore_sse_regs_using_mov): Likewise.
21336
21337 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
21338
21339         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
21340         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
21341         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
21342         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
21343         RTX_OK_FOR_OLO10_P): ...here.
21344         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
21345         SYMBOLIC_CONST.
21346
21347 2011-05-12  Kai Tietz  <ktietz@redhat.com>
21348
21349         * gimplify.c (gimple_boolify): Re-boolify expression
21350         arguments even if expression type is of kind BOOLEAN_TYPE.
21351         (gimplify_boolean_expr): Removed.
21352         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
21353         and XOR. Additional take care that we keep expression's type.
21354         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
21355         of TRUTH_AND|OR|XOR_EXPR.
21356
21357 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
21358
21359         PR tree-optimization/48975
21360         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
21361         on all bbs here and free and clear ifc_bbs at the end.
21362
21363 2011-05-12  Richard Guenther  <rguenther@suse.de>
21364
21365         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
21366         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
21367         until after simple checks.
21368         (gimple_types_compatible_p): Likewise.
21369         (iterative_hash_gimple_type): Always hash pointer targets
21370         and function return and argument types.
21371         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
21372         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
21373         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
21374         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
21375         completely in the simple compare section.
21376         (gimple_register_canonical_type): Query the cache again after
21377         registering.
21378
21379 2011-05-12  Richard Guenther  <rguenther@suse.de>
21380
21381         PR tree-optimization/48172
21382         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
21383         the number of iterations from the segment size calculation.
21384         (vect_create_cond_for_alias_checks): Adjust.
21385
21386 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
21387
21388         PR debug/48967
21389         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
21390         if validate_subreg fails.
21391
21392 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
21393
21394         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
21395         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
21396         early.
21397
21398 2011-05-12  DJ Delorie  <dj@redhat.com>
21399
21400         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
21401         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
21402         created builtin into rx_builtins array.
21403         (rx_builtin_decl): New function.
21404         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
21405
21406 2011-05-12  DJ Delorie  <dj@redhat.com>
21407             Nick Clifton  <nickc@redhat.com>
21408
21409         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
21410         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
21411         (rx_is_legitimate_address): Add pre-decrement and post-increment
21412         addressing in HImode and QImode.  Fix test for out of range
21413         REG+INT addressing.
21414         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
21415         (rx_align_for_label): Test label before extracting its usage count.
21416         (rx_adjust_insn_lengths): Fix selection of insn codes.
21417         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
21418
21419 2011-05-11  Jason Merrill  <jason@redhat.com>
21420
21421         * tree.c (type_hash_canon): Use struct tree_type_non_common.
21422
21423 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
21424
21425         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
21426         reindent the subsequent block.
21427
21428 2011-05-11  Satoru Takabayashi  <satorux@google.com>
21429             Paul Pluzhnikov  <ppluzhnikov@google.com>
21430
21431         * doc/install.texi (Configuration): Document --with-linker-hash-style.
21432         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
21433         * config.in: Add LINKER_HASH_STYLE.
21434         * configure.ac: Add --with-linker-hash-style.
21435         * configure: Regenerate.
21436
21437 2011-05-11  Richard Guenther  <rguenther@suse.de>
21438
21439         PR middle-end/48964
21440         * gimple.c (iterative_hash_canonical_type): Fix typo.
21441
21442 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
21443
21444         * config/i386/i386.c (legitimize_tls_address)
21445         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
21446         expanders directly for TARGET_GNU2_TLS.  Determine pic and
21447         __tls_get_addr symbol reference here.  Update call to
21448         gen_tls_global_dynamic_{32,64} for added arguments.
21449         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
21450         expanders directly for TARGET_GNU2_TLS.  Determine
21451         __tls_get_addr symbol reference here.  Update call to
21452         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
21453         unique UNSPEC REG_EQUIV to libcall block.
21454         (ix86_tls_get_addr): Declare static.
21455         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
21456         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
21457         Do not determine pic and __tls_get_addr symbol reference here. Do not
21458         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
21459         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
21460         (tls_global_dynamic_64): Add operand 2.  Do not determine
21461         __tls_get_addr symbol reference here.  Do not call
21462         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
21463         (tls_local_dynamic_base64): Ditto for operand 1.
21464
21465 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
21466
21467         * function.c (expand_function_start): Initialize stack_check_probe_note
21468         only if the generic stack checking mechanism is used.
21469
21470 2011-05-11  Richard Guenther  <rguenther@suse.de>
21471
21472         PR tree-optimization/15256
21473         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
21474         (A & B) | C, combine (A op CST1) op CST2.
21475         (tree_ssa_forward_propagate_single_use_vars): Only bother to
21476         visit assigns that have uses.
21477
21478 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
21479
21480         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
21481         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
21482         (unpack_ts_type_common_value_fields): ...this.  Update comment.
21483         (unpack_value_fields): Adjust for renaming.
21484         (lto_input_ts_type_tree_pointers): Split into...
21485         (lto_input_ts_type_common_tree_pointer): ...this and...
21486         (lto_input_ts_type_non_common_tree_pointers): ...this.
21487         (lto_input_tree_pointers): Adjust for above split.
21488         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
21489         (pack_ts_type_common_value_fields): ...this.  Update comment.
21490         (lto_output_ts_type_tree_pointers): Split into...
21491         (lto_output_ts_type_common_tree_pointers): ...this and...
21492         (lto_output_ts_type_non_common_tree_pointers): ...this.
21493         (lto_output_tree_pointers): Adjust for above split.
21494         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
21495         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
21496         * stor-layout.c (vector_type_mode): Adjust location of mode field.
21497         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
21498         Define.
21499         (struct tree_type): Split into...
21500         (struct tree_type_common: ...this and...
21501         (struct tree_type_with_lang_specific): ...this and...
21502         (struct tree_type_non_common): ...this.  Adjust accessor macros
21503         accordingly.
21504         (TYPE_VALUES_RAW): Define.
21505         (union tree_node): Update for above changes.
21506         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
21507         TS_TYPE_NON_COMMON.
21508         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
21509         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
21510         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
21511         * treestructu.def (TS_TYPE): Remove.
21512         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
21513         Define.
21514
21515 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
21516
21517         PR debug/48159
21518         * tree-ssa.c (reset_debug_uses): New function.
21519         * tree-flow.h (reset_debug_uses): New prototype.
21520         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
21521         * tree-loop-distribution.c (generate_loops_for_partition): Call
21522         reset_debug_uses on the stmts that will be removed.  Keep around
21523         all debug stmts, don't count them as bits in partition bitmap.
21524         (generate_builtin): Don't count debug stmts or labels as bits in
21525         partition bitmap.
21526
21527 2011-05-11  Richard Guenther  <rguenther@suse.de>
21528
21529         * gimple.c (gimple_type_hash_1): Merge with ...
21530         (gimple_type_hash): ... this.
21531         (gtc_visit): Remove mode parameter and simplify accordingly.
21532         (gimple_types_compatible_p_1): Likewise.
21533         (gimple_types_compatible_p): Likewise.
21534         (iterative_hash_gimple_type): Likewise.
21535         (visit): Likewise.
21536         (gimple_type_eq): Adjust.
21537
21538 2011-05-11  Revital Eres  <revital.eres@linaro.org>
21539
21540         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
21541         enters the branch create an anti edge in the opposite direction
21542         to prevent the creation of reg-moves.
21543         * modulo-sched.c: Adjust comment to reflect the fact we are
21544         scheduling closing branch.
21545         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
21546         (stage_count): New field in struct partial_schedule.
21547         (calculate_stage_count): New function.
21548         (normalize_sched_times): Rename to reset_sched_times and handle
21549         incrementing the sched time of the nodes by a constant value
21550         passed as parameter.
21551         (duplicate_insns_of_cycles): Skip closing branch.
21552         (sms_schedule_by_order): Schedule closing branch.
21553         (ps_insn_find_column): Handle closing branch.
21554         (sms_schedule): Call reset_sched_times and adjust the code to
21555         support scheduling of the closing branch.
21556         (ps_insert_empty_row): Update calls to normalize_sched_times
21557         and rotate_partial_schedule functions.
21558
21559 2011-05-11  Richard Guenther  <rguenther@suse.de>
21560
21561         PR middle-end/48953
21562         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
21563
21564 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
21565
21566         * opts.c (finish_options): Move warning settings from process_options.
21567         * toplev.c (process_options): Move warning settings to finish_options.
21568
21569 2011-05-11  Richard Guenther  <rguenther@suse.de>
21570
21571         PR tree-optimization/18041
21572         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
21573         (simplify_bitwise_binary): ... this.  Handle operand conversions
21574         by applying them to the result instead.
21575         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
21576
21577 2011-05-11  Richard Guenther  <rguenther@suse.de>
21578
21579         * gimple.c (gimple_canonical_types_compatible_p): Split out
21580         from gimple_types_compatible_p and friends.  Do not recurse
21581         to pointed-to types.
21582         (gimple_canonical_type_eq): Use it.
21583         (iterative_hash_canonical_type): Split out from
21584         iterative_hash_gimple_type and friends.  Do not recurse
21585         to pointed-to types.
21586         (gimple_canonical_type_hash): Use it, allocate the hash here.
21587
21588 2011-05-11  Revital Eres  <revital.eres@linaro.org>
21589
21590         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
21591         recognizing doloop.
21592
21593 2011-05-11  Revital Eres  <revital.eres@linaro.org>
21594
21595         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
21596         instead of PREV_INSN.
21597
21598 2011-05-11  Revital Eres  <revital.eres@linaro.org>
21599
21600         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
21601         * loop-doloop.c (doloop_condition_get): Likewise.
21602         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
21603         (doloop_end): New.
21604         * config/arm/arm.md (*addsi3_compare0): Remove "*".
21605
21606 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
21607
21608         * tree.def (CASE_LABEL_EXPR): Add an operand.
21609         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
21610
21611 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
21612
21613         * c-decl.c (c_override_global_bindings_to_false): Remove.
21614         (global_bindings_p): Don't check
21615         c_override_global_bindings_to_false.
21616         * c-tree.h (c_override_global_bindings_to_false): Remove.
21617         * c-typeck.c (composite_type): Don't set
21618         c_override_global_bindings_to_false.
21619
21620 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
21621
21622         PR target/48857, 48495
21623         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
21624         (VSX_MODE): Ditto.
21625         (VSX_MOVE_MODE): Ditto.
21626         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
21627         VSX vector types.  Add V2DImode.
21628         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
21629         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
21630         (MODES_TIEABLE_P): Ditto.
21631
21632         * config/rs6000/rs6000.c (rs6000_emit_move): Use
21633         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
21634         VSX_VECTOR_MODE.
21635         (init_cumulative_args): Ditto.
21636         (rs6000_function_arg_boundary): Ditto.
21637         (rs6000_function_arg_advance_1): Ditto.
21638         (rs6000_function_arg): Ditto.
21639         (rs6000_function_ok_for_sibcall): Ditto.
21640         (emit_frame_save): Ditto.
21641         (rs6000_function_value): Ditto.
21642         (rs6000_libcall_value): Ditto.
21643
21644 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
21645
21646         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
21647         i386/darwin-lib.h to $libgcc_tm_file.
21648         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
21649
21650 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
21651
21652         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
21653
21654 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
21655
21656         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
21657         * config/rs6000/rs6000-tables.opt: New file (generated).
21658         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
21659         rs6000/rs6000-tables.opt to extra_options.
21660         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
21661         * config/rs6000/rs6000.c (rs6000_select): Remove.
21662         (processor_target_table): Move contents to rs6000-cpus.def.
21663         (darwin_rs6000_override_options): Check
21664         global_options_set.x_rs6000_cpu_index instead of
21665         rs6000_select[1].string.
21666         (rs6000_option_override_internal): Likewise.
21667         (rs6000_handle_option): Don't assert that global structures are in
21668         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
21669         (rs6000_default_cpu): New variable.
21670         (rs6000_file_start): Set it instead of local default_cpu.  Check
21671         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
21672         global_options_set.x_rs6000_tune_index instead of rs6000_select.
21673         (rs6000_darwin_file_start): Check rs6000_default_cpu and
21674         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
21675         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
21676         rs6000_select): Remove.
21677         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
21678         Remove.
21679         (mcpu=, mtune=): Use Var, Init, Enum and Save.
21680         * config/rs6000/t-rs6000
21681         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
21682         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
21683         global_options_set.x_rs6000_cpu_index instead of
21684         rs6000_select[1].string.
21685         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
21686         global_options_set.x_rs6000_cpu_index instead of
21687         rs6000_select[1].string.
21688
21689 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
21690
21691         * config.gcc (libgcc_tm_file): Define instead of including files
21692         from ../../libgcc/config/ in tm_file.
21693         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
21694         * configure: Regenerate.
21695         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
21696         libgcc_tm.h, cs-libgcc_tm.h): New.
21697         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
21698         (clean): Remove libgcc_tm.h.
21699         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
21700         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
21701         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
21702
21703 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
21704
21705         PR target/48896
21706         * config/avr/avr.c (avr_ret_register): Return unsigned int
21707         instead of int.
21708         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
21709         it to avr_libcall_value.
21710         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
21711         expand_expr.
21712         (avr_expand_binop_builtin): Ditto.
21713         (avr_expand_unop_builtin): Ditto.
21714
21715 2011-05-10  DJ Delorie  <dj@redhat.com>
21716
21717         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
21718         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
21719         * config/rx/rx.c (rx_align_for_label): Add label and
21720         uses_threshold parameters.  Do not align when the label is not
21721         used enough.
21722         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
21723
21724 2011-05-10  Richard Guenther  <rguenther@suse.de>
21725
21726         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
21727         a series of conversions and apply foldings similar to what
21728         fold-const does.
21729         (tree_ssa_forward_propagate_single_use_vars): Call it.
21730
21731 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
21732
21733         PR tree-optimization/48611
21734         PR tree-optimization/48794
21735         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
21736         referenced from RESX or EH_DISPATCH arguments.
21737
21738         PR debug/48928
21739         * dfp.c (decimal_to_decnumber): Handle conversion from
21740         dconst{1,2,m1,half}.
21741
21742 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
21743
21744         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
21745         for !flag_prefer_avx128.
21746         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
21747
21748 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
21749
21750         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
21751         (fold_ternary_loc): Use expr_location_or.
21752
21753 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
21754
21755         PR debug/48853
21756         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
21757         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
21758         Pmode and mem_mode is not VOIDmode.
21759
21760 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
21761
21762         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
21763         TYPE_QUAL_RESTRICT): Convert to enum.
21764
21765 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
21766
21767         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
21768         (const_pow2_1_to_8_operand): Ditto.
21769         (const_pow2_1_to_128_operand): Ditto.
21770         (const_pow2_1_to_32768_operand): Ditto.
21771         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
21772         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
21773         in insn constraint to check integer value of operand 3.
21774         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
21775
21776         (PINSR_MODE): New mode iterator.
21777         (sse2p4_1): New mode attribute.
21778         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
21779         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
21780         iterator.  Use const_int_operand instead of
21781         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
21782         exact_log2 in insn constraint to check integer value of operand 3.
21783
21784 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
21785
21786         * config/i386/sse.md (blendbits): Remove mode attribute.
21787         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
21788         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
21789         Check integer value of operand 3 in insn constraint.
21790
21791 2011-05-09  Richard Guenther  <rguenther@suse.de>
21792
21793         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
21794         for diagnostics.
21795         (lto_symtab_merge): Likewise.  Do not register types here.
21796         (lto_symtab_merge_decls_2): Likewise.
21797         (lto_symtab_merge_decls_1): Likewise.
21798         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
21799         * gimple.c (enum gtc_mode): Declare.
21800         (gimple_types_compatible_p): Make static.
21801
21802 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21803
21804         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
21805         temporary register to match Pmode.
21806
21807 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
21808
21809         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
21810         and *vec_concatv4si_1_avx.
21811
21812 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
21813
21814         PR rtl-optimization/48927
21815         * ira-conflicts.c (commutative_constraint_p): Use
21816         recog_data.alternative_enabled_p to disable alternatives where
21817         "enabled" attribute is false.
21818         (get_dup_num): Ditto.
21819         * ira-lives.c (single_reg_class): Ditto.
21820         (ira_implicitly_set_insn_hard_regs): Ditto.
21821
21822 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
21823
21824         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
21825         (dataflow_set_preserve_mem_locs): Likewise.
21826
21827 2011-05-09  Philipp Thomas  <pth@suse.de>
21828
21829         * config/mep/mep.c (mep_validate_vliw): Syntax description
21830         should not be translated.
21831
21832 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
21833
21834         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
21835         * config/mips/mips-tables.opt: New file (generated).
21836         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
21837         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
21838         MIPS_ARCH_OPTION_NATIVE): Define.
21839         * config/mips/mips.c (mips_cpu_info_table): Move contents to
21840         mips-cpus.def.
21841         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
21842         mips_parse_cpu): Remove.
21843         (mips_cpu_info_from_opt, mips_default_arch): New.
21844         (mips_handle_option): Don't assert that global structures are in
21845         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
21846         (mips_option_override): Use new variables and functions to set
21847         state of these options.  Use strcmp to check for individual CPU names.
21848         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
21849         definition.
21850         * config/mips/mips.opt (march=): Use ToLower and Enum.
21851         (mips): Use ToLower, Enum and Var.
21852         (mtune=): Use ToLower and Enum.
21853         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
21854
21855 2011-05-08  Jan Hubicka  <jh@suse.cz>
21856
21857         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
21858         Arrange type pairs to be UID ordered.
21859         (gimple_lookup_type_leader): Make inline.
21860
21861 2011-05-09  Nick Clifton  <nickc@redhat.com>
21862
21863         PR target/48899
21864         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
21865         PROCESSOR_DEFAULT.
21866
21867         PR target/48897
21868         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
21869         variable 's'.
21870
21871 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
21872
21873         * combine.c (simplify_comparison): Abstract out parts into...
21874         (simplify_compare_const): ... new function.
21875         (try_combine): Generalize parallel arithmetic/compare combining
21876         to call simplify_compare_const() and CANONICALIZE_COMPARE().
21877
21878 2011-05-08  Jan Hubicka  <jh@suse.cz>
21879
21880         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
21881         (cgraph_create_virtual_clone): Call hooks once virtual clone
21882         is finished.
21883         * cgraph.h (cgraph_clone_node): Update prototype.
21884         * ipa-cp.c (ipcp_estimate_growth): Use
21885         estimate_ipcp_clone_size_and_time.
21886         * ipa-inline-transform.c (clone_inlined_nodes): Update.
21887         * lto-cgraph.c (input_node): Update.
21888         * ipa-inline.c (recursive_inlining): Update.
21889         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
21890         (evaluate_conditions_for_known_args): Break out from ...
21891         (evaluate_conditions_for_edge): ... here.
21892         (evaluate_conditions_for_ipcp_clone): New function.
21893         (inline_node_duplication_hook): Update clone summary based
21894         on parameter map.
21895         (estimate_callee_size_and_time): Rename to ...
21896         (estimate_node_size_and_time): take NODE instead of EDGE;
21897         take POSSIBLE_TRUTHS as argument.
21898         (estimate_callee_size_and_time): Update.
21899         (estimate_ipcp_clone_size_and_time): New function.
21900         (do_estimate_edge_time): Update.
21901
21902 2011-05-08  Richard Guenther  <rguenther@suse.de>
21903
21904         PR middle-end/48908
21905         PR middle-end/48905
21906         * expmed.c (expand_shift_1): Compute adjusted constant shift
21907         amount manually.
21908
21909 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
21910
21911         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
21912
21913 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
21914
21915         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
21916
21917 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
21918
21919         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
21920
21921 2011-05-07  Jan Hubicka  <jh@suse.cz>
21922
21923         * ipa-inline-transform.c (inline_call): Account when program size
21924         decreases.
21925         * ipa-inline.c (relative_time_benefit): New function.
21926         (edge_badness): Reorganize to be power 2 based; fix thinko when
21927         computing badness for negative growth; update comments to match
21928         reality; better dumps.
21929
21930 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
21931
21932         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
21933         type to bool and adjust comment.
21934         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
21935         (fold_mathfn_compare): Remove calls to global_bindings_p.
21936         (fold_inf_compare): Likewise.
21937         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
21938         * c-tree.h (global_bindings_p): Adjust prototype.
21939         * c-decl.c (global_bindings_p): Return bool and simplify.
21940
21941 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
21942
21943         PR tree-optimization/48837
21944         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
21945         when accumulator transformation is performed.
21946
21947 2011-05-06  Jan Hubicka  <jh@suse.cz>
21948
21949         * i386.h (ix86_tune_indices): Add
21950         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
21951         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
21952         * i386.c (initial_ix86_tune_features): Add
21953         X86_SOFTARE_PREFETCHING_BENEFICIAL.
21954         (software_prefetching_beneficial_p): Remove predicate.
21955         (ix86_option_override_internal): Use new macro.
21956
21957 2011-05-06  Jan Hubicka  <jh@suse.cz>
21958
21959         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
21960
21961 2011-05-06  Jan Hubicka  <jh@suse.cz>
21962
21963         * cgraph.c (cgraph_add_thunk): Create real function node instead
21964         of alias node; finalize it and mark needed/reachale; arrange visibility
21965         to be right and add it into the corresponding same comdat group list.
21966         (dump_cgraph_node): Dump thunks.
21967         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
21968         cgraph_function_with_gimple_body_p,
21969         cgraph_first_function_with_gimple_body,
21970         cgraph_next_function_with_gimple_body): New functions.
21971         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
21972         New macros.
21973         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
21974         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
21975         * cgraphunit.c (cgraph_finalize_function): Only look into possible
21976         devirtualization when optimizing.
21977         (verify_cgraph_node): Verify thunks.
21978         (cgraph_analyze_function): Analyze thunks.
21979         (cgraph_mark_functions_to_output): Output thunks only in combination
21980         with function they are assigned to.
21981         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
21982         alias into normal node.
21983         (assemble_thunks): New functoin.
21984         (cgraph_expand_function): Use it.
21985         * lto-cgraph.c (lto_output_node): Stream thunks.
21986         (input_overwrite_node): Stream in thunks.
21987         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
21988         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
21989         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
21990         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
21991         (inline_analyze_function): Do not care about thunk jump functions.
21992         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
21993         * ipa-prop.c (ipa_prop_write_jump_functions): Use
21994         cgraph_function_with_gimple_body_p.
21995         * passes.c (do_per_function_toporder): Use
21996         cgraph_function_with_gimple_body_p.
21997         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
21998         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
21999         (function_called_by_processed_nodes_p): Likewise.
22000
22001 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
22002
22003         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
22004         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
22005         entries.
22006         (mabi=): Replace with separate entries for mabi=altivec,
22007         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
22008         mabi=ieeelongdouble and mabi=ibmlongdouble.
22009         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
22010         check for -mabi=spe without SPE ABI support here.
22011         (rs6000_handle_option): Replace OPT_mabi_ handling with
22012         OPT_mabi_altivec and OPT_mabi_spe handling.
22013
22014 2011-05-06  Cary Coutant  <ccoutant@google.com>
22015
22016         * dwarf2out.c (contains_subprogram_definition): New function.
22017         (should_move_die_to_comdat): Call it.
22018
22019 2011-05-06  Jeff Law  <law@redhat.com>
22020
22021         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
22022         remove_ctrl_stmt_and_useless_edges.
22023         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
22024         (fixup_template_block, thread_single_edge): Likewise.
22025         (mark_threaded_blocks): Use THREAD_TARGET.
22026
22027 2011-05-06  Alan Modra  <amodra@gmail.com>
22028
22029         PR target/48900
22030         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
22031         const0_rtx as the arg to the dummy __tls_get_addr libcall.
22032
22033 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
22034
22035         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
22036         constraint modifier to "r".
22037
22038 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
22039
22040         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
22041         fall through for OPT_mcmodel_.
22042
22043 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22044
22045         * config/s390/s390.c (s390_asm_trampoline_template): Comment
22046         instruction sizes.
22047         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
22048
22049 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22050
22051         PR target/47930
22052         * config/arm/arm.opt (marm): Document it.
22053         (mthumb): Reject negative variant.
22054
22055 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
22056
22057         PR target/48898
22058         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
22059         Fix typo in "ccvt" variable name.
22060
22061 2011-05-06  Tristan Gingold  <gingold@adacore.com>
22062
22063         PR target/48895
22064         * config/vms/vms-ar.c (main): Remove cwd variable.
22065
22066 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
22067
22068         PR debug/48902
22069         * var-tracking.c (prepare_call_arguments): Move else before #endif.
22070
22071 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
22072
22073         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
22074         * gimplify.c (gimplify_switch_expr): Likewise.
22075         * omp-low.c (expand_omp_sections): Likewise.
22076         * tree-eh.c (lower_try_finally_switch): Likewise.
22077         (lower_eh_dispatch): Likewise.
22078         * tree.h (build_case_label): Declare.
22079         * tree.c (build_case_label): Define.
22080
22081 2011-05-05  Jason Merrill  <jason@redhat.com>
22082
22083         PR c++/40975
22084         * tree-inline.c (copy_tree_r): Use copy_statement_list.
22085         (copy_statement_list): Don't recurse.
22086         * stor-layout.c (copy_self_referential_tree_r): Don't allow
22087         STATEMENT_LIST.
22088
22089 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
22090
22091         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
22092         through from -mfpu= handling.
22093         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
22094
22095 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
22096
22097         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
22098         POST_MODIFY.
22099
22100 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
22101
22102         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
22103         for 11.31.
22104         (hppa[12]*-*-hpux11*): Ditto.
22105         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
22106         * config/ia64/hpux-unix2003.h: New.
22107         * config/pa/pa-hpux1131.opt: New.
22108         * config/pa/pa-hpux1131.h: New.
22109         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
22110         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
22111         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
22112
22113 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
22114
22115         PR debug/48853
22116         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
22117         instead of mode as 3rd argument to recursive call.
22118         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
22119         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
22120         VOIDmode.
22121         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
22122         don't give up if mode is Pmode and mem_mode is not VOIDmode.
22123         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
22124         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
22125
22126 2011-05-05  Julian Brown  <julian@codesourcery.com>
22127
22128         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
22129         parenthesis in D-register case.
22130
22131 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
22132
22133         * opt-functions.awk (var_type_struct): Handle Enum options.
22134         * optc-gen.awk: Don't check range of variables of character type.
22135         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
22136         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
22137         rs6000_sdata_name, rs6000_explicit_options): Remove.
22138         (rs6000_option_override_internal): Check for -malign-power here.
22139         Use global_options_set instead of rs6000_explicit_options.
22140         (rs6000_parse_fpu_option): Remove.
22141         (rs6000_handle_option): Access variables via opts and opts_set
22142         pointers.  Use error_at and warning_at.  Add fall-through
22143         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
22144         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
22145         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
22146         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
22147         here.  Don't use rs6000_parse_fpu_option.
22148         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
22149         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
22150         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
22151         (mrecip=): Use Var.
22152         (mspe): Use Var and Save.
22153         (mtraceback=): Use Enum and Var.
22154         (rs6000_traceback_type): New Enum and EnumValue entries.
22155         (mfloat-gprs=): Use Enum, Var and Save.
22156         (rs6000_float_gprs): New Enum and EnumValue entries.
22157         (mlong-double-): use Var and Save.
22158         (msched-costly-dep=, minsert-sched-nops=): Use Var.
22159         (malign-): Use Enum and Var.
22160         (rs6000_alignment_flags): New Enum and EnumValue entries.
22161         (mfpu=): Use Enum.
22162         (fpu_type_t): New Enum and EnumValue entries.
22163         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
22164         global_options_set instead of rs6000_explicit_options.
22165         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
22166         global_options_set instead of rs6000_explicit_options.
22167         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
22168         global_options_set instead of rs6000_explicit_options.
22169         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
22170         global_options_set instead of rs6000_explicit_options.
22171         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
22172         global_options_set instead of rs6000_explicit_options.
22173         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
22174         global_options_set instead of rs6000_explicit_options.
22175         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
22176         definition.
22177         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
22178         global_options_set instead of rs6000_explicit_options.
22179         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
22180         (rs6000_cmodel): New Enum and EnumValue entries.
22181         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
22182         global_options_set instead of rs6000_explicit_options.
22183         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
22184         (mtls-size=): Use Enum and Var.
22185         (rs6000_tls_size): New Enum and EnumValue entries.
22186
22187 2011-05-05  Michael Matz  <matz@suse.de>
22188
22189         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
22190         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
22191         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
22192         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
22193         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
22194         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
22195         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
22196         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
22197         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
22198         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
22199         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
22200         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
22201         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
22202         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
22203         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
22204         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
22205
22206 2011-05-05  Richard Guenther  <rguenther@suse.de>
22207
22208         * expmed.c (expand_variable_shift): Rename to ...
22209         (expand_shift_1): ... this.  Take an expanded shift amount.
22210         For rotates recurse directly not building trees for the shift amount.
22211         (expand_variable_shift): Wrap around expand_shift_1.
22212         (expand_shift): Adjust.
22213
22214 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
22215
22216         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
22217
22218 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
22219
22220         * tree.h (get_pending_sizes): Remove prototype.
22221         (put_pending_size): Likewise.
22222         (put_pending_sizes): Likewise.
22223         * stor-layout.c (pending_sizes): Delete.
22224         (get_pending_sizes): Likewise.
22225         (put_pending_size): Likewise.
22226         (put_pending_sizes): Likewise.
22227         (variable_size): Do not call put_pending_size and tidy up.
22228         * function.h (struct function): Remove dont_save_pending_sizes_p.
22229         * lto-streamer-in.c (input_function): Do not stream it.
22230         * lto-streamer-out.c (output_function): Likewise.
22231         * tree-inline.c (initialize_cfun): Do not copy it.
22232         * c-decl.c (store_parm_decls): Do not set it.
22233         * omp-low.c (create_task_copyfn): Likewise.
22234         * tree-optimize.c (tree_rest_of_compilation): Likewise.
22235
22236 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
22237
22238         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
22239         conditions.
22240         (*movdf_internal): Ditto.
22241         (*movdf_internal_nointeger): Ditto.
22242         (*movsf_internal): Ditto.
22243
22244 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
22245
22246         * c-decl.c (finish_decl): Don't call get_pending_sizes.
22247         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
22248         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
22249         (c_variable_size): Remove.
22250         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
22251         call put_pending_sizes.
22252         (get_parm_info): Add parameter expr.  Use it to set
22253         arg_info->pending_sizes.
22254         (store_parm_decls): Use arg_info->pending_sizes instead or calling
22255         get_pending_sizes.
22256         * c-parser.c (c_parser_parms_declarator): Update call to
22257         c_parser_parms_list_declarator.
22258         (c_parser_parms_list_declarator): Take parameter expr.  Update
22259         call to push_parm_decl.  Update recursive call.  Don't call
22260         get_pending_sizes.  Update calls to get_parm_info.
22261         (c_parser_objc_method_definition): Update calls to
22262         c_parser_objc_method_decl and objc_start_method_definition.
22263         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
22264         (c_parser_objc_method_decl): Add parameter expr.  Update call to
22265         grokparm.
22266         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
22267         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
22268         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
22269
22270 2011-05-05  Michael Hope  <michael.hope@linaro.org>
22271
22272         PR pch/45979
22273         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
22274         __ARM_EABI__ hosts.
22275
22276 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22277
22278         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
22279         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
22280         (spu_output_mi_thunk): New function.
22281
22282 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22283
22284         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
22285         targetm.asm_out.print_operand.
22286         * config/sol2.c: Include target.h.
22287
22288 2011-05-04  Jan Hubicka  <jh@suse.cz>
22289
22290         * ipa-inline.c (reset_edge_caches): New function.
22291         (update_caller_keys): Add check_inlinablity_for; do not
22292         reset edge caches; remove now unnecesary loop.
22293         (update_callee_keys): Add comments; reset node_growth_cache of callee.
22294         (update_all_callee_keys): Likewise.
22295         (inline_small_functions): Sanity check cache; update code
22296         recomputing it.
22297
22298 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
22299
22300         PR rtl-optimization/47612
22301         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
22302         as the last insn of the sequence to be moved.
22303
22304 2011-05-04  Tobias Burnus  <burnus@net-b.de>
22305
22306         PR fortran/48864
22307         * doc/invoke.texi (Ofast): Document that it
22308         enables Fortran's -fno-protect-parens.
22309
22310 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
22311
22312         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
22313
22314 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
22315
22316         * stor-layout.c (variable_size): Do not issue errors.
22317
22318 2011-05-04  Richard Guenther  <rguenther@suse.de>
22319
22320         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
22321         for array-ref indices.
22322         (tree_coverage_counter_addr): Likewise.
22323         (build_fn_info_type): Use size_int for index types.
22324         (build_gcov_info): Likewise.
22325
22326 2011-05-04  Richard Guenther  <rguenther@suse.de>
22327
22328         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
22329         to build_int_cst.
22330         * c-typeck.c (really_start_incremental_init): Use bitsize_int
22331         for constructor indices.
22332         (push_init_level): Likewise.
22333
22334 2011-05-04  Richard Guenther  <rguenther@suse.de>
22335
22336         * explow.c (promote_mode): Move variable declarations before code.
22337
22338 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
22339
22340         * tree.h (build_function_type_array): Declare.
22341         (build_varargs_function_type_array): Declare.
22342         (build_function_type_vec, build_varargs_function_type_vec): Define.
22343         * tree.c (build_function_type_array_1): New function.
22344         (build_function_type_array): New function.
22345         (build_varargs_function_type_array): New function.
22346
22347 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
22348
22349         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
22350         before setting STMT_VINFO_TYPE.
22351
22352 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22353
22354         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
22355         instead of spu_pass_by_reference.
22356
22357 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22358
22359         * calls.c (emit_library_call_value_1): Invoke
22360         promote_function_mode hook on libcall arguments.
22361         * explow.c (promote_function_mode, promote_mode): Handle TYPE
22362         argument being NULL.
22363         * targhooks.c (default_promote_function_mode): Lisewise.
22364         * config/s390/s390.c (s390_promote_function_mode): Likewise.
22365         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
22366
22367         * doc/tm.texi: Document that TYPE argument might be NULL.
22368
22369 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
22370
22371         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
22372
22373 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
22374
22375         From Bernd Schmidt
22376         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
22377
22378 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22379
22380         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
22381         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
22382         Move ...
22383         * mips-tfile.c: ... here.
22384         Don't include coretypes.h, tm.h, filenames.h.
22385         (saber_stop): Remove definition and all calls.
22386         [__SABER__]: Remove.
22387         (__LINE__): Remove default.
22388         (Size_t, Ptrdiff_t): Remove definitions.
22389         Replace by size_t, ptrdiff_t.
22390         [!MIPS_DEBUGGING_INFO]: Remove.
22391         (SHASH_SIZE, THASH_SIZE): Remove defaults.
22392         (progname): Add const.
22393         (STATIC): Remove.
22394         Replace all uses by static.
22395         (ALIGN_SYMTABLE_OFFSET): Remove default.
22396         * mips-tdump.c: Don't include coretypes.h, tm.h.
22397         Remove !MIPS_IS_STAB guard.
22398         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
22399         $(TM_H), filenames.h dependencies.
22400         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
22401
22402 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
22403
22404         From Jie Zhang
22405         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
22406         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
22407
22408 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
22409
22410         From Bernd Schmidt
22411         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
22412         account and save/restore RETS.
22413         (PROFILE_BEFORE_PROLOGUE): Define.
22414         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
22415         the push insn to use predecrement.
22416
22417 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
22418
22419         From Jie Zhang
22420         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
22421
22422 2011-05-04  Nick Clifton  <nickc@redhat.com>
22423
22424         * config/mn10300/mn10300.c: Include cfgloop.h.
22425         (DUMP): New macro.
22426         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
22427         Lcc or a FLcc insn into the instruction stream.
22428         (mn10300_block_contains_call): New function.  Returns true if the
22429         given basic block contains a CALL insn.
22430         (mn10300_loop_contains_call_insn): New function.  Returns true if
22431         the given loop contains a CALL insn.
22432         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
22433         to use the SETLB and Lcc or FLcc insns.
22434         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
22435         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
22436         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
22437         disable the SETLB optimization.
22438         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
22439         __SETLB__ or __NO_SETLB__.
22440         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
22441         (movsf_internal): Handle MDR register.
22442         (cmpsi): Make visible.
22443         (setlb): New pattern.
22444         (Lcc): New pattern.
22445         (FLcc): New pattern.
22446
22447 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
22448
22449         PR target/48860
22450         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
22451         for reg<->xmm moves.
22452         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
22453         (vec_concatv2di_rex64_sse): Ditto.
22454         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
22455         (*vec_extractv2di_1_rex64): Ditto.
22456
22457         Revert:
22458         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
22459
22460         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
22461         reg<->xmm moves.
22462         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
22463
22464 2011-05-04  Richard Guenther  <rguenther@suse.de>
22465
22466         * tree.h (int_const_binop): Remove notrunc argument.
22467         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
22468         create integer constants that are properly truncated.
22469         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
22470         (const_binop): Remove zero notrunc argument to int_const_binop.
22471         (size_binop_loc): Likewise.
22472         (fold_div_compare): Likewise.
22473         (maybe_canonicalize_comparison_1): Likewise.
22474         (fold_comparison): Likewise.
22475         (fold_binary_loc): Likewise.
22476         (multiple_of_p): Likewise.
22477         * expr.c (store_constructor): Likewise.
22478         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
22479         (maybe_fold_stmt_addition): Likewise.
22480         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
22481         * stor-layout.c (layout_type): Likewise.
22482         * tree-data-ref.c (tree_fold_divides_p): Likewise.
22483         * tree-sra.c (build_ref_for_offset): Likewise.
22484         (build_user_friendly_ref_for_offset): Likewise.
22485         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
22486         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
22487         * tree-ssa-loop-niter.c (inverse): Likewise.
22488         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
22489         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
22490         * tree-switch-conversion.c (check_range): Likewise.
22491         (build_constructors): Likewise.
22492         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
22493         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
22494         (extract_range_from_assert): Likewise.
22495         (vrp_int_const_binop): Likewise.
22496         (extract_range_from_binary_expr): Likewise.
22497         (extract_range_from_unary_expr): Likewise.
22498         (check_array_ref): Likewise.
22499         (find_case_label_range): Likewise.
22500         (simplify_div_or_mod_using_ranges): Likewise.
22501         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
22502         comparing case labels for merging.
22503
22504 2011-05-03  Mark Wielaard  <mjw@redhat.com>
22505
22506         * dwarf2out.c (debug_str_hash_forced): Removed.
22507         (gen_label_for_indirect_string): Removed.
22508         (get_debug_string_label): Removed.
22509         (AT_string_form): Generate label directly.
22510         (output_indirect_string): Test indirect_string_node for
22511         DW_FORM_strp instead of checking label and refcount.
22512         (prune_indirect_string): Removed.
22513         (prune_unused_types): Don't check debug_str_hash_forced or
22514         call prune_indirect_string.
22515
22516 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
22517
22518         PR other/48093
22519         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
22520
22521 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
22522
22523         PR debug/47994
22524         PR debug/47919
22525         * combine.c (try_combine): Skip debug insns at m_split tests.
22526
22527 2011-04-26  Mark Wielaard  <mjw@redhat.com>
22528
22529         PR42288
22530         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
22531         when info_section_emitted.
22532
22533 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
22534
22535         * config/mips/mips-opts.h: New.
22536         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
22537         to mips-opts.h.
22538         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
22539         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
22540         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
22541         via opts pointer.
22542         * config/mips/mips.h (enum mips_code_readable_setting): Move to
22543         mips-opts.h.
22544         (mips_abi, mips_code_readable): Don't declare.
22545         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
22546         (mabi=): Use Enum and Var.
22547         (mips_abi): New Enum and EnumValue entries.
22548         (mcode-readable=): Use Enum and Var.
22549         (mips_code_readable_setting): New Enum and EnumValue entries.
22550         (mr10k-cache-barrier=): Use Enum and Var.
22551         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
22552
22553 2011-05-03  Jan Hubicka  <jh@suse.cz>
22554
22555         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
22556         replace hash by pointer map.
22557         (cgraph_node_set_element_def, cgraph_node_set_element,
22558         const_cgraph_node_set_element, varpool_node_set_element_def,
22559         varpool_node_set_element, const_varpool_node_set_element): Remove.
22560         (free_cgraph_node_set, free_varpool_node_set): New function.
22561         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
22562         * tree-emutls.c: Free varpool node set.
22563         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
22564         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
22565         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
22566         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
22567         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
22568         Move here from ipa.c; implement using pointer_map
22569         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
22570         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
22571         debug_cgraph_node_set, varpool_node_set_new,
22572         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
22573         dump_varpool_node_set, debug_varpool_node_set):
22574         Move to ipa-uitls.c.
22575         * passes.c (ipa_write_summaries): Update.
22576
22577 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22578
22579         From Mike Frysinger:
22580         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
22581         bf542/bf544/bf547/bf548/bf549.
22582
22583 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
22584
22585         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
22586
22587 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22588
22589         From Bernd Schmidt:
22590         * config/bfin/bfin.md (MOVCC): New mode_macro.
22591         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
22592         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
22593         comments from generated assembly.
22594
22595 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22596
22597         From Bernd Schmidt
22598         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
22599         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
22600         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
22601         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
22602         * config/bfin/lib1funcs.asm (___muldi3): New function.
22603
22604 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22605
22606         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
22607         build_function_type_list instead of build_function_type.
22608         Rearrange initialization of `args' to do so.
22609
22610 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22611
22612         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
22613         instead of build_function_type.
22614
22615 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22616
22617         * config/rs6000/rs6000.c (spe_init_builtins): Call
22618         build_function_type_list instead of build_function_type.
22619         (paired_init_builtins, altivec_init_builtins): Likewise.
22620         (builtin_function_type): Likewise.
22621
22622 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22623
22624         * config/sh/sh.c (sh_media_init_builtins): Call
22625         build_function_type_list instead of build_function_type.
22626
22627 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22628
22629         * config/sparc/sparc.c (sparc_file_end): Call
22630         build_function_type_list instead of build_function_type.
22631
22632 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22633
22634         * config/alpha/alpha.c (alpha_init_builtins): Call
22635         build_function_type_list instead of build_function_type.
22636
22637 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22638
22639         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
22640         build_function_type_list instead of build_function_type.
22641
22642 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22643
22644         * config/iq2000/i2000.c (iq2000_init_builtins): Call
22645         build_function_type_list instead of build_function_type.
22646         Delete `endlink' variable.
22647
22648 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22649
22650         * config/avr/avr.c (avr_init_builtins): Call
22651         build_function_type_list instead of build_function_type.
22652
22653 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22654
22655         * config/picochip/picochip.c (picochip_init_builtins): Call
22656         build_function_type_list instead of build_function_type.
22657         Delete `endlink' variable.
22658
22659 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22660
22661         * config/bfin/bfin.c (bfin_init_builtins): Call
22662         build_function_type_list instead of build_function_type.
22663
22664 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22665
22666         From Bernd Schmidt
22667         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
22668         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
22669
22670 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22671
22672         From Jie Zhang:
22673         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
22674         libbffastfp overrides libgcc when -mfast-fp.
22675
22676 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22677
22678         Originally from Bernd Schmidt
22679         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
22680         * config/bfin/bfin.c (override_options): Test it and error if
22681         TARGET_FDPIC.
22682
22683 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22684
22685         Originally From Bernd Schmidt
22686         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
22687         FD-PIC.
22688
22689 2011-05-03  Jeff Law  <law@redhat.com>
22690
22691         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
22692         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
22693         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
22694         than accessing AUX field directly.  Free the AUX field before
22695         clearing it.
22696         (thread_block, thread_through_loop_header): Likewise.
22697         (thread_single_edge, mark_threaded_blocks): Likewise.
22698         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
22699         (register_jump_thread): Do not attempt to thread to a NULL edge.
22700
22701 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
22702
22703         * function.c (init_function_start): Call decide_function_section.
22704         * varasm.c (decide_function_section): New function.
22705         (assemble_start_function): When not using
22706         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
22707         or first_function_block_is_cold.
22708         * rtl.h (decide_function_section): Declare.
22709
22710 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
22711             Jakub Jelinek  <jakub@redhat.com>
22712
22713         PR target/48774
22714         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
22715         only succeed if req_mode is the same as set_mode.
22716
22717 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
22718
22719         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
22720         * genemit.c (gen_exp): Handle RETURN.
22721         * emit-rtl.c (verify_rtx_sharing): Likewise.
22722         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
22723         * rtl.c (copy_rtx): RETURN is shared.
22724         * rtl.h (enum global_rtl_index): Add GR_RETURN.
22725         (ret_rtx): New.
22726         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
22727         * config/s390/s390.c (s390_emit_epilogue): Likewise.
22728         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
22729         * config/cris/cris.c (cris_expand_return): Likewise.
22730         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
22731         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
22732         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
22733         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
22734         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
22735         Likewise.
22736         * config/v850/v850.c (expand_epilogue): Likewise.
22737         * config/bfin/bfin.c (bfin_expand_call): Likewise.
22738         * config/arm/arm.md (epilogue): Likewise.
22739         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
22740         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
22741         variable to ret_reg.
22742
22743 2011-05-03  Richard Guenther  <rguenther@suse.de>
22744
22745         PR lto/48846
22746         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
22747         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
22748         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
22749
22750 2011-05-03  Richard Guenther  <rguenther@suse.de>
22751
22752         * c-decl.c (grokdeclarator): Instead of looking at
22753         TREE_OVERFLOW check if the constant fits in the index type.
22754
22755 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
22756
22757         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
22758         (vec_store_lanes<mode><mode>): Likewise.
22759
22760 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
22761
22762         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
22763         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
22764         convert_optab_index values.
22765         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
22766         * genopinit.c (optabs): Initialize the new optabs.
22767         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
22768         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
22769         (expand_STORE_LANES): New functions.
22770         * tree.h (build_array_type_nelts): Declare.
22771         * tree.c (build_array_type_nelts): New function.
22772         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
22773         (vect_model_load_cost): Likewise.
22774         (vect_store_lanes_supported, vect_load_lanes_supported)
22775         (vect_record_strided_load_vectors): Declare.
22776         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
22777         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
22778         (vect_transform_strided_load): Split out statement recording into...
22779         (vect_record_strided_load_vectors): ...this new function.
22780         * tree-vect-stmts.c (create_vector_array, read_vector_array)
22781         (write_vector_array, create_array_ref): New functions.
22782         (vect_model_store_cost): Add store_lanes_p argument.
22783         (vect_model_load_cost): Add load_lanes_p argument.
22784         (vectorizable_store): Try to use store-lanes functions for
22785         interleaved stores.
22786         (vectorizable_load): Likewise load-lanes and loads.
22787         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
22788         to vect_model_store_cost.
22789         (vect_build_slp_tree): Likewise vect_model_load_cost.
22790
22791 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
22792
22793         * hooks.h (hook_bool_mode_uhwi_false): Declare.
22794         * hooks.c (hook_bool_mode_uhwi_false): New function.
22795         * target.def (array_mode_supported_p): New hook.
22796         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
22797         * doc/tm.texi: Regenerate.
22798         * stor-layout.c (mode_for_array): New function.
22799         (layout_type): Use it.
22800         * config/arm/arm.c (arm_array_mode_supported_p): New function.
22801         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
22802
22803 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
22804
22805         PR target/48723
22806         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
22807         for -fstack-check if the size to allocate is negative.
22808
22809 2011-05-02  Lawrence Crowl  <crowl@google.com>
22810
22811         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
22812         (timevar_cond_start): New for starting a timer only when it is not
22813         already running.
22814         (timevar_cond_stop): New for stopping a timer when it was not already
22815         running.
22816
22817         * timevar.c (timevar_stop): Enable start/stop timers to start again.
22818         (timevar_cond_start): New as above.
22819         (timevar_cond_stop): New as above.
22820
22821         * timevar.def: Add start/stop timers for compiler phases,
22822         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
22823         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
22824         and TV_PHASE_FINALIZE.
22825         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
22826         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
22827         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
22828         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
22829         Make unused TV_OVERLOAD into a start/stop timer.
22830
22831         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
22832         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
22833         to indicate that they are start/stop timers.
22834
22835         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
22836         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
22837         Move initialization to do_compile.
22838         (do_compile): Add initialization from above.
22839         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
22840
22841         * c-decl.c (c_write_global_declarations): Add start/stop of
22842         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
22843
22844         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
22845         or TV_PARSE_INLINE, as appropriate.
22846         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
22847         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
22848
22849 2011-05-02  Jason Merrill  <jason@redhat.com>
22850
22851         PR c++/40975
22852         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
22853
22854 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
22855
22856         PR c/35445
22857         * c-decl.c (finish_decl): Only create a composite if the types are
22858         compatible.
22859
22860 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
22861
22862         * config/fr30/fr30-protos.h (Mmode): Don't define.
22863         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
22864         definition where used.
22865         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
22866         define.  Expand definitions where used.
22867         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
22868         Expand definitions where used.
22869         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
22870         rx_function_arg, rx_function_arg_advance,
22871         rx_function_arg_boundary): Expand definitions of those macros.
22872         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
22873         definition where used.
22874
22875 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
22876
22877         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
22878         reg<->xmm moves.
22879         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
22880         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
22881         with *movv2sf_internal_rex64_avx.
22882         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
22883         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
22884         Use %v prefix in insn mnemonic to handle TARGET_AVX.
22885         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
22886         "vex" in "prefix" attribute calculation.
22887         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
22888
22889 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
22890
22891         PR target/47951
22892         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
22893         inputs match the output.
22894
22895 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
22896
22897         PR target/47955
22898         * config/m68k/m68k.c (m68k_expand_prologue): Set
22899         current_function_static_stack_size.
22900
22901 2011-05-02   Jan Hubicka  <jh@suse.cz>
22902
22903         * lto-streamer.c (lto_streamer_cache_insert_1,
22904         lto_streamer_cache_lookup, lto_streamer_cache_create,
22905         lto_streamer_cache_delete): Use pointer map instead of hashtable.
22906         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
22907
22908 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
22909
22910         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
22911         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
22912         config/m68k/t-opts: New files.
22913         * config/m68k/m68k-tables.opt: New file (generated).
22914         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
22915         extra_options and m68k/t-opts to tmake_file.
22916         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
22917         (all_isas): Initialize using m68k-isas.def.
22918         (all_microarchs): Initialize using m68k-microarchs.def.
22919         (m68k_find_selection): Remove.
22920         (m68k_handle_option): Don't assert that global structures are in
22921         use.  Use error_at.  Access variables via opts pointer.  Don't
22922         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
22923         directly for -m68020-40 and -m68020-60.
22924         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
22925         m68k_tune_entry here.
22926         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
22927         to m68k-opts.h.
22928         (m68k_library_id_string): Remove declaration.
22929         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
22930         (m68k_library_id_string): New Variable.
22931         (march=, mcpu=, mtune=): Use Enum and Var.
22932
22933 2011-05-02  Richard Guenther  <rguenther@suse.de>
22934
22935         * varasm.c (output_constructor_regular_field): Compute zero-based
22936         index with double-ints.  Make sure to ICE instead of producing
22937         wrong code.
22938         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
22939         in asserts.  Properly use a signed type.
22940
22941 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
22942
22943         * config/i386/sse.md (V): New mode iterator.
22944         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
22945         TARGET_SSE2.
22946         (V_256): Rename from AVX256MODE.
22947         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
22948         condition to all users.
22949         (VF1): Ditto.
22950         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
22951         condition to all users.
22952         (VF_128): Make V4SF mode unconditional.
22953         (VF_256): Rename from AVX256MODEF2P.
22954         (VI4F_128): Rename from SSEMODE4S.
22955         (VI8F_128): Rename from SSEMODE2D.
22956         (VI4F_256): Rename from AVX256MODE8P.
22957         (VI8F_256): Rename from AVX256MODE4P.
22958         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
22959         (ssescalarmodesuffix): Remove SF and DF modes.
22960         (SSEMODE124): Remove.
22961         (SSEMODE1248): Ditto.
22962         (SSEMODEF2P): Ditto.
22963         (AVXMODEF2P): Ditto.
22964         (AVXMODEFDP): Ditto.
22965         (AVXMODEFSP): Ditto.
22966         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
22967         unconditional.
22968         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
22969         unconditional.
22970         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
22971         xop_pcmov_<mode>256.  Use V mode iterator.
22972
22973         Adjust RTX patterns globally for renamed mode attributes.
22974
22975 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22976
22977         * haifa-sched.c (sched_emit_insn): Emit insn before first
22978         non-scheduled insn.  Inform back-end about new insn.  Add
22979         new insn to scheduled_insns list.
22980
22981 2011-05-02  Richard Guenther  <rguenther@suse.de>
22982
22983         PR tree-optimization/48822
22984         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
22985         (process_scc): Indicate which iteration we start.
22986
22987 2011-05-02  Jan Hubicka  <jh@suse.cz>
22988
22989         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
22990         (lto_section_overrun): New.
22991         * lto-section-out.c (append_block): Rename to ...
22992         (lto_append_block): ... this one; export.
22993         (lto_output_1_stream): Move lto lto-streamer.h
22994         (lto_output_data_stream): Update.
22995         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
22996         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
22997         functions.
22998
22999 2011-05-02  Richard Guenther  <rguenther@suse.de>
23000
23001         * tree.c (tree_code_counts): New global array.
23002         (record_node_allocation_statistics): Count individual tree codes.
23003         (dump_tree_statistics): Dump individual code stats.
23004
23005 2011-05-01  Jan Hubicka  <jh@suse.cz>
23006
23007         * ipa-inline.c (caller_growth_limits): Fix thinko when
23008         looking for largest stack frame.
23009         * ipa-inline.h (dump_inline_summary): Declare.
23010         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
23011         on stack usage.
23012         (dump_inline_summary): Export.
23013         (debug_inline_summary): Declare as DEBUG_FUNCTION.
23014
23015 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
23016
23017         * reginfo.c (memory_move_cost): Change rclass argument type form
23018         'enum reg_class' to reg_class_t.
23019         * reload.h (memory_move_cost): Update prototype.
23020         * postreload.c reload_cse_simplify_set): Change type dclass var to
23021         reg_class_t.
23022         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
23023         Update prototype.
23024         (ira_allocate_and_set_costs): Change aclass argument type form
23025         'enum reg_class' to reg_class_t.
23026         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
23027         Change aclass argument type to reg_class_t.
23028         (update_conflict_hard_reg_costs): Change type aclass and pref vars
23029         to reg_class_t.
23030         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
23031         memory_move_cost call.
23032
23033         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
23034         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
23035         Change type tmp var to reg_class_t.
23036
23037 2011-04-30  Jan Hubicka  <jh@suse.cz>
23038
23039         * ipa-inline.c (can_inline_edge_p): Disregard limits when
23040         inlining into function with flatten attribute.
23041         (want_inline_small_function_p): Be more realistic about inlining
23042         cold calls where callee size grows.
23043
23044 2011-04-30  Jan Hubicka  <jh@suse.cz>
23045
23046         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
23047         flags.
23048
23049 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
23050
23051         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
23052         PRINT_OPERAND_PUNCT_VALID_P): Remove.
23053         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
23054         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
23055         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23056         (print_operand): Rename to...
23057         (sparc_print_operand): ...this. Make static. Adjust
23058         sparc_print_operand function call.
23059         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
23060         functions.
23061
23062 2011-04-30  Jan Hubicka  <jh@suse.cz>
23063
23064         PR middle-end/48752
23065         * ipa-inline.c (early_inliner): Disable when doing late
23066         addition of function.
23067
23068 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
23069
23070         * dwarf2out.c (get_address_mode): New inline.
23071         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
23072         if not dwarf_strict emit
23073         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
23074         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
23075         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
23076         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
23077         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
23078         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
23079         mem_loc_descriptor callers.
23080         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
23081         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
23082         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
23083         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
23084         (base_types): New variable.
23085         (get_base_type_offset, calc_base_type_die_sizes,
23086         base_type_for_mode, mark_base_types, base_type_cmp,
23087         move_marked_base_types): New functions.
23088         (calc_die_sizes): Assert that die_offset is 0 or equal to
23089         next_die_offset.
23090         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
23091         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
23092         callers.  If not dwarf_strict, call mem_loc_descriptor even for
23093         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
23094         (gen_subprogram_die): Don't give up on call site parameters
23095         with non-integral or large integral modes.  Adjust
23096         mem_loc_descriptor callers.
23097         (prune_unused_types): Call prune_unused_types_mark on base_types
23098         vector entries.
23099         (resolve_addr): Call mark_base_types.
23100         (dwarf2out_finish): Call move_marked_base_types.
23101
23102         PR tree-optimization/48809
23103         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
23104         type.
23105         (gen_inbound_check): Don't compute index_expr - range_min in utype
23106         again, instead reuse SSA_NAME initialized in build_arrays.
23107         Remove two useless gsi_for_stmt calls.
23108
23109 2011-04-29  Jeff Law  <law@redhat.com>
23110
23111         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
23112
23113 2011-04-29  Martin Jambor  <mjambor@suse.cz>
23114
23115         * cgraph.h (cgraph_postorder): Remove declaration.
23116         * ipa-utils.h (ipa_free_postorder_info): Declare.
23117         (ipa_reverse_postorder): Likewise.
23118         * cgraphunit.c: Include ipa-utils.h.
23119         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
23120         * ipa-inline.c: Include ipa-utils.h.
23121         (ipa_inline): Update call to ipa_reverse_postorder.
23122         * ipa-pure-const.c (propagate_pure_const): Update call to
23123         ipa_reduced_postorder and ipa_print_order.  Call
23124         ipa_free_postorder_info to clean up.
23125         (propagate_nothrow): Likewise.
23126         * ipa-reference.c (propagate): Removed a useless call to
23127         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
23128         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
23129         * ipa.c: Include ipa-utils.h.
23130         (ipa_profile): Update call to ipa_reverse_postorder.
23131         (cgraph_postorder): Moved to...
23132         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
23133         (ipa_utils_print_order): Renamed to ipa_print_order.
23134         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
23135         comments.
23136         (ipa_free_postorder_info): New function.
23137         * passes.c: Include ipa-utils.h.
23138         (do_per_function_toporder): Update call to ipa_reverse_postorder.
23139         (ipa_write_summaries): Likewise.
23140         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
23141         (cgraphunit.o): Likewise.
23142         (ipa.o): Likewise.
23143         (ipa-inline.o): Likewise.
23144
23145 2011-04-29  Jan Hubicka  <jh@suse.cz>
23146
23147         * ipa-inline.h (clause_t): Turn into unsigned int.
23148         * ipa-inline-analysis.c (add_clause): Do more simplification.
23149         (and_predicates): Shortcut more cases.
23150         (predicates_equal_p): Move forward; check that clauses are properly
23151         ordered.
23152         (or_predicates): Shortcut more cases.
23153         (edge_execution_predicate): Rewrite as...
23154         (set_cond_stmt_execution_predicate): ... this function; handle
23155         __builtin_constant_p.
23156         (set_switch_stmt_execution_predicate): New .
23157         (compute_bb_predicates): New.
23158         (will_be_nonconstant_predicate): Update TODO.
23159         (estimate_function_body_sizes): Use compute_bb_predicates
23160         and free them later, always try to estimate if stmt is constant.
23161         (estimate_time_after_inlining, estimate_size_after_inlining):
23162         Gracefully handle optimized out edges.
23163         (read_predicate): Fix off by one error.
23164
23165 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
23166
23167         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
23168
23169 2011-04-27  Xinliang David Li  <davidxl@google.com>
23170
23171         * tree-profile.c (init_ic_make_global_vars): Set
23172         tls attribute on ic vars.
23173         * coverage.c (coverage_end_function): Initialize
23174         function_list with zero.
23175
23176 2011-04-29  Richard Guenther  <rguenther@suse.de>
23177
23178         * builtins.c (fold_builtin_classify_type): Use integer_type_node
23179         for the type of the result.
23180         (fold_builtin_isascii): Likewise.
23181         (fold_builtin_toascii): Use integer_type_node where appropriate.
23182         (fold_builtin_logb): Likewise.
23183         (fold_builtin_frexp): Likewise.
23184         (fold_builtin_strstr): Likewise.
23185         (fold_builtin_strpbrk): Likewise.
23186         (fold_builtin_fputs): Likewise.
23187         (fold_builtin_sprintf): Likewise.
23188         (fold_builtin_snprintf): Likewise.
23189         (fold_builtin_printf): Likewise.
23190         (do_mpfr_remquo): Use a proper type for the assigned constant.
23191         (do_mpfr_lgamma_r): Likewise.
23192         * dwarf2out.c (resolve_one_addr): Use size_int.
23193         * except.c (init_eh): Likewise.
23194         (assign_filter_values): Use integer_type_node for filter values.
23195         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
23196         indices.
23197         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
23198         for EH region numbers.
23199         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
23200         for the shift amount.
23201
23202 2011-04-29  Richard Guenther  <rguenther@suse.de>
23203
23204         * expr.h (expand_shift): Rename to ...
23205         (expand_variable_shift): ... this.
23206         (expand_shift): Take a constant shift amount.
23207         * expmed.c (expand_shift): Rename to ...
23208         (expand_variable_shift): ... this.
23209         (expand_shift): New wrapper around expand_variable_shift.
23210         * expr.c (convert_move, emit_group_load_1, emit_group_store,
23211         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
23212         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
23213         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
23214         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
23215         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
23216         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
23217         emit_store_flag_1, emit_store_flag): Likewise.
23218         * builtins.c (expand_builtin_signbit): Likewise.
23219         * calls.c (load_register_parameters): Likewise.
23220         * function.c (assign_parm_setup_block): Likewise.
23221         * lower-subreg.c (resolve_shift_zext): Likewise.
23222         * optabs.c (widen_bswap, expand_abs_nojump,
23223         expand_one_cmpl_abs_nojump, expand_float): Likewise.
23224         * spu/spu.c (spu_expand_extv): Likewise.
23225         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
23226
23227 2011-04-29  Richard Guenther  <rguenther@suse.de>
23228
23229         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
23230         for the remapped region number.
23231         * predict.c (build_predict_expr): Use integer_type_node for the
23232         predict kind.
23233         * fold-const.c (fold_binary_loc): Use integer_type_node for
23234         the shift amount.  Use a proper type for the PLUS_EXPR operand.
23235
23236 2011-04-29  Michael Matz  <matz@suse.de>
23237
23238         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
23239         other trees that just builtins.
23240         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
23241
23242 2011-04-29  Richard Guenther  <rguenther@suse.de>
23243
23244         * tree-nested.c (get_trampoline_type): Use size_int.
23245         (get_nl_goto_field): Likewise.
23246         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
23247         for all indexes.
23248         (lower_eh_constructs_2): Likewise.
23249         (lower_resx): Likewise.
23250         (lower_eh_dispatch): Likewise.
23251         * tree-mudflap.c (mf_build_string): Use size_int.
23252         (mudflap_register_call): Use integer_type_node for the flag.
23253         (mudflap_enqueue_constant): Use size_int.
23254         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
23255         instead of rebuilding it.
23256
23257 2011-04-29  Richard Guenther  <rguenther@suse.de>
23258
23259         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
23260         Handle OBJ_TYPE_REF.
23261         (find_func_aliases_for_call): Use it more consistently.
23262
23263 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
23264
23265         * haifa-sched.c (last_nondebug_scheduled_insn): New.
23266         (rank_for_schedule): Use it.
23267         (schedule_block): Set it.
23268
23269 2011-04-28  David Li  <davidxl@google.com>
23270
23271         * tree.c (crc32_string): Use crc32_byte.
23272         (crc32_byte): New function.
23273         * tree.h (crc32_byte): New function.
23274         * gcov.c (read_graph_file): Handle new cfg_cksum.
23275         (read_count_file): Ditto.
23276         * profile.c (instrument_values): Ditto.
23277         (get_exec_counts): Ditto.
23278         (read_profile_edge_counts): Ditto.
23279         (compute_branch_probabilities): Ditto.
23280         (compute_value_histograms): Ditto.
23281         (branch_prob): Ditto.
23282         (end_branch_prob): Ditto.
23283         * coverage.c (read_counts_file): Ditto.
23284         (get_coverage_counts): Ditto.
23285         (tree_coverage_counter_addr): Ditto.
23286         (coverage_checksum_string): Ditto.
23287         (coverage_begin_output): Ditto.
23288         (coverage_end_function): Ditto.
23289         (build_fn_info_type): Ditto.
23290         (build_fn_info_value): Ditto.
23291         * libgcov.c (gcov_exit): Ditto.
23292         * gcov-dump.c (tag_function): Ditto.
23293         (compute_checksum): Remove.
23294
23295 2011-04-29  Alan Modra  <amodra@gmail.com>
23296
23297         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
23298         unspec plus offset.  Tidy macho code.
23299
23300 2011-04-29  Martin Jambor  <mjambor@suse.cz>
23301
23302         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
23303         node instead of a decl.  Update all callers.
23304         * cgraph.h: Update declaration.
23305
23306 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
23307
23308         PR tree-optimization/48765
23309         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
23310         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
23311         to indicate if loop aware SLP is being used.  Scan the statements
23312         and update the vectorization factor according to the type of
23313         vectorization before statement analysis.
23314         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
23315         pass it to vect_analyze_loop_operations.
23316         (vectorizable_reduction): Set number of copies to 1 in case of pure
23317         SLP statement.
23318         * tree-vect-stmts.c (vectorizable_conversion,
23319         vectorizable_assignment, vectorizable_shift,
23320         vectorizable_operation, vectorizable_type_demotion,
23321         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
23322         Likewise.
23323         (vectorizable_condition): Move the check that it is not SLP
23324         vectorization before the number of copies check.
23325         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
23326         to vectorize the loop using SLP.
23327
23328 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
23329
23330         PR middle-end/48597
23331         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
23332         inline asm.
23333
23334 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
23335
23336         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
23337         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
23338         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
23339         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
23340         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
23341         linux*.h headers.
23342         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
23343         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
23344         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
23345         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
23346         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
23347         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
23348         REG_NAME.
23349         * config/i386/linux.h (REG_NAME): Don't define.
23350         * config/i386/linux64.h (REG_NAME): Don't define.
23351         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
23352         Undefine before defining.
23353
23354 2011-04-28  Jan Hubicka  <jh@suse.cz>
23355
23356         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
23357         nonconstant_names array.
23358         (estimate_function_body_sizes): Build nonconstant_names array; handle
23359         BUILT_IN_CONSTANT_P.
23360
23361 2011-04-28  Richard Guenther  <rguenther@suse.de>
23362
23363         PR bootstrap/48804
23364         Revert
23365         2011-04-28  Richard Guenther  <rguenther@suse.de>
23366
23367         * tree-ssa-structalias.c (solve_constraints): Build succ graph
23368         as late as possible.
23369
23370 2011-04-28  Richard Guenther  <rguenther@suse.de>
23371
23372         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
23373         (debug_constraint): Do it here.
23374         (dump_constraints): And here.
23375         (rewrite_constraints): And here.
23376         (dump_constraint_edge): Remove.
23377         (dump_constraint_graph): Rewrite to produce DOT output.
23378         (solve_constraints): Build succ graph as late as possible.
23379         Dump constraint graphs before and after solving.
23380
23381 2011-04-28  Richard Guenther  <rguenther@suse.de>
23382
23383         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23384         New function split out from ...
23385         (find_func_aliases): ... here.  Call it.
23386         (find_func_aliases_for_call): Likewise.
23387
23388 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23389
23390         * internal-fn.h (internal_fn_name_array): Declare.
23391         (internal_fn_flags_array): Likewise.
23392
23393 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
23394
23395         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
23396         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
23397         Move from sse.md.
23398         (ssemodefsuffix): Remove.
23399         (ssevecmodesuffix): New mode attribute.
23400         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
23401         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
23402         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
23403         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
23404         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
23405         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
23406         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
23407         ssemodesuffix mode attribute.
23408         (float splitters): Use ssevecmodesuffix mode attribute.
23409         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
23410         (sseinsmode): Rename from avxvecmode.
23411         (avxsizesuffix): Rename from avxmodesuffix.
23412         (sseintvecmode): Rename from avxpermvecmode.
23413         (ssedoublevecmode): Rename from ssedoublesizemode.
23414         (ssehalfvecmode): Rename from avxhalfvecmode.
23415         (ssescalarmode): Rename from avxscalarmode.
23416         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
23417         templates for ssemodesuffix mode attribute.
23418         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
23419         mode attribute.
23420
23421         Adjust RTX patterns globally for renamed mode attributes.
23422
23423 2011-04-27  Jan Hubcika  <jh@suse.cz>
23424
23425         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
23426         * ipa-inline-analysis.c: Include alloc-pool.h.
23427         (edge_predicate_pool): New.
23428         (trye_predicate_p): New function
23429         (false_predicate_p): New function.
23430         (add_clause): Sanity check that false clauses are "optimized";
23431         never add clauses to predicate that is already known to be false.
23432         (and_predicate): Use flase_predicate_p.
23433         (evaulate_predicate): Rename to ...
23434         (evaluate_predicate): ... this one; update all callers; assert
23435         that false is not listed among possible truths.
23436         (dump_predicate): Use true_predicate_p.
23437         (account_size_time): Use false_predicate_p.
23438         (evaulate_conditions_for_edge): Rename to ...
23439         (evaluate_conditions_for_edge) ... this one.
23440         (edge_set_predicate): New function.
23441         (inline_edge_duplication_hook): Duplicate edge predicates.
23442         (inline_edge_removal_hook): Free edge predicates.
23443         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
23444         (dump_inline_summary): Update.
23445         (estimate_function_body_sizes): Set edge predicates.
23446         (estimate_calls_size_and_time): Handle predicates.
23447         (estimate_callee_size_and_time): Update.
23448         (remap_predicate): Add toplev_predicate; update comment.
23449         (remap_edge_predicates): New function.
23450         (inline_merge_summary): Compute toplev predicate; update.
23451         (read_predicate): New function.
23452         (read_inline_edge_summary): Use it.
23453         (inline_read_section): Likewise.
23454         (write_predicate): New function.
23455         (write_inline_edge_summary): Use it.
23456         (inline_write_summary): Likewise.
23457         (inline_free_summary): Free alloc pool and edge summary vec.
23458
23459 2011-04-27  Richard Guenther  <rguenther@suse.de>
23460
23461         * tree-ssa-structalias.c (changed_count): Remove.
23462         (changed): Use a bitmap.
23463         (unify_nodes): Adjust.
23464         (do_sd_constraint): Likewise.
23465         (do_ds_constraint): Likewise.
23466         (do_complex_constraint): Likewise.
23467         (solve_graph): Likewise.
23468
23469 2011-04-27  Jan Hubicka  <jh@suse.cz>
23470
23471         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
23472
23473 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
23474
23475         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
23476         (avx_vperm2f128_*_operand): Ditto.
23477         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
23478         Use avx_vpermilp_parallel in insn condition.
23479         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
23480         Use avx_vperm2f128_parallel in insn condition.
23481
23482 2011-04-27  Richard Guenther  <rguenther@suse.de>
23483
23484         * Makefile.in (tree-ssa-structalias.o): Remove
23485         gt-tree-ssa-structalias.h dependency.
23486         (GTFILES): Remove tree-ssa-structalias.c.
23487         * tree.c (allocate_decl_uid): New function.
23488         (make_node_stat): Use it.
23489         (copy_node_stat): Likewise.
23490         * tree.h (allocate_decl_uid): Declare.
23491         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
23492         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
23493         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
23494         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
23495         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
23496         (struct heapvar_map): Likewise.
23497         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
23498         heapvar_insert): Likewise.
23499         (make_heapvar_for): Rename to ...
23500         (make_heapvar): ... this.  Simplify.
23501         (fake_var_decl_obstack): New global var.
23502         (build_fake_var_decl): New function.
23503         (make_constraint_from_heapvar): Adjust.
23504         (handle_lhs_call): Likewise.
23505         (create_function_info_for): Likewise.
23506         (intra_create_variable_infos): Likewise.
23507         (init_alias_vars): Allocate fake_var_decl_obstack.
23508         (init_alias_heapvars, delete_alias_heapvars): Remove.
23509         (compute_points_to_sets): Do not call init_alias_heapvars.
23510         (ipa_pta_execute): Likewise.
23511         (delete_points_to_sets): Free fake_var_decl_obstack.
23512
23513 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23514
23515         * config/spu/divmovti4.c (union qword_UTItype): New data type.
23516         (si_from_UTItype, si_to_UTItype): New functions.
23517         (__udivmodti4): Use them to implement type-punning.
23518         * config/spu/multi3.c (union qword_TItype): New data type.
23519         (si_from_TItype, si_to_TItype): New functions.
23520         (__multi3): Use them to implement type-punning.
23521
23522 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23523
23524         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
23525
23526 2011-04-27  Jan Hubicka  <jh@suse.cz>
23527
23528         * ipa-prop.c (function_insertion_hook_holder): New holder.
23529         (ipa_add_new_function): New function.
23530         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
23531         Register/deregister holder.
23532
23533 2011-04-27  Richard Guenther  <rguenther@suse.de>
23534
23535         PR tree-optimization/48772
23536         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
23537
23538 2011-04-27  Richard Guenther  <rguenther@suse.de>
23539
23540         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
23541         TARGET_MEM_REF handling.
23542
23543 2011-04-27  Nick Clifton  <nickc@redhat.com>
23544
23545         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
23546         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
23547         (REG_CLASS_NAMES): Likewise.
23548         (REG_CLASS_CONTENTS): Likewise.
23549         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
23550         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
23551         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
23552         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
23553         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
23554         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
23555         duplicate register classes.
23556         (frv_class_likely_spilled_p): Likewise.
23557         (frv_register_move_cost): Likewise.
23558
23559         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
23560         end of the regno_reg_class array.
23561
23562 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
23563
23564         PR c/48742
23565         * c-typeck.c (build_binary_op): Don't wrap arguments if
23566         int_operands is true.
23567
23568 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
23569
23570         PR target/48767
23571         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
23572         targetm.calls.must_pass_in_stack for void type.
23573
23574 2011-04-26  Jan Hubicka  <jh@suse.cz>
23575
23576         * cgraphbuild.c (build_cgraph_edges): Update call
23577         of cgraph_create_edge and cgraph_create_indirect_edge.
23578         * cgraph.c (cgraph_create_edge_including_clones,
23579         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
23580         cgraph_update_edges_for_call_stmt_node): Do not take nest
23581         argument; do not initialize call_stmt_size/time.
23582         (dump_cgraph_node): Do not dump nest.
23583         (cgraph_clone_edge): Do not take loop_nest argument;
23584         do not propagate it; do not clone call_stmt_size/time.
23585         (cgraph_clone_node): Likewise.
23586         (cgraph_create_virtual_clone): Update.
23587         * cgraph.h (struct cgraph_edge): Remove
23588         call_stmt_size/call_stmt_time/loop_nest.
23589         (cgraph_create_edge, cgraph_create_indirect_edge,
23590         cgraph_create_edge_including_clones, cgraph_clone_node): Update
23591         prototype.
23592         * tree-emutls.c (gen_emutls_addr): Update.
23593         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
23594         loop_nest; handle indirect calls, too.
23595         (clone_inlined_nodes): Do not care about updating inline summaries.
23596         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
23597         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
23598         stream call_stmt_size/call_stmt_time/loop_nest.
23599         * ipa-inline.c (edge_badness): Update.
23600         (ipa_inline): dump summaries after inlining.
23601         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
23602         New.
23603         (inline_edge_summary): New function.
23604         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
23605         (inline_edge_removal_hook): Handle edge summaries.
23606         (inline_edge_duplication_hook): New hook.
23607         (inline_summary_alloc): Alloc hooks.
23608         (initialize_growth_caches): Do not register removal hooks.
23609         (free_growth_caches); Do not free removal hook.
23610         (dump_inline_edge_summary): New function.
23611         (dump_inline_summary): Use it.
23612         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
23613         (inline_update_callee_summaries): New function.
23614         (inline_merge_summary): Use it.
23615         (do_estimate_edge_time, do_estimate_edge_growth): Update.
23616         (read_inline_edge_summary): New function.
23617         (inline_read_section): Use it.
23618         (write_inline_edge_summary): New function.
23619         (inline_write_summary): Use it.
23620         (inline_free_summary): Free edge new holders.
23621         * tree-inline.c (copy_bb): Update.
23622
23623 2011-04-26  Jason Merrill  <jason@redhat.com>
23624
23625         * tree-eh.c (lower_try_finally_switch): Create the label along with
23626         the CASE_LABEL_EXPR.
23627
23628 2011-04-26  David S. Miller  <davem@davemloft.net>
23629             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23630
23631         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
23632         * configure: Regenerate.
23633
23634 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
23635
23636         PR target/48258
23637         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
23638         reduction.
23639         (VEC_reduc): New code iterator and splitters for vector reduction.
23640         (VEC_reduc_name): Ditto.
23641         (VEC_reduc_rtx): Ditto.
23642         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
23643         (reduc_<VEC_reduc_name>_v4sf): Ditto.
23644
23645         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
23646         support for extracting SF on VSX.
23647
23648         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
23649         generating xscvspdp.
23650         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
23651         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
23652         double add, minimum, maximum vector reduction.
23653         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
23654         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
23655         optimize double vector reduction.
23656         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
23657
23658 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
23659
23660         * config/fr30/fr30.h (inhibit_libc): Don't define.
23661         * config/m32r/m32r-protos.h: Correct comment.
23662         * config/v850/v850.h (GHS_default_section_names,
23663         GHS_current_section_names): Use tree, not union tree_node *.
23664
23665 2011-04-26  Xinliang David Li  <davidxl@google.com>
23666
23667         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
23668         * c-family/c-opts.c (c_common_handle_option): Set
23669         warn_maybe_uninitialized.
23670         * opts.c (common_handle_option): Ditto.
23671         * common.opt:  New option.
23672         * tree-ssa.c (warn_uninit): Add one more parameter.
23673         (warn_uninitialized_var): Pass warning code.
23674         * tree-flow.h: Interface change.
23675
23676 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23677
23678         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
23679         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
23680         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
23681
23682 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23683
23684         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
23685         * config/mips/mips.opt (mmips-tfile): Remove.
23686
23687         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
23688         mips-tdump reference to ...
23689         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
23690         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
23691         reference by Tru64 UNIX.
23692
23693 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
23694
23695         PR debug/48768
23696         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
23697         is error_mark_node, set value to NULL.
23698
23699         PR tree-optimization/48734
23700         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
23701         if return value from maybe_fold_*_comparsions isn't something
23702         the code is prepared to handle.
23703
23704 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
23705
23706         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
23707         mode check.
23708         (ext_QIreg_nomode_operands): Remove.
23709         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
23710         (*andsi_1): Ditto.
23711         (*andhi_1): Ditto.
23712
23713 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
23714
23715         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
23716
23717 2011-04-26  Richard Guenther  <rguenther@suse.de>
23718
23719         * c-typeck.c (build_unary_op): Do not expand array-refs via
23720         pointer arithmetic.  Only adjust qualifiers for function types.
23721
23722 2011-04-26  Richard Guenther  <rguenther@suse.de>
23723
23724         PR middle-end/48694
23725         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
23726         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
23727         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
23728         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
23729
23730 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
23731
23732         * doc/extend.texi: Document __underlying_type.
23733
23734 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
23735
23736         * config/rs6000/titan.md (automata_option "progress"): Remove.
23737
23738 2011-04-25  Jeff Law  <law@redhat.com>
23739
23740         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
23741
23742 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
23743
23744         * system.h (ENUM_BITFIELD): Remove.
23745
23746 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
23747             Eric Botcazou  <ebotcazou@adacore.com>
23748
23749         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
23750         for STORE_FLAG_VALUE==-1 case.
23751
23752 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
23753
23754         PR target/43804
23755         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
23756         LEGITIMATE_PIC_OPERAND_P.
23757
23758 2011-04-24  Jan Hubicka  <jh@suse.cz>
23759
23760         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
23761         WPA hack.
23762         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
23763         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
23764         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
23765         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
23766         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
23767         Sanity check predicate length.
23768         (remap_predicate): Likewise; sanity check jump functions.
23769         (inline_read_section, inline_write_summary): Sanity check
23770         predicate length.
23771
23772 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
23773
23774         PR other/48748
23775         * doc/extend.texi (Type Traits): Document __is_standard_layout,
23776         __is_literal_type, and __is_trivial; update throughout about
23777         possibly cv-qualified void types.
23778
23779 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
23780
23781         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
23782         testsuite and make it version agnostic.
23783
23784 2011-04-22  Jan Hubicka  <jh@suse.cz>
23785
23786         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
23787
23788 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
23789
23790         PR c/48685
23791         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
23792         to VOID_TYPE even around MODIFY_EXPR.
23793
23794 2011-04-22  Mike Stump  <mikestump@comcast.net>
23795
23796         * gensupport.c (read_md_rtx): Fix typo in comment.
23797         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
23798         comment.
23799
23800 2011-04-22  Jan Hubicka  <jh@suse.cz>
23801
23802         * gengtype.c (open_base_files): Add ipa-inline.h include.
23803         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
23804         ipa-prop.c; update all uses.
23805         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
23806         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
23807         merge summary of inlined function into former caller.
23808         * ipa-inline.c (max_benefit): Remove.
23809         (edge_badness): Compensate for removal of benefits.
23810         (update_caller_keys): Use
23811         reset_node_growth_cache/reset_edge_growth_cache.
23812         (update_callee_keys): Likewise.
23813         (update_all_callee_keys): Likewise.
23814         (inline_small_functions): Do not collect max_benefit; do not reset
23815         estimated_growth; call free_growth_caches and initialize_growth_caches.
23816         * ipa-inline.h (struct condition, type clause_t, struct predicate,
23817         struct size_time_entry): New structures.
23818         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
23819         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
23820         and estimated_growth.
23821         (edge_growth_cache_entry): New structure.
23822         (node_growth_cache, edge_growth_cache): New global vars.
23823         (estimate_growth): Turn into inline.
23824         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
23825         initialize_growth_caches, free_growth_caches): Declare.
23826         (estimate_edge_growth): Rewrite.
23827         (estimate_edge_time): Implement as inline cache lookup.
23828         (reset_node_growth_cache, reset_edge_growth_cache): New inline
23829         functions.
23830         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
23831         (NUM_CONDITIONS): New constant.
23832         (predicate_conditions): New enum.
23833         (IS_NOT_CONSTANT): New constant.
23834         (edge_removal_hook_holder): New var.
23835         (node_growth_cache, edge_growth_cache): New global vars.
23836         (true_predicate, single_cond_predicate, false_predicate,
23837         not_inlined_predicate, add_condition, add_clause, and_predicates,
23838         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
23839         dump_clause, dump_predicate, account_size_time,
23840         evaulate_conditions_for_edge): New functions.
23841         (inline_summary_alloc): Move to heap.
23842         (inline_node_removal_hook): Clear condition and entry vectors.
23843         (inline_edge_removal_hook): New function.
23844         (initialize_growth_caches, free_growth_caches): New function.
23845         (dump_inline_summary): Update.
23846         (edge_execution_predicate): New function.
23847         (will_be_nonconstant_predicate): New function.
23848         (estimate_function_body_sizes): Compute BB and constantness predicates.
23849         (compute_inline_parameters): Do not clear estimated_growth.
23850         (estimate_edge_size_and_time): New function.
23851         (estimate_calls_size_and_time): New function.
23852         (estimate_callee_size_and_time): New function.
23853         (remap_predicate): New function.
23854         (inline_merge_summary): New function.
23855         (do_estimate_edge_time): New function based on...
23856         (estimate_edge_time): ... this one.
23857         (do_estimate_edge_growth): New function.
23858         (do_estimate_growth): New function based on....
23859         (estimate_growth): ... this one.
23860         (inline_analyze_function): Analyze after deciding on jump functions.
23861         (inline_read_section): New function.
23862         (inline_read_summary): Use it.
23863         (inline_write_summary): Write all the new data.
23864         * ipa-prop.c (ipa_get_param_decl_index): Export.
23865         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
23866         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
23867         Declare.
23868         (ipa_get_lattice): Move here from ipa-cp.c
23869         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
23870         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
23871         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
23872         cgraph_edge_inlinable_p): Remove.
23873         * cgraphunit.c: Include ipainline.h
23874         (cgraph_process_new_functions): Update call of
23875         compute_inline_parameters.
23876
23877 2011-04-22  Richard Guenther  <rguenther@suse.de>
23878
23879         * tree.c (build_int_cst): Properly create canonicalized integer
23880         constants.
23881         (build_int_cst_type): Remove scary comments.
23882
23883 2011-04-22  Xinliang David Li  <davidxl@google.com>
23884
23885         * toplev.c (process_options): Enable -Werror=coverage-mismatch
23886         by default when -Wno-error is not specified.
23887         * opts-global.c (decode_options): Remove call to
23888         control_warning_options.
23889
23890 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
23891
23892         PR tree-optimization/48717
23893         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
23894         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
23895
23896 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
23897
23898         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
23899         definition where used.
23900
23901 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
23902
23903         PR c/48716
23904         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
23905         TREE_STATIC variables declared inside of some OpenMP construct.
23906
23907 2011-04-22  Martin Jambor  <mjambor@suse.cz>
23908
23909         PR middle-end/48585
23910         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
23911
23912 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
23913
23914         PR c/36750
23915         * c-typeck.c (pop_init_level): Do not warn about initializing
23916         with ` = {0}'.
23917
23918 2011-04-22  Alan Modra  <amodra@gmail.com>
23919
23920         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
23921         when returning call_cookie.
23922         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
23923         pointers, to functions with no more vector args than the current
23924         function, and some non-local calls for ABI_V4.
23925         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
23926         sibcall_nonlocal_aix64): Combine to ..
23927         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
23928         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
23929         (sibcall_value_nonlocal_aix<mode>): ..likewise.
23930         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
23931         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
23932         operand.
23933         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
23934         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
23935         sibcall_value_symbolic_64): Delete.
23936
23937 2011-04-21  Xinliang David Li  <davidxl@google.com>
23938
23939         * cgraph.h: Remove pid.
23940         * cgraph.c: Remove pid.
23941         * value-prof.c (init_node_map): New function.
23942         (del_node_map): New function.
23943         (find_func_by_funcdef_no): New function.
23944         (gimple_ic_transform): Call new function.
23945         * cgraphunit.c (cgraph_finalize_function): Remove pid.
23946         * function.c (get_last_funcdef_no): New function.
23947         * function.h (get_last_funcdef_no): New function.
23948         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
23949         to libgcov function.
23950         (tree-profiling): Call node map init and delete function.
23951
23952 2011-04-21  Ian Lance Taylor  <iant@google.com>
23953
23954         * godump.c (go_format_type): Use exported Go name for anonymous
23955         field name.
23956
23957 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
23958
23959         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
23960         Call builtin_function_type_list instead of builtin_function_type.
23961         (UNARY, BINARY, TRINARY, QUAD): Likewise.
23962
23963 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
23964
23965         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
23966         build_function_type_list instead of build_function_type.
23967         Delete variable `endlink'.
23968
23969 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
23970
23971         * config/s390/s390.c (s390_init_builtins): Call
23972         build_function_type_list instead of build_function_type.
23973
23974 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
23975
23976         * config/ia64/ia64.c (ia64_init_builtins): Call
23977         build_function_type_list instead of builtin_function_type.
23978
23979 2011-04-21  Easwaran Raman  <eraman@google.com>
23980
23981         * cfgexpand.c (stack_var): Remove OFFSET...
23982         (add_stack_var): ...and its reference here...
23983         (expand_stack_vars): ...and here.
23984         (stack_var_cmp): Sort by descending order of size.
23985         (partition_stack_vars): Change heuristic.
23986         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
23987         (dump_stack_var_partition): Add newline after each partition.
23988
23989 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
23990             Jeff Law  <law@redhat.com>
23991
23992         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23993         * gengtype.c (matching_file_name_substitute): Likewise.
23994
23995 2011-04-21  Richard Guenther  <rguenther@suse.de>
23996
23997         PR lto/48703
23998         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
23999
24000 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
24001
24002         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
24003
24004 2011-04-21  Richard Guenther  <rguenther@suse.de>
24005
24006         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
24007         file name.
24008
24009 2011-04-21  Richard Guenther  <rguenther@suse.de>
24010
24011         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
24012         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
24013         Use DECL_P, not SSA_VAR_P.
24014         (ptr_derefs_may_alias_p): Likewise.
24015         (ptr_deref_may_alias_ref_p_1): Likewise.
24016         (decl_refs_may_alias_p): Likewise.
24017         (refs_may_alias_p_1): Likewise.
24018         (ref_maybe_used_by_call_p_1): Likewise.
24019         (call_may_clobber_ref_p_1): Likewise.
24020         (indirect_ref_may_alias_decl_p): Assume indirect refrences
24021         are either MEM_REF or TARGET_MEM_REF.
24022         (indirect_refs_may_alias_p): Likewise.
24023         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
24024         for MEM_EXPR of indirect calls.
24025
24026 2011-04-21  Tristan Gingold  <gingold@adacore.com>
24027
24028         * vmsdbgout.c (write_srccorr): Compute file length from the string.
24029         (dst_file_info_struct): Remove flen field.
24030         (lookup_filename): Remove code that set flen field.
24031
24032 2011-04-21  Tristan Gingold  <gingold@adacore.com>
24033
24034         * config/ia64/ia64.c (ia64_start_function): Add a guard.
24035
24036 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
24037
24038         PR target/48708
24039         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
24040         vec_extract and vec_concat for non-SSE4_1 targets.
24041
24042 2011-04-21  Richard Guenther  <rguenther@suse.de>
24043
24044         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
24045         return statements.
24046
24047 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
24048
24049         * config/i386/cygming.h (union tree_node, TREE): Don't define or
24050         undefine.
24051         (FILE): Don't undefine.
24052
24053 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
24054
24055         * config/alpha/alpha.c (struct machine_function): Use rtx, not
24056         struct rtx_def *.
24057         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
24058         struct rtx_def *.
24059         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
24060         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
24061         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
24062         rtx_def *.
24063         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
24064         definitions where used.
24065         * config/microblaze/microblaze.h (struct microblaze_args): Use
24066         rtx, not struct rtx_def *.
24067         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
24068         rtx_def *.
24069         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
24070         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
24071         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
24072         not struct rtx_def *.
24073         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
24074         struct rtx_def *.
24075         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
24076         rtx_def *.
24077         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
24078
24079 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
24080
24081         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
24082         operand_equal_p to compare DR_BASE_ADDRESSes.
24083         (vect_check_interleaving): Likewise.
24084
24085 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
24086
24087         PR target/46329
24088         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
24089         for all Neon struct constants.
24090
24091 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
24092
24093         * target.def (legitimate_constant_p): New hook.
24094         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
24095         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
24096         * doc/tm.texi: Regenerate.
24097         * hooks.h (hook_bool_mode_rtx_true): Declare.
24098         * hooks.c (hook_bool_mode_rtx_true): Define.
24099         * system.h (LEGITIMATE_CONSTANT_P): Poison.
24100         * calls.c (precompute_register_parameters): Replace uses of
24101         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
24102         (emit_library_call_value_1): Likewise.
24103         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
24104         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
24105         * ira-costs.c (scan_one_insn): Likewise.
24106         * recog.c (general_operand, immediate_operand): Likewise.
24107         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
24108         * reload1.c (init_eliminable_invariants): Likewise.
24109
24110         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
24111         mode argument.
24112         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
24113         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
24114         argument.
24115         (TARGET_LEGITIMATE_CONSTANT_P): Define.
24116         * config/alpha/predicates.md (input_operand): Update call to
24117         alpha_legitimate_constant_p.
24118
24119         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
24120         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
24121         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
24122         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24123         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
24124         (arm_legitimate_constant_p): New functions.
24125         (arm_cannot_force_const_mem): Make static.
24126
24127         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
24128
24129         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
24130         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
24131         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
24132         instead of bfin_legitimate_constant_p.
24133         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
24134         (TARGET_LEGITIMATE_CONSTANT_P): Define.
24135
24136         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
24137
24138         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
24139
24140         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
24141         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
24142         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24143         (frv_legitimate_constant_p): Make static.  Add a mode argument.
24144
24145         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
24146         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
24147         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
24148
24149         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
24150         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
24151         * config/i386/i386.c (legitimate_constant_p): Rename to...
24152         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
24153         argument.
24154         (ix86_cannot_force_const_mem): Update accordingly.
24155         (ix86_legitimate_address_p): Likewise.
24156         (TARGET_LEGITIMATE_CONSTANT_P): Define.
24157         * config/i386/i386.md: Update commentary.
24158
24159         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
24160         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
24161         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24162         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
24163
24164         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
24165
24166         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
24167         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
24168         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24169         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
24170
24171         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
24172         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
24173         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
24174
24175         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
24176         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24177         (m32r_legitimate_constant_p): New function.
24178
24179         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
24180         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
24181         LEGITIMATE_CONSTANT_P.
24182         (LEGITIMATE_CONSTANT_P): Delete.
24183         * config/m68k/m68k.c (m68k_expand_prologue): Call
24184         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
24185         (m68k_legitimate_constant_p): New function.
24186         * config/m68k/m68k.md: Update comments.
24187
24188         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
24189         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24190         (mcore_legitimate_constant_p): New function.
24191
24192         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
24193         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
24194         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
24195         Add a mode argument.
24196         (mep_legitimate_address): Update accordingly.
24197         (TARGET_LEGITIMATE_CONSTANT_P): Define.
24198
24199         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
24200         Delete.
24201         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
24202         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
24203         static.  Check OP's mode for VOIDmode.
24204         (microblaze_legitimate_constant_p): New function.
24205         (TARGET_LEGITIMATE_CONSTANT_P): Define.
24206
24207         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
24208         * config/mips/mips.c (mips_legitimate_constant_p): New function.
24209         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
24210         (TARGET_LEGITIMATE_CONSTANT_P): Define.
24211         * config/mips/predicates.md: Update comments.
24212
24213         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
24214         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
24215         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24216         (mmix_legitimate_constant_p): Make static, return a bool, and take
24217         a mode argument.
24218         (mmix_print_operand_address): Update accordingly.
24219
24220         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
24221         Delete.
24222         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
24223         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
24224         static.  Add a mode argument.
24225         (TARGET_LEGITIMATE_CONSTANT_P): Define.
24226
24227         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
24228
24229         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
24230         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24231         (pa_legitimate_constant_p): New function.
24232
24233         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
24234
24235         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
24236         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24237         (pdp11_legitimate_constant_p): New function.
24238
24239         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
24240         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24241         (rs6000_legitimate_constant_p): New function.
24242
24243         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
24244         (rx_legitimate_constant_p): ...this.
24245         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
24246         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
24247         (rx_legitimate_constant_p): ...this.
24248         (TARGET_LEGITIMATE_CONSTANT_P): Define.
24249         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
24250
24251         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
24252         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
24253         * config/s390/s390.c (legitimate_constant_p): Rename to...
24254         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
24255         and add a mode argument.
24256         (TARGET_LEGITIMATE_CONSTANT_P): Define.
24257
24258         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
24259
24260         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
24261         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24262         (sh_legitimate_constant_p): New function.
24263
24264         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
24265         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
24266         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24267         (legitimate_constant_p): Rename to...
24268         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
24269         argument.
24270         (constant_address_p): Update accordingly.
24271
24272         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
24273         argument and return a bool.
24274         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
24275         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24276         (spu_legitimate_constant_p): Add a mode argument and return a bool.
24277         (spu_rtx_costs): Update accordingly.
24278         * config/spu/predicates.md (vec_imm_operand): Likewise.
24279
24280         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
24281
24282         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
24283         * config/v850/v850.c (v850_legitimate_constant_p): New function.
24284         (TARGET_LEGITIMATE_CONSTANT_P): Define.
24285
24286         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
24287         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
24288         * config/vax/vax.c (legitimate_constant_p): Likewise.
24289
24290         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
24291         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24292         (xtensa_legitimate_constant_p): New function.
24293
24294 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
24295
24296         * target.def (cannot_force_const_mem): Add a mode argument.
24297         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
24298         * doc/tm.texi: Regenerate.
24299         * hooks.h (hook_bool_mode_rtx_false): Declare.
24300         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
24301         (hook_bool_mode_const_rtx_true): Likewise.
24302         (hook_bool_mode_rtx_false): New function.
24303         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
24304         to be non-VOID.  Update call to cannot_force_const_mem.
24305         (find_reloads): Update accordingly.
24306         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
24307         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
24308         argument.
24309         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
24310         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
24311         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
24312         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
24313         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
24314         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
24315         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
24316         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
24317         (m68k_cannot_force_const_mem): ...this new function.
24318         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
24319         argument.
24320         (mips_const_insns, mips_legitimize_const_move): Update calls.
24321         (mips_secondary_reload_class): Likewise.
24322         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
24323         (pa_cannot_force_const_mem): ...this new function.
24324         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
24325         (rs6000_cannot_force_const_mem): ...this new function.
24326         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
24327         argument.
24328         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
24329         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
24330         to...
24331         (xtensa_cannot_force_const_mem): ...this new function.
24332
24333 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
24334
24335         * config/mips/mips.c (mips16_build_function_stub): Call
24336         build_function_type_list instead of build_function_type.
24337         (mips16_build_call_stub): Likewise.
24338
24339 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
24340
24341         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
24342         instead of build_function_type.
24343
24344 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
24345
24346         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
24347         instead of build_function_type.
24348
24349 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
24350
24351         PR target/48678
24352         * config/i386/i386.md (insv): Change operand 0 constraint to
24353         "register_operand".  Change operand 1 and 2 constraint to
24354         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
24355         * config/i386/sse.md (sse4_1_pinsrb): Export.
24356         (sse2_pinsrw): Ditto.
24357         (sse4_1_pinsrd): Ditto.
24358         (sse4_1_pinsrq): Ditto.
24359         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
24360         * config/i386/i386.c (ix86_expand_pinsr): New.
24361
24362 2011-04-20  Easwaran Raman  <eraman@google.com>
24363
24364         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
24365         containing union type only with -fstrict-aliasing.
24366
24367 2011-04-20  Jim Meyering  <meyering@redhat.com>
24368
24369         Remove useless if-before-free tests.
24370         * calls.c (expand_call, save_area): Likewise.
24371         * cfgcleanup.c (try_forward_edges): Likewise.
24372         * collect2.c (collect_execute): Likewise.
24373         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
24374         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
24375         * coverage.c (coverage_checksum_string): Likewise.
24376         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
24377         * cselib.c (cselib_init): Likewise.
24378         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
24379         (df_set_clean_cfg): Likewise.
24380         * function.c (free_after_compilation): Likewise.
24381         * gcc.c (do_spec_1, main): Likewise.
24382         * gcov.c (create_file_names): Likewise.
24383         * gensupport.c (identify_predicable_attribute): Likewise.
24384         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
24385         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
24386         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
24387         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
24388         * ipa-pure-const.c (local_pure_const): Likewise.
24389         * ipa-reference.c (propagate): Likewise.
24390         * ira-costs.c (free_ira_costs): Likewise.
24391         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
24392         * matrix-reorg.c (mat_free): Likewise.
24393         * prefix.c (get_key_value): Likewise.
24394         * profile.c (compute_value_histograms): Likewise.
24395         * reload1.c (free_reg_equiv): Likewise.
24396         * sched-deps.c (free_deps): Likewise.
24397         * sel-sched-ir.c (fence_clear): Likewise.
24398         * sese.c (set_rename, if_region_set_false_region): Likewise.
24399         * tree-data-ref.c (free_rdg): Likewise.
24400         * tree-eh.c (lower_try_finally): Likewise.
24401         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
24402         * tree-ssa-live.c (delete_var_map): Likewise.
24403         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
24404         * tree-ssa-pre.c (phi_trans_add): Likewise.
24405
24406 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
24407
24408         PR tree-optimization/48611
24409         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
24410         beyond ERT_MUST_NOT_THROW region.
24411
24412 2011-04-20  Catherine Moore  <clm@codesourcery.com>
24413
24414         * config/mips/mips.opt (mfix-24k): New.
24415         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
24416         * config/mips/mips.md (length): Increase by 4 for stores if
24417         fixing 24K errata.
24418         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
24419         all noreorder if fixing 24K errata.
24420         * doc/invoke.texi: Document mfix-24k.
24421
24422 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
24423
24424         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
24425         quad-word modes, reduce to 9-bit index range when above 1016 limit.
24426
24427 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
24428
24429         * config/arm/arm.c (arm_gen_constant): Move movw support ....
24430         (const_ok_for_op): ... to here.
24431
24432 2011-04-20  Kai Tietz  <ktietz@redhat.com>
24433
24434         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
24435         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
24436
24437 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
24438
24439         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
24440
24441 2011-04-20  Richard Guenther  <rguenther@suse.de>
24442
24443         PR tree-optimization/47892
24444         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
24445         are if-convertible.
24446
24447 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
24448
24449         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
24450
24451 2011-04-20  Tristan Gingold  <gingold@adacore.com>
24452
24453         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
24454
24455 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
24456
24457         PR target/18145
24458
24459         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
24460         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
24461         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
24462         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
24463         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
24464
24465         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
24466         New prototype.
24467
24468         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
24469         (avr_asm_named_section, avr_asm_output_aligned_common,
24470         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
24471         New functions to update...
24472         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
24473         (avr_asm_init_sections): Overwrite section callbacks for
24474         data_section, bss_section.
24475         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
24476         from here to...
24477         (avr_file_end): ...here.
24478
24479 2011-04-20  Richard Guenther  <rguenther@suse.de>
24480
24481         PR middle-end/48695
24482         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
24483         objects and types here.  Adjust for their offset before comparing.
24484
24485 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
24486
24487         * tree-vect-stmts.c (vectorizable_store): Only chain one related
24488         statement per copy.
24489
24490 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
24491
24492         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
24493         (GIMPLE_H): Include $(INTERNAL_FN_H).
24494         (OBJS-common): Add internal-fn.o.
24495         (internal-fn.o): New rule.
24496         * internal-fn.def: New file.
24497         * internal-fn.h: Likewise.
24498         * internal-fn.c: Likewise.
24499         * gimple.h: Include internal-fn.h.
24500         (GF_CALL_INTERNAL): New gf_mask.
24501         (gimple_statement_call): Put fntype into a union with a new
24502         internal_fn field.
24503         (gimple_build_call_internal): Declare.
24504         (gimple_build_call_internal_vec): Likewise.
24505         (gimple_call_same_target_p): Likewise.
24506         (gimple_call_internal_p): New function.
24507         (gimple_call_internal_fn): Likewise.
24508         (gimple_call_fntype): Return null for internal calls.
24509         (gimple_call_set_fntype): Assert that the function is not internal.
24510         (gimple_call_set_fn): Likewise.
24511         (gimple_call_set_fndecl): Likewise.
24512         (gimple_call_set_internal_fn): New function.
24513         (gimple_call_addr_fndecl): Handle null functions.
24514         (gimple_call_return_type): Likewise null types.
24515         * gimple.c (gimple_build_call_internal_1): New function.
24516         (gimple_build_call_internal): Likewise.
24517         (gimple_build_call_internal_vec): Likewise.
24518         (gimple_call_same_target_p): Likewise.
24519         (gimple_call_flags): Handle calls to internal functions.
24520         (gimple_call_fnspec): New function.
24521         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
24522         (gimple_has_side_effects): Handle null functions.
24523         (gimple_rhs_has_side_effects): Likewise.
24524         (gimple_call_copy_skip_args): Handle calls to internal functions.
24525         * cfgexpand.c (expand_call_stmt): Likewise.
24526         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
24527         * gimple-fold.c (gimple_fold_call): Handle null functions.
24528         (gimple_fold_stmt_to_constant_1): Don't fold
24529         calls to internal functions.
24530         * gimple-low.c (gimple_check_call_args): Handle calls to internal
24531         functions.
24532         * gimple-pretty-print.c (dump_gimple_call): Likewise.
24533         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
24534         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
24535         (do_warn_unused_result): Likewise.
24536         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
24537         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
24538         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
24539         the target of a call.
24540         (initialize_hash_element): Update accordingly.
24541         (hashable_expr_equal_p): Use gimple_call_same_target_p.
24542         (iterative_hash_hashable_expr): Handle calls to internal functions.
24543         (print_expr_hash_elt): Likewise.
24544         * tree-ssa-pre.c (can_value_number_call): Likewise.
24545         (eliminate): Handle null functions.
24546         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
24547         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
24548         (find_func_aliases): Likewise.
24549         * value-prof.c (gimple_ic_transform): Likewise.
24550         (gimple_indirect_call_to_profile): Likewise.
24551         * lto-streamer-in.c (input_gimple_stmt): Likewise.
24552         * lto-streamer-out.c (output_gimple_stmt): Likewise.
24553
24554 2011-04-19  Jan Hubicka  <jh@suse.cz>
24555
24556         * ipa-inline-transform.c (save_inline_function_body): Add comments.
24557         * ipa-inline.c (inline_small_functions): Compute summaries first,
24558         populate heap later.
24559
24560 2011-04-19  Jan Hubicka  <jh@suse.cz>
24561
24562         * cgraph.h (save_inline_function_body): Remove.
24563         * ipa-inline-transform.c: New file, broke out of...
24564         * ipa-inline.c: ... this one; Update toplevel comment.
24565         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
24566         make global.
24567         (update_noncloned_frequencies): Move to ipa-inline-transform.c
24568         (cgraph_mark_inline_edge): Rename to inline_call; move to
24569         ipa-inline-transform.c.
24570         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
24571         move to ipa-inline-transform.c
24572         (recursive_inlining, inline_small_functions, flatten_function,
24573         ipa_inline, inline_always_inline_functions,
24574         early_inline_small_functions): Update.
24575         (inline_transform): Move to ipa-inline-transform.c.
24576         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
24577         Declare.
24578         * Makefile.in (ipa-inline-transform.o): New file.
24579         * cgraphunit.c (save_inline_function_body): Move to
24580         ipa-inline-transform.c
24581
24582 2011-04-19  DJ Delorie  <dj@redhat.com>
24583
24584         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
24585         registers if we already know there aren't any.
24586         (m32c_emit_epilogue): Don't emit a barrier here.
24587         (m32c_emit_eh_epilogue): Likewise.
24588         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
24589         operands at expand time.
24590         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
24591         int" wchar type.
24592         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
24593         duplicates.  Provide aliases instead.
24594         * config/m32c/prologue.md (eh_return): Emit a barrier here.
24595         (eh_epilogue): Add a "(return)" here as a hint to other parts of
24596         the compiler.
24597
24598 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
24599
24600         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
24601         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
24602         (general_or_i64_p, sparc_register_move_cost): New function.
24603
24604 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24605
24606         * doc/install.texi (Configuration, --enable-threads): Remove mach.
24607         Add lynx, mipssde.  Sort table.
24608
24609 2011-04-19  Xinliang David Li  <davidxl@google.com>
24610
24611         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
24612         not negative.
24613
24614 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
24615
24616         PR target/48678
24617         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
24618         is a SUBREG with non-MODE_INT mode inside of it.
24619
24620 2011-04-19  Martin Jambor  <mjambor@suse.cz>
24621
24622         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
24623         also according to actual contants.
24624         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
24625         (gimple_fold_call): Use it.
24626         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
24627
24628 2011-04-19  Martin Jambor  <mjambor@suse.cz>
24629
24630         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
24631         non-pointer assignments.
24632
24633 2011-04-19  Martin Jambor  <mjambor@suse.cz>
24634
24635         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
24636         account anc_offset and otr_type from the indirect edge info.
24637         * ipa-prop.c (get_ancestor_addr_info): New function.
24638         (compute_complex_ancestor_jump_func): Assignment analysis moved to
24639         get_ancestor_addr_info, call it.
24640         (ipa_note_param_call): Do not initialize information about polymorphic
24641         calls, return the indirect call graph edge.  Remove the last
24642         parameter, adjust all callers.
24643         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
24644         parameters.  Initialize polymorphic information in the indirect edge.
24645
24646 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
24647
24648         PR lto/48148
24649         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
24650         the types if they have different enumeration identifiers.
24651
24652 2011-04-19  Jan Hubicka  <jh@suse.cz>
24653
24654         * cgraph.h (cgraph_optimize_for_size_p): Declare.
24655         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
24656         * predict.c (cgraph_optimize_for_size_p): Break out from ...
24657         (optimize_function_for_size_p) ... here.
24658
24659 2011-04-19  Richard Guenther  <rguenther@suse.de>
24660
24661         PR lto/48207
24662         * tree.c (free_lang_data): Do not reset the decl-assembler-name
24663         langhook.
24664
24665 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
24666
24667         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
24668         if DECL_NO_INLINE_WARNING_P is set on the function.
24669
24670 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
24671
24672         PR fortran/47976
24673         * reload1.c (inc_for_reload): Return void. All callers changed.
24674         (emit_input_reload_insns): Don't try to delete previous output
24675         reloads to a register, or record spill_reg_store for autoincs.
24676
24677 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
24678
24679         * gengtype.h: Updated copyright year.
24680         (struct input_file_st): Add inpisplugin field.
24681         (type_fileloc): New function.
24682         * gengtype.c
24683         (write_typed_struct_alloc_def): Add gcc_assert.
24684         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
24685         (write_typed_alloc_defns): Don't output for plugin files.
24686         (input_file_by_name): Clear inpisplugin field.
24687         (main): Set inpisplugin field for plugin files.
24688
24689 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
24690
24691         * gengtype-state.c (string_eq): New.
24692         (read_state): Use string_eq instead of strcmp when creating the
24693         state_ident_tab.
24694
24695 2011-04-19  Wei Guozhi  <carrot@google.com>
24696
24697         PR target/47855
24698         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
24699         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
24700         linkage.
24701         * config/arm/constraints.md (Uu): New constraint.
24702         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
24703
24704 2011-04-19  Tristan Gingold  <gingold@adacore.com>
24705
24706         * config.gcc (-*-*-*vms): Added.
24707         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
24708         definitions moved.
24709         * config/vms/vms-ld.c: New file.
24710         * config/vms/vms-ar.c: New file.
24711         * config/vms/t-vmsnative: New file.
24712
24713 2011-04-18  Xinliang David Li  <davidxl@google.com>
24714
24715         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
24716
24717 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
24718
24719         PR middle-end/48661
24720         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
24721         if TREE_TYPE (v) is non-NULL.
24722
24723         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
24724         gimple_get_virt_mehtod_for_binfo.
24725         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
24726         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
24727         callers.
24728         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24729
24730 2011-04-18  Michael Matz  <matz@suse.de>
24731             Steve Ellcey  <sje@cup.hp.com>
24732
24733         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
24734         use its mode as source mode if it isn't VOIDmode.
24735
24736 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
24737
24738         * doc/passes.texi: Fill crossref nodes.
24739
24740 2011-04-18  Jim Meyering  <meyering@redhat.com>
24741
24742         Fix doubled-word typos in comments and strings
24743         * config/alpha/vms-unwind.h: s/for for/for/
24744         * config/arm/unwind-arm.h: Likewise.
24745         * config/microblaze/microblaze.c: Likewise.
24746         * config/sh/constraints.md: s/in in/in/
24747         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
24748
24749 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
24750
24751         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
24752         (AVX_FLOAT_MODE_P): Ditto.
24753         (AVX128_VEC_FLOAT_MODE_P): Ditto.
24754         (AVX256_VEC_FLOAT_MODE_P): Ditto.
24755         (AVX_VEC_FLOAT_MODE_P): Ditto.
24756         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
24757         (UNSPEC_MASKSTORE): Ditto.
24758         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
24759         Merge from <sse>_movmsk<ssemodesuffix> and
24760         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
24761         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
24762         iterator.
24763         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
24764         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
24765         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
24766
24767 2011-04-18  Jan Hubicka  <jh@suse.cz>
24768
24769         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
24770
24771         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
24772         (want_inline_function_called_once_p): Break out the logic from
24773         ipa_inline.
24774         (edge_badness): Ensure that profile is not misupdated.
24775         (lookup_recursive_calls): Prioritize by call frequencies.
24776         (inline_small_functions): Move program size estimates here;
24777         actually process whole queue even when unit growth has been
24778         met. (to properly compute inline_failed reasons and for the
24779         case unit size decrease.) Revisit comments on recursive inlining.
24780         (ipa_inline): Remove unit summary code; first inline hot calls
24781         of functions called once, cold calls next.
24782         (order, nnodes): Remove unused variables.
24783         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
24784         (GTFILES): Remove ipa-inline.c
24785         * sel-sched.c (fill_insns): Silence uninitialized var warning.
24786
24787 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
24788
24789         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
24790
24791 2011-04-18  Jie Zhang  <jie@codesourcery.com>
24792             Richard Earnshaw  <rearnsha@arm.com>
24793
24794         * arm.c (neon_builtin_type_bits): Remove.
24795         (typedef enum neon_builtin_mode): New.
24796         (T_MAX): Don't define.
24797         (typedef enum neon_builtin_datum): Remove bits, codes[],
24798         num_vars and base_fcode.  Add mode, code and fcode.
24799         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
24800         VAR10): Change accordingly.
24801         (neon_builtin_data[]): Change accordingly
24802         (arm_init_neon_builtins): Change accordingly.
24803         (neon_builtin_compare): Remove.
24804         (locate_neon_builtin_icode): Remove.
24805         (arm_expand_neon_builtin): Change accordingly.
24806
24807         * arm.h (enum arm_builtins): Move to ...
24808         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
24809
24810         * arm.c (arm_builtin_decl): Declare.
24811         (TARGET_BUILTIN_DECL): Define.
24812         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
24813         (arm_builtin_decls[]): New.
24814         (arm_init_neon_builtins): Store builtin declarations in
24815         arm_builtin_decls[].
24816         (arm_init_tls_builtins): Likewise.
24817         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
24818         (arm_builtin_decl): New.
24819
24820 2011-04-18  Richard Guenther  <rguenther@suse.de>
24821
24822         * tree.c (upper_bound_in_type): Build properly canonicalized
24823         INTEGER_CSTs.
24824         (lower_bound_in_type): Likewise.
24825
24826 2011-04-18  Richard Guenther  <rguenther@suse.de>
24827
24828         * gimple.h (gimple_call_addr_fndecl): New function.
24829         (gimple_call_fndecl): Use it.
24830         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
24831         for direct calls.
24832         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
24833         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
24834
24835 2011-04-18  Richard Guenther  <rguenther@suse.de>
24836
24837         PR middle-end/48650
24838         * tree.c (build_string): STRING_CST is now derived from tree_typed.
24839
24840 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
24841
24842         PR lto/48492
24843         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
24844         DECL_IN_CONSTANT_POOL without RTL.
24845
24846 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
24847             Ira Rosen  <ira.rosen@linaro.org>
24848
24849         PR target/48252
24850         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
24851         to match neon_vzip/vuzp/vtrn_internal.
24852         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
24853         outputs explicitly dependent on both inputs.
24854         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
24855
24856 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
24857
24858         PR tree-optimization/48616
24859         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
24860         whether the shift is by scalar or vector based on whether all SLP
24861         scalar stmts have the same rhs.
24862
24863 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
24864
24865         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
24866         memory operands.
24867
24868 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
24869
24870         PR target/43700
24871         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
24872         registers.
24873
24874 2011-04-17  Jan Hubicka  <jh@suse.cz>
24875
24876         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
24877         * cgrpahunit.c (cgraph_finalize_function): Do not set
24878         finalized_by_frontend.
24879         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
24880         finalized_by_frontend.
24881
24882 2011-04-17  Jan Hubicka  <jh@suse.cz>
24883
24884         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
24885         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
24886         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
24887         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
24888         method.
24889         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
24890         gimple-fold.c
24891         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
24892
24893 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
24894
24895         PR lto/48538
24896         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
24897         is non-null before accessing it.
24898         (input_cgraph): Remove trailing spaces.
24899
24900 2011-04-17  Revital Eres  <revital.eres@linaro.org>
24901
24902         * params.def (sms-min-sc): New param flag.
24903         * modulo-sched.c (sms_schedule): Use it.
24904         * doc/invoke.texi (sms-min-sc): Document it.
24905
24906 2011-04-17  Jan Hubicka  <jh@suse.cz>
24907
24908         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
24909         present, also set gimple_call_set_cannot_inline.
24910         * ipa-inline.c: Update toplevel comment.
24911         (MAX_TIME): Remove.
24912         (cgraph_clone_inlined_nodes): Fix linebreaks.
24913         (cgraph_check_inline_limits): Restructure to ...
24914         (caller_growth_limits): ... this one; be more tolerant
24915         on growth in nested inline chains; add explanatory comment;
24916         fix stack accounting thinko introduced by previous patch.
24917         (cgraph_default_inline_p): Remove.
24918         (report_inline_failed_reason): New function.
24919         (can_inline_edge_p): New function.
24920         (can_early_inline_edge_p): New function.
24921         (leaf_node_p): Move upwards in file.
24922         (want_early_inline_function_p): New function.
24923         (want_inline_small_function_p): New function.
24924         (want_inline_self_recursive_call_p): New function.
24925         (cgraph_edge_badness): Rename to ...
24926         (edge_badness) ... this one; fix linebreaks.
24927         (update_edge_key): Update call of edge_baddness; add
24928         detailed dump about queue updates.
24929         (update_caller_keys): Use can_inline_edge_p and
24930         want_inline_small_function_p.
24931         (cgraph_decide_recursive_inlining): Rename to...
24932         (recursive_inlining): Use can_inline_edge_p and
24933         want_inline_self_recursive_call_p; simplify and remove no longer
24934         valid FIXME.
24935         (cgraph_set_inline_failed): Remove.
24936         (add_new_edges_to_heap): Use can_inline_edge_p and
24937         want_inline_small_function_p.
24938         (cgraph_decide_inlining_of_small_functions): Rename to ...
24939         (inline_small_functions): ... this one; cleanup; use
24940         can/want predicates; cleanup debug ouput; work edges till fibheap
24941         is exhausted and do not stop once unit growth is reached; remove
24942         later loop processing remaining edges.
24943         (cgraph_flatten): Rename to ...
24944         (flatten_function): ... this one; use can_inline_edge_p
24945         and can_early_inline_edge_p predicates.
24946         (cgraph_decide_inlining): Rename to ...
24947         (ipa_inline): ... this one; remove unreachable nodes before
24948         inlining functions called once; simplify the pass.
24949         (cgraph_perform_always_inlining): Rename to ...
24950         (inline_always_inline_functions): ... this one; use
24951         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
24952         (cgraph_decide_inlining_incrementally): Rename to ...
24953         (early_inline_small_functions): ... this one; simplify
24954         using new predicates; cleanup; make dumps prettier.
24955         (cgraph_early_inlining): Rename to ...
24956         (early_inliner): newer inline regular functions into always-inlines;
24957         fix updating of call stmt summaries.
24958         (pass_early_inline): Update for new names.
24959         (inline_transform): Fix formating.
24960         (gate_cgraph_decide_inlining): Rename to ...
24961         (pass_ipa_inline): ... this one.
24962         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
24963         * ipa-inline-analysis.c (dump_inline_summary): Update.
24964         (compute_inline_parameters): Do not compute disregard_inline_limits;
24965         look for mismatching arguments.
24966         (estimate_growth): Fix handlig of non-trivial self recursion.
24967         (inline_read_summary): Do not read info->disregard_inline_limits.
24968         (inline_write_summary): Do not write info->disregard_inline_limits.
24969         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
24970         and move all checks into can_inline_edge_p predicate; re-enable code
24971         comparing optimization levels.
24972         (expand_call_inline): Do not test inline_forbidden_into_p.
24973         * Makefile.in (ipa-inline.o): Update arguments.
24974
24975 2011-04-17  Revital Eres  <revital.eres@linaro.org>
24976
24977         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
24978
24979 2011-04-17  Revital Eres  <revital.eres@linaro.org>
24980
24981         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
24982
24983 2011-04-17  Michael Matz  <matz@suse.de>
24984
24985         PR tree-optimization/48622
24986         PR lto/48645
24987         * ipa-inline-analysis.c (inline_read_summary): Read size/time
24988         in same order as they're written.
24989
24990 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24991
24992         * config/pa/predicates.md: Reorganize and simplify predicates.
24993         Eliminate duplicate code checks.
24994         (arith_operand): Rename to arith14_operand
24995         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
24996         * config/pa/pa.md: Use renamed operands.
24997         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
24998         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
24999         arith11_operand, adddi3_operand, indexed_memory_operand,
25000         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
25001         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
25002         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
25003         move_dest_operand, move_src_operand, prefetch_cc_operand,
25004         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
25005         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
25006         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
25007         div_operand, int5_operand, movb_comparison_operator,
25008         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
25009         arith_double_operand, ireg_operand, lhs_lshift_operand,
25010         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
25011         integer_store_memory_operand): Likewise.
25012         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
25013         (integer_store_memory_operand, read_only_operand,
25014         function_label_operand, borx_reg_operand,
25015         non_hard_reg_operand): Likewise.
25016         (eq_neq_comparison_operator): Delete unused operator.
25017         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
25018         function_label_operand.
25019         (emit_move_sequence): Likewise.
25020
25021 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
25022
25023         * config/i386/sse.md (sseunpackmode): New mode attribute.
25024         (ssepackmode): Ditto.
25025         (vec_pack_trunc_<mode>): Macroize expander from
25026         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
25027         (vec_unpacks_lo_<mode>): Macroize expander from
25028         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
25029         (vec_unpacks_hi_<mode>): Macroize expander from
25030         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
25031         (vec_unpacku_lo_<mode>): Macroize expander from
25032         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
25033         (vec_unpacku_hi_<mode>): Macroize expander from
25034         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
25035         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
25036         ix86_expand_sse4_unpack.
25037         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
25038
25039 2011-04-16  Jan Hubicka  <jh@suse.cz>
25040
25041         * cgraphbuild.c: Include ipa-inline.h.
25042         (reset_inline_failed): Use initialize_inline_failed.
25043         * cgraph.c: Include ipa-inline.h.
25044         (cgraph_create_node_1): Do not initialize estimated_growth.
25045         (initialize_inline_failed): More to ipa-inline-analysis.c
25046         (dump_cgraph_node): Do not dump inline flags.
25047         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
25048         and disregard_inline_limits flags.
25049         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
25050         time, size, estimated_growth.
25051         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
25052         Update.
25053         * cgraphunit.c (cgraph_decide_is_function_needed): Use
25054         DECL_DISREGARD_INLINE_LIMITS.
25055         (cgraph_analyze_function): Do not initialize
25056         node->local.disregard_inline_limits.
25057         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
25058         inlinable, versionable and disregard_inline_limits.
25059         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
25060         cgraph_check_inline_limits, cgraph_default_inline_p,
25061         cgraph_edge_badness, update_caller_keys, update_callee_keys,
25062         add_new_edges_to_heap): Update.
25063         (cgraph_decide_inlining_of_small_function): Update; set
25064         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
25065         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
25066         cgraph_decide_inlining_incrementally): Update.
25067         * ipa-inline.h (inline_summary): Add inlinable, versionable,
25068         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
25069         time, size and estimated_growth parameters.
25070         (estimate_edge_growth): Update.
25071         (initialize_inline_failed): Declare.
25072         * ipa-split.c: Include ipa-inline.h
25073         (execute_split_functions): Update.
25074         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
25075         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
25076         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
25077         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
25078         estimated_growth to INT_MIN.
25079         (inline_node_duplication_hook): Likewise.
25080         (dump_inline_summary): Dump new fields.
25081         (compute_inline_parameters): Update.
25082         (estimate_edge_time, estimate_time_after_inlining,
25083         estimate_size_after_inlining, estimate_growth, inline_read_summary,
25084         inline_write_summary):
25085         (initialize_inline_failed): Move here from cgraph.c.
25086         * tree-sra.c: Include ipa-inline.h.
25087         (ipa_sra_preliminary_function_checks): Update.
25088         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
25089         ipa-inline.h.
25090
25091 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
25092
25093         * config/i386/sse.md (V16): New mode iterator.
25094         (VI1, VI8): Ditto.
25095         (AVXMODEQI, AVXMODEDI): Remove.
25096         (sse2, sse3): New mode attribute.
25097         (mov<mode>): Use V16 mode iterator.
25098         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
25099         (push<mode>1): Use V16 mode iterator.
25100         (movmisalign<mode>): Ditto.
25101         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
25102         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
25103         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
25104         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
25105         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
25106         avx_movdqu<avxmodesuffix>.
25107         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
25108         *avx_movdqu<avxmodesuffix>.
25109         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
25110         avx_lddqu<avxmodesuffix>.
25111         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
25112         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
25113         avx_movnt<AVXMODEDI:mode>.
25114         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
25115         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
25116
25117 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
25118
25119         PR target/48629
25120         * haifa-sched.c (prune_ready_list, schedule_block): Use
25121         sched_pressure_p rather than flag_sched_pressure.
25122
25123 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
25124
25125         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
25126         cgraph_get_node instead of cgraph_get_create_node.
25127
25128 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
25129
25130         * cfgexpand.c (expand_debug_expr): Use
25131         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
25132
25133 2011-04-15  Michael Matz  <matz@suse.de>
25134
25135         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
25136         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
25137         * function.c (gimplify_parameters): Ditto.
25138         * gimplify.c (gimplify_vla_decl): Ditto.
25139
25140         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
25141         (gimple_call_set_alloca_for_var): New inline function.
25142         (gimple_call_alloca_for_var_p): Ditto.
25143         * gimple.c (gimple_build_call_from_tree): Remember
25144         CALL_ALLOCA_FOR_VAR_P state.
25145         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
25146
25147         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
25148         calls if they were for VLA objects.
25149
25150 2011-04-15  Martin Jambor  <mjambor@suse.cz>
25151
25152         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
25153         of ADR_EXPRs.
25154
25155 2011-04-15  Martin Jambor  <mjambor@suse.cz>
25156
25157         PR middle-end/48601
25158         * tree-emutls.c (lower_emutls_function_body): Call
25159         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
25160         result is non-NULL.
25161
25162 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
25163
25164         * c-decl.c (detect_field_duplicates): Call
25165         objc_detect_field_duplicates instead of objc_get_interface_ivars.
25166
25167 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
25168
25169         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
25170         * gimple.c (gimple_asm_clobbers_memory_p): Define.
25171         * ipa-pure-const.c (check_stmt): Call it.
25172         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
25173
25174 2011-04-15  Richard Guenther  <rguenther@suse.de>
25175
25176         PR tree-optimization/48290
25177         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
25178         Properly decide inhibiting propagation based on the valueized
25179         operand.  Do loop-closed SSA form preserving here ...
25180         (init_copy_prop): ... not here.
25181
25182 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
25183
25184         PR target/48612
25185         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
25186         (*ieee_smax<mode>3): Likewise.
25187
25188 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25189
25190         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
25191         Replace match_operand with match_dup for the third operand in
25192         these expanders.
25193
25194 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
25195
25196         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
25197         to track processing of conditionals.  Update all callers.
25198         (try_combine, simplify_if_then_else): Update.
25199
25200 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
25201
25202         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
25203         -fsched-pressure.
25204
25205 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
25206
25207         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
25208         instead of match_operand for operand 3.
25209
25210 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
25211
25212         * recog.h (insn_operand_data): Add an "allows_mem" field.
25213         * genoutput.c (output_operand_data): Initialize it.
25214         * optabs.c (maybe_legitimize_operand_same_code): New function.
25215         (maybe_legitimize_operand): Use it when matching the original
25216         op->value.
25217
25218 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
25219
25220         * gimplify.c: Fix issues in comments throughout.
25221         (voidify_wrapper_expr): Fix long line.
25222         (build_stack_save_restore): Likewise.
25223         (gimplify_loop_expr): Likewise.
25224         (gimplify_compound_lval): Likewise.
25225         (gimplify_init_ctor_eval): Likewise.
25226         (gimplify_modify_expr_rhs): Likewise.
25227         (omp_notice_threadprivate_variable): Likewise.
25228
25229 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
25230
25231         * cfgexpand.c (expand_call_stmt): Convert the function type to the
25232         original one if this is not a builtin function.
25233
25234 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
25235
25236         PR target/48605
25237         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
25238         offset it as needed based on top 2 bits in operands[3], change
25239         MEM mode to SFmode and mask those 2 bits away from operands[3].
25240
25241 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
25242
25243         * c-parser.c (c_parser_objc_protocol_definition): Updated for
25244         change from objc_declare_protocols() to objc_declare_protocol().
25245
25246 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
25247
25248         * config/i386/sse.md (sse4_1): New mode attribute.
25249         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
25250         avx_blend<ssemodesuffix><avxmodesuffix> and
25251         sse4_1_blend<ssemodesuffix> using VF mode iterator.
25252         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
25253         avx_blendv<ssemodesuffix><avxmodesuffix> and
25254         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
25255         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
25256         avx_dp<ssemodesuffix><avxmodesuffix> and
25257         sse4_1_dp<ssemodesuffix> using VF mode iterator.
25258         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
25259         (sse4_1_packusdw): Merge with *avx_packusdw.
25260         (sse4_1_pblendvb): Merge with *avx_pblendvb.
25261         (sse4_1_pblendw): Merge with *avx_pblendw.
25262         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
25263         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
25264         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
25265         VF mode iterator.
25266         (sse4_1_round<ssescalarmodesuffix>): Merge with
25267         *avx_round<ssescalarmodesuffix>.
25268         (aesenc): Merge with *avx_aesenc.
25269         (aesenclast): Merge with *avx_aesenclast.
25270         (aesdec): Merge with *avx_aesdec.
25271         (aesdeclast): Merge with *avx_aesdeclast.
25272         (pclmulqdq): Merge with *pclmulqdq.
25273         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
25274         New predicate.
25275         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
25276
25277 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
25278
25279         PR middle-end/48608
25280         * cfgexpand.c (get_decl_align_unit): Renamed to ...
25281         (align_local_variable): This.  Update DECL_ALIGN.
25282         (add_stack_var): Updated.
25283         (expand_one_stack_var): Likewise.
25284
25285 2011-04-14  Richard Guenther  <rguenther@suse.de>
25286
25287         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
25288         Remove.
25289         (dse_initialize_block_local_data, dse_leave_block,
25290         record_voperand_set, get_stmt_uid): Likewise.
25291         (dse_possible_dead_store_p): Allow any kind of killing stmt.
25292         (dse_optimize_stmt): Remove voperand set handling code.
25293         Simplify and improve to handle any kind of killing stmt.
25294         (dse_record_phi): Remove.
25295         (dse_enter_block): Simplify.
25296         (tree_ssa_dse): Likewise.
25297         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
25298
25299 2011-04-14  Jan Hubicka  <jh@suse.cz>
25300
25301         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
25302         * cgraph.h (struct inline_summary): Move to ipa-inline.h
25303         (cgraph_local_info): Remove inline_summary.
25304         * ipa-cp.c: Include ipa-inline.h.
25305         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
25306         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
25307         accesor.
25308         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
25309         (input_overwrite_node): Do not set inline summary.
25310         (input_node): Do not stream inline summary.
25311         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
25312         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
25313         growth; we do not have inline parameters computed for that anyway.
25314         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
25315         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
25316         (inline_summary_t): New type and VECtor.
25317         (debug_inline_summary, dump_inline_summaries): Declare.
25318         (inline_summary): Use VOCtor.
25319         (estimate_edge_growth): Kill hack computing call stmt size directly.
25320         * lto-section-in.c (lto_section_name): Add inline section.
25321         * ipa-inline-analysis.c: Include lto-streamer.h
25322         (node_removal_hook_holder, node_duplication_hook_holder): New holders
25323         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
25324         (inline_summary_vec): Define.
25325         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
25326         dump_inline_summaries): New functions.
25327         (estimate_function_body_sizes): Properly compute size/time of outgoing
25328         calls.
25329         (compute_inline_parameters): Alloc inline_summary; do not compute
25330         size/time of incomming calls.
25331         (estimate_edge_time): Avoid missing time summary hack.
25332         (inline_read_summary): Read inline summary info.
25333         (inline_write_summary): Write inline summary info.
25334         (inline_free_summary): Free all hooks and inline summary vector.
25335         * lto-streamer.h: Add LTO_section_inline_summary section.
25336         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
25337         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
25338
25339 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
25340
25341         * tree-vectorizer.h (vect_strided_store_supported): Add a
25342         HOST_WIDE_INT argument.
25343         (vect_strided_load_supported): Likewise.
25344         (vect_permute_store_chain): Return void.
25345         (vect_transform_strided_load): Likewise.
25346         (vect_permute_load_chain): Delete.
25347         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
25348         count argument.  Check that the count is a power of two.
25349         (vect_strided_load_supported): Likewise.
25350         (vect_permute_store_chain): Return void.  Update after above changes.
25351         Assert that the access is supported.
25352         (vect_permute_load_chain): Likewise.
25353         (vect_transform_strided_load): Return void.
25354         * tree-vect-stmts.c (vectorizable_store): Update calls after
25355         above interface changes.
25356         (vectorizable_load): Likewise.
25357         (vect_analyze_stmt): Don't check for strided powers of two here.
25358
25359 2011-04-14  Richard Guenther  <rguenther@suse.de>
25360
25361         PR tree-optimization/48590
25362         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
25363         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
25364         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
25365         BUILT_IN_STACK_SAVE.
25366         * tree-ssa-dce.c (propagate_necessity): Handle
25367         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
25368
25369 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
25370
25371         * c-parser.c (c_parser_objc_class_declaration): Updated call to
25372         objc_declare_class.
25373
25374 2011-04-14  Richard Guenther  <rguenther@suse.de>
25375
25376         * tree.h (get_object_alignment_1): Declare.
25377         * builtins.c (get_object_alignment_1): Split out worker from ...
25378         (get_object_alignment): ... here.
25379         * fold-const.c (get_pointer_modulus_and_residue): Use
25380         get_object_alignment_1.
25381
25382 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
25383
25384         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
25385         type parameter.
25386         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
25387         parameter.  Generalise code to handle arrays as well as vectors.
25388         (vect_setup_realignment): Update accordingly.
25389         * tree-vect-stmts.c (vectorizable_store): Likewise.
25390         (vectorizable_load): Likewise.
25391
25392 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
25393
25394         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
25395         within the per-copy loop.
25396
25397 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
25398
25399         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
25400         in the dump file.
25401
25402 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
25403
25404         * doc/options.texi (Negative): Explicitly mention that the
25405         Negative chain must be circular.
25406
25407 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
25408
25409         * function.h (block_chainon): Declare.
25410         * function.c (block_chainon): Define.
25411
25412 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
25413             Eric Weddington  <eric.weddington@atmel.com>
25414             Georg-Johann Lay  <avr@gjlay.de>
25415
25416         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
25417         New Includes
25418         (avr_init_builtins, avr_expand_builtin,
25419         avr_expand_delay_cycles, avr_expand_unop_builtin,
25420         avr_expand_binop_builtin ): New functions.
25421         (avr_builtin_id): New enum
25422         (struct avr_builtin_description): New struct
25423         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
25424         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
25425
25426         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
25427         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
25428         UNSPECV_DELAY_CYCLES): new enumeration values
25429         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
25430         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
25431         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
25432         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
25433         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
25434         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
25435         "fmulsu"): New insns
25436
25437         * config/avr/avr-c.c: fix line endings
25438         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
25439         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
25440         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
25441         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
25442         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
25443
25444         * doc/extend.texi (AVR Built-in Functions): New node
25445         (Target Builtins): Add documentation of AVR
25446         built-in functions.
25447
25448 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
25449
25450         PR target/44643
25451         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
25452         alone. Error if non-const data has attribute progmem.
25453
25454 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
25455
25456         * tree.h (struct tree_constructor): Include tree_typed instead of
25457         tree_common.
25458         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
25459         TS_TYPED instead of TS_COMMON.
25460
25461 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
25462
25463         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
25464         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
25465         (sse2_psadbw): Merge with *avx_psadbw.
25466         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
25467         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
25468         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
25469         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
25470         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
25471         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
25472         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
25473         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
25474         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
25475         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
25476         (ssse3_palignrti): Merge with *avx_palignrti.
25477
25478 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
25479
25480         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
25481         * tree-ssanames.c (fini_ssanames): VEC_free it.
25482         (make_ssa_name_fn): Update for VECness of free_ssanames.
25483         (release_ssa_name, release_dead_ssa_names): Likewise.
25484         * tree.h (struct tree_ssa_name): Include tree_typed instead of
25485         tree_common.
25486         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
25487         TS_TYPED instead of TS_COMMON.
25488
25489 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
25490
25491         * postreload-gcse.c (gcse_after_reload_main): Add calls to
25492         statistics_counter_event.
25493         * tree-ssa-copyrename.c (stats): Define.
25494         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
25495         statistics_counter_event.
25496         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
25497         (bswap_stats, widen_mul_stats): Define.
25498         (insert_reciprocals): Increment rdivs_inserted.
25499         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
25500         rfuncs_inserted.  Add calls to statistics_counter_event.
25501         (execute_cse_sincos_1): Increment inserted.
25502         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
25503         statistics_counter_event.
25504         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
25505         of bswap_stats.  Add calls to statistics_counter_event.
25506         (convert_mult_to_widen): Increment widen_mults_inserted.
25507         (convert_plusminus_to_widen): Increment maccs_inserted.
25508         (convert_mult_to_fma): Increment fmas_inserted.
25509         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
25510         calls to statistics_counter_event.
25511
25512 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
25513
25514         PR rtl-optimization/48455
25515         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
25516         `temp_costs->mem_cost'.
25517
25518 2011-04-13  Jan Hubicka  <jh@suse.cz>
25519
25520         * ipa-inline.h: New file.
25521         * ipa-inline-analysis.c: New file. Broken out of ...
25522         * ipa-inline.c: ... this file; update toplevel comment;
25523         include ipa-inline.h
25524         (inline_summary): Move to ipa-inline.h
25525         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
25526         ipa-inline-analysis.c.
25527         (cgraph_estimate_time_after_inlining): Rename to
25528         estiamte_time_after_inlining; move to ipa-inline-analysis.c
25529         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
25530         to estimate_edge_growth.
25531         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
25532         rename to estimate_size_after_inlining.
25533         (cgraph_mark_inline_edge): Update for new naming convention.
25534         (cgraph_check_inline_limits): Likewise.
25535         (cgraph_edge_badness): Likewise.
25536         (cgraph_decide_recursive_inlining): Likewise.
25537         (cgraph_decide_inlining_of_small_functions): Likewise.
25538         (cgraph_decide_inlining_incrementally): Likewise.
25539         (cgraph_estimate_growth): Rename to estimate_growth; move to
25540         ipa-inline-analysis.c.
25541         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
25542         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
25543         (compute_inline_parameters): Likewise.
25544         (compute_inline_parameters_for_current): Likewise.
25545         (pass_inline_parameters): Likewise.
25546         (inline_indirect_intraprocedural_analysis): Likewise.
25547         (analyze_function): Rename to inline_analyze_function; likewise.
25548         (add_new_function): Move to ipa-inline-analysis.c.
25549         (inline_generate_summary): Likewise.
25550         (inline_read_summary): Likewise.
25551         (inline_write_summary): Likewise.
25552         * Makefile.in (ipa-inline-analysis.c): New file.
25553
25554 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25555
25556         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
25557         * configure: Regenerate.
25558
25559 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
25560
25561         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
25562         instead of tree_common.
25563         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
25564         Likewise.
25565         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
25566         TS_TYPED rather than TS_COMMON.
25567         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
25568
25569 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
25570
25571         PR target/45263
25572         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
25573         r20 around calls of __tablejump_elpm__
25574
25575 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
25576
25577         PR middle-end/48591
25578         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
25579         NULL.
25580         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
25581
25582 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
25583
25584         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
25585         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
25586         (cfi_vec): New typedef.
25587         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
25588         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
25589         (cie_cfi_vec): New static variable.
25590         (cie_cfi_head): Delete.
25591         (add_cfi): Accept a cfi_vec * as first argument. All callers and
25592         declaration changed. Use vector rather than list operations.
25593         (new_cfi): Don't initialize the dw_cfi_next field.
25594         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
25595         rather than list operations.
25596         (lookup_cfa): Use vector rather than list operations.
25597         (output_cfis): New argument upto. Accept a cfi_vec rather than
25598         a dw_cfi_ref list head as argument. All callers changed.
25599         Iterate over the vector using upto as a maximum index.
25600         (output_all_cfis): New static function.
25601         (output_fde): Use vector rather than list operations. Use the
25602         new upto argument for output_cfis rather than manipulating a
25603         list.
25604         (dwarf2out_begin_prologue): Change initializations to match
25605         new struct members.
25606         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
25607         from the vector length rather than searching for the end of a list.
25608         Use output_all_cfis.
25609         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
25610
25611 2011-04-13  Nick Clifton  <nickc@redhat.com>
25612
25613         * config/rx/rx.md (movmemsi): Do not use this pattern when
25614         volatile pointers are involved.
25615
25616 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
25617
25618         * config/i386/sse.md (pinsrbits): Remove.
25619         (sse2_packsswb): Merge with *avx_packsswb.
25620         (sse2_packssdw): Merge with *avx_packssdw.
25621         (sse2_packuswb): Merge with *avx_packuswb.
25622         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
25623         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
25624         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
25625         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
25626         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
25627         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
25628         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
25629         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
25630         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
25631         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
25632         (sse2_loadld): Merge with *avx_loadld.
25633         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
25634         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
25635         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
25636         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
25637         (vec_concatv2di): Merge with *vec_concatv2di_avx.
25638
25639 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
25640
25641         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
25642         calling TREE_CHAIN.
25643         * print-tree.c (print_node): Likewise.
25644         * tree-inline.c (copy_tree_r): Likewise.
25645         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
25646         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
25647         instead of TS_COMMON.
25648         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
25649         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
25650         (copy_node_stat): Zero TREE_CHAIN only if necessary.
25651         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
25652         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
25653         ...and these...
25654         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
25655         * tree.h: ...here.
25656         (TREE_CHAIN): Check for a TS_COMMON structure.
25657         (TREE_TYPE): Check for a TS_TYPED structure.
25658
25659 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
25660
25661         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
25662         cgraph_get_create_node instead of cgraph_node.
25663
25664 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
25665
25666         * c-parser.c (c_parser_initelt): Updated call to
25667         objc_build_message_expr.
25668         (c_parser_postfix_expression): Likewise.
25669
25670 2011-04-12  Kai Tietz  <ktietz@redhat.com>
25671
25672         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
25673         MASK_MS_BITFIELD_LAYOUT bit.
25674
25675 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
25676
25677         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
25678         assert it is always true.
25679         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
25680         moves.
25681
25682 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
25683
25684         * c-parser.c (c_lex_one_token): Rewritten conditional used when
25685         compiling Objective-C to be more efficient.
25686
25687 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
25688
25689         * opts-common.c (decode_cmdline_options_to_array): Remove variable
25690         argv_copied.
25691
25692 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
25693
25694         * recog.h, genoutput.c, optabs.c: Revert last patch.
25695
25696 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
25697
25698         PR target/48090
25699         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
25700
25701 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
25702
25703         * recog.h (insn_operand_data): Add an "allows_mem" field.
25704         * genoutput.c (output_operand_data): Initialize it.
25705         * optabs.c (maybe_legitimize_operand_same_code): New function.
25706         (maybe_legitimize_operand): Use it when matching the original
25707         op->value.
25708
25709 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
25710
25711         * genpreds.c (process_define_predicate): Move most processing
25712         to gensupport.c.  Continue to validate the expression.
25713         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
25714         (process_define_predicate): Move processing to gensupport.c.
25715         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
25716         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
25717         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
25718         argument.
25719         (valid_predicate_name_p): New function, split out from old
25720         genpreds.c:process_define_predicate.
25721         (process_define_predicate): New function, combining code from
25722         old genpreds.c and genrecog.c functions.
25723         (process_rtx): Call it for DEFINE_PREDICATE and
25724         DEFINE_SPECIAL_PREDICATE.
25725
25726 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
25727
25728         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
25729         size of a '%A' memory reference.
25730         (T_DREG, T_QREG): New neon_builtin_type_bits.
25731         (arm_init_neon_builtins): Assert that the load and store operands
25732         are neon_struct_operands.
25733         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
25734         (NEON_ARG_MEMORY): New builtin_arg.
25735         (neon_dereference_pointer): New function.
25736         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
25737         Handle NEON_ARG_MEMORY.
25738         (arm_expand_neon_builtin): Update after above interface changes.
25739         Use NEON_ARG_MEMORY for loads and stores.
25740         * config/arm/predicates.md (neon_struct_operand): New predicate.
25741         * config/arm/iterators.md (V_two_elem): Tweak formatting.
25742         (V_three_elem): Use BLKmode for accesses that have no associated mode.
25743         (V_four_elem): Tweak formatting.
25744         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
25745         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
25746         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
25747         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
25748         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
25749         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
25750         (neon_vst4<mode>): Replace pointer operand with a memory operand.
25751         Use %A in the output template.
25752         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
25753         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
25754         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
25755         the width of the memory access.  Remove post-increment.
25756         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
25757
25758 2011-04-12  Nick Clifton  <nickc@redhat.com>
25759
25760         * config/v850/v850.c (expand_prologue): Do not use the CALLT
25761         instruction for interrupt handlers if the target is the basic V850
25762         architecture.
25763         (expand_epilogue): Likewise.
25764
25765 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
25766
25767         PR rtl-optimization/48549
25768         * combine.c (propagate_for_debug): Also stop after BB_END of
25769         this_basic_block.  Process LAST and just stop processing after it.
25770         (combine_instructions): If last_combined_insn has been deleted,
25771         set last_combined_insn to its PREV_INSN.
25772
25773 2011-04-12  Richard Guenther  <rguenther@suse.de>
25774
25775         PR tree-optimization/46076
25776         * gimple.h (struct gimple_statement_call): Add fntype field.
25777         (gimple_call_fntype): Adjust.
25778         (gimple_call_set_fntype): New function.
25779         * gimple.c (gimple_build_call_1): Set the call function type.
25780         * gimplify.c (gimplify_call_expr): Preserve the function
25781         type the frontend used for the call.
25782         (gimplify_modify_expr): Likewise.
25783         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
25784         function type.
25785         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
25786         function type.
25787         * tree-ssa.c (useless_type_conversion_p): Function pointer
25788         conversions are useless.
25789
25790 2011-04-12  Martin Jambor  <mjambor@suse.cz>
25791
25792         * cgraph.h (cgraph_node): Remove function declaration.
25793         (cgraph_create_node): Declare.
25794         (cgraph_get_create_node): Likewise.
25795         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
25796         Updated all callers.
25797         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
25798         the decl does not already exist.  Call cgraph_get_create_node instead
25799         of cgraph_node.
25800         (cgraph_get_create_node): New function.
25801         (cgraph_same_body_alias): Update comment.
25802         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
25803         assert it does not return NULL.
25804         (cgraph_update_edges_for_call_stmt): Likewise.
25805         (cgraph_clone_edge): Likewise.
25806         (cgraph_create_virtual_clone): Likewise.
25807         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
25808         instead of cgraph_node.
25809         (cgraph_add_new_function): Call cgraph_create_node or
25810         cgraph_get_create_node instead of cgraph_node.
25811         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
25812         instead of cgraph_node.
25813         (record_eh_tables): Likewise.
25814         (mark_address): Likewise.
25815         (mark_load): Likewise.
25816         (build_cgraph_edges): Call cgraph_get_create_node instead
25817         of cgraph_node.
25818         (rebuild_cgraph_edges): Likewise.
25819         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
25820         instead of cgraph_node.
25821         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
25822         cgraph_node.
25823         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
25824         cgraph_create_node instead of cgraph_node.
25825         * c-decl.c (finish_function): Call cgraph_get_create_node instead
25826         of cgraph_node.
25827         * lto-cgraph.c (input_node): Likewise.
25828         * lto-streamer-in.c (input_function): Likewise.
25829         * varasm.c (mark_decl_referenced): Likewise.
25830         (assemble_alias): Likewise.
25831
25832 2011-04-12  Martin Jambor  <mjambor@suse.cz>
25833
25834         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
25835         instead of cgraph_node and assert it does not return NULL.
25836         * lto-streamer-in.c (lto_read_body): Likewise.
25837         * omp-low.c (new_omp_context): Likewise.
25838         (create_task_copyfn): Likewise.
25839         * tree-emutls.c (lower_emutls_function_body): Likewise.
25840         * matrix-reorg.c (transform_allocation_sites): Likewise.
25841
25842 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
25843
25844         PR c/48552
25845         * c-typeck.c (build_asm_expr): Error out on attempts to use
25846         void type outputs or inputs for constraints that allow reg or
25847         don't allow memory.
25848
25849 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
25850             Richard Earnshaw  <rearnsha@arm.com>
25851
25852         PR target/48250
25853         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
25854         to use sign-magnitude offsets. Reject unsupported unaligned
25855         cases. Add detailed description in comments.
25856         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
25857         condition from TARGET_32BIT to TARGET_ARM.
25858
25859 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
25860
25861         * tree.h (struct typed_tree): New.
25862         (struct tree_common): Include it instead of tree_base.
25863         (TREE_TYPE): Update for new location of type field.
25864         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
25865         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
25866         (union tree_node): Add typed field.
25867         * treestruct.def (TS_TYPED): New.
25868         * lto-streamer.c (check_handled_ts_structures): Handle it.
25869         * tree.c (MARK_TS_TYPED): New macro.
25870         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
25871
25872 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
25873
25874         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
25875         (force_nonfallthru): Do not alter the loop nest if no basic block
25876         was created.
25877
25878 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
25879
25880         * config/i386/sse.md (VI): New mode iterator.
25881         (SSEMODEI): Remove.
25882         (AVX256MODEI): Ditto.
25883         (AVXMODEF4P): Ditto.
25884         (avxvecpsmode): Ditto.
25885         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
25886         (sse2_andnot<mode>3): New expander.
25887         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
25888         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
25889         (<any_logic:code><mode>3): Use VI mode iterator.
25890         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
25891         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
25892         (*andnottf3): Handle AVX three-operand constraints.
25893         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
25894
25895 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
25896             Robert Millan  <rmh@gnu.org>
25897
25898         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
25899         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
25900         GNU_USER_DYNAMIC_LINKER64): Define.
25901         (REG_NAME): Don't undefine.
25902         (MD_UNWIND_SUPPORT): Undefine.
25903         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
25904         (REG_NAME): Don't undefine.
25905         (MD_UNWIND_SUPPORT): Undefine.
25906         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
25907
25908 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
25909
25910         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
25911         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
25912
25913 2011-04-11  Xinliang David Li  <davidxl@google.com>
25914
25915         * value-profile.c (check_ic_target): New function.
25916         (gimple_ic_transform): Sanity check indirect call target.
25917         * gimple-low.c (gimple_check_call_args): Interface change.
25918         (gimple_check_call_matching_types): New function.
25919         * tree-inline.c (tree_can_inline_p): Call new function.
25920
25921 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
25922
25923         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
25924         tree-pretty-print.h & realmpfr.h.
25925
25926 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
25927
25928         PR middle-end/48464
25929         * ira.c (setup_pressure_classes): Fix typo in loop condition.
25930         (setup_allocno_and_important_classes): Ditto.
25931
25932 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
25933
25934         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
25935         GNU_USER_DYNAMIC_LINKER.
25936         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
25937         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25938         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
25939         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
25940         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
25941         GNU_USER_TARGET_OS_CPP_BUILTINS.
25942         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
25943         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25944         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
25945         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25946         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
25947         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
25948         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
25949         GNU_USER_TARGET_OS_CPP_BUILTINS.
25950         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25951         GNU_USER_DYNAMIC_LINKER.
25952         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25953         GNU_USER_TARGET_OS_CPP_BUILTINS.
25954         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
25955         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25956         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
25957         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25958         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
25959         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
25960         GNU_USER_DYNAMIC_LINKER64): Remove.
25961         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
25962         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25963         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25964         GNU_USER_DYNAMIC_LINKER.
25965         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25966         GNU_USER_TARGET_OS_CPP_BUILTINS.
25967         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25968         GNU_USER_TARGET_OS_CPP_BUILTINS.
25969         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
25970         to GNU_USER_TARGET_OS_CPP_BUILTINS.
25971         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25972         GNU_USER_TARGET_OS_CPP_BUILTINS.
25973         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
25974         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
25975         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
25976         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
25977         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25978         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25979         GNU_USER_DYNAMIC_LINKER.
25980         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
25981         GNU_USER_TARGET_OS_CPP_BUILTINS.
25982         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
25983         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25984         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25985         GNU_USER_DYNAMIC_LINKER.
25986         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
25987         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25988         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
25989         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25990         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25991         GNU_USER_DYNAMIC_LINKER.
25992         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
25993         GNU_USER_DYNAMIC_LINKERN32.
25994         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
25995         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
25996         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
25997         GNU_USER_DYNAMIC_LINKER32.
25998         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
25999         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26000         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
26001         GNU_USER_DYNAMIC_LINKER.
26002         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
26003         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26004         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
26005         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26006         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
26007         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
26008         GNU_USER_DYNAMIC_LINKER32.
26009         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
26010         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
26011         GNU_USER_DYNAMIC_LINKER.
26012         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
26013         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26014         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
26015         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
26016         GNU_USER_DYNAMIC_LINKER64.
26017         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
26018         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26019         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
26020         GNU_USER_DYNAMIC_LINKER.
26021         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
26022         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26023         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
26024         GNU_USER_DYNAMIC_LINKER.
26025         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
26026         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26027         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
26028         GNU_USER_DYNAMIC_LINKER32.
26029         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
26030         GNU_USER_DYNAMIC_LINKER64.
26031         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
26032         GNU_USER_DYNAMIC_LINKER64.
26033         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
26034         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26035         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
26036         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26037         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
26038
26039 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
26040
26041         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
26042         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
26043         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
26044         GNU_USER_DYNAMIC_LINKER.
26045         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
26046         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
26047         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
26048         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
26049         GNU_USER_DYNAMIC_LINKER64.
26050         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
26051         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
26052         GNU_USER_LINK_EMULATION.
26053         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
26054         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
26055         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
26056         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
26057         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
26058         CPP_SPEC, CC1_SPEC): Remove.
26059         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
26060         (GNU_USER_DYNAMIC_LINKER): Define.
26061         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
26062         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
26063         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
26064         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
26065         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
26066         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
26067         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
26068         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
26069         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
26070         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
26071         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
26072         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
26073         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
26074         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
26075         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
26076         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
26077         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
26078         GNU_USER_DYNAMIC_LINKER.
26079         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
26080         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
26081         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
26082         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
26083         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
26084         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
26085         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
26086         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
26087         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
26088         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
26089
26090 2011-04-11  Kai Tietz  <ktietz@redhat.com>
26091
26092         PR target/9601
26093         PR target/11772
26094         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
26095         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
26096         comment.
26097         (ix86_is_msabi_thiscall): Removed.
26098         (ix86_is_type_thiscall): Likewise.
26099         (ix86_get_callcvt): New function.
26100         (ix86_comp_type_attributes): Simplify check.
26101         (ix86_function_regparm): Use ix86_get_callcvt for calling
26102         convention attribute checks.
26103         (ix86_return_pops_args): Likewise.
26104         (ix86_static_chain): Likewise.
26105         (x86_this_parameter): Likewise.
26106         (x86_output_mi_thunk): Likewise.
26107         (ix86_function_type_abi): Optimize check for types without attributes.
26108         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
26109         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
26110         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
26111         by flag-values.
26112         (IX86_BASE_CALLCVT): Helper macro.
26113         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
26114         Use ix86_get_callcvt for calling convention attribute checks and avoid
26115         symbol-decoration for stdcall in TARGET_RTD case.
26116         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
26117         Likewise.
26118         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
26119         for declaration.
26120
26121 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
26122
26123         * config/i386/sse.md (VI_128): New mode iterator.
26124         (VI12_128): Rename from SSEMODE12.
26125         (VI14_128): Rename from SSEMODE14.
26126         (VI124_128): New mode iterator.
26127         (VI24_128): Rename from SSEMODE248.
26128         (VI248_128): Rename from SSEMODE248.
26129         (SSEMODE124C8): Remove.
26130         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
26131         (*sse2_<plusminus_insn><mode>3): Merge with
26132         *avx_<plusminus_insn><mode>3.
26133         (*mulv8hi3): Merge with *avx_mulv8hi3.
26134         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
26135         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
26136         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
26137         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
26138         (ashr<mode>3): Merge with *avx_ashr<mode>3.
26139         (lshr<mode>3): Merge with *avx_lshr<mode>3.
26140         (ashl<mode>3): Merge with *avx_ashl<mode>3.
26141         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
26142         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
26143         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
26144         (*<smaxmin:code>v8hi3): Ditto.
26145         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
26146         (*<smaxmin:code>v16qi3): Ditto.
26147         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
26148         (*sse2_eq<mode>3): Ditto.
26149         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
26150         (*sse2_gt<mode>3): Ditto.
26151         (vcondv2di): Split out of vcond<mode>.
26152         (vconduv2di): Split out of vcondu<mode>.
26153
26154 2011-04-11  Richard Guenther  <rguenther@suse.de>
26155
26156         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
26157         before calling tree_low_cst.
26158
26159 2011-04-11  Richard Guenther  <rguenther@suse.de>
26160
26161         * stor-layout.c (layout_type): Compute all array index size operations
26162         in the original type.
26163         (initialize_sizetypes): Add comment.
26164         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
26165
26166 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
26167
26168         * common.opt (Tbss=, Tdata=, Ttext=): New options.
26169
26170 2011-04-11  Martin Jambor  <mjambor@suse.cz>
26171
26172         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
26173         of cgraph_node, handle NULL return value.
26174         (cgraph_global_info): Likewise.
26175         (cgraph_rtl_info): Likewise.
26176         * tree-inline.c (estimate_num_insns): Likewise.
26177         * gimplify.c (unshare_body): Likewise.
26178         (unvisit_body): Likewise.
26179         (gimplify_body): Likewise.
26180         * predict.c (optimize_function_for_size_p): Likewise.
26181         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
26182         (call_may_clobber_ref_p_1): Likewise.
26183         * varasm.c (function_section_1): Likewise.
26184         (assemble_start_function): Likewise.
26185
26186 2011-04-11  Martin Jambor  <mjambor@suse.cz>
26187
26188         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
26189         of cgraph_node.
26190         * final.c (rest_of_clean_state): Likewise.
26191         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
26192         * passes.c (pass_init_dump_file): Likewise.
26193         (execute_all_ipa_transforms): Likewise.
26194         (function_called_by_processed_nodes_p): Likewise.
26195         * predict.c (maybe_hot_frequency_p): Likewise.
26196         (probably_never_executed_bb_p): Likewise.
26197         (compute_function_frequency): Likewise.
26198         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
26199         (unnest_nesting_tree_1): Likewise.
26200         (lower_nested_functions): Likewise.
26201         * tree-optimize.c (execute_fixup_cfg): Likewise.
26202         (tree_rest_of_compilation): Likewise.
26203         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
26204         * tree-sra.c (ipa_early_sra): Likewise.
26205         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
26206         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
26207         * ipa.c (record_cdtor_fn): Likewise.
26208         * ipa-inline.c (cgraph_early_inlining): Likewise.
26209         (compute_inline_parameters_for_current): Likewise.
26210         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
26211         * ipa-pure-const.c (local_pure_const): Likewise.
26212         * ipa-split.c (split_function): Likewise.
26213         (execute_split_functions): Likewise.
26214         * cgraphbuild.c (build_cgraph_edges): Likewise.
26215         (rebuild_cgraph_edges): Likewise.
26216         (cgraph_rebuild_references): Likewise.
26217         (remove_cgraph_callee_edges): Likewise.
26218         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
26219         (verify_cgraph_node): Likewise.
26220         (cgraph_analyze_functions): Likewise.
26221         (cgraph_preserve_function_body_p): Likewise.
26222         (save_inline_function_body): Likewise.
26223         (save_inline_function_body): Likewise.
26224         * tree-inline.c (copy_bb): Likewise.
26225         (optimize_inline_calls): Likewise.
26226
26227 2011-04-11  Martin Jambor  <mjambor@suse.cz>
26228
26229         PR tree-optimization/48195
26230         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
26231         ipa_check_create_edge_args.
26232         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
26233         ipa_check_create_edge_args.
26234         * ipa-inline.c (inline_generate_summary): Do not call
26235         ipa_check_create_node_params and ipa_check_create_edge_args.
26236         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
26237         ipa_check_create_edge_args.
26238
26239 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
26240
26241         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
26242         instead of loop.
26243         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
26244         * function.c (record_hard_reg_sets): Likewise.
26245         * ira.c (compute_regs_asm_clobbered): Likewise.
26246         * sched-deps.c (sched_analyze_1): Likewise.
26247         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
26248
26249 2011-04-09  Xinliang David Li  <davidxl@google.com>
26250
26251         PR tree-optimization/PR48484
26252         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
26253         has_valid_pred lazily
26254
26255 2011-04-09  Duncan Sands  <baldrick@free.fr>
26256
26257         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
26258
26259 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
26260
26261         * combine.c (combine_validate_cost): Adjust comments.  Set registered
26262         cost of I0 to zero at the end, if any.
26263
26264 2011-04-08  Xinliang David Li  <davidxl@google.com>
26265
26266         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
26267         to insane profile data.
26268
26269 2011-04-08  Xinliang David Li  <davidxl@google.com>
26270
26271         * ipa-cp.c (ipcp_update_profiling): Correct
26272          negative scale factor due to insane profile data.
26273
26274 2011-04-08  Xinliang David Li  <davidxl@google.com>
26275
26276         * final.c (dump_basic_block_info): New function.
26277         (final): Dump basic block.
26278         (final_scan_insn): Remove old dump.
26279
26280 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
26281
26282         PR target/47829
26283         * config.gcc (i386-*-freebsd): Disable unwind table generation for
26284         crtbegin/crtend.
26285
26286 2011-04-08  Michael Matz  <matz@suse.de>
26287
26288         PR middle-end/48389
26289         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
26290         functions.
26291         (rebuild_jump_labels): Call rebuild_jump_labels_1.
26292         * rtl.h (rebuild_jump_labels_chain): Declare.
26293         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
26294         insns inserted on edges.
26295
26296 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
26297
26298         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
26299         * config/arm/arm-arches.def: New.
26300         * config/arm/arm-opts.h: New.
26301         * config/arm/genopt.sh: New.
26302         * config/arm/arm-tables.opt: New (generated).
26303         * config/arm/arm.c (arm_handle_option, arm_target_help,
26304         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
26305         (all_architectures): Get most table contents from arm-arches.def.
26306         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
26307         arm_selected_tune here.
26308         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
26309         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
26310         (march=, mcpu=, mtune=): Use Enum and Var.
26311         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
26312         (arm.o): Update dependencies.
26313
26314 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
26315
26316         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
26317         of header_file.
26318         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
26319         (write_typed_alloc_defns): Likewise.
26320         (main): Calls write_typed_alloc_defns with output_header.
26321
26322 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
26323
26324         PR inline-asm/48435
26325         * ira-color.c (setup_profitable_hard_regs): Add comments.
26326         Don't take prohibited hard regs into account.
26327         (setup_conflict_profitable_regs): Rename to
26328         get_conflict_profitable_regs.
26329         (check_hard_reg_p): Check prohibited hard regs.
26330
26331 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
26332
26333         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
26334         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
26335         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
26336
26337 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26338
26339         PR target/48366
26340         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
26341         move from floating point to shift amount register.
26342         (emit_move_sequence): Remove secondary reload support for floating
26343         point to shift amount amount register copies.
26344         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
26345         amount register copies.
26346         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
26347         register, return false if mode isn't a scalar integer mode.
26348         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
26349
26350 2011-04-08  Richard Guenther  <rguenther@suse.de>
26351
26352         * gimple.c (gimple_call_flags): Remove kludge.
26353
26354 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
26355
26356         * sel-sched.c (sel_region_init): Move call to
26357         sel_setup_region_sched_flags after setup_current_loop_nest.
26358
26359 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
26360
26361         PR rtl-optimization/48272
26362         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
26363         init_insn_reg_pressure_info.  Adjust a caller.
26364         * sched-int.h (init_insn_reg_pressure_info): Declare.
26365         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
26366         when sched-pressure is enabled.
26367
26368 2011-04-08  Richard Guenther  <rguenther@suse.de>
26369
26370         * gimple.c (gimple_set_modified): Do not queue calls to
26371         MODIFIED_NORETURN_CALLS here ...
26372         * tree-ssa-operands.c (update_stmt_operands): ... but here.
26373
26374 2011-04-08  Richard Guenther  <rguenther@suse.de>
26375
26376         PR lto/48467
26377         * toplev.c (lang_dependent_init): Do not open asm_out_file
26378         in WPA mode, nor perform debug machinery initialization.
26379         (finalize): Do not unlink asm_out_file in WPA mode.
26380
26381 2011-04-08  Richard Guenther  <rguenther@suse.de>
26382
26383         * gimple.h (gimple_call_fntype): New function.
26384         (gimple_call_return_type): Use it.
26385         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
26386         * gimple-low.c (gimple_check_call_args): Likewise.
26387         * gimple.c (gimple_call_flags): Likewise.
26388         (gimple_call_arg_flags): Likewise.
26389         (gimple_call_return_flags): Likewise.
26390         * tree-cfg.c (verify_gimple_call): Likewise.
26391         (do_warn_unused_result): Likewise.
26392         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
26393         * value-prof.c (gimple_ic_transform): Fix fndecl check.
26394
26395 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
26396
26397         PR rtl-optimization/48235
26398         * sel-sched.c (code_motion_process_successors): Recompute the last
26399         insn in basic block if control flow changed.
26400         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
26401         Update condition for ilist_remove.
26402
26403 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
26404
26405         PR rtl-optimization/48302
26406         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
26407         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
26408         it to record added preheader blocks.
26409         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
26410         on to sel_add_loop_preheaders.
26411         (sel_region_init): Move call to setup_current_loop_nest after
26412         sel_init_bbs.
26413
26414 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
26415
26416         PR target/48273
26417         * cfgloop.h (loop_has_exit_edges): New helper.
26418         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
26419         non-clonable.
26420         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
26421         that have no exit edges.
26422
26423 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
26424
26425         PR rtl-optimization/48442
26426         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
26427         all callers.  Adjust assert.
26428
26429 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
26430
26431         PR tree-optimization/48377
26432         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
26433         is_packed to true even for types with smaller TYPE_ALIGN than
26434         TYPE_SIZE.
26435
26436 2011-04-08  Richard Guenther  <rguenther@suse.de>
26437
26438         PR bootstrap/48513
26439         * doc/tm.texi: Re-generate.
26440
26441 2011-04-08  Wei Guozhi  <carrot@google.com>
26442
26443         PR target/47855
26444         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
26445         * config/arm/arm.c (arm_attr_length_push_multi): New function.
26446         * config/arm/arm.md (*push_multi): Change the length computation to
26447         call a C function.
26448
26449 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
26450
26451         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
26452         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
26453         * doc/tm.texi: Regenerate.
26454         * system.h (ASM_OUTPUT_BSS): Poison.
26455         * varasm.c (asm_output_bss): Remove function.
26456         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
26457
26458         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
26459         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
26460         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
26461         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
26462         Likewise.
26463         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
26464         Likewise.
26465         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
26466         Likewise.
26467         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
26468
26469 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
26470
26471         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
26472         EnumValue lines.
26473
26474 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
26475
26476         * config/m68k/m68k.c (m68k_handle_option): Don't handle
26477         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
26478         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
26479         OPT_mcpu32.
26480         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
26481         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
26482         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
26483         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
26484         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
26485         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
26486         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
26487         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
26488         options.  Don't map other m68k options manually.  Don't handle
26489         old-style options as canonical.
26490         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
26491         * doc/install.texi (m68k-*-*): Document binutils version requirement.
26492
26493 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
26494
26495         * basic-block.h (force_nonfallthru): Move to...
26496         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
26497         (force_nonfallthru): ...here.
26498         * cfghooks.c (force_nonfallthru): New function.
26499         * cfgrtl.c (force_nonfallthru): Rename into...
26500         (rtl_force_nonfallthru): ...this.
26501         (commit_one_edge_insertion): Do not set AUX field.
26502         (commit_edge_insertions): Do not discover new basic blocks.
26503         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
26504         (cfg_layout_rtl_cfg_hooks): Likewise.
26505         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
26506         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
26507         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
26508
26509 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
26510
26511         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
26512         Remove macros.
26513
26514 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
26515
26516         * config/i386/sse.md: Update copyright year.
26517         (avxcvtvecmode): Remove.
26518         (sse_movhlps): Merge with *avx_movhlps.
26519         (sse_movlhps): Merge with *avx_movlhps.
26520         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
26521         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
26522         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
26523         (sse_loadhps): Merge with *avx_loadhps.
26524         (sse_storelps): Merge with *avx_storelps.
26525         (sse_loadlps): Merge with *avx_loadlps.
26526         (sse_movss): Merge with *avx_movss.
26527         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
26528         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
26529         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
26530         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
26531         (vec_set<mode>_0): Ditto.
26532         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
26533         (sse4_1_insertps): Merge with *avx_insertps.
26534         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
26535         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
26536         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
26537         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
26538         (sse2_storehpd): Merge with *avx_storehpd.
26539         (sse2_loadhpd): Merge with *avx_loadhpd.
26540         (sse2_loadlpd): Merge with *avx_loadlpd.
26541         (sse2_movsd): Merge with *avx_movsd.
26542         (*vec_concatv2df): Merge with *vec_concatv2df.
26543
26544 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
26545
26546         PR debug/48343
26547         * combine.c (combine_instructions): Add last_combined_insn,
26548         update it if insn is after it, pass it to all try_combine calls.
26549         (try_combine): Add last_combined_insn parameter, pass it instead of
26550         i3 to propagate_for_debug.
26551
26552 2011-04-07  Nick Clifton  <nickc@redhat.com>
26553
26554         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
26555         to handle MDR <-> data register transfers.
26556         (movhi_internal): Likewise.
26557
26558 2011-04-07  Alan Modra  <amodra@gmail.com>
26559
26560         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
26561         previous stack info.
26562
26563 2011-04-07  Tom de Vries  <tom@codesourcery.com>
26564
26565         PR target/43920
26566         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
26567         flow_find_cross_jump.  Swap variables to implement backward replacement.
26568         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
26569
26570 2011-04-07  Tom de Vries  <tom@codesourcery.com>
26571
26572         PR target/43920
26573         * cfgcleanup.c (walk_to_nondebug_insn): New function.
26574         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
26575         and bb2.
26576         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
26577         src1 or src2.  Redirect edges to the last basic block.  Update
26578         frequency and count on multiple basic blocks in case of fallthru.
26579
26580 2011-04-07  Tom de Vries  <tom@codesourcery.com>
26581
26582         PR target/43920
26583         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
26584         function.
26585         (old_insns_match_p): Change return type.  Replace return false/true
26586         with return dir_none/dir_both.  Use can_replace_by.
26587         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
26588         direction from dir_p.  Register replacement direction in dir, last_dir
26589         and afterlast_dir.  Handle new return type of old_insns_match_p using
26590         merge_dir.  Return replacement direction in dir_p.
26591         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
26592         return type of old_insns_match_p.
26593         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
26594         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
26595         flow_find_cross_jump.
26596         * basic-block.h (enum replace_direction): New type.
26597         (flow_find_cross_jump): Add parameter to declaration.
26598
26599 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
26600
26601         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
26602         (AVXMODEDCVTPS2DQ): Ditto.
26603         (VEC_FLOAT_MODE): Ditto.
26604         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
26605         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
26606         (<any_logic:code><mode>3): Use VF mode iterator.
26607         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
26608         Use VF mode iterator.
26609         (copysign<mode>3): Use VF mode iterator.
26610         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
26611         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
26612         (*<any_logic:code><MODEF:mode>3): Merge with
26613         *avx_<any_logic:code><MODEF:mode>3.
26614         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
26615         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
26616         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
26617         (avx_cvtdq2ps<avxmodesuffix>): Remove.
26618         (sse2_cvtdq2ps): Use %v modifier.
26619         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
26620         (avx_cvtps2dq<avxmodesuffix>): Remove.
26621         (sse2_cvtps2dq): Use %v modifier.
26622         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
26623         (avx_cvttps2dq<avxmodesuffix>): Remove.
26624         (sse2_cvttps2dq): Use %v modifier.
26625         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
26626         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
26627         (sse2_cvtsd2siq): Fix insn template.
26628         (sse2_cvtsd2siq_2): Ditto.
26629         (sse2_cvttsd2siq): Ditto.
26630         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
26631         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
26632
26633 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
26634
26635         * gcov-io.c: Use GCC Runtime Library Exception.
26636
26637 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
26638
26639         PR debug/48466
26640         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
26641         as base_reg whatever register reg has been eliminated to, instead
26642         of hardcoding STACK_POINTER_REGNUM.
26643
26644 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
26645
26646         * doc/tm.texi.in: Document C target hooks as separate from general
26647         target hooks.
26648         * doc/tm.texi: Regenerate.
26649         * genhooks.c (struct hook_desc): Add docname field.
26650         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
26651         docname field.
26652         (hook_array): Include c-target.def.
26653         (emit_documentation): Use docname field in output.
26654         (emit_init_macros): Take docname argument.  Only emit definitions
26655         for hooks matching docname.
26656         (main): Expect additional arguments in all cases.  Pass argument
26657         to emit_init_macros.
26658         * target.def: Move initial macro definitions and comments to
26659         target-hooks-macros.h.
26660         (gcc_targetcm): Move to c-family/c-target.def.
26661         * target.h (targetcm): Move declaration to c-family/c-target.h.
26662         * targhooks.c (default_handle_c_option): Move to
26663         c-family/c-opts.c.
26664         * targhooks.h (default_handle_c_option): Move declaration to
26665         c-family/c-common.h.
26666         * target-hooks-macros.h: New file.
26667         * config.gcc (target_has_targetcm): Define and use to add to
26668         c_target_objs and cxx_target_objs.
26669         * config/default-c.c: New file.
26670         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
26671         of target.h and target-def.h.
26672         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
26673         (darwin_objc_construct_string, darwin_cfstring_ref_p,
26674         darwin_check_cfstring_format_arg): Make static.
26675         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
26676         TARGET_STRING_OBJECT_REF_TYPE_P,
26677         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
26678         * config/darwin-protos.h (darwin_objc_construct_string,
26679         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
26680         declare.
26681         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
26682         TARGET_STRING_OBJECT_REF_TYPE_P,
26683         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
26684         * config/t-darwin (darwin-c.o): Update dependencies.
26685         * system.h (TARGET_HAS_TARGETCM): Poison.
26686         * Makefile.in (TARGET_H): Update.
26687         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
26688         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
26689         (default-c.o): New target.
26690         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
26691         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
26692         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
26693         c-target.def.
26694         (build/genhooks.o): Update dependencies.
26695
26696 2011-04-06  Richard Guenther  <rguenther@suse.de>
26697
26698         * ipa-inline.c (enum inlining_mode): Remove.
26699         (cgraph_flatten): Use some other token.
26700         (cgraph_edge_early_inlinable_p): New function, split out from ...
26701         (cgraph_perform_always_inlining): New function, split out from ...
26702         (cgraph_decide_inlining_incrementally): ... here.
26703         (cgraph_mark_inline_edge): Adjust.
26704         (cgraph_early_inlining): Re-structure.
26705         (pass_early_inline): Require SSA form.
26706
26707 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
26708             Julian Brown  <julian@codesourcery.com>
26709             Mark Shinwell  <shinwell@codesourcery.com>
26710
26711         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
26712         LO_REGS only for Thumb-1.
26713         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
26714         be used in short instructions when optimising for size on Thumb-2.
26715
26716 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
26717
26718         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
26719         associated with user returns to be preserved.
26720
26721 2011-04-06  Tristan Gingold  <gingold@adacore.com>
26722
26723         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
26724         symbol_queue_size, DBXOUT_DECR_NESTING,
26725         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
26726         if XCOFF_DEBUGGING_INFO.
26727
26728 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
26729
26730         * config/i386/i386.md (attribute isa): New.
26731         (attribute enabled): New.
26732         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
26733         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
26734         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
26735         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
26736         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
26737         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
26738         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
26739         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
26740
26741         * config/i386/sse.md (VF): New mode iterator.
26742         (VF1): Ditto.
26743         (VF2): Ditto.
26744         (VF_128): Ditto.
26745         (SSEMODEF4): Remove.
26746         (attribute sse): Handle V8SF and V4DF modes.
26747         (<absneg:code><mode>2): Use VF mode iterator.
26748         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
26749         mode iterator.
26750         (<plusminus_insn><mode>3): Use VF mode iterator.
26751         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
26752         Use VF mode iterator.
26753         (<sse>_vm<plusminus_insn><mode>3): Merge with
26754         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
26755         (mul<mode>3): Use VF mode iterator.
26756         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
26757         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
26758         mode iterator.
26759         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
26760         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
26761         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
26762         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
26763         mode iterator.
26764         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
26765         Use VF1 mode iterator.
26766         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
26767         (sqrt<VF2:mode>2): New expander.
26768         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
26769         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
26770         and sqrtv2df2.  Use VF mode iterator.
26771         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
26772         mode iterator.
26773         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
26774         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
26775         Use VF1 mode iterator.
26776         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
26777         (<smaxmin:code><mode>3): Use VF mode iterator.
26778         (*<smaxmin:code><mode>3_finite): Merge with
26779         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
26780         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
26781         (<sse>_vm<smaxmin:code><mode>2): Merge with
26782         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
26783         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
26784         mode iterator.
26785         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
26786         mode iterator.
26787         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
26788         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
26789         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
26790         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
26791         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
26792         VF mode iterator.
26793         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
26794         Use VF_128 mode iterator.
26795         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
26796         mode iterator.
26797         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
26798         VF_128 mode iterator.
26799         (vcond<mode>): Use VF mode iterator.
26800         * config/i386/predicates.md (sse_comparison_operator): Merge with
26801         avx_comparison_float_operator.  Do not declare as special_predicate.
26802         * config/i386/i386.c (struct builtin_description): Update for renamed
26803         compare patterns.
26804         (ix86_expand_args_builtin): Ditto.
26805         (ix86_expand_sse_compare_mask): Ditto.
26806
26807 2011-04-06  Richard Guenther  <rguenther@suse.de>
26808
26809         * tree-inline.c (estimate_num_insns): For calls simply account
26810         for all passed arguments and a used return value.
26811
26812 2011-04-06  Richard Guenther  <rguenther@suse.de>
26813
26814         PR tree-optimization/47663
26815         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
26816         call_stmt_time fields.
26817         (cgraph_edge_inlinable_p): Declare.
26818         (cgraph_edge_recursive_p): New inline function.
26819         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
26820         (cgraph_clone_edge): Copy it.
26821         * ipa-inline.c (cgraph_estimate_edge_time): New function.
26822         Account for call stmt time.
26823         (cgraph_estimate_time_after_inlining): Take edge argument.
26824         (cgraph_estimate_edge_growth): Account call stmt size.
26825         (cgraph_estimate_size_after_inlining): Take edge argument.
26826         (cgraph_mark_inline_edge): Adjust.
26827         (cgraph_check_inline_limits): Likewise.
26828         (cgraph_recursive_inlining_p): Remove.
26829         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
26830         (cgraph_decide_recursive_inlining): Take edge argument and
26831         adjust.
26832         (cgraph_decide_inlining_of_small_functions): Do not avoid
26833         diags for recursive inlining here.
26834         (cgraph_flatten): Adjust.
26835         (cgraph_decide_inlining_incrementally): Likewise.
26836         (estimate_function_body_sizes): Remove call cost handling.
26837         (compute_inline_parameters): Initialize caller edge call costs.
26838         (cgraph_estimate_edge_growth): New function.
26839         (cgraph_estimate_growth): Use it.
26840         (cgraph_edge_badness): Likewise.
26841         (cgraph_check_inline_limits): Take an edge argument.
26842         (cgraph_decide_inlining_of_small_functions): Adjust.
26843         (cgraph_decide_inlining): Likewise.
26844         * tree-inline.c (estimate_num_insns): Only account for call
26845         return value if it is used.
26846         (expand_call_inline): Avoid diagnostics on recursive inline
26847         functions here.
26848         * lto-cgraph.c (lto_output_edge): Output edge call costs.
26849         (input_edge): Input edge call costs.
26850
26851 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26852
26853         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
26854
26855 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
26856
26857         * doc/invoke.texi (Spec Files): Fix typo.
26858
26859 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
26860
26861         * profile.c (branch_prob): Move declaration of local variable.  Remove
26862         obsolete ??? comment.  Expand the location explicitly instead of using
26863         the LOCATION_FILE and LOCATION_LINE macros.
26864
26865 2011-04-06  Wei Guozhi  <carrot@google.com>
26866
26867         PR target/47855
26868         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
26869         (arm_cond_branch): Likewise.
26870         (arm_cond_branch_reversed): Likewise.
26871         (arm_jump): Likewise.
26872         (push_multi): Likewise.
26873         * config/arm/constraints.md (Py): New constraint.
26874
26875 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26876
26877         PR bootstrap/48471
26878         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
26879         Move these...
26880         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
26881         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
26882         #ifdef DBX_DEBUGGING_INFO.
26883
26884 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
26885
26886         PR bootstrap/48403
26887         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
26888         if old and new states differ.
26889
26890 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
26891
26892         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
26893         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
26894         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
26895         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
26896         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
26897         mcfv4e): Use Alias.
26898         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
26899         ColdFire options to -mcpu= options.
26900
26901 2011-04-05  Jeff Law  <law@redhat.com>
26902
26903         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
26904         check if BB is a successor of LOOP->header and return
26905         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
26906
26907 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
26908
26909         * cprop.c (struct reg_use): Remove.
26910         (reg_use_table): Make an array of RTX.
26911         (find_used_regs, constprop_register, local_cprop_pass,
26912         bypass_block): Simplify users of reg_use_table.
26913         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
26914         on one of the uses found by find_used_regs.
26915
26916 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26917
26918         PR bootstrap/48469
26919         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
26920         declaration.
26921
26922 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26923
26924         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
26925         as an rtx.
26926         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
26927
26928 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
26929
26930         PR middle-end/48441
26931         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
26932
26933 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26934
26935         * combine.c: Include obstack.h.
26936         (struct insn_link): Define.
26937         (uid_log_links): Adjust type.
26938         (FOR_EACH_LOG_LINK): New macro.
26939         (insn_link_obstack): Declare.
26940         (alloc_insn_link): Define.
26941         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
26942         type of link variables.
26943         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
26944         (try_combine, record_promoted_values, distribute_notes): Likewise.
26945         (distribute_links): Likewise.  Tweak prototype.
26946         (clear_log_links): Delete.
26947         (adjust_for_new_dest): Call alloc_insn_link.
26948         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
26949
26950 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26951
26952         * gcse.c (modify_mem_list): Convert to an array of VECs.
26953         (canon_modify_mem_list, compute_transp): Tweak formatting.
26954         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
26955         (load_killed_in_block_p): Likewise.
26956         (record_last_mem_set_info): Likewise.
26957         (clear_modify_mem_tables): Likewise.
26958
26959 2011-04-05  Tom de Vries  <tom@codesourcery.com>
26960
26961         PR middle-end/48461
26962         * function.c (emit_use_return_register_into_block): Only define if
26963         HAVE_return.
26964
26965 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
26966
26967         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
26968
26969 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
26970
26971         * config/rx/rx-opts.h: New.
26972         * config/rx/rx.c (rx_cpu_type): Remove.
26973         (rx_handle_option): Don't assert that global structures are in
26974         use.  Access variables via opts pointer.  Defer most handling of
26975         OPT_mint_register_.  Use error_at.
26976         (rx_option_override): Handle deferred OPT_mint_register_ here.
26977         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
26978         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
26979         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
26980         (rx_cpu_types): New Enum and EnumValue entries.
26981         (mint-register=): Use Defer and use Var accordingly.
26982
26983 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26984
26985         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
26986         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
26987         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
26988         Move these...
26989         (debug_free_queue, debug_nesting, symbol_queue_index):
26990         ...and these...
26991         * dbxout.c: ...to here.  Make static.
26992
26993 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26994
26995         * gcse.c (modify_pair): Define.  Define a VEC of it.
26996         (canon_modify_mem_list): Convert to an array of VECs.
26997         (free_insn_expr_list_list): Delete.
26998         (clear_modify_mem_tables): Call VEC_free instead.
26999         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
27000         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
27001         (canon_list_insert, compute_transp): Likewise.
27002
27003 2011-04-05  Tom de Vries  <tom@codesourcery.com>
27004
27005         PR target/43920
27006         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
27007         for size.
27008
27009 2011-04-05  Tom de Vries  <tom@codesourcery.com>
27010
27011         PR target/43920
27012         * function.c (emit_use_return_register_into_block): New function.
27013         (thread_prologue_and_epilogue_insns): Use
27014         emit_use_return_register_into_block.
27015
27016 2011-04-05  Tom de Vries  <tom@codesourcery.com>
27017
27018         PR target/43920
27019         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
27020         insn.
27021
27022 2011-04-05  Tom de Vries  <tom@codesourcery.com>
27023
27024         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
27025
27026 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
27027
27028         * config/arm/arm.md (define_constants for unspec): Replace with
27029         define_c_enum.
27030         (define_constants for unspecv): Replace with define_c_enum.
27031         * config/arm/neon.md (define_constants for unspec): Replace with
27032         define_c_enum.
27033
27034 2011-04-04  Richard Henderson  <rth@redhat.com>
27035
27036         PR bootstrap/48400
27037         * dwarf2out.c (output_line_info): Always emit line info from
27038         at least one section.
27039         (dwarf2out_init): Create text_section_line_info here ...
27040         (set_cur_line_info_table): ... not here.
27041
27042 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
27043
27044         PR target/48380
27045         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
27046         not called.
27047
27048         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
27049
27050 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
27051
27052         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
27053         (expr_equiv_p): Remove.
27054         (insert_set_in_table): Look at <dest, src> pair instead of expr.
27055         (hash_scan_set): Update call to insert_set_in_table.
27056         (dump_hash_table): Dump <dest, src> pair.
27057         (lookup_set): Simplify.  Lookup <dest, src> pair.
27058         (compute_transp): Remove, fold heavily simplified code into...
27059         (compute_local_properties): ...here.  Expect COMP and TRANSP
27060         unconditionally.
27061         (find_avail_set): Take set directly from struct expr.
27062         (find_bypass-set): Likewise.
27063         (bypass_block): Likewise.
27064         (cprop_insn): Likewise.  Remove redundant INSN_P test.
27065
27066         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
27067         checks on form of COND from find_implicit_sets to here.
27068         (find_implicit_sets): Cleanup control flow. Split critical edges
27069         if it exposes implicit sets.  Allocate/resize implicit_sets as
27070         necessary.
27071         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
27072         changed something.  Run df_analyze after find_implicit_sets if any
27073         edges were split.  Do not allocate implicit_sets here.
27074
27075         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
27076         (gcse_obstack): Renamed to cprop_obstack.
27077         (GNEW, GNEWVEC, GNEWVAR): Remove.
27078         (gmalloc): Remove.
27079         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
27080         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
27081         (gcse_alloc): Likewise, and rename to cprop_alloc.
27082         (alloc_gcse_men, free_gcse_mem): Remove.
27083         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
27084         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
27085         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
27086
27087         * cprop.c (oprs_not_set_p): Remove.
27088         (mark_set, mark_clobber): Remove.
27089         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
27090         (reg_not_set_p): New function.
27091         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
27092         (cprop_insn): Likewise.
27093         (cprop_jump): Use FOR_EACH_EDGE.
27094
27095 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
27096
27097         PR bootstrap/48403
27098         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
27099         (rank_for_schedule): Use scheduled_insns vector instead of
27100         last_scheduled_insn.
27101         (ok_for_early_queue_removal): Likewise.
27102         (queue_to_ready): Search forward in nonscheduled_insns_begin if
27103         we have a dbg_cnt.
27104         (choose_ready): Likewise.
27105         (commit_schedule): Use VEC_iterate.
27106         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
27107         a dbg_cnt, use it and ensure the first insn is in the ready list.
27108         (haifa_sched_init): Allocate scheduled_insns.
27109         (sched_extend_ready_list): Don't allocate it; reserve space.
27110         (haifa_sched_finish): Free it.
27111
27112 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
27113
27114         * optc-gen.awk: Always remove type from Variable entry before
27115         recording in var_seen.
27116
27117 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
27118
27119         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
27120         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
27121         call to tidy_fallthru_edges.
27122
27123 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
27124
27125         * doc/options.texi (ToLower): Document.
27126         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
27127         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
27128         * opts.h (cl_option): Add cl_tolower field.
27129         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
27130         arguments with lowercase strings.
27131         * config/rx/rx.opt (mcpu=): Add ToLower.
27132         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
27133         argument.
27134
27135 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
27136
27137         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
27138
27139 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
27140
27141         * config/vax/vax.c: Include reload.h.
27142
27143 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
27144
27145         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
27146         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
27147         (sparc_preferred_reload_class): New function.
27148
27149 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
27150
27151         PR debug/48401
27152         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
27153         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
27154
27155 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
27156
27157         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
27158         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
27159
27160 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
27161
27162         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
27163         (ASM_OUTPUT_ALIGNED_BSS): Define.
27164
27165 2011-04-03  Michael Matz  <matz@suse.de>
27166
27167         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
27168         and next_slot members.
27169         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
27170         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
27171         (lto_streamer_cache_append): Declare.
27172         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
27173         unsigned index, remove offset parameter, ensure that we append
27174         or update existing entries.
27175         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
27176         parameter, update next_slot for append.
27177         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
27178         parameter.
27179         (lto_streamer_cache_insert_at): Likewise.
27180         (lto_streamer_cache_append): New function.
27181         (lto_streamer_cache_lookup): Use unsigned index.
27182         (lto_streamer_cache_get): Likewise.
27183         (lto_record_common_node): Don't test tree_node_can_be_shared.
27184         (preload_common_node): Adjust call to lto_streamer_cache_insert.
27185         (lto_streamer_cache_delete): Don't free offsets member.
27186         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
27187         (lto_output_string_with_length): Use lto_output_data_stream.
27188         (lto_output_tree_header): Remove ix parameter, don't write it.
27189         (lto_output_builtin_tree): Likewise.
27190         (lto_write_tree): Adjust callers to above, don't track and write
27191         offset, write unsigned index.
27192         (output_unreferenced_globals): Don't emit all global vars.
27193         (write_global_references): Use unsigned indices.
27194         (lto_output_decl_state_refs): Likewise.
27195         (write_symbol): Likewise.
27196         * lto-streamer-in.c (lto_input_chain): Move earlier.
27197         (input_function): Use unsigned index.
27198         (input_alias_pairs): Don't read and then ignore all global vars.
27199         (lto_materialize_tree): Remove ix_p parameter, don't read index,
27200         don't pass it back, use lto_streamer_cache_append.
27201         (lto_register_var_decl_in_symtab): Use unsigned index.
27202         (lto_register_function_decl_in_symtab): Likewise.
27203         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
27204         index.
27205         (lto_get_builtin_tree): Don't read index, use
27206         lto_streamer_cache_append.
27207         (lto_read_tree): Adjust call to lto_materialize_tree.
27208
27209         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
27210         don't use function calls in arguments to MIN.
27211
27212         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
27213         twice.
27214
27215         * gimple.c (gimple_type_leader_entry): Mark deletable.
27216
27217 2011-04-03  Alan Modra  <amodra@gmail.com>
27218
27219         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
27220
27221 2011-04-03  Michael Matz  <matz@suse.de>
27222
27223         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
27224         an integer.
27225         * tree.h (tree_decl_non_common.vindex): Adjust comment.
27226
27227 2011-04-03  Michael Matz  <matz@suse.de>
27228
27229         * cgraphbuild.c (record_reference): Canonicalize constructor values.
27230         * gimple-fold.c (canonicalize_constructor_val): Accept being called
27231         without function context.
27232         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
27233         current_function_decl and cfun.
27234
27235 2011-04-03  Michael Matz  <matz@suse.de>
27236
27237         * tree.c (decl_init_priority_insert): Don't create entry for
27238         default priority.
27239         (decl_fini_priority_insert): Ditto.
27240         (fields_compatible_p, find_compatible_field): Remove.
27241         * tree.h (fields_compatible_p, find_compatible_field): Remove.
27242         * gimple.c (gimple_compare_field_offset): Adjust block comment.
27243
27244 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
27245
27246         * combine.c (try_combine): Remove useless local variable.
27247
27248 2011-04-03  Richard Guenther  <rguenther@suse.de>
27249             Ira Rosen  <ira.rosen@linaro.org>
27250
27251         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
27252         non-variable offsets and compare the remaining bases of the two
27253         accesses instead of looking for exact same data-ref.
27254
27255 2011-04-02  Kai Tietz  <ktietz@redhat.com>
27256
27257         PR target/48416
27258         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
27259
27260         * i386.c (ix86_is_msabi_thiscall): New helper function.
27261         (ix86_is_type_thiscall): New helper function.
27262         (ix86_comp_type_attributes): Handle thiscall for method-functions
27263         special.
27264         (init_cumulative_args): Likewise.
27265         (find_drap_reg): Likewise.
27266         (ix86_static_chain): Likewise.
27267         (x86_this_parameter): Likewise.
27268         (x86_output_mi_thunk): Likewise.
27269
27270 2011-04-01  Olivier Hainque  <hainque@adacore.com>
27271             Nicolas Setton  <setton@adacore.com>
27272             Eric Botcazou  <ebotcazou@adacore.com>
27273
27274         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
27275         (add_gnat_descriptive_type_attribute): New function.
27276         (gen_array_type_die): Call it.
27277         (gen_enumeration_type_die): Likewise.
27278         (gen_struct_or_union_type_die): Likewise.
27279         (modified_type_die): Likewise.
27280         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
27281         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
27282         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
27283
27284 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
27285
27286         PR bootstrap/48148
27287         * dwarf2out.c (resolve_addr): Don't call force_decl_die
27288         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
27289
27290         Revert:
27291         2011-03-17  Richard Guenther  <rguenther@suse.de>
27292
27293         PR bootstrap/48148
27294         * lto-cgraph.c (input_overwrite_node): Clear the abstract
27295         origin for decls in other ltrans units.
27296         (input_varpool_node): Likewise.
27297
27298 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
27299
27300         PR middle-end/48335
27301         * expr.c (expand_assignment): Handle all possibilities
27302         if TO_RTX is CONCAT.
27303         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
27304         (store_split_bit_field): If SUBREG_REG (op0) or
27305         op0 itself has smaller mode than word, return it
27306         for offset 0 and const0_rtx for out-of-bounds stores.
27307         If word is const0_rtx, skip it.
27308
27309 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
27310
27311         * config/h8300/h8300.c (print_operand_address): Rename to...
27312         (h8300_print_operand_address): ...this. Make static. Adjust comments.
27313         Call h8300_print_operand and h8300_print_operand_address instead of
27314         print_operand and print_operand_address. Declare.
27315         (print_operand): Renake to...
27316         (h8300_print_operand): ...this. Make static. Adjust comments.
27317         Call h8300_print_operand instead of print_operand. Declare.
27318         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
27319         (h8300_register_move_cost): Likewise.
27320         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
27321         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
27322         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
27323         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
27324         * config/h8300/h8300-protos.h (print_operand): Delete.
27325         (print_operand_address): Delete.
27326
27327 2011-04-01  Richard Henderson  <rth@redhat.com>
27328
27329         PR 48400
27330         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
27331         in strict mode before dwarf4.  Re-order tests to early out
27332         before switching sections.
27333
27334 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
27335
27336         * config/h8300/constraints.md: New file.
27337         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
27338         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
27339         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
27340         * config/h8300/predicates.md (bit_operand): Likewise.
27341         (incdec_operand): Use satisfies_constraint_M and
27342         satisfies_constraint_O.  Don't use C code block.
27343         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
27344         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
27345         (compute_mov_length): Use satisfies_constraint_G.
27346         (fix_bit_operand): Use satisfies_constraint_U.
27347         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
27348         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
27349         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
27350         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
27351         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
27352         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
27353         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27354         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
27355         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
27356         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
27357         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
27358         (EXTRA_MEMORY_CONSTRAINT): Delete.
27359
27360 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
27361             Michael Meissner  <meissner@linux.vnet.ibm.com>
27362
27363         PR target/48262
27364         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
27365         operands, as per the specifications.
27366
27367         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
27368         (vec_extract_evenv4sf): Ditto.
27369         (vec_extract_evenv8hi): Ditto.
27370         (vec_extract_evenv16qi): Ditto.
27371         (vec_extract_oddv4si): Ditto.
27372
27373 2011-03-31  Mark Wielaard  <mjw@redhat.com>
27374
27375         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
27376         high_pc attribute if the CU has no associated code. Only output
27377         DW_AT_entry_pc for CU if not generating strict dwarf and
27378         dwarf_version < 4.
27379
27380 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
27381
27382         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
27383         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
27384         out of ...
27385         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
27386         * final.c (final_start_function): Call the new function rather
27387         than using a NULL argument for dwarf2out_frame_debug.
27388
27389         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
27390         that contains the prologue.
27391
27392         * haifa-sched.c (queue_insn): New arg REASON.  All callers
27393         changed.  Print it in debugging output.
27394
27395         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
27396
27397         * sched-ebb.c (begin_schedule_ready): Remove second argument.
27398         Split most of the code into...
27399         (begin_move_insn): ... here.  New function.
27400         (ebb_sched_info): Add a pointer to it.
27401         * haifa-sched.c (scheduled_insns): New static variable.
27402         (sched_extend_ready_list): Allocate it.
27403         (schedule_block): Use it to record the order of scheduled insns.
27404         Perform RTL changes to move insns only after all scheduling
27405         decisions have been made.
27406         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
27407         begin_move_insn field.
27408         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
27409         * sched-int.h (struct haifa_sched_info): Remove second argument
27410         from begin_schedule_ready hook.  Add new member begin_move_insn.
27411         * sched-rgn.c (begin_schedule_ready): Remove second argument.
27412         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
27413
27414         * haifa-sched.c (prune_ready_list): New function, broken out of
27415         schedule_block.
27416         (schedule_block): Use it.
27417
27418 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27419
27420         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
27421
27422 2011-04-01  Kai Tietz  <ktietz@redhat.com>
27423
27424         * config.gcc (*-*-mingw*): Allow as option the
27425         posix threading model.
27426         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
27427         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
27428         definition.
27429         (CPP_SPEC): Add pthread/no-pthread handling.
27430         (LIB_SPEC): Likewise.
27431         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
27432         (LIB_SPEC): Likewise.
27433         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
27434         flag to pass -pthread option for shared libgcc build.
27435         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
27436         for shared libgcc build.
27437         * config/i386/t-mingw-pthread: New file.
27438         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
27439         New define to enable use of library pthread by default.
27440         * config/i386/mingw.opt (pthread): New driver option.
27441         (no-pthread): New driver option.
27442         * config/i386/cygming.opt: Make sure trailing empty line is retained.
27443         * config/i386/mingw-w64.opt: Likewise.
27444
27445 2011-04-01  Gary Funck  <gary@intrepid.com>
27446
27447         * c-decl.c (grokdeclarator): Fix formatting.
27448
27449 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
27450
27451         * expr.c (emit_block_move_via_movmem): Use n_generator_args
27452         instead of n_operands.
27453         (set_storage_via_setmem): Likewise.
27454         * optabs.c (maybe_gen_insn): Likewise.
27455         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
27456         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
27457         (mips_expand_builtin_direct): Likewise.
27458         * config/spu/spu.c (expand_builtin_args): Likewise.
27459
27460 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
27461
27462         * recog.h (insn_data_d): Add n_generator_args.
27463         * genoutput.c (data): Likewise.
27464         (output_insn_data): Print it.
27465         (max_opno, num_dups): Delete.
27466         (scan_operands): Just fill in "d->operand[...]".
27467         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
27468
27469 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
27470
27471         * gensupport.h (pattern_stats): New structure.
27472         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
27473         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
27474         (max_operand_1, max_operand_vec): Delete.
27475         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
27476
27477 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
27478
27479         * emit-rtl.c (emit_pattern_after_setloc): New function.
27480         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
27481         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
27482         (emit_pattern_after): New function.
27483         (emit_insn_after, emit_jump_insn_after): Call it.
27484         (emit_call_insn_after, emit_debug_insn_after): Likewise.
27485         (emit_pattern_before_setloc): New function.
27486         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
27487         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
27488         Likewise.
27489         (emit_pattern_before): New function.
27490         (emit_insn_before, emit_jump_insn_before): Call it.
27491         (emit_call_insn_before, emit_debug_insn_before): Likewise.
27492
27493 2011-03-31  Richard Henderson  <rth@redhat.com>
27494
27495         * dwarf2out.c (dw_separate_line_info_ref): Remove.
27496         (dw_separate_line_info_entry): Remove.
27497         (enum dw_line_info_opcode): New.
27498         (dw_line_info_entry): Use it.
27499         (dw_line_info_table, dw_line_info_table_p): New.
27500         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
27501         (line_info_table, line_info_label_num): Remove.
27502         (line_info_table_in_use): Remove.
27503         (separate_line_info_table): Remove.
27504         (separate_line_info_table_allocated): Remove.
27505         (separate_line_info_table_in_use): Remove.
27506         (LINE_INFO_TABLE_INCREMENT): Remove.
27507         (line_info_label_num): New.
27508         (cur_line_info_table): New.
27509         (text_section_line_info, cold_text_section_line_info): New.
27510         (separate_line_info): New.
27511         (SEPARATE_LINE_CODE_LABEL): Remove.
27512         (print_dwarf_line_table): Remove.
27513         (debug_dwarf): Don't dump it.
27514         (output_one_line_info_table): New.
27515         (output_line_info): Use it.
27516         (new_line_info_table): New.
27517         (set_cur_line_info_table): New.
27518         (dwarf2out_switch_text_section): Use it.
27519         (dwarf2out_begin_function): Likewise.
27520         (push_dw_line_info_entry): New.
27521         (dwarf2out_source_line): Rewrite for new line info tables.
27522         (dwarf2out_init): Remove dead initailizations.
27523
27524 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
27525
27526         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
27527         various flags.
27528         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
27529         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
27530         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
27531         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
27532         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
27533         * opt-functions.awk (flag_init, switch_bit_fields): New.
27534         (switch_flags): Don't handle flags moved to bit-fields.  Don't
27535         generate CL_MISSING_OK or CL_SAVE.
27536         * optc-gen.awk: Update to generate bit-field output as well as
27537         flags field.
27538         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
27539         bit-field instead of CL_REJECT_DRIVER flag.
27540         * opts-common.c (generate_canonical_option,
27541         decode_cmdline_option): Use bit-fields instead of CL_* flags.
27542         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
27543         instead of CL_REJECT_NEGATIVE flag.
27544         * toplev.c (print_switch_values): Use cl_report bit-field instead
27545         of CL_REPORT flag.
27546
27547 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
27548
27549         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
27550         a zero minimum index only if it is redundant.
27551
27552 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
27553
27554         PR rtl-optimization/48381
27555         * ira-color.c (assign_hard_reg): Use hard reg set intersection
27556         instead of ira_class_hard_reg_index for calculating conflicting
27557         hard registers.
27558
27559 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
27560
27561         * cprop.c: Clean up hash table building.
27562         (reg_avail_info): Remove.
27563         (oprs_available_p): Remove.
27564         (record_last_reg_set_info): Remove.
27565         (record_last_set_info): Remove.
27566         (reg_available_p): New function.
27567         (gcse_constant_p): Do not treat unfolded conditions as constants.
27568         (make_set_regs_unavailable): New function.
27569         (hash_scan_set): Simplify with new reg_available_p.
27570         (compute_hash_table_work): Traverse insns stream only once.
27571         Do not compute reg_avail_info. Traverse insns in reverse order.
27572         Record implicit sets after recording explicit sets from the block.
27573
27574 2011-03-31  Michael Matz  <matz@suse.de>
27575
27576         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
27577
27578 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
27579
27580         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
27581         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
27582         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27583         (h8300_mode_dependent_address_p): New function.
27584         (h8300_get_index): Make static.
27585
27586 2011-03-31  Jeff Law  <law@redhat.com>
27587
27588         * reload1.c (elimination_effects): Fix typo in recent change.
27589
27590         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
27591         typo potentially leading to null pointer dereference.
27592
27593         * caller-save.c (new_saved_hard_reg): Eliminate return value.
27594         (setup_save_areas): Corresponding changes to avoid useless
27595         assignments.
27596
27597         * jump.c (reversed_comparison_code_parts): Avoid successive return
27598         statements when REVERSE_CONDITION is defined.
27599
27600         * expr.c (expand_assignment): Avoid useless assignments.
27601         (expand_expr_real_1): Likewise.
27602         (expand_expr_real_2): Avoid useless statements.
27603
27604         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
27605
27606         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
27607
27608         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
27609         statements.
27610
27611         * stmt.c (expand_expr_stmt): Avoid useless assignment.
27612
27613 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
27614
27615         PR target/47109
27616         * doc/tm.texi.in (TARGET_VERSION): Remove.
27617         * doc/tm.texi: Regenerate.
27618         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
27619         * collect2.c (main): Don't use TARGET_VERSION.
27620         * mips-tdump.c (main): Don't use TARGET_VERSION.
27621         * mips-tfile.c (main): Don't use TARGET_VERSION.
27622         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
27623         * config/rs6000/vxworksae.h: Remove.
27624         * config/alpha/alpha.h (TARGET_VERSION): Remove.
27625         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
27626         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
27627         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
27628         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
27629         * config/arm/arm.h (TARGET_VERSION): Remove.
27630         * config/arm/coff.h (TARGET_VERSION): Remove.
27631         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
27632         * config/arm/elf.h (TARGET_VERSION): Remove.
27633         * config/arm/freebsd.h (TARGET_VERSION): Remove.
27634         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
27635         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
27636         * config/arm/pe.h (TARGET_VERSION): Remove.
27637         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
27638         * config/arm/semi.h (TARGET_VERSION): Remove.
27639         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
27640         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
27641         * config/arm/vxworks.h (TARGET_VERSION): Remove.
27642         * config/avr/avr.h (TARGET_VERSION): Remove.
27643         * config/bfin/bfin.h (TARGET_VERSION): Remove.
27644         * config/fr30/fr30.h (TARGET_VERSION): Remove.
27645         * config/frv/frv.h (TARGET_VERSION): Remove.
27646         * config/h8300/h8300.h (TARGET_VERSION): Remove.
27647         * config/i386/cygwin.h (TARGET_VERSION): Remove.
27648         * config/i386/darwin.h (TARGET_VERSION): Remove.
27649         * config/i386/darwin64.h (TARGET_VERSION): Remove.
27650         * config/i386/djgpp.h (TARGET_VERSION): Remove.
27651         * config/i386/freebsd.h (TARGET_VERSION): Remove.
27652         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
27653         * config/i386/gnu.h (TARGET_VERSION): Remove.
27654         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
27655         * config/i386/i386elf.h (TARGET_VERSION): Remove.
27656         * config/i386/linux.h (TARGET_VERSION): Remove.
27657         * config/i386/linux64.h (TARGET_VERSION): Remove.
27658         * config/i386/lynx.h (TARGET_VERSION): Remove.
27659         * config/i386/mingw32.h (TARGET_VERSION): Remove.
27660         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
27661         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
27662         * config/i386/netware.h (TARGET_VERSION): Remove.
27663         * config/i386/nto.h (TARGET_VERSION): Remove.
27664         * config/i386/openbsd.h (TARGET_VERSION): Remove.
27665         * config/i386/vxworks.h (TARGET_VERSION): Remove.
27666         * config/ia64/elf.h (TARGET_VERSION): Remove.
27667         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
27668         * config/ia64/hpux.h (TARGET_VERSION): Remove.
27669         * config/ia64/linux.h (TARGET_VERSION): Remove.
27670         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
27671         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
27672         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
27673         * config/lm32/lm32.h (TARGET_VERSION): Remove.
27674         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
27675         * config/m32c/m32c.h (TARGET_VERSION): Remove.
27676         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
27677         * config/m32r/m32r.h (TARGET_VERSION): Remove.
27678         * config/m68k/linux.h (TARGET_VERSION): Remove.
27679         * config/m68k/m68k.h (TARGET_VERSION): Remove.
27680         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
27681         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
27682         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
27683         * config/mep/mep.h (TARGET_VERSION): Remove.
27684         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
27685         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
27686         * config/mips/iris6.h (MACHINE_TYPE): Remove.
27687         * config/mips/linux.h (TARGET_VERSION): Remove.
27688         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
27689         * config/mips/vxworks.h (TARGET_VERSION): Remove.
27690         * config/mmix/mmix.h (TARGET_VERSION): Remove.
27691         * config/mn10300/linux.h (TARGET_VERSION): Remove.
27692         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
27693         * config/pa/pa.h (TARGET_VERSION): Remove.
27694         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
27695         * config/picochip/picochip.h (TARGET_VERSION): Remove.
27696         * config/rs6000/aix.h (TARGET_VERSION): Remove.
27697         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
27698         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
27699         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
27700         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
27701         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
27702         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
27703         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
27704         * config/rs6000/linux.h (TARGET_VERSION): Remove.
27705         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
27706         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
27707         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
27708         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
27709         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
27710         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
27711         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
27712         * config/s390/linux.h (TARGET_VERSION): Remove.
27713         * config/s390/s390.h (TARGET_VERSION): Remove.
27714         * config/s390/tpf.h (TARGET_VERSION): Remove.
27715         * config/score/score.h (TARGET_VERSION): Remove.
27716         * config/sh/linux.h (TARGET_VERSION): Remove.
27717         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
27718         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
27719         * config/sh/sh.h (TARGET_VERSION): Remove.
27720         * config/sh/sh64.h (TARGET_VERSION): Remove.
27721         * config/sh/superh.h (TARGET_VERSION): Remove.
27722         * config/sh/vxworks.h (TARGET_VERSION): Remove.
27723         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
27724         * config/sparc/linux.h (TARGET_VERSION): Remove.
27725         * config/sparc/linux64.h (TARGET_VERSION): Remove.
27726         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
27727         TARGET_NAME32, TARGET_NAME): Remove.
27728         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
27729         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
27730         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
27731         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
27732         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
27733         * config/spu/spu.h (TARGET_VERSION): Remove.
27734         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
27735         * config/v850/v850.h (TARGET_VERSION): Remove.
27736         * config/vax/linux.h (TARGET_VERSION): Remove.
27737         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
27738         * config/xtensa/elf.h (TARGET_VERSION): Remove.
27739         * config/xtensa/linux.h (TARGET_VERSION): Remove.
27740
27741 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
27742
27743         PR target/48142
27744         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
27745         frame-related from frame-unrelated adjustments to the stack pointer.
27746
27747 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
27748
27749         * common.opt (fdebug-types-section): Move earlier.
27750         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
27751
27752 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
27753
27754         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
27755         var.
27756
27757 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
27758
27759         * tree.h (CASE_CHAIN): Define.
27760         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
27761         (gimple_redirect_edge_and_branch): Likewise.
27762
27763 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
27764
27765         PR middle-end/48367
27766         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
27767         calculation.
27768
27769 2011-03-30  Jeff Law  <law@redhat.com>
27770
27771         * PR bootstrap/48371
27772         * reload1.c (reload): Fix botch in last change.
27773
27774         * reload.h (struct reload): Fix typo introduced in last change.
27775
27776 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
27777
27778         * config/arm/arm.opt (mhard-float, msoft-float): Mark
27779         Undocumented.  Remove help text.
27780         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
27781         -mhard-float.
27782
27783 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
27784
27785         * doc/options.texi (NegativeAlias): Document.
27786         (Alias): Mention NegativeAlias.
27787         * opt-functions.awk: Handle NegativeAlias.
27788         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
27789         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
27790         * opts.h (CL_NEGATIVE_ALIAS): Define.
27791         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
27792         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
27793         OPT_mspe_.
27794         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
27795         Alias entries.
27796         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
27797         mno-spe and mno-isel instead of mspe=no and -misel=no.
27798
27799 2011-03-29  Mark Wielaard  <mjw@redhat.com>
27800
27801         * common.opt (fdebug-types-section): New flag.
27802         * doc/invoke.texi: Document new -fno-debug-types-section flag.
27803         * dwarf2out.c (use_debug_types): New define.
27804         (struct die_struct): Mark die_id with GTY desc use_debug_types.
27805         (print_die): Guard output of type unit signatures using
27806         use_debug_types.
27807         (build_abbrev_table): Replace assert of dwarf_version >= 4
27808         with assert on use_debug_types.
27809         (size_of_die): Likewise.
27810         (unmark_dies): Likewise.
27811         (value_format): Decide AT_ref_external form on use_debug_types.
27812         (output_die): Replace dwarf_version version check guard with
27813         use_debug_types where appropriate.
27814         (modified_type_die): Likewise.
27815         (gen_reference_type_die): Likewise.
27816         (dwarf2out_start_source_file): Likewise.
27817         (dwarf2out_end_source_file): Likewise.
27818         (prune_unused_types_walk_attribs): Likewise.
27819         (dwarf2out_finish): Likewise.
27820
27821 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
27822
27823         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
27824
27825 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
27826
27827         PR rtl-optimization/48332
27828         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
27829         mode of input operand N and modeN to its actual mode.
27830
27831 2011-03-30  Jeff Law  <law@redhat.com>
27832
27833         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
27834         define accessor macro.
27835         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
27836         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
27837         (reg_equiv_init): Likewise.
27838         (reg_equivs_size): New variable.
27839         (reg_equiv_init_size): Remove.
27840         (allocate_initial_values): Move prototype to here from....
27841         * integrate.h (allocate_initial_values): Remove prototype.
27842         * integrate.c: Include reload.h.
27843         (allocate_initial_values): Corresponding changes.
27844         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
27845         (fix_reg_equiv_init, no_equiv): Corresponding changes.
27846         (update_equiv_regs): Corresponding changes.
27847         (ira): Corresponding changes.
27848         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
27849         (push_secondary_reload): Corresponding changes.
27850         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
27851         (make_memloc, find_reloads_address): Corresponding changes.
27852         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
27853         (find_reloads_address_1): Corresponding changes.
27854         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
27855         (refers_to_regno_for_reload_p): Corresponding changes.
27856         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
27857         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
27858         * reload1.c: Include ggc.h.
27859         (grow_reg_equivs): New function.
27860         (replace_pseudos_in, reload): Corresponding changes.
27861         (calculate_needs_all_insns, alter_regs): Corresponding changes.
27862         (eliminate_regs_1, elimination_effects): Corresponding changes.
27863         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
27864         (delete_output_reload): Likewise.
27865         * caller-save.c (mark_referenced_regs): Corresponding changes.
27866         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
27867         * frv/predicates.md (frv_load_operand): Corresponding changes.
27868         * microblaze/microblaze.c (double_memory_operand): Corresponding
27869         changes.
27870         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
27871         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
27872         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
27873         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
27874         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
27875         changes.
27876         * pa/pa.c (emit_move_sequence): Corresponding changes.
27877         * vax/vax.c (nonindexed_address_p): Corresponding changes.
27878
27879 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
27880
27881         PR target/47551
27882         * config/arm/arm.c (coproc_secondary_reload_class): Handle
27883         structure modes.  Don't check neon_vector_mem_operand for
27884         vector or structure modes.
27885
27886 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
27887             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
27888
27889         PR target/43590
27890         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
27891         operand 1 and reshuffle the operands to match.
27892         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
27893
27894 2011-03-30  Christian Schüler  <cschueler@gmx.de>
27895
27896         PR driver/48208
27897         * config/c.opt (F): Added 'Driver' to -F option.
27898
27899         PR driver/48260
27900         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
27901           handler function.
27902         * config/darwin.opt: Added '-arch' option.
27903
27904 2011-03-30  Nick Clifton  <nickc@redhat.com>
27905
27906         * config/rx/rx.md: Add peepholes and patterns to combine
27907         extending loads and simple arithmetic instructions.
27908         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
27909         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
27910         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
27911         modes to use pre-decrement and post-increment addressing.
27912         (rx_is_restricted_memory_address): Add range checking of REG+INT
27913         addresses.
27914         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
27915         (rx_memory_move_cost): Adjust cost of stores.
27916         (rx_adjust_insn_length): New function.
27917
27918 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
27919
27920         PR c/48305
27921         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
27922         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
27923         matching arg00/arg01 types.
27924
27925 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
27926
27927         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
27928         last_location to UNKNOWN_LOCATION.
27929
27930 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
27931
27932         PR target/48349
27933         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
27934         FLOAT_SSE_REGS.
27935
27936 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
27937             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27938
27939         PR bootstrap/48337
27940         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
27941         Init(PROCESSOR_V7).
27942         (sparc_cpu): Likewise.
27943         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
27944         PROCESSOR_V7.
27945
27946 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
27947
27948         PR target/48336
27949         PR middle-end/48342
27950         PR rtl-optimization/48345
27951         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
27952         hard regs for given mode from profitable regs when doing secondary
27953         allocation.
27954
27955 2011-03-29  Jeff Law  <law@redhat.com>
27956
27957         PR bootstrap/48327
27958         * tree-ssa-threadupdate.c (struct redirection_data): Remove
27959         do_not_duplicate field.
27960         (lookup_redirection_data): Corresponding changes.
27961         (create_duplicates): Always create a template block.
27962         (redirect_edges): Remove code which reused the original block
27963         when it was going to become unreachable code.
27964         (thread_block): Don't set do_not_duplicate field.
27965
27966 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
27967
27968         * lto-opts.c (register_user_option_p, lto_register_user_option):
27969         Make type argument unsigned.
27970         * lto-streamer.h (lto_register_user_option): Make type argument
27971         unsigned.
27972         * opth-gen.awk: Make CL_* macros unsigned.
27973         * opts-common.c (find_opt): Make lang_mask argument unsigned.
27974         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
27975         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
27976         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
27977         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
27978         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
27979         (find_opt): Make lang_mask argument unsigned.
27980
27981 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
27982
27983         PR rtl-optimization/48331
27984         PR rtl-optimization/48334
27985         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
27986         for any used algorithm.
27987
27988 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
27989
27990         * ira-conflicts.c (build_object_conflicts): Add unused attribute
27991         to parent_max.
27992
27993 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
27994
27995         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
27996         (alpha_option_override): Don't set alpha_sr_alias_set.
27997         (emit_frame_store_1): Use gen_frame_mem rather than calling
27998         set_mem_alias_set.
27999         (alpha_expand_epilogue): Ditto.
28000
28001 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
28002
28003         PR tree-optimization/48290
28004         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
28005         vectorization, check that relevant phis in the basic block after
28006         the inner loop are really inner loop's exit phis.
28007
28008 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
28009
28010         PR debug/48190
28011         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
28012         (cached_dw_loc_list_def): New structure.
28013         (cached_dw_loc_list): New typedef.
28014         (cached_dw_loc_list_table): New variable.
28015         (cached_dw_loc_list_table_hash): New function.
28016         (cached_dw_loc_list_table_eq): Likewise.
28017         (add_location_or_const_value_attribute): Take a bool cache_p.
28018         Cache the list when the parameter is true.
28019         (gen_formal_parameter_die): Update caller.
28020         (gen_variable_die): Likewise.
28021         (dwarf2out_finish): Likewise.
28022         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
28023         while generating debug info for the decl.
28024         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
28025         (dwarf2out_init): Initialize cached_dw_loc_list_table.
28026         (resolve_addr): Cache the result of resolving a chain of
28027         location lists.
28028
28029 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
28030
28031         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
28032         conflict object hard regset nodes have intersecting hard reg sets.
28033
28034         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
28035         after regstat_init_n_sets_and_refs.
28036
28037         * ira.c: Add more comments at the top.
28038         (setup_stack_reg_pressure_class, setup_pressure_classes):
28039         Add comments how we compute the register pressure classes.
28040         (setup_allocno_and_important_classes): Add more comments.
28041         (setup_class_translate_array, reorder_important_classes)
28042         (setup_reg_class_relations): Add comments.
28043
28044         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
28045         start of the file.
28046
28047         * ira-color.c: Add 2011 to the Copyright line.
28048         (assign_hard_reg):  Add more comments.
28049         (improve_allocation): Ditto.
28050
28051         * ira-costs.c: Add 2011 to the Copyright line.
28052         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
28053         comments.
28054         (setup_regno_cost_classes_by_mode): Ditto.
28055
28056         Initial patches from ira-improv branch:
28057
28058         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
28059
28060         * ira-build.c (ira_create_object): Remove initialization of
28061         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
28062         (ira_create_allocno): Remove initialization of
28063         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
28064         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
28065         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
28066         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
28067         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
28068         Initialize ALLOCNO_ADD_DATA.
28069         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
28070         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
28071         ALLOCNO_REG.
28072         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
28073         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
28074
28075         * ira.c (ira_reallocate): Remove.
28076         (setup_pressure_classes): Call
28077         ira_init_register_move_cost_if_necessary.  Use
28078         ira_register_move_cost instead of ira_get_register_move_cost.
28079         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
28080         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
28081
28082         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
28083         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
28084         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
28085         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
28086         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
28087         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
28088         Fix formatting.
28089         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
28090         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
28091         (struct allocno_color_data): New.
28092         (allocno_color_data_t): New typedef.
28093         (allocno_color_data): New definition.
28094         (ALLOCNO_COLOR_DATA): New macro.
28095         (struct object_color_data): New.
28096         (object_color_data_t): New typedef.
28097         (object_color_data): New definition.
28098         (OBJECT_COLOR_DATA): New macro.
28099         (update_copy_costs, calculate_allocno_spill_cost): Call
28100         ira_init_register_move_cost_if_necessary.  Use
28101         ira_register_move_cost instead of ira_get_register_move_cost.
28102         (move_spill_restore, update_curr_costs): Ditto.
28103         (allocno_spill_priority): Make it inline.
28104         (color_pass): Allocate and free allocno_color_dat and object_color_data.
28105         (struct coalesce_data, coalesce_data_t): New.
28106         (allocno_coalesce_data): New definition.
28107         (ALLOCNO_COALESCE_DATA): New macro.
28108         (merge_allocnos, coalesced_allocno_conflict_p): Use
28109         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
28110         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
28111         (coalesce_allocnos): Ditto.
28112         (setup_coalesced_allocno_costs_and_nums): Ditto.
28113         (collect_spilled_coalesced_allocnos): Ditto.
28114         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
28115         (setup_slot_coalesced_allocno_live_ranges): Ditto.
28116         (coalesce_spill_slots): Ditto.
28117         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
28118         free allocno_coalesce_data.
28119
28120         * ira-conflicts.c: Fix formatting.
28121         (process_regs_for_copy): Call
28122         ira_init_register_move_cost_if_necessary.  Use
28123         ira_register_move_cost instead of ira_get_register_move_cost.
28124         (build_object_conflicts): Optimize.
28125
28126         * ira-costs.c (record_reg_classes): Optimize.  Call
28127         ira_init_register_move_cost_if_necessary.  Use
28128         ira_register_move_cost, ira_may_move_in_cost, and
28129         ira_may_move_out_cost instead of ira_get_register_move_cost and
28130         ira_get_may_move_cost.
28131         (record_address_regs): Ditto.
28132         (scan_one_insn): Optimize.
28133         (find_costs_and_classes): Optimize.
28134         (process_bb_node_for_hard_reg_moves): Call
28135         ira_init_register_move_cost_if_necessary.  Use
28136         ira_register_move_cost instead of ira_get_register_move_cost.
28137
28138         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
28139         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
28140         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
28141         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
28142         definitions.
28143         (ira_initiate_emit_data, ira_finish_emit_data)
28144         (create_new_allocno): New functions.
28145         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
28146         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
28147         Use ira_register_move_cost instead of ira_get_register_move_cost.
28148
28149         * ira-int.h: Fix some comments.
28150         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
28151         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
28152         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
28153         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
28154         add_data.
28155         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
28156         bitfield after mode.  Make hard_regno a short int.  Make
28157         hard_regno short.  Remove first_coalesced_allocno and
28158         next_coalesced_allocno.  Move mem_optimized_dest_p,
28159         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
28160         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
28161         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
28162         temp, colorable_p.  Add new member add_data.
28163         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
28164         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
28165         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
28166         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
28167         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
28168         (ALLOCNO_ADD_DATA): New macro.
28169         (ira_emit_data_t): New typedef.
28170         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
28171         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
28172         from struct ira_allocno.
28173         (ALLOCNO_EMIT_DATA): New macro.
28174         (ira_allocno_emit_data, allocno_emit_reg): New.
28175         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
28176         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
28177         (OBJECT_ADD_DATA): New macro.
28178         (ira_reallocate): Remove.
28179         (ira_initiate_emit_data, ira_finish_emit_data): New.
28180         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
28181         (ira_init_register_move_cost_if_necessary): New.
28182         (ira_object_conflict_iter_next): Merge into
28183         ira_object_conflict_iter_cond.
28184         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
28185
28186         * ira-live.c (process_single_reg_class_operands): Call
28187         ira_init_register_move_cost_if_necessary.  Use
28188         ira_register_move_cost instead of ira_get_register_move_cost.
28189
28190         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
28191
28192         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
28193
28194         * ira-costs.c: Fix formatting.
28195         (cost_classes, cost_classes_num): Remove.
28196         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
28197         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
28198         (cost_classes_del, cost_classes_htab): New.
28199         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
28200         (initiate_regno_cost_classes, setup_cost_classes): New.
28201         (setup_regno_cost_classes_by_aclass): New.
28202         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
28203         (record_reg_classes): Use regno_cost_classes instead of
28204         cost_classes.  Move checking opposite operand up.
28205         (record_address_regs): Use regno_cost_classes
28206         instead of cost_classes.
28207         (scan_one_insn): Ditto.  Use always general register.
28208         (print_allocno_costs): Use regno_cost_classes instead of
28209         cost_classes.
28210         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
28211         (find_costs_and_classes): Set up cost classes for each registers.
28212         Use also their mode for this.  Use regno_cost_classes instead of
28213         cost_classes.
28214         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
28215         cost_classes.
28216         (free_ira_costs, ira_init_costs): Don't use cost_classes.
28217         (ira_costs, ira_set_pseudo_classes): Call
28218         initiate_regno_cost_classes and finish_regno_cost_classes.
28219
28220         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
28221
28222         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
28223
28224         * target.def (ira_cover_classes): Remove.
28225
28226         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
28227
28228         * doc/tm.texi.in: Ditto.
28229
28230         * ira-conflicts.c: Remove mentioning cover classes from the file.
28231         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
28232         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
28233
28234         * targhooks.c (default_ira_cover_classes): Remove.
28235
28236         * targhooks.h (default_ira_cover_classes): Ditto.
28237
28238         * haifa-sched.c: Remove mentioning cover classes from the file.
28239         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
28240         ira_pressure_classes and ira_pressure_classes_num instead of
28241         ira_reg_class_cover_size and ira_reg_class_cover.  Use
28242         sched_regno_pressure_class instead of sched_regno_cover_class.
28243         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
28244         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
28245
28246         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
28247         classes from the file.
28248         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
28249         (struct object_hard_regs, struct object_hard_regs_node): New.
28250         (struct ira_object): New members profitable_hard_regs,
28251         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
28252         (struct ira_allocno): Rename cover_class to aclass.  Rename
28253         cover_class_cost and updated_cover_class_cost to class_cost and
28254         updated_class_cost.  Remove splay_removed_p and
28255         left_conflict_size.  Add new members colorable_p.
28256         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
28257         (ALLOCNO_COLORABLE_P): New macro.
28258         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
28259         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
28260         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
28261         (OBJECT_...): Rename parameter C to O.
28262         (OBJECT_PROFITABLE_HARD_REGS): New macro.
28263         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
28264         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
28265         (struct target_ira_int): New members x_ira_max_memory_move_cost,
28266         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
28267         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
28268         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
28269         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
28270         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
28271         x_ira_reg_class_subunion.
28272         (ira_max_memory_move_cost, ira_max_register_move_cost)
28273         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
28274         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
28275         (ira_important_class_nums, ira_reg_class_superunion): New macros.
28276         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
28277         (ira_reg_class_union): Rename to ira_reg_class_subunion.
28278         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
28279         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
28280         (ira_tune_allocno_costs_and_cover_classes): Rename to
28281         ira_tune_allocno_costs.
28282         (ira_debug_hard_regs_forest): New.
28283         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
28284         (ira_object_conflict_iter_next): Fix comments.
28285         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
28286         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
28287         cover_class to aclass.
28288         (ira_allocate_and_accumulate_costs): Ditto.
28289         (ira_allocate_and_set_or_copy_costs): Ditto.
28290
28291         * opts.c (decode_options): Remove ira_cover_class check.
28292
28293         * ira-color.c: Remove mentioning cover classes from the file.  Use
28294         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
28295         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
28296         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
28297         (splay-tree.h): Remove include.
28298         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
28299         before copy_freq_compare_func.
28300         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
28301         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
28302         New definitions.
28303         (hard_regs_roots, hard_regs_node_vec): Ditto.
28304         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
28305         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
28306         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
28307         (create_new_object_hard_regs_node): Ditto.
28308         (add_new_object_hard_regs_node_to_forest): Ditto.
28309         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
28310         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
28311         Ditto.
28312         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
28313         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
28314         (remove_unused_object_hard_regs_nodes): Ditto.
28315         (enumerate_object_hard_regs_nodes): Ditto.
28316         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
28317         (object_hard_regs_subnode_t): Ditto.
28318         (struct object_hard_regs_subnode): Ditto.
28319         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
28320         (setup_object_hard_regs_subnode_index): Ditto.
28321         (get_object_hard_regs_subnodes_num): Ditto.
28322         (form_object_hard_regs_nodes_forest): Ditto.
28323         (finish_object_hard_regs_nodes_tree): Ditto.
28324         (finish_object_hard_regs_nodes_forest): Ditto.
28325         (allocnos_have_intersected_live_ranges_p): Rename to
28326         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
28327         (pseudos_have_intersected_live_ranges_p): Rename to
28328         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
28329         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
28330         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
28331         (update_copy_costs): Remove assert.  Skip cost update if the hard
28332         reg does not belong the class.
28333         (assign_hard_reg): Process only profitable hard regs.
28334         (uncolorable_allocnos_num): Make it scalar.
28335         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
28336         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
28337         and ira_reg_class_max_nregs.
28338         (bucket_allocno_compare_func): Check frequency first.
28339         (sort_bucket): Add compare function as a parameter.
28340         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
28341         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
28342         (push_allocno_to_stack): Rewrite for checking new allocno
28343         colorability.
28344         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
28345         (push_only_colorable): Pass new parameter to sort_bucket.
28346         (push_allocno_to_spill): Remove.
28347         (allocno_spill_priority_compare): Make it inline and rewrite.
28348         (splay_tree_allocate, splay_tree_free): Remove.
28349         (allocno_spill_sort_compare): New function.
28350         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
28351         build and use splay tree.  Choose first allocno in uncolorable
28352         allocno bucket to spill.  Remove setting spill cost.
28353         (all_conflicting_hard_regs): Remove.
28354         (setup_allocno_available_regs_num): Check only profitable hard
28355         regs.  Print info about hard regs nodes.
28356         (setup_allocno_left_conflicts_size): Remove.
28357         (put_allocno_into_bucket): Don't call
28358         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
28359         (improve_allocation): New.
28360         (color_allocnos): Call setup_profitable_hard_regs,
28361         form_object_hard_regs_nodes_forest, improve_allocation,
28362         finish_object_hard_regs_nodes_forest.  Setup spill cost.
28363         (print_loop_title): Use pressure classes.
28364         (color_allocnso): Ditto.
28365         (do_coloring): Remove allocation and freeing splay_tree_node_pool
28366         and allocnos_for_spilling.
28367         (ira_sort_regnos_for_alter_reg): Don't setup members
28368         {first,next}_coalesced_allocno.
28369         (color): Remove allocating and freeing removed_splay_allocno_vec.
28370         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
28371         prohibited_class_mode_regs.
28372
28373         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
28374         formatting.
28375         (update_allocno_pressure_excess_length): Use pressure classes.
28376         (inc_register_pressure, dec_register_pressure): Check for pressure
28377         class.
28378         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
28379         pressure class.  Use ira_reg_class_nregs instead of
28380         ira_reg_class_max_nregs.
28381         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
28382         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
28383         (single_reg_class): Use ira_reg_class_nregs instead of
28384         ira_reg_class_max_nregs.
28385         (process_bb_node_lives): Use pressure classes.
28386
28387         * ira-emit.c: Remove mentioning cover classes from the file.  Use
28388         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
28389         (change_loop): Use pressure classes.
28390         (modify_move_list): Call ira_set_allocno_class instead of
28391         ira_set_allocno_cover_class.
28392
28393         * ira-build.c: Remove mentioning cover classes from the file.  Use
28394         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
28395         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
28396         ALLOCNO_UPDATED_CLASS_COST instead of
28397         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
28398         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
28399         (ira_create_allocno): Remove initialization of
28400         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
28401         ALLOCNO_COLORABLE_P.
28402         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
28403         Update conflict regs for the objects.
28404         (create_cap_allocno): Remove assert.  Don't propagate
28405         ALLOCNO_AVAILABLE_REGS_NUM.
28406         (ira_free_allocno_costs): New function.
28407         (finish_allocno): Change a part of code into call of
28408         ira_free_allocno_costs.
28409         (low_pressure_loop_node_p): Use pressure classes.
28410         (object_range_compare_func): Don't compare classes.
28411         (setup_min_max_conflict_allocno_ids): Ditto.
28412
28413         * loop-invariant.c: Remove mentioning cover classes from the file.
28414         Use ira_pressure_classes and ira_pressure_classes_num instead of
28415         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
28416         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
28417         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
28418         Use reg_allocno_class instead of reg_cover_class.
28419         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
28420         STACK_REG_COVER_CLASS.
28421         (get_regno_cover_class): Rename to get_regno_pressure_class.
28422         (move_loop_invariants): Initialize and finalize regstat.
28423
28424         * ira.c: Remove mentioning cover classes from the file.  Add
28425         comments about coloring without cover classes.  Use ALLOCNO_CLASS
28426         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
28427         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
28428         setup_class_subset_and_memory_move_costs.
28429         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
28430         (setup_cover_and_important_classes): Rename to
28431         setup_allocno_and_important_classes.
28432         (setup_class_translate_array): New.
28433         (setup_class_translate): Call it for allocno and pressure classes.
28434         (cover_class_order): Rename to allocno_class_order.
28435         (comp_reg_classes_func): Use ira_allocno_class_translate instead
28436         of ira_class_translate.
28437         (reorder_important_classes): Set up ira_important_class_nums.
28438         (setup_reg_class_relations): Set up ira_reg_class_superunion.
28439         (print_class_cover): Rename to print_classes.  Add parameter.
28440         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
28441         Print pressure classes too.
28442         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
28443         setup_reg_subclasses.
28444         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
28445         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
28446         (setup_prohibited_class_mode_regs): Use
28447         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
28448         (clarify_prohibited_class_mode_regs): New function.
28449         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
28450         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
28451         (ira_init_once): Initialize them.
28452         (free_register_move_costs): Process them.
28453         (ira_init): Move calls of find_reg_classes and
28454         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
28455         Call clarify_prohibited_class_mode_regs.
28456         (ira_no_alloc_reg): Remove.
28457         (too_high_register_pressure_p): Use pressure classes.
28458
28459         * sched-deps.c: Remove mentioning cover classes from the file.
28460         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
28461         ira_pressure_classes and ira_pressure_classes_num instead of
28462         ira_reg_class_cover_size and ira_reg_class_cover.
28463         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
28464         sched_regno_pressure_class instead of sched_regno_cover_class.
28465         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
28466         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
28467
28468         * ira.h: Add 2010 to Copyright.
28469         (ira_no_alloc_reg): Remove external.
28470         (struct target_ira): Rename x_ira_hard_regno_cover_class,
28471         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
28472         x_ira_class_translate to x_ira_hard_regno_allocno_class,
28473         x_ira_allocno_classes_num, x_ira_allocno_classes, and
28474         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
28475         x_ira_pressure_classes, x_ira_pressure_class_translate, and
28476         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
28477         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
28478         x_ira_no_alloc_regs.
28479         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
28480         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
28481         ira_allocno_classes_num and ira_allocno_classes.
28482         (ira_class_translate): Rename to ira_allocno_class_translate.
28483         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
28484         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
28485         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
28486         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
28487         (ira_no_alloc_regs): New.
28488
28489         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
28490         classes from the file.  Use ALLOCNO_CLASS instead of
28491         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
28492         ALLOCNO_COVER_CLASS_COST.
28493         (regno_cover_class): Rename to regno_aclass.
28494         (record_reg_classes): Use ira_reg_class_subunion instead of
28495         ira_reg_class_union.
28496         (record_address_regs): Check overflow.
28497         (scan_one_insn): Ditto.
28498         (print_allocno_costs): Print total mem cost fore regional allocation.
28499         (print_pseudo_costs): Use REG_N_REFS.
28500         (find_costs_and_classes): Use classes intersected with them on the
28501         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
28502         ira_reg_class_union.  Use ira_allocno_class_translate and
28503         regno_aclass instead of ira_class_translate and regno_cover_class.
28504         Modify code for finding regno_aclass.  Setup preferred classes for
28505         the next pass.
28506         (setup_allocno_cover_class_and_costs): Rename to
28507         setup_allocno_class_and_costs.  Use regno_aclass instead of
28508         regno_cover_class.  Use ira_set_allocno_class instead of
28509         ira_set_allocno_cover_class.
28510         (init_costs, finish_costs): Use regno_aclass instead of
28511         regno_cover_class.
28512         (ira_costs): Use setup_allocno_class_and_costs instead of
28513         setup_allocno_cover_class_and_costs.
28514         (ira_tune_allocno_costs_and_cover_classes): Rename to
28515         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
28516         by processing objects.  Use ira_reg_class_max_nregs instead of
28517         ira_reg_class_nregs.
28518
28519         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
28520
28521         * sched-int.h: Remove mentioning cover classes from the file.
28522         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
28523
28524         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
28525         classes from the file.
28526         (struct reg_pref): Rename coverclass into allocnoclass.
28527         (reg_cover_class): Rename to reg_allocno_class.
28528
28529         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
28530
28531         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
28532
28533         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
28534
28535         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
28536
28537         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
28538
28539         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
28540
28541         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
28542
28543         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
28544
28545         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
28546
28547         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
28548
28549         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
28550         (i386_ira_cover_classes): Ditto.
28551
28552         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
28553
28554         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
28555
28556         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
28557
28558         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
28559
28560         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
28561
28562         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
28563
28564         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
28565         (mips_ira_cover_classes): Ditto.
28566
28567         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
28568
28569         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
28570
28571         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
28572
28573         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
28574
28575         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
28576
28577         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
28578         (IRA_COVER_CLASSES_VSX): Ditto.
28579
28580         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
28581         (rs6000_ira_cover_classes): Ditto.
28582
28583         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
28584
28585         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
28586
28587         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
28588
28589         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
28590
28591         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
28592
28593         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
28594
28595         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
28596
28597         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
28598
28599         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
28600
28601         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
28602
28603 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
28604
28605         PR debug/48253
28606         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
28607         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
28608         dw_fde_unlikely_section_end_label, cold_in_std_section,
28609         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
28610         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
28611         fields.
28612         (output_fde): Use dw_fde_second_{begin,end} if second is
28613         true, otherwise dw_fde_{begin,end}.
28614         (output_call_frame_info): Test dw_fde_second_begin != NULL
28615         instead of dw_fde_switched_sections.
28616         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
28617         fields, initialize new fields.  Initialize in_std_section
28618         unconditionally from the first partition.
28619         (dwarf2out_end_epilogue): Don't override dw_fde_end when
28620         dw_fde_second_begin is non-NULL.
28621         (dwarf2out_switch_text_section): Stop initializing removed
28622         dw_fde_struct fields, initialize new fields, initialize
28623         also dw_fde_end here.  Set dw_fde_switch_cfi even when
28624         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
28625         (struct var_loc_list_def): Add last_before_switch field.
28626         (arange_table, arange_table_allocated, arange_table_in_use,
28627         ARANGE_TABLE_INCREMENT, add_arange): Removed.
28628         (size_of_aranges): Count !in_std_section and !second_in_std_section
28629         hunks in fdes, instead of looking at arange_table_in_use.
28630         (output_aranges): Add aranges_length argument, don't call
28631         size_of_aranges here.  Instead of using aranges_table*
28632         emit ranges for fdes when !in_std_section resp.
28633         !second_in_std_section.
28634         (dw_loc_list): Break ranges crossing section switch.
28635         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
28636         use dw_fde_second_end instead of dw_fde_end as end of last range.
28637         (gen_subprogram_die): Don't call add_arange.  Use
28638         dw_fde_{begin,end} for first partition and if switched
28639         section dw_fde_second_{begin,end} for the second.
28640         (var_location_switch_text_section_1,
28641         var_location_switch_text_section): New functions.
28642         (dwarf2out_begin_function): Initialize cold_text_section even
28643         when function_section () isn't text_section.
28644         (prune_unused_types): Don't walk arange_table.
28645         (dwarf2out_finish): Don't needlessly test
28646         flag_reorder_blocks_and_partition when testing cold_text_section_used.
28647         If info_section_emitted, call size_of_aranges and if it indicates
28648         non-empty .debug_aranges, call output_aranges with the computed
28649         size.  Stop using removed dw_fde_struct fields, use
28650         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
28651         for second.
28652
28653         PR debug/48203
28654         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
28655         create ENTRY_VALUE if incoming or address of incoming's MEM
28656         is a hard REG.
28657         * dwarf2out.c (mem_loc_descriptor): Don't emit
28658         DW_OP_GNU_entry_value of DW_OP_fbreg.
28659         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
28660         on ENTRY_VALUE is able to find the canonical parameter VALUE.
28661         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
28662         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
28663         ENTRY_VALUE_EXPs.
28664         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
28665         is a REG_P or MEM_P with REG_P address, compute hash directly
28666         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
28667         (preserve_only_constants): Don't clear VALUES forwaring
28668         ENTRY_VALUE to some other VALUE.
28669
28670 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
28671
28672         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
28673         instead of GEN_INT.
28674
28675 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
28676
28677         * cfgexpand.c (expand_gimple_cond): Always set the source location and
28678         block before expanding the statement.
28679         (expand_gimple_stmt_1): Likewise.  Set them here...
28680         (expand_gimple_stmt): ...and not here.  Tidy.
28681         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
28682         unknown.
28683
28684 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
28685
28686         * Makefile.in: New rule for cprop.o.
28687         * gcse.c: Move constant/copy propagation to cprop.c.
28688         (compute_local_properties): Only handle expression tables.
28689         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
28690         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
28691         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
28692         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
28693         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
28694         compute_cprop_data, find_used_regs, try_replace_reg,
28695         find_avail_set, cprop_jump, constprop_register, cprop_insn,
28696         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
28697         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
28698         find_bypass_set, reg_killed_on_edge, bypass_block,
28699         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
28700         execute_rtl_cprop, pass_rtl_cprop): Move to...
28701         * cprop.c: ...here.  New file, constant/copy propagation for RTL
28702         moved from gcse.c to here with minor cleanups in duplicated code.
28703
28704 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
28705
28706         * config/i386/i386.c (flag_opts): Fix a typo in
28707         -mavx256-split-unaligned-store.
28708
28709 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
28710
28711         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
28712         LIBCALL_VALUE): Remove macros.
28713         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28714         TARGET_FUNCTION_VALUE_REGNO_P): Define.
28715         (h8300_function_value, h8300_libcall_value,
28716         h8300_function_value_regno_p): New functions.
28717
28718 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
28719
28720         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
28721
28722 2011-03-28  Jeff Law  <law@redhat.com>
28723
28724         * tree-ssa-threadupdate.c (redirect_edges): Call
28725         create_edge_and_update_destination_phis as needed.
28726         (create_edge_and_update_destination_phis): Accept new BB argument.
28727         All callers updated.
28728         (thread_block): Do not update the profile when threading around
28729         intermediate blocks.
28730         (thread_single_edge): Likewise.
28731         (determine_bb_domination_status): If BB is not a successor of the
28732         loop header, return NONDOMINATING.
28733         (register_jump_thread): Note when we register a jump thread around
28734         an intermediate block.
28735         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
28736         (thread_across_edge): Use it.
28737
28738 2011-03-28  Tristan Gingold  <gingold@adacore.com>
28739
28740         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
28741         when for_return is 2.
28742
28743 2011-03-28  Jeff Law  <law@redhat.com>
28744
28745         * var-tracking.c (canonicalize_values_mark): Delete unused
28746         lhs assignment.
28747         (canonicalize_values_star, set_variable_part): Likewise.
28748         (clobber_variable_part, delete_variable_part): Likewise.
28749
28750 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
28751
28752         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
28753
28754 2011-03-28  Martin Jambor  <mjambor@suse.cz>
28755
28756         * tree-inline.c (expand_call_inline): Do not check that destination
28757         node is analyzed.
28758         (optimize_inline_calls): Assert that destination node is analyzed.
28759         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
28760         not call tree_lowering_passes.
28761         * cgraph.h (cgraph_analyze_function): Declare.
28762         * cgraphunit.c (cgraph_analyze_function): Make public.
28763
28764 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
28765
28766         * config/sparc/sparc-opts.h: New.
28767         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
28768         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
28769         (sparc_option_override): Store processor_type enumeration rather
28770         than string in cpu_default.  Remove name and enumeration from
28771         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
28772         without using sparc_select.  Use target_flags_explicit instead of
28773         fpu_option_set.
28774         * config/sparc/sparc.h (enum processor_type): Move to
28775         sparc-opts.h.
28776         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
28777         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
28778         HeaderInclude entry.
28779         (mcpu=, mtune=): Use Var and Enum.
28780         (sparc_processor_type): New Enum and EnumValue entries.
28781
28782 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28783             Iain Sandoe  <iains@gcc.gnu.org>
28784
28785         PR target/48245
28786         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
28787
28788 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
28789
28790         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
28791         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
28792         Insert new statements at it in lieu of STMT.
28793         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
28794         * tree-vect-stmts.c (vectorizable_store): Likewise.
28795         (vectorizable_load): Likewise.
28796
28797 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
28798
28799         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
28800         (divtf3): Ditto.
28801         (multf3): Ditto.
28802         (subtf3): Ditto.
28803
28804 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
28805
28806         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
28807         unaligned 256bit load/store.
28808         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
28809         (*avx_movdqu<avxmodesuffix>): Likewise.
28810
28811 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28812
28813         PR target/48288
28814         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
28815         * config/pa/pa.md (iordi3): Use new predicate in expander.
28816         (iorsi3): Likewise.
28817
28818 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
28819
28820         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
28821         FUNCTION_VALUE_REGNO_P): Remove macros.
28822         * config/mips/mips-protos.h (mips_function_value): Remove.
28823         * config/mips/mips.c (mips_function_value): Rename to...
28824         (mips_function_value_1): ... this. Make static.  Handle receiving
28825         the function type in 'fn_decl_or_type' argument.
28826         (mips_function_value, mips_libcall_value,
28827         mips_function_value_regno_p): New function.
28828         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28829         TARGET_FUNCTION_VALUE_REGNO_P): Define.
28830
28831 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
28832
28833         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
28834         and -mavx256-split-unaligned-store.
28835         (ix86_option_override_internal): Split 32-byte AVX unaligned
28836         load/store by default.
28837         (ix86_avx256_split_vector_move_misalign): New.
28838         (ix86_expand_vector_move_misalign): Use it.
28839
28840         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
28841         -mavx256-split-unaligned-store.
28842
28843         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
28844         256bit load/store.  Generate unaligned store on misaligned memory
28845         operand.
28846         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
28847         256bit load/store.
28848         (*avx_movdqu<avxmodesuffix>): Likewise.
28849
28850         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
28851         -mavx256-split-unaligned-store.
28852
28853 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
28854
28855         PR target/38598
28856         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
28857         Update commentary.
28858
28859 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
28860
28861         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
28862         opno arguments with an expand_operand.  Use create_input_operand.
28863         (mips_prepare_builtin_target): Delete.
28864         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
28865         functions.
28866         (mips_expand_builtin_direct): Use create_output_operand and
28867         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
28868         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
28869         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
28870
28871 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
28872
28873         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
28874         function.
28875         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
28876
28877 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
28878
28879         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
28880         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
28881         basic blocks and call commit_edge_insertions directly.
28882         (fixup_abnormal_edges): Move from here to...
28883         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
28884         on the edges and return whether some have actually been inserted.
28885         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
28886         compensation code.
28887
28888 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
28889
28890         PR rtl-optimization/48144
28891         * sel-sched-ir.c (merge_history_vect): Factor out from ...
28892         (merge_expr_data): ... here.
28893         (av_set_intersect): Rename to av_set_code_motion_filter.
28894         Update all callers.  Call merge_history_vect when an expression
28895         is found in both sets.
28896         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
28897
28898 2011-03-26  Alan Modra  <amodra@gmail.com>
28899
28900         * config/rs6000/predicates.md (word_offset_memref_op): Handle
28901         cmodel medium addresses.
28902         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
28903         64-bit gpr loads and stores.
28904         (rs6000_secondary_reload_ppc64): New function.
28905         * config/rs6000/rs6000-protos.h: Declare it.
28906         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
28907
28908 2011-03-26  Alan Modra  <amodra@gmail.com>
28909
28910         PR target/47487
28911         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
28912         GNU Go in traceback table.
28913
28914 2011-03-25  Richard Henderson  <rth@redhat.com>
28915
28916         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
28917         if there are exactly 6 operands.
28918         (set_storage_via_setmem): Similarly.
28919
28920 2011-03-25  Kai Tietz  <ktietz@redhat.com>
28921
28922         * collect2.c (write_c_file_stat): Handle backslash
28923         as right-hand directory separator.
28924         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
28925         checking just for slash.
28926         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
28927         instead of checking for trailing slash.
28928         * gcc.c (record_temp_file): Use filename_cmp instead
28929         of strcmp.
28930         (do_spec_1): Likewise.
28931         (replace_outfile_spec_function): Likewise.
28932         (is_directory): Use filename_ncmp instead of strncmp.
28933         (print_multilib_info): Likewise.
28934         * gcov.c (find_source): Use filename_cmp instead
28935         instead of strcmp.
28936         (make_gcov_file_name): Fix order of slash/backslash
28937         checks.
28938         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
28939         (add_standard_paths): Likewise.
28940         * mips-tfile.c (saber_stop): Handle backslash.
28941         * prefix.c (update_path): Use filename_ncmp instead of
28942         strncmp.
28943         * profile.c (output_location): Use filename_cmp instead
28944         of strcmp.
28945         * read-md.c (handle_toplevel_file): Handle backslash.
28946         * tlink.c (frob_extension):  Likewise.
28947         * tree-cfg.c (same_line_p): Use filename_cmp instead of
28948         strcmp.
28949         * tree-dump.c (dequeue_and_dump): Handle backslash.
28950         * tree.c (get_file_function_name): Likewise.
28951         * gengtype.c (read_input_list): Likewise.
28952         (get_file_realbasename): Likewise.
28953         (get_output_file_with_visibility): Use filename_cmp
28954         instead of strcmp.
28955
28956 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
28957
28958         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
28959         case to VFPv1.
28960
28961 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
28962
28963         * fold-const.c (expr_location_or): New function.
28964         (fold_truth_not_expr): Call it.
28965
28966 2011-03-25  Jeff Law  <law@redhat.com>
28967
28968         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
28969         va_end.
28970         * c-family/c-common.c (def_fn_type): Likewise.
28971         * emit-rtl.c (gen_rtvec): Likewise.
28972         * lto/lto-lang.c (def_fn_type): Likewise.
28973
28974 2011-03-25  Richard Guenther  <rguenther@suse.de>
28975
28976         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
28977         also generate copies.
28978         (fini_copy_prop): Handle constant values properly.
28979
28980 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
28981
28982         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
28983         mode size instead of bitsize with DWARF2_ADDR_SIZE.
28984         (hash_loc_operands, compare_loc_operands): Handle
28985         DW_OP_GNU_entry_value.
28986
28987 2011-03-25  Kai Tietz  <ktietz@redhat.com>
28988
28989         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
28990         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
28991         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
28992         comment and use macro TARGET_64BIT_MS_ABI instead.
28993         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
28994         and change default behavior for 32-bit MS_ABI.
28995         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
28996         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
28997         32-bit, too.
28998         (ix86_cfun_abi): Likewise.
28999         (ix86_maybe_switch_abi): Adjust comment.
29000         (init_cumulative_args): Check for bit-ness in MS_ABI case.
29001         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
29002         instead of checking for SYSV_ABI.
29003         (ix86_nsaved_sseregs): Likewise.
29004         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
29005         to 16 bytes.
29006         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
29007         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
29008         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
29009         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
29010         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
29011
29012 2011-03-25  Richard Guenther  <rguenther@suse.de>
29013
29014         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
29015         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
29016         (verify_gimple): Remove.
29017         * tree-cfg.c (verify_gimple_call): Merge verification
29018         from verify_stmts.
29019         (verify_gimple_phi): Merge verification from verify_stmts.
29020         (verify_gimple_label): New function.
29021         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
29022         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
29023         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
29024         (verify_stmts): Rename to verify_gimple_in_cfg.
29025         (verify_gimple_in_cfg): New function.
29026         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
29027         * tree-ssa.c (verify_ssa): Likewise.
29028         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
29029
29030 2011-03-25  Richard Guenther  <rguenther@suse.de>
29031
29032         * passes.c (init_optimization_passes): Add FRE pass after
29033         early SRA.
29034
29035 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
29036             Andrew Stubbs  <ams@codesourcery.com>
29037
29038         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
29039         for Cortex-A8.
29040         (arm_movdi_vfp_cortexa8): New pattern.
29041         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
29042         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
29043         instructions when tuning for Cortex-A8.  Set attribute "arch".
29044         * config/arm/arm.md: Move include arm-tune.md up a bit.
29045         (define_attr "arch"): Add "onlya8" and "nota8" values.
29046         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
29047
29048 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
29049
29050         PR bootstrap/48282
29051         Revert:
29052         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
29053
29054         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
29055         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
29056         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
29057         * passes.c (init_optimization_passes): Move
29058         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
29059
29060 2011-03-25  Kai Tietz  <ktietz@redhat.com>
29061
29062         * c-typeck.c (comptypes_internal): Replace target
29063         hook call of comp_type_attributes by version in tree.c file.
29064         * gimple.c (gimple_types_compatible_p_1): Likewise.
29065         * tree-ssa.c (useless_type_conversion_p): Likewise.
29066         * tree.c (build_type_attribute_qual_variant): Likewise.
29067         (attribute_value_equal): New static helper function.
29068         (comp_type_attributes): New function.
29069         (merge_attributes): Use attribute_value_equal for comparison.
29070         (attribute_list_contained): Likewise.
29071         * tree.h (comp_type_attributes): New prototype.
29072
29073 2011-03-25  Richard Guenther  <rguenther@suse.de>
29074
29075         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
29076         of complex types at -O0.
29077         (verify_gimple_assign_binary): Likewise.
29078         (verify_gimple_assign_ternary): Likewise.
29079
29080 2011-03-24  Mark Wielaard  <mjw@redhat.com>
29081
29082         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
29083         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
29084
29085 2011-03-24  Mark Wielaard  <mjw@redhat.com>
29086
29087         PR debug/48041
29088         * dwarf2out.c (output_abbrev_section): Only write table when
29089         abbrev_die_table_in_use > 1.
29090
29091 2011-02-24  Richard Henderson  <rth@redhat.com>
29092
29093         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
29094         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
29095         (alpha_expand_unaligned_load_words): Use extql.
29096         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
29097         (emit_insxl): Handle all modes for consistency.
29098
29099 2011-02-24  Richard Henderson  <rth@redhat.com>
29100
29101         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
29102         (alpha_expand_unaligned_load): Likewise.
29103         (alpha_expand_unaligned_store): Likewise.
29104         (alpha_expand_unaligned_load_words): Likewise.
29105         (alpha_expand_unaligned_store_words): Likewise.
29106         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
29107         (alpha_split_lock_test_and_set_12): Likewise.
29108         (print_operand, alpha_fold_builtin_extxx): Likewise.
29109         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
29110         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
29111         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
29112         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
29113         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
29114         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
29115         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
29116         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
29117         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
29118         (extwl, extll, extql): Similarly.
29119         (inswh, inslh, insqh): Similarly.
29120         (mskbl, mskwl, mskll, mskql): Similarly.
29121         (mskwh, msklh, mskqh): Similarly.
29122
29123 2011-02-24  Richard Henderson  <rth@redhat.com>
29124
29125         * config/alpha/alpha.md (attribute isa): Add er, ner.
29126         (attribute enabled): Handle them.
29127         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
29128
29129 2011-02-24  Richard Henderson  <rth@redhat.com>
29130
29131         * config/alpha/alpha.md (attribute isa): Add vms.
29132         (attribute enabled): Handle it.
29133         (*movsf): Merge *movsf_{nofix,fix,nofp}.
29134         (*movdf): Merge *movdf_{nofix,fix,nofp}.
29135         (*movtf): Rename from *movtf_internal for consistency.
29136         (*movsi): Merge with *movsi_nt_vms.
29137         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
29138         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
29139         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
29140         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
29141
29142 2011-02-24  Richard Henderson  <rth@redhat.com>
29143
29144         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
29145         (extendqisi2, extendhisi2): Likewise.
29146         (extendqidi2): Simplify BWX/non-BWX expansions.
29147         (extendhidi2): Similarly.
29148
29149 2011-02-24  Richard Henderson  <rth@redhat.com>
29150
29151         * config/alpha/alpha.md (attribute isa): New.
29152         (attribute enabled): New.
29153         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
29154         (zero_extendqisi2, zero_extendqidi2): Similarly.
29155         (zero_extendhisi2, zero_extendhidi2): Similarly.
29156         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
29157
29158 2011-02-24  Richard Henderson  <rth@redhat.com>
29159
29160         * config/alpha/predicates.md (input_operand): Revert last change;
29161         update comment to mention 32-bit VMS rather than Windows.
29162
29163 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
29164
29165         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
29166         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
29167         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
29168         * passes.c (init_optimization_passes): Move
29169         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
29170
29171 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
29172
29173         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
29174
29175 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
29176
29177         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
29178         correctly.
29179
29180 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
29181
29182         PR debug/48204
29183         * simplify-rtx.c (simplify_const_unary_operation): Call
29184         real_convert when changing mode class with FLOAT_EXTEND.
29185
29186 2011-03-24  Nick Clifton  <nickc@redhat.com>
29187
29188         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
29189         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
29190         * config/rx/rx.c (rx_option_override): Set align_jumps,
29191         align_loops and align_labels if not set by the user.
29192         (rx_align_for_label): New function.
29193         (rx_max_skip_for_label): New function.
29194         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
29195         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
29196         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
29197         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
29198         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
29199
29200 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
29201
29202         PR rtl-optimization/48263
29203         * optabs.c (expand_binop_directly): Reinstate convert_modes code
29204         and original commutative_p handling.  Use maybe_gen_insn.
29205
29206 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29207
29208         * reload.c (find_reloads_subreg_address): Add address_reloaded
29209         parameter and return true there if the full address has been
29210         reloaded.
29211         (find_reloads_toplev): Pass address_reloaded flag.
29212         (find_reloads_address_1): Don't use address_reloaded parameter.
29213
29214 2011-03-24  Jeff Law  <law@redhat.com>
29215
29216         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
29217         unused variable "ann".
29218         (remove_unused_locals): Likewise.
29219
29220         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
29221         statement.
29222
29223         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
29224         after it is freed.
29225
29226 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29227
29228         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
29229         for invalid symbolic addresses.
29230         (s390_secondary_reload): Don't use s390_check_symref_alignment for
29231         larl operands.
29232
29233 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
29234
29235         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
29236         the argument in calls to fold_truth_not_expr.
29237
29238 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
29239
29240         * tree.c (record_node_allocation_statistics): New function.
29241         (make_node_stat, copy_node_stat, build_string): Call it.
29242         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
29243         (build1_stat, build_omp_clause): Likewise.
29244
29245 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
29246
29247         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
29248         last commit.
29249
29250 2011-03-24  Richard Guenther  <rguenther@suse.de>
29251
29252         PR tree-optimization/48271
29253         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
29254         blocks that still exist.
29255
29256 2011-03-24  Richard Guenther  <rguenther@suse.de>
29257
29258         PR tree-optimization/48270
29259         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
29260         not free datarefs before ddrs.
29261
29262 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
29263
29264         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
29265         from the address built for a reference with variable offset.
29266
29267 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
29268
29269         PR target/48237
29270         * config/i386/i386.md (*movdf_internal_rex64): Do not split
29271         alternatives that can be handled with movq or movabsq insn.
29272         (*movdf_internal): Disable for !TARGET_64BIT.
29273         (*movdf_internal_nointeger): Ditto.
29274         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
29275
29276 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
29277
29278         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
29279         (FUNCTION_ARG_ADVANCE): Likewise.
29280         * tm.texi.in: Change references to them to hook references.
29281         * tm.texi: Regenerate.
29282         * targhooks.c (default_function_arg): Eliminate check for target macro.
29283         (default_function_incoming_arg): Likewise.
29284         (default_function_arg_advance): Likewise.
29285         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
29286         (function_arg_advance): Likewise.
29287         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
29288
29289 2011-03-24  Richard Guenther  <rguenther@suse.de>
29290
29291         PR middle-end/48269
29292         * tree-object-size.c (addr_object_size): Do not double-account
29293         for MEM_REF offsets.
29294
29295 2011-03-24  Diego Novillo  <dnovillo@google.com>
29296
29297         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
29298         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
29299         (lto_input_data_block): Move from lto-opts.c.  Make extern.
29300         Update all users.
29301         (lto_input_string): Rename from input_string.  Make extern.
29302         Update all users.
29303         * lto-streamer-out.c (lto_output_string_with_length): Rename from
29304         output_string_with_length.
29305         Output 0 to indicate a non-NULL string.  Update all callers to
29306         not emit 0.
29307         (lto_output_string): Rename from output_string.  Make extern.
29308         Update all users.
29309         (lto_output_decl_state_streams): Make extern.
29310         (lto_output_decl_state_refs): Make extern.
29311         * lto-streamer.h (lto_input_string): Declare.
29312         (lto_input_data_block): Declare.
29313         (lto_output_string): Declare.
29314         (lto_output_string_with_length): Declare.
29315         (lto_output_decl_state_streams): Declare.
29316         (lto_output_decl_state_refs): Declare.
29317
29318 2011-03-24  Richard Guenther  <rguenther@suse.de>
29319
29320         PR tree-optimization/46562
29321         * tree.c (build_invariant_address): New function.
29322         * tree.h (build_invariant_address): Declare.
29323         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
29324         a renamed function moved ...
29325         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
29326         Take valueization callback parameter.
29327         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
29328         * gimple-fold.h: New file.
29329         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
29330         (ccp_fold, fold_const_aggregate_ref,
29331         fold_ctor_reference, fold_nonarray_ctor_reference,
29332         fold_array_ctor_reference, fold_string_cst_ctor_reference,
29333         get_base_constructor): Move ...
29334         * gimple-fold.c: ... here.
29335         (gimple_fold_stmt_to_constant_1): New function
29336         split out from ccp_fold.  Take a valueization callback parameter.
29337         Valueize all operands.
29338         (gimple_fold_stmt_to_constant): New wrapper function.
29339         (fold_const_aggregate_ref_1): New function split out from
29340         fold_const_aggregate_ref.  Take a valueization callback parameter.
29341         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
29342         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
29343         invariant POINTER_PLUS_EXPRs to invariant form.
29344         (vn_valueize): New function.
29345         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
29346         * tree-vrp.c (vrp_valueize): New function.
29347         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
29348         to fold statements to constants.
29349         * tree-ssa-pre.c (eliminate): Properly guard propagation of
29350         function declarations.
29351         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
29352         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
29353
29354 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
29355
29356         * config/h8300/predicates.md (jump_address_operand): Fix register
29357         mode check.
29358
29359 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
29360
29361         * doc/invoke.texi (max-stores-to-sink): Document.
29362         * params.h (MAX_STORES_TO_SINK): Define.
29363         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
29364         if either vectorization or if-conversion is disabled.
29365         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
29366         tree-vect-data-refs.c vect_equal_offsets.
29367         (dr_equal_offsets_p): New function.
29368         (find_data_references_in_bb): Remove static.
29369         * tree-data-ref.h (find_data_references_in_bb): Declare.
29370         (dr_equal_offsets_p): Likewise.
29371         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
29372         (vect_drs_dependent_in_basic_block): Update calls to
29373         vect_equal_offsets.
29374         (vect_check_interleaving): Likewise.
29375         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
29376         (cond_if_else_store_replacement): Rename to...
29377         (cond_if_else_store_replacement_1): ... this.  Change arguments and
29378         documentation.
29379         (cond_if_else_store_replacement): New function.
29380         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
29381         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
29382
29383 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
29384
29385         PR target/46934
29386         * config/arm/arm.md (casesi): Use the gen_int_mode() function
29387         to subtract lower bound instead of GEN_INT().
29388
29389 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
29390
29391         PR other/48179
29392         PR other/48221
29393         PR other/48234
29394         * doc/extend.texi (Alignment): Move section to match order in TOC.
29395         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
29396         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
29397
29398 2011-03-23  Jeff Law  <law@redhat.com>
29399
29400         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
29401         before removing the edge.
29402
29403         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
29404         it may have been freed by redirect_branch_edge or
29405         redirect_edge_succ_nodup.
29406
29407 2011-03-23  Richard Guenther  <rguenther@suse.de>
29408
29409         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
29410         (check_va_list_escapes): Likewise.
29411         (check_all_va_list_escapes): Likewise.
29412
29413 2011-03-23  Richard Guenther  <rguenther@suse.de>
29414
29415         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
29416         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
29417         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
29418         (alias.o): Likewise.
29419         (ipa-type-escape.o): Remove.
29420         (ipa-struct-reorg.o): Likewise.
29421         (GTFILES): Remove ipa-struct-reorg.c.
29422         * alias.c: Do not include ipa-type-escape.h.
29423         * tree-ssa-alias.c: Likewise.
29424         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
29425         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
29426         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
29427         and ipa-type-escape passes.
29428         * tree-pass.h (pass_ipa_type_escape): Remove.
29429         (pass_ipa_struct_reorg): Likewise.
29430         * ipa-struct-reorg.h: Remove.
29431         * ipa-struct-reorg.c: Likewise.
29432         * ipa-type-escape.h: Likewise.
29433         * ipa-type-escape.c: Likewise.
29434         * doc/invoke.texi (-fipa-struct-reorg): Remove.
29435         (--param struct-reorg-cold-struct-ratio): Likewise.
29436         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
29437         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
29438         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
29439
29440 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29441
29442         * config/s390/2084.md: Enable all insn reservations also for z9_ec
29443         cpu attribute value.
29444         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
29445         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
29446         * config/s390/s390.c (processor_flags_table): New constant array.
29447         (s390_handle_arch_option): Remove.
29448         (s390_handle_option): Remove s390_handle_arch_option invocations
29449         and OPT_mwarn_framesize_ handling.
29450         (s390_option_override): Remove s390_handle_arch_option invocation.
29451         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
29452         warnings.
29453         * config/s390/s390.md (cpu attribute): Add z9_ec value.
29454         * config/s390/s390.opt (s390_tune, s390_arch)
29455         (march=): Replace s390_arch_option enum and values with
29456         processor_type.  Set variable name to s390_arch.  Set
29457         initialization value.
29458         (mtune=): Replace s390_arch_option with processor_type.  Set
29459         variable name to s390_tune.  Set initialization value.
29460
29461 2011-03-23  Julian Brown  <julian@codesourcery.com>
29462
29463         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
29464         accesses which are not naturally aligned.
29465
29466 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
29467
29468         PR target/47553
29469         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
29470
29471 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
29472
29473         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
29474         parameter from "int" to "enum insn_code".
29475         (expand_operand_type): New enum.
29476         (expand_operand): New structure.
29477         (create_expand_operand): New function.
29478         (create_fixed_operand, create_output_operand): Likewise
29479         (create_input_operand, create_convert_operand_to): Likewise.
29480         (create_convert_operand_from, create_address_operand): Likewise.
29481         (create_integer_operand): Likewise.
29482         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
29483         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
29484         (expand_insn, expand_jump_insn): Likewise.
29485         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
29486         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
29487         (expand_movstr, expand_builtin___clear_cache): Likewise.
29488         (expand_builtin_lock_release): Likewise.
29489         * explow.c (allocate_dynamic_stack_space): Likewise.
29490         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
29491         and use the default handling in that case.
29492         * expmed.c (check_predicate_volatile_ok): Delete.
29493         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
29494         (emit_cstore): Likewise.
29495         * expr.c (emit_block_move_via_movmem): Likewise.
29496         (set_storage_via_setmem, expand_assignment): Likewise.
29497         (emit_storent_insn, try_casesi): Likewise.
29498         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
29499         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
29500         (expand_vec_shift_expr, expand_binop_directly): Likewise.
29501         (expand_twoval_unop, expand_twoval_binop): Likewise.
29502         (expand_unop_direct, emit_indirect_jump): Likewise.
29503         (emit_conditional_move, vector_compare_rtx): Likewise.
29504         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
29505         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
29506         (expand_sync_lock_test_and_set): Likewise.
29507         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
29508         (emit_unop_insn): Likewise.
29509         (expand_copysign_absneg): Change icode to an insn_code.
29510         (create_convert_operand_from_type): New function.
29511         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
29512         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
29513         (expand_insn, expand_jump_insn): Likewise.
29514         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
29515         than const_int_operand for operand 2.
29516
29517 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29518
29519         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
29520         if possible.
29521
29522 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
29523
29524         * emit-rtl.c (emit_pattern_before_noloc): New function.
29525         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
29526         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
29527         (emit_pattern_after_noloc): New function.
29528         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
29529         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
29530
29531 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
29532
29533         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
29534         (__ffsDI2): Likewise.
29535
29536 2011-03-22  Richard Henderson  <rth@redhat.com>
29537
29538         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
29539         of !TARGET_ABI_OPEN_VMS.
29540         (alpha_trampoline_init, alpha_start_function): Likewise.
29541         (alpha_expand_epilogue, alpha_file_start): Likewise.
29542         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
29543         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
29544         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
29545         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
29546         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
29547
29548 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29549
29550         * config/s390/s390-opts.h: New.
29551         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
29552         s390_arch_flags, s390_warn_framesize, s390_stack_size,
29553         s390_stack_guard): Remove.
29554         (s390_handle_arch_option): Return void.  Take enum
29555         s390_arch_option value instead of string and searching array.
29556         (s390_handle_option): Don't assert that global structures are in
29557         use.  Access variables via opts pointer.  Use error_at.  Don't use
29558         sscanf for -mstack-guard= or -mstack-size=.  Update call to
29559         s390_handle_arch_option.
29560         (s390_option_override): Update call to s390_handle_arch_option.
29561         (s390_emit_prologue): Use %d format for s390_stack_size in
29562         diagnostic.  Use %wd for HOST_WIDE_INT.
29563         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
29564         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
29565         * config/s390/s390.opt (config/s390/s390-opts.h): New
29566         HeaderInclude entry.
29567         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
29568         s390_arch_flags, s390_warn_framesize): New Variable entries.
29569         (s390_arch_option): New Enum and EnumValue entries.
29570         (march=): Use Enum instead of Var.
29571         (mstack-guard=, mstack-size=): Use UInteger and Var.
29572         (mtune=): Use Enum.
29573
29574 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29575
29576         * config/score/score.c (score_handle_option): Don't assert that
29577         global structures are in use.  Access target_flags via opts
29578         pointer.  Use value of -march= option to determine target_flags
29579         settings.
29580         * config/score/score.opt (march=): Use Enum.
29581         (score_arch): New Enum and EnumValue entries.
29582
29583 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29584
29585         * config/mep/mep.c (option_mtiny_specified): Remove.
29586         (mep_option_override): Move register handling for -mivc2 from
29587         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
29588         instead of option_mtiny_specified.
29589         (mep_handle_option): Access target_flags via opts pointer.  Don't
29590         assert that global structures are in use.  Defer part of -mivc2
29591         handling and move it to mep_option_override.
29592         * config/mep/mep.opt (IVC2): New Mask entry.
29593         (mivc2): Use Var and Defer instead of Mask.
29594
29595 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29596
29597         * config/v850/v850-opts.h: New.
29598         * config/v850/v850.c (small_memory): Replace with
29599         small_memory_physical_max array.  Make that array static const.
29600         (v850_handle_memory_option): Take integer value of argument.  Take
29601         gcc_options pointer, option text and location.  Return void.
29602         Update for changes to small memory structures.
29603         (v850_handle_option): Access target_flags via opts pointer.  Don't
29604         assert that global structures are in use.  Update calls to
29605         v850_handle_memory_option.
29606         (v850_encode_data_area): Update references to small memory settings.
29607         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
29608         (enum small_memory_type): Move to v850-opts.h.
29609         * config/v850/v850.opt (config/v850/v850-opts.h): New
29610         HeaderInclude entry.
29611         (small_memory_max): New Variable entry.
29612         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
29613         (mtda, mzda): Likewise.
29614
29615 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29616
29617         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
29618         pointer.  Don't assert that global structures are in use.
29619
29620 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29621
29622         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
29623         via opts pointer.  Don't assert that global structures are in use.
29624
29625 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29626
29627         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
29628         (munix=93): Use Var.
29629         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
29630         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
29631         * config/pa/pa-opts.h: New.
29632         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
29633         (pa_handle_option): Don't assert that global structures are in
29634         use.  Access target_flags via opts pointer.  Don't handle
29635         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
29636         OPT_munix_98 here.
29637         (pa_option_override): Handle deferred OPT_mfixed_range_.
29638
29639 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29640
29641         * config/mn10300/mn10300-opts.h: New.
29642         * config/mn10300/mn10300.c (mn10300_processor,
29643         mn10300_tune_string): Remove.
29644         (mn10300_handle_option): Don't assert that global structures are
29645         in use.  Access mn10300_processor via opts pointer.  Don't handle
29646         OPT_mtune_ here.
29647         * config/mn10300/mn10300.h (enum processor_type): Move to
29648         mn10300-opts.h.
29649         (mn10300_processor): Remove.
29650         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
29651         HeaderInclude entry.
29652         (mn10300_processor): New Variable entry.
29653         (mtune=): Use Var.
29654
29655 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29656
29657         * config/microblaze/microblaze.c: Don't include opts.h.
29658         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
29659         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
29660         (mno-clearbss): Use Var and Warn.
29661
29662 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29663
29664         * config/m32r/m32r-opts.h: New.
29665         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
29666         (m32r_handle_option): Don't assert that global structures are in
29667         use.  Access target_flags and m32r_cache_flush_func via opts
29668         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
29669         OPT_mno_flush_trap here.
29670         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
29671         include of m32r-opts.h.
29672         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
29673         HeaderInclude entry.
29674         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
29675         (mmodel=): Use Enum and Var.
29676         (m32r_model): New Enum and EnumValue entries.
29677         (mno-flush-trap): Use Var.
29678         (msdata=): Use Enum and Var.
29679         (m32r_sdata): New Enum and EnumValue entries.
29680
29681 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29682
29683         * config/m32c/m32c.c: Don't include opts.h.
29684         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
29685         m32c_handle_option): Remove.
29686         (m32c_option_override): Check global_options_set.x_target_memregs
29687         instead of target_memregs_set.
29688         * config/m32c/m32c.h (target_memregs): Remove.
29689         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
29690         variable.
29691
29692 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29693
29694         * config/iq2000/iq2000-opts.h: New.
29695         * config/iq2000/iq2000.c: Don't include opts.h.
29696         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
29697         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
29698         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
29699         HeaderInclude entry.
29700         (iq2000_tune): New Variable entry.
29701         (march=): Add comment.  Use Enum.
29702         (iq2000_arch): New Enum and EnumValue entries.
29703         (mcpu=): Use Enum and Var.
29704         (iq2000_tune): New Enum and EnumValue entries.
29705
29706 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29707
29708         * config/ia64/ia64-opts.h: New.
29709         * config/ia64/ia64.c (ia64_tune): Remove.
29710         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
29711         here.  Use error_at.
29712         (ia64_option_override): Handle deferred OPT_mfixed_range_.
29713         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
29714         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
29715         HeaderInclude entry.
29716         (ia64_tune): New Variable entry.
29717         (mfixed-range=): Use Defer and Var.
29718         (mtune=): Use Enum and Var.
29719         (ia64_tune): New Enum and EnumValue entries.
29720
29721 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29722
29723         * config/frv/frv-opts.h: New.
29724         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
29725         frv-opts.h.
29726         (frv_cpu_type): Remove.
29727         * config/frv/frv.c: Don't include opts.h.
29728         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
29729         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
29730         (frv_cpu_type): New Variable entry.
29731         (frv_cpu): New Enum and EnumValue entries.
29732
29733 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29734
29735         * config/cris/cris.c (cris_handle_option): Access target_flags via
29736         opts pointer.  Don't assert that global structures are in use.
29737         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
29738         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
29739
29740 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29741
29742         * config/bfin/bfin-opts.h: New.
29743         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
29744         bfin_si_revision, bfin_workarounds): Remove.
29745         (bfin_cpus): Make static const.
29746         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
29747         not bfin_lib_id_given.
29748         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
29749         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
29750         pointer. Use error_at.  Don't assert that global structures are in use.
29751         * config/bfin/bfin.h: Include bfin-opts.h.
29752         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
29753         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
29754         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
29755         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
29756         entries.
29757
29758 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29759
29760         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
29761         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
29762         or -msoft-float here.
29763         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
29764         -msoft-float and -mhard-float.
29765         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
29766         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
29767         msoft-float.
29768         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
29769         -msoft-float.
29770         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
29771         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
29772         not mhard-float.
29773         (LIBGCC_SPEC): Don't handle -msoft-float.
29774         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
29775         -mhard-float.
29776         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
29777         msoft-float.
29778         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
29779         -mfloat-abi=*, not -msoft-float and -mhard-float.
29780         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
29781         -msoft-float.
29782         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
29783         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
29784         mhard-float and msoft-float.
29785         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
29786         mfloat-abi=soft in comments, not mhard-float and msoft-float.
29787         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
29788         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
29789         mhard-float.
29790         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
29791         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
29792         msoft-float.
29793         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
29794         not mhard-float.
29795         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
29796         not msoft-float.
29797
29798 2011-03-22  Richard Henderson  <rth@redhat.com>
29799
29800         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
29801         TARGET_ABI_WINDOWS_NT.
29802         (alpha_output_function_end_prologue): Likewise.
29803         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
29804         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
29805         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
29806         (trap, *movsi_nt_vms): Likewise.
29807         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
29808         (*tablejump_osf_nt_internal): Remove.
29809         * config/alpha/predicates.md (input_operand): Only test Pmode.
29810
29811 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29812
29813         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
29814         via opts pointer.  Use error_at.  Don't assert that global
29815         structures are in use.
29816
29817 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29818
29819         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
29820         (ix86_handle_option): Access ix86_isa_flags and
29821         ix86_isa_flags_explicit via opts pointer.  Don't assert that
29822         global structures are in use.
29823         (ix86_function_specific_save, ix86_function_specific_restore):
29824         Update ix86_isa_flags_explicit field name.
29825         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
29826         (ix86_isa_flags_explicit): Rename TargetSave entry to
29827         x_ix86_isa_flags_explicit.
29828
29829 2011-03-22  Richard Henderson  <rth@redhat.com>
29830
29831         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
29832         (alpha_option_override, direct_return): Likewise.
29833         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
29834         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
29835         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
29836         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
29837         (alpha_expand_epilogue, alpha_end_function): Likewise.
29838         (alpha_init_libfuncs): Likewise.
29839         (struct machine_function): Remove unicosmk members.
29840         (print_operand) ['t']: Remove.
29841         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
29842         unicosmk_output_module_name, unicosmk_output_common,
29843         current_section_align, unicosmk_output_text_section_asm_op,
29844         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
29845         unicosmk_section_type_flags, unicosmk_unique_section,
29846         unicosmk_asm_named_section, unicosmk_insert_attributes,
29847         unicosmk_output_align, unicosmk_defer_case_vector,
29848         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
29849         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
29850         unicosmk_output_ssib, unicosmk_add_call_info_word,
29851         unicosmk_extern_head, unicosmk_output_default_externs,
29852         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
29853         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
29854         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
29855         * config/alpha/alpha-protos.h: Update.
29856         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
29857         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
29858         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
29859         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
29860         (*mulsi_se, mulvsi3): Likewise.
29861         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
29862         (*divmodsi_internal, call, call_value, realign): Likewise.
29863         (moddi3, umoddi3): Likewise; remove duplicate expander.
29864         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
29865         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
29866         (*movdi_nofix): Remove r/U alternative.
29867         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
29868         * config/alpha/constraints.md ("U"): Remove.
29869         * config/alpha/predicates.md (call_operand"): Don't test
29870         TARGET_ABI_UNICOSMK.
29871
29872 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29873
29874         * target.def (handle_option): Take gcc_options and
29875         cl_decoded_option pointers and location_t.
29876         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
29877         * doc/tm.texi: Regenerate.
29878         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
29879         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
29880         * lto-opts.c (lto_reissue_options): Generate option structure for
29881         targetm.handle_option call.
29882         * opts.c (target_handle_option): Update call to
29883         targetm.handle_option.  Remove assertions about values now passed
29884         down to hook.
29885         * targhooks.c (default_target_handle_option): New.
29886         * targhooks.h (default_target_handle_option): Declare.
29887         * config/alpha/alpha.c: Include opts.h.
29888         (alpha_handle_option): Update to new hook interface.
29889         * config/arm/arm.c: Include opts.h.
29890         (arm_handle_option): Update to new hook interface.
29891         * config/arm/t-arm (arm.o): Update dependencies.
29892         * config/bfin/bfin.c: Include opts.h.
29893         (bfin_handle_option): Update to new hook interface.
29894         * config/cris/cris.c: Include opts.h.
29895         (cris_handle_option): Update to new hook interface.
29896         * config/frv/frv.c: Include opts.h.
29897         (frv_handle_option): Update to new hook interface.
29898         * config/i386/i386.c: Include opts.h.
29899         (ix86_handle_option): Update to new hook interface.
29900         (ix86_valid_target_attribute_inner_p): Generate option structure
29901         for call to ix86_handle_option.
29902         * config/i386/t-i386 (i386.o): Update dependencies.
29903         * config/ia64/ia64.c: Include opts.h.
29904         (ia64_handle_option): Update to new hook interface.
29905         * config/ia64/t-ia64 (ia64.o): Update dependencies.
29906         * config/iq2000/iq2000.c: Include opts.h.
29907         (iq2000_handle_option): Update to new hook interface.
29908         * config/m32c/m32c.c: Include opts.h.
29909         (m32c_handle_option): Update to new hook interface.
29910         * config/m32r/m32r.c: Include opts.h.
29911         (m32r_handle_option): Update to new hook interface.
29912         * config/m68k/m68k.c: Include opts.h.
29913         (m68k_handle_option): Update to new hook interface.
29914         * config/mep/mep.c: Include opts.h.
29915         (mep_handle_option): Update to new hook interface.
29916         * config/microblaze/microblaze.c: Include opts.h.
29917         (microblaze_handle_option): Update to new hook interface.
29918         * config/mips/mips.c: Include opts.h.
29919         (mips_handle_option): Update to new hook interface.
29920         * config/mn10300/mn10300.c: Include opts.h.
29921         (mn10300_handle_option): Update to new hook interface.
29922         * config/pa/pa.c: Include opts.h.
29923         (pa_handle_option): Update to new hook interface.
29924         * config/pdp11/pdp11.c: Include opts.h.
29925         (pdp11_handle_option): Update to new hook interface.
29926         * config/rs6000/rs6000.c: Include opts.h.
29927         (rs6000_handle_option): Update to new hook interface.
29928         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
29929         * config/rx/rx.c: Include opts.h.
29930         (rx_handle_option): Update to new hook interface.
29931         * config/s390/s390.c: Include opts.h.
29932         (s390_handle_option): Update to new hook interface.
29933         * config/score/score.c: Include opts.h.
29934         (score_handle_option): Update to new hook interface.
29935         * config/sh/sh.c: Include opts.h.
29936         (sh_handle_option): Update to new hook interface.
29937         * config/sparc/sparc.c: Include opts.h.
29938         (sparc_handle_option): Update to new hook interface.
29939         * config/v850/v850.c: Include opts.h.
29940         (v850_handle_option): Update to new hook interface.
29941
29942 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29943
29944         * gcc.c (driver_unknown_option_callback): Only permit and save
29945         unknown -Wno- options.
29946         (driver_wrong_lang_callback): Save options directly instead of via
29947         driver_unknown_option_callback.
29948
29949 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
29950
29951         * combine.c (simplify_set): Try harder to find the best CC mode when
29952         simplifying a nested COMPARE on the RHS.
29953
29954 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29955
29956         * config/alpha/gnu.h: Remove.
29957         * config/arc: Remove directory.
29958         * config/arm/netbsd.h: Remove.
29959         * config/arm/t-pe: Remove.
29960         * config/crx: Remove directory.
29961         * config/i386/netbsd.h: Remove.
29962         * config/m68hc11: Remove directory.
29963         * config/m68k/uclinux-oldabi.h: Remove.
29964         * config/mcore/mcore-pe.h: Remove.
29965         * config/mcore/t-mcore-pe: Remove.
29966         * config/netbsd-aout.h: Remove.
29967         * config/rs6000/gnu.h: Remove.
29968         * config/sh/sh-symbian.h: Remove.
29969         * config/sh/symbian-base.c: Remove.
29970         * config/sh/symbian-c.c: Remove.
29971         * config/sh/symbian-cxx.c: Remove.
29972         * config/sh/symbian-post.h: Remove.
29973         * config/sh/symbian-pre.h: Remove.
29974         * config/sh/t-symbian: Remove.
29975         * config/svr3.h: Remove.
29976         * config/vax/netbsd.h: Remove.
29977         * config.build: Don't handle i[34567]86-*-pe.
29978         * config.gcc: Remove handling of deprecations for most deprecated
29979         targets.
29980         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
29981         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
29982         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
29983         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
29984         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
29985         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
29986         Remove cases.
29987         * config.host: Don't handle i[34567]86-*-pe.
29988         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
29989         (ASM_SPEC32): Don't handle -mcall-gnu.
29990         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
29991         -mcall-gnu.
29992         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
29993         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
29994         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
29995         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
29996         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
29997         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
29998         conditional on SYMBIAN.
29999         * configure.ac: Don't handle powerpc*-*-gnu*.
30000         * configure: Regenerate.
30001         * doc/extend.texi (interrupt attribute): Don't mention CRX.
30002         * doc/install-old.texi (m6811, m6812): Don't mention.
30003         * doc/install.texi (arc-*-elf*): Don't document multilib option.
30004         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
30005         (m68k-uclinuxoldabi): Don't mention.
30006         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
30007         Remove.
30008         (-mcall-gnu): Remove.
30009         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
30010         families): Remove constraint documentation.
30011
30012 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
30013
30014         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
30015         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
30016         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
30017
30018 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
30019
30020         PR target/48226
30021         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
30022         vector when peeking at the next token for vector, don't expand the
30023         keywords.
30024
30025 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
30026
30027         * config/avr/avr-protos.h (expand_epilogue): Change prototype
30028         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
30029         * config/avr/avr.c (init_cumulative_args)
30030         (avr_function_arg_advance): Use it.
30031         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
30032         sibcall epilogues.
30033         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
30034         (avr_function_ok_for_sibcall): ...this new function.
30035         (avr_lookup_function_attribute1): New static Function.
30036         (avr_naked_function_p, interrupt_function_p)
30037         (signal_function_p, avr_OS_task_function_p)
30038         (avr_OS_main_function_p): Use it.
30039         * config/avr/avr.md ("sibcall", "sibcall_value")
30040         ("sibcall_epilogue"): New expander.
30041         ("*call_insn", "*call_value_insn"): New insn.
30042         ("call_insn", "call_value_insn"): Remove
30043         ("call", "call_value", "epilogue"): Change expander to handle
30044         sibling calls.
30045
30046 2011-03-21  Nick Clifton  <nickc@redhat.com>
30047
30048         * doc/invoke.texi (Overall Options): Move closing brace to end of
30049         options list.
30050         (Optimization Options): Add missing @gol.
30051         (Directory Options): Likewise.
30052         (i386 and x86-64 Options): Likewise.
30053         (RS6000 and PowerPC Options): Likewise.
30054         (i386 and x86-64 Windows Options): Likewise.
30055         (V850 Options): Add text missing from descriptions.
30056
30057 2011-03-22  Richard Henderson  <rth@redhat.com>
30058
30059         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
30060         (avr_incoming_return_addr_rtx): New.
30061         (emit_push_byte): New.
30062         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
30063         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
30064         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
30065         (emit_pop_byte): New.
30066         (expand_epilogue): Use it.  Pop frame pointer by bytes.
30067         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
30068         (INCOMING_RETURN_ADDR_RTX): New.
30069         (INCOMING_FRAME_SP_OFFSET): New.
30070         (ARG_POINTER_CFA_OFFSET): New.
30071         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
30072         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
30073         (pophi): Remove.
30074
30075         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
30076
30077 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
30078
30079         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
30080         (FUNCTION_ARG_ADVANCE): Likewise.
30081         * tm.texi.in: Change references to them to hook references.
30082         * tm.texi: Regenerate.
30083         * targhooks.c (default_function_arg): Eliminate check for target
30084         macro.
30085         (default_function_incoming_arg): Likewise.
30086         (default_function_arg_advance): Likewise.
30087         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
30088         (function_arg_advance): Likewise.
30089         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
30090
30091 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
30092
30093         * tree.c (build_call_1): New function.
30094         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
30095
30096 2011-03-22  Richard Guenther  <rguenther@suse.de>
30097
30098         PR tree-optimization/48228
30099         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
30100         for single-arg PHIs.
30101
30102 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
30103
30104         PR rtl-optimization/48143
30105         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
30106         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
30107         sse2_cvtps2pd): Likewise.
30108
30109 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30110
30111         * recog.c (canonicalize_change_group): Use validate_unshare_change.
30112
30113 2011-03-22  Richard Guenther  <rguenther@suse.de>
30114
30115         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
30116         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
30117         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
30118         and REALIGN_LOAD_EXPR.
30119         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
30120         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
30121         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
30122         DOT_PROD_EXPR case ...
30123         (expand_expr_real_2): ... here.
30124         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
30125         and REALIGN_LOAD_EXPR.
30126         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
30127         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
30128         (vect_create_epilog_for_reduction): Likewise.
30129         (vectorizable_reduction): Likewise.
30130         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
30131         * tree-vect-stmts.c (vectorizable_load): Likewise.
30132
30133 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
30134
30135         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
30136
30137 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30138
30139         * config/s390/s390.c (s390_delegitimize_address): Fix offset
30140         handling for PLTOFF/GOTOFF.
30141
30142 2011-03-22  Nick Clifton  <nickc@redhat.com>
30143
30144         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
30145         trailing backslash from the end of the macro definition.
30146
30147 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30148
30149         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
30150         and PLT unspecs.
30151
30152 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
30153
30154         * expr.h (prepare_operand): Move to...
30155         * optabs.h (prepare_operand): ...here and change the insn code
30156         parameter from "int" to "enum insn_code".
30157         (insn_operand_matches): Declare.
30158         * expr.c (init_expr_target): Use insn_operand_matches.
30159         (compress_float_constant): Likewise.
30160         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
30161         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
30162         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
30163         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
30164         Likewise.
30165         (gen_cond_trap): Likewise.
30166         (prepare_operand): Likewise.  Change icode to an insn_code.
30167         (insn_operand_matches): New function.
30168         * reload.c (find_reloads_address_1): Use insn_operand_matches.
30169         * reload1.c (gen_reload): Likewise.
30170         * targhooks.c (default_secondary_reload): Likewise.
30171
30172 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
30173
30174         * config/alpha/alpha.md (unspec): New define_c_enum.
30175         (unspecv): Ditto.
30176
30177 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
30178
30179         PR debug/48214
30180         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
30181         between a call and its CALL_ARG_LOCATION note.
30182
30183 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
30184
30185         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
30186
30187 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
30188
30189         PR c/42544
30190         PR c/48197
30191         * c-common.c (shorten_compare): If primopN is first sign-extended
30192         to opN and then zero-extended to result type, set primopN to opN.
30193
30194 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
30195
30196         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
30197         for barrier handlers.
30198
30199 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
30200
30201         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
30202         UNSPEC constants to be in the unspec enumeration, and redefine
30203         all UNSPECV constants to be in the unspecv enumeration, so that
30204         dumps print which unspec/unspec_volatile this is.
30205         * config/rs6000/vector.md (UNSPEC_*): Ditto.
30206         * config/rs6000/paired.md (UNSPEC_*): Ditto.
30207         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
30208         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
30209         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
30210
30211         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
30212         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
30213         UNSPECV_LWSYNC, since these are used as unspec_volatile.
30214         * config/rs6000/sync.md (isync, lwsync): Ditto.
30215
30216 2011-03-21  Richard Guenther  <rguenther@suse.de>
30217
30218         * params.def (lto-min-partition): Fix typo.
30219
30220 2011-03-21  Richard Guenther  <rguenther@suse.de>
30221
30222         PR c/47939
30223         * c-decl.c (grokdeclarator): Drop to the main variant only
30224         for array types.  Drop flag_gen_aux_info check.
30225
30226 2011-03-21  Richard Guenther  <rguenther@suse.de>
30227
30228         PR translation/47911
30229         * params.def (lto-partitions): Fix typo.
30230         (lto-min-partition): Fix wording.
30231
30232 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
30233
30234         * config/rs6000/t-freebsd: Remove duplication from file.
30235
30236 2011-03-21  Richard Guenther  <rguenther@suse.de>
30237
30238         PR middle-end/47661
30239         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
30240
30241 2011-03-21  Richard Guenther  <rguenther@suse.de>
30242
30243         PR lto/48210
30244         * params.def (lto-partitions): Require at least 1 partition.
30245
30246 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30247
30248         * gthr-solaris.h: Remove.
30249         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
30250         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
30251         (LIB_SPEC): Likewise.
30252         * config/sol2.opt (threads): Remove.
30253         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
30254         (sparc*-*-solaris2*): Likewise.
30255         * configure.ac (enable_threads): Enable solaris support.
30256         * configure: Regenerate.
30257         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
30258         * doc/install.texi (Configuration, --enable-threads=lib): Remove
30259         solaris.
30260
30261 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30262
30263         * config.gcc: Obsolete *-*-solaris2.8*.
30264         * doc/install.texi (Specific, *-*-solaris2*): Document it.
30265
30266 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30267
30268         PR bootstrap/48135
30269         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
30270         reference.  Solaris 8 perl works.
30271
30272 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30273
30274         PR bootstrap/48135
30275         * doc/install.texi (Prerequisites): Move jar etc. up.
30276         Explain support library version requirements.
30277
30278 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30279
30280         PR bootstrap/48135
30281         * doc/install.texi (Prerequisites): Move Perl to build
30282         requirements.  Always necessary on Solaris 2 with Sun ld.
30283
30284 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30285
30286         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
30287         binutils 2.21.
30288         (Specific, i?86-*-solaris2.[89]): Likewise.
30289         (Specific, i?86-*-solaris2.10): Likewise.
30290         (Specific, mips-sgi-irix6): Likewise.
30291         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
30292         Update for binutils 2.21.
30293
30294 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30295
30296         * configure.ac (gcc_cv_lto_plugin): Fix typo.
30297         Allow -fuse-linker-plugin for non-default plugin linker.
30298         * configure: Regenerate.
30299
30300 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
30301
30302         PR bootstrap/48167
30303         * gengtype.c (files_rules): Added rule for cp/parser.h.
30304
30305 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
30306
30307         PR target/48213
30308         * config/s390/s390.c (s390_delegitimize_address): Don't call
30309         lowpart_subreg if orig_x has BLKmode.
30310
30311 2011-03-21  Kai Tietz  <ktietz@redhat.com>
30312
30313         PR target/12171
30314         * doc/plugins.texi: Adjust documentation for plugin register_callback.
30315         * tree.h (attribute_spec): Add new member affects_type_identity.
30316         * attribs.c (empty_attribute_table): Adjust attribute_spec
30317         initializers.
30318         * config/alpha/alpha.c: Likewise.
30319         * config/arc/arc.c: Likewise.
30320         * config/arm/arm.c: Likewise.
30321         * config/avr/avr.c: Likewise.
30322         * config/bfin/bfin.c: Likewise.
30323         * config/crx/crx.c: Likewise.
30324         * config/darwin.h: Likewise.
30325         * config/h8300/h8300.c: Likewise.
30326         * config/i386/cygming.h: Likewise.
30327         * config/i386/i386.c: Likewise.
30328         * config/ia64/ia64.c: Likewise.
30329         * config/m32c/m32c.c: Likewise.
30330         * config/m32r/m32r.c: Likewise.
30331         * config/m68hc11/m68hc11.c: Likewise.
30332         * config/m68k/m68k.c: Likewise.
30333         * config/mcore/mcore.c: Likewise.
30334         * config/mep/mep.c: Likewise.
30335         * config/microblaze/microblaze.c: Likewise.
30336         * config/mips/mips.c: Likewise.
30337         * config/rs6000/rs6000.c: Likewise.
30338         * config/rx/rx.c: Likewise.
30339         * config/sh/sh.c: Likewise.
30340         * config/sol2.h: Likewise.
30341         * config/sparc/sparc.c: Likewise.
30342         * config/spu/spu.c: Likewise.
30343         * config/stormy16/stormy16.c: Likewise.
30344         * config/v850/v850.c: Likewise.
30345
30346 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
30347
30348         * simplify-rtx.c (simplify_binary_operation_1): Handle
30349         (xor (and A B) C) case when B and C are both constants.
30350
30351 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
30352
30353         * tree-dfa.c (add_referenced_var): Fix typo in comment.
30354
30355 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
30356
30357         PR bootstrap/48168
30358         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
30359
30360 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
30361
30362         PR rtl-optimization/48156
30363         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
30364         assume df and df_lr are not NULL.
30365
30366 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
30367
30368         PR debug/48023
30369         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
30370         between a call and its CALL_ARG_LOCATION note.
30371
30372 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
30373
30374         PR debug/48178
30375         * config/sh/sh.c (find_barrier): Don't emit a constant pool
30376         between a call and its corresponding CALL_ARG_LOCATION note.
30377
30378 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
30379
30380         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
30381         instead of loop. Use HARD_REGISTER_NUM_P predicate.
30382         * haifa-sched.c (setup_ref_regs): Ditto.
30383         * caller-save.c (add_used_regs_1): Ditto.
30384         * dse.c (look_for_hardregs): Ditto.
30385         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
30386         * sched-rgn.c (check_live_1): Ditto.
30387
30388 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
30389
30390         * c-decl.c (diagnose_mismatched_decls): Give an error for
30391         redefining a typedef with variably modified type.
30392
30393 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
30394
30395         * c-decl.c (grokfield): Don't allow typedefs for structures or
30396         unions with no tag by default.
30397         * doc/extend.texi (Unnamed Fields): Update.
30398
30399 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
30400
30401         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
30402         Rewrite using indirect functions.
30403         (lwp_slwpcb): Ditto.
30404         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
30405         (avx_vinsertf128<mode>): Ditto.
30406
30407 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30408
30409         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
30410         unspecs.
30411
30412 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30413
30414         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
30415         splitting between a call and its corresponding CALL_ARG_LOCATION note.
30416
30417 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
30418
30419         PR rtl-optimization/48170
30420         * gcse.c (hoist_code): Remove bogus asserts.
30421
30422 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
30423
30424         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
30425         computation for prologue/epilogue.
30426
30427 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30428
30429         * Makefile.in (check-consistency): Remove.
30430
30431 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
30432
30433         PR debug/48176
30434         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
30435         arange_table_in_use is 0, but either text_section_used or
30436         cold_text_section_used is true.  Don't call it if
30437         !info_section_emitted.
30438
30439 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
30440
30441         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
30442         FUNCTION_VALUE_REGNO_P): Remove.
30443         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
30444         Remove.
30445         * config/avr/avr.c (avr_ret_register): Make static inline.
30446         (avr_function_value_regno_p): New function.
30447         (avr_libcall_value): Make static. Add 'func' argument.
30448         (avr_function_value): Make static. Rename 'func' argument to
30449         'fn_decl_or_type', forward it to avr_libcall_value. Call
30450         avr_ret_register function instead of RET_REGISTER macro.
30451         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
30452
30453 2011-03-18  Jason Merrill  <jason@redhat.com>
30454
30455         PR c++/23372
30456         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
30457
30458 2011-03-18  Richard Guenther  <rguenther@suse.de>
30459
30460         * doc/install.texi (--enable-gold): Remove.
30461         (--with-plugin-ld): Document.
30462         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
30463
30464 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
30465
30466         PR middle-end/47790
30467         * expr.c (optimize_bitfield_assignment_op): Revamp to work
30468         again after expansion changes.
30469
30470 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
30471
30472         * combine.c (try_combine): Do simplification only call of
30473         subst() on i2 even when i1 is present. Update comments.
30474
30475 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
30476
30477         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
30478         and UNSPEC_PCREL_SYMOFF.
30479
30480 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30481
30482         * config/s390/s390.md: Use define_c_enum for the unspec constant
30483         definitions.
30484
30485 2011-03-18  Richard Henderson  <rth@redhat.com>
30486             Jakub Jelinek  <jakub@redhat.com>
30487
30488         PR bootstrap/48161
30489         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
30490         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
30491
30492 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
30493
30494         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
30495         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
30496         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
30497         Change return type to bool.
30498         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
30499
30500 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
30501
30502         PR debug/48163
30503         * var-tracking.c (prepare_call_arguments): If CALL target
30504         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
30505         pc instead of looking it up using cselib_lookup and use
30506         Pmode for it if x has VOIDmode.
30507         * dwarf2out.c (gen_subprogram_die): If also both first and
30508         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
30509
30510         PR debug/48163
30511         * function.c (assign_parms): For data.passed_pointer parms
30512         use MEM of data.entry_parm instead of data.entry_parm itself
30513         as DECL_INCOMING_RTL.
30514         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
30515         also when passed and declared mode is the same, DECL_RTL
30516         is a MEM with pseudo as address and DECL_INCOMING_RTL is
30517         a MEM too.
30518
30519 2011-03-16  Jeff Law  <law@redhat.com>
30520
30521         PR rtl-optimization/37273
30522         * ira-costs.c (scan_one_insn): Detect constants living in memory and
30523         handle them like argument loads from stack slots.  Do not double
30524         count memory for memory constants and argument loads from stack slots.
30525
30526 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30527
30528         PR debug/48160
30529         * var-tracking.c (prepare_call_arguments): Check SUBREG.
30530
30531 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30532
30533         PR target/48171
30534         * config/i386/i386.opt: Add Save to -mavx and -mfma.
30535
30536 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
30537
30538         PR bootstrap/48153
30539         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
30540         if dwarf_strict.
30541         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
30542         Clear call_arg_locations and call_arg_loc_last always.
30543
30544         PR middle-end/48152
30545         * var-tracking.c (prepare_call_arguments): If argument needs to be
30546         passed by reference, adjust argtype and mode.
30547
30548 2011-03-17  Richard Guenther  <rguenther@suse.de>
30549
30550         PR middle-end/48134
30551         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
30552         a value make sure to fold the statement.
30553
30554 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
30555
30556         PR target/43872
30557         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
30558         return condition with !cfun->calls_alloca.
30559
30560 2011-03-17  Richard Guenther  <rguenther@suse.de>
30561
30562         PR bootstrap/48148
30563         * lto-cgraph.c (input_overwrite_node): Clear the abstract
30564         origin for decls in other ltrans units.
30565         (input_varpool_node): Likewise.
30566
30567 2011-03-17  Richard Guenther  <rguenther@suse.de>
30568
30569         PR middle-end/48165
30570         * tree-object-size.c (compute_object_offset): Properly return
30571         the offset operand of MEM_REFs as sizetype.
30572
30573 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
30574
30575         PR rtl-optimization/48141
30576         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
30577         * dse.c: Include params.h.
30578         (active_local_stores_len): New variable.
30579         (add_wild_read, dse_step1): Clear it when setting active_local_stores
30580         to NULL.
30581         (record_store, check_mem_read_rtx): Decrease it when removing
30582         from the chain.
30583         (scan_insn): Likewise.  Increase it when adding to chain, if it
30584         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
30585         set active_local_stores to NULL before the addition.
30586         * Makefile.in (dse.o): Depend on $(PARAMS_H).
30587
30588         PR rtl-optimization/48141
30589         * dse.c (record_store): If no positions are needed in an insn
30590         that cannot be deleted, at least unchain it from active_local_stores.
30591
30592 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
30593
30594         PR debug/47510
30595         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
30596         (lookup_type_die_strip_naming_typedef): ... here.
30597         (get_context_die): Use it.
30598         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
30599         the anonymous struct named by the naming typedef.
30600
30601 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
30602
30603         PR target/48154
30604         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
30605         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
30606
30607 2011-03-16  Jeff Law  <law@redhat.com>
30608
30609         * tree-vrp.c (identify_jump_threads): Slightly simplify type
30610         check for operands of conditional.  Allow type to be a pointer.
30611
30612 2011-03-16  Richard Guenther  <rguenther@suse.de>
30613
30614         PR tree-optimization/48149
30615         * fold-const.c (fold_binary_loc): Fold
30616         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
30617
30618 2011-03-16  Richard Guenther  <rguenther@suse.de>
30619
30620         PR tree-optimization/26134
30621         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
30622         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
30623         (non_rewritable_mem_ref_base): Handle complex type component
30624         accesses, constrain offsets for vector and complex extracts
30625         more properly.
30626
30627 2011-03-16  Richard Guenther  <rguenther@suse.de>
30628
30629         PR tree-optimization/48146
30630         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
30631         operands avoiding the need for renaming.
30632
30633 2011-03-16  Richard Guenther  <rguenther@suse.de>
30634
30635         * gimple-fold.c (maybe_fold_reference): Open-code relevant
30636         constant folding.  Move MEM_REF canonicalization first.
30637         Rely on fold_const_aggregate_ref for initializer folding.
30638         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
30639
30640 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
30641
30642         PR middle-end/48136
30643         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
30644         arg0/arg1 or their arguments are always fold converted to matching
30645         types.
30646
30647         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
30648         to nargs.
30649
30650 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30651
30652         PR lto/46944
30653         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
30654         Handle in-tree gold.
30655         (ld_vers): Extract binutils version for gold.
30656         (gcc_cv_ld_hidden): Handle gold here.
30657         (gcc_cv_lto_plugin): Determine level of linker plugin support.
30658         * configure: Regenerate.
30659         * config.in: Regenerate.
30660         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
30661         -fuse-linker-plugin otherwise.
30662         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
30663         (LINK_COMMAND_SPEC): Use it.
30664         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
30665
30666 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
30667
30668         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
30669         * calls.c: Remove debug.h include.
30670         (emit_call_1): Don't call virtual_call_token debug hook.
30671         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
30672         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
30673         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
30674         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
30675         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
30676         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
30677         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
30678         dwarf2out_virtual_call): Remove.
30679         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
30680         copy_call_info and virtual_call hooks.
30681         (dwarf2out_init): Don't initialize vcall_insn_table,
30682         debug_dcall_section and debug_vcall_section.
30683         (prune_unused_types): Don't mark nodes from dcall_table.
30684         (dwarf2out_finish): Don't output dcall or vcall tables.
30685         * final.c (final_scan_insn): Don't call direct_call or
30686         virtual_call debug hooks.
30687         * debug.h (struct gcc_debug_hooks): Remove direct_call,
30688         virtual_call_token, copy_call_info and virtual_call hooks.
30689         (debug_nothing_uid): Remove prototype.
30690         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
30691         copy_call_info and virtual_call hooks.
30692         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
30693         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
30694         * debug.c (do_nothing_debug_hooks): Likewise.
30695         (debug_nothing_uid): Remove.
30696         * doc/invoke.texi (-fenable-icf-debug): Remove.
30697         * common.opt (-fenable-icf-debug): Likewise.
30698
30699         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
30700         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
30701         call's MEM.  Handle functions returning aggregate through a hidden
30702         first pointer.  For virtual calls add clobbered pc to call arguments
30703         chain.
30704         * dwarf2out.c (gen_subprogram_die): Emit
30705         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
30706         can't be emitted.
30707
30708         PR debug/45882
30709         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
30710         * rtl.h (ENTRY_VALUE_EXP): Define.
30711         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
30712         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
30713         * print-rtl.c (print_rtx): Likewise.
30714         * gengtype.c (adjust_field_rtx_def): Likewise.
30715         * var-tracking.c (vt_add_function_parameter): Adjust
30716         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
30717         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
30718         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
30719         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
30720         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
30721
30722         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
30723         Call var_location debug hook even on CALL_INSNs.
30724         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
30725         * rtl.def (ENTRY_VALUE): New.
30726         * dwarf2out.c: Include cfglayout.h.
30727         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
30728         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
30729         (struct call_arg_loc_node): New type.
30730         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
30731         tail_call_site_count): New variables.
30732         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
30733         DW_TAG_GNU_call_site_parameter.
30734         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
30735         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
30736         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
30737         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
30738         and DW_AT_GNU_all_source_call_sites.
30739         (mem_loc_descriptor): Handle ENTRY_VALUE.
30740         (add_src_coords_attributes): Don't add enything if
30741         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
30742         (dwarf2out_abstract_function): Save and clear call_arg_location,
30743         call_site_count and tail_call_site_count around dwarf2out_decl call.
30744         (gen_call_site_die): New function.
30745         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
30746         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
30747         (dwarf2out_function_decl): Clear call_arg_locations,
30748         call_arg_loc_last, set call_site_count and tail_call_site_count
30749         to -1 and free block_map.
30750         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
30751         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
30752         followed by any real instructions.
30753         (dwarf2out_begin_function): Set call_site_count and
30754         tail_call_site_count to 0.
30755         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
30756         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
30757         attempt to force a DIE for it and worst case remove the attribute.
30758         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
30759         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
30760         the decl itself.
30761         * var-tracking.c: Include tm_p.h.
30762         (vt_stack_adjustments): For calls call note_register_arguments.
30763         (argument_reg_set): New variable.
30764         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
30765         ensure the VALUE is resolved.
30766         (call_arguments): New variable.
30767         (prepare_call_arguments): New function.
30768         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
30769         (struct expand_loc_callback_data): Add ignore_cur_loc field.
30770         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
30771         always use the best expression.
30772         (vt_expand_loc): Add ignore_cur_loc argument.
30773         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
30774         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
30775         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
30776         note for all calls.
30777         (vt_add_function_parameter): Use cselib_lookup_from_insn.
30778         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
30779         argument.  Don't call cselib_preserve_only_values and
30780         cselib_reset_table.
30781         (note_register_arguments): New function.
30782         (vt_initialize): Compute argument_reg_set.  Call
30783         vt_add_function_parameters before processing basic blocks instead of
30784         afterwards.  For calls call prepare_call_arguments before calling
30785         cselib_process_insn.
30786         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
30787         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
30788         (var-tracking.o): Depend on $(TM_P_H).
30789         * cfglayout.h (insn_scope): New prototype.
30790         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
30791         * cfglayout.c (insn_scope): No longer static.
30792         * insn-notes.def (CALL_ARG_LOCATION): New.
30793         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
30794         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
30795         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
30796         nothing for DECL_EXTERNAL BLOCK_VARS.
30797
30798 2011-03-16  Alan Modra  <amodra@gmail.com>
30799
30800         PR target/45844
30801         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
30802         create invalid offset address for vsx splat insn.
30803         * config/rs6000/predicates.md (splat_input_operand): New.
30804         * config/rs6000/vsx.md (vsx_splat_*): Use it.
30805
30806 2011-03-15  Xinliang David Li  <davidxl@google.com>
30807
30808         PR c/47837
30809         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
30810         (normalize_preds): New function.
30811         (is_use_properly_guarded): Normalize def predicates.
30812
30813 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
30814
30815         PR target/46788
30816         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
30817         in the output template.
30818
30819 2011-03-15  Richard Guenther  <rguenther@suse.de>
30820
30821         PR middle-end/47650
30822         * tree-pretty-print.c (dump_function_declaration): Properly
30823         dump unprototyped and varargs function types.
30824
30825 2011-03-15  Richard Guenther  <rguenther@suse.de>
30826
30827         PR tree-optimization/13954
30828         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
30829         and friends.
30830
30831 2011-03-15  Richard Guenther  <rguenther@suse.de>
30832
30833         PR tree-optimization/48037
30834         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
30835         selects into BIT_FIELD_REFs.
30836         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
30837         vector select.
30838
30839 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
30840
30841         PR tree-optimization/48129
30842         * builtins.c (fold_builtin_snprintf): Convert to type of
30843         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
30844         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
30845
30846 2011-03-15  Richard Guenther  <rguenther@suse.de>
30847
30848         PR tree-optimization/41490
30849         * tree-ssa-dce.c (propagate_necessity): Handle returns without
30850         value but with VUSE.
30851         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
30852         return statements.
30853         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
30854         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
30855         * tree-tailcall.c (find_tail_calls): Ignore returns.
30856
30857 2011-03-15  Richard Guenther  <rguenther@suse.de>
30858
30859         PR middle-end/48031
30860         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
30861         or variable-indexed array accesses when in gimple form.
30862
30863 2011-03-15  Richard Guenther  <rguenther@suse.de>
30864
30865         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
30866
30867 2011-03-15  Alan Modra  <amodra@gmail.com>
30868
30869         PR target/48032
30870         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
30871         presume symbol_refs without a symbol_ref_decl are suitably
30872         aligned, nor other trees we may see here.  Handle anchor symbols.
30873         (legitimate_constant_pool_address_p): Comment.  Add mode param.
30874         Check cmodel=medium addresses.  Adjust all calls.
30875         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
30876         creating cmodel=medium optimized access to locals.
30877         * config/rs6000/constraints.md (R): Pass QImode to
30878         legitimate_constant_pool_address_p.
30879         * config/rs6000/predicates.md (input_operand): Pass mode to
30880         legitimate_constant_pool_address_p.
30881         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
30882         Update prototype.
30883
30884 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
30885
30886         PR target/48053
30887         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
30888         64-bit constants being loaded into registers other than GPRs such
30889         as loading 0 into a VSX register.
30890
30891 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30892
30893         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
30894
30895 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
30896
30897         PR middle-end/47917
30898         * builtins.c (fold_builtin_snprintf): New function.
30899         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
30900         (fold_builtin_4): Likewise.
30901
30902         PR middle-end/38878
30903         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
30904         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
30905         and C - X == X also strip nops from +/-/p+ operand.
30906         When optimizing -X == C, fold C to arg0's type.
30907
30908         PR debug/47946
30909         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
30910         emit it as add_AT_int instead of add_AT_unsigned.
30911
30912 2011-03-14  Tom Tromey  <tromey@redhat.com>
30913
30914         * unwind-dw2.c: Include sys/sdt.h if it exists.
30915         (_Unwind_DebugHook): Use STAP_PROBE2.
30916         * config.in, configure: Rebuild.
30917         * configure.ac: Check for sys/sdt.h.
30918
30919 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
30920
30921         * config/i386/i386.md (ROUND_FLOOR): New constant.
30922         (ROUND_CEIL): Ditto.
30923         (ROUND_TRUNC): Ditto.
30924         (ROUND_MXCSR): Ditto.
30925         (ROUND_NO_EXC): Ditto.
30926         (rint<mode>2): Use new defines instead of numerical constants.
30927         (floor<mode>2): Ditto.
30928         (ceil<mode>2): Ditto.
30929         (btrunc<mode>2): Ditto.
30930         * config/i386/i386-builtin-types.def: Define ROUND function type
30931         aliases.
30932         * config/i386/i386.c (enum ix86_builtins): Add
30933         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
30934         (struct builtin_description): Add
30935         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
30936         (ix86_expand_sse_round): New static function.
30937         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
30938         function types.
30939         (ix86_builtin_vectorized_function): Handle
30940         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
30941
30942 2011-03-14  Tom Tromey  <tromey@redhat.com>
30943
30944         * c-parser.c (c_parser_asm_string_literal): Clear
30945         warn_overlength_strings.
30946
30947 2011-03-14  Tom Tromey  <tromey@redhat.com>
30948
30949         * c-parser.c (disable_extension_diagnostics): Save
30950         warn_overlength_strings.
30951         (restore_extension_diagnostics): Restore warn_overlength_strings.
30952
30953 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
30954
30955         * BASE-VER: Change to 4.7.0.
30956
30957 2011-03-14  Richard Guenther  <rguenther@suse.de>
30958
30959         PR middle-end/48098
30960         * tree.c (build_vector_from_val): Adjust assert to requirements
30961         and reality.
30962
30963 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
30964
30965         PR bootstrap/48102
30966         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
30967
30968 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
30969
30970         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
30971         terms of target_flags_explicit. Adjust copyright year.
30972
30973         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
30974         * config/rs6000/t-freebsd: New file. Add override for
30975         LIB2FUNCS_EXTRA.
30976
30977 2011-03-13  Chris Demetriou  <cgd@google.com>
30978
30979         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
30980         (-fno-diagnostics-show-option): this, to reflect current default.
30981         (-Werror=): Update text about -fno-diagnostics-show-option.
30982
30983 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
30984
30985         PR target/48053
30986         * config/rs6000/predicates.md (easy_vector_constant_add_self,
30987         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
30988         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
30989         mode is not V2DImode or V2DFmode.
30990         (vspltis_constant): Do not handle V2DImode and V2DFmode.
30991         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
30992         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
30993         registers to 0.
30994         (movdi_internal64): Likewise.
30995
30996 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
30997
30998         PR tree-optimization/47127
30999         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
31000         parameter.
31001         (set_cloog_options): Same.
31002         (scop_to_clast): Same.
31003         (print_clast_stmt): Do not call cloog_state_malloc and
31004         cloog_state_free.
31005         (print_generated_program): Same.
31006         (gloog): Same.
31007         * graphite-clast-to-gimple.h (cloog_state): Declared.
31008         (scop_to_clast): Adjust declaration.
31009         * graphite.c (cloog_state): Defined here.
31010         (graphite_initialize): Call cloog_state_malloc.
31011         (graphite_finalize): Call cloog_state_free.
31012
31013 2011-03-11  Jason Merrill  <jason@redhat.com>
31014
31015         * attribs.c (lookup_attribute_spec): Take const_tree.
31016         * tree.h: Adjust.
31017
31018 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
31019
31020         * config/sparc/sparc.c (sparc_option_override): Use
31021         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
31022
31023 2011-03-11  Richard Guenther  <rguenther@suse.de>
31024
31025         PR tree-optimization/48067
31026         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
31027         multiplication result will be only used once on the target
31028         stmt.
31029
31030 2011-03-11  Richard Guenther  <rguenther@suse.de>
31031
31032         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
31033
31034 2011-03-11  Richard Guenther  <rguenther@suse.de>
31035
31036         PR lto/48073
31037         * tree.c (find_decls_types_r): Do not walk types only reachable
31038         from IDENTIFIER_NODEs.
31039
31040 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
31041
31042         PR middle-end/48044
31043         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
31044         all vnode->force_output nodes as needed.
31045
31046 2011-03-11  Jason Merrill  <jason@redhat.com>
31047
31048         PR c++/48069
31049         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
31050         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
31051
31052 2011-03-11  Martin Jambor  <mjambor@suse.cz>
31053
31054         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
31055         cgraph_node.
31056
31057 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
31058
31059         PR tree-optimization/48063
31060         * ipa-inline.c (cgraph_decide_inlining): Don't try to
31061         inline functions called once if !tree_can_inline_p (node->callers).
31062
31063 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
31064
31065         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
31066         extra_objs.
31067         * config/score/score3.c: Delete.
31068         * config/score/score3.h: Delete.
31069         * config/score/mul-div.S: Delete.
31070         * config/score/sfp-machine.h: Add new file.
31071         * config/score/constraints.md: Add new file.
31072         * config/score/t-score-softfp: Add new file.
31073         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
31074         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
31075         (score7_extra_constraint): Delete.
31076         (score7_option_override): Remove unused code.
31077         * config/score/score.c: Remove score3 and score5 define and code.
31078         * config/score/score.h: Remove score3 and score5 define and code.
31079         * config/score/score.md: Remove score3 template and unusual insn.
31080         * config/score/score.opt: Remove score3 and score5 options.
31081
31082 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31083
31084         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
31085         when _HPUX_SOURCE is defined.
31086         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
31087
31088 2011-03-10  Jason Merrill  <jason@redhat.com>
31089
31090         PR c++/48029
31091         * stor-layout.c (layout_type): Don't set structural equality
31092         on arrays of incomplete type.
31093         * tree.c (type_hash_eq): Handle comparing them properly.
31094
31095 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
31096
31097         PR debug/48043
31098         * config/s390/s390.c (s390_delegitimize_address): Make sure the
31099         result mode matches original rtl mode.
31100
31101 2011-03-10  Nick Clifton  <nickc@redhat.com>
31102
31103         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
31104         (andsi3, andsi3_flags): Fix timings for three operand alternative.
31105
31106 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
31107
31108         PR rtl-optimization/47866
31109         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
31110         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
31111         if target wasn't scalar.
31112         * function.c (assign_stack_temp_for_type): Assert that neither
31113         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
31114         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
31115         macro.
31116         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
31117
31118 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31119
31120         * config/s390/s390-protos.h (s390_label_align): New prototype.
31121         * config/s390/s390.c (s390_label_align): New function.
31122         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
31123
31124 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
31125
31126         PR target/47755
31127         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
31128         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
31129         (output_vec_const_move): Ditto.
31130
31131 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
31132
31133         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
31134         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
31135         * config/mips/mips.c (mips_preferred_reload_class): Make static.
31136         Change 'rclass' argument and result type to reg_class_t.
31137         (TARGET_PREFERRED_RELOAD_CLASS): Define.
31138
31139 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
31140
31141         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
31142         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
31143         (TARGET_MEMORY_MOVE_COST): Define.
31144         (avr_register_move_cost, avr_memory_move_cost): New Functions.
31145
31146 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
31147
31148         PR debug/47881
31149         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
31150         removed anything.
31151
31152         PR tree-optimization/48022
31153         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
31154         for EQ/NE_EXPR.
31155
31156 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
31157
31158         PR debug/47991
31159         * var-tracking.c (find_use_val): Return NULL for
31160         cui->sets && cui->store_p BLKmode MEMs.
31161
31162 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
31163
31164         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
31165         Remove.
31166         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
31167         xstormy16_print_operand_address): Remove.
31168         * config/stormy16/stormy16.c (xstormy16_print_operand,
31169         xstormy16_print_operand_address): Make static.
31170         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
31171
31172 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
31173
31174         PR target/47862
31175         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
31176         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
31177         before definition.
31178
31179 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
31180
31181         PR bootstrap/48000
31182         * cfgloopmanip.c (fix_bb_placements): Return immediately
31183         if FROM is BASE_LOOP's header.
31184
31185 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
31186
31187         * gimplify.c (gimplify_function_tree): Fix building calls
31188         to __builtin_return_address.
31189
31190 2011-03-07  Alan Modra  <amodra@gmail.com>
31191
31192         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
31193         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
31194         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
31195         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
31196         return_mode args.
31197         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
31198         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
31199         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
31200         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
31201         * config/rs6000/rs6000.c
31202         (rs6000_elf_end_indicate_exec_stack): Rename to..
31203         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
31204         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
31205         (rs6000_file_start): ..here.
31206         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
31207         file scope variables.
31208         (call_ABI_of_interest): New function.
31209         (init_cumulative_args): Set above vars when function return value
31210         is a float, vector, or small struct.
31211         (rs6000_function_arg_advance_1): Likewise for function args.
31212         (rs6000_va_start): Set rs6000_passes_float if variable arg function
31213         references float args.
31214
31215 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
31216
31217         * doc/cfg.texi: Remove "See" before @ref.
31218         * doc/invoke.texi: Likewise.
31219
31220 2011-03-05  Jason Merrill  <jason@redhat.com>
31221
31222         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
31223
31224 2011-03-05  Anthony Green  <green@moxielogic.com>
31225
31226         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
31227
31228 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
31229
31230         PR rtl-optimization/47899
31231         * cfgloopmanip.c (fix_bb_placements): Fix first argument
31232         to flow_loop_nested_p when moving the loop upward.
31233
31234 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
31235
31236         PR target/47719
31237         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
31238
31239 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
31240
31241         PR tree-optimization/47967
31242         * ipa-cp.c (build_const_val): Return NULL instead of creating
31243         VIEW_CONVERT_EXPR for mismatching sizes.
31244         (ipcp_create_replace_map): Return NULL if build_const_val failed.
31245         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
31246         give up on versioning.
31247
31248 2011-03-05  Alan Modra  <amodra@gmail.com>
31249
31250         PR target/47986
31251         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
31252         full cmodel medium/large lo_sum + high addresses.
31253
31254 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31255
31256         * config/s390/s390.c (s390_decompose_address): Reject non-literal
31257         pool references in UNSPEC_LTREL_OFFSET.
31258
31259 2011-03-04  Jan Hubicka  <jh@suse.cz>
31260
31261         PR lto/47497
31262         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
31263         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
31264         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
31265         Add node pointers.
31266         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
31267         cgraph_add_thunk): Add node pointers.
31268         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
31269         associated to right node.
31270         (input_node): Update use of cgraph_same_body_alias
31271         and cgraph_add_thunk.
31272
31273 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
31274
31275         * config/i386/i386.opt (mprefer-avx128): New flag.
31276         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
31277         modes when the flag -mprefer-avx128 is on.
31278
31279 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
31280
31281         * dwarf2out.c (compare_loc_operands): Fix address handling.
31282
31283 2011-03-04  Alan Modra  <amodra@gmail.com>
31284
31285         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
31286
31287 2011-03-04  Richard Guenther  <rguenther@suse.de>
31288
31289         PR middle-end/47968
31290         * expmed.c (extract_bit_field_1): Prefer vector modes that
31291         vec_extract patterns can handle.
31292
31293 2011-03-04  Richard Guenther  <rguenther@suse.de>
31294
31295         PR middle-end/47975
31296         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
31297
31298 2011-03-04  Richard Henderson  <rth@redhat.com>
31299
31300         * explow.c (emit_stack_save): Remove 'after' parameter.
31301         (emit_stack_restore): Likewise.
31302         * expr.h: Update to match.
31303         * builtins.c, calls.c, stmt.c: Likewise.
31304         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
31305         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
31306         * function.c (expand_function_end): Insert the emit_stack_save
31307         sequence before parm_birth_insn instead of after.
31308
31309 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
31310
31311         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
31312         (ssse3_pmaddubsw128): Ditto.
31313         (ssse3_pmaddubsw): Ditto.
31314
31315 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
31316
31317         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
31318
31319 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
31320
31321         PR c/47963
31322         * gimplify.c (omp_add_variable): Only call omp_notice_variable
31323         on TYPE_SIZE_UNIT if it is a DECL.
31324
31325         PR debug/47283
31326         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
31327         first operand is not is_gimple_mem_ref_addr, try to fold it.
31328         If the operand still isn't is_gimple_mem_ref_addr, clear
31329         MEM_EXPR on op0.
31330
31331 2011-03-03  Richard Guenther  <rguenther@suse.de>
31332
31333         PR middle-end/47283
31334         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
31335         match comment.
31336         (refs_may_alias_p_1): For release branches return true if
31337         we are confused by our input.
31338
31339 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31340
31341         * config/s390/s390.c (s390_function_value): Rename to ...
31342         (s390_function_and_libcall_value): ... this.
31343         (s390_function_value): New function.
31344         (s390_libcall_value): New function.
31345         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
31346         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
31347         target macro definitions.
31348         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
31349
31350 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
31351
31352         * config/i386/freebsd64.h (CC1_SPEC): Define.
31353         * config/i386/linux64.h (CC1_SPEC): Define.
31354         * config/i386/x86-64.h (CC1_SPEC): Don't define.
31355
31356 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
31357
31358         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
31359         Remove.
31360         * config/stormy16/stormy16.c: Include reload.h.
31361         (xstormy16_memory_move_cost): New function.
31362         (TARGET_MEMORY_MOVE_COST): Define.
31363
31364 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
31365
31366         PR rtl-optimization/47925
31367         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
31368         with side effects.  Remove the more-specific check for volatile asms.
31369
31370 2011-03-02  Alan Modra  <amodra@gmail.com>
31371
31372         PR target/47935
31373         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
31374         toc relative addresses for valid offsets.
31375
31376 2011-03-01  Richard Guenther  <rguenther@suse.de>
31377
31378         PR tree-optimization/47890
31379         * tree-vect-loop.c (get_initial_def_for_induction): Set
31380         related stmt properly.
31381
31382 2011-03-01  Richard Guenther  <rguenther@suse.de>
31383
31384         PR lto/47924
31385         * lto-streamer.c (lto_record_common_node): Also register
31386         the canonical type.
31387
31388 2011-03-01  Richard Guenther  <rguenther@suse.de>
31389
31390         PR lto/46911
31391         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
31392         Do not stream DECL_ABSTRACT_ORIGIN.
31393         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
31394         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
31395         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
31396         Do not stream DECL_ABSTRACT_ORIGIN.
31397         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
31398         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
31399
31400 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
31401
31402         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
31403         FUNCTION_VALUE_REGNO_P): Remove.
31404         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
31405         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
31406         Add 'outgoing' argument.
31407         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
31408         function.
31409         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
31410         TARGET_FUNCTION_VALUE_REGNO_P): Define.
31411
31412 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
31413
31414         PR debug/28047
31415         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
31416         (lookup_filename): Likewise.
31417         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
31418
31419 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
31420             Jakub Jelinek  <jakub@redhat.com>
31421
31422         PR middle-end/47893
31423         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
31424         (assign_stack_local_1): Change last argument type to int.
31425         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
31426         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
31427         don't record padding space into frame_space_list nor use those areas.
31428         (assign_stack_local): Adjust caller.
31429         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
31430         of assign_stack_local, pass 0 as last argument.
31431         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
31432         callers.
31433
31434 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
31435
31436         PR debug/47283
31437         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
31438         Use target address_mode and pointer_mode hooks instead of hardcoded
31439         Pmode and ptr_mode.  Handle some simple cases of extending if
31440         POINTERS_EXTEND_UNSIGNED < 0.
31441         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
31442         Call convert_debug_memory_address.
31443         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
31444         convert_debug_memory_address.
31445
31446         PR middle-end/46790
31447         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
31448         * configure: Regenerated.
31449         * config.in: Regenerated.
31450         * varasm.c (default_function_section): Return NULL
31451         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
31452
31453 2011-02-28  Martin Jambor  <mjambor@suse.cz>
31454
31455         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
31456         the description to match the printed values.
31457
31458 2011-02-28  Richard Guenther  <rguenther@suse.de>
31459
31460         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
31461         of the copied scope tree.
31462
31463 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31464
31465         * doc/extend.texi (Function Attributes): Avoid deeply (and
31466         wrongly) nested tables.
31467
31468 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
31469
31470         PR middle-end/47903
31471         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
31472         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
31473         r isn't op0 nor op1.
31474
31475 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
31476
31477         * config/avr/avr.md: Remove magic comment for emacs.
31478
31479 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
31480
31481         PR target/45261
31482         * config/avr/avr.c (avr_option_override): Use error on bad options.
31483         (avr_help): New function.
31484         (TARGET_HELP): Define.
31485
31486 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
31487
31488         PR target/42240
31489         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
31490         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
31491
31492 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
31493
31494         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
31495         (ARM Options): Ditto.
31496         (i386 and x86-64 Options): Ditto.
31497         (RX Options): Ditto.
31498         (SPARC Options): Ditto.
31499
31500 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
31501
31502         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
31503         FreeBSD 6 and later.  Generally use cpu generic.
31504
31505 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
31506
31507         * doc/cpp.texi: Update copyright years.
31508
31509 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
31510
31511         PR target/46898
31512         * config/lm32/lm32.md (ashrsi3): Added needed variable.
31513
31514 2011-02-25  Jon Beniston  <jon@beniston.com>
31515
31516         PR target/46898
31517         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
31518         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
31519         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
31520         (lm32_block_move_inline): Add type cast to remove warning.
31521         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
31522         (gen_int_relational): Move declarations to start of function.
31523
31524 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
31525
31526         PR tree-optimization/45470
31527         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
31528         can throw internally only.
31529         * tree-vect-stmts.c (vectorizable_call): Likewise.
31530
31531 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
31532
31533         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
31534         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
31535         * config/stormy16/stormy16-protos.h
31536         (xstormy16_preferred_reload_class): Remove.
31537         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
31538         static. Change 'rclass' argument and return type to reg_class_t.
31539         (TARGET_PREFERRED_RELOAD_CLASS,
31540         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
31541
31542 2011-02-24  Richard Guenther  <rguenther@suse.de>
31543
31544         * lto-streamer-in.c (input_bb): Do not find referenced vars
31545         in debug statements.
31546
31547 2011-02-23  Jason Merrill  <jason@redhat.com>
31548
31549         * common.opt (fabi-version): Document v5 and v6.
31550
31551 2011-02-23  Richard Guenther  <rguenther@suse.de>
31552
31553         PR tree-optimization/47849
31554         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
31555
31556 2011-02-23  Jie Zhang  <jie@codesourcery.com>
31557
31558         * opts-common.c (decode_cmdline_option): Print empty string
31559         argument as "" in decoded->orig_option_with_args_text.
31560         * gcc.c (execute): Print empty string argument as ""
31561         in the verbose output.
31562         (do_spec_1): Keep empty string argument.
31563
31564 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
31565
31566         * config.gcc: Declare score-* and crx-* obsolete.
31567
31568 2011-02-23  Jie Zhang  <jie@codesourcery.com>
31569
31570         PR rtl-optimization/47763
31571         * web.c (web_main): Ignore naked clobber when replacing register.
31572
31573 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
31574
31575         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
31576         Remove.
31577
31578 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
31579
31580         PR doc/47848
31581         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
31582
31583 2011-02-22  Mike Stump  <mikestump@comcast.net>
31584
31585         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
31586         assembler.
31587         * configure: Regenerate.
31588
31589 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
31590
31591         PR rtl-optimization/46002
31592         * ira-color.c (update_copy_costs): Change class intersection
31593         test to reg_class_contents[] test of 'hard_regno'.
31594
31595 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
31596
31597         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
31598         than Driver option.
31599         * config/hpux11.opt (mt): Likewise.
31600         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
31601         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
31602         * config/vax/elf.opt (mno-asm-pic): Likewise.
31603         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
31604
31605 2011-02-21  Mike Stump  <mikestump@comcast.net>
31606
31607         PR target/47822
31608         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
31609         tree so we can get save the type.
31610         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
31611         for CFString instead of trying to use past the end of the builtins.
31612         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
31613         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
31614         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
31615         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
31616         Rename to darwin_builtin_cfstring.
31617         (darwin_init_cfstring_builtins): Return the built type.
31618
31619 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
31620
31621         PR target/47840
31622         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
31623         (_mm256_insert_epi64): Use _mm_insert_epi64.
31624
31625 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
31626
31627         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
31628         * config/stormy16/stormy16-protos.h
31629         (xstormy16_mode_dependent_address_p): Remove.
31630         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
31631         Make static. Change return type to bool. Change argument type to
31632         const_rtx. Remove dead code.
31633         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
31634
31635 2011-02-21  Richard Guenther  <rguenther@suse.de>
31636
31637         PR lto/47820
31638         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
31639         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
31640         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
31641         TUs context.
31642         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
31643         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
31644
31645 2011-02-20  Richard Guenther  <rguenther@suse.de>
31646
31647         PR lto/47822
31648         * tree.c (free_lang_data_in_decl): Clean builtins from
31649         the TU decl BLOCK_VARS.
31650
31651 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
31652
31653         PR debug/47620
31654         PR debug/47630
31655         * haifa-sched.c (fix_tick_ready): Skip tick computation
31656         for debug insns.
31657
31658 2011-02-19  Richard Guenther  <rguenther@suse.de>
31659
31660         PR lto/47647
31661         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
31662         Remove lazy BLOCK_VARS streaming.
31663         (lto_input_ts_block_tree_pointers): Likewise.
31664         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
31665
31666 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
31667
31668         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
31669
31670 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
31671
31672         * config/i386/biarch32.h, config/i386/mach.h,
31673         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
31674
31675 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
31676
31677         PR target/47800
31678         * config/i386/i386.md (peephole2 for shift and plus): Use
31679         operands[1] original mode in the first insn.
31680
31681 2011-02-18  Mike Stump  <mikestump@comcast.net>
31682
31683         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
31684
31685 2011-02-18  Jan Hubicka  <jh@suse.cz>
31686
31687         PR middle-end/47788
31688         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
31689         to zero when the function is not inlinable at all.
31690
31691 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31692
31693         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
31694         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
31695         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
31696         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
31697         * config/pa/t-pa64: Likewise.
31698         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
31699
31700 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
31701
31702         PR driver/47787
31703         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
31704
31705 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31706
31707         PR target/47792
31708         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
31709
31710 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
31711
31712         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
31713         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
31714         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
31715         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
31716         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
31717         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
31718         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
31719         m32r_load_postinc_p, m32r_store_preinc_predec_p,
31720         m32r_legitimate_address_p): New functions.
31721         * config/m32r/constraints.md (constraint "S"): Don't use
31722         STORE_PREINC_PREDEC_P.
31723         (constraint "U"): Don't use LOAD_POSTINC_P.
31724
31725 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
31726
31727         PR rtl-optimization/46178
31728         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
31729         compute ira_hard_regno_cover_class[].
31730
31731 2011-02-18  Richard Guenther  <rguenther@suse.de>
31732
31733         PR lto/47798
31734         * lto-streamer.h (lto_global_var_decls): Declare.
31735         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
31736         statics for global var processing.
31737
31738 2011-02-18  Richard Guenther  <rguenther@suse.de>
31739
31740         PR tree-optimization/47737
31741         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
31742         edge dominance check.
31743
31744 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
31745
31746         PR debug/47780
31747         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
31748         avoid invalid rtx sharing.
31749
31750 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
31751
31752         * doc/cpp.texi (Obsolete Features): Add background on the
31753         origin of assertions.
31754
31755 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
31756
31757         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
31758         objc_abi == 2.
31759         * config/darwin.c (output_objc_section_asm_op): Added support for
31760         ABI v1 and v2.
31761         (is_objc_metadata): New.
31762         (darwin_objc2_section): New.
31763         (darwin_objc1_section): New.
31764         (machopic_select_section): Added support for ABI v1 and v2.
31765         (darwin_emit_objc_zeroed): New.
31766         (darwin_output_aligned_bss): Detect objc metadata and treat it
31767         appropriately.
31768         (darwin_asm_output_aligned_decl_common): Same.
31769         (darwin_asm_output_aligned_decl_local): Same.
31770         * config/darwin-sections.def: Updated for ABI v1 and v2.
31771         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
31772         compiling Objective-C code for the NeXT runtime, default to using
31773         ABI version 0 for 32-bit, and version 2 for 64-bit.
31774
31775 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
31776
31777         * common.opt (optimize_fast): New Variable.
31778         * opts.c (default_options_optimization): Use opts->x_optimize_fast
31779         instead of local variable ofast.
31780
31781 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
31782
31783         * doc/invoke.texi (fobjc-abi-version): Documented.
31784         (fobjc-nilcheck): Documented.
31785         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
31786         version.
31787
31788 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
31789
31790         PR driver/47390
31791         * common.opt (export-dynamic): New Driver option.
31792         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
31793
31794 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
31795
31796         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
31797
31798 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
31799             Jan Hubicka  <jh@suse.cz>
31800
31801         PR debug/47106
31802         PR debug/47402
31803         * cfgexpand.c (account_used_vars_for_block): Remove.
31804         (estimated_stack_frame_size): Use referenced vars.
31805         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
31806         that were referenced in the original function.  Test src_fn
31807         rather than cfun.  Drop redundant get_var_ann.
31808         (setup_one_parameter): Drop redundant get_var_ann.
31809         (declare_return_variable): Likewise.
31810         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
31811         (copy_arguments_for_versioning): Drop redundant get_var_ann.
31812         * ipa-inline.c (compute_inline_parameters): Do not compute
31813         disregard_inline_limits here.
31814         (compute_inlinable_for_current, pass_inlinable): New.
31815         (pass_inline_parameters): Require PROP_referenced_vars.
31816         * cgraphunit.c (cgraph_process_new_functions): Don't run
31817         compute_inline_parameters explicitly unless function is in SSA form.
31818         (cgraph_analyze_function): Set .disregard_inline_limits.
31819         * tree-sra.c (convert_callers): Compute inliner parameters
31820         only for functions already in SSA form.
31821
31822 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
31823
31824         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
31825         -mlittle-endian-data.
31826
31827 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
31828
31829         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
31830         -mno-fpu, not -fpu and -no-fpu.
31831         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
31832         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
31833
31834 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
31835
31836         PR target/43653
31837         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
31838         input reload with PLUS RTX.
31839
31840 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31841
31842         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
31843         of InverseVar(MDMX).
31844
31845 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31846
31847         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
31848         --m4-340.
31849
31850 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31851
31852         * config/mn10300/mn10300.opt (mno-crt0): New.
31853
31854 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31855
31856         * config/m68k/uclinux.opt (static-libc): New Driver option.
31857
31858 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31859
31860         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
31861
31862 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31863
31864         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
31865         %{muser-extend-enabled}.
31866
31867 2011-02-16  Richard Guenther  <rguenther@suse.de>
31868
31869         PR tree-optimization/47738
31870         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
31871         the TODO from tree_predictive_commoning.
31872
31873 2011-02-15  Jeff Law  <law@redhat.com>
31874
31875         Revert
31876         2011-01-25  Jeff Law  <law@redhat.com>
31877
31878         PR rtl-optimization/37273
31879         * ira-costs.c (scan_one_insn): Detect constants living in memory and
31880         handle them like argument loads from stack slots.  Do not double
31881         count memory for memory constants and argument loads from stack slots.
31882
31883 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
31884
31885         PR target/47755
31886         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
31887         mode for vector constants.  Remove code that checks for TImode.
31888
31889 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
31890
31891         PR debug/47106
31892         PR debug/47402
31893         * cgraph.h (compute_inline_parameters): Return void.
31894         * ipa-inline.c (compute_inline_parameters): Adjust.
31895
31896 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
31897
31898         PR debug/47106
31899         PR debug/47402
31900         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
31901         rather than decl.
31902         * cfgexpand.c (estimated_stack_frame_size): Likewise.
31903         * ipa-inline.c (compute_inline_parameters): Adjust.
31904
31905 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
31906
31907         PR debug/47106
31908         PR debug/47402
31909         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
31910         Adjust all users.  Pass FN to...
31911         * tree-flow-inline.h (first_referenced_var): ... this.  Add
31912         fn argument.
31913         * ipa-struct-reorg.c: Adjust.
31914         * tree-dfa.c: Adjust.
31915         * tree-into-ssa.c: Adjust.
31916         * tree-sra.c: Adjust.
31917         * tree-ssa-alias.c: Adjust.
31918         * tree-ssa-live.c: Adjust.
31919         * tree-ssa.c: Adjust.
31920         * tree-ssanames.c: Adjust.
31921         * tree-tailcall.c: Adjust.
31922
31923 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
31924
31925         PR debug/47106
31926         PR debug/47402
31927         * tree-flow.h (referenced_var_lookup): Add fn parameter.
31928         Adjust all callers.
31929         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
31930         * tree-flow-inline.h: Adjust.
31931         * gimple-pretty-print.c: Adjust.
31932         * tree-into-ssa.c: Adjust.
31933         * tree-ssa.c: Adjust.
31934         * cfgexpand.c: Adjust.
31935
31936 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
31937
31938         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
31939         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31940         (EXTRA_CONSTRAINT): Delete.
31941         * config/iq2000/constraints.md: New file.
31942         * config/iq2000/iq2000.md: Include it.
31943         (define_insn ""): Delete.
31944         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
31945         unsupported constraint letters from patterns.
31946         (call_value, call_value_internal1): Likewise.
31947         (call_value_multiple_internal1): Likewise.
31948
31949 2011-02-15  Nick Clifton  <nickc@redhat.com>
31950
31951         * config/mn10300/mn10300.c: Include tm-constrs.h.
31952         (struct liw_data): New data structure describing an LIW candidate
31953         instruction.
31954         (extract_bundle): Use struct liw_data.  Allow small integer
31955         operands for some instructions.
31956         (check_liw_constraints): Use struct liw_data.  Remove swapped
31957         parameter.  Add comments describing the checks.  Fix bug when
31958         assigning the source of liw1 to the source of liw2.
31959         (liw_candidate): Delete.  Code moved into extract_bundle.
31960         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
31961         before swapping.
31962         * config/mn10300/predicates.md (liw_operand): New predicate.
31963         Allows registers and small integer constants.
31964         * config/mn10300/constraints.md (O): New constraint.  Accetps
31965         integers in the range -8 to +7 inclusive.
31966         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
31967         for moving a small integer into a register.  Give this alternative
31968         LIW attributes.
31969         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
31970         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
31971         using the J,K,L and M constraints,
31972         (liw): Remove SI mode on second operands to allow for HI and QI
31973         mode values.
31974         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
31975         instruction.
31976
31977 2011-02-15  Richard Guenther  <rguenther@suse.de>
31978
31979         PR tree-optimization/47743
31980         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
31981         for a non-type-compatible VN lookup bail out.
31982
31983 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
31984
31985         * config/fr30/constraints.md: New file.
31986         * config/fr30/fr30.md: Include it.
31987         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
31988         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31989         (EXTRA_CONSTRAINT): Delete.
31990
31991 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
31992
31993         * config/frv/constraints.md: New file.
31994         * config/frv/predicates.md: Include it.
31995         * config/frv/frv.c (reg_class_from_letter): Delete.
31996         (frv_option_override): Don't initialize it.
31997         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
31998         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
31999         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
32000         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
32001         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
32002         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
32003         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
32004         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
32005         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
32006         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
32007         (REG_CLASS_FROM_CONSTRAINT): Delete.
32008
32009 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
32010
32011         PR middle-end/47581
32012         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
32013         if frame size is 0 in a leaf function.
32014
32015 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32016
32017         PR pch/14940
32018         * config/alpha/host-osf.c: New file.
32019         * config/alpha/x-osf: New file.
32020         * config.host (alpha*-dec-osf*): Use it.
32021
32022 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
32023
32024         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
32025         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
32026         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
32027         (rx_mode_dependent_address_p): ...this. Make static. Change argument
32028         type to const_rtx.
32029         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
32030
32031 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
32032
32033         * config/stormy16/constraints.md: New file.
32034         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
32035         Use satisfies_constraint_Q and satisfies_constraint_R.
32036         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
32037         Delete.
32038         (xstormy16_legitiamte_address_p): Declare.
32039         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
32040         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
32041         (EXTRA_CONSTRAINT): Delete.
32042         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
32043         Un-staticize.
32044         (xstormy16_extra_constraint_p): Delete.
32045
32046 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
32047
32048         PR tree-optimization/46494
32049         * loop-unroll.c (split_edge_and_insert): Adjust comment.
32050         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
32051         (pass_rtl_loop_done): Add TODO_verify_flow.
32052         * fwprop.c (pass_rtl_fwprop): Likewise.
32053         * modulo-sched.c (pass_sms): Likewise.
32054         * tree-ssa-dom.c (pass_dominator): Likewise.
32055         * tree-ssa-loop-ch.c (pass_ch): Likewise.
32056         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
32057         (pass_tree_loop_done): Likewise.
32058         * tree-ssa-pre.c (execute_pre): Likewise.
32059         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
32060         * tree-ssa-sink.c (pass_sink_code): Likewise.
32061         * tree-vrp.c (pass_vrp): Likewise.
32062
32063 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
32064
32065         * config/v850/constraints.md: New file.
32066         * config/v850/v850.md: Include it.
32067         * config/v850/predicates.md (reg_or_0_operand): Use
32068         satisfies_constraint_G.
32069         (special_symbolref_operand): Use satisfies_constraint_K.
32070         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
32071         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
32072         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
32073         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
32074         (EXTRA_CONSTRAINT): Delete.
32075         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
32076         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
32077         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
32078
32079 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
32080
32081         PR target/47696
32082         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
32083         description.
32084
32085 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
32086
32087         * config/mcore/constraints.md: New file.
32088         * config/mcore/mcore.md: Include it.
32089         * config/mcore/mcore.c (reg_class_from_letter): Delete.
32090         * config/mcore/mcore.h (reg_class_from_letter): Delete.
32091         (REG_CLASS_FROM_LETTER): Delete.
32092         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
32093         insn_const_int_ok_for_constraint.
32094         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
32095         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
32096         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
32097         (EXTRA_CONSTRAINT): Delete.
32098
32099 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32100
32101         PR ada/41929
32102         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
32103         (IS_SIGHANDLER): Define.
32104         (sparc64_is_sighandler): New function, split off from
32105         sparc64_fallback_frame_state.
32106         (sparc_is_sighandler): New function, split off from
32107         sparc_fallback_frame_state.
32108         (sparc64_fallback_frame_state): Merge with ...
32109         (sparc_fallback_frame_state): ... this into ...
32110         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
32111         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
32112         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
32113         stack instead of hardcoded offsets.
32114
32115 2011-02-14  Andriy Gapon  <avg@freebsd.org>
32116
32117         PR target/45808
32118         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
32119
32120 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32121
32122         * configure: Regenerate.
32123
32124 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
32125
32126         PR driver/45731
32127         * gcc.c (asm_options): Correct spec matching --target-help.
32128
32129 2011-02-12  Martin Jambor  <mjambor@suse.cz>
32130
32131         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
32132         to gimple call error.
32133
32134 2011-02-12  Mike Stump  <mikestump@comcast.net>
32135
32136         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
32137         comments in backslash regions.
32138
32139 2011-02-12  Mike Stump  <mikestump@comcast.net>
32140             Jakub Jelinek  <jakub@redhat.com>
32141             Iain Sandoe  <iains@gcc.gnu.org>
32142
32143         PR target/47324
32144         * dwarf2out.c (output_cfa_loc): When required, apply the
32145         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
32146         (output_loc_sequence): Likewise.
32147         (output_loc_operands_raw): Likewise.
32148         (output_loc_sequence_raw): Likewise.
32149         (output_cfa_loc): Likewise.
32150         (output_loc_list): Suppress register number adjustment when
32151         calling output_loc_sequence()
32152         (output_die): Likewise.
32153
32154 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
32155
32156         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
32157         Remove macros.
32158         * config/xtensa/xtensa.c (xtensa_register_move_cost,
32159         xtensa_memory_move_cost): New functions.
32160         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
32161
32162 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
32163
32164         PR lto/47225
32165         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
32166         in the current directory.
32167         * configure: Rebuilt.
32168
32169 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
32170
32171         * config/darwin.c (darwin_override_options): Add a hunk missed
32172         from the commit of r168571.  Trim comment line lengths and
32173         correct indents of the preceding block.
32174
32175 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
32176
32177         * gcc.c (driver_handle_option): Concatenate the argument to -F with
32178         the switch.
32179
32180 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
32181
32182         * common.opt (nostartfiles): New Driver option.
32183
32184 2011-02-11  Xinliang David Li  <davidxl@google.com>
32185
32186         PR tree-optimization/47707
32187         * tree-chrec.c (convert_affine_scev): Keep type precision.
32188
32189 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
32190
32191         PR tree-optimization/47420
32192         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
32193
32194 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
32195
32196         PR rtl-optimization/47614
32197         * rtl.h (check_for_inc_dec): Declare.
32198         * dse.c (check_for_inc_dec): Externalize...
32199         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
32200         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
32201
32202 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
32203
32204         PR driver/47678
32205         * gcc.c (main): Do not compile inputs if there were errors in
32206         option handling.
32207         * opts-common.c (read_cmdline_option): Check for wrong language
32208         after other error checks.
32209
32210 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
32211
32212         * cgraph.c: Fix comment typos.
32213         * cgraph.h: Likewise.
32214         * cgraphunit.c: Likewise.
32215         * ipa-cp.c: Likewise.
32216         * ipa-inline.c: Likewise.
32217         * ipa-prop.c: Likewise.
32218         * ipa-pure-const.c: Likewise.
32219         * ipa-ref.c: Likewise.
32220         * ipa-reference.c: Likewise.
32221
32222 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
32223
32224         PR debug/47684
32225         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
32226
32227 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32228
32229         PR testsuite/47400
32230         * doc/sourcebuild.texi (Require Support): Document
32231         dg-require-ascii-locale.
32232
32233 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
32234
32235         * doc/lto.texi (Write summary): Fix missing parentheses.
32236
32237 2011-02-10  DJ Delorie  <dj@redhat.com>
32238
32239         * config/m32c/m32c.c (m32c_option_override): Disable
32240         -fcombine-stack-adjustments until flag value tracking and compare
32241         optimization can be rewritten.
32242
32243 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
32244
32245         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
32246         PROCESSOR_POWER7.
32247         (PROCESSOR_DEFAULT64): Likewise.
32248
32249 2011-02-10  Richard Henderson  <rth@redhat.com>
32250
32251         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
32252         change from 2011-02-03.
32253         * config/rx/rx.c (flags_from_code): Likewise.
32254         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
32255         is valid, n/pz otherwise.
32256         (rx_select_cc_mode): Return CCmode if Y is not zero.
32257
32258 2011-02-10  Richard Guenther  <rguenther@suse.de>
32259
32260         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
32261
32262 2011-02-10  Richard Guenther  <rguenther@suse.de>
32263
32264         PR tree-optimization/47677
32265         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
32266
32267 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
32268
32269         PR target/47665
32270         * combine.c (make_compound_operation): Only change shifts into
32271         multiplication for SCALAR_INT_MODE_P.
32272
32273 2011-02-10  Jie Zhang  <jie@codesourcery.com>
32274
32275         PR testsuite/47622
32276         Revert
32277         2011-02-05  Jie Zhang  <jie@codesourcery.com>
32278         PR debug/42631
32279         * web.c (entry_register): Don't clobber the number of the
32280         first uninitialized reference in used[].
32281
32282 2011-02-09  Richard Guenther  <rguenther@suse.de>
32283
32284         PR tree-optimization/47664
32285         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
32286         all edges again.
32287
32288 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
32289
32290         PR target/46481
32291         PR target/47032
32292         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
32293         PROCESSOR_POWER7.
32294         (PROCESSOR_DEFAULT64): Same.
32295         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
32296
32297 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32298
32299         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
32300
32301 2011-02-09  Martin Jambor  <mjambor@suse.cz>
32302
32303         PR middle-end/45505
32304         * tree-sra.c (struct access): New flags grp_scalar_read and
32305         grp_scalar_write.  Changed description of assignment read and write
32306         flags.
32307         (dump_access): Dump new flags, reorder all of them.
32308         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
32309         to detect multiple scalar reads.
32310         (analyze_access_subtree): Use the new scalar read write flags instead
32311         of the old flags.  Adjusted comments.
32312
32313 2011-02-08  DJ Delorie  <dj@redhat.com>
32314
32315         PR target/47548
32316         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
32317         patterns.
32318
32319 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
32320
32321         * config/m68k/uclinux.opt: New.
32322         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
32323
32324 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
32325
32326         * config/cris/elf.opt (sim): New Driver option.
32327
32328 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
32329
32330         * config/xtensa/elf.opt: New.
32331         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
32332
32333 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
32334
32335         * config/vax/elf.opt: New.
32336         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
32337
32338 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
32339
32340         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
32341
32342 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
32343
32344         * config/gnu-user.opt: New.
32345         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
32346         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
32347         *-*-uclinux*): Use gnu-user.opt.
32348
32349 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
32350
32351         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
32352         * config/i386/gnu.h (CPP_SPEC): Likewise.
32353
32354 2011-02-08  Ian Lance Taylor  <iant@google.com>
32355
32356         * common.opt (fcx-limited-range): Add SetByCombined flag.
32357         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
32358         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
32359         (fassociative-math, freciprocal-math): Likewise.
32360         (funsafe-math-optimizations): Likewise.
32361         * opth-gen.awk: Handle SetByCombined.
32362         * optc-gen.awk: Likewise.
32363         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
32364         (set_unsafe_math_optimizations_flags): Likewise.
32365         * doc/options.texi (Option properties): Document SetByCombined.
32366
32367 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
32368
32369         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
32370         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
32371         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
32372         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
32373         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
32374
32375 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
32376
32377         PR tree-optimization/46834
32378         PR tree-optimization/46994
32379         PR tree-optimization/46995
32380         * graphite-sese-to-poly.c (used_outside_reduction): New.
32381         (detect_commutative_reduction): Call used_outside_reduction.
32382         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
32383         translate_scalar_reduction_to_array only when at least one
32384         loop-phi/close-phi tuple has been detected.
32385
32386 2011-02-08  Richard Guenther  <rguenther@suse.de>
32387
32388         PR middle-end/47639
32389         * tree-vect-generic.c (expand_vector_operations_1): Update
32390         stmts here ...
32391         (expand_vector_operations): ... not here.  Cleanup EH info
32392         and the CFG if required.
32393
32394 2011-02-08  Richard Guenther  <rguenther@suse.de>
32395
32396         PR tree-optimization/47641
32397         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
32398         require type compatibility.
32399
32400 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32401
32402         * gimple-low.c (lower_function_body): Don't remove the location of
32403         the return statement here.
32404         (lower_gimple_return): Do it here instead but only if the return
32405         statement is actually used twice.
32406
32407 2011-02-08  Richard Guenther  <rguenther@suse.de>
32408
32409         PR tree-optimization/47632
32410         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
32411         unused up_to_stmt parameter, return whether cfg-cleanup is
32412         necessary, remove EH info properly.
32413         (forward_propagate_into_gimple_cond): Adjust caller.
32414         (forward_propagate_into_cond): Likewise.
32415         (forward_propagate_comparison): Likewise.
32416         (tree_ssa_forward_propagate_single_use_vars): Make
32417         forward_propagate_comparison case similar to the two others.
32418
32419 2011-02-08  Nick Clifton  <nickc@redhat.com>
32420
32421         * config/mn10300/mn10300.opt (mliw): New command line option.
32422         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
32423         (liw_bundling): New automaton.
32424         (liw): New attribute.
32425         (liw_op): New attribute.
32426         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
32427         (movsi_internal): Add LIW attributes.
32428         (andsi3): Likewise.
32429         (iorsi3): Likewise.
32430         (xorsi3): Likewise.
32431         (addsi3): Separate register and immediate alternatives.
32432         Add LIW attributes.
32433         (subsi3): Likewise.
32434         (cmpsi): Likewise.
32435         (aslsi3): Likewise.
32436         (lshrsi3): Likewise.
32437         (ashrsi3): Likewise.
32438         (liw): New pattern.
32439         * config/mn10300/mn10300.c (liw_op_names): New
32440         (mn10300_print_operand): Handle 'W' operand descriptor.
32441         (extract_bundle): New function.
32442         (check_liw_constraints): New function.
32443         (liw_candidate): New function.
32444         (mn10300_bundle_liw): New function.
32445         (mn10300_reorg): New function.
32446         (TARGET_MACHINE_DEPENDENT_REORG): Define.
32447         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
32448         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
32449         __LIW__ or __NO_LIW__.
32450         * doc/invoke.texi: Describe the -mliw command line option.
32451
32452 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32453
32454         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
32455         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
32456         pthread_mutex_unlock): Remove.
32457         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
32458         * config/pa/t-pa64: Likewise.
32459         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
32460         shared libc if not linking against libpthread.
32461         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
32462
32463 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
32464
32465         PR target/47558
32466         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
32467         on 10.6 and later to ensure that we always use the unwinder from
32468         the system.  Only add -no_compact_unwind when tarteting darwin
32469         10.6 or later.
32470
32471 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
32472
32473         PR target/46997
32474         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
32475         (vec_interleave_lowv2sf): Ditto.
32476         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
32477         (vec_extract_oddv2sf): Ditto.
32478
32479 2011-02-07  Mike Stump  <mikestump@comcast.net>
32480
32481         PR target/42333
32482         Add __ieee_divdc3 entry point.
32483         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
32484         entry point.
32485         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
32486         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
32487         * config/darwin.c (darwin_rename_builtins): Add.
32488         * config/darwin-protos.h (darwin_rename_builtins): Add.
32489
32490 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
32491
32492         PR target/47636
32493         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
32494         for the condition.
32495
32496 2011-02-07  Mike Stump  <mikestump@comcast.net>
32497
32498         * config/darwin.opt (mmacosx-version-min): Update default OS version.
32499
32500 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
32501
32502         PR target/47534
32503         * config/avr/libgcc.S (exit): Move .endfunc
32504
32505 2011-02-07  Richard Guenther  <rguenther@suse.de>
32506
32507         PR tree-optimization/47615
32508         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
32509         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
32510         (run_scc_vn): Initialize it.
32511         (visit_reference_op_load): Use it.
32512         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
32513
32514 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32515
32516         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
32517         DImode trapping arithmetic libfuncs.
32518
32519 2011-02-07  Richard Guenther  <rguenther@suse.de>
32520
32521         PR tree-optimization/47621
32522         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
32523         two duplicates ...
32524         (execute_update_addresses_taken): ... here.  Make it more
32525         conservative in what we accept.
32526
32527 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
32528
32529         * config/sparc/freebsd.h (ASM_SPEC): Define.
32530         * config/sparc/vxworks.h (ASM_SPEC): Define.
32531
32532 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
32533
32534         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
32535
32536 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
32537
32538         * doc/invoke.texi: Remove reference to compiler internals from
32539         user documentation.
32540
32541         * reg-notes.def: Remove REG_VALUE_PROFILE.
32542         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
32543
32544 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
32545
32546         PR middle-end/47610
32547         * varasm.c (default_section_type_flags): If decl is NULL,
32548         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
32549
32550 2011-02-05  Jie Zhang  <jie@codesourcery.com>
32551
32552         PR debug/42631
32553         * web.c (entry_register): Don't clobber the number of the
32554         first uninitialized reference in used[].
32555
32556 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
32557
32558         PR tree-optimization/46194
32559         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
32560         (build_classic_dist_vector_1): Do not represent classic distance
32561         vectors when the access functions are variating in different loops.
32562
32563 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
32564
32565         * config/mips/iris6.opt: New.
32566         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
32567
32568 2011-02-04  Richard Henderson  <rth@redhat.com>
32569             Steve Ellcey  <sje@cup.hp.com>
32570
32571         PR target/46997
32572         * config/ia64/predicates.md (mux1_brcst_element): New.
32573         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
32574         * config/ia64/ia64.c (ia64_unpack_assemble): New.
32575         (ia64_unpack_sign): New.
32576         (ia64_expand_unpack): Rewrite using new routines.
32577         (ia64_expand_widen_sum): Ditto.
32578         (ia64_expand_dot_prod_v8qi): Ditto.
32579         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
32580         routines, add endian check.
32581         (pmpy2_even): Rename from pmpy2_r, add endian check.
32582         (pmpy2_odd): Rename from pmpy2_l, add endian check.
32583         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
32584         (vec_widen_smult_hi_v4hi): Ditto.
32585         (vec_widen_umult_lo_v4hi): Ditto.
32586         (vec_widen_umult_hi_v4hi): Ditto.
32587         (mulv2si3): Change endian checks.
32588         (sdot_prodv4hi): Rewrite with new calls.
32589         (udot_prodv4hi): New.
32590         (vec_pack_ssat_v4hi): Add endian check.
32591         (vec_pack_usat_v4hi): Ditto.
32592         (vec_pack_ssat_v2si): Ditto.
32593         (max1_even): Rename from max1_r, add endian check.
32594         (max1_odd): Rename from max1_l, add endian check.
32595         (*mux1_rev): Format change.
32596         (*mux1_mix): Ditto.
32597         (*mux1_shuf): Ditto.
32598         (*mux1_alt): Ditto.
32599         (*mux1_brcst_v8qi): Use new predicate.
32600         (vec_extract_evenv8qi): Remove endian check.
32601         (vec_extract_oddv8qi): Ditto.
32602         (vec_interleave_lowv4hi): Format change.
32603         (vec_interleave_highv4hi): Ditto.
32604         (mix2_even): Rename from mix2_r, add endian check.
32605         (mix2_odd): Rename from mux2_l, add endian check.
32606         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
32607         (vec_extract_evenodd_helper): Format change.
32608         (vec_extract_evenv4hi): Remove endian check.
32609         (vec_extract_oddv4hi): Remove endian check.
32610         (vec_interleave_lowv2si): Format change.
32611         (vec_interleave_highv2si): Format change.
32612         (vec_initv2si): Remove endian check.
32613         (vecinit_v2si): Add endian check.
32614         (reduc_splus_v2sf): Add endian check.
32615         (reduc_smax_v2sf): Ditto.
32616         (reduc_smin_v2sf): Ditto.
32617         (vec_initv2sf): Remove endian check.
32618         (fpack): Add endian check.
32619         (fswap): Add endian check.
32620         (vec_interleave_highv2sf): Add endian check.
32621         (vec_interleave_lowv2sf): Add endian check.
32622         (fmix_lr): Add endian check.
32623         (vec_setv2sf): Format change.
32624         (*vec_extractv2sf_0_be): Use shift to extract operand.
32625         (*vec_extractv2sf_1_be): New.
32626         (vec_pack_trunc_v4hi): Add endian check.
32627         (vec_pack_trunc_v2si): Format change.
32628
32629 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
32630
32631         PR inline-asm/23200
32632         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
32633         do bb, locus and block comparison and disallow loads if it is not set.
32634         (stmt_is_replaceable_p): New function.
32635         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
32636         callers.
32637         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
32638         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
32639         SSA_NAME_DEF_STMT.
32640         * tree-flow.h (stmt_is_replaceable_p): New prototype.
32641
32642 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
32643
32644         * config/rs6000/xilinx.opt: New.
32645         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
32646
32647 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
32648
32649         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
32650
32651 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
32652
32653         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
32654         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
32655         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
32656         secondary_reload_info, xtensa_secondary_reload): Remove.
32657         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
32658         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
32659         (xtensa_preferred_reload_class): Make static. Change return and
32660         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
32661         Use CONST_DOUBLE_P predicate.
32662         (xtensa_preferred_output_reload_class): New function.
32663         (xtensa_secondary_reload): Make static.
32664
32665 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
32666
32667         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
32668         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
32669         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
32670
32671 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
32672
32673         PR middle-end/31490
32674         * output.h (SECTION_RELRO): Define.
32675         (SECTION_MACH_DEP): Adjust.
32676         (get_variable_section): New prototype.
32677         * varpool.c (varpool_finalize_named_section_flags): New function.
32678         (varpool_assemble_pending_decls): Call it.
32679         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
32680         * cgraphunit.c (cgraph_output_in_order): Call
32681         varpool_finalize_named_section_flags.
32682         * varasm.c (get_section): Allow section flags conflicts between
32683         relro and read-only sections if the section hasn't been declared yet.
32684         Set SECTION_OVERRIDE after diagnosing section type conflict.
32685         (get_variable_section): No longer static.
32686         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
32687         readonly sections that need relocations.
32688         (decl_readonly_section_1): New function.
32689         (decl_readonly_section): Use it.
32690
32691         Revert:
32692         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
32693                     Steve Ellcey  <sje@cup.hp.com>
32694
32695         PR middle-end/31490
32696         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
32697         if section attribute used.
32698
32699 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
32700
32701         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
32702         * config/darwin.c (SECTION_NO_ANCHOR): Define.
32703         (darwin_init_sections): Remove assertion.
32704
32705 2011-02-03  Nick Clifton  <nickc@redhat.com>
32706
32707         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
32708         lt and ge.
32709         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
32710         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
32711         instead of "n" and "pz".
32712         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
32713         CC_FLAG_S.
32714
32715 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
32716
32717         PR target/47312
32718         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
32719         fma, expand FMA_EXPR as fma{,f,l} call.
32720
32721         PR lto/47274
32722         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
32723         copy them into a unsigned char variable and pass address of it to
32724         lto_output_data_stream.
32725
32726         PR target/47564
32727         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
32728         around backend_init_target and lang_dependent_init_target calls.
32729         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
32730         (verify_cgraph_node): Don't call set_cfun here.  Use
32731         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
32732         Set error_found for incorrectly represented calls to thunks.
32733
32734 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
32735
32736         PR debug/43092
32737         PR rtl-optimization/43494
32738         * rtl.h (for_each_inc_dec_fn): New type.
32739         (for_each_inc_dec): Declare.
32740         * rtlanal.c (struct for_each_inc_dec_ops): New type.
32741         (for_each_inc_dec_find_inc_dec): New fn.
32742         (for_each_inc_dec_find_mem): New fn.
32743         (for_each_inc_dec): New fn.
32744         * dse.c (struct insn_size): Remove.
32745         (replace_inc_dec, replace_inc_dec_mem): Remove.
32746         (emit_inc_dec_insn_before): New fn.
32747         (check_for_inc_dec): Use it, along with for_each_inc_dec.
32748         (canon_address): Pass mem modes to cselib_lookup.
32749         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
32750         (cselib_lookup_from_insn): Likewise.
32751         (cselib_subst_to_values): Likewise.
32752         * cselib.c (find_slot_memmode): New var.
32753         (cselib_find_slot): New fn.  Use it instead of
32754         htab_find_slot_with_hash everywhere.
32755         (entry_and_rtx_equal_p): Use find_slot_memmode.
32756         (autoinc_split): New fn.
32757         (rtx_equal_for_cselib_p): Rename and implement in terms of...
32758         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
32759         Deal with autoinc.  Special-case recursion into MEMs.
32760         (cselib_hash_rtx): Likewise.
32761         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
32762         address and MEM modes.
32763         (cselib_subst_to_values): Add memmode, pass it on.
32764         Deal with autoinc.
32765         (cselib_lookup): Add memmode argument, pass it on.
32766         (cselib_lookup_from_insn): Add memmode.
32767         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
32768         (struct cselib_record_autoinc_data): New.
32769         (cselib_record_autoinc_cb): New fn.
32770         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
32771         mode to cselib_lookup.  Reset autoinced REGs here instead of...
32772         (cselib_process_insn): ... here.
32773         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
32774         to cselib_lookup.
32775         (add_uses): Likewise, also to cselib_subst_to_values.
32776         (add_stores): Likewise.
32777         * sched-deps.c (add_insn_mem_dependence): Pass mode to
32778         cselib_subst_to_values.
32779         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
32780         * gcse.c (do_local_cprop): Adjusted.
32781         * postreload.c (reload_cse_simplify_set): Adjusted.
32782         (reload_cse_simplify_operands): Adjusted.
32783         * sel-sched-dump (debug_mem_addr_value): Pass mode.
32784
32785 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
32786
32787         PR tree-optimization/45122
32788         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
32789         unsafe assumptions when there's more than one loop exit.
32790
32791 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
32792
32793         PR target/47272
32794         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
32795         Document using vector double with the load/store builtins, and
32796         that the load/store builtins always use Altivec instructions.
32797
32798         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
32799         to use altivec memory instructions, even on VSX.
32800         (vector_altivec_store_<mode>): Ditto.
32801
32802         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
32803         function.
32804
32805         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
32806         V2DF, V2DI support to load/store overloaded builtins.
32807
32808         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
32809         altivec load/store builtins for V2DF/V2DI types.
32810
32811         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
32812         set avoid indexed addresses on power6 if -maltivec.
32813         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
32814         vector_altivec_load/vector_altivec_store builtins.
32815         (altivec_expand_st_builtin): Ditto.
32816         (altivec_expand_builtin): Add VSX memory builtins.
32817         (rs6000_init_builtins): Add V2DI types to internal types.
32818         (altivec_init_builtins): Add support for V2DF/V2DI altivec
32819         load/store builtins.
32820         (rs6000_address_for_altivec): Insure memory address is appropriate
32821         for Altivec.
32822
32823         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
32824         vec_vsx_ld and vec_vsx_st.
32825         (vsx_store_<mode>): Ditto.
32826
32827         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
32828         variables to hold long long types for VSX vector memory builtins.
32829         (RS6000_BTI_unsigned_long_long): Ditto.
32830         (long_long_integer_type_internal_node): Ditti.
32831         (long_long_unsigned_type_internal_node): Ditti.
32832
32833         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
32834         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
32835         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
32836
32837         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
32838         short cuts.
32839         (vec_vsx_st): Ditto.
32840
32841 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
32842
32843         * config/pa/pa-hpux10.opt: New.
32844         * config/hpux11.opt (pthread): New Driver option.
32845         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
32846         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
32847
32848 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
32849
32850         * config/ia64/vms.opt: New.
32851         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
32852
32853 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
32854
32855         PR target/47580
32856         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
32857         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
32858         generator functions.
32859         (vsx_floatuns<VSi><mode>2): Ditto.
32860         (vsx_fix_trunc<mode><VSi>2): Ditto.
32861         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
32862
32863 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
32864
32865         * config/i386/djgpp.opt (posix): New Driver option.
32866
32867 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
32868
32869         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
32870         Move to the unsupported targets list.
32871
32872 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
32873
32874         PR rtl-optimization/47525
32875         * df-scan.c: Update copyright years.
32876         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
32877         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
32878
32879 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32880
32881         * config/i386/sysv4.h (TARGET_VERSION): Remove.
32882         (SUBTARGET_RETURN_IN_MEMORY): Remove.
32883         (ASM_OUTPUT_ASCII): Remove.
32884         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
32885
32886 2011-02-02  Jeff Law  <law@redhat.com>
32887
32888         PR middle-end/47543
32889         * reload.c (find_reloads_address): Handle reg+d address where both
32890         components are invalid by reloading the entire address.
32891
32892 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
32893             Richard Guenther  <rguenther@suse.de>
32894
32895         PR tree-optimization/40979
32896         PR bootstrap/47044
32897         * passes.c (init_optimization_passes): After LIM call copy_prop
32898         and DCE to clean up.
32899         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
32900
32901 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
32902
32903         PR tree-optimization/47576
32904         PR tree-optimization/47555
32905         * doc/invoke.texi (scev-max-expr-complexity): Documented.
32906         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
32907         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
32908         * tree-scalar-evolution.c (follow_ssa_edge): Use
32909         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
32910
32911 2011-02-02  Richard Guenther  <rguenther@suse.de>
32912
32913         PR tree-optimization/47566
32914         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
32915
32916 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
32917
32918         PR debug/47106
32919         PR debug/47402
32920         * tree-inline.c (declare_return_variable): Remove unused caller
32921         variable.
32922
32923         PR debug/47106
32924         PR debug/47402
32925         * tree-flow-inline.h (clear_is_used, is_used_p): New.
32926         * cfgexpand.c (account_used_vars_for_block): Use them.
32927         * tree-nrv.c (tree_nrv): Likewise.
32928         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
32929         (dump_scope_block): Likewise.
32930         (remove_unused_locals): Likewise.
32931
32932         PR debug/47106
32933         PR debug/47402
32934         * tree-inline.c (declare_return_variable): Add result decl to
32935         local decls only once.
32936         * gimple-low.c (record_vars_into): Mark newly-created variables
32937         as referenced.
32938
32939 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
32940
32941         PR debug/47498
32942         PR debug/47501
32943         PR debug/45136
32944         PR debug/45130
32945         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
32946         debug insns.
32947         (no_real_insns_p, schedule_block, set_priorities): Drop special
32948         treatment of boundary debug insns.
32949         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
32950         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
32951         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
32952         (BOUNDARY_DEBUG_INSN_P): Likewise.
32953         (SCHEDULE_DEBUG_INSN_P): Likewise.
32954         * sched-rgn.c (init_ready_list): Drop special treatment of
32955         boundary debug insns.
32956         * final.c (rest_of_clean_state): Clear notes' BB.
32957
32958 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32959
32960         * config/openbsd.opt (assert=): New Driver option.
32961
32962 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32963
32964         * config/i386/nto.opt: New.
32965         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
32966
32967 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32968
32969         * config/i386/netware.opt: New.
32970         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
32971
32972 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32973
32974         * config/interix.opt (posix): New Driver option.
32975
32976 2011-02-01  DJ Delorie  <dj@redhat.com>
32977
32978         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
32979
32980         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
32981         class for A0/A1.
32982
32983 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
32984
32985         PR tree-optimization/47561
32986         * toplev.c (process_options): Print the Graphite flags.  Add
32987         flag_loop_flatten to the list of options requiring Graphite.
32988
32989 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32990
32991         * config/i386/cygming.opt (posix): New Driver option.
32992
32993 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32994
32995         * config/arm/vxworks.opt: New.
32996         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
32997
32998 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32999
33000         * config/alpha/elf.opt: New.
33001         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
33002         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
33003
33004 2011-02-01  Richard Guenther  <rguenther@suse.de>
33005
33006         PR tree-optimization/47559
33007         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
33008         store-motion on references that can throw.
33009
33010 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
33011
33012         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
33013         * tree-pass.h (TDF_CSELIB): New macro.
33014         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
33015         cselib_lookup): Check for it rather than for TDF_DETAILS.
33016
33017 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
33018
33019         PR driver/47547
33020         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
33021         is HOST_BIT_BUCKET.
33022
33023         * opts.c (finish_options): Don't add x_aux_base_name if it is
33024         HOST_BIT_BUCKET.
33025
33026 2011-02-01  Richard Guenther  <rguenther@suse.de>
33027
33028         PR tree-optimization/47555
33029         Revert
33030         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
33031
33032         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
33033
33034 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
33035
33036         PR gcc/46692
33037         * config/lm32/t-lm32: Add multilib for all CPU options.
33038
33039 2011-02-01  Richard Guenther  <rguenther@suse.de>
33040
33041         PR tree-optimization/47541
33042         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
33043         sure to have a field at offset zero.
33044
33045 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
33046
33047         * config/arc/arc.opt (EB, EL): New Driver options.
33048
33049 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
33050
33051         * config/alpha/osf5.opt: New.
33052         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
33053
33054 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
33055
33056         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
33057
33058 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
33059
33060         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
33061         -floop-interchange.
33062         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
33063         is an alias of -floop-interchange and that it requires the
33064         Graphite infrastructure.
33065         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
33066         flag_loop_interchange based on the value of flag_tree_loop_linear.
33067
33068 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
33069             Richard Guenther  <rguenther@suse.de>
33070
33071         PR tree-optimization/47538
33072         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
33073         type instead of r1type, except for comparisons.  For right
33074         shifts and comparisons punt if there are mismatches in
33075         sizetype vs. non-sizetype types.
33076
33077 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33078
33079         * doc/sourcebuild.texi (Effective-Target Keywords): Document
33080         avx_runtime.
33081
33082 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33083
33084         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
33085         version number.
33086         * configure: Regenerate.
33087
33088 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33089
33090         * configure.ac (gcc_cv_ld_static_option): Define.
33091         (gcc_cv_ld_dynamic_option): Define.
33092         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
33093         instead.
33094         (HAVE_LD_STATIC_DYNAMIC): Update message.
33095         (LD_STATIC_OPTION): Define.
33096         (LD_DYNAMIC_OPTION): Define.
33097         * configure: Regenerate.
33098         * config.in: Regenerate.
33099         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
33100         HAVE_LD_STATIC_DYNAMIC]: Use them.
33101
33102 2011-01-31  Nick Clifton  <nickc@redhat.com>
33103
33104         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
33105         registers inside interrupt handlers if the handler is not a leaf
33106         function.
33107
33108 2011-01-31  Nick Clifton  <nickc@redhat.com>
33109
33110         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
33111         reg_renumber returning an INVALID_REGNUM.
33112
33113 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
33114
33115         PR libgcj/44341
33116         * doc/install.texi: Document host options discarded when cross
33117         configuring target libraries.
33118
33119 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
33120
33121         Reverted:
33122         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
33123         PR debug/45136
33124         PR debug/45130
33125         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
33126         debug insns.
33127         (no_real_insns_p, schedule_block, set_priorities): Drop special
33128         treatment of boundary debug insns.
33129         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
33130         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
33131         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
33132         (BOUNDARY_DEBUG_INSN_P): Likewise.
33133         (SCHEDULE_DEBUG_INSN_P): Likewise.
33134         * sched-rgn.c (init_ready_list): Drop special treatment of
33135         boundary debug insns.
33136         * final.c (rest_of_clean-state): Clear notes' BB.
33137
33138 2011-01-31  Alan Modra  <amodra@gmail.com>
33139
33140         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
33141         toc relative expressions as we do in print_operand_address.
33142
33143 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
33144
33145         * doc/extend.texi: Follow spelling conventions.
33146         * doc/invoke.texi: Fix a typo.
33147
33148 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
33149
33150         * config/hpux11.opt: New.
33151         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
33152         ia64*-*-hpux*): Use hpux11.opt.
33153
33154 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
33155
33156         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
33157         to tmake_file.
33158
33159 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
33160
33161         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
33162         support sites.
33163
33164 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
33165
33166         * doc/install.texi (Binaries): Remove outdated reference for
33167         Motorola 68HC11/68HC12 downloads.
33168
33169 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
33170
33171         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
33172         Drepper's paper.
33173
33174 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
33175
33176         PR bootstrap/47147
33177         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
33178         used by NetBSD.
33179
33180 2011-01-28  Ahmad Sharif  <asharif@google.com>
33181
33182         * value-prof.c (check_counter): Corrected error message.
33183
33184 2011-01-29  Jie Zhang  <jie@codesourcery.com>
33185
33186         * config/arm/arm.c (arm_legitimize_reload_address): New.
33187         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
33188         arm_legitimize_reload_address.
33189         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
33190
33191 2011-01-28  Ian Lance Taylor  <iant@google.com>
33192
33193         * godump.c (go_define): Ignore macros whose definitions include
33194         two adjacent operands.
33195
33196 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
33197
33198         PR target/42894
33199         * varasm.c (force_const_mem): Store copy of x in desc->constant
33200         instead of x itself.
33201         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
33202         itself into REG_EQUAL note.
33203
33204 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
33205
33206         * config/freebsd.opt (posix, rdynamic): New Driver options.
33207
33208 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33209
33210         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
33211         -Bstatic/-Bdynamic.
33212         * configure: Regenerate.
33213
33214 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
33215
33216         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
33217         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
33218
33219 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
33220
33221         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
33222         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
33223         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
33224         (s390_preferred_reload_class): Make static. Change return and
33225         'rclass' argument type to reg_class_t.
33226
33227 2011-01-27  Jan Hubicka  <jh@suse.cz>
33228
33229         PR middle-end/46949
33230         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
33231         (process_function_and_variable_attributes): Check defined weakrefs.
33232
33233 2011-01-27  Martin Jambor  <mjambor@suse.cz>
33234
33235         PR tree-optimization/47228
33236         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
33237         build_ref_for_offset.
33238
33239 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33240
33241         * config/spu/spu-elf.h (ASM_SPEC): Remove.
33242
33243 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
33244
33245         PR rtl-optimization/46856
33246         * postreload.c (reload_combine_recognize_const_pattern): Do not
33247         separate cc0 setter and user on cc0 targets.
33248
33249 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
33250
33251         PR c/43082
33252         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
33253         passed a VOID_TYPE expression, immediately emit an error and
33254         return error_mark_node.
33255
33256 2011-01-26  Jeff Law  <law@redhat.com>
33257
33258         PR rtl-optimization/47464
33259         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
33260         rather than may_trap_p as needed.
33261
33262 2011-01-26  DJ Delorie  <dj@redhat.com>
33263
33264         PR rtl-optimization/46878
33265         * combine.c (insn_a_feeds_b): Check for the implicit cc0
33266         setter/user dependency as well.
33267
33268 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
33269
33270         PR rtl-optimization/44469
33271         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
33272         after removing trivially dead basic blocks.
33273
33274 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
33275
33276         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
33277         * config/frv/frv.h (LINK_SPEC): Likewise.
33278         * config/i386/netware.h (LINK_SPEC): Likewise.
33279         * config/m68k/linux.h (ASM_SPEC): Likewise.
33280         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
33281         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
33282         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
33283         * config/sparc/linux.h (ASM_SPEC): Likewise.
33284         * config/sparc/linux64.h (ASM_SPEC): Likewise.
33285         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
33286
33287 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
33288
33289         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
33290         * config/frv/frv.h (ASM_SPEC): Likewise.
33291         * config/m68k/linux.h (ASM_SPEC): Likewise.
33292         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
33293         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
33294         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
33295         * config/sparc/linux.h (ASM_SPEC): Likewise.
33296         * config/sparc/linux64.h (ASM_SPEC): Likewise.
33297         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
33298
33299 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
33300
33301         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
33302         * config/frv/frv.h (LINK_SPEC): Likewise.
33303         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
33304
33305 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
33306
33307         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
33308         * config/frv/frv.h (ASM_SPEC): Likewise.
33309         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
33310         * config/m68k/linux.h (ASM_SPEC): Likewise.
33311         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
33312         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
33313         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
33314         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
33315         * config/sparc/linux.h (ASM_SPEC): Likewise.
33316         * config/sparc/linux64.h (ASM_SPEC): Likewise.
33317         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
33318         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
33319
33320 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
33321
33322         PR target/46997
33323         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
33324         (*mux2): Ditto.
33325         (vec_extract_evenodd_help): Ditto.
33326         (vec_extract_evenv4hi): Ditto.
33327         (vec_extract_oddv4hi): Ditto.
33328         (vec_interleave_lowv2si): Ditto.
33329         (vec_interleave_highv2si): Ditto.
33330         (vec_extract_evenv2si): Ditto.
33331         (vec_extract_oddv2si: Ditto.
33332         (vec_pack_trunc_v2si): Ditto.
33333
33334 2011-01-22  Jan Hubicka  <jh@suse.cz>
33335
33336         PR target/47237
33337         * cgraph.h (cgraph_local_info): New field can_change_signature.
33338         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
33339         signature can change.
33340         (ipcp_estimate_growth): Call sequence simplify only if calle signature
33341         can change.
33342         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
33343         (cgraph_function_versioning): We can not change signature of functions
33344         that don't allow that.
33345         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
33346         (lto_input_node): Likewise.
33347         * ipa-inline.c (compute_inline_parameters): Compute
33348         local.can_change_signature.
33349         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
33350         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
33351         functions that can not change signature.
33352         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
33353         init_cumulative_args): Do not use local calling conventions
33354         for functions that can not change signature.
33355
33356 2011-01-22  Jan Hubicka  <jh@suse.cz>
33357
33358         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
33359
33360 2011-01-26  Richard Guenther  <rguenther@suse.de>
33361
33362         PR tree-optimization/47190
33363         * cgraphunit.c (process_common_attributes): New function.
33364         (process_function_and_variable_attributes): Use it.
33365
33366 2011-01-26  Richard Guenther  <rguenther@suse.de>
33367
33368         PR lto/47423
33369         * cgraphbuild.c (record_eh_tables): Record reference to personality
33370         function.
33371
33372 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
33373
33374         PR debug/45454
33375         * sel-sched.c (moveup_expr): Don't let debug insns prevent
33376         non-debug insns from moving up.
33377
33378 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
33379
33380         PR target/40125
33381         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
33382         t-dlldir{,-x} fragment for build and add it to tmake_file.
33383         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
33384         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
33385         * config/i386/t-dlldir: New file.
33386         (SHLIB_DLLDIR): Define.
33387         * config/i386/t-dlldir-x: New file.
33388         (SHLIB_DLLDIR): Define.
33389         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
33390         (SHLIB_INSTALL): Use it.
33391
33392 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
33393
33394         PR target/47246
33395         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
33396         lower bound of the allowed Thumb-2 coprocessor load/store
33397         index range to -256. Add explaining comment.
33398
33399 2011-01-25  Ian Lance Taylor  <iant@google.com>
33400
33401         * godump.c (go_define): Improve lexing of macro expansion to only
33402         accept expressions which match Go spec.
33403
33404 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
33405
33406         PR c++/43601
33407         * tree.c (handle_dll_attribute): Handle it.
33408         * doc/extend.texi (@item dllexport): Mention it.
33409         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
33410
33411 2011-01-25  Ian Lance Taylor  <iant@google.com>
33412
33413         PR tree-optimization/26854
33414         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
33415         (decl_jump_unsafe): Move higher in file, with no other change.
33416         (bind): Set has_jump_unsafe_decl if appropriate.
33417         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
33418         (check_earlier_gotos): Likewise.
33419         (c_check_switch_jump_warnings): Likewise.
33420
33421 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
33422
33423         * doc/invoke.texi (Warning Options): Add missing hyphen.
33424         (-fprofile-dir): Minor grammatical fixes.
33425         (-fbranch-probabilities): Likewise.
33426
33427 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
33428
33429         PR debug/45136
33430         PR debug/45130
33431         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
33432         debug insns.
33433         (no_real_insns_p, schedule_block, set_priorities): Drop special
33434         treatment of boundary debug insns.
33435         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
33436         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
33437         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
33438         (BOUNDARY_DEBUG_INSN_P): Likewise.
33439         (SCHEDULE_DEBUG_INSN_P): Likewise.
33440         * sched-rgn.c (init_ready_list): Drop special treatment of
33441         boundary debug insns.
33442         * final.c (rest_of_clean-state): Clear notes' BB.
33443
33444 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33445
33446         * Makefile.in (LAMBDA_H): Removed.
33447         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
33448         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
33449         lambda-trans.o, and tree-loop-linear.o.
33450         (lto-symtab.o): Remove dependence on LAMBDA_H.
33451         (tree-loop-linear.o): Remove rule.
33452         (lambda-mat.o): Same.
33453         (lambda-trans.o): Same.
33454         (lambda-code.o): Same.
33455         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
33456         (tree-vect-slp.o): Same.
33457         * hwint.h (gcd): Moved here.
33458         (least_common_multiple): Same.
33459         * lambda-code.c: Removed.
33460         * lambda-mat.c: Removed.
33461         * lambda-trans.c: Removed.
33462         * lambda.h: Removed.
33463         * tree-loop-linear.c: Removed.
33464         * lto-symtab.c: Do not include lambda.h.
33465         * omega.c (gcd): Removed.
33466         * passes.c (init_optimization_passes): Remove pass_linear_transform.
33467         * tree-data-ref.c (print_lambda_vector): Moved here.
33468         (lambda_vector_copy): Same.
33469         (lambda_matrix_copy): Same.
33470         (lambda_matrix_id): Same.
33471         (lambda_vector_first_nz): Same.
33472         (lambda_matrix_row_add): Same.
33473         (lambda_matrix_row_exchange): Same.
33474         (lambda_vector_mult_const): Same.
33475         (lambda_vector_negate): Same.
33476         (lambda_matrix_row_negate): Same.
33477         (lambda_vector_equal): Same.
33478         (lambda_matrix_right_hermite): Same.
33479         * tree-data-ref.h: Do not include lambda.h.
33480         (lambda_vector): Moved here.
33481         (lambda_matrix): Same.
33482         (dependence_level): Same.
33483         (lambda_transform_legal_p): Removed declaration.
33484         (lambda_collect_parameters): Same.
33485         (lambda_compute_access_matrices): Same.
33486         (lambda_vector_gcd): Same.
33487         (lambda_vector_new): Same.
33488         (lambda_vector_clear): Same.
33489         (lambda_vector_lexico_pos): Same.
33490         (lambda_vector_zerop): Same.
33491         (lambda_matrix_new): Same.
33492         * tree-flow.h (least_common_multiple): Removed declaration.
33493         * tree-parloops.c (lambda_trans_matrix): Moved here.
33494         (LTM_MATRIX): Same.
33495         (LTM_ROWSIZE): Same.
33496         (LTM_COLSIZE): Same.
33497         (LTM_DENOMINATOR): Same.
33498         (lambda_trans_matrix_new): Same.
33499         (lambda_matrix_vector_mult): Same.
33500         (lambda_transform_legal_p): Same.
33501         * tree-pass.h (pass_linear_transform): Removed declaration.
33502         * tree-ssa-loop.c (tree_linear_transform): Removed.
33503         (gate_tree_linear_transform): Removed.
33504         (pass_linear_transform): Removed.
33505         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
33506         flag_loop_interchange.
33507
33508 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
33509
33510         PR tree-optimization/47265
33511         PR tree-optimization/47443
33512         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
33513         if name still has some uses.
33514
33515 2011-01-25  Martin Jambor  <mjambor@suse.cz>
33516
33517         PR tree-optimization/47382
33518         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
33519         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
33520
33521 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
33522
33523         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
33524         sjlj_except_unwind_info.
33525
33526 2011-01-25  Richard Guenther  <rguenther@suse.de>
33527
33528         PR tree-optimization/47426
33529         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
33530         visible functions results escape.
33531
33532 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
33533
33534         PR target/45701
33535         * config/arm/arm.c (any_sibcall_uses_r3): New function.
33536         (arm_get_frame_offsets): Use it.
33537
33538 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33539             Jakub Jelinek  <jakub@redhat.com>
33540
33541         PR tree-optimization/47271
33542         * tree-if-conv.c (bb_postdominates_preds): New.
33543         (if_convertible_bb_p): Call bb_postdominates_preds.
33544         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
33545         (predicate_scalar_phi): Call bb_postdominates_preds.
33546
33547 2011-01-25  Nick Clifton  <nickc@redhat.com>
33548
33549         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
33550         * config/rx/rx.c (rx_function_value): Likewise.
33551         (rx_promote_function_mode): Likewise.
33552         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
33553         in order to make it legitimate.
33554         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
33555         make sure that the first operand is the same as the result register.
33556         (addsi3_unspec): Delete.
33557         (subdi3): Do not accept immediate operands.
33558         (subdi3_internal): Likewise.
33559
33560 2011-01-25  Jeff Law  <law@redhat.com>
33561
33562         PR rtl-optimization/37273
33563         * ira-costs.c (scan_one_insn): Detect constants living in memory and
33564         handle them like argument loads from stack slots.  Do not double
33565         count memory for memory constants and argument loads from stack slots.
33566
33567 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
33568
33569         PR tree-optimization/47427
33570         PR tree-optimization/47428
33571         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
33572         coalesce if the new root var would be TREE_READONLY.
33573
33574 2011-01-25  Richard Guenther  <rguenther@suse.de>
33575
33576         PR middle-end/47414
33577         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
33578         correct type for TBAA.
33579
33580 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33581
33582         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
33583         (close_phi_written_to_memory): Call for_each_index with
33584         dr_indices_valid_in_loop.
33585
33586 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33587
33588         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
33589         when it is initialized.
33590
33591 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33592
33593         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
33594         call to graphite_find_data_references_in_stmt.
33595         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
33596         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
33597         call to graphite_find_data_references_in_stmt.
33598         (analyze_drs_in_stmts): Same.
33599         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
33600         in which the scalar analysis of indices is performed.
33601         (create_data_ref): Same.  Update call to dr_analyze_indices.
33602         (find_data_references_in_stmt): Update call to create_data_ref.
33603         (graphite_find_data_references_in_stmt): Same.
33604         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
33605         declaration.
33606         (create_data_ref): Same.
33607         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
33608         call to create_data_ref.
33609
33610 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33611
33612         * graphite-sese-to-poly.c (build_poly_scop): Move
33613         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
33614
33615 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33616
33617         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
33618         VAR_DECL, PARM_DECL, and RESULT_DECL.
33619
33620 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33621
33622         * graphite-dependences.c (reduction_dr_1): Allow several reductions
33623         in a reduction PBB.
33624         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
33625         that have already been marked as PBB_IS_REDUCTION.
33626
33627 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33628
33629         * graphite-scop-detection.c (same_close_phi_node): New.
33630         (remove_duplicate_close_phi): New.
33631         (make_close_phi_nodes_unique): New.
33632         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
33633
33634 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33635
33636         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
33637         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
33638         of both data references to be the same.
33639
33640 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33641
33642         * graphite-dependences.c (build_lexicographical_constraint): Remove
33643         the gdim parameter.
33644         (build_lexicographical_constraint): Adjust call to
33645         ppl_powerset_is_empty.
33646         (dependence_polyhedron): Same.
33647         (graphite_legal_transform_dr): Same.
33648         (graphite_carried_dependence_level_k): Same.
33649         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
33650         parameter.
33651         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
33652
33653 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33654
33655         * graphite-sese-to-poly.c
33656         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
33657         (close_phi_written_to_memory): New.
33658         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
33659         and unshare_expr.
33660
33661 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33662
33663         * doc/install.texi: Update the expected version number of PPL to 0.11.
33664         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
33665         #if PPL_VERSION_MINOR < 11.
33666
33667 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33668
33669         * graphite-dependences.c: Include graphite-cloog-util.h.
33670         (new_poly_ddr): Inlined into dependence_polyhedron.
33671         (free_poly_ddr): Moved close by new_poly_ddr.
33672         (dependence_polyhedron_1): Renamed dependence_polyhedron.
33673         Early return NULL when ppl_powerset_is_empty returns true.
33674         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
33675         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
33676         (graphite_legal_transform_dr): Call new_poly_ddr.
33677         (graphite_carried_dependence_level_k): Same.
33678         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
33679         (dot_transformed_deps_stmt_1): Removed.
33680         (dot_deps_stmt_1): Call dot_deps_stmt_2.
33681         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
33682         (dot_deps_1): Call dot_deps_2.
33683         * Makefile.in (graphite-dependences.o): Add missing dependence on
33684         graphite-cloog-util.h.
33685
33686 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33687
33688         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
33689         (build_lexicographical_constraint): Same.
33690         (dependence_polyhedron_1): Same.
33691         (graphite_legal_transform_dr): Same.
33692         (graphite_carried_dependence_level_k): Same.
33693         * graphite-ppl.c (ppl_powerset_is_empty): New.
33694         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
33695         * tree-data-ref.c (dump_data_reference): Print the basic block index.
33696
33697 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33698
33699         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
33700         the "a followed by b" relation and document it.
33701
33702 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33703
33704         * graphite-dependences.c (build_lexicographical_constraint): Stop the
33705         iteration when the bag of constraints is empty.
33706
33707 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33708
33709         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
33710
33711 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33712
33713         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
33714         nest and two loop depths as parameters.
33715         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
33716         lst_perfect_nestify.
33717
33718 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33719
33720         * graphite-dependences.c (print_pddr): Call
33721         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
33722
33723 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33724
33725         * graphite-ppl.c (debug_gmp_value): New.
33726         * graphite-ppl.h (debug_gmp_value): Declared.
33727
33728 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
33729
33730         * doc/install.texi: Document availability of cloog-0.16.
33731
33732 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
33733
33734         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
33735         invalid postdominance info.
33736
33737 2011-01-24  Jan Hubicka  <jh@suse.cz>
33738
33739         PR c/21659
33740         * doc/extend.texi (weak pragma): Drop claim that it must
33741         appear before definition.
33742         * varasm.c (merge_weak, declare_weak): Only sanity check
33743         that DECL is not output at a time it is declared weak.
33744
33745 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
33746
33747         * machmode.def: Fixed comments.
33748
33749 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
33750
33751         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
33752
33753 2011-01-24  Paul Koning  <ni1d@arrl.net>
33754
33755         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
33756         WORDS_BIG_ENDIAN.
33757
33758 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
33759
33760         PR target/46519
33761         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
33762         (block_info): Add scanned and prev.
33763         (move_or_delete_vzeroupper_2): Return if the basic block
33764         has been scanned and the upper 128bit state is unchanged
33765         from the last scan.
33766         (move_or_delete_vzeroupper_1): Return true if the exit
33767         state is changed.
33768         (move_or_delete_vzeroupper): Visit basic blocks using the
33769         work-list based algorithm based on vt_find_locations in
33770         var-tracking.c.
33771
33772         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
33773
33774 2011-01-24  Nick Clifton  <nickc@redhat.com>
33775
33776         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
33777         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
33778         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
33779         then define __v850e1__.
33780         * doc/invoke.texi: Document -mv850es.
33781
33782 2011-01-24  Richard Henderson  <rth@redhat.com>
33783
33784         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
33785         compound unordered comparisons.
33786         * config/rx/rx.c (rx_split_fp_compare): Remove.
33787         * config/rx/rx-protos.h: Update.
33788         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
33789         (cbranchsf4): Don't call rx_split_fp_compare.
33790         (*cbranchsf4): Use rx_split_cbranch.
33791         (*cmpsf): Don't accept "i" constraint.
33792         (*conditional_branch): Only valid after reload.
33793         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
33794
33795 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
33796
33797         PR target/47385
33798         * config/rs6000/altivec.md (vector constant splitters): Add
33799         support for creating vector single precision constants if -mvsx is
33800         used and we would create the constant using Altivec primitives.
33801
33802 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
33803             Richard Sandiford  <rdsandiford@googlemail.com>
33804
33805         PR rtl-optimization/47166
33806         * reload1.c (emit_reload_insns): Disable the spill_reg_store
33807         mechanism for PRE_MODIFY and POST_MODIFY.
33808         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
33809         reloadreg.
33810
33811 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
33812
33813         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
33814
33815 2011-01-22  Jan Hubicka  <jh@suse.cz>
33816
33817         PR lto/47333
33818         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
33819
33820 2011-01-22  Jan Hubicka  <jh@suse.cz>
33821
33822         PR tree-optimization/43884
33823         PR lto/44334
33824         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
33825         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
33826
33827 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
33828
33829         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
33830         * config/s390/s390.c (s390_register_move_cost,
33831         s390_memory_move_cost): New.
33832         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
33833
33834 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33835
33836         PR middle-end/47401
33837         * except.c (sjlj_assign_call_site_values): Move setting the
33838         crtl->uses_eh_lsda flag to ...
33839         (sjlj_mark_call_sites): ... here.
33840         (sjlj_emit_function_enter): Support NULL dispatch label.
33841         (sjlj_build_landing_pads): In a function with no landing pads
33842         that still has must-not-throw regions, generate code to register
33843         a personality function with empty LSDA.
33844
33845 2011-01-21  Richard Henderson  <rth@redhat.com>
33846
33847         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
33848
33849         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
33850
33851         * compare-elim.c: New file.
33852         * Makefile.in (OBJS-common): Add it.
33853         (compare-elim.o): New.
33854         * common.opt (fcompare-elim): New.
33855         * opts.c (default_options_table): Add OPT_fcompare_elim.
33856         * tree-pass.h (pass_compare_elim_after_reload): New.
33857         * passes.c (init_optimization_passes): Add it.
33858         * recog.h: Protect against re-inclusion.
33859         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
33860         * doc/invoke.texi (-fcompare-elim): Document it.
33861         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
33862         * doc/tm.texi: Rebuild.
33863
33864 2011-01-22  Nick Clifton  <nickc@redhat.com>
33865
33866         * config/rx/rx.md (cstoresf4): Pass comparison operator to
33867         rx_split_fp_compare.
33868
33869 2011-01-22  Nick Clifton  <nickc@redhat.com>
33870
33871         * config/rx/rx.md (UNSPEC_CONST): New.
33872         (deallocate_and_return): Wrap the amount popped off the stack in
33873         an UNSPEC_CONST in order to stop it being rejected by
33874         -mmax-constant-size.
33875         (pop_and_return): Add a "(return)" rtx.
33876         (call): Drop the immediate operand.
33877         (call_internal): Likewise.
33878         (call_value): Likewise.
33879         (call_value_internal): Likewise.
33880         (sibcall_internal): Likewise.
33881         (sibcall_value_internal): Likewise.
33882         (sibcall): Likewise.  Generate an explicit call using
33883         sibcall_internal.
33884         (sibcall_value): Likewise.
33885         (mov<>): FAIL if a constant operand is not legitimate.
33886         (addsi3_unpsec): New pattern.
33887
33888         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
33889         (ok_for_max_constant): New function.
33890         (gen_safe_add): New function.
33891         (rx_expand_prologue): Use gen_safe_add.
33892         (rx_expand_epilogue): Likewise.
33893         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
33894         UNSPEC CONSTs.
33895
33896 2011-01-21  Jeff Law  <law@redhat.com>
33897
33898         PR tree-optimization/47053
33899         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
33900         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
33901         statements are deleted.
33902         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
33903         is nonempty, then purge dead edges and cleanup the CFG.
33904
33905 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
33906
33907         PR debug/47402
33908         Temporarily revert:
33909         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
33910         PR debug/47106
33911         * tree-dfa.c (create_var_ann): Mark variable as used.
33912
33913 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
33914
33915         PR middle-end/45566
33916         * except.c (convert_to_eh_region_ranges): Emit queued no-region
33917         notes from other section in hot/cold partitioning even if
33918         last_action is -3.  Increment call_site_base.
33919
33920         PR rtl-optimization/47366
33921         * fwprop.c (forward_propagate_into): Return bool.  If
33922         any changes are made, -fnon-call-exceptions is used and
33923         REG_EH_REGION note is present, call purge_dead_edges
33924         and return true if it purged anything.
33925         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
33926         any EH edges were purged.
33927
33928 2011-01-21  Jeff Law  <law@redhat.com>
33929
33930         PR rtl-optimization/41619
33931         * caller-save.c (setup_save_areas): Break out code to determine
33932         which hard regs are live across calls by examining the reload chains
33933         so that it is always used.
33934         Eliminate code which checked REG_N_CALLS_CROSSED.
33935
33936 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
33937
33938         PR tree-optimization/47355
33939         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
33940         NOP has non-debug uses beyond PHIs in new_bb.
33941
33942 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
33943
33944         PR debug/47106
33945         * cfgexpand.c (account_used_vars_for_block): Only account vars
33946         that are annotated as used.
33947         (estimated_stack_frame_size): Don't set TREE_USED.
33948         * tree-dfa.c (create_var_ann): Mark variable as used.
33949
33950 2011-01-21  Richard Guenther  <rguenther@suse.de>
33951
33952         PR middle-end/47395
33953         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
33954
33955 2011-01-21  Richard Guenther  <rguenther@suse.de>
33956
33957         PR tree-optimization/47365
33958         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
33959         (vn_reference_lookup_pieces): Adjust.
33960         (vn_reference_lookup): Likewise.
33961         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
33962         (vn_reference_lookup_3): Only look through kills if in
33963         VN_WALKREWRITE mode.
33964         (vn_reference_lookup_pieces): Adjust.
33965         (vn_reference_lookup): Likewise.
33966         (visit_reference_op_load): Likewise.
33967         (visit_reference_op_store): Likewise.
33968         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
33969         (compute_avail): Likewise.
33970         (eliminate): Likewise.
33971
33972 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
33973
33974         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
33975         DECL_IGNORED_P non-reg vars if they are used.
33976
33977         PR tree-optimization/47391
33978         * varpool.c (const_value_known_p): Return false if
33979         decl is volatile.
33980
33981 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
33982
33983         PR bootstrap/47215
33984         * config/i386/i386.c (ix86_local_alignment): Handle
33985         case for va_list_type_node is nil.
33986         (ix86_canonical_va_list_type): Likewise.
33987
33988 2011-01-21  Alan Modra  <amodra@gmail.com>
33989
33990         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
33991         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
33992
33993 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33994
33995         * config/arm/arm.md (define_attr type): Rename f_load
33996         and f_store to f_fpa_load and f_fpa_store. Update.
33997         (write_conflict): Deal with rename fallout.
33998         (*push_fp_multi): Likewise.
33999         * config/arm/fpa.md (f_load): Use f_fpa_load.
34000         (f_store): Use f_fpa_store.
34001         (*movsf_fpa): Likewise.
34002         (*movdf_fpa): Likewise.
34003         (*movxf_fpa): Likewise.
34004         (*thumb2_movsf_fpa): Likewise.
34005         (*thumb2_movdf_fpa): Likewise.
34006         (*thumb2_movxf_fpa): Likewise.
34007         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
34008         f_loadd and f_stored.
34009         (*thumb2_movdi_vfp): Likewise.
34010         (*thumb2_movsf_vfp): Fix attribute to f_loads.
34011         (*thumb2_movsi_vfp): Likewise.
34012         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
34013         Use f_loads instead of f_load.
34014         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
34015
34016 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
34017
34018         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
34019         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
34020         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
34021         (xtensa_mode_dependent_address_p): New function.
34022         (constantpool_address_p): Make static. Change return type to bool.
34023         Change argument type to const_rtx. Use CONST_INT_P predicate.
34024
34025 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
34026
34027         PR debug/46583
34028         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
34029
34030 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
34031
34032         PR debug/47283
34033         * cfgexpand.c (expand_debug_expr): Instead of generating
34034         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
34035         etc. handling.
34036
34037 2011-01-20  Richard Guenther  <rguenther@suse.de>
34038
34039         PR middle-end/47370
34040         * tree-inline.c (remap_gimple_op_r): Recurse manually for
34041         the pointer operand of MEM_REFs.
34042
34043 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
34044
34045         PR tree-optimization/46130
34046         * ipa-split.c (consider_split): If return_bb contains non-virtual
34047         PHIs other than for retval or if split_function would not adjust it,
34048         refuse to split.
34049
34050 2011-01-20  Richard Guenther  <rguenther@suse.de>
34051
34052         PR tree-optimization/47167
34053         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
34054         Revert previous change, only avoid enumeral type changes.
34055
34056 2011-01-19  Mike Stump  <mikestump@comcast.net>
34057
34058         * doc/tm.texi.in (BRANCH_COST): Englishify.
34059         * doc/tm.texi (BRANCH_COST): Likewise.
34060
34061 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
34062
34063         PR c++/47291
34064         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
34065         (gen_scheduled_generic_parms_dies): New functions.
34066         (gen_struct_or_union_type_die): Schedule template parameters DIEs
34067         generation for the end of CU compilation.
34068         (dwarf2out_finish): Generate template parameters DIEs here.
34069
34070 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
34071
34072         PR debug/46240
34073         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
34074         debug bind stmt on merge edges.
34075
34076 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
34077
34078         PR debug/47079
34079         PR debug/46724
34080         * function.c (instantiate_expr): Instantiate incoming rtl of
34081         implicit arguments, and recurse on VALUE_EXPRs.
34082         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
34083         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
34084
34085 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
34086
34087         * c-parser.c (c_parser_for_statement): Initialize
34088         collection_expression.
34089
34090 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
34091
34092         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
34093
34094 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
34095
34096         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
34097         (LINK_SHLIB_SPEC): Don't use %(link_path).
34098         (SUBTARGET_EXTRA_SPECS): Remove link_path.
34099
34100 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
34101
34102         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
34103         (NO_SHARED_LIB_SUPPORT): Remove.
34104         (LINK_SHLIB_SPEC): Remove one conditional definition.
34105
34106 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
34107
34108         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
34109         %{call_shared}.
34110         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
34111         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
34112         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
34113         %{call_shared} and conditionals on these options not being passed.
34114         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
34115         %{call_shared}.
34116
34117 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
34118
34119         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
34120         simplify.
34121
34122         * ipa-split.c: Spelling fixes.
34123
34124 2011-01-19  Richard Henderson  <rth@redhat.com>
34125
34126         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
34127         (*mulsi3): Likewise.
34128
34129         * longlong.h [__mn10300__] (count_leading_zeros): New.
34130         [__mn10300__] (umul_ppmm, smul_ppmm): New.
34131         [__mn10300__] (add_ssaaaa, subddmmss): New.
34132         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
34133         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
34134
34135 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34136
34137         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
34138
34139 2011-01-19  Richard Henderson  <rth@redhat.com>
34140
34141         * config/mn10300/mn10300.md (addsi3_flags): New.
34142         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
34143         (subsi3_flags, subc_internal, subdi3): New.
34144         (subdi3_internal, *subdi3_degenerate): New.
34145         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
34146
34147         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
34148         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
34149         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
34150         * config/mn10300/mn10300-protos.h: Update.
34151         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
34152         (return_ret): Likewise.  Rename from return_internal_regs.
34153         (return_internal): Remove.
34154
34155         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
34156         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
34157         (mn10300_legitimate_constant_p): Likewise.
34158         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
34159         (mn10300_frame_size): New.
34160         (mn10300_expand_prologue): Use it.
34161         (mn10300_expand_epilogue): Likewise.
34162         (mn10300_initial_offset): Likewise.
34163         * config/mn10300/mn10300-protos.h: Update.
34164         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
34165         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
34166         (prologue, epilogue, return_internal): Tidy output code.
34167         (mn10300_store_multiple_operation, return): Likewise.
34168         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
34169         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
34170         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
34171         (load_pic, am33_load_pic): New.
34172         (mn10300_load_pic0, mn10300_load_pic1): New.
34173
34174         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
34175         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
34176         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
34177         (cc_flags_for_mode, cc_flags_for_code): New.
34178         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
34179         overflow flag is not valid.  Validate that the flags we need
34180         for the comparison are valid.
34181         (mn10300_output_cmp): Remove.
34182         (mn10300_output_add): New.
34183         (mn10300_select_cc_mode): Use cc_flags_for_code.
34184         (mn10300_split_cbranch): New.
34185         (mn10300_match_ccmode): New.
34186         (mn10300_split_and_operand_count): New.
34187         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
34188         to the function.
34189         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
34190         (addsi3): ... here.  Use mn10300_output_add.
34191         (*addsi3_flags): New.
34192         (*am33_subsi3, *mn10300_subsi3): Merge...
34193         (subsi3): ... here.  Use attribute isa.
34194         (*subsi3_flags): New.
34195         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
34196         when possible.
34197         (*am33_andsi3, *mn10300_andsi3): Merge...
34198         (andsi3): ... here.
34199         (*andsi3_flags): New.
34200         (andsi3 splitters): New.
34201         (*am33_iorsi3, *mn10300_iorsi3): Merge...
34202         (iorsi3): ... here.
34203         (*iorsi3_flags): New.
34204         (*am33_xorsi3, *mn10300_xorsi3): Merge...
34205         (xorsi3): ... here.
34206         (*xorsi3_flags): New.
34207         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
34208         (one_cmplsi2): ... here.
34209         (*one_cmplsi2_flags): New.
34210         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
34211         instead of "dax" in constraints.  Use mn10300_split_cbranch.
34212         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
34213         use matching constraints to eliminate a self-comparison.
34214         (*integer_conditional_branch): Rename from integer_conditional_branch.
34215         Use int_mode_flags to match CC_REG.
34216         (*cbranchsi4_btst, *btstsi): New.
34217         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
34218         mn10300_split_cbranch.
34219         (*am33_cmpsf): Rename from am33_cmpsf.
34220         (*float_conditional_branch): Rename from float_conditional_branch.
34221         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
34222         (zero_extendqisi2): ... here.
34223         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
34224         (zero_extendhisi2): ... here.
34225         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
34226         (extendqisi2): ... here.
34227         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
34228         (extendhisi2): ... here.
34229         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
34230         (ashlsi3): ... here.
34231         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
34232         (lshrsi3): ... here.
34233         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
34234         (ashrsi3): ... here.
34235         (consecutive add peephole): Remove.
34236         * config/mn10300/predicates.md (label_ref_operand): New.
34237         (int_mode_flags): New.
34238         (CCZN_comparison_operator): New.
34239
34240         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
34241         (throughput_42_latency_43): New reservation.
34242         (mulsidi3, umulsidi3): New expanders.
34243         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
34244         the MDR register to allocation; separately allocate the low and
34245         high parts of the DImode result.
34246         (umulsidi3_internal): Similarly.
34247         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
34248         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
34249         (udivsi3, umodsi3): Remove.
34250         (udivmodsi4, divmodsi4): New expanders.
34251         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
34252         (*divmodsi4): Simiarly.
34253         (ext_internal): New.
34254
34255         * config/mn10300/constraints.md ("z"): New constraint.
34256         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
34257         (FIXED_REGISTERS): Don't fix MDR.
34258         (CALL_USED_REGSITERS): Reformat nicely.
34259         (REG_ALLOC_ORDER): Add MDR.
34260         (enum regclass): Add MDR_REGS.
34261         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
34262         (IRA_COVER_CLASSES): Add MDR_REGS.
34263         (REGNO_REG_CLASS): Handle MDR_REG.
34264         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
34265         (mn10300_register_move_cost): Likewise.
34266         * config/mn10300/mn10300.md (MDR_REG): New.
34267         (*movsi_internal): Handle moves to/from MDR_REGS.
34268
34269         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
34270         POST_MODIFY.
34271         (mn10300_secondary_reload): Tidy combination reload classes.
34272         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
34273         addresses for AM33.  Allow symbolic offsets for reg+imm.
34274         (mn10300_regno_in_class_p): New.
34275         (mn10300_legitimize_reload_address): New.
34276         * config/mn10300/mn10300.h (enum reg_class): Remove
34277         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
34278         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
34279         SP_OR_GENERAL_REGS.
34280         (REG_CLASS_NAMES): Update to match.
34281         (REG_CLASS_CONTENTS): Likewise.
34282         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
34283         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
34284         (REGNO_IN_RANGE_P): Remove.
34285         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
34286         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
34287         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
34288         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
34289         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
34290         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
34291         (REGNO_GENERAL_P): New.
34292         (HAVE_POST_MODIFY_DISP): New.
34293         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
34294         (LEGITIMIZE_RELOAD_ADDRESS): New.
34295         * config/mn10300/mn10300-protos.h: Update.
34296
34297         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
34298         DATA_REGS for AM33 stack-pointer destination.
34299         (mn10300_preferred_output_reload_class): Likewise.
34300         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
34301         into a form appropriate for ...
34302         (TARGET_SECONDARY_RELOAD): New.
34303         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
34304         * config/mn10300/mn10300-protos.h: Update.
34305         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
34306         reload_insi; use the "A" constraint for the scratch; handle AM33
34307         moves of sp to non-address registers.
34308
34309         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
34310         (*movqi_internal): ... here.
34311         (*am33_movhi, *mn10300_movhi): Merge into...
34312         (*movhi_internal): ... here.
34313         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
34314         as the source/destination of moves from/to SP.
34315         (movsf): Only allow for AM33-2.
34316         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
34317         any integer constant constraint.  Only allow for AM33-2.  Tidy
34318         all of the alternative outputs.
34319         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
34320         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
34321         for MN103.
34322         (udivsi3, umodsi3): New patterns for MN103 only.
34323
34324 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
34325
34326         * doc/tm.texi.in: Spell out that a lack of register class unions
34327         can lead to ICEs.
34328         * doc/tm.texi: Regenerate.
34329
34330 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
34331
34332         PR rtl-optimization/47337
34333         * dce.c (check_argument_store): New function.
34334         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
34335
34336         PR tree-optimization/47290
34337         * tree-eh.c (infinite_empty_loop_p): New function.
34338         (cleanup_empty_eh): Use it.
34339
34340 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
34341
34342         PR target/46997
34343         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
34344         (a64_expand_widen_sum): Ditto.
34345         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
34346         (vec_extract_evenodd_help): Ditto.
34347         (vec_extract_evenv4hi): Ditto.
34348         (vec_extract_oddv4hi): Ditto.
34349         (vec_extract_evenv2si): Ditto.
34350         (vec_extract_oddv2si): Ditto.
34351         (vec_extract_evenv2sf): Ditto.
34352         (vec_extract_oddv2sf): Ditto.
34353         (vec_pack_trunc_v4hi: Ditto.
34354         (vec_pack_trunc_v2si): Ditto.
34355         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
34356         (vec_interleave_highv8qi): Ditto.
34357         (mix1_r): Ditto.
34358         (vec_extract_oddv8qi): Ditto.
34359         (vec_interleave_lowv4hi): Ditto.
34360         (vec_interleave_highv4hi): Ditto.
34361         (vec_interleave_lowv2si): Ditto.
34362         (vec_interleave_highv2si): Ditto.
34363
34364 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34365
34366         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
34367         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
34368         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
34369         (pa_c_mode_for_suffix): New.
34370         (TARGET_EXPAND_BUILTIN): Define.
34371         (TARGET_C_MODE_FOR_SUFFIX): Define.
34372         (pa_builtins): Define.
34373         (pa_init_builtins): Register __float128 type and init new support
34374         builtins.
34375         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
34376         * config/pa/quadlib.c (_U_Qfcopysign): New.
34377
34378 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
34379
34380         PR middle-end/46894
34381         * explow.c (allocate_dynamic_stack_space): Do not assume more than
34382         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
34383         are defined.
34384
34385 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34386
34387         PR tree-optimization/47179
34388         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
34389         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
34390
34391 2011-01-18  Richard Guenther  <rguenther@suse.de>
34392
34393         PR rtl-optimization/47216
34394         * emit-rtl.c: Include tree-flow.h.
34395         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
34396         of replicating it with different semantics.
34397         * Makefile.in (emit-rtl.o): Adjust.
34398
34399 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34400
34401         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
34402         (cortex_a9_dp): Handle neon types correctly.
34403
34404 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
34405
34406         PR rtl-optimization/47299
34407         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
34408         subtarget.  Use normal multiplication if both operands are constants.
34409         * expmed.c (expand_widening_mult): Don't try to optimize constant
34410         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
34411         before using it.
34412
34413 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34414
34415         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
34416         spacing after 'e.g.', typos, comma, hyphenation.
34417
34418 2011-01-17  Richard Henderson  <rth@redhat.com>
34419
34420         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
34421         (rx_restricted_mem_operand): New.
34422         (rx_shift_operand): Use register_operand.
34423         (rx_source_operand, rx_compare_operand): Likewise.
34424         * config/rx/rx.md (addsi3_flags): New expander.
34425         (adddi3): Rewrite as expander.
34426         (adc_internal, *adc_flags, adddi3_internal): New patterns.
34427         (subsi3_flags): New expander.
34428         (subdi3): Rewrite as expander.
34429         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
34430
34431         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
34432         (rx_init_builtins): Remove sat builtin.
34433         (rx_expand_builtin): Likewise.
34434         * config/rx/rx.md (ssaddsi3): New.
34435         (*sat): Rename from sat.  Represent the CC_REG input.
34436
34437         * config/rx/predicates.md (rshift_operator): New.
34438         * config/rx/rx.c (rx_expand_insv): Remove.
34439         * config/rx/rx-protos.h: Update.
34440         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
34441         operand to the canonical position.
34442         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
34443         (*bitclr, *bitclr_in_memory): Similarly.
34444         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
34445         (insv): Retain the zero_extract in the expansion.
34446
34447         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
34448         (bswaphi2, bitinvert, revw): Likewise.
34449
34450         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
34451         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
34452         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
34453         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
34454         (bitset, bitset_in_memory): Likewise.
34455         (bitinvert, bitinvert_in_memory): Likewise.
34456         (bitclr, bitclr_in_memory): Likewise.
34457         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
34458         (rx_strend, rx_cmpstrn): Likewise.
34459         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
34460         (bitop peep2 patterns): Remove.
34461
34462         * config/rx/rx.c (rx_match_ccmode): New.
34463         * config/rx/rx-protos.h: Update.
34464         * config/rx/rx.md (abssi2): Clobber, don't set flags.
34465         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
34466         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
34467         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
34468         (fix_truncsfsi2, floatsisf2): Likewise.
34469         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
34470         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
34471         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
34472         (*subsi3_flags, *xorsi3_flags): New.
34473
34474         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
34475
34476         * config/rx/rx.c (rx_print_operand): Remove workaround for
34477         unsplit comparison operations.
34478
34479         * config/rx/rx.md (movsicc): Split after reload.
34480         (*movsicc): Merge *movsieq and *movsine via match_operator.
34481         (*stcc): New pattern.
34482
34483         * config/rx/rx.c (rx_float_compare_mode): Remove.
34484         * config/rx/rx.h (rx_float_compare_mode): Remove.
34485         * config/rx/rx.md (cstoresi4): Split after reload.
34486         (*sccc): New pattern.
34487
34488         * config/rx/predicates.md (label_ref_operand): New.
34489         (rx_z_comparison_operator): New.
34490         (rx_zs_comparison_operator): New.
34491         (rx_fp_comparison_operator): New.
34492         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
34493         Validate that the flags are set properly for the comparison.
34494         (rx_gen_cond_branch_template): Remove.
34495         (rx_cc_modes_compatible): Remove.
34496         (mode_from_flags): New.
34497         (flags_from_code): Rename from flags_needed_for_conditional.
34498         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
34499         (rx_select_cc_mode): Likewise.
34500         (rx_split_fp_compare): New.
34501         (rx_split_cbranch): New.
34502         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
34503         (*cbranchsi4): Use match_operator and rx_split_cbranch.
34504         (*cbranchsf4): Similarly.
34505         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
34506         match_operator and rx_split_cbranch.
34507         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
34508         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
34509         (*cmpsi): Rename from cmpsi.
34510         (*tstsi): Rename from tstsi.
34511         (*cmpsf): Rename from cmpsf; use CC_Fmode.
34512         (*conditional_branch): Rename from conditional_branch.
34513         (*reveresed_conditional_branch): Remove.
34514         (b<code>): Remove expander.
34515         * config/rx/rx-protos.h: Update.
34516
34517         * config/rx/rx.c (rx_compare_redundant): Remove.
34518         * config/rx/rx.md (cmpsi): Don't use it.
34519         * config/rx/rx-protos.h: Update.
34520
34521         * config/rx/rx-modes.def (CC_F): New mode.
34522         * config/rx/rx.c (rx_select_cc_mode): New.
34523         * config/rx/rx.h (SELECT_CC_MODE): Use it.
34524         * config/rx/rx-protos.h: Update.
34525
34526 2011-01-17  Richard Henderson  <rth@redhat.com>
34527
34528         * except.c (dump_eh_tree): Fix stray ; after for statement.
34529
34530 2011-01-17  Richard Guenther  <rguenther@suse.de>
34531
34532         PR tree-optimization/47313
34533         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
34534         handling before copying the body.  Properly deal with
34535         by-reference result in SSA form.
34536
34537 2011-01-17  Ian Lance Taylor  <iant@google.com>
34538
34539         PR target/47219
34540         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
34541         (struct_value_alias_set): Don't define.
34542         (sparc_option_override): Don't set sparc_sr_alias_set and
34543         struct_value_alias_set.
34544         (save_or_restore_regs): Use gen_frame_mem rather than calling
34545         set_mem_alias_set.
34546         (sparc_struct_value_rtx): Likewise.
34547
34548 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
34549
34550         PR target/47318
34551         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
34552         (_mm_maskstore_pd): Likewise.
34553         (_mm_maskload_ps): Likewise.
34554         (_mm_maskstore_ps): Likewise.
34555         (_mm256_maskload_pd): Change mask to __m256i.
34556         (_mm256_maskstore_pd): Likewise.
34557         (_mm256_maskload_ps): Likewise.
34558         (_mm256_maskstore_ps): Likewise.
34559
34560         * config/i386/i386-builtin-types.def: Updated.
34561         (ix86_expand_special_args_builtin): Likewise.
34562
34563         * config/i386/i386.c (bdesc_special_args): Update
34564         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
34565         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
34566         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
34567         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
34568
34569         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
34570         Use <avxpermvecmode> on mask register.
34571         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
34572
34573 2011-01-17  Olivier Hainque  <hainque@adacore.com>
34574             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34575             Eric Botcazou  <ebotcazou@adacore.com>
34576
34577         PR target/46655
34578         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
34579         if <= USHRT_MAX in 32-bit mode.
34580
34581 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34582
34583         * doc/install.texi (Configuration, Specific): Wrap long
34584         lines in examples.  Allow line wrapping in long options
34585         and URLs where beneficial for PDF output.
34586
34587 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
34588
34589         * config/mips/mips.c (mips_classify_symbol): Don't return
34590         SYMBOL_PC_RELATIVE for nonlocal labels.
34591
34592 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
34593
34594         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
34595
34596 2011-01-15  Jan Hubicka  <jh@suse.cz>
34597
34598         PR tree-optimization/47276
34599         * ipa.c (function_and_variable_visibility): Do not try to mark alias
34600         declarations as needed.
34601
34602 2011-01-15  Martin Jambor  <mjambor@suse.cz>
34603
34604         * common.opt (fdevirtualize): New flag.
34605         * doc/invoke.texi (Option Summary): Document it.
34606         * opts.c (default_options_table): Add devirtualize flag.
34607         * ipa-prop.c (detect_type_change): Return immediately if
34608         devirtualize flag is not set.
34609         (detect_type_change_ssa): Likewise.
34610         (compute_known_type_jump_func): Likewise.
34611         (ipa_analyze_virtual_call_uses): Likewise.
34612
34613 2011-01-14  Martin Jambor  <mjambor@suse.cz>
34614
34615         PR tree-optimization/45934
34616         PR tree-optimization/46302
34617         * ipa-prop.c (type_change_info): New type.
34618         (stmt_may_be_vtbl_ptr_store): New function.
34619         (check_stmt_for_type_change): Likewise.
34620         (detect_type_change): Likewise.
34621         (detect_type_change_ssa): Likewise.
34622         (compute_complex_assign_jump_func): Check for dynamic type change.
34623         (compute_complex_ancestor_jump_func): Likewise.
34624         (compute_known_type_jump_func): Likewise.
34625         (compute_scalar_jump_functions): Likewise.
34626         (ipa_analyze_virtual_call_uses): Likewise.
34627         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
34628
34629 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34630
34631         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
34632         * config/i386/i386.opt (msse5): New Alias.
34633
34634 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34635
34636         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
34637         * config/sparc/linux64.h (CC1_SPEC): Likewise.
34638         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
34639         * config/sparc/sparc.h (CC1_SPEC): Likewise.
34640
34641 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34642
34643         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
34644         -mcpu options.
34645         * config/sparc/linux64.h (CC1_SPEC): Likewise.
34646         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
34647         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
34648         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
34649         Likewise.
34650         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
34651
34652 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34653
34654         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
34655
34656 2011-01-14  Mike Stump  <mikestump@comcast.net>
34657
34658         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
34659         * config/fr30/fr30.md: Likweise
34660         (movsi_push): Likewise.
34661         (movsi_pop): Likewise.
34662         (enter_func): Likewise.
34663         * config/moxie/moxie.md (movsi_push): Likewise.
34664         (movsi_pop): Likewise.
34665
34666 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34667
34668         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
34669         %{no_archive} %{exact_version}.
34670         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
34671         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
34672         %{no_archive} %{exact_version}.
34673         * config/mips/openbsd.h (LINK_SPEC): Likewise.
34674         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
34675         * config/mips/vxworks.h: Likewise.
34676
34677 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34678
34679         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
34680
34681 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34682
34683         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
34684         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
34685
34686 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34687
34688         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
34689         -nodefaultlib.
34690
34691 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34692
34693         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
34694         for mcpu not cpu.
34695         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
34696         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
34697         not cpu.
34698         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
34699         Don't handle -shlib.
34700
34701 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34702
34703         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
34704         (CC1_SPEC): Don't handle -profile.
34705
34706 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34707
34708         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
34709         * config/mips/mips.h (CC1_SPEC): Likewise.
34710
34711 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34712
34713         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
34714         * config/mips/mips.h (CC1_SPEC): Likewise.
34715
34716 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34717
34718         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
34719         * config/m32r/linux.h (LINK_SPEC): Likewise.
34720         * config/mips/linux.h (LINK_SPEC): Likewise.
34721         * config/mips/linux64.h (LINK_SPEC): Likewise.
34722         * config/sparc/linux.h (LINK_SPEC): Likewise.
34723         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
34724         LINK_SPEC): Likewise.
34725         * config/xtensa/linux.h (LINK_SPEC): Likewise.
34726
34727 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34728
34729         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
34730         %{version:-v}.
34731         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
34732
34733 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34734
34735         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
34736         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
34737
34738 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34739
34740         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
34741
34742 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34743
34744         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
34745         supports -Bstatic/-Bdynamic.
34746         * configure: Regenerate.
34747
34748 2011-01-14  Jan Hubicka  <jh@suse.cz>
34749             Jack Howarth  <howarth@bromo.med.uc.edu>
34750
34751         PR target/46037
34752         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
34753         when checking debug_info_level. Test write_symbols instead of
34754         debug_hooks->var_location when setting flag_var_tracking_uninit.
34755
34756 2011-01-14  Richard Guenther  <rguenther@suse.de>
34757
34758         PR tree-optimization/47179
34759         * target.def (ref_may_alias_errno): New target hook.
34760         * targhooks.h (default_ref_may_alias_errno): Declare.
34761         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
34762         (default_ref_may_alias_errno): New function.
34763         * target.h (struct ao_ref_s): Declare.
34764         * tree-ssa-alias.c: Include target.h.
34765         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
34766         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
34767         (targhooks.o): Likewise.
34768         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
34769         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
34770
34771 2011-01-14  Richard Guenther  <rguenther@suse.de>
34772
34773         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
34774
34775 2011-01-14  Richard Guenther  <rguenther@suse.de>
34776
34777         PR tree-optimization/47280
34778         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
34779         return CFG changes.
34780         (tree_ssa_forward_propagate_single_use_vars): Deal with
34781         CFG changes from associate_plusminus.
34782
34783 2011-01-14  Richard Guenther  <rguenther@suse.de>
34784
34785         PR middle-end/47281
34786         Revert
34787         2011-01-11  Richard Guenther  <rguenther@suse.de>
34788
34789         PR tree-optimization/46076
34790         * tree-ssa.c (useless_type_conversion_p): Conversions from
34791         unprototyped to empty argument list function types are useless.
34792
34793 2011-01-14  Richard Guenther  <rguenther@suse.de>
34794
34795         PR tree-optimization/47286
34796         * tree-ssa-structalias.c (new_var_info): Register variables are global.
34797
34798 2011-01-14  Martin Jambor  <mjambor@suse.cz>
34799
34800         PR middle-end/46823
34801         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
34802
34803 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
34804
34805         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
34806         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
34807         * config/xtensa/xtensa.c (xtensa_libcall_value,
34808         xtensa_function_value_regno_p): New functions.
34809         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
34810
34811 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
34812
34813         PR c++/47213
34814         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
34815         PE specific hook.
34816         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
34817         New function prototype.
34818         * config/i386/winnt.c (i386_pe_assemble_visibility):
34819         Warn only if attribute was specified by user.
34820
34821 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
34822
34823         PR target/47251
34824         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
34825         floating point.
34826         (floatunsdidf2_fcfidu): Ditto.
34827
34828 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34829
34830         * config/s390/s390.c (print_operand_address): Replace 'error' with
34831         'output_operand_lossage'.
34832         (print_operand): Likewise.
34833
34834 2011-01-13  Jeff Law  <law@redhat.com>
34835
34836         PR rtl-optimization/39077
34837         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
34838         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
34839         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
34840         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
34841         * gcse.c (prune_insertions_deletions): New function.
34842         (compute_pre_data): Use it.
34843
34844 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
34845
34846         PR debug/PR46973
34847         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
34848         static function.
34849         (prune_unused_types_mark): Use it.
34850
34851 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
34852
34853         PR rtl-optimization/45352
34854         * sel-sched.c: Update copyright years.
34855         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
34856         in the advancing loop when we have issued issue_rate insns.
34857
34858 2011-01-12  Richard Henderson  <rth@redhat.com>
34859
34860         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
34861         (TARGET_MD_ASM_CLOBBERS): New.
34862
34863         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
34864         (TARGET_DELEGITIMIZE_ADDRESS): New.
34865
34866         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
34867         (clzsi2, *bsch): New patterns.
34868
34869         * config/mn10300/mn10300.md (INT): New mode iterator.
34870         (*mov<INT>_clr): New pattern, and peep2 to generate it.
34871
34872         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
34873         flag_split_wide_types.
34874
34875         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
34876         (mn10300_trampoline_init): Rewrite without a template, an immediate
34877         load and a direct branch.
34878         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
34879
34880 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
34881
34882         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
34883         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
34884         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
34885         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
34886
34887 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
34888
34889         PR debug/47209
34890         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
34891         of type.
34892
34893 2011-01-12  Jan Hubicka  <jh@suse.cz>
34894
34895         PR driver/47244
34896         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
34897         (PLUGIN_COND_CLOSE): New macro.
34898         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
34899
34900 2011-01-12  Richard Guenther  <rguenther@suse.de>
34901
34902         PR lto/47259
34903         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
34904         register variables in a MEM_REF.
34905
34906 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
34907
34908         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
34909         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
34910         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
34911         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
34912         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
34913         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
34914         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
34915         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
34916         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
34917         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
34918         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
34919         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
34920         * config/gnu-user.h: New.  Copied from linux.h.
34921         (LINUX_TARGET_STARTFILE_SPEC): Rename to
34922         GNU_USER_TARGET_STARTFILE_SPEC.
34923         (LINUX_TARGET_ENDFILE_SPEC): Rename to
34924         GNU_USER_TARGET_ENDFILE_SPEC.
34925         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
34926         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
34927         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
34928         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
34929         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
34930         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
34931         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
34932         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
34933         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
34934         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
34935         * config/arm/linux-eabi.h (CC1_SPEC): Use
34936         GNU_USER_TARGET_CC1_SPEC.
34937         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
34938         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
34939         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
34940         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
34941         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
34942         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
34943         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
34944         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
34945
34946 2011-01-12  Richard Guenther  <rguenther@suse.de>
34947
34948         PR other/46946
34949         * doc/invoke.texi (ffast-math): Document it is turned on
34950         with -Ofast.
34951
34952 2011-01-12  Jan Hubicka  <jh@suse.cz>
34953
34954         PR tree-optimization/47233
34955         * opts.c (common_handle_option): Disable ipa-reference with profile
34956         feedback.
34957
34958 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
34959
34960         * c-parser.c (c_parser_objc_at_property_declaration): Improved
34961         error message.
34962
34963 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
34964
34965         * c-parser.c (c_lex_one_token): Updated and reindented some
34966         comments.  No changes in code.
34967
34968 2011-01-11  Ian Lance Taylor  <iant@google.com>
34969
34970         * godump.c (go_output_var): Don't output the variable if there is
34971         already a type with the same name.
34972
34973 2011-01-11  Ian Lance Taylor  <iant@google.com>
34974
34975         * godump.c (go_format_type): Don't generate float80.
34976
34977 2011-01-11  Richard Henderson  <rth@redhat.com>
34978
34979         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
34980         declaration.  Rewrite for both speed and size.
34981         (mn10300_address_cost_1): Remove.
34982         (mn10300_register_move_cost): New.
34983         (mn10300_memory_move_cost): New.
34984         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
34985         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
34986         extensions, shifts, BSWAP, CLZ.
34987         (mn10300_wide_const_load_uses_clr): Remove.
34988         (TARGET_REGISTER_MOVE_COST): New.
34989         (TARGET_MEMORY_MOVE_COST): New.
34990         * config/mn10300/mn10300-protos.h: Update.
34991         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
34992
34993         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
34994         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
34995         * config/mn10300/mn10300-protos.h: Update.
34996         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
34997         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
34998         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
34999         (*test_int_bitfield, *test_byte_bitfield): Remove.
35000         (*bit_test, *subreg_bit_test): Remove.
35001         * config/mn10300/predicates.md (const_8bit_operand): Remove.
35002
35003         * config/mn10300/constraints.md ("c"): Rename from "A".
35004         ("A", "D"): New constraint letters.
35005         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
35006         (fmssf4, fnmasf4, fnmssf4): Likewise.
35007
35008         * config/mn10300/mn10300.md (isa): New attribute.
35009         (enabled): New attribute.
35010
35011         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
35012         (abssf2, negsf2): Define only for hardware fp.
35013         (sqrtsf2): Reformat.
35014         (addsf3, subsf3, mulsf3): Merge expander and insn.
35015
35016         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
35017         (DEBUGGER_AUTO_OFFSET): Remove.
35018         (DEBUGGER_ARG_OFFSET): Remove.
35019
35020         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
35021         Emit register stores with the same offsets as the hardware.
35022         (mn10300_store_multiple_operation): Don't check that the register
35023         save offsets are monotonic.
35024         * config/mn10300/mn10300-protos.h: Update.
35025
35026         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
35027
35028         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
35029         in terms of the value on the stack, not the MDR register.
35030
35031 2011-01-11  Jan Hubicka  <jh@suse.cz>
35032
35033         PR lto/45721
35034         PR lto/45375
35035         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
35036         (symbol_alias_set_destroy, symbol_alias_set_contains,
35037         propagate_aliases_backward): Declare.
35038         * lto-streamer-out.c (struct sets): New sturcture.
35039         (trivally_defined_alias): New function.
35040         (output_alias_pair_p): Rewrite.
35041         (output_unreferenced_globals): Fix output of alias pairs.
35042         (produce_symtab): Likewise.
35043         * ipa.c (function_and_variable_visibility): Set weak alias destination
35044         as needed in lto.
35045         * varasm.c (symbol_alias_set_t): Remove.
35046         (symbol_alias_set_destroy): Export.
35047         (propagate_aliases_forward, propagate_aliases_backward): New functions
35048         based on ...
35049         (compute_visible_aliases): ... this one; remove.
35050         (trivially_visible_alias): New
35051         (trivially_defined_alias): New.
35052         (remove_unreachable_alias_pairs): Rewrite.
35053         (finish_aliases_1): Reorganize code checking if alias is defined.
35054         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
35055         in LTO mode.
35056
35057 2011-01-11  Richard Guenther  <rguenther@suse.de>
35058
35059         PR tree-optimization/46076
35060         * tree-ssa.c (useless_type_conversion_p): Conversions from
35061         unprototyped to empty argument list function types are useless.
35062
35063 2011-01-11  Richard Guenther  <rguenther@suse.de>
35064
35065         PR middle-end/45235
35066         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
35067         volatile MEMs as MEM_READONLY_P.
35068
35069 2011-01-11  Richard Guenther  <rguenther@suse.de>
35070
35071         PR tree-optimization/47239
35072         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
35073
35074 2011-01-11  Jeff Law  <law@redhat.com>
35075
35076         PR tree-optimization/47086
35077         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
35078         IVs from statements that might throw.
35079
35080 2011-01-10  Jan Hubicka  <jh@suse.cz>
35081
35082         PR lto/45375
35083         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
35084
35085 2011-01-10  Jan Hubicka  <jh@suse.cz>
35086
35087         PR lto/45375
35088         * profile.c (read_profile_edge_counts): Ignore profile inconistency
35089         when correcting profile.
35090
35091 2011-01-10  Jan Hubicka  <jh@suse.cz>
35092
35093         PR lto/46083
35094         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
35095         DECL_FINI_PRIORITY.
35096         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
35097         Restore DECL_FINI_PRIORITY.
35098
35099 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35100
35101         * doc/gimple.texi: Fix quoting of multi-word return values in
35102         @deftypefn statements.  Ensure presence of return value.  Wrap
35103         overlong @deftypefn lines.
35104         (is_gimple_operand, is_gimple_min_invariant_address): Remove
35105         descriptions of removed functions.
35106         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
35107         of multi-word return value in @deftypefn statement.
35108
35109 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35110
35111         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
35112         (Conditional Expressions, Logical Operators)
35113         (Statement and operand traversals): Do not indent smallexample
35114         code.  Fix duplicate function argument in example.
35115
35116 2011-01-10  Jeff Law  <law@redhat.com>
35117
35118         PR tree-optimization/47141
35119         * ipa-split.c (split_function): Handle case where we are
35120         returning a value and the return block has a virtual operand phi.
35121
35122 2011-01-10  Jan Hubicka  <jh@suse.cz>
35123
35124         PR tree-optimization/47234
35125         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
35126         (pass_feedback_split_functions): Declare.
35127         * passes.c (init_optimization_passes): Add ipa-split as subpass of
35128         tree-profile.
35129         * ipa-split.c (gate_split_functions): Update comments; disable
35130         split-functions for profile_arc_flag and branch_probabilities.
35131         (gate_feedback_split_functions): New function.
35132         (execute_feedback_split_functions): New function.
35133         (pass_feedback_split_functions): New global var.
35134
35135 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
35136
35137         PR lto/46760
35138         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
35139         calling gimple_call_set_cannot_inline.
35140
35141 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
35142
35143         * config/darwin-sections.def: Remove unused section.
35144
35145 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
35146
35147         PR c++/47218
35148         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
35149
35150 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
35151
35152         PR objc/47232
35153         * c-parser.c (c_parser_declaration_or_fndef): Improved
35154         error message.
35155
35156 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
35157
35158         * config/i386/winnt.c (i386_pe_start_function): Make sure
35159         to switch back to function's section.
35160
35161 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
35162
35163         PR gcc/46902
35164         PR testsuite/46912
35165         * plugin.c: Move include of dlfcn.h from here...
35166         * system.h: ... to here.
35167
35168 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35169
35170         * doc/cpp.texi (C++ Named Operators): Fix markup for header
35171         file name.
35172         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
35173         two extra empty pages in PDF output.
35174
35175 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
35176
35177         PR objc/47078
35178         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
35179         for error recovery purposes behave as if it was not specified so
35180         that the default type is usd.
35181
35182 2011-01-07  Jan Hubicka  <jh@suse.cz>
35183
35184         PR tree-optmization/46469
35185         * ipa.c (function_and_variable_visibility): Clear needed flags on
35186         nodes with external decls; handle weakrefs merging correctly.
35187
35188 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
35189
35190         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
35191         not false.
35192
35193 2011-01-07  Jan Hubicka  <jh@suse.cz>
35194
35195         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
35196         and no longer claim that gold is required for linker plugin.
35197         * configure: Regenerate.
35198         * gcc.c (PLUGIN_COND): New macro.
35199         (LINK_COMMAND_SPEC): Use it.
35200         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
35201         * config.in (HAVE_LTO_PLUGIN): New.
35202         * configure.ac (--with-lto-plugin): New parameter; autodetect
35203         HAVE_LTO_PLUGIN.
35204
35205 2011-01-07  Jan Hubicka  <jh@suse.cz>
35206
35207         PR tree-optimization/46367
35208         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
35209         when we can update original.
35210         (cgraph_mark_inline_edge): Sanity check.
35211         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
35212
35213 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35214
35215         * config/spu/spu.h (ASM_COMMENT_START): Define.
35216
35217 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
35218
35219         PR driver/42445
35220         * gcc.c (%>S): New.
35221         (SWITCH_KEEP_FOR_GCC): Likewise.
35222         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
35223         (do_spec_1): Handle "%>".
35224
35225         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
35226
35227 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
35228
35229         PR target/47201
35230         * config/i386/i386.c (ix86_delegitimize_address): If
35231         simplify_gen_subreg fails, return orig_x.
35232
35233         PR bootstrap/47187
35234         * value-prof.c (gimple_stringop_fixed_value): Handle
35235         lhs of the call properly.
35236
35237 2011-01-07  Jan Hubicka  <jh@suse.cz>
35238
35239         PR lto/45375
35240         * lto-opt.c (lto_reissue_options): Set flag_shlib.
35241
35242 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
35243
35244         * target.def (function_switched_text_sections): New hook.
35245         * doc/tm.texi: Regenerated.
35246         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
35247         * final.c (default_function_switched_text_sections): New.
35248         (final_scan_insn): Call function_switched_text_sections when a
35249         mid-function section change occurs.
35250         * output.h (default_function_switched_text_sections): Declare.
35251         * config/darwin-protos.h (darwin_function_switched_text_sections):
35252         Likewise.
35253         * config/darwin.c (darwin_function_switched_text_sections): New.
35254         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
35255
35256 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
35257
35258         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
35259         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
35260         the secondary code fragment when outputting for DWARF == 2.
35261
35262 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
35263
35264         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
35265         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
35266         Remove.
35267         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
35268         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
35269
35270 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
35271
35272         PR debug/46704
35273         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
35274         when it is not empty.
35275
35276 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
35277
35278         Bobcat Enablement
35279         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
35280         (case ${target}): Add btver1.
35281         * config/i386/driver-i386.c (host_detect_local_cpu): Let
35282         -march=native recognize btver1 processors.
35283         * config/i386/i386-c.c (ix86_target_macros_internal): Add
35284         btver1 def_and_undef
35285         * config/i386/i386.c (struct processor_costs btver1_cost): New
35286         btver1 cost table.
35287         (m_BTVER1): New definition.
35288         (m_AMD_MULTIPLE): Includes m_BTVER1.
35289         (initial_ix86_tune_features): Add btver1 tune.
35290         (processor_target_table): Add btver1 entry.
35291         (static const char *const cpu_names): Add btver1 entry.
35292         (software_prefetching_beneficial_p): Add btver1.
35293         (ix86_option_override_internal): Add btver1 instruction sets.
35294         (ix86_issue_rate): Add btver1.
35295         (ix86_adjust_cost): Add btver1.
35296         * config/i386/i386.h (TARGET_BTVER1): New definition.
35297         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
35298         (enum processor_type): Add PROCESSOR_BTVER1.
35299         * config/i386/i386.md (define_attr "cpu"): Add btver1.
35300
35301 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35302
35303         PR target/43309
35304         * config/i386/i386.c (legitimize_tls_address)
35305         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
35306         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
35307         (tls_initial_exec_64_sun): New pattern.
35308
35309 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
35310
35311         * doc/invoke.texi (Overall Options): Improve wording and markup
35312         of the description of -wrapper.
35313
35314 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
35315
35316         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
35317         rdynamic, threads): New Driver options.
35318
35319 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35320
35321         PR target/38118
35322         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
35323         if coming from .tdata.
35324         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
35325
35326 2011-01-06  Jan Hubicka  <jh@suse.cz>
35327
35328         PR lto/47188
35329         * collect2.c (main): Do not enable LTOmode when plugin is active.
35330
35331 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35332
35333         PR other/45915
35334         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
35335         --version output if supported.
35336         * configure: Regenerate.
35337
35338 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
35339
35340         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
35341         Driver options.
35342
35343 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
35344
35345         PR c/47150
35346         * c-convert.c (convert): When converting a complex expression
35347         other than COMPLEX_EXPR to a different complex type, ensure
35348         c_save_expr is called instead of save_expr, unless in_late_binary_op.
35349         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
35350         when converting COMPLEX_TYPE.
35351
35352 2011-01-06  Ira Rosen  <irar@il.ibm.com>
35353
35354         PR tree-optimization/47139
35355         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
35356         only the last reduction value is used outside the loop.  Update
35357         documentation.
35358
35359 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
35360
35361         * config/rtems.opt: New.
35362         * config.gcc (*-*-rtems*): Use rtems.opt.
35363
35364 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
35365
35366         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
35367         processors do not support 3DNow instructions.
35368
35369 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35370
35371         * config/spu/spu.c (spu_option_override): Set parameter
35372         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
35373
35374 2011-01-05  Jan Hubicka  <jh@suse.cz>
35375
35376         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
35377         at the command line.
35378
35379 2011-01-05  Martin Jambor  <mjambor@suse.cz>
35380
35381         PR lto/47162
35382         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
35383         deltas on streamed outgoing edges.
35384         (output_node_opt_summary): Output info for outgoing edges only when
35385         the node is in new parameter set.
35386         (output_cgraph_opt_summary): New parameter set, passed to the two
35387         aforementioned functions.  Update its forward declaration and its
35388         callee too.
35389
35390 2011-01-05  Tom Tromey  <tromey@redhat.com>
35391
35392         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
35393         operator to c_finish_omp_atomic.
35394         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
35395         (build_unary_op): Update.
35396         (build_modify_expr): Update.
35397         (build_asm_expr): Update.
35398
35399 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35400
35401         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
35402         newly inserted insns.
35403         (pad_bb): Likewise.
35404         (spu_emit_branch_hint): Likewise.
35405         (insert_hbrp_for_ilb_runout): Likewise.
35406         (spu_machine_dependent_reorg): Call df_finish_pass after
35407         schedule_insns returns.
35408
35409 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35410
35411         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
35412
35413 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
35414
35415         PR tree-optimization/47005
35416         * tree-sra.c (struct access): Add 'non_addressable' bit.
35417         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
35418         (decide_one_param_reduction): Return 0 if the parameter is passed by
35419         reference and one of the accesses in the group is non_addressable.
35420
35421 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
35422
35423         PR tree-optimization/47056
35424         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
35425         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
35426         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
35427
35428 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
35429
35430         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
35431         initializer.  Skip view conversions from aggregate types.
35432
35433 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
35434
35435         PR bootstrap/47055
35436         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
35437
35438 2011-01-04  Philipp Thomas  <pth@suse.de>
35439
35440         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
35441         obvious typo.
35442
35443 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35444
35445         * function.c (thread_prologue_and_epilogue_insns): Do not crash
35446         on empty epilogue sequences.
35447
35448 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
35449
35450         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
35451         non-static): New Driver options.
35452
35453 2011-01-04  Jie Zhang  <jie@codesourcery.com>
35454
35455         PR driver/47137
35456         * gcc.c (default_compilers[]): Set combinable field to 0
35457         for all assembly languages.
35458
35459 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
35460
35461         * config/mips/loongson3a.md: New file.
35462         * config/mips/mips.md: Include loongson3a.md.
35463         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
35464         TUNE_LOONGSON_3A.
35465
35466 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
35467
35468         PR middle-end/47017
35469         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
35470         instead of convert_memory_address_addr_space on the base expression.
35471
35472 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35473
35474         * config/spu/spu.c (spu_option_override): Update error text
35475         for bad -march= / -mtune= values.
35476
35477 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35478
35479         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
35480         if branch-hint optimization will be performed.
35481
35482 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
35483
35484         PR tree-optimization/47148
35485         * ipa-split.c (split_function): Convert arguments to
35486         DECL_ARG_TYPE if possible.
35487
35488         PR tree-optimization/47155
35489         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
35490         when computing uns.
35491
35492         PR rtl-optimization/47157
35493         * combine.c (try_combine): If undobuf.other_insn becomes
35494         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
35495         and set *new_direct_jump_p too.
35496
35497 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
35498
35499         PR tree-optimization/47021
35500         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
35501
35502 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
35503
35504         * gcc.c (process_command): Update copyright notice dates.
35505         * gcov.c (print_version): Likewise.
35506         * gcov-dump.c (print_version): Likewise.
35507         * mips-tfile.c (main): Likewise.
35508         * mips-tdump.c (main): Likewise.
35509
35510 2011-01-03  Martin Jambor  <mjambor@suse.cz>
35511
35512         PR tree-optimization/46801
35513         * tree-sra.c (type_internals_preclude_sra_p): Check whether
35514         aggregate fields start at byte boundary instead of the bit-field flag.
35515
35516 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
35517
35518         PR driver/47137
35519         * gcc.c (main): Revert revision 168407.
35520
35521 2011-01-03  Martin Jambor  <mjambor@suse.cz>
35522
35523         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
35524
35525 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35526
35527         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
35528         vector optab to expand vector/scalar shift, update gimple to vector.
35529
35530 2011-01-03  Martin Jambor  <mjambor@suse.cz>
35531
35532         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
35533         a thunk.
35534
35535 2011-01-03  Martin Jambor  <mjambor@suse.cz>
35536
35537         PR tree-optimization/46984
35538         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
35539         HOST_WIDE_INT.
35540         (cgraph_create_indirect_edge): Fixed line length.
35541         (cgraph_indirect_call_info): Declare.
35542         (cgraph_make_edge_direct) Update declaration.
35543         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
35544         (cgraph_create_indirect_edge): Use it.
35545         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
35546         callees.
35547         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
35548         the new thunk_delta representation.
35549         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
35550         HOST_WIDE_INT.
35551         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
35552         (ipa_read_indirect_edge_info): Likewise.
35553         * lto-cgraph.c (output_edge_opt_summary): New function.
35554         (output_node_opt_summary): Call it on all outgoing edges.
35555         (input_edge_opt_summary): New function.
35556         (input_node_opt_summary): Call it on all outgoing edges.
35557
35558 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
35559
35560         PR driver/47137
35561         * gcc.c (main): Don't check have_o when settting combine_inputs.
35562
35563 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
35564
35565         * regrename.c: Add general comment describing the pass.
35566         (struct du_head): Remove 'length' field.
35567         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
35568         (regrename_optimize): Do not sort chains.  Rework comments, add others.
35569         Force renaming to the preferred class (if any) in the first pass and do
35570         not consider registers that belong to it in the second pass.
35571         (create_new_chain): Do not set 'length' field.
35572         (scan_rtx_reg): Likewise.
35573
35574 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
35575
35576         PR tree-optimization/47140
35577         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
35578         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
35579         to bit_value_binop.
35580
35581         PR rtl-optimization/47028
35582         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
35583         parm_birth_insn instead of at the beginning of first bb.
35584
35585 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
35586
35587         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
35588         Remove the word "see" before "@pxref".
35589         * doc/rtl.texi: Remove the word "see" before "@pxref".
35590
35591 2011-01-01  Jan Hubicka  <jh@suse.cz>
35592
35593         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
35594         memory.
35595
35596 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
35597
35598         PR target/38662
35599         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
35600
35601 \f
35602 Copyright (C) 2011 Free Software Foundation, Inc.
35603
35604 Copying and distribution of this file, with or without modification,
35605 are permitted in any medium without royalty provided the copyright
35606 notice and this notice are preserved.