OSDN Git Service

* tree-vectorizer.h (vectorizable_condition): Add argument.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-11-06  Ira Rosen  <ira.rosen@linaro.org>
2
3         * tree-vectorizer.h (vectorizable_condition): Add argument.
4         * tree-vect-loop.c (vectorizable_reduction): Fail for condition
5         in SLP.  Update calls to vectorizable_condition.
6         * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info to
7         the arguments.  Pass it to vect_is_simple_use_1.
8         (vectorizable_condition): Add slp_node to the arguments.  Support
9         vectorization of basic blocks.  Fail for reduction in SLP.  Update
10         calls to vect_is_simple_cond and vect_is_simple_use.  Support SLP:
11         call vect_get_slp_defs to get vector operands.
12         (vect_analyze_stmt): Update calls to vectorizable_condition.
13         (vect_transform_stmt): Likewise.
14         * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
15         (vect_get_and_check_slp_defs): Handle COND_EXPR.  Allow pattern
16         def stmts.
17         (vect_build_slp_tree): Handle COND_EXPR.
18         (vect_analyze_slp_instance): Push pattern statements to root node.
19         (vect_get_constant_vectors): Fix comments.  Handle COND_EXPR.
20
21 2011-11-05  David S. Miller  <davem@davemloft.net>
22
23         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
24         (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
25         (*zero_extend_v8qi_<P:mode>_insn,
26         *zero_extend_v4hi_<P:mode>_insn): New insns.
27         * config/sparc/sparc.c (vector_init_move_words,
28         vector_init_prepare_elts, sparc_expand_vector_init_vis2,
29         sparc_expand_vector_init_vis1): New functions.
30         (vector_init_bshuffle): Rewrite to handle more cases and make use
31         of locs[] array prepared by vector_init_prepare_elts.
32         (vector_init_fpmerge, vector_init_faligndata): Delete.
33         (sparc_expand_vector_init): Rewrite using new infrastructure.
34
35 2011-11-05  Joern Rennecke  <joern.rennecke@embecosm.com>
36
37         * config.gcc (epiphany-*-*): New architecture.
38         (epiphany-*-elf): New configuration.
39         * config/epiphany, common/config/epiphany : New directories.
40         * doc/extend.texi (disinterrupt attribute): Add Epiphany.
41         (interrupt attribute): Add Epiphany.
42         (long_call, short_call attribute): Add Epiphany.
43         * doc/invoke.texi (Options): Add Epiphany options.
44         * doc/md.texi (Machine Constraints): Add Epiphany constraints.
45         * doc/install.texi (Options specification):
46         Add --with-stack-offset=@var{num} description.
47         (host/target specific issues): Add epiphany-*-elf.
48         * doc/contrib.texi (Contributors): Mention Epiphany port.
49
50 2011-11-05  Jakub Jelinek  <jakub@redhat.com>
51
52         PR tree-optimization/50693
53         * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
54         non-forced user labels.
55         (gimple_merge_blocks): Turn non-forced user labels into
56         debug bind stmt with the label as first operand and reset value.
57         (gimple_duplicate_bb): Don't duplicate label debug stmts.
58         * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
59         * final.c (final_scan_insn): Likewise.
60         (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
61         * var-tracking.c (debug_label_num): New variable.
62         (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
63         instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
64         * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
65         NOTE_INSN_DELETED_DEBUG_LABEL.
66         (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
67         * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
68         * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
69         * gengtype.c (adjust_field_rtx_def): Likewise.
70         * config/i386/i386.c (ix86_output_function_epilogue): For MachO
71         clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
72         if their are at the end of function and nop hasn't been emitted.
73         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
74
75 2011-11-05  Georg-Johann Lay  <avr@gjlay.de>
76
77         PR rtl-optimization/50448
78         * cprop.c (try_replace_reg): Also try to replace uses of FROM that
79         appear in SET_DEST.
80
81 2011-11-05  Peter Dufault  <dufault@hda.com>,
82             Sebastian Huber  <sebastian.huber@embedded-brains.de>
83
84         * config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
85         Extend rs6000_spe handling.
86
87 2011-11-05  Ralf Corsépius  <ralf.corsepius@rtems.org>
88
89         * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
90         Remove -mcpu=601 multilib.
91         Remove -Dmpc8260 multilib.
92         * config/rs6000/rtems.h: Allow --float-gprs=... to override grps
93         on E500 targets.
94
95 2011-11-05  Quentin Neill  <quentin.neill@amd.com>
96
97         Piledriver f16cintrin.h fix.
98         * config/i386/f16cintrin.h: Contents moved from immintrin.h.
99         * config/config.gcc: Add f16cintrin.h.
100
101 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
102
103         PR c++/50608
104         * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
105         to fold_offsetof.
106         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
107
108 2011-11-04  Alan Modra  <amodra@gmail.com>
109
110         * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
111         * print-rtl.c (print_rtx): Don't segfault on negative regno.
112
113 2011-11-04  David S. Miller  <davem@davemloft.net>
114
115         PR target/49965
116         * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
117         fact that sparc_emit_float_lib_cmp modifies the comparison in
118         operands[1].
119
120 2011-11-04  Ralf Corsépius  <ralf.corsepius@rtems.org>
121
122         * config/lm32/t-rtems: New.
123         * config.gcc (lm32-*-rtems*): Add t-rtems.
124
125 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
126
127         PR target/50979
128         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
129
130 2011-11-04  Jiangning Liu  <jiangning.liu@arm.com>
131
132         PR rtl-optimization/38644
133         * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
134         for epilogue having stack adjustment.
135
136 2011-11-04  Georg-Johann Lay  <avr@gjlay.de>
137
138         PR target/50931
139         * config/avr/avr-modes.def: New file defining PSImode.
140         * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
141         __UINT24_MAX__): New built-in defines.
142         * config/avr/avr.md (adjust_len): Add tstpsi, mov24,  reload_in24,
143         ashlpsi, ashrpsi, lshrpsi.
144         (QISI, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
145         (MOVMODE): New mode iterator.
146         (movpsi): New expander.
147         (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
148         (*reload_inpsi, *movpsi): New insns.
149         (*reload_inpsi): New RTL peephole.
150         (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
151         *addpsi3_sign_extend.hi): New insns.
152         (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
153         *subpsi3_sign_extend.hi): New insns.
154         (divmodpsi4, udivmodpsi4): New define insn-and-split.
155         (*divmodpsi4_call, *udivmodpsi4_call): New insns.
156         (andpsi3, iorpsi3, xorpsi3): New insns.
157         (*rotlpsi2.1, *rotlpsi2.23): New insns.
158         (*rotw<mode>): Insn condition only allow even-sized modes.
159         (*rotb<mode>): Insn condition allows odd-sized modes.
160         (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
161         (negpsi2, one_cmplpsi2): New insns.
162         (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
163         (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
164         insn-and-splits.
165         (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
166         (cbranchpsi4): New expander.
167         * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
168         * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
169         avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
170         avr_out_reload_inpsi): New prototypes.
171
172         * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
173         (avr_scalar_mode_supported_p): ...this new static function.
174         (avr_asm_len): Always return "".
175         (avr_out_load_psi, avr_out_store_psi): New static functions.
176         (avr_out_movpsi, avr_out_reload_inpsi): New functions.
177         (avr_out_tstpsi): New function.
178         (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
179         (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
180         (avr_simplify_comparison_p): Ditto.
181         (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
182         ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
183         ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
184         (avr_rtx_costs_1): Report PSI costs.
185         (avr_libcall_value): Handle odd-sized parameters.
186         (avr_init_builtin_int24): New static function to define built-in
187         24-bit types __int24 and __uint24.
188         (avr_init_builtins): Use it.
189
190 2011-11-04  Thomas Doerfler <thomas.doerfler@embedded-brains.de>
191
192         PR target/50989
193         * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
194         support for VFP floating point model.
195
196 2011-11-04  Tristan Gingold  <gingold@adacore.com>
197
198         * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
199
200 2011-11-04  Ira Rosen  <ira.rosen@linaro.org>
201
202         Unrevert:
203         2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
204
205         PR tree-optimization/50730
206         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
207         analysis if encountered unsupported data-ref.
208
209 2011-11-04  Jakub Jelinek  <jakub@redhat.com>
210
211         * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
212         function.
213         * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
214         New prototype.
215         * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
216         For floatunsv8siv8sf2 require TARGET_AVX2.
217
218         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
219         XORP argument.  Subtract 0x1p31 instead of 0x1p32.  Use normal
220         signalling comparison instead of non-signalling.  Store into
221         *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
222         subtracted and 0 otherwise.
223         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
224         Adjust prototype.
225         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
226         already for TARGET_SSE2.  Xor in vector initialized by
227         ix86_expand_adjust_ufix_to_sfix_si at the end.
228         (vec_pack_ufix_trunc_<mode>): Likewise.
229
230         * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
231         not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
232         WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
233         vectorizable_type_demotion and vectorizable_type_promotion did.
234         Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
235         is {,un}signed {char,short}.
236         (vect_create_vectorized_demotion_stmts): Fix comment typo.  For
237         recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
238         Push vec_dest back to the vec_dsts vector at the end.
239         (vect_create_vectorized_promotion_stmts): Don't recurse, do just
240         one step.  Removed multi_step_cvt, vec_dsts, slp_node and
241         prev_stmt_info arguments, add vec_dest argument.  Push always
242         into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
243         with vec_tmp at the end after freeing old *vec_oprnd0 vector.
244         (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
245         (vect_analyze_stmt): Don't call vectorizable_type_demotion and
246         vectorizable_type_promotion.  Call vectorizable_conversion even
247         for SLP bb vectorization.
248         (vect_transform_stmt): Call vectorizable_conversion instead of
249         vectorizable_type_demotion and vectorizable_type_promotion.
250         (supportable_widening_operation): Clear *multi_step_cvt first,
251         simplify c1/c2 computation, free *interm_types vector on failure.
252         (supportable_narrowing_operation): Clear *multi_step_cvt first,
253         free *interm_types vector on failure, handle multi-step
254         FIX_TRUNC_EXPR.
255
256 2011-11-04  Tristan Gingold  <gingold@adacore.com>
257
258         * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
259         argument.  Conditionally generate crash debug info.  Adjust
260         for alpha_funcs_tree removal.
261         (machine_function): Add links field.
262         (alpha_start_function): Conditionally generate crash debug info.
263         (alpha_end_function): Adjust call to alpha_write_linkage.
264         (alpha_funcs): Remove.
265         (links_kind): Remove.
266         (alpha_links): Remove num, target and lkind field.  Add func field.
267         (alpha_links_tree): Remove.
268         (alpha_funcs_tree): Remove.
269         (alpha_need_linkage): Remove.
270         (alpha_use_linkage): Change prototype.  Adjust.
271         (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
272         Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
273         * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
274         (alpha_need_linkage): Remove.
275         * config/alpha/alpha.md: Update calls to alpha_use_linkage.
276         Adjust calls to alpha_need_linkage.
277
278 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
279
280         * sched-vis.c (print_value): Handle STRICT_LOW_PART.
281
282 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
283
284         * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
285         rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
286         btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
287
288 2011-11-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
289
290         PR target/50978
291         * config/arm/t-bpabi: New file.
292         * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
293         arm*-*-linux-*eabi.
294         (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
295         arm*-*-uclinux*eabi.
296         (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
297         for arm*-*-eabi*.
298
299 2011-11-03  Michael Matz  <matz@suse.de>
300
301         PR bootstrap/50857
302         * configure.ac: Check for -fno-exceptions -fno-rtti.
303         * configure: Regenerate.
304         * Makefile.in (NOEXCEPTION_FLAGS): New flag.
305         (ALL_CXXFLAGS): Use it.
306
307 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
308
309         * config/i386/i386.md: Use {} for multi-line preparation statements.
310
311 2011-11-03  Eric Botcazou  <ebotcazou@adacore.com>
312
313         * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
314         (movtf_insn_sp32): ...this.
315         (movtf_insn_sp64_no_fpu): Consolidate into...
316         (movtf_insn_sp64): ...this.
317         (movtf_insn_sp64_hq): Do not test TARGET_FPU.
318         * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
319
320 2011-11-03  Tristan Gingold  <gingold@adacore.com>
321
322         * config/vms/vms.c (vms_patch_builtins): Fix typo.
323
324 2011-11-03  Richard Guenther  <rguenther@suse.de>
325
326         PR lto/44965
327         * lto-opts.c: Re-implement.
328         * lto-streamer.h (lto_register_user_option): Remove.
329         (lto_read_file_options): Likewise.
330         (lto_reissue_options): Likewise.
331         (lto_clear_user_options): Likewise.
332         (lto_clear_file_options): Likewise.
333         * opts-global.c (post_handling_callback): Remove.
334         (set_default_handlers): Do not set post_handling_callback.
335         (decode_options): Remove LTO specific code.
336         * lto-wrapper.c (merge_and_complain): New function.
337         (run_gcc): Read all input file options and
338         prepend a merged set before the linker driver options.
339         * gcc.c (driver_post_handling_callback): Remove.
340         (set_option_handlers): Do not set post_handling_callback.
341         * opts-common.c (handle_option): Do not call post_handling_callback.
342         * opts.h (struct cl_option_handlers): Remove post_handling_callback.
343
344 2011-11-03  Richard Guenther  <rguenther@suse.de>
345
346         * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
347
348 2011-11-03  Martin Jambor  <mjambor@suse.cz>
349
350         * ipa-prop.c (type_change_info): New fields offset, object,
351         known_current_type and multiple_types_encountered.
352         (extr_type_from_vtbl_ptr_store): New function.
353         (check_stmt_for_type_change): Use it, set multiple_types_encountered if
354         the result is different from the previous one.
355         (detect_type_change): Renamed to detect_type_change_1. New parameter
356         comp_type.  Set up new fields in tci, build known type jump
357         functions if the new type can be identified.
358         (detect_type_change): New function.
359         * tree.h (DECL_CONTEXT): Comment new use.
360
361 2011-11-03  Richard Guenther  <rguenther@suse.de>
362
363         PR lto/48217
364         * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
365         decode an encoded literal '.
366
367 2011-11-03  Tristan Gingold  <gingold@adacore.com>
368
369         * collect2.c (main): Add support of -f (response file) on AIX.
370
371 2011-11-03  Ira Rosen  <ira.rosen@linaro.org>
372
373         PR tree-optimization/50912
374         * tree-vectorizer.h (slp_void_p): New.
375         (struct _slp_tree): Replace left and right with children.  Update
376         documentation.
377         (struct _slp_oprnd_info): New.
378         (vect_get_vec_defs): Declare.
379         (vect_get_slp_defs): Update arguments.
380         * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
381         vect_get_vec_defs instead of vect_get_slp_defs.
382         (vectorizable_reduction): Likewise.
383         * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
384         Update call to vect_get_slp_defs.
385         (vectorizable_conversion): Update call to vect_get_vec_defs.
386         (vectorizable_assignment, vectorizable_shift,
387         vectorizable_operation): Likewise.
388         (vectorizable_type_demotion): Call vect_get_vec_defs instead of
389         vect_get_slp_defs.
390         (vectorizable_type_promotion, vectorizable_store): Likewise.
391         (vect_analyze_stmt): Fix typo.
392         * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
393         (vect_print_slp_tree, vect_mark_slp_stmts,
394         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
395         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
396         vect_schedule_slp_instance): Likewise.
397         (vect_create_new_slp_node): New.
398         (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
399         (vect_get_and_check_slp_defs): Pass information about defs using
400         oprnds_info, allow any number of operands.
401         (vect_build_slp_tree): Likewise.  Update calls to
402         vect_get_and_check_slp_defs.  Fix comments.
403         (vect_analyze_slp_instance): Move node creation to
404         vect_create_new_slp_node.
405         (vect_get_slp_defs): Allow any number of operands.
406
407 2011-11-02  Peter Bergner  <bergner@vnet.ibm.com>
408             Iain Sandoe  <iains@gcc.gnu.org>
409
410         * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
411         (get_ppc476_thunk_name): Use it.
412         (rs6000_code_end): Likewise.
413         (macho_branch_islands): Fix typo.
414
415 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
416             Jason Merrill  <jason@redhat.com>
417
418         PR c++/50810
419         * configure.ac: Add -Wno-narrowing to warning options.
420         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
421
422 2011-11-02  Eric Botcazou  <ebotcazou@adacore.com>
423
424         PR target/50945
425         * config/sparc/sparc.md (movsf_insn): Reindent constraints.
426         (movdf_insn_sp32): Likewise.  Remove redundant G constraint.
427         (movdf_insn_sp64): Likewise.
428         (DFmode splitter): Do not test TARGET_FPU.
429         (movtf_insn_sp32): Reindent constraints.
430         (movtf_insn_sp32_no_fpu): Likewise.
431         (movtf_insn_sp64): Likewise.
432         (movtf_insn_sp64_hq): Likewise.
433         (movtf_insn_sp64_no_fpu): Likewise.
434
435 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
436
437         PR c++/50956
438         * builtins.c (fold_builtin_memchr): Fix cast.
439
440 2011-11-02  Teresa Johnson  <tejohnson@google.com>
441
442         * config/i386/predicates.md (promotable_binary_operator): Add minus
443         to the list of promotable operators.
444
445 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
446
447         * gthr-single.h, gthr.h: Move to ../libgcc.
448         * gthr-aix.h: Move to ../libgcc/config/rs6000.
449         * gthr-dce.h: Move to ../libgcc/config/pa.
450         * gthr-lynx.h: Move to ../libgcc/config.
451         * gthr-mipssde.h: Move to ../libgcc/config/mips.
452         * gthr-posix.h: Move to ../libgcc/config.
453         * gthr-rtems.h: Likewise.
454         * gthr-tpf.h: Move to ../libgcc/config/s390.
455         * gthr-vxworks.h: Move to ../libgcc/config.
456         * gthr-win32.h: Move to ../libgcc/config/i386.
457         * configure.ac (gthread_flags): Remove
458         (gthr-default.h): Don't create.
459         (thread_file): Don't substitute.
460         * configure: Regenerate.
461         * Makefile.in (GCC_THREAD_FILE): Remove.
462         (GTHREAD_FLAGS): Remove.
463         (libgcc.mvars): Remove GTHREAD_FLAGS.
464         * config/t-vxworks (EXTRA_HEADERS): Remove.
465
466 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
467             Paolo Bonzini  <bonzini@gnu.org>
468
469         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
470         * configure: Regenerate.
471         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
472         (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
473         (libgcc_tm.h, cs-libgcc_tm.h): Remove.
474         (clean): Remove libgcc_tm.h
475         * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
476         * config.gcc (libgcc_tm_file): Remove.
477         (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
478         (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
479         (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
480         (avr-*-rtems*): Likewise.
481         (avr-*-*): Likewise.
482         (frv-*-elf): Likewise.
483         (frv-*-*linux*): Likewise.
484         (h8300-*-rtems*): Likewise.
485         (h8300-*-elf*): Likewise.
486         (i[34567]86-*-darwin*): Likewise.
487         (x86_64-*-darwin*): Likewise.
488         (rx-*-elf*): Likewise.
489         (tic6x-*-elf): Likewise.
490         (tic6x-*-uclinux): Likewise.
491         (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
492
493 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
494
495         * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
496         (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
497         (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
498         (INCLUDES_FOR_TARGET): Remove.
499         (LIBGCC2_CFLAGS): Don't export.
500         (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
501         Remove.
502         (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
503         (libgcc.mvars): Likewise.
504         Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
505         LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
506         TARGET_LIBGCC2_CFLAGS.
507         Emit GTHREAD_FLAGS.
508         * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
509         * config/darwin-64.c: Move to ../libgcc/config.
510         * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
511         config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
512         config/udivmodsi4.c: Move to ../libgcc/config.
513         * config/gthr-posix.c: Move to ../libgcc/config/alpha.
514         * config/memcmp.c, config/memcpy.c, config/memmove.c,
515         config/memset.c: Move to ../libgcc/config.
516         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
517         * config/t-freebsd: Remove.
518         * config/t-freebsd-thread: Move to ../libgcc/config.
519         * config/t-libgcc-pic: Move to ../libgcc/config.
520         * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
521         * config/t-linux: Remove.
522         * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
523         Remove.
524         * config/t-openbsd-thread: Move to ../libgcc/config.
525         * config/t-rtems (LIBGCC2_INCLUDES): Remove.
526         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
527         * config/t-svr4: Remove.
528         * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
529         (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
530         * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
531         * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
532         * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
533         * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
534         * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
535         * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
536         config/arm/fp16.c, config/arm/linux-atomic.c,
537         config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
538         * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
539         (TARGET_LIBGCC2_CFLAGS): Remove.
540         * config/arm/t-bpabi, config/arm/t-linux: Remove.
541         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
542         (LIB2FUNCS_STATIC_EXTRA): Remove.
543         * config/arm/t-netbsd: Remove.
544         * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
545         (TARGET_LIBGCC2_CFLAGS): Remove.
546         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
547         * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
548         (TARGET_LIBGCC2_CFLAGS): Remove.
549         * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
550         (LIBGCC, INSTALL_LIBGCC): Remove.
551         * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
552         * config/bfin/t-bfin-linux: Likewise.
553         * config/bfin/t-bfin-uclinux: Likewise.
554         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
555         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
556         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
557         config/c6x/ltf.c: Move to ../libgcc/config/c6x.
558         * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
559         * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
560         * config/cris/arit.c: Move to ../libgcc/config/cris.
561         * config/cris/cris_abi_symbol.c: Remove.
562         * config/cris/cris.h: Remove obsolete comment.
563         * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
564         * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
565         ($(LIB2FUNCS_EXTRA)): Remove.
566         * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
567         (LIBGCC): Remove.
568         * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
569         * config/fr30/t-fr30: Remove.
570         * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
571         config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
572         config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
573         to ../libgcc/config/frv.
574         * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
575         (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
576         (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
577         * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
578         * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
579         config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
580         config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
581         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
582         (LIBGCC, INSTALL_LIBGCC): Remove.
583         * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
584         * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
585         * config/i386/t-cygwin: Remove.
586         * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
587         (LIB2FUNCS_EXCLUDE): Remove.
588         * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
589         (LIBGCC, INSTALL_LIBGCC): Remove.
590         * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
591         * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
592         * config/i386/t-mingw-w32: Likewise.
593         * config/i386/t-mingw-w64: Likewise.
594         * config/i386/t-openbsd: Likewise.
595         * config/i386/t-nto: Remove.
596         * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
597         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
598         (quadlib.c): Remove.
599         * config/ia64/t-ia64: Remove comment.
600         * config/iq2000/lib2extra-funcs.c: Move to
601         ../libgcc/config/iq2000/lib2funcs.c.
602         * config/iq2000/t-iq2000: Remove.
603         * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
604         * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
605         * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
606         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
607         * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
608         (INSTALL_LIBGCC): Remove.
609         * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
610         * config/m68k/t-floatlib: Remove.
611         * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
612         * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
613         Fix typo.
614         (LIBGCC, INSTALL_LIBGCC): Remove.
615         * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
616         * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
617         * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
618         * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
619         (INSTALL_LIBGCC): Remove.
620         * config/mips/t-isa3264: Likewise.
621         * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
622         * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
623         (INSTALL_LIBGCC): Remove.
624         * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
625         * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
626         (INSTALL_LIBGCC): Remove.
627         * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
628         (LIB2FUNCS_STATIC_EXTRA): Remove.
629         * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
630         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
631         * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
632         * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
633         ../libgcc/config/pa.
634         * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
635         * config/pa/quadlib.c: Move to ../libgcc/config/pa.
636         * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
637         * config/pa/t-linux, config/pa/t-linux64: Remove.
638         * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
639         config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
640         * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
641         Remove.
642         * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
643         * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
644         (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
645         * config/rs6000/crtresfpr.asm: Move to
646         ../libgcc/config/rs6000/crtresfpr.S.
647         * config/rs6000/crtresgpr.asm: Move to
648         ../libgcc/config/rs6000/crtresgpr.S.
649         * config/rs6000/crtresxfpr.asm: Move to
650         ../libgcc/config/rs6000/crtresxfpr.S.
651         * config/rs6000/crtresxgpr.asm: Move to
652         ../libgcc/config/rs6000/crtresxgpr.S.
653         * config/rs6000/crtsavfpr.asm: Move to
654         ../libgcc/config/rs6000/crtsavfpr.S.
655         * config/rs6000/crtsavgpr.asm: Move to
656         ../libgcc/config/rs6000/crtsavgpr.S.
657         * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
658         * config/rs6000/darwin-fpsave.asm: Move to
659         ../libgcc/config/rs6000/darwin-fpsave.S.
660         * config/rs6000/darwin-gpsave.asm: Move to
661         ../libgcc/config/rs6000/darwin-gpsave.S.
662         * config/rs6000/darwin-tramp.asm: Move to
663         ../libgcc/config/rs6000/darwin-tramp.S.
664         * config/rs6000/darwin-vecsave.asm: Move to
665         ../libgcc/config/rs6000/darwin-vecsave.S.
666         * config/rs6000/darwin-world.asm: Move to
667         ../libgcc/config/rs6000/darwin-world.S.
668         * config/rs6000/e500crtres32gpr.asm: Move to
669         ../libgcc/config/rs6000/e500crtres32gpr.S.
670         * config/rs6000/e500crtres64gpr.asm: Move to
671         ../libgcc/config/rs6000/e500crtres64gpr.S.
672         * config/rs6000/e500crtres64gprctr.asm: Move to
673         ../libgcc/config/rs6000/e500crtres64gprctr.S.
674         * config/rs6000/e500crtrest32gpr.asm: Move to
675         ../libgcc/config/rs6000/e500crtrest32gpr.S.
676         * config/rs6000/e500crtrest64gpr.asm: Move to
677         ../libgcc/config/rs6000/e500crtrest64gpr.S.
678         * config/rs6000/e500crtresx32gpr.asm: Move to
679         ../libgcc/config/rs6000/e500crtresx32gpr.S.
680         * config/rs6000/e500crtresx64gpr.asm: Move to
681         ../libgcc/config/rs6000/e500crtresx64gpr.S.
682         * config/rs6000/e500crtsav32gpr.asm: Move to
683         ../libgcc/config/rs6000/e500crtsav32gpr.S.
684         * config/rs6000/e500crtsav64gpr.asm: Move to
685         ../libgcc/config/rs6000/e500crtsav64gpr.S.
686         * config/rs6000/e500crtsav64gprctr.asm: Move to
687         ../libgcc/config/rs6000/e500crtsav64gprctr.S.
688         * config/rs6000/e500crtsavg32gpr.asm: Move to
689         ../libgcc/config/rs6000/e500crtsavg32gpr.S.
690         * config/rs6000/e500crtsavg64gpr.asm: Move to
691         ../libgcc/config/rs6000/e500crtsavg64gpr.S.
692         * config/rs6000/e500crtsavg64gprctr.asm: Move to
693         ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
694         * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
695         * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
696         (TARGET_LIBGCC2_CFLAGS): Remove.
697         * config/rs6000/t-aix52: Likewise.
698         * config/rs6000/t-darwin: Remove.
699         * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
700         (LIB2FUNCS_EXTRA): Remove.
701         * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
702         * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
703         * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
704         (INSTALL_LIBGCC): Remove.
705         * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
706         (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
707         (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
708         (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
709         ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
710         ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
711         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
712         (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
713         * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
714         * config/rs6000/t-vxworks: Remove comment.
715         * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
716         * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
717         * config/sh/linux-atomic.asm: Move to
718         ../libgcc/config/sh/linux-atomic.S.
719         * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
720         * config/sh/t-netbsd: Remove.
721         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
722         Remove.
723         * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
724         * config/sparc/t-leon: Likewise.
725         * config/sparc/t-leon3: Likewise.
726         * config/sparc/t-linux64: Likewise.
727         * config/sparc/t-netbsd64: Fix typo.
728         Remove comment.
729         * config/spu/divmodti4.c, config/spu/divv2df3.c,
730         config/spu/float_disf.c, config/spu/float_unsdidf.c,
731         config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
732         config/spu/mfc_multi_tag_release.c,
733         config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
734         config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
735         config/spu/multi3.c: Move to ../libgcc/config/spu.
736         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
737         (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
738         (INSTALL_LIBGCC): Remove.
739         * config/stormy16/stormy16-lib2.c: Move to
740         ../libgcc/config/stormy16/lib2.c.
741         * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
742         ../libgcc/config/stormy16/ashlsi3.c.
743         * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
744         ../libgcc/config/stormy16/ashrsi3.c.
745         * config/stormy16/stormy16-lib2-clzhi2.c: Move to
746         ../libgcc/config/stormy16/clzhi2.c.
747         * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
748         ../libgcc/config/stormy16/cmpsi2.c.
749         * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
750         ../libgcc/config/stormy16/ctzhi2.c.
751         * config/stormy16/stormy16-lib2-divsi3.c: Move to
752         ../libgcc/config/stormy16/divsi3.c.
753         * config/stormy16/stormy16-lib2-ffshi2.c: Move to
754         ../libgcc/config/stormy16/ffshi2.c.
755         * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
756         ../libgcc/config/stormy16/lshrsi3.c.
757         * config/stormy16/stormy16-lib2-modsi3.c: Move to
758         ../libgcc/config/stormy16/modsi3.c.
759         * config/stormy16/stormy16-lib2-parityhi2.c: Move to
760         ../libgcc/config/stormy16/parityhi2.c.
761         * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
762         ../libgcc/config/stormy16/popcounthi2.c.
763         * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
764         ../libgcc/config/stormy16/ucmpsi2.c.
765         * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
766         ../libgcc/config/stormy16/udivmodsi4.c.
767         * config/stormy16/stormy16-lib2-udivsi3.c: Move to
768         ../libgcc/config/stormy16/udivsi3.c.
769         * config/stormy16/stormy16-lib2-umodsi3.c: Move to
770         ../libgcc/config/stormy16/umodsi3.c.
771         * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
772         * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
773         * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
774         * config/xtensa/t-elf: Remove.
775         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
776         * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
777         from tmake_file.
778         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
779         *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
780         (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
781         (*-*-openbsd*): Likewise.
782         Remove t-openbsd-thread for posix threads.
783         (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
784         (alpha*-*-freebsd*): Likewise.
785         (alpha*-*-netbsd*): Likewise.
786         (alpha*-*-openbsd*): Likewise.
787         (alpha64-dec-*vms*): Likewise.
788         (alpha*-dec-*vms*): Likewise.
789         (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
790         (arm*-*-linux*): Remove t-linux from tmake_file.
791         Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
792         (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
793         arm*-*-uclinux*eabi.
794         (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
795         tmake_file for arm*-*-eabi*.
796         (fr30-*-elf): Remove tmake_file.
797         (hppa*64*-*-linux*): Remove tmake_file.
798         (hppa*-*-linux*): Likewise.
799         (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
800         tmake_file.
801         (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
802         (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
803         tmake_file.
804         (i[34567]86-*-elf*): Remove tmake_file.
805         (x86_64-*-elf*): Likewise.
806         (i[34567]86-*-nto-qnx*): Likewise.
807         (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
808         (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
809         from tmake_file if using win32 threads.
810         (iq2000*-*-elf*): Remove tmake-file.
811         (microblaze*-linux*): Likewise.
812         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
813         (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
814         (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
815         (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
816         sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
817         (xtensa*-*-elf*): Remove tmake_file.
818
819 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
820
821         * Makefile.in (LIB1ASMSRC): Don't export.
822         (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
823         * config/arm/arm.c: Update lib1funcs.asm filename.
824         * config/arm/linux-eabi.h: Likewise.
825         * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
826         config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
827         ../libgcc/config/arm.
828         * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
829         * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
830         * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
831         * config/arm/t-bpabi: Likewise.
832         * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
833         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
834         * config/arm/t-strongarm-elf: Likewise.
835         * config/arm/t-symbian: Likewise.
836         * config/arm/t-vxworks: Likewise.
837         * config/arm/t-wince-pe: Likewise.
838         * config/avr/libgcc.S: Move to ../libgcc/config/avr.
839         * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
840         * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
841         * config/bfin/t-bfin: Remove.
842         * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
843         * config/bfin/t-bfin-linux: Likewise.
844         * config/bfin/t-bfin-uclinux: Likewise.
845         * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
846         * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
847         * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
848         * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
849         * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
850         * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
851         * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
852         * config/h8300/lib1funcs.asm: Move to
853         ../libgcc/config/h8300/lib1funcs.S.
854         * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
855         * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
856         * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
857         * config/i386/t-interix: Likewise.
858         * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
859         * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
860         * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
861         * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
862         * config/m32c/m32c.c: Update m32c-lib1.S filename.
863         * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
864         * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
865         * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
866         * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
867         * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
868         * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
869         * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
870         * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
871         * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
872         * config/mips/mips16.S: Move to ../libgcc/config/mips.
873         * config/mips/t-libgcc-mips16: Remove.
874         * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
875         * config/pa/milli64.S: Move to ../libgcc/config/pa.
876         * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
877         * config/pa/t-linux64: Likewise.
878         * config/picochip/libgccExtras/fake_libgcc.asm: Move to
879         ../libgcc/config/picochip/lib1funcs.S.
880         * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
881         * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
882         * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
883         * config/sh/sh.h: Update lib1funcs.asm filename.
884         * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
885         * config/sh/t-netbsd: Likewise.
886         * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
887         Remove.
888         * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
889         * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
890         * config/sparc/lb1spl.asm: Remove.
891         * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
892         * config/sparc/t-leon: Likewise.
893         * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
894         * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
895         * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
896         * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
897         * config/vax/t-linux: Remove.
898         * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
899         ../libgcc/config/xtensa.
900         * config/xtensa/lib1funcs.asm: Move to
901         ../libgcc/config/xtensa/lib1funcs.S.
902         * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
903         * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
904         (bfin*-*): Likewise.
905         (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
906         mips/t-libgcc-mips16 from tmake_file.
907         (mips*-*-linux*): Likewise.
908         (mips*-sde-elf*): Likewise.
909         (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
910         (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
911         (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
912         (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
913         (mips-*-elf*, mipsel-*-elf*): Likewise.
914         (mips64-*-elf*, mips64el-*-elf*): Likewise.
915         (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
916         (mips*-*-rtems*): Likewise.
917         (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
918         (vax-*-linux*): Remove vax/t-linux from tmake_file.
919
920 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
921
922         * config.gcc (extra_parts): Remove.
923         (*-*-freebsd*): Remove extra_parts.
924         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
925         *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
926         (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
927         Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
928         *-*-netbsdelf[2-9]*.
929         (*-*-openbsd*): Remove t-libc-ok from tmake_file.
930         (alpha*-*-linux*): Remove extra_parts.
931         (alpha*-*-freebsd*): Likewise.
932         (bfin*-linux-uclibc*): Likewise.
933         (fr30-*-elf): Likewise.
934         (moxie-*-elf): Likewise.
935         (moxie-*-uclinux*): Likewise.
936         (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
937         (h8300-*-elf*): Likewise.
938         (hppa*64*-*-hpux11*): Remove extra_parts.
939         (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
940         tmake_file.
941         (x86_64-*-elf*): Likewise.
942         (i[34567]86-*-freebsd*): Remove tmake_file.
943         (x86_64-*-freebsd*): Likewise.
944         (x86_64-*-netbsd*): Likewise.
945         (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
946         t-libc-ok from tmake_file.
947         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
948         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
949         i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
950         tmake_file.
951         Remove extra_parts.
952         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
953         Remove i386/t-crtstuff from tmake_file.
954         (i[34567]86-*-lynxos*): Likewise.
955         Remove extra_parts.
956         (ia64*-*-elf*): Remove extra_parts.
957         (ia64*-*-freebsd*): Likewise.
958         (ia64*-*-linux*): Likewise.
959         (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
960         (m32r-*-elf*): Remove extra_parts.
961         (m32rle-*-elf*): Likewise.
962         (m32r-*-rtems*): Likewise.
963         (m68k-*-elf*, fido-*-elf*): Likewise.
964         (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
965         (m68k-*-rtems*): Remove extra_parts.
966         (mep-*-*): Likewise.
967         (microblaze*-linux*): Likewise.
968         (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
969         (mips*-*-linux*): Likewise.
970         (powerpc-*-lynxos*): Likewise.
971         (s390x-ibm-tpf*): Likewise.
972         (score-*-elf): Likewise.
973         Remove tmake_file.
974         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
975         sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
976         sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
977         Remove sh/t-superh from tmake_file for sh*-superh-elf.
978         Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
979         (sh-*-rtems*): Remove sh/t-elf from tmake_file.
980         (sh-wrs-vxworks): Likewise.
981         (sparc-*-linux*): Remove extra_parts.
982         (sparc64-*-linux*): Likewise.
983         (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
984         (xstormy16-*-elf): Likewise.
985         (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
986         (am33_2.0-*-linux*): Remove extra_parts.
987         * configure.ac (extra_parts): Don't substitute.
988         * configure: Regenerate.
989         * crtstuff.c: Move to ../libgcc.
990         * Makefile.in (CRTSTUFF_CFLAGS): Remove.
991         (EXTRA_PARTS): Remove.
992         (CRTSTUFF_T_CFLAGS): Remove.
993         (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
994         (GCC_EXTRA_PARTS): Remove.
995         (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
996         CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
997         Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
998         ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
999         ($(T)crtbeginT.o): Remove.
1000         * config/alpha/t-vms (EXTRA_PARTS): Remove.
1001         ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
1002         * config/alpha/vms-dwarf2.asm: Move to
1003         ../libgcc/config/alpha/vms-dwarf2.S.
1004         * config/alpha/vms-dwarf2eh.asm: Move to
1005         ../libgcc/config/alpha/vms-dwarf2eh.S.
1006         * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
1007         * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
1008         * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
1009         ($(T)crti.o, $(T)crtn.o): Remove.
1010         * config/arm/t-linux: Remove comment.
1011         * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
1012         * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
1013         ($(T)crti.o, $(T)crtn.o): Remove.
1014         * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
1015         * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
1016         * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
1017         * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
1018         * config/bfin/t-bfin (EXTRA_PARTS): Remove.
1019         ($(T)crti.o, $(T)crtn.o): Remove.
1020         * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
1021         ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
1022         (EXTRA_MULTILIB_PARTS): Remove.
1023         * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
1024         EXTRA_MULTILIB_PARTS): Remove.
1025         * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
1026         ($(T)crtlibid.o): Remove.
1027         (EXTRA_MULTILIB_PARTS): Remove.
1028         * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
1029         * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
1030         * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
1031         (EXTRA_MULTILIB_PARTS): Remove.
1032         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
1033         * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
1034         CRTSTUFF_T_CFLAGS_S): Remove.
1035         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
1036         * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
1037         * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
1038         * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
1039         * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
1040         * config/frv/frvbegin.c, config/frv/frvend.c: Move to
1041         ../libgcc/config/frv.
1042         * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
1043         (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
1044         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
1045         (CRTSTUFF_T_CFLAGS): Remove.
1046         * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
1047         * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
1048         * config/h8300/t-elf: Remove.
1049         * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
1050         Move to ../libgcc/config/i386.
1051         * config/i386/t-crtstuff: Remove.
1052         * config/i386/t-i386elf: Remove.
1053         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
1054         * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
1055         * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
1056         * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
1057         * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
1058         * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
1059         * config/ia64/t-vms: Remove.
1060         * config/ia64/vms-crtinit.asm: Move to
1061         ../libgcc/config/ia64/vms-crtinit.S.
1062         * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
1063         * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
1064         * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
1065         * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
1066         ($(T)crtinit.o, $(T)crtfini.o): Remove.
1067         (m32rx, m32r2): Remove.
1068         (EXTRA_MULTILIB_PARTS): Remove.
1069         * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
1070         * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
1071         * config/m68k/t-crtstuff: Remove.
1072         * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
1073         * config/m68k/t-m68kelf: Remove.
1074         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
1075         * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
1076         * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
1077         * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
1078         (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
1079         * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
1080         (EXTRA_MULTILIB_PARTS): Remove.
1081         * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
1082         * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
1083         * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
1084         EXTRA_PARTS): Remove.
1085         ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
1086         * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
1087         * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
1088         * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
1089         ($(T)crti.o, $(T)crtn.o): Remove.
1090         (EXTRA_MULTILIB_PARTS): Remove.
1091         * config/mips/t-isa3264: Likewise.
1092         * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
1093         * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
1094         (CRTSTUFF_T_CFLAGS): Remove.
1095         * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
1096         ($(T)crti.o, $(T)crtn.o): Remove.
1097         (EXTRA_MULTILIB_PARTS): Remove.
1098         * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
1099         Remove.
1100         ($(T)crti.o, $(T)crtn.o): Remove.
1101         * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
1102         * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
1103         (EXTRA_MULTILIB_PARTS): Remove.
1104         ($(T)crti.o, $(T)crtn.o): Remove.
1105         * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
1106         * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
1107         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
1108         * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
1109         * config/pa/stublib.c: Move to libgcc/config/pa.
1110         * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
1111         * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
1112         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
1113         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
1114         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
1115         ($(T)libgcc_stub.a): Remove.
1116         * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
1117         (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
1118         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
1119         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
1120         ($(T)libgcc_stub.a): Remove.
1121         * config/rs6000/eabi-cn.asm: Move to
1122         ../../../libgcc/config/rs6000/eabi-cn.S.
1123         * config/rs6000/eabi-ci.asm: Move to
1124         ../../../libgcc/config/rs6000/eabi-ci.S.
1125         * config/rs6000/sol-ci.asm: Move to
1126         ../../../libgcc/config/rs6000/sol-ci.S.
1127         * config/rs6000/sol-cn.asm: Move to
1128         ../../../libgcc/config/rs6000/sol-cn.S.
1129         * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
1130         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
1131         * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
1132         Remove.
1133         (EXTRA_MULTILIB_PARTS): Remove.
1134         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
1135         (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
1136         ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
1137         ($(T)ncrtn$(objext)): Remove.
1138         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
1139         * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
1140         * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
1141         * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
1142         * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
1143         * config/score/t-score-elf: Remove.
1144         * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
1145         * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
1146         * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
1147         * config/sh/lib1funcs-4-300.asm: Move to
1148         ../../../libgcc/config/sh/lib1funcs-4-300.S.
1149         * config/sh/lib1funcs-Os-4-200.asm: Move to
1150         ../libgcc/config/sh/lib1funcs-Os-4-200.S.
1151         * config/sh/t-elf: Remove.
1152         * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
1153         * config/sh/t-linux64: Remove.
1154         * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
1155         * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
1156         (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
1157         ($(T)ic_invalidate_array_4-100.o)
1158         ($(T)libic_invalidate_array_4-100.a)
1159         ($(T)ic_invalidate_array_4-200.o)
1160         ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
1161         ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
1162         ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
1163         ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
1164         ($(T)libgcc-4-300.a): Remove.
1165         * config/sh/t-superh: Remove.
1166         * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
1167         * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
1168         * config/spu/cache.S: Move to ../libgcc/config/spu.
1169         * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
1170         * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
1171         (EXTRA_MULTILIB_PARTS): Remove.
1172         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
1173         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
1174         ($(T)cache64k.o, $(T)cache128k.o): Remove.
1175         * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
1176         * config/t-libc-ok: Remove.
1177         * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
1178         * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
1179         * config/t-netbsd: Remove.
1180         * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
1181         * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
1182         * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
1183         ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
1184         * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
1185         * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
1186         * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
1187         * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
1188         (EXTRA_MULTILIB_PARTS): Remove.
1189         * config/xtensa/t-linux: Remove.
1190         * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
1191
1192 2011-11-02  Uros Bizjak  <ubizjak@gmail.com>
1193
1194         * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
1195         CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
1196
1197 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1198
1199         PR translation/45116
1200         * Makefile.in (slibdir): Remove, don't export.
1201         (SHLIB_NM_FLAGS): Remove.
1202         (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
1203         SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
1204         SHLIB_MAPFILES, SHLIB_NM_FLAGS.
1205         (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
1206         (gcc.o): Pass SHLIB instead of SHLIB_LINK.
1207         (gccspec.o): Likewise.
1208         (installdirs): Don't create $(DESTDIR)$(slibdir).
1209         * configure.ac (slibdir): Remove.
1210         * configure: Regenerate.
1211         * libgcc-libsystem.ver: Move to ../libgcc/config.
1212         * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
1213         * config/libgcc-glibc.ver: Move to ../libgcc/config.
1214         * config/t-libunwind (SHLIB_LC): Remove.
1215         * config/t-linux (SHLIB_MAPFILES): Remove.
1216         * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
1217         * config/t-slibgcc-elf-ver: Remove.
1218         * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
1219         ../libgcc/config.
1220         * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
1221         to ../libgcc/config/alpha.
1222         * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
1223         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
1224         SHLIB_SYMVECX2, SHLIB_LINK): Remove.
1225         * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
1226         * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
1227         * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
1228         SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
1229         * config/arm/t-symbian (SHLIB_LC): Remove.
1230         * config/bfin/libgcc-bfin.ver: Move to
1231         ../libgcc/config/bfin/libgcc-glibc.ver.
1232         * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
1233         * config/c6x/libgcc-c6xeabi.ver: Move to
1234         ../libgcc/config/c6x/libgcc-eabi.ver.
1235         * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
1236         * config/cris/libgcc.ver: Move to
1237         ../libgcc/config/cris/libgcc-glibc.ver.
1238         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
1239         * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
1240         * config/frv/t-linux (SHLIB_MAPFILES): Remove.
1241         * config/i386/darwin-libgcc.10.4.ver: Move to
1242         ../libgcc/config/i386/libgcc-darwin.10.4.ver.
1243         * config/i386/darwin-libgcc.10.5.ver: Move to
1244         ../libgcc/config/i386/libgcc-darwin.10.5.ver.
1245         * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
1246         * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
1247         SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
1248         SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
1249         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
1250         * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
1251         SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
1252         * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
1253         ../libgcc/config/i386.
1254         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
1255         ../libgcc/config/i386.
1256         * config/i386/t-linux: Move to ../libgcc/config/i386.
1257         * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
1258         * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
1259         * config/i386/t-mingw-w64: Likewise.
1260         * config/i386/t-mingw32: Remove.
1261         * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
1262         to ../libgcc/config/ia64.
1263         * config/ia64/t-glibc: Remove.
1264         * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
1265         * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
1266         * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
1267         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
1268         * config/ia64/vms_symvec_libgcc_s.opt: Remove.
1269         * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
1270         * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
1271         * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
1272         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
1273         * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
1274         * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
1275         Move to ../libgcc/config/pa.
1276         * config/rs6000/darwin-libgcc.10.4.ver: Move to
1277         ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
1278         * config/rs6000/darwin-libgcc.10.5.ver: Move to
1279         ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
1280         * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
1281         SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
1282         * config/rs6000/t-aix52: Likewise.
1283         * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
1284         ../libgcc/config/sh.
1285         * config/sparc/libgcc-sparc-glibc.ver: Move to
1286         ../libgcc/config/sparc/libgcc-glibc.ver.
1287         * config/sparc/t-linux: Move to ../libgcc/config/sparc.
1288         * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
1289         * config/xtensa/libgcc-xtensa.ver: Move to
1290         ../libgcc/config/xtensa/libgcc-glibc.ver.
1291         * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
1292         t-slibgcc in tmake_file.
1293         Remove t-slibgcc-nolc-override for *-*-freebsd[34],
1294         *-*-freebsd[34].* with pthreads.
1295         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
1296         *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
1297         t-slibgcc-elf-ver with t-slibgcc in tmake_file.
1298         (*-*-netbsd*): Likewise.
1299         (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
1300         (*-*-*vms*): Add t-slibgcc to tmake_file.
1301         (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
1302         (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
1303         tmake_file.
1304         (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
1305         arm*-*-linux-*eabi.
1306         (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
1307         tmake_file.
1308         (crisv32-*-linux*, cris-*-linux*): Likewise.
1309         (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
1310         pa/t-slibgcc-dwarf-ver from tmake_file.
1311         (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
1312         tmake_file.
1313         Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
1314         (hppa*64*-*-hpux11*): Likewise.
1315         (hppa[12]*-*-hpux11*): Likewise.
1316         (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
1317         tmake_file.
1318         (x86_64-*-darwin*): Likewise.
1319         (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
1320         Add t-slibgcc to tmake_file.
1321         (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
1322         Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
1323         i[34567]86-w64-*.
1324         Remove i386/t-mingw-pthread from tmake_file.
1325         (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
1326         (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
1327         (ia64-hp-*vms*): Likewise.
1328         (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
1329         tmake_file.
1330         (m32rle-*-linux*): Likewise.
1331         (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
1332         (microblaze*-linux*): Remove t-slibgcc-elf-ver,
1333         t-slibgcc-nolc-override from tmake_file.
1334         (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
1335         tmake_file.
1336         (powerpc-*-darwin*): Likewise.
1337         (powerpc64-*-darwin*): Likewise.
1338         (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
1339         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1340         (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
1341         t-slibgcc to tmake_file.
1342         (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
1343         (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
1344         (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
1345         (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
1346         (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
1347         (sparc64-*-linux*): Likewise.
1348         (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
1349         tmake_file.
1350         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1351         x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
1352         from tmake_file.
1353
1354 2011-11-02  Richard Guenther  <rguenther@suse.de>
1355
1356         PR tree-optimization/50902
1357         * tree-vect-stmts.c (vectorizable_load): Properly convert
1358         an invariant initializer element.
1359
1360 2010-11-02  Richard Guenther  <rguenther@suse.de>
1361
1362         PR tree-optimization/50890
1363         * gimple.h (gimple_fold_call): Remove.
1364         * gimple-fold.c (fold_stmt_1): Move all call related code to ...
1365         (gimple_fold_call): ... here.  Make static.  Update the
1366         cannot-inline flag on direct calls.
1367         * ipa-inline.c (early_inliner): Copy the cannot-inline flag
1368         from the statements to the edges.
1369
1370 2011-11-01  Ian Lance Taylor  <iant@google.com>
1371
1372         * godump.c (struct macro_hash_value): Define.
1373         (macro_hash_hashval): New static function.
1374         (macro_hash_eq, macro_hash_del): New static functions.
1375         (go_define): Use macro_hash_value to store values in macro_hash.
1376         Replace an old value on a redefinition.  Don't print anything to
1377         go_dump_file.
1378         (go_undef): Delete the entry from the hash table.
1379         (go_output_typedef): For an enum, use macro_hash_value, and don't
1380         print anything to go_dump_file.
1381         (go_print_macro): New static function.
1382         (go_finish): Traverse macro_hash with go_print_macro.
1383         (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
1384
1385 2011-11-02  Alan Modra  <amodra@gmail.com>
1386
1387         * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
1388
1389 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
1390
1391         PR c++/44277
1392         * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
1393
1394 2011-11-01  Andrew Stubbs  <ams@codesourcery.com>
1395
1396         * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
1397
1398 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
1399
1400         * config/i386/i386.md (splitters for int-float conversion): Use
1401         SUBREG_REG on SUBREGs in splitter constraints.
1402
1403 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
1404
1405         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
1406         prototype.
1407         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
1408         function.
1409         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
1410         (ssepackfltmode): New mode attr.
1411         (vec_pack_ufix_trunc_<mode>): New expander.
1412
1413 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
1414
1415         PR target/50940
1416         * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
1417         Compare <ssevecmode>mode to V4SFmode, not V4SImode.
1418
1419 2011-11-01  Peter Bergner  <bergner@vnet.ibm.com>
1420
1421         * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
1422         * config/rs6000/476.h: New file.
1423         * config/rs6000/476.opt: Likewise.
1424         * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
1425         (SET_TARGET_LINK_STACK): Likewise.
1426         (TARGET_ASM_CODE_END): Define.
1427         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
1428         TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
1429         (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
1430         code if TARGET_LINK_STACK.
1431         (rs6000_emit_load_toc_table): Likewise.
1432         (output_function_profiler): Likewise
1433         (macho_branch_islands): Likewise
1434         (machopic_output_stub): Likewise
1435         (get_ppc476_thunk_name): New function.
1436         (rs6000_code_end): Likewise.
1437         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
1438         Convert to a define_expand.
1439         (load_toc_v4_PIC_1_normal): New define_insn.
1440         (load_toc_v4_PIC_1_476): Likewise.
1441         (load_toc_v4_PIC_1b_normal): Likewise.
1442         (load_toc_v4_PIC_1b_476): Likewise.
1443
1444 2011-11-01  Georg-Johann Lay  <avr@gjlay.de>
1445
1446         PR target/50910
1447         * config/avr/avr.opt (-mbranch-cost=): New option.
1448         * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
1449         * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
1450         * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
1451         (*addhi3_zero_extend1): Remove % in constraint of operand 1.
1452         (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
1453
1454 2011-11-01  Tom de Vries  <tom@codesourcery.com>
1455
1456         PR tree-optimization/50908
1457         * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
1458         before update_vuses, test for 1 predecessor rather than two.
1459         (delete_block_update_dominator_info): New function, part of it factored
1460         out of ...
1461         (replace_block_by): Use delete_block_update_dominator_info.  Call
1462         update_vuses after deleting bb1 and updating dominator info, instead of
1463         before.
1464
1465 2011-11-01  David S. Miller  <davem@davemloft.net>
1466
1467         * config/sparc/sparc.c (vector_init_faligndata): New function.
1468         (sparc_expand_vector_init): Use it for V4HImode on VIS1.
1469
1470         * config/sparc/sparc.c (sparc_expand_vcond): New function.
1471         * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
1472         * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
1473         (vconduv8qiv8qi): Likewise.
1474
1475 2011-11-01  Alexandre Oliva  <aoliva@redhat.com>
1476
1477         PR debug/50869
1478         * cselib.c (cfa_base_preserved_regno): Initialize.
1479         (cselib_expand_value_rtx_1): Don't expand it.
1480         * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
1481         Check it's only zero if result is NULL.
1482
1483 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
1484
1485         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
1486         expander.
1487
1488         * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
1489         (sseintvecmodelower): New mode iterator.
1490         (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
1491         (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
1492         (floatunsv4siv4sf2): Macroize into...
1493         (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
1494
1495 2011-10-31  David S. Miller  <davem@davemloft.net>
1496
1497         * config/sparc/sparc.md (cmask patterns): Allow zero operand.
1498
1499         * dwarf2out.c (cached_next_real_insn): New.
1500         (dwarf2out_end_epilogue): Set it to NULL_RTX.
1501         (dwarf2out_var_location): Remove cached_next_real_insn local static.
1502
1503 2011-10-31  Richard Henderson  <rth@redhat.com>
1504
1505         * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
1506         (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
1507         (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
1508         (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
1509         (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
1510         (floatv4siv4df2): Rename from avx_cvtdq2pd256.
1511         (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
1512         (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
1513         * config/i386/i386.md (splitters for int-float conversion): Likewise.
1514         * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
1515         (bdesc_args): Likewise.
1516         (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
1517         (ix86_vectorize_builtin_conversion): Remove.
1518         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1519
1520 2011-10-31  Martin Jambor  <mjambor@suse.cz>
1521
1522         * ipa-prop.c (mark_modified): Moved up in the file.
1523         (is_parm_modified_before_call): Renamed to
1524         is_parm_modified_before_stmt, moved up in the file.
1525         (load_from_unmodified_param): New function.
1526         (compute_complex_assign_jump_func): Also attempt to create pass
1527         through jump functions for values loaded from (addressable)
1528         parameters.
1529
1530 2011-10-31  Jakub Jelinek  <jakub@redhat.com>
1531
1532         * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
1533         in a loop and has different type from op0, cast it to op0's type
1534         before the loop first.  For slp give up.  Don't crash if op1_vectype
1535         is NULL.
1536
1537 2011-10-31  Paul Brook  <paul@codesourcery.com>
1538
1539         * cgraphunit.c: Don't mark clones as static constructors.
1540
1541 2011-10-31  David Edelsohn  <dje.gcc@gmail.com>
1542
1543         * gcc-ar: Do not include stdio.h.
1544
1545 2011-10-31  Diego Novillo  <dnovillo@google.com>
1546
1547         * tree-streamer-out.c (pack_ts_base_value_fields): Emit
1548         TYPE_ADDR_SPACE.
1549         * tree-streamer-in.c (unpack_ts_base_value_fields): Read
1550         TYPE_ADDR_SPACE.
1551
1552 2011-10-30  David S. Miller  <davem@davemloft.net>
1553
1554         * config/sparc/sparc.c (vector_init_bshuffle): New function.
1555         (vector_init_fpmerge): New function.
1556         (sparc_expand_vector_init): Use them to improve non-const cases.
1557
1558         * dwarf2out.c (dwarf2out_var_location): When processing several
1559         consecutive location notes, cache the result of next_real_insn().
1560
1561 2011-10-30  Uros Bizjak  <ubizjak@gmail.com>
1562
1563         * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
1564         avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
1565         (vec_dupv4sf): Remove expander.
1566         (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
1567         (vec_dupv2df): Remove expander.
1568         (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
1569         (*vec_concatv2df): Merge *vec_concatv2df_sse3.
1570         (*vec_dupv4si): Merge *vec_dupv4si_avx.
1571         (*vec_dupv2di): Merge *vec_dupv2di_sse3.
1572
1573 2011-10-30  Dmitry Plotnikov  <dplotnikov@ispras.ru>
1574
1575         * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
1576         * optabs.c (supportable_convert_operation): New function.
1577         * optabs.h (supportable_convert_operation): New prototype.
1578         * tree-vect-stmts.c (vectorizable_conversion): Change condition and
1579         behavior for NONE modifier case.
1580         * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
1581
1582 2011-10-30  Jakub Jelinek  <jakub@redhat.com>
1583
1584         * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
1585         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
1586         function.
1587         (vect_vect_recog_func_ptrs): Add it.
1588
1589 2011-10-30  David S. Miller  <davem@davemloft.net>
1590
1591         * reorg.c (label_before_next_insn): New function.
1592         (relax_delay_slots): Use it instead of prev_label.
1593         * rtl.h (prev_label): Delete declaration.
1594         * emit-rtl.c (prev_label): Remove.
1595
1596 2011-10-30  Revital Eres  <revital.eres@linaro.org>
1597
1598         * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
1599         as BB_DISABLE_SCHEDULE.
1600         (mark_loop_unsched): New function.
1601         (sms_schedule): Call it.
1602
1603 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1604
1605         PR target/50617
1606         * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
1607         (cmpib_comparison_operator): Likewise.
1608         (following_cal, output_and, output_ior, output_move_double,
1609         output_fp_move_double, output_block_move, output_block_clear,
1610         output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
1611         output_movb, output_parallel_movb, output_parallel_addb, output_call,
1612         output_indirect_call, output_millicode_call, output_mul_insn,
1613         output_div_insn, output_mod_insn, singlemove_string,
1614         output_arg_descriptor, output_global_address, print_operand,
1615         legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
1616         fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
1617         emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
1618         hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
1619         attr_length_indirect_call, return_addr_rtx, function_arg_padding,
1620         insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
1621         output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
1622         hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
1623         compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
1624         reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
1625         exported functions and variables with "pa_".
1626         * config/pa/predicates.md: Likewise.
1627         * config/pa/pa64-hpux.h: likewise.
1628         * config/pa/som.h: Likewise.
1629         * config/pa/elf.h: Likewise.
1630         * config/pa/pa64-linux.h: Likewise.
1631         * config/pa/pa.md: Likewise.
1632         * config/pa/pa.c: Likewise.
1633         * config/pa/pa-linux.h: Likewise.
1634         * config/pa/pa.h: Likewise.
1635         * config/pa/constraints.md: Likewise.
1636
1637 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
1638
1639         * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
1640         Update all uses.
1641         (xop_shl<mode>3): Rename from xop_lshl<mode>3.  Update all uses.
1642         * config/i386/i386.c: Update all uses.
1643
1644 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
1645
1646         * config/i386/i386.md (lshlv16qi3): Remove expander.
1647         (lshrv16qi3): New expander.
1648         (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
1649         using any_shiftrt code iterator. Cleanup.
1650         (ashlv16qi3): Cleanup.
1651         (ashrv2di3): Ditto.
1652
1653 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1654
1655         PR target/50691
1656         * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
1657         references.
1658         (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
1659         and TLS_MODEL_LOCAL_DYNAMIC symbol references.
1660
1661 2011-10-29  Georg-Johann Lay  <avr@gjlay.de>
1662
1663         PR target/50887
1664         * config/avr/avr.opt (-maccumulate-args): New option.
1665         * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
1666         avr_starting_frame_offset.
1667         (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
1668         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
1669         (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
1670         (UNSPECV_WRITE_SP): New constant.
1671         (*addhi3_sp_R): Rewrite to...
1672         (*addhi3_sp): ...this new insn.
1673         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
1674         (movhi_sp_r): ...this new insn.
1675         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
1676         (avr_starting_frame_offset): New.
1677         * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
1678         (avr_starting_frame_offset): New function.
1679         (avr_outgoing_args_size): New static function.
1680         (avr_initial_elimination_offset): Use it.
1681         (avr_simple_epilogue): Use it.
1682         (avr_asm_function_end_prologue): Use it.
1683         (expand_epilogue): Use it.
1684         (expand_prologue): Use it.  Break out code to...
1685         (avr_prologue_setup_frame): ...this new static function.
1686         (avr_can_eliminate): Allow eliminating to frame pointer if there
1687         is one.
1688         (avr_frame_pointer_required_p): Use frame pointer if target has a
1689         nonlocal label.
1690         * config/avr/constraints.md (R): Remove.
1691         (Csp): New constraint.
1692         * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
1693
1694 2011-10-29  Andi Kleen  <ak@linux.intel.com>
1695
1696         * gcc-ar.c (target_machine): Add.
1697
1698 2011-10-29  Anatoly Sokolov  <aesok@post.ru>
1699
1700         * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
1701         cris_constant_index_p, cris_base_p, cris_index_p,
1702         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
1703         cris_legitimate_address_p): New functions.
1704         (TARGET_LEGITIMATE_ADDRESS_P): Define.
1705         (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
1706         from rtx to const_rtx.
1707         (cris_print_operand_address, cris_address_cost,
1708         cris_side_effect_mode_ok):  Use
1709         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
1710         cris_biap_index_p and cris_bdap_index_p.
1711         * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
1712         BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
1713         REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
1714         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
1715         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
1716         cris_biap_index_p and cris_bdap_index_p.
1717         * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
1718         cris_base_p.
1719         * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
1720         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
1721         prototype.
1722         (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
1723
1724 2011-10-21  Andi Kleen  <ak@linux.intel.com>
1725
1726         * ggc-page (PAGE_ALIGN): Add.
1727         (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
1728         Replace ROUND_UP with PAGE_ALIGN.
1729
1730 2011-10-20  Andi Kleen  <ak@linux.intel.com>
1731
1732         * ggc-page (alloc_anon): Add check argument.
1733         (alloc_page): Add fallback to 1 page allocation.
1734         Adjust alloc_anon calls to new argument.
1735
1736 2011-10-18  Andi Kleen  <ak@linux.intel.com>
1737
1738         * ggc-page (release_pages): First free large continuous
1739         chunks in the madvise path.
1740
1741 2011-10-18  Andi Kleen  <ak@linux.intel.com>
1742
1743         * ggc-page.c (alloc_pages): Always round up entry_size.
1744
1745 2011-10-19  Andi Kleen  <ak@linux.intel.com>
1746
1747         * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
1748         (native): Add gcc-ar, gcc-nm, gcc-ranlib.
1749         (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
1750         gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
1751         (install): Depend on install-gcc-ar.
1752         (install-gcc-ar): Add.
1753         (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
1754         * gcc-ar.c: Add new file.
1755
1756 2011-10-28  Pat Haugen <pthaugen@us.ibm.com>
1757
1758         * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
1759         * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
1760         type for V2DF.
1761         (VStype_div): Use vector types for V2DF/V4SF.
1762         (VStype_sqrt): Use *sqrt types.
1763         (VS_spdp_type): Change type to vecdouble.
1764         (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
1765         vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
1766         vsx_xvcvspuxds): Likewise.
1767         (*vsx_fms<mode>4): Set type via <VStype_mul>.
1768         (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
1769         <VStype_simple>.
1770         * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
1771         (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
1772         power7-dsqrt): Correct insn latency.
1773         (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
1774         (power7-veccmp): Delete.
1775         (power7-vecfloat): Correct latency/dispatch/VSU values.
1776         (define_bypass "power7-vecfloat"): Correct latency and types.
1777         (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
1778         (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
1779
1780 2011-10-28  Uros Bizjak  <ubizjak@gmail.com>
1781
1782         * config/i386/i386.md (shift_insn): Rename code attribute from
1783         shiftrt_insn.  Also handle ashift RTX.
1784         (shift): Rename code attribute from shiftrt.  Also handle ashift RTX.
1785         (vshift): New code attribute.
1786         (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
1787         (any_lshift): Move and rename code iterator from ...
1788         * config/i386/sse.md (lshift): ... here.
1789         (lshift_insn): Remove code attribute.
1790         (lshift): Remove code attribute.
1791         (vlshr<mode>3): Use lshiftrt RTX.
1792         (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
1793         (vashl<mode>3, ashlv16qi3): Use ashift RTX.
1794         (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>.  Use
1795         any_lshift code iterator.  Update asm template.
1796         (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
1797         usign any_lshift code iterator.
1798         * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
1799         mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
1800         * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
1801
1802 2011-10-28  Georg-Johann Lay  <avr@gjlay.de>
1803
1804         PR target/49313
1805         * config/avr/avr.md (parityhi2): Expand allowing pseudos.
1806         (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
1807         to the libgcc insn.
1808         (*parityqihi2): Same for 8-bit parity.
1809
1810 2011-10-28  Julian Brown  <julian@codesourcery.com>
1811
1812         PR rtl-optimization/47918
1813         * reload1.c (set_initial_label_offsets): Use initial offsets
1814         for labels on the nonlocal_goto_handler_labels chain.
1815
1816 2011-10-28  Iain Sandoe  <iains@gcc.gnu.org>
1817
1818         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
1819         Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
1820         (LIB2FUNCS_EXTRA):  Add darwin-gpsave.asm.
1821         (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
1822         config/t-darwin.
1823         * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
1824         (GP_SAVE_INLINE): Likewise.
1825         (SAVE_FP_PREFIX,  SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
1826         RESTORE_FP_SUFFIX): Set to empty strings.
1827         * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
1828         (debug_stack_info): Print savres_strategy.
1829         (rs6000_savres_routine_name): Implement for Darwin.
1830         (rs6000_make_savres_rtx): Adjust used register for Darwin.
1831         (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
1832         (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
1833         (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
1834         * config/rs6000/darwin-gpsave.asm: New file.
1835
1836 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
1837
1838         * config/i386/sse.md (VI4SD_AVX2): Removed.
1839         (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
1840         (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
1841         Add another expander using VI48_128 iterator for
1842         TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
1843         for TARGET_AVX2.
1844         (vlshr<mode>3): Likewise.  Change register_operand predicate to
1845         nonimmediate_operand on last operand in the VI12_128 expander.
1846         (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
1847         (vashrv4si3, vashrv8si3): New expanders.
1848         (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
1849         avx2_<lshift>vv2di): Removed.
1850         (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
1851         (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
1852         iterator.  Simplify pattern.
1853
1854 2010-10-28  Richard Guenther  <rguenther@suse.de>
1855
1856         PR driver/50876
1857         * lto-wrapper.c (get_options_from_collect_gcc_options):
1858         Properly count arguments.
1859         (run_gcc): Use an obstack to collect argv, properly separate
1860         switches and their arguments.
1861
1862 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
1863
1864         * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
1865         vector mode from vectype's mode.
1866
1867 2011-10-28  Chung-Lin Tang  <cltang@codesourcery.com>
1868
1869         PR rtl-optimization/49720
1870         * simplify-rtx.c (simplify_relational_operation_1): Detect
1871         infinite recursion condition in "(eq/ne (plus x cst1) cst2)
1872         simplifies to (eq/ne x (cst2 - cst1))" case.
1873
1874 2011-10-27  David S. Miller  <davem@davemloft.net>
1875
1876         * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
1877         (*snedi_zero): Likewise.
1878         (*snedi_zero_trunc): Likewise.
1879         (snedi_special_vis3): New expander.
1880         (*snedi_zero_vis3): New insn.
1881         (*snedi_zero_trunc_vis3): Likewise.
1882         (*sltu_insn_vis3): Likewise.
1883         (*sltu_insn_vis3_trunc): Likewise.
1884         (addxc): Likewise.
1885         (*addxc_trunc_sp64_vis3): Likewise.
1886         * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
1887         gen_snedi_special_vis3 expander, and try GTU/LTU addx based
1888         sequences on DImode values.
1889
1890         * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
1891         constraint.
1892
1893         * regcprop.c (copyprop_hardreg_forward_1): Reject the
1894         transformation when we narrow the mode on big endian.
1895
1896 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
1897
1898         * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
1899         vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
1900         (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
1901
1902         * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
1903         overrides for -masm=intel memory.
1904         * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
1905         sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
1906         sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
1907         sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
1908         (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
1909         sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
1910         (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
1911
1912 2011-10-27  Martin Jambor  <mjambor@suse.cz>
1913
1914         * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
1915         to parm_ainfo.
1916         (ipa_compute_jump_functions_for_edge): Likewise.
1917         (ipa_compute_jump_functions): Likewise.
1918         (ipa_analyze_indirect_call_uses): Likewise.
1919         (ipa_analyze_call_uses): Likewise.
1920         (ipa_analyze_params_uses): Likewise.
1921         (ipa_analyze_node): Likewise.
1922
1923 2011-10-27  Uros Bizjak  <ubizjak@gmail.com>
1924
1925         PR target/50875
1926         * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
1927         constraints.  Change alternative 1 to "x,m,1".
1928
1929 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
1930
1931         * Makefile.in (build/gencheck.o): Depend on tree.def and
1932         c-family/c-common.def.
1933
1934         * tree-ssa-strlen.c: Include expr.h.
1935         (get_stridx): Don't use c_strlen, instead use string_constant
1936         and compute string length from it.
1937         * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
1938
1939 2011-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1940
1941         PR rtl-optimization/46603
1942         PR bootstrap/50879
1943         * reload.c (push_reload): In the out case, restore previous behavior
1944         for subregs that don't have word mode.
1945
1946 2011-10-27  Ian Lance Taylor  <iant@google.com>
1947
1948         * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
1949         CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
1950         (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
1951         defined.
1952
1953 2011-10-27  Richard Henderson  <rth@redhat.com>
1954
1955         * optabs.c (expand_vec_perm): Use the correct mode for scaling the
1956         selector.  Save the qimode constant selector for later use by the
1957         qimode vec_perm pattern.
1958
1959 2011-10-27  Bernd Schmidt  <bernds@codesourcery.com>
1960
1961         * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
1962         to unit_req_factor to the right enum type.
1963         (get_unit_operand_masks, reshuffle_units, try_rename_operands,
1964         hwloop_optimize): Remove unused variables.
1965
1966 2010-10-27  Richard Guenther  <rguenther@suse.de>
1967
1968         PR middle-end/50731
1969         * tree-vect-generic.c (do_binop): Handle scalar operands.
1970
1971 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1972
1973         PR target/37191
1974         * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
1975         from different units in a single alternative.
1976
1977 2011-10-26  David S. Miller  <davem@davemloft.net>
1978
1979         * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
1980         if we're comparing DImode and comparison is other than EQ or NE.
1981
1982         * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
1983         LEU/LTU/GEU/GTU is attempted.
1984         * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
1985         and split.
1986         (*neg_seqsi_sign_extend): Likewise.
1987         (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
1988         *neg_sgeu_extend_sp64): New insns.
1989
1990         * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
1991         * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
1992         (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
1993         (*mov<I:mode>_cc_reg_sp64): Likewise.
1994         (*movsf_cc_v9): Likewise.
1995         (*movsf_cc_reg_sp64): Likewise.
1996         (*movdf_cc_v9): Likewise.
1997         (*movdf_cc_reg_sp64): Likewise.
1998         (*movtf_cc_hq_v9): Likewise.
1999         (*movtf_cc_reg_hq_sp64): Likewise.
2000         (*movtf_cc_v9): Likewise.
2001         (*movtf_cc_reg_sp64): Likewise.
2002         * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
2003         (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
2004
2005 2011-10-26  Eric Botcazou  <ebotcazou@adacore.com>
2006
2007         * reload.c (reload_inner_reg_of_subreg): Change type of return value
2008         and type of OUTPUT parameter to bool and adjust.  Document MODE and
2009         OUTPUT parameters.  Use HARD_REGISTER_P.  Reorder final condition
2010         and improve associated comment.
2011         (push_reload): Clarify and update comments about reloading of subregs.
2012         Adjust calls to reload_inner_reg_of_subreg.  Compute the class upfront
2013         for the reloading of subregs in the out case as well.
2014
2015 2011-10-26  Alexandre Oliva  <aoliva@redhat.com>
2016
2017         PR debug/50826
2018         * var-tracking.c (rtx_debug_expr_p): New.
2019         (use_type): Don't use debug exprs to track non-VTA variables.
2020
2021 2011-10-26  Jeff Law  <law@redhat.com>
2022
2023         * doc/invoke.texi (sink-frequency-threshold): Document.
2024         * tree-ssa-sink.c: Include params.h.
2025         (select_best_block): New function.
2026         (statement_sink_location): Use it.
2027         * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
2028
2029 2011-10-26  Iain Sandoe  <iains@gcc.gnu.org>
2030
2031         PR target/48108
2032         * config/darwin.c (top level): Amend comments concerning LTO output.
2033         (lto_section_num): New variable.  (darwin_lto_section_e): New GTY.
2034         (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
2035         (LTO_NAMES_SECTION): Rename.
2036         (darwin_asm_named_section): Record LTO section counts and switches
2037         in a vec of darwin_lto_section_e.
2038         (darwin_file_start): Remove unused code.
2039         (darwin_file_end): Put an LTO section termination label.  Handle
2040         output of the wrapped LTO sections, index and names table.
2041
2042 2011-10-26  Alan Modra  <amodra@gmail.com>
2043
2044         * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
2045         declaration.
2046         (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
2047         (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx.  Use
2048         simple_return in pattern, emit instruction, and set jump_label.
2049         (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx.  Use
2050         simple_return rather than return.
2051         (emit_cfa_restores): New function.
2052         (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
2053         Add missing cfa_restores for SAVE_WORLD.  Add missing LR cfa_restore
2054         when using out-of-line gpr restore.  Add missing LR and FP regs
2055         cfa_restores for out-of-line fpr restore.  Consolidate code setting
2056         up cfa_restores.  Formatting.  Use LR_REGNO define.
2057         (rs6000_output_mi_thunk): Use simple_return rather than return.
2058         * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
2059         (return_internal*): Likewise.
2060         (any_return, return_pred, return_str): New iterators.
2061         (return, conditional return insns): Provide both return and
2062         simple_return variants.
2063         * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
2064         (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
2065         Move r11 and r0 later to suit shrink-wrapping.
2066
2067 2011-10-26  Richard Guenther  <rguenther@suse.de>
2068
2069         * lto-wrapper.c (run_gcc): Properly init/free obstack.
2070
2071 2011-10-26  Jakub Jelinek  <jakub@redhat.com>
2072
2073         * config/i386/i386.md (UNSPEC_VSIBADDR): New.
2074         * config/i386/predicates.md (vsib_address_operand,
2075         vsib_mem_operator): New predicates.
2076         * config/i386/i386.c (ix86_print_operand_address): Handle
2077         UNSPEC_VSIBADDR addresses.
2078         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
2079         avx2_gatherdi<mode>256): Adjust expanders to use MEM with
2080         UNSPEC_VSIBADDR address.
2081         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
2082         Adjust insns to use MEM with UNSPEC_VSIBADDR address.
2083
2084 2011-10-26  Tom de Vries  <tom@codesourcery.com>
2085
2086         PR tree-optimization/50763
2087         * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
2088         phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
2089
2090 2011-10-26  Richard Guenther  <rguenther@suse.de>
2091
2092         PR lto/41844
2093         * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
2094         (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
2095         * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
2096         (run_gcc): Use it.  Filter out language specific options.
2097
2098 2011-10-26  Andreas Tobler  <andreast@fgznet.ch>
2099
2100         * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
2101         32-bit target does.
2102
2103 2011-10-25  Paolo Carlini  <paolo.carlini@oracle.com>
2104
2105         PR driver/46617
2106         * gcc.c (main): Fix fatal_error string for translation.
2107
2108 2011-10-25  Ian Lance Taylor  <iant@google.com>
2109
2110         * tree-eh.c (do_return_redirection): Remove return_value_p
2111         parameter.  Change all callers.
2112         (lower_try_finally_nofallthru): Remove local return_val.
2113         (lower_try_finally_onedest): Likewise.
2114         (lower_try_finally_copy): Likewise.
2115         (lower_try_finally_switch): Likewise.
2116
2117 2011-10-25  H.J. Lu  <hongjiu.lu@intel.com>
2118
2119         * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
2120         remove "&& !TARGET_64BIT"
2121         (*mmx_maskmovq_rex): Removed.
2122
2123 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
2124
2125         PR rtl-optimization/46603
2126         * reload.c (push_reload): In the out case, reload the subreg as well
2127         as the reg if it has word mode.
2128
2129 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
2130
2131         * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
2132         suppress debug info for the parent type.
2133
2134 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
2135
2136         * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
2137
2138 2011-10-25  Richard Henderson  <rth@redhat.com>
2139
2140         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
2141         (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
2142
2143         * config/rs6000/altivec.md (vec_extract_evenv8hi,
2144         vec_extract_evenv16qi, vec_extract_oddv4si,
2145         vec_extract_oddv4sf): Remove.
2146
2147         * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
2148         vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
2149         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
2150         vec_interleave_highv4sf, vec_interleave_lowv4sf,
2151         vec_interleave_highv4si, vec_interleave_lowv4si,
2152         vec_interleave_highv8hi, vec_interleave_lowv8hi,
2153         vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
2154
2155         * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
2156         [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
2157         [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
2158         * optabs.c (expand_binop): Implement vec_interleave_high_optab,
2159         vec_interleave_low_optab, vec_extract_even_optab,
2160         vec_extract_odd_optab with expand_vec_perm.
2161         (can_vec_perm_for_code_p): New.
2162         * optabs.h: Update.
2163         * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
2164         fallback via can_vec_perm_for_code_p.
2165         (vect_strided_load_supported): Likewise.
2166         * tree-vect-generic.c (expand_vector_operations_1): Never lower
2167         VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
2168         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
2169
2170         * target.def (vec_perm_const_ok): Change parameters to mode and
2171         array of indicies.
2172         * doc/tm.texi: Rebuild.
2173         * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
2174         parameters to mode and array of indicies.
2175         * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
2176         * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
2177         Change parameters to mode and array of indicies.
2178         (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
2179         (expand_vec_perm): Rename from expand_vec_perm_expr.  Change
2180         parameters to mode and rtx inputs.  Try lowering to QImode
2181         vec_perm_const before trying fully variable permutation.
2182         * optabs.h: Update decls.
2183         * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
2184         VECTOR_CST to pass to can_vec_perm_p.
2185         * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
2186         from int pointer to unsigned char pointer.
2187         (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
2188         * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
2189
2190         * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
2191         (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
2192         VEC_INTERLEAVE_LOW_EXPR): Likewise.
2193
2194 2011-10-25  Mike Stump  <mikestump@comcast.net>
2195
2196         * reload.c (regno_clobbered_p): Fix typo.
2197
2198 2011-10-25  Dodji Seketeli  <dodji@redhat.com>
2199
2200         * input.c (expand_location): Rewrite using linemap_resolve_location
2201         and linemap_expand_location.  Add a comment.
2202
2203 2011-10-25  Jakub Jelinek  <jakub@redhat.com>
2204
2205         PR tree-optimization/50596
2206         * tree-vect-stmts.c (vect_mark_relevant): Only use
2207         FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
2208         (vectorizable_store): If is_pattern_stmt_p look through
2209         VIEW_CONVERT_EXPR on lhs.
2210         * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
2211         Use unsigned type instead of signed.
2212         (vect_recog_bool_pattern): Optimize also stores into bool memory in
2213         addition to casts from bool to integral types.
2214         (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
2215         created, don't create it again.
2216
2217 2011-10-25  Kai Tietz  <ktietz@redhat.com>
2218
2219         * config/i386/i386.c (ix86_frame_pointer_required): Require
2220         frame-pointer, if setjmp is used for 32-bit ms-abi.
2221
2222 2011-10-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2223
2224         * builtins.c (set_builtin_user_assembler_name): Remove extra
2225         newline added in October 11th, 2011 change.
2226
2227 2011-10-24  David S. Miller  <davem@davemloft.net>
2228
2229         * config/sparc/little-endian.opt: Delete.
2230         * config.gcc: Remove references to config/sparc/little-endian.opt
2231         * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
2232         * config/sparc/linux64.h: Delete references to -mlittle-endian.
2233         * config/sparc/netbsd-elf.h: Likewise.
2234         * config/sparc/openbsd64.h: Likewise.
2235         * config/sparc/sparc.h: Likewise.
2236         * config/sparc/sp64-elf.h: Likewise and delete overrides for
2237         BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
2238         * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
2239         to MASK_LITTLE_ENDIAN.
2240         * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
2241
2242         * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
2243         Only use D, Y, and Z constraints in vector insns.
2244
2245         * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
2246         (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
2247         called *movsi_insn.
2248         (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
2249         into *movdi_insn_sp32.
2250         (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
2251         one pattern called *movdi_insn_sp64.
2252         (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
2253         Consolidate into one pattern called *movsf_insn.
2254         (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
2255         *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
2256         into *movdf_insn_sp32.
2257         (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
2258         *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
2259         *movdf_insn_sp64.
2260         (*zero_extendsidi2_insn_sp64_novis3,
2261         *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
2262         called *zero_extendsidi2_insn_sp64.
2263         (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
2264         Consolidate into one pattern named *sign_extendsidi2_insn.
2265         (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
2266         Consolidate into one pattern named *mov<VM32:mode>_insn.
2267         (*mov<VM64:mode>_insn_sp64_novis3,
2268         *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
2269         named *mov<VM64:mode>_insn_sp64.
2270         (*mov<VM64:mode>_insn_sp32_novis3,
2271         *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
2272         named *mov<VM64:mode>_insn_sp32.
2273
2274 2011-10-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2275
2276         * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
2277         (zero_length_string): Change assertion to accept strinfo without
2278         length but with stmt instead.
2279         Set the endptr pointer also if starting a new chain.
2280         (adjust_related_strinfos): Ignore strinfos marked for delayed
2281         length computation.
2282         (handle_builtin_strcpy): Mark earlier strinfo elements also for
2283         delayed length computation.
2284
2285 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
2286
2287         PR target/50820
2288         Port from 4.6 branch r180379
2289         * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
2290         handling and indirect jump/calls on devices > 128k.
2291
2292 2011-10-24  Anatoly Sokolov  <aesok@post.ru>
2293             Georg-Johann Lay  <avr@gjlay.de>
2294
2295         PR target/49824
2296         * doc/extend.texi (Declaring Attributes of Functions):
2297         Document OS_main and OS_task attributes.
2298         (Specifying Attributes of Variables): Move up
2299         subsection "AVR Variable Attributes" as of alphabetical order.
2300
2301 2011-10-24  Richard Guenther  <rguenther@suse.de>
2302
2303         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
2304         to vector element type.
2305         (vectorizable_assignment): Bail out for non-mode-precision operations.
2306         (vectorizable_shift): Likewise.
2307         (vectorizable_operation): Likewise.
2308         (vectorizable_type_demotion): Likewise.
2309         (vectorizable_type_promotion): Likewise.
2310         (vectorizable_store): Handle non-mode-precision stores.
2311         (vectorizable_load): Handle non-mode-precision loads.
2312         (get_vectype_for_scalar_type_and_size): Return a vector type
2313         for non-mode-precision integers.
2314         * tree-vect-loop.c (vectorizable_reduction): Bail out for
2315         non-mode-precision reductions.
2316
2317 2011-10-24  Julian Brown  <julian@codesourcery.com>
2318
2319         * config/m68k/m68k.c (notice_update_cc): Tighten condition for
2320         setting CC_REVERSED for FP comparisons.
2321
2322 2011-10-24  Richard Guenther  <rguenther@suse.de>
2323
2324         PR tree-optimization/50838
2325         * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
2326         a MEM_REF base if we change it.
2327
2328 2011-10-24  Bernd Schmidt  <bernds@codesourcery.com>
2329
2330         PR bootstrap/50836
2331         * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
2332
2333         PR rtl-optimization/50833
2334         * function.c (thread_prologue_and_epilogue_insns): Expect the
2335         return insn optimization only if optimize.
2336
2337 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
2338
2339         * config/avr/avr.c: Break long lines.
2340         Define target hooks on the fly if applicable.
2341         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
2342         overridden later.
2343         (targetm): Move definition to end of file.
2344         (avr_can_eliminate): Make static on the fly.
2345         (avr_frame_pointer_required_p): Ditto.
2346         (avr_hard_regno_scratch_ok): Ditto.
2347         (avr_builtin_setjmp_frame_value): Make static on the fly.
2348         Indent according to coding rules.
2349         (avr_case_values_threshold): Ditto.
2350         (avr_attribute_table): Move down.
2351
2352 2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
2353
2354         PR tree-optimization/50730
2355         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
2356         analysis if encountered unsupported data-ref.
2357
2358 2011-10-23  David S. Miller  <davem@davemloft.net>
2359
2360         * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
2361         cpu adjustment.
2362         * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
2363         append -mcpu=v9 when -mv8plus is given.
2364
2365         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
2366         between float and non-float regs when VIS3.
2367         * config/sparc/sparc.c (eligible_for_restore_insn): We can't
2368         use a restore when the source is a float register.
2369         (sparc_split_regreg_legitimate): When VIS3 allow moves between
2370         float and integer regs.
2371         (sparc_register_move_cost): Adjust to account for VIS3 moves.
2372         (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
2373         integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
2374         (sparc_secondary_reload): On 32-bit with VIS3 when moving between
2375         float and integer regs we sometimes need a FP_REGS class
2376         intermediate move to satisfy the reload.  When this happens
2377         specify an extra cost of 2.
2378         (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
2379         (*movdi_insn_sp32_v9): Likewise.
2380         (*movdi_insn_sp64): Likewise.
2381         (*movsf_insn): Likewise.
2382         (*movdf_insn_sp32_v9): Likewise.
2383         (*movdf_insn_sp64): Likewise.
2384         (*zero_extendsidi2_insn_sp64): Likewise.
2385         (*sign_extendsidi2_insn): Likewise.
2386         (*movsi_insn_vis3): New insn.
2387         (*movdi_insn_sp32_v9_vis3): New insn.
2388         (*movdi_insn_sp64_vis3): New insn.
2389         (*movsf_insn_vis3): New insn.
2390         (*movdf_insn_sp32_v9_vis3): New insn.
2391         (*movdf_insn_sp64_vis3): New insn.
2392         (*zero_extendsidi2_insn_sp64_vis3): New insn.
2393         (*sign_extendsidi2_insn_vis3): New insn.
2394         (TFmode reg/reg split): Make sure both REG operands are float.
2395         (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
2396         easy constant to integer reg alternatives.
2397         (*mov<VM64:mode>_insn_sp64): Likewise.
2398         (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
2399         (*mov<VM32:mode>_insn_vis3): New insn.
2400         (*mov<VM64:mode>_insn_sp64_vis3): New insn.
2401         (*mov<VM64:mode>_insn_sp32_vis3): New insn.
2402         (VM64 reg<-->reg split): New splitter for 32-bit.
2403
2404         * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
2405         * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
2406         Declare it.
2407         * config/sparc/sparc.md (DImode reg/reg split): Use it.
2408         (DFmode reg/reg split): Likewise.
2409
2410         * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
2411         generating fzero and fone instructions.
2412         (DImode const_int --> reg splitter): Only trigger for integer regs.
2413
2414         * config/sparc/predicates.md (input_operand): Disallow vector
2415         constants other than 0 and -1.
2416         * config/sparc/sparc.c (sparc_preferred_reload_class): Return
2417         NO_REGS for vector constants other than 0 and -1.
2418
2419         * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
2420         SPARC_INT_REG_P): Define.
2421         (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
2422         (REGNO_OK_FOR_INDEX_P): Likewise.
2423         * config/sparc/sparc.c (gen_df_reg): Likewise.
2424         (eligible_for_return_delay): Likewise.
2425         (eligible_for_sibcall_delay): Likewise.
2426         (sparc_legitimate_address_p): Likewise.
2427         (emit_save_or_restore_regs): Likewise.
2428         (registers_ok_for_ldd_peep): Likewise.
2429         * config/spac/sparc.md (DI mode splitters): Likewise.
2430         (SF mode const splitters): Likewise.
2431         (DF mode splitters): Likewise.
2432         (32-bit DI mode logical op splitters): Likewise.
2433
2434 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2435
2436         PR c++/50841
2437         Revert:
2438         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2439
2440         PR c++/50810
2441         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
2442
2443 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
2444
2445         * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
2446         (VI248_256): Remove mode iterator.
2447         * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
2448         instead of gen_avx2_lshlv4di3.
2449         (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
2450         CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
2451
2452 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
2453
2454         * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
2455         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
2456         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
2457         pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
2458         *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
2459         iterator.  Use sseintprefix mode attribute.
2460         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
2461         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
2462         pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
2463         *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
2464         iterator.  Use sseintprefix mode attribute.
2465         (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
2466         attributes.
2467         (*avx2_gatherdi<mode>): Ditto.
2468         (*avx2_gatherdi<mode>256): Ditto.
2469         (VI48_AVX2): Remove mode iterator.
2470         (gthrlastfp): Remove mode attribute.
2471
2472 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2473
2474         PR c++/50810
2475         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
2476
2477 2011-10-23  Tom de Vries  <tom@codesourcery.com>
2478
2479         PR tree-optimization/50763
2480         * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
2481         out of ...
2482         (same_succ_flush_bbs): Use same_succ_flush_bb.
2483         (purge_bbs): Remove argument.  Remove calls to same_succ_flush_bbs,
2484         release_last_vdef and delete_basic_block.
2485         (unlink_virtual_phi): New function.
2486         (update_vuses): Add and use vuse1_phi_args argument.  Set var to
2487         SSA_NAME_VAR of vuse1 or vuse2, and use var.  Handle case that
2488         def_stmt2 is NULL.  Use phi result as phi arg in case vuse1 or vuse2
2489         is NULL_TREE.  Replace uses of vuse1 if vuse2 is NULL_TREE.  Fix code
2490         to limit replacement of uses.  Propagate phi argument for phis with a
2491         single argument.
2492         (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
2493         Set vuse1_phi_args if vuse1 is a phi defined in bb1.  Add
2494         vuse1_phi_args as argument to call to update_vuses.  Call
2495         release_last_vdef, same_succ_flush_bb, delete_basic_block.  Update
2496         CDI_DOMINATORS info.
2497         (tail_merge_optimize): Remove argument in call to purge_bbs.  Remove
2498         call to free_dominance_info.  Only call calculate_dominance_info once.
2499
2500 2011-10-23  Eric Botcazou  <ebotcazou@adacore.com>
2501
2502         * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
2503
2504         PR tree-optimization/44683
2505         * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
2506         we can be sure that there are no signed zeros involved.
2507
2508 2011-10-23  Jan Hubicka  <jh@suse.cz>
2509
2510         * ipa-inline.c (estimate_badness): Scale up and handle overflows.
2511
2512 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
2513
2514         PR target/50788
2515         * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
2516         Remove (match_dup 0).
2517         (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
2518         (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
2519         (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
2520         (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
2521         (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
2522         (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
2523
2524 2011-10-23  Ira Rosen  <ira.rosen@linaro.org>
2525
2526         PR tree-optimization/50819
2527         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
2528         the last argument.
2529         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
2530         vect_analyze_data_ref_dependences.
2531         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
2532         the last argument.  Check load-after-store dependence for unknown
2533         dependencies in basic blocks.
2534         (vect_analyze_data_ref_dependences): Update call to
2535         vect_analyze_data_ref_dependences.
2536         * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
2537         * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
2538         (vect_slp_analyze_bb_1): Update call to
2539         vect_analyze_data_ref_dependences.  Don't call
2540         vect_bb_vectorizable_with_dependencies.
2541
2542 2011-10-22  David S. Miller  <davem@davemloft.net>
2543
2544         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
2545         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
2546         * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
2547         (sparc_secondary_reload): New function.
2548
2549         * config/sparc/sparc.h (sparc_costs): Remove extern decl.
2550         (struct processor_costs): Move from here..
2551         * config/sparc/sparc.c (struct processor_costs): To here.
2552         (sparc_costs): Mark static.
2553
2554         * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
2555         * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
2556         Get rid of declarations.
2557
2558 2011-10-21  Paul Brook  <paul@codesourcery.com>
2559
2560         * config/c6x/c6x.c (c6x_asm_emit_except_personality,
2561         c6x_asm_init_sections): New functions.
2562         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
2563
2564 2011-10-21  Jakub Jelinek  <jakub@redhat.com>
2565
2566         PR target/50813
2567         * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
2568         V4DImode and V8SImode for !TARGET_AVX2.
2569
2570 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
2571
2572         PR bootstrap/50825
2573         * sched-deps.c (add_dependence): If not doing predication, promote
2574         REG_DEP_CONTROL to REG_DEP_ANTI.
2575
2576 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
2577
2578         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
2579         instead of X to avr_legitimize_reload_address.
2580         * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
2581         first argument's type from rtx to rtx*.
2582         * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
2583         Pass PX to push_reload instead of &X.  Change log messages for
2584         better distinction.
2585
2586 2011-10-21  Roland Stigge  <stigge@antcom.de>
2587
2588         PR translation/47064
2589         * params.def: Fix typo "compilatoin" -> "compilation".
2590
2591 2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>
2592             Kirill Yukhin  <kirill.yukhin@intel.com>
2593
2594         PR target/50740
2595         * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
2596         if max_level allows that.
2597
2598 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
2599
2600         * reg-notes.def (DEP_CONTROL): New.
2601         * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
2602         not doing speculation.
2603         * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
2604         record_hard_reg_uses_1, record_hard_reg_uses): New functions.
2605         * function.c (record_hard_reg_sets, record_hard_reg_uses,
2606         record_hard_reg_uses_1): Remove; move to rtlanal.c.
2607         * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
2608         * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
2609         (MUST_RECOMPUTE_SPEC_P): New macro.
2610         (real_insn_for_shadow): New function.
2611         (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
2612         toggle_cancelled_flags): New static functions.
2613         (schedule_insn): Relax an assert to only check for empty hard back
2614         dependencies.  Skip cancelled dependencies.  Call
2615         check_clobbered_conditions.
2616         (copy_insn_list): Remove function, renamed moved to lists.c.
2617         (save_backtrack_point): Use new spelling copy_INSN_LIST.
2618         (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
2619         (restore_last_backtrack_point): Likewise.  Call toggle_cancelled_flags.
2620         (estimate_insn_tick): Ignore cancelled dependencies.
2621         (haifa_speculate_insn): Move declaration.
2622         (try_ready): Move code into recompute_todo_spec and call it.  Tweak
2623         some asserts.  Ensure predicated patterns are restored if necessary.
2624         Dump DEP_CONTROL flag.
2625         (haifa_change_pattern): Merge with sched_change_pattern.
2626         (sched_change_pattern): Remove function.
2627         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove.  All
2628         uses changed to simply not test NON_FLUSH_JUMP_P.
2629         (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
2630         REG_DEP_CONTROL.
2631         (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
2632         (reg_pending_control_uses, control_dependency_cache): New static
2633         variables.
2634         (sched_get_reverse_condition_uncached): New function.
2635         (sd_find_dep_between): Remove pointless assert.  Look in
2636         control_dependency_cache.
2637         (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
2638         extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
2639         and control_dependency_cache.
2640         (sd_unresolve_dep): Use dep_spec_p.
2641         (add_dependence): Now a wrapper around add_dependence_1, handling
2642         REG_DEP_CONTROL specially.
2643         (flush_pending_lists): Clear pending_jump_insns.
2644         (sched_analyze_1): Handle pending_jump_insns like a memory flush.
2645         (sched_analyze_2): Unconditionally add to pending memory flushes,
2646         keep previous behaviour but apply it to pending_jump_insns instead.
2647         (sched_analyze_insn): Defer adding jump reg dependencies using
2648         reg_pending_control_uses; add them to the control_uses list.  Handle
2649         pending_jump_insns and control_uses when adding dependence lists.
2650         (deps_analyze_insn): Update INSN_COND_DEPS.
2651         (deps_analyze_insn): Add jumps to pending_jump_insns rather than
2652         last_pending_memory_flush.
2653         (init_deps): Initialize pending_jump_insns.
2654         (free_deps): Free control_uses.
2655         (remove_from_deps): Remove from pending_jump_insns.
2656         (init_deps_global): Allocate reg_pending_control_uses).
2657         (finish_deps_global): Free it.
2658         (add_dependence_1): Renamed from add_dependence.  Handle
2659         REG_DEP_CONTROL.
2660         * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
2661         (copy_INSN_LIST, concat_INSN_LIST): Declare.
2662         * sched-int.h (struct deps_reg): Add control_uses.
2663         (struct deps_desc): Add pending_jump_insns.
2664         (struct _haifa_deps_insn_data): Add cond_deps.
2665         (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
2666         (INSN_COND_DEPS, PREDICATED_PAT): New macros.
2667         (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
2668         (DEP_CONTROL): New macro.
2669         (DEP_TYPES): Include it.
2670         (HARD_DEP): Adjust definition.
2671         (DEP_CANCELLED): New macro.
2672         (enum SCHED_FLAGS): Add DO_PREDICATION.
2673         (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
2674         * sched-rgn.c (concat_INSN_LIST): Remove function.
2675         (deps_join): Handle pending_jump_insns.
2676         (free_pending_lists): Likewise.
2677         * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
2678         schedule.
2679
2680 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
2681
2682         PR target/50820
2683         * config/avr/libgcc.S (__EIND__): New define to 0x3C.
2684         (__tablejump__): Consistently use EIND for indirect jump/call.
2685         (__tablejump_elpm__): Ditto.
2686
2687 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
2688
2689         * config/c6x/c6x.md (attr "op_pattern"): New.
2690         (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
2691         * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
2692         Likewise.
2693         * config/c6x/c6x-mult.md: Regenerate.
2694         * config/c6x/c6x.c: Include "regrename.h".
2695         (unit_req_table): New typedef.
2696         (unit_reqs): Use it for the declaration.
2697         (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
2698         get_unit_operand_masks, try_rename_operands, reshuffle_units): New
2699         static functions.
2700         (count_unit_reqs): New arg reqs.  All callers changed.  Use
2701         get_unit_reqs, and don't merge here.
2702         (res_mii): New arg reqs.  All callers changed.  Rewrite to use a loop
2703         using unit_req_factor.
2704         (hwloop_optimize): Call reshuffle_units.  Call merge_unit_reqs after
2705         count_unit_reqs.
2706         (c6x_reorg): Add reg notes problem, and call df_analyze.
2707         * Makefile.in ($(out_object_file)): Depend on regrename.h.
2708
2709 2011-10-21  Kai Tietz  <ktietz@redhat.com>
2710
2711         * fold-const.c (simple_operand_p_2): Handle integral
2712         casts from boolean-operands.
2713
2714 2011-10-21  Jan Hubicka  <jh@suse.cz>
2715
2716         * cgraph.c (dump_cgraph_node): Dump alias flag.
2717         * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
2718         no destination.
2719         (get_alias_symbol): New function.
2720         (output_weakrefs): Output also weakrefs with no destinatoin.
2721         (lto_output_node): Output weakref alias flag when at function boundary.
2722
2723 2011-10-21  Andrew Stubbs  <ams@codesourcery.com>
2724
2725         PR target/50809
2726         * config/arm/driver-arm.c (vendors): Make static.
2727
2728 2011-10-21  Uros Bizjak  <ubizjak@gmail.com>
2729
2730         * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
2731         (ix86_emit_swsqrtsf): Force a into register.
2732
2733 2011-10-20  Mike Stump  <mikestump@comcast.net>
2734
2735         * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
2736         after validate_change wipes it out.
2737
2738 2011-10-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2739
2740         * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
2741         before using the shufb instruction.
2742
2743 2011-10-20  Kirill Yukhin  <kirill.yukhin@intel.com>
2744
2745         PR target/50766
2746         * config/i386/i386.md (bmi_bextr_<mode>): Update register/
2747         memory operand order.
2748         (bmi2_bzhi_<mode>3): Ditto.
2749         (bmi2_pdep_<mode>3): Ditto.
2750         (bmi2_pext_<mode>3): Ditto.
2751
2752 2011-10-20  Richard Henderson  <rth@redhat.com>
2753
2754         * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
2755         * optabs.c (can_vec_perm_expr_p): Update to match.
2756         (expand_vec_perm_expr): Likewise.
2757         * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
2758         from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
2759         * doc/tm.texi.in: Likewise.
2760
2761 2011-10-20  Sergey Ostanevich  <sergos.gnu@gmail.com>
2762
2763         PR target/50572
2764         * config/i386/i386.c (processor_target_table): Change Atom
2765         align_loops_max_skip to 15.
2766
2767 2011-10-20  Richard Henderson  <rth@redhat.com>
2768
2769         * target.def (builtin_vec_perm): Remove.
2770         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
2771
2772         * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
2773         (IX86_BUILTIN_VEC_PERM_*): Remove.
2774         (bdesc_args): Remove vec_perm builtins
2775         (ix86_expand_builtin): Likewise.
2776         (ix86_expand_vec_perm_const_1): Rename from
2777         ix86_expand_vec_perm_builtin_1.
2778         (extract_vec_perm_cst): Merge into...
2779         (ix86_vectorize_vec_perm_const_ok): ... here.  Rename from
2780         ix86_vectorize_builtin_vec_perm_ok.
2781         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
2782
2783         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
2784         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
2785
2786         * config/spu/spu.c (spu_builtin_vec_perm): Remove.
2787         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
2788
2789 2011-10-20  Uros Bizjak  <ubizjak@gmail.com>
2790
2791         PR target/47989
2792         * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
2793         * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
2794         * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
2795         implements vectorized single float division and vectorized sqrtf(x)
2796         with reciprocal sequence with additional Newton-Raphson step with
2797         -ffast-math.
2798
2799 2011-10-20  Dodji Seketeli  <dodji@redhat.com>
2800
2801         * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
2802         ggc_alloced_size_order_for_request into ggc_round_alloc_size like
2803         it was done in ggc-page.c.
2804
2805         PR other/50659
2806         * doc/cppopts.texi: Use @smallexample/@end smallexample in
2807         documentation for -fdebug-cpp instead of @quotation/@end quotation
2808         that is not supported by contrib/texi2pod.pl.
2809
2810 2011-10-19  Jan Hubicka  <jh@suse.cz>
2811
2812         * ipa-inline.c (inline_small_functions): Always update all calles after
2813         inlining.
2814
2815 2011-10-19  Jan Hubicka  <jh@suse.cz>
2816
2817         PR bootstrap/50709
2818         * ipa-inline.c (inline_small_functions): Fix checking code to not make
2819         effect on fibheap stability.
2820
2821 2011-10-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
2822
2823         * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
2824
2825 2011-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2826
2827         PR target/50106
2828         * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
2829         reg size from 1-3.
2830
2831 2011-10-20  Richard Guenther  <rguenther@suse.de>
2832
2833         * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
2834         and rotates to the set of expensive operations.
2835
2836 2011-10-19  David S. Miller  <davem@davemloft.net>
2837
2838         * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
2839         (sparc_emit_set_const32): Likewise.
2840         (sparc_emit_set_const64_longway): Likewise.
2841         (sparc_emit_set_const64): Likewise.
2842         (sparc_legitimize_pic_address): Likewise.
2843         (memory_ok_for_ldd): Likewise.
2844
2845 2011-10-20  Dehao Chen  <dehao@google.com>
2846
2847         * profile.c (compute_branch_probabilities): Compute and dump the
2848         overlap between the static estimation and the instrumentation profile.
2849         (OVERLAP_BASE): New macro.
2850         (compute_frequency_overlap): New function
2851
2852 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
2853
2854         * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
2855         d->op1 instead of d->op0 for the second vpshufb.
2856         (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
2857         (ix86_expand_vec_perm_const): If mask indicates two operands are
2858         needed, but both are the same and expanding them as d.op0 == d.op1
2859         failed, retry with d.op0 != d.op1.
2860         (ix86_expand_vec_perm_builtin): Likewise.  Handle sorry printing
2861         also for d.nelt == 32.
2862
2863         PR middle-end/50754
2864         * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
2865         VEC_PERM_EXPR.
2866
2867 2011-10-19  Bernd Schmidt  <bernds@codesourcery.com>
2868
2869         * regrename.h: New file.
2870         * regrename.c: Include it.  Also include "emit-rtl.h".
2871         (struct du_head, struct du_chain, du_head_p DEF_VEC and
2872         DEF_VEC_ALLOC_P): Move to regrename.h.
2873         (do_replace): Remove declaration.
2874         (insn_rr): New variable.
2875         (cur_operand): New static variable.
2876         (regrename_chain_from_id): Renamed from chain_from_id and no longer
2877         static.  All callers changed.
2878         (record_operand_use): New static function.
2879         (scan_rtx_reg): Use it.
2880         (find_best_rename_reg): New function, broken out of rename_chains.
2881         (rename_chains): Use it.  Don't update chain regno and nregs here, ...
2882         (regrename_do_replace): ... do it here instead.  Renamed from
2883         do_replace, and no longer static.  All callers changed.
2884         (regrename_analyze): No longer static.  New arg bb_mask.
2885         All callers changed.  If bb_mask is nonzero, use it to limit the
2886         number of basic blocks we analyze.  If we failed to analyze a block,
2887         clear insn operand data.
2888         (record_out_operands): New arg insn_info.  Update cur_operand if it is
2889         nonnull.
2890         (build_def_use): If insn_rr is nonnull, pass an insn_info to
2891         record_out_operands, and update cur_operand here as well.
2892         (regrename_init, regrename_finish): New functions.
2893         (regrename_optimize): Use them.
2894         * Makefile.in (regrename.o): Adjust dependencies.
2895
2896 2011-10-19  Tom de Vries  <tom@codesourcery.com>
2897
2898         PR tree-optimization/50769
2899         * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
2900         unconditionally.  Handle case that phi_vuse2 is not an SSA_NAME.  Add
2901         dummy argument .MEM to phi when increasing number of arguments of phi by
2902         redirecting edges to the block with phi.
2903
2904 2011-10-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2905
2906         PR bootstrap/50777
2907         * configure.ac: Save and restore CXXFLAGS around
2908         gcc_AC_CHECK_DECLS uses.
2909         Check for madvise() declaration with g++ if --enable-build-with-cxx.
2910         * configure: Regenerate.
2911         * config.in: Regenerate.
2912         * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
2913
2914 2011-10-19  Alexandre Oliva  <aoliva@redhat.com>
2915
2916         PR debug/49310
2917         * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
2918         (variable_part): Replace offset with union.
2919         (enum onepart_enum, onepart_enum_t): New.
2920         (variable_def): Drop cur_loc_changed, add onepart.
2921         (value_chain_def, const_value_chain): Remove.
2922         (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
2923         (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
2924         (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
2925         (value_chain_pool, value_chains): Remove.
2926         (dropped_values): New.
2927         (struct parm_reg): Only if HAVE_window_save.
2928         (vt_stack_adjustments): Don't record register arguments.
2929         (dv_as_rtx): New.
2930         (dv_onepart_p): Return a onepart_enum_t.
2931         (onepart_pool): New.
2932         (dv_pool): Remove.
2933         (dv_from_rtx): New.
2934         (variable_htab_free): Release onepart aux data.  Reset flags.
2935         (value_chain_htab_hash, value_chain_htab_eq): Remove.
2936         (unshare_variable): Use onepart field.  Propagate onepart aux
2937         data or offset.  Drop cur_loc_changed.
2938         (val_store): Cope with NULL insn.  Rephrase dump output.  Check
2939         for unsuitable locs.  Add FIXME on using cselib locs.
2940         (val_reset): Remove FIXME of unfounded concerns.
2941         (val_resolve): Check for unsuitable locs.  Add FIXME on using
2942         cselib locs.
2943         (variable_union): Use onepart field, adjust access to offset.
2944         (NO_LOC_P): New.
2945         (VALUE_CHANGED, DECL_CHANGED): Update doc.
2946         (set_dv_changed): Clear NO_LOC_P when changed.
2947         (find_loc_in_1pdv): Use onepart field.
2948         (intersect_loc_chains): Likewise.
2949         (unsuitable_loc): New.
2950         (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
2951         (add_value_chain, add_value_chains): Remove.
2952         (add_cselib_value_chains, remove_value_chain): Likewise.
2953         (remove_value_chains, remove_cselib_value_chains): Likewise.
2954         (canonicalize_loc_order_check): Use onepart.  Drop cur_loc_changed.
2955         (canonicalize_values_star, canonicalize_vars_star): Use onepart.
2956         (variable_merge_over_cur): Likewise.  Adjust access to offset.
2957         Drop cur_loc_changed.
2958         (variable_merge_over_src): Use onepart field.
2959         (remove_duplicate_values): Likewise.
2960         (variable_post_merge_new_vals): Likewise.
2961         (find_mem_expr_in_1pdv): Likewise.
2962         (dataflow_set_preserve_mem_locs): Likewise.  Drop cur_loc_changed
2963         and value chains.
2964         (dataflow_set_remove_mem_locs): Likewise.  Use VAR_LOC_FROM.
2965         (variable_different_p): Use onepart field.  Move onepart test out
2966         of the loop.
2967         (argument_reg_set): Drop.
2968         (add_uses, add_stores): Preserve but do not record in dynamic
2969         tables equivalences for ENTRY_VALUEs and CFA_based addresses.
2970         Avoid unsuitable address expressions.
2971         (EXPR_DEPTH): Unlimit.
2972         (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
2973         (prepare_call_arguments): Use DECL_RTL_IF_SET.
2974         (dump_var): Adjust access to offset.
2975         (variable_from_dropped, recover_dropped_1paux): New.
2976         (variable_was_changed): Drop cur_loc_changed.  Use onepart.
2977         Preserve onepart aux in empty_var.  Recover empty_var and onepart
2978         aux from dropped_values.
2979         (find_variable_location_part): Special-case onepart.  Adjust
2980         access to offset.
2981         (set_slot_part): Use onepart.  Drop cur_loc_changed.  Adjust
2982         access to offset.  Initialize onepaux.  Drop value chains.
2983         (delete_slot_part): Drop value chains.  Use VAR_LOC_FROM.
2984         (VEC (variable, heap), VEC (rtx, stack)): Define.
2985         (expand_loc_callback_data): Drop dummy, cur_loc_changed,
2986         ignore_cur_loc.  Add expanding, pending, depth.
2987         (loc_exp_dep_alloc, loc_exp_dep_clear): New.
2988         (loc_exp_dep_insert, loc_exp_dep_set): New.
2989         (notify_dependents_of_resolved_value): New.
2990         (update_depth, vt_expand_var_loc_chain): New.
2991         (vt_expand_loc_callback): Revamped.
2992         (resolve_expansions_pending_recursion): New.
2993         (INIT_ELCD, FINI_ELCD): New.
2994         (vt_expand_loc): Use the new macros above.  Drop ignore_cur_loc
2995         parameter, adjust all callers.
2996         (vt_expand_loc_dummy): Drop.
2997         (vt_expand_1pvar): New.
2998         (emit_note_insn_var_location): Operate on non-debug decls only.
2999         Revamp multi-part cur_loc recomputation and one-part expansion.
3000         Drop cur_loc_changed.  Adjust access to offset.
3001         (VEC (variable, heap)): Drop.
3002         (changed_variables_stack, changed_values_stack): Drop.
3003         (check_changed_vars_0, check_changed_vars_1): Remove.
3004         (check_changed_vars_2, check_changed_vars_3): Remove.
3005         (values_to_stack, remove_value_from_changed_variables): New.
3006         (notify_dependents_of_changed_value, process_changed_values): New.
3007         (emit_notes_for_changes): Revamp onepart updates.
3008         (emit_notes_for_differences_1): Use onepart.  Drop cur_loc_changed
3009         and value chains.  Propagate onepaux.  Recover empty_var and onepaux
3010         from dropped_values.
3011         (emit_notes_for_differences_2): Drop value chains.
3012         (emit_notes_in_bb): Adjust.
3013         (vt_emit_notes): Drop value chains, changed_variables_stack.
3014         Initialize and release dropped_values.
3015         (create_entry_value): Revamp.
3016         (vt_add_function_parameter): Use new interface.
3017         (note_register_arguments): Remove.
3018         (vt_initialize): Drop value chains and register arguments.
3019         (vt_finalize): Drop value chains.  Release windowed_parm_regs only
3020         if HAVE_window_save.
3021         * rtl.h: Document various pass-local uses of RTL flags.
3022         * tree.h (DECL_RTL_KNOWN_SET): New.
3023         * doc/invoke.texi (param max-vartrack-expr-depth): Update
3024         description and default.
3025
3026 2011-10-19  Georg-Johann Lay  <avr@gjlay.de>
3027
3028         PR target/50447
3029         * config/avr/avr.md (cc): New alternative out_plus_noclobber.
3030         (adjust_len): Ditto.
3031         (addhi3): Don't pipe through short; use gen_int_mode instead.
3032         Prior to reload, expand to gen_addhi3_clobber.
3033         (*addhi3): Use avr_out_plus_noclobber if applicable, use
3034         out_plus_noclobber in cc and adjust_len attribute.
3035         (addhi3_clobber): 2 new RTL peepholes.
3036         (addhi3_clobber): New insn.
3037         * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
3038         * config/avr/avr.c (avr_out_plus_noclobber): New function.
3039         (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
3040         (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
3041         Set cc0 to set_zn for adiw on 16-bit values.
3042         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
3043         (expand_epilogue): No need to add 0 to frame_pointer_rtx.
3044
3045 2011-10-19  Richard Guenther  <rguenther@suse.de>
3046
3047         PR middle-end/50780
3048         * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
3049         the condition is properly gimple before using it.
3050         * tree-eh (stmt_could_throw_1_p): Properly extract the
3051         operation type from comparisons.
3052
3053 2011-10-19  Roland Stigge  <stigge@antcom.de>
3054
3055         PR translation/48638
3056         * plugin.c (add_new_plugin): Fix typo in fatal_error message.
3057
3058 2011-10-19  Roland Stigge  <stigge@antcom.de>
3059
3060         PR translation/49517
3061         * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
3062
3063 2011-10-19  Richard Guenther  <rguenther@suse.de>
3064
3065         PR middle-end/50768
3066         * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
3067
3068 2011-10-19  Andrey Belevantsev  <abel@ispras.ru>
3069
3070         PR rtl-optimization/50340
3071         * sel-sched-ir.c (update_target_availability): LHS register
3072         availability is not known if the unavailable LHS of the other
3073         expression is a different register.
3074
3075 2011-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3076
3077         PR target/50310
3078         * config/spu/spu.c (spu_emit_vector_compare): Support unordered
3079         floating-point comparisons.
3080
3081 2011-10-19  Jan Hubicka  <jh@suse.cz>
3082
3083         * cgraphunit.c (handle_alias_pairs): Also handle wekref with
3084         destination declared.
3085         (output_weakrefs): New function.
3086         * varpool.c (varpool_create_variable_alias): Handle external aliases.
3087
3088 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
3089
3090         * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
3091         second argument instead of mode.
3092
3093 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
3094
3095         * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
3096         mode SUBREG of operands[0] as target.
3097         (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
3098         (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
3099         (expand_vec_perm_1): Handle identity and some broadcast
3100         permutations.
3101         (expand_vec_perm_interleave2): Handle also 32-byte modes, using
3102         vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
3103         For d->testing_p return true earlier to avoid creating more GC
3104         garbage.
3105         (expand_vec_perm_vpermq_perm_1): New function.
3106         (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
3107         earlier to avoid creating more GC garbage.  Fix handling of
3108         V16HImode.  Avoid some SUBREGs in SET_DEST.
3109         (expand_vec_perm_broadcast_1): Return false for 32-byte integer
3110         vector modes.
3111         (expand_vec_perm_vpshufb4_vpermq2): New function.
3112         (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
3113         and expand_vec_perm_vpshufb4_vpermq2.
3114
3115 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
3116
3117         * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
3118         before exiting.
3119
3120 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
3121
3122         PR tree-optimization/50717
3123         * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
3124         parameter.  Calculate 'type' from stmt.
3125         (convert_mult_to_widen): Update call the is_widening_mult_p.
3126         (convert_plusminus_to_widen): Likewise.
3127
3128 2011-10-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3129
3130         * config/spu/spu.c (struct machine_function): New data structure.
3131         (spu_init_machine_status): New function.
3132         (spu_option_override): Install it.
3133         (get_pic_reg): Set and use cfun->machine->pic_reg.
3134         (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
3135         (need_to_save_reg): Use cfun->machine->pic_reg instead of
3136         checking crtl->uses_pic_offset_table.
3137         (spu_expand_prologue): Likewise.
3138
3139 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
3140
3141         PR tree-optimization/50735
3142         * function.c (gimplify_parameters): Use create_tmp_var instead of
3143         create_tmp_reg.  If parm is not TREE_ADDRESSABLE and type is complex
3144         or vector type, set DECL_GIMPLE_REG_P.
3145
3146 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
3147
3148         * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
3149         * config/arm/arm.opt: Add 'native' processor_type and
3150         arm_arch enum values.
3151         * config/arm/arm.h (host_detect_local_cpu): New prototype.
3152         (EXTRA_SPEC_FUNCTIONS): New define.
3153         (MCPU_MTUNE_NATIVE_SPECS): New define.
3154         (DRIVER_SELF_SPECS): New define.
3155         * config/arm/driver-arm.c: New file.
3156         * config/arm/x-arm: New file.
3157         * doc/invoke.texi (ARM Options): Document -mcpu=native,
3158         -mtune=native and -march=native.
3159
3160 2011-10-18  Alexander Monakov  <amonakov@ispras.ru>
3161
3162         PR rtl-optimization/50205
3163         * sel-sched.c (count_occurrences_1): Simplify on the assumption that
3164         p->x is a register.  Forbid substitution when the same register is
3165         found in a different mode.
3166         (count_occurrences_equiv): Assert that 'what' is a register.
3167
3168 2011-10-18  Richard Guenther  <rguenther@suse.de>
3169
3170         PR tree-optimization/50767
3171         * tree-ssa-pre.c (create_expression_by_pieces): Update the
3172         folded statement.
3173
3174 2011-10-18  Julian Brown  <julian@codesourcery.com>
3175
3176         * config/arm/arm.c (arm_block_move_unaligned_straight)
3177         (arm_adjust_block_mem, arm_block_move_unaligned_loop)
3178         (arm_movmemqi_unaligned): New.
3179         (arm_gen_movmemqi): Support unaligned block copies.
3180
3181 2011-10-18  Ira Rosen  <ira.rosen@linaro.org>
3182
3183         * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
3184         vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
3185         * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
3186         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
3187         (op_code_prio): Likewise.
3188         (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
3189         * optabs.c (optab_for_tree_code): Handle
3190         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
3191         (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
3192         * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
3193         * genopinit.c (optabs): Initialize the new optabs.
3194         * expr.c (expand_expr_real_2): Handle
3195         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
3196         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
3197         * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
3198         * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
3199         VEC_WIDEN_LSHIFT_LO_EXPR): New.
3200         * cfgexpand.c (expand_debug_expr): Handle new tree codes.
3201         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3202         vect_recog_widen_shift_pattern.
3203         (vect_handle_widen_mult_by_const): Rename...
3204         (vect_handle_widen_op_by_const): ...to this.  Handle shifts.
3205         Add a new argument, update documentation.
3206         (vect_recog_widen_mult_pattern): Assume that only second
3207         operand can be constant.  Update call to
3208         vect_handle_widen_op_by_const.
3209         (vect_recog_over_widening_pattern): Fix typo.
3210         (vect_recog_widen_shift_pattern): New.
3211         * tree-vect-stmts.c (vectorizable_type_promotion): Handle
3212         widening shifts.
3213         (supportable_widening_operation): Likewise.
3214         * tree-inline.c (estimate_operator_cost): Handle new tree codes.
3215         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
3216         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
3217         * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
3218         (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
3219         vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
3220         Likewise.
3221         * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
3222         New.
3223         * config/arm/iterators.md (V_innermode): New.
3224         * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
3225         for widening shift.
3226
3227 2011-10-18  Richard Guenther  <rguenther@suse.de>
3228
3229         * tree-ssa-alias.h (struct pt_solution): Remove
3230         vars_contains_restrict member.
3231         (pt_solutions_same_restrict_base): Remove.
3232         (pt_solution_set): Adjust.
3233         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
3234         vars_contains_restrict handling.
3235         (dump_points_to_solution): Likewise.
3236         (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
3237         * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
3238         field.
3239         (new_var_info): Do not initialize it.
3240         (ipa_escaped_pt): Adjust.
3241         (make_constraint_from_restrict): Make the tag global.
3242         (make_constraint_from_global_restrict): New function.
3243         (make_constraint_from_heapvar): Remove.
3244         (create_variable_info_for): Do not make restrict vars point
3245         to NONLOCAL.
3246         (intra_create_variable_infos): Likewise.
3247         (find_what_var_points_to): Remove vars_contains_restrict handling.
3248         (pt_solution_set): Adjust.
3249         (pt_solution_ior_into): Likewise.
3250         (pt_solutions_same_restrict_base): Remove.
3251         (compute_points_to_sets): Do not test is_restrict_var.
3252         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
3253         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
3254
3255 2011-10-18  Tom de Vries  <tom@codesourcery.com>
3256
3257         PR tree-optimization/50672
3258         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
3259         factored out of ...
3260         (mark_virtual_phi_result_for_renaming): Use
3261         mark_virtual_operand_for_renaming.
3262         * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
3263         * tree-ssa-tail-merge.c (release_last_vdef): New function.
3264         (purge_bbs): Add update_vops parameter.  Call release_last_vdef for each
3265         deleted basic block.
3266         (tail_merge_optimize): Add argument to call to purge_bbs.
3267
3268 2011-10-18  Richard Guenther  <rguenther@suse.de>
3269
3270         PR middle-end/50716
3271         * expr.c (get_object_or_type_alignment): New function.
3272         (expand_assignment): Use it.
3273         (expand_expr_real_1): Likewise.
3274
3275 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
3276
3277         PR bootstrap/50760
3278         * input.c (dump_line_table_statistics): Use long, not size_t.
3279
3280 2011-10-17  Eric Botcazou  <ebotcazou@adacore.com>
3281
3282         * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
3283
3284 2011-10-17  Simon Baldwin  <simonb@google.com>
3285             Ian Lance Taylor  <iant@google.com>
3286
3287         * configure.ac: Add --with-native-system-header-dir.  Set and
3288         substitute NATIVE_SYSTEM_HEADER_DIR.  Use native_system_header
3289         when setting target_header_dir.
3290         * config.gcc: Always set native_system_header_dir.
3291         (*-*-gnu*): Set native_system_header_dir.  Don't use t-gnu.
3292         (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir.  Don't
3293         use i386/t-djgpp.
3294         (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
3295         native_system_header_dir.
3296         (spu-*-elf*): Set native_system_header_dir.
3297         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
3298         @NATIVE_SYSTEM_HEADER_DIR@.
3299         (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
3300         * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
3301         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
3302         STANDARD_INCLUDE_COMPONENT.
3303         (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR.  Rename
3304         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
3305         * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
3306         STANDARD_INCLUDE_COMPONENT.
3307         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
3308         * config/i386/t-mingw-w32: Likewise.
3309         * config/i386/t-mingw-w64: Likewise.
3310         * config/spu/t-spu-elf: Likewise.
3311         * config/i386/t-djgpp: Remove.
3312         * config/t-gnu: Remove.
3313         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
3314         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
3315         STANDARD_INCLUDE_COMPONENT.
3316         * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
3317         * config/spu/spu-elf.h: Likewise.
3318         * config/vms/xm-vms.h: Likewise.
3319         * config/gnu.h: Likewise.
3320         * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
3321         and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
3322         NATIVE_SYSTME_HEADER_COMPONENT.
3323         * doc/install.texi (Configuration): Document
3324         --with-native-system-header-dir.  Mention it in the documentation
3325         for --with-sysroot and --with-build-sysroot.
3326         * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
3327         STANDARD_INCLUDE_DIR.  Rename STANDARD_INCLUDE_COMPONENT to
3328         NATIVE_SYSTEM_HEADER_COMPONENT.  Rename uses of
3329         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
3330         * doc/fragments.texi (Target Fragment): Don't document
3331         NATIVE_SYSTEM_HEADER_DIR.
3332         * configure, doc/tm.texi: Rebuild.
3333
3334 2011-10-17  Richard Henderson  <rth@redhat.com>
3335
3336         * config/sparc/sparc.md: Use register_or_zero_operand where rJ
3337         is the constraint.
3338
3339         * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
3340         patterns.
3341         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
3342         * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
3343
3344 2011-10-17  David S. Miller  <davem@davemloft.net>
3345
3346         * config/sparc/sparc-modes.def: Add single entry vector modes for
3347         DImode and SImode.
3348         * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
3349         mode iterators.
3350         (mov<V32:mode>): Revert back to plain SFmode pattern.
3351         (*movsf_insn): Likewise.
3352         (mov<V64:mode>): Revert back to plain DFmode pattern.
3353         (*movdf_insn_sp32): Likewise.
3354         (*movdf_insn_sp32_v9): Likewise.
3355         (*movdf_insn_sp64): Likewise.
3356         (V64 mode splitters) Likewise.
3357         (addsi3): Remove VIS alternatives.
3358         (subsi3): Likewise.
3359         (and<V64I:mode>3): Revert to DImode only pattern.
3360         (and<V64I:mode>3_sp32): Likewise.
3361         (*and<V64I:mode>3_sp64): Likewise.
3362         (and<V32I:mode>3): Likewise.
3363         (*and_not_<V64I:mode>_sp32): Likewise.
3364         (*and_not_<V64I:mode>_sp64): Likewise.
3365         (*and_not_<V32I:mode>): Likewise.
3366         (ior<V64I:mode>3): Likewise.
3367         (*ior<V64I:mode>3_sp32): Likewise.
3368         (*ior<V64I:mode>3_sp64): Likewise.
3369         (ior<V32I:mode>3): Likewise.
3370         (*or_not_<V64I:mode>_sp32): Likewise.
3371         (*or_not_<V64I:mode>_sp64): Likewise.
3372         (*or_not_<V32I:mode>): Likewise.
3373         (xor<V64I:mode>3): Likewise.
3374         (*xor<V64I:mode>3_sp32): Likewise.
3375         (*xor<V64I:mode>3_sp64): Likewise.
3376         (xor<V32I:mode>3): Likewise.
3377         (V64I mode splitters): Likewise.
3378         (*xor_not_<V64I:mode>_sp32): Likewise.
3379         (*xor_not_<V64I:mode>_sp64): Likewise.
3380         (*xor_not_<V32I:mode>): Likewise.
3381         (one_cmpl<V64I:mode>2): Likewise.
3382         (*one_cmpl<V64I:mode>2_sp32): Likewise.
3383         (*one_cmpl<V64I:mode>2_sp64): Likewise.
3384         (one_cmpl<V32I:mode>2): Likewise.
3385         (VM32, VM64, VMALL): New mode iterators.
3386         (vbits, vconstr, vfptype): New mode attributes.
3387         (mov<VMALL:mode>): New expander.
3388         (*mov<VM32:mode>_insn): New insn.
3389         (*mov<VM64:mode>_insn_sp64): New insn.
3390         (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
3391         specifically for the register to memory case.
3392         (vec_init<mode>): New expander.
3393         (VADDSUB): New mode iterator.
3394         (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
3395         with...
3396         (<plusminus_insn><mode>3): New consolidated pattern.
3397         (VL): New mode iterator for logical operations.
3398         (vlsuf): New more attribute.
3399         (vlop): New code iterator.
3400         (vlinsn, vlninsn): New code attributes.
3401         (<code><mode>3): New insn to non-negated vector logical ops.
3402         (*not_<code><mode>3): Likewise for negated variants.
3403         (*nand<mode>_vis): New insn.
3404         (vlnotop): New code iterator.
3405         (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
3406         (one_cmpl<mode>2): New insn.
3407         (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
3408         (bshuffle<VM64:mode>_vis): Likewise.
3409         (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
3410         (fp<plusminus_insn>64_vis): Use V1DI mode.
3411         (VASS mode iterator): Use V1SI not SI mode.
3412         * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
3413         single-entry vector mode changes.
3414         (sparc_expand_builtin): Likewise.
3415         (sparc_expand_vector_init): New function.
3416         * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
3417
3418 2011-10-17  Kai Tietz  <ktietz@redhat.com>
3419
3420         * fold-const.c (simple_operand_p_2): New function.
3421         (fold_truthop): Rename to
3422         (fold_truth_andor_1): function name.
3423         Additionally remove branching creation for logical and/or.
3424         (fold_truth_andor): Handle branching creation for logical and/or here.
3425
3426 2011-10-17  Andi Kleen  <ak@linux.intel.com>
3427
3428         * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
3429
3430 2011-10-17  Georg-Johann Lay  <avr@gjlay.de>
3431
3432         * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
3433         * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
3434         (adjust_len): Add alternative "call".
3435         (isa, enabled): New insn attributes.
3436         (length): Use match_test with AVR_HAVE_JMP_CALL instead of
3437         mcu_mega attribute.
3438         (*sbrx_branch<mode>): Ditto.
3439         (*sbrx_and_branch<mode>): Ditto.
3440         (*sbix_branch): Ditto.
3441         (*sbix_branch_bit7): Ditto.
3442         (*sbix_branch_tmp): Ditto.
3443         (*sbix_branch_tmp_bit7): Ditto.
3444         (jump): Ditto.
3445         (negsi2): Use attribute "isa" instead of assembler dialect.
3446         (extendhisi2): Ditto.
3447         (call_insn, call_value_insn): Set adjust_len attribute.
3448         (indirect_jump): Indent to coding rules.
3449         (call_prologue_saves): Use isa attribute instead of mcu_mega.
3450         (epilogue_restores): Ditto.  Fix setting of SP as described in the
3451         RTX pattern.
3452         (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
3453         and *indirect_jump_avr6.
3454         (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
3455         (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
3456         (*tablejump_rjmp, *tablejump_lib): Remove.
3457         * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
3458
3459 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
3460
3461         PR c++/50757
3462         * doc/invoke.texi ([Wnonnull]): Update.
3463
3464 2011-10-17  Richard Henderson  <rth@redhat.com>
3465
3466         PR 50746
3467         * optabs.c (expand_vec_perm_expr): Fix indexing error.
3468
3469 2011-10-17  Sergio Durigan Junior  <sergiodj@redhat.com>
3470
3471         * configure.ac: Display `yes' if the SystemTap header has been found.
3472         * configure: Regenerate.
3473
3474 2011-10-08  Andi Kleen  <ak@linux.intel.com>
3475
3476         PR other/50636
3477         * config.in, configure: Regenerate.
3478         * configure.ac (madvise): Add to AC_CHECK_FUNCS.
3479         * ggc-page.c (USING_MADVISE): Add.
3480         (page_entry): Add discarded field.
3481         (alloc_page): Check for discarded pages.
3482         (release_pages): Add USING_MADVISE branch.
3483
3484 2011-10-17  Richard Guenther  <rguenther@suse.de>
3485
3486         PR tree-optimization/50729
3487         * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
3488         (simplify_conversion_using_ranges): Properly test the
3489         intermediate result.
3490
3491 2011-10-15  Tom Tromey  <tromey@redhat.com>
3492             Dodji Seketeli  <dodji@redhat.com>
3493
3494         * ggc.h (ggc_round_alloc_size): Declare new public entry point.
3495         * ggc-none.c (ggc_round_alloc_size): New public stub function.
3496         * ggc-page.c (ggc_alloced_size_order_for_request): New static
3497         function.  Factorized from ggc_internal_alloc_stat.
3498         (ggc_round_alloc_size): New public function.  Uses
3499         ggc_alloced_size_order_for_request.
3500         (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
3501         * ggc-zone.c (ggc_round_alloc_size): New public function extracted
3502         from ggc_internal_alloc_zone_stat.
3503         (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
3504         * toplev.c (general_init): Initialize
3505         line_table->alloced_size_for_request.
3506
3507 2011-10-15  Tom Tromey  <tromey@redhat.com>
3508             Dodji Seketeli  <dodji@redhat.com>
3509
3510         * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
3511         (num_expanded_macros_counter, num_macro_tokens_counter): Declare
3512         new counters.
3513         (dump_line_table_statistics): Define new function.
3514         * input.h (dump_line_table_statistics): Declare new function.
3515         * toplev.c (dump_memory_report): Call dump_line_table_statistics.
3516
3517 2011-10-15  Tom Tromey  <tromey@redhat.com>
3518             Dodji Seketeli  <dodji@redhat.com>
3519
3520         * doc/cppopts.texi: Document -fdebug-cpp.
3521         * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
3522
3523 2011-10-15  Tom Tromey  <tromey@redhat.com>
3524             Dodji Seketeli  <dodji@redhat.com>
3525
3526         * gcc/diagnostic.h (diagnostic_report_current_module): Add a
3527         location parameter.
3528         * diagnostic.c (diagnostic_report_current_module): Add a location
3529         parameter to the function definition.  Use it instead of
3530         input_location.  Resolve the virtual location rather than just
3531         looking up its map and risking to touch a resulting macro map.
3532         (default_diagnostic_starter): Pass the relevant diagnostic
3533         location to diagnostic_report_current_module.
3534         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
3535         (virt_loc_aware_diagnostic_finalizer): Likewise.
3536         (diagnostic_report_current_function): Pass the
3537         relevant location to diagnostic_report_current_module.
3538         * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
3539         new function.
3540         * toplev.c (general_init): By default, use the new
3541         virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
3542         * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
3543
3544 2011-10-15  Tom Tromey  <tromey@redhat.com>
3545             Dodji Seketeli  <dodji@redhat.com>
3546
3547         * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
3548         * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
3549         preprocessor related options.
3550
3551 2011-10-15  Tom Tromey  <tromey@redhat>
3552             Dodji Seketeli  <dodji@redhat.com>
3553
3554         * input.h (struct expanded_location): Move to libcpp/line-map.h.
3555         (LOCATION_COLUMN): New accessor
3556         (in_system_header_at): Use linemap_location_in_system_header_p.
3557         * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
3558         touching the internals of struct line_map.  Use the public API instead.
3559         (diagnostic_report_diagnostic): Don't use relational operator '<'
3560         on virtual locations.  Use linemap_location_before_p instead.
3561         * input.c (expand_location): Adjust to expand to the tokens'
3562         spelling location when macro location tracking is on.
3563
3564
3565 2011-10-08  Andi Kleen  <ak@linux.intel.com>
3566
3567         * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
3568
3569 2011-10-13  Andi Kleen  <ak@linux.intel.com>
3570
3571         * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
3572
3573 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
3574
3575         PR tree-optimization/50727
3576         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
3577         DEF_STMT to the list of statements to be replaced by the
3578         pattern statements.
3579
3580 2011-10-16  Eric Botcazou  <ebotcazou@adacore.com>
3581
3582         PR rtl-optimization/50615
3583         * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
3584
3585 2011-10-16  Jakub Jelinek  <jakub@redhat.com>
3586
3587         PR tree-optimization/50596
3588         * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
3589         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3590         vect_recog_bool_pattern.
3591         (check_bool_pattern, adjust_bool_pattern_cast,
3592         adjust_bool_pattern, vect_recog_bool_pattern): New functions.
3593
3594 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
3595
3596         * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
3597         treat the first load of the node as the first element in its
3598         interleaving chain.
3599         * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
3600         necessary and possible.
3601         (vect_build_slp_tree): Add new argument.  Allow load groups of any size
3602         in basic blocks.  Keep all the loads for further permutation check.
3603         Use the new argument to determine if there is a permutation.  Update
3604         the recursive calls.
3605         (vect_supported_load_permutation_p): Allow subchains of interleaving
3606         chains in basic block vectorization.
3607         (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
3608         Check load permutation based on the new parameter.
3609         (vect_schedule_slp_instance): Don't start from the first element in
3610         interleaving chain unless the loads are permuted.
3611
3612 2011-10-15  Jan Hubicka  <jh@suse.cz>
3613
3614         PR target/48668
3615         PR target/50689
3616         * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
3617         after function body.
3618
3619 2011-10-15  Richard Henderson  <rth@redhat.com>
3620
3621         * tree-vect-slp.c: Include langhooks.h.
3622         (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
3623         (vect_transform_slp_perm_load): Use can_vec_perm_expr_p.  Simplify
3624         mask creation for VEC_PERM_EXPR.
3625         * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
3626         not the builtin.
3627         (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
3628         * Makefile.in (tree-vect-slp.o): Update dependency.
3629         * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
3630
3631 2011-10-15  Alan Modra  <amodra@gmail.com>
3632
3633         PR bootstrap/50738
3634         * ifcvt.c (dead_or_predicable): Revert accidental commit with
3635         HAVE_simple_return test.
3636
3637 2011-10-15  Alan Modra  <amodra@gmail.com>
3638
3639         * ifcvt.c (dead_or_predicable): Disable if-conversion when
3640         doing so is likely to kill a shrink-wrapping opportunity.
3641
3642         PR rtl-optimization/49941
3643         * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
3644
3645         * rtl.h (set_return_jump_label): Declare.
3646         * function.c (set_return_jump_label): New function, extracted..
3647         (thread_prologue_and_epilogue_insns): ..from here.  Use it in
3648         another instance to set return jump_label.
3649         * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
3650         * reorg.c (find_end_label): Likewise.
3651
3652 2011-10-14  David S. Miller  <davem@davemloft.net>
3653
3654         * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
3655         with a more complete cpp test.
3656         * config/sparc/linux64.h: Likewise.
3657         * config/sparc/linux.h: Likewise.
3658         * config/sparc/sparc.opt (sparc_debug): New target variable.
3659         (mdebug): New target option.
3660         * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
3661         TARGET_DEBUG_OPTIONS): New defines.
3662         * config/sparc/sparc.c (debug_target_flag_bits,
3663         debug_target_flags): New functions.
3664         (sparc_option_override): Add name strings back to cpu_table[].
3665         Parse -mdebug string.  When TARGET_DEBUG_OPTIONS is true, print
3666         out the target flags before and after override processing as well
3667         as the selected cpu.  If MASK_V8PLUS, make sure that the selected
3668         cpu is at least v9.
3669
3670 2011-10-15  Oleg Endo  <oleg.endo@t-online.de>
3671
3672         PR target/49263
3673         * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
3674         * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
3675         * config/sh/sh.md (tstsi_t): Name existing insn.  Make inner
3676         and instruction commutative.
3677         (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
3678         tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
3679         tstsi_t_zero_extract_subreg_xor_little,
3680         tstsi_t_zero_extract_subreg_xor_big): New insns.
3681         (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
3682         asm output.
3683         (*andsi_compact): Reorder alternatives so that K08 is considered first.
3684
3685 2011-10-14  Eric Botcazou  <ebotcazou@adacore.com>
3686
3687         PR target/50354
3688         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
3689         processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
3690
3691 2011-10-14  Gerald Pfeifer  <gerald@pfeifer.com>
3692
3693         * invoke.texi (AVR Options): Avoid \leq{}.
3694
3695 2011-10-14  Kai Tietz  <ktietz@redhat.com>
3696
3697         * gimplify.c (gimplify_expr): Take care that for bitwise-binary
3698         transformation the operands have compatible types.
3699
3700 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
3701
3702         * config/i386/sse.md (vec_widen_smult_hi_v8hi,
3703         vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
3704         vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
3705         mode iterator and any_extend code iterator.
3706         (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
3707         (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
3708         also for TARGET_SSE4_1 using pmuldq insn.
3709         (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
3710         (sse2_sse4_1): New code attr.
3711         (udot_prodv4si): Macroize using any_extend code iterator.
3712         (<s>dot_prodv8si): New expander.
3713
3714 2011-10-14  Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
3715
3716         * config/i386/i386.c (atom_cost): Changed cost for loading
3717         QImode using movzbl.
3718
3719 2011-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3720
3721         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
3722         change on October 11th, 2011.
3723
3724 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
3725
3726         * config/i386/sse.md (vec_interleave_high<mode>,
3727         vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
3728         * config/i386/i386.c (expand_vec_perm_interleave3): New function.
3729         (ix86_expand_vec_perm_builtin_1): Call it.
3730
3731 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
3732
3733         Fix thinko from r179765
3734         * config/avr/avr.c (avr_option_override): Don't override
3735         flag_omit_frame_pointer if not actually needed.
3736
3737 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
3738
3739         PR target/46278
3740         * doc/invoke.texi (AVR Options): Document -mstrict-X.
3741
3742         * config/avr/avr.opt (-mstrict-X): New option.
3743         (avr_strict_X): New variable reflecting -mstrict-X.
3744         * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
3745         outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
3746         (avr_legitimate_address_p): Pass outer_code to
3747         avr_reg_ok_for_addr_p and use that function in case PLUS.
3748         (avr_mode_code_base_reg_class): Depend on avr_strict_X.
3749         (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
3750         (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
3751
3752 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
3753
3754         * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
3755         of VI_128.
3756
3757         * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
3758         (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
3759         Use <sseinsnmode> instead of TI in mode attr.
3760
3761 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
3762
3763         * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
3764         * config/arm/linux-atomic.c: Change comment to point to 64bit version.
3765         (SYNC_LOCK_RELEASE): Instantiate 64bit version.
3766         * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
3767
3768 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
3769
3770         * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
3771         (arm_output_strex): Support strexd.
3772         (arm_output_it): New helper to output it in Thumb2 mode only.
3773         (arm_output_sync_loop): Support DI mode.  Change comment to
3774         not support const_int.
3775         (arm_expand_sync): Support DI mode.
3776         * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
3777         and LDREXD.
3778         * config/arm/iterators.md (NARROW): move from sync.md.
3779         (QHSD): New iterator for all current ARM integer modes.
3780         (SIDI): New iterator for SI and DI modes only.
3781         * config/arm/sync.md (sync_predtab): New mode_attr.
3782         (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
3783         (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
3784         (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
3785         (sync_nandsi): Fold into sync_nand<mode>.
3786         (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
3787         (sync_new_nandsi): Fold into sync_new_nand<mode>.
3788         (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
3789         (sync_old_nandsi): Fold into sync_old_nand<mode>.
3790         (sync_compare_and_swap<mode>): Support SI & DI.
3791         (sync_lock_test_and_set<mode>): Likewise.
3792         (sync_<sync_optab><mode>): Likewise.
3793         (sync_nand<mode>): Likewise.
3794         (sync_new_<sync_optab><mode>): Likewise.
3795         (sync_new_nand<mode>): Likewise.
3796         (sync_old_<sync_optab><mode>): Likewise.
3797         (sync_old_nand<mode>): Likewise.
3798         (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
3799         (arm_sync_lock_test_and_setsi): Likewise.
3800         (arm_sync_new_<sync_optab>si): Likewise.
3801         (arm_sync_new_nandsi): Likewise.
3802         (arm_sync_old_<sync_optab>si): Likewise.
3803         (arm_sync_old_nandsi): Likewise.
3804         (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
3805         (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
3806         (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
3807         (arm_sync_new_nand<mode> NARROW): Likewise.
3808         (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
3809         (arm_sync_old_nand<mode> NARROW): Likewise.
3810
3811 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
3812
3813         PR target/48126
3814         * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
3815
3816 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
3817
3818         * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
3819
3820 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
3821
3822         * doc/invoke.texi ([Wformat-zero-length]): Tidy.
3823
3824 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
3825
3826         * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
3827         on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
3828
3829 2011-10-14  Richard Guenther  <rguenther@suse.de>
3830
3831         PR tree-optimization/50723
3832         * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
3833
3834 2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3835
3836         * gengtype.c (files_rules): Added rules for objc/objc-map.h and
3837         objc/objc-map.c.
3838
3839 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
3840
3841         PR c++/17212
3842         * doc/invoke.texi ([Wformat-zero-length]): Update.
3843
3844 2011-10-14  Iain Sandoe  <iains@gcc.gnu.org>
3845
3846         PR bootstrap/50699
3847         * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
3848         build for powerpc targets.  (darwin_patch_builtins): Only build for
3849         powerpc targets.
3850
3851 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
3852
3853         * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
3854         (avx_cvtdq2pd256_2): ... this.
3855         (sseunpackfltmode): New mode attr.
3856         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
3857         vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
3858         using VI2_AVX2 iterator.
3859         (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
3860
3861 2011-10-13  David S. Miller  <davem@davemloft.net>
3862
3863         * config/sparc/sparc.md (plusminus): New code iterator.
3864         (plusminus_insn): New code attr.
3865         (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
3866         using plusminus and plusminus_insn.
3867         (fpadd64_vis, fpsub64_vis): Likewise.
3868
3869 2011-10-13  Richard Henderson  <rth@redhat.com>
3870
3871         * doc/md.texi (vec_perm): Document fallback to byte permutation.
3872         * genopinit.c (optabs): Add vec_perm_const.
3873         * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
3874         Reject non-vector modes.  Allow fallback to byte permutation.
3875         (expand_vec_perm_expr_1): Split out from ...
3876         (expand_vec_perm_expr): ... here.  Allow fallback to byte permutation.
3877         * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
3878         * tree-vect-generic.c (lower_vec_perm): Update for name change.
3879
3880 2011-10-13  Richard Henderson  <rth@redhat.com>
3881
3882         * config/rs6000/altivec.md (vec_permv16qi): New pattern.
3883
3884         * config/rs6000/spu.md (vec_permv16qi): New pattern.
3885
3886         * config/i386/i386.c (ix86_expand_vec_perm_const): New.
3887         * config/i386/i386-protos.h: Update.
3888         * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
3889         (vec_perm_const<VEC_PERM_CONST>): New expander.
3890
3891         * optabs.c (expand_vector_broadcast): New.
3892         (expand_binop): Expand scalar shifts of vectors to vector shifts
3893         of vectors, if the former isn't supported.
3894         * tree-vect-generic.c (expand_vector_operations_1): Don't do that
3895         here; always simplify to scalar shift of vector if possible.
3896
3897         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
3898         test for vector splat.
3899
3900 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
3901
3902         * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
3903
3904 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
3905             Richard Guenther  <rguenther@suse.de>
3906
3907         * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
3908         or complex vars even if their DECL_UID is in not_reg_needs bitmap.
3909
3910 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
3911
3912         * config/i386/sse.md (reduc_umin_v8hi): New pattern.
3913         * config/i386/i386.c (ix86_build_const_vector): Handle
3914         also V32QI, V16QI, V16HI and V8HI modes.
3915         (emit_reduc_half): New function.
3916         (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
3917         Use emit_reduc_half helper function.
3918
3919 2011-10-13  Lawrence Crowl  <crowl@google.com>
3920             Diego Novillo  <dnovillo@google.com>
3921
3922         * lto-streamer-in.c (input_struct_function_base): Factor out of ...
3923         (input_function): ... here.
3924         * lto-streamer-out.c (output_struct_function_base): Factor out of ...
3925         (output_function): ... here.
3926
3927 2011-10-13  Gabriel Charette  <gchare@google.com>
3928             Diego Novillo  <dnovillo@google.com>
3929
3930         * streamer-hooks.h (struct streamer_hooks): Add hooks
3931         input_location and output_location.
3932         * lto-streamer-in.c (lto_input_location): Use
3933         streamer_hooks.input_location, if set.
3934         * lto-streamer-out.c (lto_output_location): Use
3935         streamer_hooks.output_location, if set.
3936
3937 2011-10-13  Eric Botcazou  <ebotcazou@adacore.com>
3938
3939         * doc/invoke.texi (SPARC options): Document -mfix-at697f.
3940         * config/sparc/sparc.opt (mfix-at697f): New option.
3941         * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3942         (sparc_reorg): New function.
3943
3944 2011-10-13  Richard Guenther  <rguenther@suse.de>
3945
3946         PR tree-optimization/50712
3947         * ipa-split.c (split_function): Always re-gimplify parameters
3948         when they are not gimple vals before passing them.  Properly
3949         check for type compatibility.
3950
3951 2011-10-13  Tom de Vries  <tom@codesourcery.com>
3952
3953         * function.c (gimplify_parameters): Set number of arguments of call to
3954         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
3955
3956 2011-10-13  Tom de Vries  <tom@codesourcery.com>
3957
3958         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
3959         for static const strings.
3960         * varasm.c (build_constant_desc): Generate the memory location of the
3961         constant using gen_const_mem.
3962
3963 2011-10-13  Richard Guenther  <rguenther@suse.de>
3964
3965         PR tree-optimization/50698
3966         * tree-data-ref.c (split_constant_offset_1): Also process
3967         offsets of &MEM.
3968
3969 2011-10-12  David S. Miller  <davem@davemloft.net>
3970
3971         * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
3972         (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
3973         unspecs.
3974         (fpmerge_vis): Remove inaccurate comment, represent using vec_select
3975         of a vec_concat.
3976         (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
3977         (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
3978         Reimplement as unspecs and remove inaccurate comments.
3979         (vis3_shift_patname): New code attr.
3980         (<vis3_shift_insn><vbits>_vis): Rename to
3981         "v<vis3_shift_patname><mode>3".
3982         (vis3_addsub_ss_patname): New code attr.
3983         (<vis3_addsub_ss_insn><vbits>_vis): Rename to
3984         "<vis3_addsub_ss_patname><mode>3".
3985         * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
3986         accommodate pattern name changes.
3987
3988         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
3989         to zero when assembler lacks support for such instructions.
3990         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
3991         and MASK_FMAF in defaults when assembler lacks necessary support.
3992
3993 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
3994
3995         * config/i386/sse.md (vec_unpacks_lo_<mode>,
3996         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
3997         vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
3998         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
3999         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
4000
4001         * config/i386/sse.md (vec_avx2): New mode_attr.
4002         (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
4003         (mul<mode>3): ... this.
4004
4005         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
4006         * config/i386/i386.c (ix86_expand_vec_perm): Handle
4007         V16QImode and V32QImode for TARGET_AVX2.
4008         (MAX_VECT_LEN): Increase to 32.
4009         (expand_vec_perm_blend): Add support for 32-byte integer
4010         vectors with TARGET_AVX2.
4011         (valid_perm_using_mode_p): New function.
4012         (expand_vec_perm_pshufb): Add support for 32-byte integer
4013         vectors with TARGET_AVX2.
4014         (expand_vec_perm_vpshufb2_vpermq): New function.
4015         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
4016         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
4017         with TARGET_AVX2.
4018         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
4019         and expand_vec_perm_vpshufb2_vpermq_even_odd.
4020         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
4021         32-byte integer vector modes.
4022         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
4023         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
4024         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
4025         4 new operands.
4026         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
4027         match_dup, instead add 4 new operands and require they have
4028         right cross-lane values.
4029         (avx2_permv4di): Change into define_expand.
4030         (avx2_permv4di_1): New instruction.
4031         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
4032         for "xm" constrained operand.
4033         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
4034
4035         * config/i386/sse.md (avx2_gathersi<mode>,
4036         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
4037         match_scratch, change memory_operand to register_operand,
4038         add (mem:BLK (scratch)) use.
4039         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
4040         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
4041         add earlyclobber to the output operand and match_scratch,
4042         add (mem:BLK (scratch)) use, change the other mem to match_operand.
4043         Use %p6 instead of %c6 in the pattern.
4044         * config/i386/i386.c (ix86_expand_builtin): Adjust for
4045         operand 2 being a Pmode register_operand instead of memory_operand.
4046
4047 2011-10-12  Kai Tietz  <ktietz@redhat.com>
4048
4049         * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
4050
4051 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
4052
4053         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
4054
4055 2011-10-12  Richard Guenther  <rguenther@suse.de>
4056
4057         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
4058         of the first store we visit in a basic-block.
4059         (get_continuation_for_phi): Search for a candidate VUSE that
4060         might dominates all others.  Do pairwise disambiguation against
4061         that candidate.
4062
4063 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
4064
4065         PR tree-optimization/50189
4066         * tree-vrp.c (extract_range_from_assert): Use the type of
4067         the variable, not the limit.
4068
4069 2011-10-12  Richard Guenther  <rguenther@suse.de>
4070
4071         PR tree-optimization/50700
4072         * tree-object-size.c (addr_object_size): Simplify and treat
4073         MEM_REF bases consistently.
4074
4075 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
4076
4077         * function.c (prepare_shrink_wrap, bb_active_p): New function.
4078         (thread_prologue_and_epilogue_insns): Use bb_active_p.  Call
4079         prepare_shrink_wrap, then recompute bb_active_p for the last block.
4080
4081 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
4082
4083         PR c/50565
4084         * convert.c (convert_to_integer): Do not narrow operands of
4085         pointer subtraction.
4086
4087 2011-10-12  Nick Clifton  <nickc@redhat.com>
4088
4089         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
4090         emit a .eabi_attribute assembler directive, possibly with a
4091         comment attached.
4092         * config/arm/arm.c (arm_file_start): Use the new macro.
4093         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
4094
4095 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
4096
4097         PR target/49939
4098         * config/avr/avr.md (*movqi): Rename to movqi_insn.
4099         (*call_insn): Rename to call_insn.
4100         (*call_value_insn): Rename to call_value_insn.
4101         * config/avr/avr.c (avr_2word_insn_p): New static function.
4102         (jump_over_one_insn_p): Use it.
4103
4104 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
4105
4106         * expr.h (copy_blkmode_to_reg): Declare.
4107         * expr.c (copy_blkmode_to_reg): New function.
4108         (expand_assignment): Don't expand register RESULT_DECLs before
4109         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
4110         RESULT_DECL register.
4111         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
4112         * stmt.c (expand_return): Move BLKmode-to-register code into
4113         copy_blkmode_to_reg.
4114
4115 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
4116
4117         PR target/49965
4118         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
4119         (mov<F:mode>cc): Likewise.
4120
4121 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4122
4123         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
4124
4125 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4126
4127         * tree.h (built_in_decls): Delete old interface with two parallel
4128         arrays to hold standard builtin declarations, and replace it with
4129         a function based interface that can support creating builtins on
4130         the fly in the future.  Change all uses, and poison the old
4131         names.  Make sure 0 is not a legitimate builtin index.
4132         (implicit_built_in_decls): Ditto.
4133         (built_in_info): Ditto.
4134         (BUILTIN_VALID_P): Ditto.
4135         (builtin_decl_explicit): Ditto.
4136         (builtin_decl_implicit): Ditto.
4137         (set_builtin_decl): Ditto.
4138         (set_builtin_decl_implicit_p): Ditto.
4139         (builtin_decl_explicit_p): Ditto.
4140         (builtin_decl_implicit_p): Ditto.
4141         * tree-complex.c (expand_complex_libcall): Ditto.
4142         * tree-loop-distribution.c (generate_memset_zero): Ditto.
4143         * tree-ssa-strlen.c (get_string_length): Ditto.
4144         (handle_builtin_strcpy): Ditto.
4145         (handle_builtin_strcat): Ditto.
4146         * tree.c (iterative_hash_expr): Ditto.
4147         (local_define_builtin): Ditto.
4148         (build_common_builtin_nodes): Ditto.
4149         * builtins.c (built_in_decls): Ditto.
4150         (implicit_built_in_decls): Ditto.
4151         (built_in_info): Ditto
4152         (expand_builtin_classify_type): Ditto.
4153         (mathfn_built_in_1): Ditto.
4154         (expand_builtin_cexpi): Ditto.
4155         (expand_builtin_mempcpy_args): Ditto.
4156         (expand_builtin_stpcpy): Ditto.
4157         (gimplify_va_arg_expr): Ditto.
4158         (expand_builtin_sync_operation): Ditto.
4159         (build_builtin_expect_predicate): Ditto.
4160         (fold_builtin_memory_op): Ditto.
4161         (fold_builtin_strcpy): Ditto.
4162         (fold_builtin_stpcpy): Ditto.
4163         (fold_builtin_strncpy): Ditto.
4164         (fold_builtin_interclass_mathfn): Ditto.
4165         (fold_builtin_classify): Ditto.
4166         (fold_builtin_2): Ditto.
4167         (fold_builtin_strstr): Ditto.
4168         (fold_builtin_strrchr): Ditto.
4169         (fold_builtin_strpbrk): Ditto.
4170         (fold_builtin_strcat): Ditto.
4171         (fold_builtin_strncat): Ditto.
4172         (fold_builtin_strcspn): Ditto.
4173         (fold_builtin_fputs): Ditto.
4174         (fold_builtin_sprintf): Ditto.
4175         (fold_builtin_snprintf): Ditto.
4176         (expand_builtin_memory_chk): Ditto.
4177         (fold_builtin_memory_chk): Ditto.
4178         (fold_builtin_stxcpy_chk): Ditto.
4179         (fold_builtin_strncpy_chk): Ditto.
4180         (fold_builtin_strcat_chk): Ditto.
4181         (fold_builtin_strncat_chk): Ditto.
4182         (fold_builtin_sprintf_chk_1): Ditto.
4183         (fold_builtin_snprintf_chk_1): Ditto.
4184         (fold_builtin_printf): Ditto.
4185         (fold_builtin_fprintf): Ditto.
4186         (fold_call_stmt): Ditto.
4187         (set_builtin_user_assembler_name): Ditto.
4188         * tree-emutls.c (emutls_common_1): Ditto.
4189         * omp-low.c (scan_omp): Ditto.
4190         (lower_rec_input_clauses): Ditto.
4191         (lower_reduction_clauses): Ditto.
4192         (expand_parallel_call): Ditto.
4193         (expand_task_call): Ditto.
4194         (maybe_catch_exception): Ditto.
4195         (optimize_omp_library_calls): Ditto.
4196         (expand_omp_for_generic): Ditto.
4197         (expand_omp_for_static_nochunk): Ditto.
4198         (expand_omp_for_static_chunk): Ditto.
4199         (expand_omp_sections): Ditto.
4200         (expand_omp_atomic_fetch_op): Ditto.
4201         (expand_omp_atomic_pipeline): Ditto.
4202         (expand_omp_atomic_mutex): Ditto.
4203         (lower_omp_single_simple): Ditto.
4204         (lower_omp_single_copy): Ditto.
4205         (lower_omp_master): Ditto.
4206         (lower_omp_ordered): Ditto.
4207         (lower_omp_critical): Ditto.
4208         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
4209         * builtins.c (DEF_BUILTIN_STUB): Ditto.
4210         (BUILT_IN_NONE): Ditto.
4211         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
4212         * gimple-low.c (lower_function_body): Ditto.
4213         (lower_builtin_setjmp): Ditto.
4214         * c-decl.c (merge_decls): Ditto.
4215         * tree-eh.c (lower_resx): Ditto.
4216         (lower_resx): Ditto.
4217         (lower_eh_dispatch): Ditto.
4218         * function (gimplify_parameters): Ditto.
4219         * c-typeck.c (build_function_call_vec): Ditto.
4220         * gimplify.c (build_stack_save_restore): Ditto.
4221         (gimplify_vla_decl): Ditto.
4222         (gimplify_modify_expr_to_memcpy): Ditto.
4223         (gimplify_modify_expr_to_memset): Ditto.
4224         (gimplify_variable_sized_compare): Ditto.
4225         (gimplify_function_tree): Ditto.
4226         * calls.c (emit_call_1): Ditto.
4227         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
4228         * tree-nested.c (convert_nl_goto_reference): Ditto.
4229         (convert_tramp_reference_op): Ditto.
4230         (finalize_nesting_tree_1): Ditto.
4231         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
4232         (tree_ssa_prefetch_arrays): Ditto.
4233         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
4234         * system.h (built_in_decls): Ditto.
4235         (implicit_built_in_decls): Ditto.
4236         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
4237         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
4238         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
4239         (ix86_veclibabi_svml): Ditto.
4240         (ix86_veclibabi_acml): Ditto.
4241         * config/vms/vms.c (vms_patch_builtins): Ditto.
4242         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
4243         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
4244         (rs6000_builtin_vectorized_libmass): Ditto.
4245         (rs6000_init_builtins): Ditto.
4246         * config/darwin.c (darwin_override_options): Ditto.
4247         (darwin_patch_builtin): Ditto.
4248         (darwin_rename_builtins): Ditto.
4249         * config/pa/pa.c (pa_init_builtins): Ditto.
4250
4251 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4252
4253         * tree.h (copy_ref_info): Expose existing function.
4254         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
4255         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
4256
4257 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
4258
4259         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
4260         prototype.
4261         (avr_regno_mode_code_ok_for_base_p): New prototype.
4262         * config/avr/avr.h (BASE_REG_CLASS): Remove.
4263         (REGNO_OK_FOR_BASE_P): Remove.
4264         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
4265         (REG_OK_FOR_BASE_STRICT_P): Remove.
4266         (MODE_CODE_BASE_REG_CLASS): New define.
4267         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
4268         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
4269         (avr_regno_mode_code_ok_for_base_p): New function.
4270         (avr_reg_ok_for_addr_p): New static function.
4271         (avr_legitimate_address_p): Use it.  Beautify.
4272
4273 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
4274
4275         PR target/50447
4276         * config/avr/avr.md (cc): Add out_plus attribute alternative.
4277         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
4278         avr_out_plus for all CONST_INT addends.
4279         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
4280         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
4281         CC_OUT_PLUS.
4282         (avr_out_plus_1): Change prototype and report effect on cc0.
4283         (avr_out_plus): Ditto.
4284         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
4285
4286 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
4287
4288         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
4289         the extra break.
4290
4291 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
4292
4293         * doc/invoke.texi: Document new warning.
4294         * common.opt (Wvector-operation-performance): Define new warning.
4295         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
4296         vector operation.
4297         (exapnd_vector_parallel): Warn about expanded vector operation.
4298         (lower_vec_shuffle): Warn about expanded vector operation.
4299         * c-typeck.c (c_build_vec_perm_expr): Store correct location
4300         when creating VEC_PERM_EXPR.
4301
4302 2011-10-11  Richard Guenther  <rguenther@suse.de>
4303
4304         PR tree-optimization/50204
4305         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
4306         two argument handling from ...
4307         (get_continuation_for_phi): ... here.  Handle arbitrary number
4308         of PHI args.
4309
4310 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
4311
4312         * modulo-sched.c: Fix comment typo.  Mention the possibility
4313         of using scheduling windows of II+1 cycles.
4314
4315 2011-10-11  Tristan Gingold  <gingold@adacore.com>
4316
4317         * doc/invoke.texi (C Dialect Options): Document
4318         -fallow-parameterless-variadic-functions.
4319         * c-parser.c (c_parser_parms_list_declarator): Handle it.
4320
4321 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
4322
4323         * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
4324         to 0 if frame pointer is needed for unwinding.
4325
4326 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
4327
4328         PR bootstrap/50665
4329         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
4330         optab_index to enum direct_optab_index.
4331         (vec_perm_optab): Update.
4332
4333 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
4334
4335         * config/cris/cris.c (cris_preferred_reload_class): New function.
4336         (TARGET_PREFERRED_RELOAD_CLASS): Define.
4337         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
4338
4339 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
4340
4341         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
4342         !AVR_HAVE_JMP_CALL.
4343         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
4344         (*tablejump_enh, *tablejump): Remove insns.
4345         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
4346         EIJMP for indirect jump.  Use LPM Z+ where available.
4347
4348 2011-10-10  Richard Henderson  <rth@redhat.com>
4349
4350         * doc/md.texi (vec_perm_const): Fix typo in cindex.
4351
4352 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
4353             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
4354
4355         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
4356
4357 2011-10-10  Richard Guenther  <rguenther@suse.de>
4358
4359         PR middle-end/50389
4360         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
4361         mark symbols for renaming.  Append the VUSE to all statements
4362         that possibly can have one.
4363
4364 2011-10-10  Richard Guenther  <rguenther@suse.de>
4365
4366         * ipa-split.c (pass_split_functions): Add verification TODOs.
4367         (pass_feedback_split_functions): Likewise.
4368
4369 2011-10-10  Richard Guenther  <rguenther@suse.de>
4370
4371         PR middle-end/50195
4372         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
4373         only when optimizing.
4374
4375 2011-10-10  Nick Clifton  <nickc@redhat.com>
4376
4377         PR middle-end/49801
4378         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
4379         df_get_live_out instead of accessing the bitmaps directly.
4380         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
4381         df_live_add_problem and df_analyze.
4382
4383 2011-10-10  Michael Matz  <matz@suse.de>
4384
4385         PR middle-end/50638
4386         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
4387
4388 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
4389
4390         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
4391         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
4392         (node_sched_params): Remove first_reg_move and nreg_moves.
4393         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
4394         (update_node_sched_params): Move up file.
4395         (print_node_sched_params): Print the stage.  Don't dump info related
4396         to first_reg_move and nreg_moves.
4397         (set_columns_for_row): New function.
4398         (set_columns_for_ps): Move up file and use set_columns_for_row.
4399         (schedule_reg_move): New function.
4400         (schedule_reg_moves): Call extend_node_sched_params and
4401         schedule_reg_move.  Extend size of uses bitmap.  Initialize
4402         num_consecutive_stages.  Return false if a move could not be
4403         scheduled.
4404         (apply_reg_moves): Don't emit moves here.
4405         (permute_partial_schedule): Handle register moves.
4406         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
4407         to the same stage-count test as ddg nodes.
4408         (generate_prolog_epilog): Update calls accordingly.
4409         (sms_schedule): Allow move-scheduling to add a new first stage.
4410
4411 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
4412
4413         * modulo-sched.c (ps_insn): Adjust comment.
4414         (ps_reg_move_info): New structure.
4415         (partial_schedule): Add reg_moves field.
4416         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
4417         (node_sched_params): Turn first_reg_move into an identifier.
4418         (ps_reg_move): New function.
4419         (ps_rtl_insn): Cope with register moves.
4420         (ps_first_note): Adjust comment and assert that the instruction
4421         isn't a register move.
4422         (node_sched_params): Replace with...
4423         (node_sched_param_vec): ...this vector.
4424         (set_node_sched_params): Adjust accordingly.
4425         (print_node_sched_params): Take a partial schedule instead of a ddg.
4426         Use ps_rtl_insn and ps_reg_move.
4427         (generate_reg_moves): Rename to...
4428         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
4429         move in the partial schedule, but don't emit it here.  Don't perform
4430         register substitutions here either.
4431         (apply_reg_moves): New function.
4432         (duplicate_insns_of_cycles): Use register indices directly,
4433         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
4434         (sms_schedule): Call schedule_reg_moves before committing to
4435         a partial schedule.   Try the next ii if the schedule fails.
4436         Use apply_reg_moves instead of generate_reg_moves.  Adjust
4437         call to print_node_sched_params.  Free node_sched_param_vec
4438         instead of node_sched_params.
4439         (create_partial_schedule): Initialize reg_moves.
4440         (free_partial_schedule): Free reg_moves.
4441
4442 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
4443
4444         * modulo-sched.c (ps_insn): Replace node field with an identifier.
4445         (SCHED_ASAP): Replace with..
4446         (NODE_ASAP): ...this macro.
4447         (SCHED_PARAMS): New macro.
4448         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
4449         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
4450         (node_sched_params): Remove asap.
4451         (ps_rtl_insn, ps_first_note): New functions.
4452         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
4453         asap values.
4454         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
4455         (generate_reg_moves): Pass ids to the SCHED_* macros.
4456         (update_node_sched_params): Take a ps insn identifier rather than
4457         a node as parameter.  Use ps_rtl_insn.
4458         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
4459         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
4460         (optimize_sc): Update for above field and SCHED_* macro changes.
4461         Update calls to try_scheduling_node_in_cycle and
4462         update_node_sched_params.
4463         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
4464         macro changes.  Use ps_rtl_insn and ps_first_note.
4465         (sms_schedule): Pass ids to the SCHED_* macros.
4466         (get_sched_window): Adjust for above field and SCHED_* macro changes.
4467         Use NODE_ASAP instead of SCHED_ASAP.
4468         (try_scheduling_node_in_cycle): Remove node parameter.  Update
4469         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_* macros.
4470         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
4471         (ps_insert_empty_row): Adjust for above field changes.
4472         (compute_split_row): Use ids rather than nodes.
4473         (verify_partial_schedule): Adjust for above field changes.
4474         (print_partial_schedule): Use ps_rtl_insn.
4475         (create_ps_insn): Take an id rather than a node.
4476         (ps_insn_find_column): Adjust for above field changes.
4477         Use ps_rtl_insn.
4478         (ps_insn_advance_column): Adjust for above field changes.
4479         (add_node_to_ps): Remove node parameter.  Update call to
4480         create_ps_insn.
4481         (ps_has_conflicts): Use ps_rtl_insn.
4482         (ps_add_node_check_conflicts): Replace node parameter than an id.
4483
4484 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
4485
4486         * modulo-sched.c (undo_replace_buff_elem): Delete.
4487         (generate_reg_moves): Don't build and return an undo list.
4488         (free_undo_replace_buff): Delete.
4489         (sms_schedule): Adjust call to generate_reg_moves.
4490         Don't call free_undo_replace_buff.
4491
4492 2011-10-10  Matthias Klose <doko@ubuntu.com>
4493
4494         * common/config/m32c: Remove empty directory.
4495
4496 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
4497
4498         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
4499
4500 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
4501
4502         PR target/50652
4503         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
4504         atmega164a to 0x100.
4505
4506 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
4507
4508         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
4509         the replacement if the conversion to the LHS type is not useless.
4510
4511 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
4512
4513         PR tree-optimization/50635
4514         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
4515         DEF_STMT to the list of statements to be replaced by the
4516         pattern statements.
4517         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
4518
4519 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
4520
4521         * system.h: Commit forgotten hunk in previous patch.
4522         (OUTPUT_ADDR_CONST_EXTRA): Poison.
4523
4524 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
4525
4526         PR libobjc/50428
4527         * doc/objc.texi (Garbage Collection): Updated example to protect
4528         +initialize against execution in subclasses.
4529
4530 2011-10-07  Richard Henderson  <rth@redhat.com>
4531
4532         * doc/extend.texi (__builtin_shuffle): Improve the description to
4533         include the modulus of the selector.  Mention OpenCL.
4534         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
4535
4536         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
4537         * genopinit.c (optabs): Rename vshuffle to vec_perm.
4538         * c-typeck.c (c_build_vec_perm_expr): Rename from
4539         c_build_vec_shuffle_expr.  Update for name changes.
4540         * optabs.c (expand_vec_perm_expr_p): Rename from
4541         expand_vec_shuffle_expr_p.
4542         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
4543         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
4544         (vec_perm_optab): Rename from vshuffle_optab.
4545         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
4546         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
4547         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
4548
4549         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
4550         ix86_expand_vshuffle.
4551         * config/i386/i386-protos.h: Update.
4552         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
4553         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
4554
4555 2011-10-07  Richard Henderson  <rth@redhat.com>
4556
4557         * config/i386/predicates.md (avx2_pblendw_operand): New.
4558         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
4559         (avx2_pblendw, *avx2_pblendw): New expander and insn.
4560
4561 2011-10-07  Richard Henderson  <rth@redhat.com>
4562
4563         * config/i386/i386.c (bdesc_args): Update code for
4564         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
4565         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
4566         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
4567         * config/i386/sse.md (mode iterator V16): Add V2TI.
4568         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
4569         (mode attr ssse3_avx2): Add V2TI.
4570         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
4571
4572 2011-10-07  David S. Miller  <davem@davemloft.net>
4573
4574         PR 50655
4575         * configure.ac: Add .register directives to VIS3 test.
4576         * configure: Regenerate.
4577
4578 2011-10-07  Richard Henderson  <rth@redhat.com>
4579
4580         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
4581
4582 2011-10-07  Richard Henderson  <rth@redhat.com>
4583
4584         PR 49752
4585         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
4586
4587 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
4588
4589         * config/arm/predicates.md (shift_amount_operand): Remove constant
4590         range check.
4591         (shift_operator): Check range of constants for all shift operators.
4592
4593 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4594
4595         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
4596         Load GOT pointer for non-pic builds.
4597         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
4598         (s390_emit_call): Likewise.
4599
4600 2011-10-07  Tom de Vries  <tom@codesourcery.com>
4601
4602         PR middle-end/50527
4603         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
4604         BUILT_IN_ALLOCA_WITH_ALIGN.  Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
4605         throw.
4606         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
4607         arglist.  Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
4608         (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4609         (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4610         * tree-ssa-ccp.c (evaluate_stmt): Set align for
4611         BUILT_IN_ALLOCA_WITH_ALIGN.
4612         (fold_builtin_alloca_for_var): Rename to ...
4613         (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
4614         BUILT_IN_ALLOCA_WITH_ALIGN argument.
4615         (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
4616         fold_builtin_alloca_with_align.
4617         (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4618         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
4619         DEF_BUILTIN_STUB.
4620         * ipa-pure-const.c (special_builtin_state): Handle
4621         BUILT_IN_ALLOCA_WITH_ALIGN.
4622         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
4623         (call_may_clobber_ref_p_1): Same.
4624         * function.c (gimplify_parameters): Lower vla to
4625         BUILT_IN_ALLOCA_WITH_ALIGN.
4626         * gimplify.c (gimplify_vla_decl): Same.
4627         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4628         * tree-mudflap.c (mf_xform_statements): Same.
4629         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
4630         (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
4631         * varasm.c (incorporeal_function_p): Same.
4632         * tree-object-size.c (alloc_object_size): Same.
4633         * gimple.c (gimple_build_call_from_tree): Same.
4634
4635 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
4636
4637         * function.c (frame_required_for_rtx): Remove function.
4638         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
4639         changed.  Compute a set of mentioned registers and compare against
4640         the new arg rather than calling frame_required_for_rtx.
4641         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
4642         reg set.  Convert the unconverted_simple_returns mechanism to store
4643         jump insns rather than their basic blocks.  Also check the
4644         orig_entry_edge destination for new blocks.
4645
4646 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
4647
4648         PR tree-optimization/50650
4649         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
4650         call vect_is_simple_cond here, instead fail if cond_expr isn't
4651         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
4652         for cond_expr's first operand.
4653         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
4654         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
4655
4656 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4657
4658         * config/s390/s390.md (DWH, dwh): New mode macros.
4659         ("umulsidi3"): Extend to support "umulditi3" as well.
4660
4661 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
4662             H.J. Lu  <hongjiu.lu@intel.com>
4663
4664         PR target/50603
4665         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
4666         integer PLUS RTX to a register to improve address combine.
4667
4668 2011-10-06  Richard Henderson  <rth@redhat.com>
4669
4670         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
4671         parameter; use it to decide whether to merge two notes.
4672         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
4673         for the deallocation case as well.
4674
4675 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
4676
4677         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
4678         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
4679         * doc/tm.texi: Regenerate.
4680         * target.def (output_addr_const_extra): Use
4681         hook_bool_FILEptr_rtx_false.
4682         * targhooks.c (default_asm_output_addr_const_extra): Remove.
4683         * targhooks.h (default_asm_output_addr_const_extra): Remove.
4684         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
4685         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
4686
4687 2011-10-06  David S. Miller  <davem@davemloft.net>
4688
4689         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
4690         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
4691         SI mode 64-bit code gen case explicitly zero-extend and truncate.
4692         (*popcount<mode>_sp64): Split up into...
4693         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
4694         SImode case use truncate.
4695         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
4696         subtract so the compiler can optimize it.
4697         (SIDI): Remove unused mode iterator.
4698
4699 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
4700
4701         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
4702         on the orig_entry_edge. Don't account for it in prologue_clobbered.
4703
4704 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
4705
4706         PR tree-optimization/50596
4707         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
4708         (NUM_PATTERNS): Change to 6.
4709         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
4710         function.
4711         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
4712         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
4713         if it already has one, and don't set STMT_VINFO_VECTYPE in it
4714         if it is already set.
4715         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
4716         COND_EXPR in pattern stmts.
4717         (vect_is_simple_cond): No longer static.
4718
4719 2001-10-06  Richard Henderson  <rth@redhat.com>
4720
4721         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
4722         * config/i386/sse.md (sseshuffint): Remove.
4723         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
4724         (VSHUFFLE_AVX2): New mode iterator.
4725         (vshuffle<mode>): Use it.
4726         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
4727
4728         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
4729         for vector_all_ones_operand.
4730         (ix86_expand_int_vcond): Distinguish between comparison mode
4731         and data mode.  Allow them to differ.
4732         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
4733
4734 2001-10-06  Richard Henderson  <rth@redhat.com>
4735
4736         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
4737         mask operand.  Tidy the code.
4738
4739 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
4740
4741         * tree-vect-patterns.c (vect_pattern_recog_1): Use
4742         vect_recog_func_ptr typedef for the first argument.
4743         (vect_pattern_recog): Rename vect_recog_func_ptr variable
4744         to vect_recog_func, use vect_recog_func_ptr typedef for it.
4745
4746         PR tree-optimization/49279
4747         * tree-ssa-structalias.c (find_func_aliases): Don't handle
4748         CAST_RESTRICT.
4749         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
4750         restrict propagation.
4751         * tree-ssa.c (useless_type_conversion_p): Don't return false
4752         if TYPE_RESTRICT differs.
4753
4754 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
4755
4756         * function.c (thread_prologue_and_epilogue_insns): Build a vector
4757         of unconverted simple return blocks rather than trying to
4758         recompute them later based on bb_flags bitmap tests.
4759
4760 2011-10-06  Michael Matz  <matz@suse.de>
4761
4762         * tree-flow.h (get_var_ann): Don't declare.
4763         * tree-flow-inline.h (get_var_ann): Remove.
4764         (set_is_used): Use var_ann, not get_var_ann.
4765         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
4766         * tree-profile.c (gimple_gen_edge_profiler): Call
4767         find_referenced_var_in.
4768         (gimple_gen_interval_profiler): Ditto.
4769         (gimple_gen_pow2_profiler): Ditto.
4770         (gimple_gen_one_value_profiler): Ditto.
4771         (gimple_gen_average_profiler): Ditto.
4772         (gimple_gen_ior_profiler): Ditto.
4773         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
4774         (gimple_gen_ic_func_profiler): Call add_referenced_var.
4775         * tree-mudflap.c (execute_mudflap_function_ops): Call
4776         add_referenced_var.
4777
4778 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
4779
4780         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
4781         don't set SSA_NAME_DEF_STMT that has been already set by
4782         gimple_build_assign_with_ops.
4783         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
4784         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
4785         Likewise.
4786
4787         * tree.h (avoid_folding_inline_builtin): New prototype.
4788         * builtins.c (avoid_folding_inline_builtin): No longer static.
4789         * gimple-fold.c (gimple_fold_builtin): Give up if
4790         avoid_folding_inline_builtin returns true.
4791
4792 2011-10-06  Richard Guenther  <rguenther@suse.de>
4793
4794         * tree-vect-generic.c (vector_element): Look at previous
4795         generated results.
4796
4797 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
4798
4799         PR target/39950
4800         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
4801         __powerpc__, __PPC__, __unix__.
4802
4803 2011-10-06  Michael Matz  <matz@suse.de>
4804
4805         * i386/i386.opt (recip_mask, recip_mask_explicit,
4806         x_recip_mask_explicit): New variables and cl_target member.
4807         (mrecip=): New option.
4808         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
4809         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
4810         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
4811         TARGET_RECIP_VEC_SQRT): New tests.
4812         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
4813         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
4814         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
4815         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
4816         * i386/i386.c (ix86_option_override_internal): Set recip_mask
4817         for -mrecip and -mrecip=options.
4818         (ix86_function_specific_save): Save recip_mask_explicit.
4819         (ix86_function_specific_restore): Restore recip_mask_explicit.
4820
4821         * doc/invoke.texi (ix86 Options): Document the new option.
4822
4823 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
4824
4825         PR target/49049
4826         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
4827
4828 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
4829
4830         PR target/50305
4831         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
4832         output of a previous pass through legitimize_reload_address.
4833         Do not attempt to optimize addresses if the base register is
4834         equivalent to a constant.
4835
4836 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4837
4838         * function.c (thread_prologue_and_epilogue_insns): Mark
4839         last_bb_active as possibly unused.  It is unused for targets which
4840         do neither have "return" nor "simple_return" expanders.
4841
4842 2011-10-06  Richard Guenther  <rguenther@suse.de>
4843
4844         * fold-const.c (fold_ternary_loc): Also fold non-constant
4845         vector CONSTRUCTORs.  Make more efficient.
4846         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
4847         (cprop_into_stmt): Don't propagate into virtual operands.
4848         (optimize_stmt): Really dump original statement.
4849
4850 2011-10-06  Nick Clifton  <nickc@redhat.com>
4851
4852         * config/rx/rx.md (smin3): Revert previous delta.
4853
4854 2011-10-06  Richard Guenther  <rguenther@suse.de>
4855
4856         PR tree-optimization/38884
4857         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
4858         reads from aggregate SSA names.
4859
4860 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
4861
4862         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
4863         argument, truncate it at the beginning instead of allocating there
4864         and freeing at the end.
4865         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
4866         pass its address to vect_pattern_recog_1.
4867
4868 2011-10-05  David S. Miller  <davem@davemloft.net>
4869
4870         * config/sparc/sparc.opt (POPC): New option.
4871         * doc/invoke.texi: Document it.
4872         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
4873         default on Niagara-2 and later.
4874         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
4875         * config/sparc/sparc.md (SIDI): New mode iterator.
4876         (ffsdi2): Delete commented out pattern and comments.
4877         (popcount<mode>2, clz<mode>2): New expanders.
4878         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
4879         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
4880
4881 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
4882
4883         PR middle-end/50607
4884         * c-tree.h (c_expr_t): New typedef for struct c_expr.
4885         (C_EXPR_APPEND): New macro.
4886         * c-parser.c (c_parser_get_builtin_args): Preserve
4887         original_tree_code of c_expr structure.
4888         (c_parser_postfix_expression): Adjust to the new function.
4889
4890 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
4891
4892         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
4893         if profiling after the prologue.
4894
4895 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
4896
4897         PR tree-optimization/50613
4898         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
4899         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
4900         and if it is neither that not SSA_NAME, give up.
4901
4902 2011-10-05  Richard Henderson  <rth@redhat.com>
4903
4904         * tree-vect-generic.c (vector_element): Never fail.  Use
4905         build_zero_cst.  Tidy up type references.
4906         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
4907         code duplication.  Do update_stmt here ...
4908         (expand_vector_operations_1): ... not here.
4909
4910         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
4911         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
4912         duplication.  Handle V2DI without SSE4.1.
4913         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
4914         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
4915
4916 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
4917
4918         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
4919         of "found".  Simplify return value calculation.
4920         (distance_agu_use): Ditto.
4921
4922 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
4923
4924         PR bootstrap/50621
4925         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
4926         if the function was not shrink-wrapped.
4927         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
4928         to an insn.
4929         * function.c (thread_prologue_and_epilogue_insns): Make sure the
4930         shrink_wrapped flag is set even if there is no dump file.
4931
4932 2011-10-05  DJ Delorie  <dj@redhat.com>
4933             Nick Clifton  <nickc@redhat.com>
4934
4935         * config/rx/rx.opt (mpid): Define.
4936         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
4937         (MULTILIB_DIRNAMES): Add pid.
4938         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
4939         (rx_num_interrupt_regs): New variable.
4940         (rx_gp_base_regnum): New function.  Returns the number of the
4941         small data area register.
4942         (rx_pid_base_regnum): New function.  Returns the number of the pid
4943         base register.
4944         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
4945         (rx_pid_data_operand): New function.  Returns whether an object is
4946         in the position independent data area.
4947         (rx_legitimize_address): New function.  Puts undecided PID
4948         objects in the PID data area.
4949         (rx_is_legitimate_address): Add support for PID operands.
4950         (rx_print_operand_address): Likewise.
4951         (rx_print_operand): Likewise.
4952         (rx_maybe_pidify_operand): New function.  Determine if an operand
4953         is suitable for PID addressing.
4954         (rx_gen_move_template): Add PID support.
4955         (rx_conditional_register_usage): Likewise.
4956         (rx_option_override): Initialise rx_num_interrupt_regs.
4957         (rx_is_legitimate_constant): Add support for PID constants.
4958         (TARGET_LEGITIMIZE_ADDRESS): Define.
4959         * config/rx/constraints.md (Rpid): Define.
4960         (Rpda): Define.
4961         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
4962         (tablejump): Add PID support.
4963         (mov<>): Likewise.
4964         (mov<>_internal): Likewise.
4965         (addsi3): Convert to an expander.  Add PID support.
4966         (pid_addr): New pattern.
4967         * config/rx/rx.h (CPP_SPEC): Define.
4968         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
4969         (CASE_VECTOR_PC_RELATIVE): Define.
4970         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
4971         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
4972         * doc/invoke.texi (RX Options): Document -mpid command line option.
4973
4974 2011-10-05  Richard Guenther  <rguenther@suse.de>
4975
4976         PR tree-optimization/38885
4977         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
4978         from constants.
4979
4980 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
4981
4982         * doc/invoke.texi (-fshrink-wrap): Document.
4983         * opts.c (default_options_table): Add it.
4984         * common.opt (fshrink-wrap): Add.
4985         * function.c (emit_return_into_block): Remove useless declaration.
4986         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
4987         requires_stack_frame_p, gen_return_pattern): New static functions.
4988         (emit_return_into_block): New arg simple_p.  All callers changed.
4989         Use gen_return_pattern.
4990         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
4991         * config/i386/i386.md (return): Expand into a simple_return.
4992         (simple_return): New expander):
4993         (simple_return_internal, simple_return_internal_long,
4994         simple_return_pop_internal_long, simple_return_indirect_internal):
4995         Renamed from return_internal, return_internal_long,
4996         return_pop_internal_long and return_indirect_internal; changed to use
4997         simple_return.
4998         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
4999         simple returns.
5000         (ix86_pad_returns): Likewise.
5001         * function.h (struct rtl_data): Add member shrink_wrapped.
5002         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
5003         are not jumps or sibcalls can't be compared.
5004
5005 2011-10-05  Richard Guenther  <rguenther@suse.de>
5006
5007         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
5008         vector type.
5009         (simplify_unary_expression): Handle BIT_FIELD_REFs.
5010         (try_to_simplify): Handle BIT_FIELD_REFs.
5011
5012 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
5013
5014         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
5015         * config/avr/avr.c (avr_out_addto_sp): New function.
5016         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
5017         * config/avr/avr.md (adjust_len): Add "addto_sp".
5018         (*movhi_sp): Remove insn.
5019         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
5020
5021 2011-10-05  Richard Guenther  <rguenther@suse.de>
5022
5023         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
5024         with an embedded expression valueize and fold that as well.
5025         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
5026         results from gimple_fold_stmt_to_constant_1.
5027
5028 2011-10-05  Nick Clifton  <nickc@redhat.com>
5029
5030         * config/rx/rx.md (tablejump): Add missing label.
5031         (adddi3_internal): Mark operand 0 as early-clobbered.
5032         (smaxsi3): Revert previous delta.
5033         (adc_internal): Fix whitespace in generated asm.
5034         (adc_flags): Likewise.
5035
5036 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5037
5038         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
5039         with the new widening_optab_handler.
5040
5041 2011-10-05  Richard Guenther  <rguenther@suse.de>
5042
5043         PR tree-optimization/50609
5044         * gimple-fold.c (fold_array_ctor_reference): Also handle
5045         vector typed constructors.
5046         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
5047         for vector typed constructors.
5048
5049 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
5050
5051         * config/i386/i386.c (ix86_emit_binop): New static function.
5052         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
5053         instructions.
5054         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
5055
5056 2011-10-04  David S. Miller  <davem@davemloft.net>
5057
5058         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
5059         UNSPEC_XMUL): New unspecs.
5060         (muldi3_v8plus): Use output_v8plus_mult.
5061         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
5062         New VIS 3.0 combiner patterns.
5063         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
5064         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
5065         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
5066         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
5067         builtins patterns.
5068         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
5069         (output_v8plus_mult): New function.
5070         * config/sparc/sparc-protos.h: Declare it.
5071         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
5072         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
5073         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
5074         * doc/extend.texi: Document new builtins.
5075
5076 2011-10-04  Richard Henderson  <rth@redhat.com>
5077
5078         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
5079         Avoid save_expr unless two_arguments.
5080
5081 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
5082
5083         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
5084         * config/i386/mingw32.h (CPP_SPEC): Likewise.
5085
5086 2011-10-04  David S. Miller  <davem@davemloft.net>
5087
5088         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
5089         under Linux.
5090
5091 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
5092
5093         PR tree-optimization/50604
5094         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
5095         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
5096         last argument to memcpy has size_type_node type instead of ssizetype.
5097         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
5098         instead of TREE_TYPE (len) as type for newlen.
5099
5100         PR tree-optimization/50522
5101         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
5102         TYPE_RESTRICT.
5103         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
5104         unconditionally.
5105
5106         * fold-const.c (fold_unary_loc): Don't optimize
5107         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
5108         casting the inner pointer if it isn't TYPE_RESTRICT.
5109         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
5110         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
5111
5112 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
5113
5114         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
5115
5116 2011-10-04  Jan Hubicka  <jh@suse.cz>
5117
5118         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
5119         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
5120         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
5121         * lto-cgraph.c (order_base): New static var.
5122         (lto_output_node): Stream in order.
5123         (lto_output_varpool_node): Stream out order.
5124         (input_node): Stream in order.
5125         (input_varpool_node): Stream out order.
5126         (input_cgraph_1): Initialize order base; update call of
5127         lto_input_toplevel_asms.
5128
5129 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
5130
5131         PR target/50566
5132         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
5133         prototype.
5134         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
5135         from here...
5136         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
5137         function.  Log if avr_log.legitimize_reload_address.
5138
5139 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
5140
5141         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
5142
5143 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5144
5145         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
5146         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
5147
5148 2011-10-03  David S. Miller  <davem@davemloft.net>
5149
5150         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
5151         GSR_REG an input operand to UNSPEC instead of a parallel USE.
5152         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
5153         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
5154         Reference GSR_REG in DI mode, simplify convoluted expressions by using
5155         zero_extract.
5156         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
5157
5158 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
5159
5160         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
5161
5162 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
5163             Ian Lance Taylor  <iant@google.com>
5164
5165         * godump.c (go_output_typedef): Support printing enum values that
5166         don't fit in a signed HOST_WIDE_INT.
5167
5168 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
5169
5170         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
5171         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5172         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5173         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
5174
5175 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
5176
5177         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
5178         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5179         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5180         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
5181
5182 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
5183
5184         PR target/49967
5185         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
5186         (gcc_cv_ld_static_option): Ditto.
5187         (gcc_cv_ld_dynamic_option): Ditto.
5188         * configure: Regenerate.
5189
5190 2011-10-03  David S. Miller  <davem@davemloft.net>
5191
5192         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
5193         and 'si' patterns which describe the GSR changes explicitly in the
5194         RTL using zero_extract.
5195         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
5196
5197         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
5198         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
5199
5200 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
5201
5202         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
5203         if given expression can be expanded by the target.
5204         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
5205         using target vector instructions.
5206         * optabs.h: New optab vshuffle.
5207         (expand_vec_shuffle_expr_p): New prototype.
5208         (expand_vec_shuffle_expr): New prototype.
5209         (vshuffle_optab): New optab.
5210         * genopinit.c: Adjust to support vecshuffle.
5211         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
5212         * expr.c (expand_expr_real_2): Adjust.
5213         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
5214         recognizing the cases of two and three arguments.
5215         (convert_arguments) (build_binary_op)
5216         (scalar_to_vector) (build_array_ref): Spurious whitespace.
5217         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
5218         * tree.def: New tree code VEC_SHUFFLE_EXPR.
5219         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
5220         * tree-vect-generic.c (vector_element): New function. Returns an
5221         element of the vector at the given position.
5222         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
5223         by the backend or expand an expression piecewise.
5224         (expand_vector_operations_1): Adjusted.
5225         (gate_expand_vector_operations_noop): New gate function.
5226         * Makefile.in (tree-vect-generic.o): New include.
5227         * gimple.c (get_gimple_rhs_num_ops): Adjust.
5228         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
5229         * passes.c: Move veclower down.
5230         * tree-pretty-print.c (dump_generic_node): Recognize
5231         VEC_SHUFFLE_EXPR as valid expression.
5232         * c-parser.c (c_parser_get_builtin_args): Helper function for the
5233         builtins with variable number of arguments.
5234         (c_parser_postfix_expression): Use a new helper function for
5235         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
5236         * tree-ssa-operands: Adjust.
5237         * c-family/c-common.c: New __builtin_shuffle keyword.
5238         * c-family/c-common.h: New __builtin_shuffle keyword.
5239         * gcc/doc/extend.texi: Adjust.
5240
5241         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
5242         between the vector and the type of the mask when shuffling.
5243         (vecshuffle<mode>): New expansion.
5244         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
5245         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
5246         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
5247
5248 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
5249
5250         PR tree-optimization/50587
5251         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
5252         arg0 is not a SSA_NAME.
5253
5254 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
5255
5256         * ipa-inline-analysis.c (MAX_TIME): Update comment.
5257
5258 2011-10-02  Richard Henderson  <rth@redhat.com>
5259             David S. Miller  <davem@davemloft.net>
5260
5261         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
5262         conditional insn type setting, we always emit a shift.
5263         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
5264         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
5265         * config/sparc/predicates.md (const_one_operand): Delete.
5266
5267 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
5268
5269         * invoke.texi (SPARC Options): Refer to GNU/Linux.
5270
5271 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
5272
5273         * config/mips/mips.c (mips_frame_barrier): New function.
5274         (mips_expand_prologue): Call it after allocating stack space.
5275         (mips_deallocate_stack): New function.
5276         (mips_expand_epilogue): Call mips_frame_barrier and
5277         mips_deallocate_stack.
5278
5279 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
5280
5281         PR target/49696
5282         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
5283         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
5284         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
5285
5286 2011-10-02  Jan Hubicka  <jh@suse.cz>
5287
5288         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
5289
5290         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
5291         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
5292         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
5293         functions are reachable when address is taken.
5294         * tree-sra.c (modify_function): Free dominance info.
5295
5296 2011-10-02  Jan Hubicka  <jh@suse.cz>
5297
5298         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
5299
5300         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
5301         (reset_inline_summary): New function.
5302         (compute_inline_parameters, inline_node_removal_hook,
5303         inline_edge_removal_hook): Use it.
5304         (inline_free_summary): Reset holders correctly.
5305         (inline_generate_summary): Free summary before computing it.
5306
5307 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
5308
5309         PR preprocessor/36819
5310         * incpath.c (merge_include_chains): Call free_path on
5311         heads[QUOTE] and tails[QUOTE].
5312
5313 2011-10-02  Jan Hubicka  <jh@suse.cz>
5314
5315         PR lto/47247
5316         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
5317         when resolution is already availbale from plugin.
5318         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
5319         * cgraph.c (ld_plugin_symbol_resolution): Add
5320         prevailing_def_ironly_exp.
5321         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
5322         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
5323         externally visible.
5324         * varasm.c (resolution_to_local_definition_p): Add
5325         LDPR_PREVAILING_DEF_IRONLY_EXP.
5326         (resolution_local_p): Likewise.
5327
5328 2011-10-01  David S. Miller  <davem@davemloft.net>
5329
5330         * config/sparc/sparc.opt (VIS3): New option.
5331         * doc/invoke.texi: Document it.
5332         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
5333         not capable of such instructions.
5334         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
5335         to 0x300 when TARGET_VIS3.
5336         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
5337         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
5338         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
5339         (V64N8, VASS): New mode iterators.
5340         (vis3_shift, vis3_addsub_ss): New code iterators.
5341         (vbits, vconstr): New mode attributes.
5342         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
5343         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
5344         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
5345         fmean16_vis, fpadd64_vis, fpsub64_vis,
5346         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
5347         VIS 3.0 instruction patterns.
5348         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
5349         default when targetting capable cpus.  TARGET_VIS3 implies
5350         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
5351         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
5352         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
5353         is ignored.
5354         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
5355         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
5356         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
5357         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
5358         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
5359         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
5360         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
5361         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
5362         * doc/extend.texi: Document new VIS 3.0 builtins.
5363
5364 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
5365
5366         * ira-color.c (assign_hard_reg): Fix typo.
5367
5368 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
5369
5370         * doc/extend.texi: Add missing ','.
5371
5372 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
5373
5374         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
5375         Enable -fmodulo-sched at -O2 and above.
5376         * config/c6x/c6x.md (doloop_end): New expander.
5377         (mvilc, sploop, spkernel, loop_end): New patterns.
5378         (loop_end with memory destination splitter): New.
5379         * config/c6x/c6x.c: Include "hw-doloop.h".
5380         (enum unitreqs): New.
5381         (unit_req_table): New typedef.
5382         (unit_reqs): New static variable.
5383         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
5384         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
5385         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
5386         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
5387         (struct c6x_sched_context): New member last_scheduled_iter0.
5388         (init_sched_state): Initialize it.
5389         (c6x_variable_issue): Update it.
5390         (sploop_max_uid_iter0): New static variable.
5391         (c6x_sched_reorder_1): Be careful about issuing sploop.
5392         (c6x_reorg): Call c6x_hwlooops before the final schedule.
5393
5394 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
5395
5396         PR target/50566
5397         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
5398         * config/avr/avr.c (avr_address_cost): Use it.
5399         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
5400         (avr_log_vadump): Unknown %-codes finish printing.
5401
5402 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
5403
5404         PR inline-asm/50571
5405         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
5406         input constraints allow mem and not reg, pass true instead of
5407         false as second argument to maybe_fold_reference.
5408
5409         PR tree-optimization/46309
5410         * fold-const.c (make_range, merge_ranges): Remove prototypes.
5411         (make_range_step): New function.
5412         (make_range): Use it.
5413         * tree.h (make_range_step): New prototypes.
5414         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
5415         * tree-ssa-reassoc.c: Include diagnostic-core.h.
5416         (struct range_entry): New type.
5417         (init_range_entry, range_entry_cmp, update_range_test,
5418         optimize_range_tests): New functions.
5419         (reassociate_bb): Call optimize_range_tests.
5420
5421 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
5422             Richard Guenther  <rguenther@suse.de>
5423
5424         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
5425         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
5426         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
5427         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
5428         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
5429         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
5430
5431 2011-09-30  Jan Beulich  <jbeulich@suse.com>
5432
5433         * lto-cgraph.c (output_cgraph): Remove processing of
5434         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
5435         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
5436         lto_input_toplevel_asms() instead.
5437         * lto-section-in.c (lto_section_name): Add "asm" entry.
5438         * lto-streamer-in.c (lto_input_toplevel_asms): New.
5439         * lto-streamer-out.c (lto_output_toplevel_asms): New.
5440         * lto-streamer.h (LTO_minor_version): Bump.
5441         (enum lto_section_type): Add LTO_section_asm.
5442         (struct lto_asm_header): New.
5443         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
5444         * tree-streamer.h (streamer_write_string_cst): Declare.
5445         * tree-streamer-out.c (write_string_cst): Rename to
5446         streamer_write_string_cst and make global. Handle incoming string
5447         being NULL.
5448         (streamer_write_tree_header): Adjust call to renamed function.
5449
5450 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
5451
5452         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
5453         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
5454         modulo_last_stage): New static variables.
5455         (set_modulo_params, discard_delay_pairs_above): New functions.
5456         (struct delay_pair): New member stages.
5457         (htab_i2_traverse, htab_i1_traverse): New static functions.
5458         (record_delay_slot_pair): New arg stages.  All callers changed.
5459         Record it.
5460         (pair_delay): Take stages into account.
5461         (add_delay_dependencies): Don't do so for stage pairs.
5462         (struct sched_block_state): New member modulo_epilogue.
5463         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
5464         (unschedule_insns_until): Decrease modulo_insns_scheduled.
5465         Set HARD_DEP without using or.
5466         (resolve_dependencies): New static function.
5467         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
5468         If it is true, allow only insns with INSN_EXACT_TICK set.
5469         (schedule_block): Return bool, always true for normal scheduling,
5470         true or false depending on modulo scheduling success otherwise.
5471         Add bookkeeping for modulo scheduling, and call resolve_dependencies
5472         on everything left over after a modulo schedule.
5473         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
5474         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
5475         declarations.
5476         (set_modulo_params, discard_delay_pairs_above): Declare.
5477         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
5478         * doc/invoke.texi (--param): Document it.
5479
5480         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
5481         New arg modulo_scheduling.  All callers changed.  Move note handling
5482         code here from schedule_ebbs.
5483         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
5484         out of schedule_ebbs.
5485         (schedule_ebbs): Call them.  Remove note handling code moved to
5486         schedule_ebb.
5487         * sched-int.h (schedule_ebb, schedule_ebbs_init,
5488         schedule_ebbs_finish): Declare.
5489
5490 2011-09-30  Richard Guenther  <rguenther@suse.de>
5491
5492         PR middle-end/50574
5493         * tree-cfg.c (verify_gimple_comparison): Compare component
5494         mode sizes for vector comparisons.
5495
5496 2011-09-30  Revital Eres  <revital.eres@linaro.org>
5497
5498         * ddg.c (autoinc_var_is_used_p): New function.
5499         (create_ddg_dep_from_intra_loop_link,
5500         add_cross_iteration_register_deps): Call it.
5501         * ddg.h (autoinc_var_is_used_p): Declare.
5502         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
5503         (sms_schedule): Handle instructions with REG_INC.
5504
5505 2011-09-30  Revital Eres  <revital.eres@linaro.org>
5506
5507         * modulo-sched.c (generate_reg_moves): Skip instructions that
5508         do not set a register and verify no regmoves are created for
5509         !single_set instructions.
5510
5511 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
5512
5513         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
5514         insns.
5515
5516 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5517
5518         PR target/50099
5519         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
5520         (qhs_zextenddi_op): New.
5521         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
5522         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
5523         Distinguish between ARM and Thumb2 states.
5524
5525 2011-09-30  David S. Miller  <davem@davemloft.net>
5526
5527         * config/sparc/sparc.opt (VIS2): New option.
5528         * doc/invoke.texi: Document it.
5529         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
5530         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
5531         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
5532         (define_attr type): New insn type 'edgen'.
5533         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
5534         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
5535         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
5536         patterns.
5537         * niagara.md: Handle edgen.
5538         * niagara2.md: Likewise.
5539         * ultra1_2.md: Likewise.
5540         * ultra3.md: Likewise.
5541         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
5542         to 0x200 when TARGET_VIS2.
5543         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
5544         default when targetting capable cpus.  TARGET_VIS2 implies
5545         TARGET_VIS, clear and it when TARGET_FPU is disabled.
5546         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
5547         (sparc_expand_builtin): Fix predicate indexing when builtin returns
5548         void.
5549         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
5550         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
5551         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
5552         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
5553         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
5554         * doc/extend.texi: Document new VIS 2.0 builtins.
5555
5556 2011-09-29  Nick Clifton  <nickc@redhat.com>
5557             Bernd Schmidt  <bernds@codesourcery.com>
5558
5559         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
5560         * config/frv/frvend.c: Likewise.
5561         * config/frv/frv.c (frv_function_prologue): Move misplaced
5562         CALL_ARG_LOCATION notes back to their proper locations.
5563
5564 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
5565
5566         PR target/50566
5567         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
5568         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
5569         from avr_rtx_costs.
5570         (avr_legitimate_address_p): Use avr_edump to print log information
5571         filtered by avr_log.
5572         (extra_constraint_Q): Ditto.
5573         (avr_legitimize_address): Ditto.
5574         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
5575         (final_prescan_insn): Use avr_log.rtx_costs as filter.
5576
5577 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
5578
5579         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
5580         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
5581         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
5582         NEON vector and structure modes to be tied.
5583
5584 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5585
5586         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
5587         forward declaration.
5588         (remove_duplicate_close_phi): Detect and repair creation of
5589         duplicate close-phis for a containing loop.
5590
5591 2011-09-27   Andi Kleen <ak@linux.intel.com>
5592
5593         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
5594         /dev/urandom.  Add getpid call.
5595         (compare_debug_dump_opt_spec_function): Drop getpid call.
5596
5597 2011-09-26   Andi Kleen <ak@linux.intel.com>
5598
5599         * toplev.c (init_local_tick): Try reading random seed
5600         from /dev/urandom.
5601
5602 2011-09-26   Andi Kleen <ak@linux.intel.com>
5603
5604         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
5605         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
5606         Handle numerical random seed.
5607         * lto-streamer.h (lto_file_decl_data): Change id to
5608         unsigned HOST_WIDE_INT.
5609         * toplev.c (random_seed): Add.
5610         (init_random_seed): Change for numerical random seed.
5611         (get_random_seed): Return as HOST_WIDE_INT.
5612         (set_random_seed): Crc32 existing string.
5613         * toplev.h (get_random_seed): Change to numercal return.
5614         * tree.c (get_file_function_name): Remove CRC. Handle
5615         numerical random seed.
5616
5617 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
5618
5619         PR target/50566
5620         * config.gcc (extra_objs): Add avr-log.o for $target in:
5621         avr-*-rtems*, avr-*-*.
5622         * config/avr/t-avr (avr-log.o): New rule to compile...
5623         * config/avr/avr-log.c: ...this new file.
5624         * config/avr/avr.opt (mlog=): New option.
5625         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
5626         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
5627         (avr_log_set_avr_log): New prototype.
5628         (avr_log_t): New typedef.
5629         (avr_log): New declaration.
5630         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
5631
5632 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
5633
5634         * expr.c (do_store_flag): Expand vector comparison by
5635         building an appropriate VEC_COND_EXPR.
5636         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
5637         (c_objc_common_truthvalue_conversion): Adjust.
5638         * tree-vect-generic.c (do_compare): Helper function.
5639         (expand_vector_comparison): Check if hardware supports
5640         vector comparison of the given type or expand vector piecewise.
5641         (expand_vector_operation): Treat comparison as binary
5642         operation of vector type.
5643         (expand_vector_operations_1): Adjust.
5644
5645 2011-09-29  Richard Guenther  <rguenther@suse.de>
5646
5647         * tree.c (build_opaque_vector_type): Make opaque vectors
5648         variant types of the corresponding non-opaque type.  Make
5649         sure to share opaque vector types properly.
5650
5651 2011-09-29  David S. Miller  <davem@davemloft.net>
5652
5653         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
5654         UNSPEC_ARRAY32): New unspec.
5655         (define_attr type): New type 'array'.
5656         (array{8,16,32}<P:mode>_vis): New patterns.
5657         * config/sparc/ultra1_2.md: Add reservations for 'array'.
5658         * config/sparc/ultra3.md: Likewise.
5659         * config/sparc/niagara.md: Likewise.
5660         * config/sparc/niagara2.md: Likewise.
5661         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
5662         array builtins.
5663         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
5664         __vis_array32): New.
5665         * doc/extend.texi: Document new VIS builtins.
5666
5667         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
5668         (VIS pixel-compare insn): Just use <gcond:name>.
5669
5670         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
5671         code iterator used, so just use <code>.  There are two mode iterators
5672         so explicitly use <GCM:gcm_name>.
5673
5674 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
5675
5676         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
5677         Darwin >= 9.
5678
5679 2011-09-28  David S. Miller  <davem@davemloft.net>
5680
5681         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
5682         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
5683         (UNSPEC_FCMP): New unspec.
5684         (gcond): New code iterator.
5685         (gcond_name): New code attr.
5686         (GCM): New mode iterator.
5687         (gcm_name): New mode attr.
5688         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
5689
5690 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
5691
5692         PR target/49486
5693         * config/sh/sh.md (negdi2): Move expansion into split to
5694         allow more combination options.  Add T_REG clobber.
5695         (abssi2): New expander.
5696         (*negdi2, *abssi2, *negabssi2): New insns.
5697         (cneg): Change from insn to insn_and_split.  Rename to
5698         negsi_cond.  Add alternative for non-SH4.
5699
5700 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
5701
5702         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
5703         (neon_move_hi_quad_<mode>): Likewise.
5704         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
5705
5706 2011-09-28  Nick Clifton  <nickc@redhat.com>
5707
5708         * config/rx/predicates.md (rx_minmax_operand): New predicate.
5709         Accepts immediates and a restricted subset of MEMs.
5710         * config/rx/rx.md (int_modes): New iterator.
5711         (smaxsi3, sminsi3): Delete and replace with...
5712         (smax<int_mode>3, smin<int_mode>3): New patterns.
5713         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
5714
5715 2011-09-28  Richard Guenther  <rguenther@suse.de>
5716
5717         PR middle-end/50460
5718         * fold-const.c (try_move_mult_to_index): Handle &a.array the
5719         same as &a.array[0].
5720
5721 2011-09-28  Kai Tietz  <ktietz@redhat.com>
5722
5723         * configure.ac: Add test for new section attribute
5724         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
5725         * config.in: Regenerated.
5726         * configure: Regenerated.
5727         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
5728         new section flag "e" for excluded sections, if supported.
5729         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
5730
5731 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
5732
5733         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
5734         throughout file.
5735
5736 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
5737
5738         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
5739         throughout file.
5740
5741 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
5742
5743         * output.h (SECTION_EXCLUDE): New macro.
5744         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
5745
5746 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
5747
5748         * fwprop.c (forward_propagate_and_simplify): After checking
5749         reg/subreg combinations, check whether the modes are the same.
5750
5751 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
5752             Richard Sandiford  <rdsandiford@googlemail.com>
5753
5754         * config/mips/mips.c (mips_add_cfa_restore): New function.
5755         (mips16e_save_restore_reg): Use it.
5756         (mips_restore_reg): Likewise.  Split double FPRs for
5757         REG_CFA_RESTORE notes.
5758
5759 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
5760
5761         PR middle-end/50386
5762         PR middle-end/50326
5763         * tree-sra.c (build_ref_for_model): Use the type of the field as
5764         the type of the COMPONENT_REF.
5765
5766 2011-09-27  Jeff Law  <law@redhat.com>
5767
5768         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
5769         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
5770         (find_if_case_1): Use the probability of the THEN clause when
5771         determining if speculation is profitable.
5772         (find_if_case_2): Similarly for the ELSE clause.
5773
5774 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
5775
5776         * common.opt: Add -foptimize-strlen option.
5777         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
5778         (tree-sssa-strlen.o): Add dependencies.
5779         * opts.c (default_options_table): Enable -foptimize-strlen
5780         by default at -O2 if not -Os.
5781         * passes.c (init_optimization_passes): Add pass_strlen
5782         after pass_object_sizes.
5783         * timevar.def (TV_TREE_STRLEN): New timevar.
5784         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
5785         * tree-pass.h (pass_strlen): Declare.
5786         * tree-ssa-strlen.c: New file.
5787         * c-decl.c (merge_decls): If compatible stpcpy prototype
5788         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
5789
5790 2011-09-27  Tom de Vries  <tom@codesourcery.com>
5791
5792         PR middle-end/43864
5793         * tree-ssa-tail-merge.c: New file.
5794         (struct same_succ_def): Define.
5795         (same_succ, const_same_succ): New typedef.
5796         (struct bb_cluster_def): Define.
5797         (bb_cluster, const_bb_cluster): New typedef.
5798         (struct aux_bb_info): Define.
5799         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
5800         (gvn_uses_equal): New function.
5801         (same_succ_print, same_succ_print_traverse, update_dep_bb)
5802         (stmt_update_dep_bb, local_def, same_succ_hash)
5803         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
5804         (same_succ_reset): New function.
5805         (same_succ_htab, same_succ_edge_flags)
5806         (deleted_bbs, deleted_bb_preds): New var.
5807         (debug_same_succ): New function.
5808         (worklist): New var.
5809         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
5810         (init_worklist, delete_worklist, delete_basic_block_same_succ)
5811         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
5812         (print_cluster, debug_cluster, update_rep_bb)
5813         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
5814         (all_clusters): New var.
5815         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
5816         (merge_clusters, set_cluster): New function.
5817         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
5818         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
5819         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
5820         (find_clusters_1, find_clusters): New function.
5821         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
5822         (update_bbs): New var.
5823         (apply_clusters): New function.
5824         (update_debug_stmt, update_debug_stmts): New function.
5825         (tail_merge_optimize): New function.
5826         tree-pass.h (tail_merge_optimize): Declare.
5827         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
5828         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
5829         (tree-ssa-tail-merge.o): New rule.
5830         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
5831         default at OPT_LEVELS_2_PLUS.
5832         * tree-ssa-sccvn.c (vn_valueize): Move to ...
5833         * tree-ssa-sccvn.h (vn_valueize): Here.
5834         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
5835         * common.opt (ftree-tail-merge): New switch.
5836         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
5837         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
5838         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
5839         (-ftree-tail-merge, max-tail-merge-comparisons)
5840         (max-tail-merge-iterations): New item.
5841
5842 2011-09-27  Jan Hubicka  <jh@suse.cz>
5843
5844         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
5845
5846 2011-09-27  Jan Hubicka  <jh@suse.cz>
5847
5848         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
5849         parameters passed by reference; handle loads from non-SSA scalars
5850         and update comments.
5851
5852 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
5853
5854         PR rtl-optimization/50249
5855         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
5856         instead of opnum and type.  All callers changed.  Remove useless
5857         declaration.
5858         Search forward for other reloads of the same type for the same operand
5859         using the same register; if any are found, return false.
5860         (reload_regs_reach_end_p): Same argument changes; all callers changed.
5861
5862 2011-09-27  Andi Kleen  <ak@linux.intel.com>
5863             Jan Hubicka  <jh@suse.cz>
5864
5865         * doc/invoke.texi (ffat-lto-objects): Document.
5866         * toplev.c (compile_file): Do not output assembly when doing slim lto;
5867         Output __gnu_slim_lto when doing slim lto.
5868         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
5869         (cgraph_optimize): Return early when doing slim lto.
5870         * opts.c (finish_options): Complain about lack of linker plugin
5871         when doing slim lto.
5872         * common.opt (ffat-lto-objects): New.
5873
5874 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
5875
5876         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
5877         between signed and unsigned.
5878
5879 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
5880
5881         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
5882         vectorization.
5883         (vectorizable_type_promotion): Likewise.
5884         (vect_analyze_stmt): Call vectorizable_type_demotion and
5885         vectorizable_type_promotion for basic blocks.
5886         (supportable_widening_operation): Don't assume loop vectorization.
5887         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
5888         basic blocks.  Update vectorization factor for basic block
5889         vectorization.
5890         (vect_analyze_slp_instance): Allow multiple types for basic block
5891         vectorization.  Recheck unrolling factor after construction of SLP
5892         instance.
5893
5894 2011-09-27  Richard Guenther  <rguenther@suse.de>
5895
5896         * tree-object-size.c (compute_object_sizes): Fix dumping of
5897         folded statement.
5898
5899 2011-09-27  Richard Guenther  <rguenther@suse.de>
5900
5901         PR tree-optimization/50363
5902         * tree-ssa-pre.c (create_expression_by_pieces): Handle
5903         pointer conversions in POINTER_PLUS_EXPRs properly.
5904
5905 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
5906
5907         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
5908         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
5909         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
5910         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
5911         that produce subreg moves.  Define using VQX iterators.
5912
5913 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
5914
5915         * config/avr/avr.md (ashrqi3): Split alternative "n"
5916         into its remaining parts C03, C04, C05, C06, C07 and describe
5917         impact in CC by attribute "cc" appropriately.
5918         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
5919         by digging RTX.
5920
5921 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
5922
5923         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
5924         from 3 x MAX_MACHINE_MODE.
5925         (CONSTM1_RTX): Define.
5926         * emit-rtl.c (const_tiny_rtx): Change into array of
5927         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
5928         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
5929         CONSTM1_RTX.
5930         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
5931         MODE_VECTOR_INT modes.
5932         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
5933         Optimize if one operand is CONSTM1_RTX.
5934         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
5935         into mask | x.
5936
5937 2011-09-26  David S. Miller  <davem@davemloft.net>
5938
5939         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
5940         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
5941         * config/sparc/visintrin.h: Update edge and pixel-compare
5942         intrinsics to return 'long' instead of 'int'.
5943         * doc/extend.texi: Update documentation to match.
5944         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
5945         flat, allow any instruction.  Otherwise, when V9 allow parallels
5946         which consist only of sets to registers outside of %o0 to %o5.
5947         (sparc_vis_init_builtins): Update VIS builtin types for edge
5948         and pixel-compare.
5949
5950         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
5951         is enabled, mark %gsr as global.
5952         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
5953         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
5954
5955         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
5956         which will now define __VIS and __VIS__ when -mvis is enabled.
5957         * config/sparc/t-sparc: Likewise.
5958         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
5959         and add t-sparc to tmake_file for all sparc targets.
5960         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
5961         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
5962
5963         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
5964         builtins for VIS vector addition and subtraction.
5965         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
5966         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
5967         __vis_fpsub32, __vis_fpsub32s): New.
5968         * doc/extend.texi: Document new VIS intrinsics.
5969
5970 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
5971
5972         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
5973         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
5974         EQ/NE comparisons against +/-1 in the case of unused-after,
5975         non-ld-regs target.
5976
5977 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
5978
5979         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
5980         gctx.into_ssa after push_gimplify_context.
5981
5982         * gimple.c (gimple_build_call_valist): New function.
5983         * gimple.h (gimple_build_call_valist): New prototype.
5984         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
5985         (update_gimple_call): Likewise.
5986         (update_call_from_tree): Use finish_update_gimple_call.
5987         * tree-ssa-propagate.h (update_gimple_call): New prototype.
5988
5989 2011-09-26  Richard Guenther  <rguenther@suse.de>
5990
5991         PR tree-optimization/50472
5992         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
5993         volatile references.
5994
5995 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
5996
5997         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
5998         * target.def: (addr_space_subset_p): Likewise.
5999
6000 2011-09-26  Tom de Vries  <tom@codesourcery.com>
6001
6002         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
6003         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
6004         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
6005         of new var.
6006
6007 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
6008
6009         PR target/50465
6010         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
6011         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
6012         output_reload_insisf.
6013         (adjust_len): Set default to "no".
6014         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
6015         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
6016         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
6017         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
6018         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
6019         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
6020         *lshrsi3_const): Set attribute "adjust_len".
6021         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
6022         (output_movsisf): Don't pass insn to output_reload_insisf.
6023         (adjust_insn_length): Handle new alternatives to adjust_len.
6024         Remove handling of ADJUST_LEN_YES.  Clean-up code.
6025
6026 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
6027
6028         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
6029         may_trap_p to detect loads that may trap of fault.
6030
6031 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
6032
6033         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
6034         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
6035         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
6036         prototype.
6037         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
6038         * config/avr/avr.c: Rename output_reload_insisf_1 to
6039         output_reload_in_const.
6040         (avr_popcount_each_byte): Handle SFmode, too.
6041         (output_reload_in_const): Change so it can handle HI loads, too.
6042         Use avr_popcount_each_byte to work out if scratch register must be
6043         created on the fly.
6044         (output_reload_inhi): Rewrite using output_reload_in_const and...
6045         (output_movhi): ...use it to print constants' loads.
6046         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
6047
6048 2011-09-25  David S. Miller  <davem@davemloft.net>
6049
6050         * config/sparc/constraints.md (C, P, Z): New constraints for
6051         const_doube, const_int, and const_vector "all ones" values.
6052         Make unused constraint letters comment match reality.
6053         * config/sparc/predicates.md (const_all_ones_operand,
6054         register_or_zero_or_all_ones_operand): New predicates.
6055         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
6056         as well as zero constants when VIS.
6057         (sparc_legitimate_constant_p): Likewise.
6058         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
6059         (movsf_insn): Likewise
6060         (movdi_insn_sp64): Add fone alternative.
6061         (movdf_insn_sp32_v9): Likewise.
6062         (movdf_insn_sp64): Likewise.
6063
6064         * configure.ac: Add feature check to make sure the assembler
6065         supports the FMAF, HPC, and VIS 3.0 instructions found on
6066         Niagara-3 and later cpus.
6067         * configure: Rebuild.
6068         * config.in: Likewise.
6069         * config/sparc/sparc.opt: New option '-mfmaf'.
6070         * config/sparc/sparc.md: Add float fused multiply-add patterns.
6071         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
6072         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
6073         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
6074         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
6075         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
6076         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
6077         disabled.
6078         (sparc_rtx_costs): Handle 'FMA'.
6079         * doc/invoke.texi: Document -mfmaf.
6080
6081 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
6082
6083         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
6084         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
6085         DECL_BY_REFERENCE parameters.
6086
6087 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
6088
6089         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
6090         if there is no outgoing edge.
6091
6092         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
6093         integral types.
6094
6095 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
6096
6097         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
6098         of vect_analyze_bb here.
6099         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
6100
6101 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
6102
6103         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
6104         Allow not simple iv if analyzing basic block.
6105         (create_data_ref): Update call to dr_analyze_innermost.
6106         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
6107         * tree-loop-distribution.c (generate_memset_zero): Likewise.
6108         * tree-predcom.c (find_looparound_phi): Likewise.
6109         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
6110
6111 2011-09-24  David S. Miller  <davem@davemloft.net>
6112
6113         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
6114         (SPARC_GSR_REG): Define.
6115         (FIXED_REGISTERS): Mark GSR as fixed.
6116         (CALL_USED_REGISTERS): Mark GSR as call used.
6117         (HARD_REGNO_NREGS): GSR is always 1 register.
6118         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
6119         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
6120         (REGISTER_NAMES): Add "%gsr".
6121         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
6122         (UNSPEC_WRGSR): New unspec.
6123         (GSR_REG): New constant.
6124         (type): Add new insn type 'gsr'.
6125         (fpack16_vis, fpackfix_vis, fpack32_vis,
6126         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
6127         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
6128         rdgsr_v8plus): New expanders and insns.
6129         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
6130         using patterns which show that this is a plus in addition to a
6131         modification of GSR_REG, instead of an unspec.
6132         * config/sparc/ultra1_2.md: Handle 'gsr'.
6133         * config/sparc/ultra3.md: Likewise.
6134         * config/sparc/niagara.md: Likewise.
6135         * config/sparc/niagara2.md: Likewise.
6136         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
6137         end of table.
6138         (sparc_option_override): Make -mvis imply -mv8plus.
6139         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
6140         for %gsr.
6141         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
6142         __builtin_vis_read_gsr.
6143         (sparc_expand_buildin): Handle builtins that take one argument and
6144         return void.
6145         (sparc_fold_builtin): Never fold writes to %gsr.
6146         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
6147         * doc/extend.texi: Document new VIS intrinsics.
6148
6149 2011-09-23  Jan Hubicka  <jh@suse.cz>
6150
6151         * ipa-inline-transform.c (inline_call): Add comment.
6152         * ipa-inline.h (inline_param_summary): New structure and vector.
6153         (struct inline_edge_summary): Add param field.
6154         * ipa-inline-analysis.c (CHANGED): New constant.
6155         (add_clause): Handle CHANGED and NOT_CONSTANT.
6156         (predicate_probability): New function.
6157         (dump_condition): Dump CHANGED predicate.
6158         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
6159         of unknown function wide invariant.
6160         (evaluate_conditions_for_edge): Handle change probabilities.
6161         (inline_edge_duplication_hook): Copy param summaries.
6162         (inline_edge_removal_hook): Free param summaries.
6163         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
6164         sizes; dump param summaries.
6165         (will_be_nonconstant_predicate): Use CHANGED predicate.
6166         (record_modified_bb_info): New structure.
6167         (record_modified): New function.
6168         (param_change_prob): New function.
6169         (estimate_function_body_sizes): Compute param summaries.
6170         (estimate_edge_size_and_time): Add probability argument.
6171         (estimate_node_size_and_time): Add inline_param_summary argument;
6172         handle predicate probabilities.
6173         (remap_predicate): Fix formating.
6174         (remap_edge_change_prob): New function.
6175         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
6176         (remap_edge_predicates): ... this one.
6177         (inline_merge_summary): Remap edge summaries; handle predicate
6178         probabilities; remove param summaries after we are done.
6179         (do_estimate_edge_time): Update.
6180         (do_estimate_edge_growth): Update.
6181         (read_inline_edge_summary): Read param info.
6182         (inline_read_summary): Fix formating.
6183         (write_inline_edge_summary): Write param summaries.
6184
6185 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
6186
6187         * config/i386/i386.c (ix86_print_operand): Handle %~.
6188         (ix86_print_operand_punct_valid_p): Return true also for '~'.
6189         * config/i386/sse.md (i128): New mode_attr.
6190         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
6191         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
6192         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
6193         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
6194         patterns, use "<sseinsnmode>" for "mode" attribute.
6195         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
6196         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
6197         %~128 in the patterns, use "OI" for "mode" attribute.
6198
6199 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
6200
6201         PR target/50447
6202         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
6203         "tstsi", "compare".
6204         (*cmpqi_sign_extend): Use s8_operand.
6205         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
6206         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
6207         prototypes.
6208         (out_tsthi, out_tstsi): Remove prototypes.
6209         (avr_out_tsthi, avr_out_tstsi): New prototypes.
6210         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
6211         (avr_asm_len): Negative length now sets *plen to -length.
6212         (compare_sign_p): Return bool instead of int.
6213         (compare_diff_p, compare_eq_p): Ditto and make static.
6214         (avr_out_tsthi): New function.
6215         (avr_out_tstsi): New function.
6216         (avr_out_compare): New function.
6217         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
6218         ADJUST_LEN_COMPARE.
6219
6220 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
6221
6222         PR target/50447
6223         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
6224         (addsi3): Rewrite using QI scratch register.  Adjust text
6225         peepholes using plus:SI.
6226         (*addsi3_zero_extend.hi): New insn.
6227         (*subsi3_zero_extend.hi): New insn.
6228         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
6229         (*subsi3_zero_extend): Ditto.
6230         (subsi3): Change predicate #2 to register_operand.
6231         * config/avr/avr-protos.h (avr_out_plus): New prototype.
6232         (avr_out_plus_1): New static function.
6233         (avr_out_plus): New function.
6234         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
6235
6236 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
6237
6238         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
6239         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
6240
6241 2011-09-23  Ian Lance Taylor  <iant@google.com>
6242
6243         * godump.c (go_define): Treat a single character in single quotes,
6244         or a string, as an operand.
6245
6246 2011-09-23  Martin Jambor  <mjambor@suse.cz>
6247
6248         * ipa-prop.h (jump_func_type): Updated comments.
6249         (ipa_known_type_data): New type.
6250         (ipa_jump_func): Use it to describe known type jump functions.
6251         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
6252         reflect the new known type jump function contents.
6253         (compute_known_type_jump_func): Likewise.
6254         (combine_known_type_and_ancestor_jfs): Likewise.
6255         (try_make_edge_direct_virtual_call): Likewise.
6256         (ipa_write_jump_function): Likewise.
6257         (ipa_read_jump_function): Likewise.
6258         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
6259         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
6260         (propagate_accross_jump_function): Likewise.
6261
6262 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
6263
6264         PR target/50446
6265         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
6266         (rotlqi3_4): Turn insn into expander.
6267         (*rotlqi3): New insn.
6268         (rotlhi3, rotlsi3): Support rotate left/right by 1.
6269         (*rotlhi2.1, *rotlhi2.15): New insns.
6270         (*rotlsi2.1, *rotlsi2.31): New insns.
6271         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
6272
6273 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
6274
6275         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
6276
6277 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
6278
6279         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
6280
6281 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6282
6283         * reload.c (find_reloads): Set operand_mode to Pmode for address
6284         operands consisting of just a CONST_INT.
6285
6286 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
6287
6288         PR target/50482
6289         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
6290         blendv, force op_true to register if it doesn't satisfy
6291         nonimmediate_operand predicate.
6292
6293 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
6294
6295         PR middle-end/50113
6296         PR middle-end/50061
6297         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
6298         get the locate.where_pad value for register-only arguments.
6299         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
6300         (arm_pad_reg_upward): Handle null types.
6301
6302 2011-09-22  Jan Hubicka  <jh@suse.cz>
6303
6304         * ipa-inline-analysis.c: Fix overly long lines.
6305
6306 2011-09-22  Jan Hubicka  <jh@suse.cz>
6307
6308         * ipa-inline-transform.c (inline_call): Always update jump functions
6309         after inlining.
6310         * ipa-inline.c (ipa_inline): Likewise; do not call
6311         ipa_create_all_structures_for_iinln.
6312         (ipa_inline): Always free jump functions.
6313         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
6314         (remap_edge_predicates): Fix pasto.
6315         (inline_merge_summary): Remove nlined edge predicate; remove hack.
6316         (inline_analyze_function): Always initialize jump functions.
6317         (inline_generate_summary): Likewise.
6318         (inline_write_summary): Always write jump functions when ipa-cp
6319         is not doing that.
6320         (inline_read_summary): Always read jump functions when ipa-cp
6321         is not doing that.
6322         * ipa-prop.c (iinlining_processed_edges): Remove.
6323         (update_indirect_edges_after_inlining): Do not use
6324         iinlining_processed_edges; instead set param_index to -1.
6325         (propagate_info_to_inlined_callees): Only try to indirect inlining
6326         when asked to do so; update jump functions of indirect calls, too;
6327         remove jump functions of the inlined edge.
6328         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
6329         (ipa_create_all_structures_for_iinln): Remove.
6330         (ipa_free_all_structures_after_iinln): Do not free
6331         iinlining_processed_edges.
6332         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
6333
6334 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
6335
6336         * config/arm/predicates.md (expandable_comparison_operator): New
6337         predicate, extracted from...
6338         (arm_comparison_operator): ...here.
6339         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
6340         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
6341         (movdfcc): Use expandable_comparison_operator.
6342
6343 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
6344
6345         PR target/50447
6346         PR target/50465
6347         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
6348         (avr_popcount_each_byte): New prototype.
6349         * config/avr/avr.c (avr_popcount): New static function.
6350         (avr_popcount_each_byte): New function.
6351         (avr_out_bitop): New function.
6352         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
6353         avr_out_bitop.  Cleanup code.
6354         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
6355         (Ca4, Co4, Cx4): New constraints.
6356         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
6357         alternative.
6358         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
6359         (andsi3, iorsi3, xorsi3): Ditto.
6360         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
6361
6362 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
6363
6364         PR tree-optimization/50451
6365         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
6366         constant operands in reduction.
6367         (vect_get_slp_defs): Don't create vector operand for NULL scalar
6368         operand.
6369
6370 2011-09-22  David S. Miller  <davem@davemloft.net>
6371
6372         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
6373         fpack16, fpack32, fpackfix as const.
6374
6375         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
6376         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
6377         constants.  Use them everywhere.
6378
6379 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
6380
6381         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
6382         Added AND special case.  Adapted comments.
6383         (sh_rtx_costs): Added XOR and IOR case.
6384
6385 2011-09-21  Jan Hubicka  <jh@suse.cz>
6386
6387         * ipa-inline-analsis.c (compute_inline_parameters): Set
6388         cfun and current_function_decl.
6389
6390 2011-09-21  Jan Hubicka  <jh@suse.cz>
6391
6392         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
6393         handled components in parameter of builtin_constant_p.
6394         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
6395
6396 2011-09-21  Jan Hubicka  <jh@suse.cz>
6397
6398         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
6399         * ipa-inline.h (estimate_edge_time): Fix pasto.
6400         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
6401
6402 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
6403
6404         * config/i386/i386.c (ix86_expand_sse_movcc): Use
6405         blendvps, blendvpd and pblendvb if possible.
6406
6407 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
6408
6409         PR target/50464
6410         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
6411         operand 1 predicate to register_operand and operand 2 predicate
6412         to nonimmediate_operand.
6413         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
6414         xop_pcmov, force op_true to register.  Also, force op_false to
6415         register if it doesn't satisfy nonimmediate_operand predicate.
6416
6417 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
6418
6419         * config/i386/bmi2intrin.h (_mulx_u64): New.
6420         (_mulx_u32): Ditto.
6421
6422 2011-09-21  Jan Hubicka  <jh@suse.cz>
6423
6424         PR tree-optimization/50433
6425         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
6426         Use get_base_address.
6427
6428 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
6429
6430         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
6431         nonimmediate_operand instead of register_operand predicate for operands
6432         1 and 2, force them into registers if expanding them as comparison.
6433         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
6434         V8HImode force into register just operand 1.
6435
6436 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
6437
6438         PR target/45099
6439         * config/avr/avr.c (avr_function_arg_advance): Change error to
6440         warning if a fixed register is needed as function argument.
6441
6442 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
6443
6444         PR target/50449
6445         PR target/50465
6446         * config/avr/avr.md (adjust_len): New insn attribute.
6447         (*reload_insi, *reload_insf): Use it.
6448         (*movsi, *movsf): Use new interface of output_movsisf.
6449         * config/avr/avr-protos.h (output_movsisf): Change prototype.
6450         * config/avr/avr.c (output_movsisf): Ditto.
6451         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
6452         lengths of insns *reload_insi, *reload_insf.
6453         (output_reload_insisf_1): New static function.
6454         (output_reload_insisf): Use it.
6455
6456 2011-09-21  David S. Miller  <davem@davemloft.net>
6457
6458         * config/sparc/sparc.c (def_builtin): Change from macro into function.
6459         (def_builtin_const): New.
6460         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
6461         other than alignaddr and falignaddr.
6462
6463         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
6464         UNSPEC_FCMPEQ): New unspec codes.
6465         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
6466         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
6467         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
6468         new pixel compare VIS patterns.
6469         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
6470         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
6471         __vis_fcmpeq16, __vis_fcmpeq32): New.
6472         * doc/extend.texi: Document new pixel compare VIS intrinsics.
6473
6474 2011-09-21  Tom de Vries  <tom@codesourcery.com>
6475
6476         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
6477
6478 2011-09-20  David S. Miller  <davem@davemloft.net>
6479
6480         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
6481         (aligneddrl<P:mode>_vis): New pattern.
6482         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
6483         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
6484         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
6485         alignaddrl insn, and adjust edge operations for updated types.
6486         * config/sparc/visintrin.h: Likewise.
6487         * doc/extend.texi: Make typing in VIS documentation match reality.
6488
6489 2011-09-20  Terry Guo  <terry.guo@arm.com>
6490
6491         * config/arm/arm-arches.def: Add armv6s-m.
6492         * config/arm/arm-tables.opt: Regenerate.
6493
6494 2011-09-20  Wei Guozhi  <carrot@google.com>
6495
6496         PR rtl-optimization/49452
6497         * postreload.c (reload_combine): Invalidate use information when across
6498         volatile insn.
6499
6500 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
6501
6502         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
6503         Remove maintenance overhead.
6504         (haifa_sched_init, sched_finish): Update.
6505
6506 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
6507
6508         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
6509         to calculate unit, prefix_rep and prefix_data16 attributes.
6510         (*mov<mode>_internal): Ditto for unit attribute.
6511         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
6512         (*movv2sf_internal): Ditto.
6513         * config/i386/sse.md (VI1248_256): Remove mode iterator.
6514         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
6515         (*avx2_eq<mode>3): Ditto.
6516         (avx2_gt<mode>3): Ditto.
6517
6518 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
6519
6520         * config/i386/i386.md (maxmin): New code iterator.
6521         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
6522         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
6523         code iterator.
6524         (*avx2_<maxmin:code><mode>3): Macroize isn from
6525         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
6526         maxmin code iterator.
6527         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
6528         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
6529         <umaxmin:code>v16qi3.
6530
6531 2011-09-19  Alan Modra  <amodra@gmail.com>
6532             Michael Meissner  <meissner@linux.vnet.ibm.com>
6533
6534         PR target/50341
6535         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
6536         split the load of the indirect function's TOC from the call to
6537         prevent the compiler from moving the load of the new TOC above
6538         code that references the current function's TOC.
6539         (call_indirect_aix<ptrsize>_internal): Ditto.
6540         (call_indirect_aix<ptrsize>_nor11): Ditto.
6541         (call_indirect_aix<ptrsize>_internal2): Ditto.
6542         (call_value_indirect_aix<ptrsize>): Ditto.
6543         (call_value_indirect_aix<ptrsize>_internal): Ditto.
6544         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6545         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6546
6547 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
6548
6549         * config/i386/sse.md (*sse4_1_extractps): Change into
6550         define_insn_and_split, add =x 0 n and =x x n alternatives
6551         and split them after reload.
6552
6553 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
6554
6555         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
6556
6557 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
6558
6559         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
6560
6561 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
6562
6563         PR tree-optimization/50413
6564         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
6565         a basic block if one of its data-refs can't be analyzed.
6566
6567 2011-09-19  Paul Brook  <paul@codesourcery.com>
6568
6569         * config/arm/predicates.md (shift_amount_operand): Check constant
6570         shift count is in range.
6571         (const_shift_operand): Remove.
6572
6573 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
6574             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
6575
6576         PR target/50091
6577         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
6578         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
6579
6580 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
6581
6582         * config/i386/bmiintrin.h: Remove tmp.
6583         * config/i386/tbmintrin.h: Likewise.
6584
6585 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
6586
6587         PR tree-optimization/50414
6588         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
6589         MIN_EXPR.
6590
6591 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
6592
6593         PR tree-optimization/50412
6594         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
6595         acceses that require epilogue loop if vectorizing outer loop.
6596
6597 2011-09-17  David S. Miller  <davem@davemloft.net>
6598
6599         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
6600         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
6601         New unspecs.
6602         (define_attr type): New type 'edge'.
6603         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
6604         edge32l_vis): New patterns.
6605         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
6606         * config/sparc/ultra3.md: Likewise.
6607         * config/sparc/niagara.md: Likewise.
6608         * config/sparc/niagara2.md: Likewise.
6609         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
6610         builtins for VIS edge instructions.
6611         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
6612         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
6613         intrinsics.
6614         (__v8qi, __v4qi): Make unsigned.
6615         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
6616         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
6617         __vis_fpack32): Fix types.
6618         * doc/extend.texi: Document new 'edge' VIS intrinsics.
6619
6620         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
6621         divide costs.
6622         (niagara3_costs): New.
6623         (sparc_option_override): Use it.
6624         * gcc/config/sparc/niagara2.md: Adjust with more accurate
6625         Niagara-3 reservations.
6626
6627 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
6628
6629         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
6630         (sse2_avx, sseinsnmode): Add V2TI.
6631         (REDUC_SMINMAX_MODE): New mode iterator.
6632         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
6633         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
6634         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
6635         (sse2_lshrv1ti3): Rename to...
6636         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
6637         iterator.  Move before umaxmin expanders.
6638         * config/i386/i386.h (VALID_AVX256_REG_MODE,
6639         SSE_REG_MODE_P): Accept V2TImode.
6640         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
6641         V16HImode, V8SImode and V4DImode.
6642
6643         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
6644         and V4DImode.
6645         (ix86_build_signbit_mask): Likewise.
6646         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
6647         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
6648         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
6649         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
6650         (<code><mode>3) ... this.
6651         (avx2_<code><mode>3 smaxmin expand): Rename to...
6652         (<code><mode>3) ... this.
6653         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
6654         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
6655         VI8_AVX2 mode iterator.
6656         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
6657         VI8_AVX2 mode iterator.
6658         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
6659         New expanders.
6660
6661 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
6662
6663         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
6664         throughout file.
6665
6666 2011-09-16  David S. Miller  <davem@davemloft.net>
6667
6668         * config/sparc/visintrin.h: New file.
6669         * config.gcc: Add it to extra_headers on sparc.
6670
6671 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
6672
6673         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
6674         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
6675         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
6676         reduc_smin_v4sf): Adjust callers.
6677         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
6678         New expanders.
6679
6680         * config/i386/sse.md (vec_extract_hi_<mode>,
6681         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
6682         vextracti128 instead of vextractf128 for -mavx2 and
6683         integer vectors.  For V4DFmode fix up mode attribute.
6684         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
6685         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
6686         instead of V8SF mode attribute.
6687         (avx2_extracti128): Change into define_expand.
6688         * config/i386/i386.c (ix86_expand_vector_extract): Handle
6689         32-byte vector modes if TARGET_AVX.
6690
6691 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
6692
6693         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
6694         (umulqi3_highpart, smulqi3_highpart): Ditto.
6695         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
6696         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
6697         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
6698
6699 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
6700
6701         PR target/50358
6702         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
6703         (*maddqi4, *maddqi4.const): New insns.
6704         (*msubqi4, *msubqi4.const): New insns.
6705         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
6706         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
6707         HImode by 1 in the case of multiplying with a CONST_INT.
6708         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
6709
6710 2011-09-15   Jan Hubicka  <jh@suse.cz>
6711
6712         PR lto/50430
6713         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
6714         error_mark_node in the DECL_INITIAL of vtable.
6715
6716 2011-09-15   Diego Novillo  <dnovillo@google.com>
6717
6718         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
6719         @SYSROOT_CFLAGS_FOR_TARGET@.
6720         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
6721         * configure: Regenerate.
6722         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
6723         Remove setting of GCC_UNDER_TEST.
6724
6725 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
6726
6727         * config/i386/i386.c (output_fp_compare): Return %v prefixed
6728         instruction mnemonics for TARGET_AVX.
6729
6730         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
6731         "type" attribute calculation.
6732         (*movdf_internal): Ditto.
6733         (*movsf_internal): Ditto.
6734
6735 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
6736
6737         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
6738
6739 2011-09-15  Jason Merrill  <jason@redhat.com>
6740
6741         PR c++/50361
6742         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
6743
6744 2011-09-15  Jan Hubicka  <jh@suse.cz>
6745
6746         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
6747         simplify obviously true clauses.
6748         (and_predicates, or_predicates): Add conditions parameter.
6749         (inline_duplication_hoook): Update.
6750         (mark_modified): New function.
6751         (unmodified_parm): New function.
6752         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
6753         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
6754         Use unmodified_parm.
6755         (estimate_function_body_sizes): Update.
6756         (remap_predicate): Update.
6757
6758 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
6759
6760         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
6761         read-after-read dependencies in basic block SLP.
6762
6763 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
6764
6765         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
6766         throughout file.
6767
6768 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
6769
6770         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
6771         throughout file.
6772
6773 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
6774
6775         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
6776         throughout file.
6777
6778 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
6779
6780         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
6781         throughout file.
6782         * config/rs6000/constraints.md: Likewise.
6783
6784 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
6785
6786         * config/microblaze/microblaze.md: Use match_test rather than
6787         eq/ne symbol_ref throughout file.
6788
6789 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
6790
6791         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
6792         throughout file.
6793
6794 2011-09-14  Tom de Vries  <tom@codesourcery.com>
6795
6796         PR middle-end/50251
6797         * explow.c (emit_stack_restore): Set crtl->need_drap if
6798         stack_restore is emitted.
6799
6800 2011-09-14  Julian Brown  <julian@codesourcery.com>
6801
6802         * config/arm/arm.c (arm_override_options): Add unaligned_access
6803         support.
6804         (arm_file_start): Emit attribute for unaligned access as appropriate.
6805         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
6806         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
6807         (insv, extzv): Add unaligned-access support.
6808         (extv): Change to expander. Likewise.
6809         (extzv_t1, extv_regsi): Add helpers.
6810         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
6811         (unaligned_storesi, unaligned_storehi): New.
6812         (*extv_reg): New (previous extv implementation).
6813         * config/arm/arm.opt (munaligned_access): Add option.
6814         * config/arm/constraints.md (Uw): New constraint.
6815         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
6816         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
6817         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
6818         volatile accesses when -fstrict-volatile-bitfields is in effect.
6819         (extract_bit_field_1): Likewise.
6820
6821 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
6822
6823         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
6824         a scalar integer before applying integer-only optimisations to
6825         inner arithmetic.
6826
6827 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
6828
6829         * config/mips/mips.c (mips_expand_epilogue): Generate a
6830         simple_return only if the return address is in r31.
6831
6832 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
6833
6834         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
6835         NULL for a jump that is a cc0 insn, pick the previous insn for
6836         move_before.
6837
6838 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
6839
6840         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
6841         throughout file.
6842
6843 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
6844
6845         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
6846         throughout file.
6847
6848 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
6849
6850         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
6851         symbol_ref throughout file.
6852
6853 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
6854
6855         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
6856         throughout file.
6857
6858 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
6859
6860         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
6861         throughout file.
6862
6863 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
6864
6865         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
6866         throughout file.
6867         * config/arm/neon.md: Likewise.
6868         * config/arm/vfp.md: Likewise.
6869         * config/arm/thumb2.md: Likewise.
6870         * config/arm/cortex-m4.md: Likewise.
6871
6872 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
6873
6874         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
6875         define_insn patterns for combine.
6876
6877 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
6878
6879         * reorg.c: Always define make_return_insns.
6880
6881 2011-09-13  Jan Hubicka  <jh@suse.cz>
6882
6883         PR other/49533
6884         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
6885
6886 2011-09-13  Jan Hubicka  <jh@suse.cz>
6887
6888         PR other/49533
6889         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
6890
6891 2011-09-13  Paul Brook  <paul@codesourcery.com>
6892
6893         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6894         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
6895         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
6896         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
6897         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
6898         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
6899         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
6900         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
6901         enabling unwind tables.
6902         (c6x_debug_unwind_info): New function.
6903         (TARGET_ARM_EABI_UNWINDER): Define.
6904         (TARGET_DEBUG_UNWIND_INFO): Define.
6905         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
6906         (TARGET_EXTRA_CFI_SECTION): Remove.
6907         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
6908         * ginclude/unwind-arm-common.h: New file.
6909
6910 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
6911
6912         PR target/50358
6913         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
6914         * config/avr/avr.md: (extend_s): New code attribute.
6915         (mul_r_d): New code attribute.
6916         (*maddqihi4, *umaddqihi4): New insns.
6917         (*msubqihi4, *umsubqihi4): New insns.
6918         (*usmaddqihi4, *sumaddqihi4): New insns.
6919         (*usmsubqihi4, *susubdqihi4): New insns.
6920         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
6921         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
6922         (*umsubqihi4.uconst.ashift): New insn-and-split.
6923         (*msubqihi4.sconst.ashift): New insn-and-split.
6924         (*sumaddqihi4.uconst): New insn-and-split.
6925         (*sumsubqihi4.uconst): New insn-and-split.
6926         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
6927         PLUS:HI and MINUS:HI.
6928
6929 2011-09-13  Revital Eres  <revital.eres@linaro.org>
6930
6931         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
6932         (optimize_sc): Adjust call to remove_node_from_ps.
6933         (sms_schedule): Add print info.
6934
6935 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
6936
6937         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
6938         flags specially.
6939
6940 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
6941
6942         PR bootstrap/50010
6943         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
6944         NOTE_INSN_CFI notes, with the exception of
6945         NOTE_INSN_SWITCH_TEXT_SECTIONS.
6946
6947 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
6948             Richard Sandiford  <rdsandiford@googlemail.com>
6949
6950         * config/mips/mips.c (mips_epilogue): New structure.
6951         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
6952         restoring registers.
6953         (mips_epilogue_emit_cfa_restores): New function.
6954         (mips_epilogue_set_cfa): Likewise.
6955         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
6956         the current CFA register from the stack, redefine the CFA in terms
6957         of the stack pointer.
6958         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
6959         to the epilogue instructions.
6960
6961 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
6962
6963         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
6964         argument.
6965         (mips16e_build_save_restore): Update accordingly.
6966
6967 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
6968
6969         PR rtl-optimization/50212
6970         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6971         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
6972
6973         PR debug/50299
6974         * calls.c (load_register_parameters): Use use_reg_mode instead
6975         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
6976         entry.
6977         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
6978         for stack CALL_INSN_FUNCTION_USAGE uses.
6979         * expr.h (use_reg_mode): New prototype.
6980         (use_reg): Changed into inline around use_reg_mode.
6981         * expr.c (use_reg): Renamed to...
6982         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
6983         mode to that mode instead of VOIDmode.
6984         * var-tracking.c (prepare_call_arguments): Don't track parameters
6985         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
6986         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
6987         EXPR_LIST mode.
6988
6989 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
6990
6991         PR target/43746
6992         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
6993         (progmem_section): New Variable.
6994         (avr_asm_init_sections): Initialize it.
6995         (TARGET_ASM_SELECT_SECTION): Define to...
6996         (avr_asm_select_section): ... this new Function.
6997         (avr_replace_prefix): New Function.
6998         (avr_asm_function_rodata_section): Use it.
6999         (avr_insert_attributes): Don't add section attribute for PROGMEM.
7000         (avr_section_type_flags): Use avr_progmem_p instead of section
7001         name to detect if object is in PROGMEM.
7002         (avr_asm_named_section): Set section name prefix for objects in
7003         PROGMEM.
7004
7005 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
7006
7007         PR bootstrap/50352
7008         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
7009         sprintf format string.
7010
7011 2011-09-12  Richard Guenther  <rguenther@suse.de>
7012
7013         PR tree-optimization/50343
7014         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
7015         that the reduction is over an SSA name before checking its definition.
7016
7017 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
7018
7019         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
7020         throughout file.
7021
7022 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
7023
7024         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
7025         throughout file.
7026         * config/mips/sb1.md: Likewise.
7027         * config/mips/predicates.md: Replace (match_test "!...")
7028         with (not (match_test "..."))
7029         * config/mips/constraints.md: Likewise.
7030
7031 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
7032
7033         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
7034         * config/arm/arm-tables.opt: Regenerate.
7035         * config/arm/arm-tune.md: Regenerate.
7036         * config/arm/arm.c (arm_file_start): Output .arch directive when
7037         user passes -mcpu=generic-*.
7038         (arm_issue_rate): Add genericv7a support.
7039         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
7040         (ASM_CPU_SPEC): New define.
7041         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
7042         * config/arm/semi.h (ASM_SPEC): Likewise.
7043         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
7044         and -mtune=generic-*.
7045
7046 2011-09-09  Richard Guenther  <rguenther@suse.de>
7047
7048         PR tree-optimization/50328
7049         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
7050         constant or default-def operand.
7051
7052 2011-09-09  Richard Guenther  <rguenther@suse.de>
7053
7054         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
7055         last statement.
7056
7057 2011-09-09  Richard Guenther  <rguenther@suse.de>
7058
7059         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
7060         instead of a statement.
7061         * gimple-fold.c (fold_stmt_inplace): Likewise.
7062         * sese.c (graphite_copy_stmts_from_block): Adjust.
7063         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
7064         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
7065         fold_stmt.
7066         (forward_propagate_addr_into_variable_array_index): Likewise.
7067         (forward_propagate_addr_expr_1): adjust.
7068         (associate_plusminus): Likewise.
7069         (ssa_forward_propagate_and_combine): Likewise.
7070         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
7071         (execute_cse_reciprocals): Likewise.
7072         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
7073
7074 2011-09-09  Nick Clifton  <nickc@redhat.com>
7075
7076         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
7077         Return a positive value to indicate that the bits at the
7078         bottom of the register should be cleared.
7079
7080 2011-09-09  Richard Guenther  <rguenther@suse.de>
7081
7082         * tree-ssa-operands.c (swap_tree_operands): Always adjust
7083         existing operand positions.
7084
7085 2011-09-09  Richard Guenther  <rguenther@suse.de>
7086
7087         PR middle-end/50333
7088         * tree-data-ref.c (split_constant_offset): Do not try to handle
7089         ternary ops.
7090
7091 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
7092
7093         PR tree-optimization/50318
7094         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
7095         typo in use of mult_rhs1 and mult_rhs2.
7096
7097 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
7098
7099         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
7100         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
7101
7102 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
7103
7104         * config/arm/arm.md (push_multi): Emit predicates.
7105         (push_fp_multi): Likewise.
7106         * config/arm/arm.c (vfp_output_fstmd): Likewise.
7107
7108 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
7109
7110         PR c++/33255 - Support -Wunused-local-typedefs warning
7111         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
7112         (pushdecl): Use the new record_locally_defined_typedef.
7113         (store_parm_decls): Allocate cfun->language.
7114         (finish_function): Use the new maybe_warn_unused_local_typedefs,
7115         and free cfun->language.
7116         (c_push_function_context): Allocate cfun->language here only if needed.
7117         (c_pop_function_context): Likewise, mark cfun->language
7118         for collection only when it should be done.
7119         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
7120         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
7121         maybe_record_local_typedef_use.
7122         * doc/invoke.texi: Update documentation for
7123         -Wunused-local-typedefs.
7124
7125 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
7126
7127         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
7128         (ix86_avoid_lea_for_add): Likewise.
7129         (ix86_avoid_lea_for_addr): Likewise.
7130         (ix86_split_lea_for_addr): Likewise.
7131
7132         * config/i386/i386.c (LEA_MAX_STALL): New.
7133         (increase_distance): Likewise.
7134         (insn_defines_reg): Likewise.
7135         (insn_uses_reg_mem): Likewise.
7136         (distance_non_agu_define_in_bb): Likewise.
7137         (distance_agu_use_in_bb): Likewise.
7138         (ix86_lea_outperforms): Likewise.
7139         (ix86_ok_to_clobber_flags): Likewise.
7140         (ix86_avoid_lea_for_add): Likewise.
7141         (ix86_avoid_lea_for_addr): Likewise.
7142         (ix86_split_lea_for_addr): Likewise.
7143         (distance_non_agu_define): Search in pred BBs added.
7144         (distance_agu_use): Search in succ BBs added.
7145         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
7146         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
7147         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
7148
7149         * config/i386/i386.md: Split added to transform non destructive
7150         add into move and add.
7151         (lea_1): transformed into insn_and_split to avoid AGU stalls.
7152         (lea<mode>_2): Likewise.
7153
7154 2011-09-08  Martin Jambor  <mjambor@suse.cz>
7155
7156         PR tree-optimization/50287
7157         * ipa-split.c (split_function): Do not create SSA names for
7158         non-gimple-registers.
7159
7160 2011-09-08  Richard Guenther  <rguenther@suse.de>
7161
7162         PR tree-optimization/19831
7163         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
7164         skip builtins with vdefs that do not really store something.
7165         (propagate_necessity): For calls to free that we can associate
7166         with an allocation function do not mark the freed pointer
7167         definition necessary.
7168         (eliminate_unnecessary_stmts): Remove a call to free if
7169         the associated call to an allocation function is not necessary.
7170
7171 2011-09-08  Richard Guenther  <rguenther@suse.de>
7172
7173         PR tree-optimization/19831
7174         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
7175         allocation functions as necessary.
7176
7177 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
7178
7179         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
7180         cut from ...
7181         (darwin_default_min_version): Amended to provide defaults
7182         for the cross directory case.
7183         (darwin_driver_init): call darwin_default_min_version unconditionally.
7184         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
7185         * config/darwin9.h: Likewise.
7186         * config/darwin10.h: Likewise.
7187         * config/rs6000/darwin7.h: Likewise.
7188
7189 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
7190
7191         PR target/50310
7192         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
7193         code early if TARGET_AVX.
7194         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
7195
7196 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
7197
7198         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
7199         duplicates.
7200
7201         PR target/50310
7202         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
7203         "mode" attribute computation.
7204
7205 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
7206
7207         * regrename.c (struct du_head): Make nregs signed.
7208         (closed_chains): Remove.
7209         (create_new_chain): Return the new chain.
7210         (chain_from_id): New static function.
7211         (dump_def_use_chain): Change argument to be an int, indicating
7212         the first ID to print.  All callers changed.
7213         (merge_overlapping_regs): Use chain_from_id.  Assert that
7214         chains don't conflict with themselves.
7215         (rename_chains): Take no argument.  Iterate over id_to_chain
7216         rather to find chains to rename.  Clear tick before the main loop.
7217         (struct incoming_reg_info): New struct.
7218         (struct bb_rename_info): New struct.
7219         (init_rename_info, set_incoming_from_chain, merge_chains): New
7220         static functions.
7221         (regrename_analyze): New static function, broken out of
7222         regrename_optimize.  Record and make use of open chain information
7223         at basic block boundaries, and merge chains where possible.
7224         (scan_rtx_reg): Make this_nregs signed.  Don't update
7225         closed_chains.
7226         (build_def_use): Return a bool to indicate success.  All callers
7227         changed.  Don't initialize global data here.
7228         (regrename_optimize): Move most code out of here into
7229         regrename_analyze.
7230         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
7231         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
7232         static inline functions.
7233         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
7234
7235         * bb-reorder.c (insert_section_boundary_note): Don't check
7236         optimize_function_for_speed_p.
7237         (gate_handle_partition_blocks): Do it here instead.
7238         (gate_handle_reorder_blocks): Move preliminary checks here ...
7239         (rest_of_handle_reorder_blocks): ... from here.
7240
7241 2011-09-07  Martin Jambor  <mjambor@suse.cz>
7242
7243         PR middle-end/50301
7244         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
7245         function index bounds.
7246         (perhaps_add_new_callers): Likewise.
7247
7248 2011-09-07  Martin Jambor  <mjambor@suse.cz>
7249
7250         PR tree-optimization/49911
7251         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
7252         enumerations to the corresponding plain integer type.
7253
7254 2011-09-07  Richard Guenther  <rguenther@suse.de>
7255
7256         PR tree-optimization/50319
7257         * tree-if-conv.c (set_bb_predicate): Assert we only set
7258         canonical predicates.
7259         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
7260         around canonical predicates.
7261         (predicate_bbs): Do not re-gimplify already canonical
7262         predicates.  Properly unshare them though.
7263         (find_phi_replacement_condition): Simplify.
7264
7265 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
7266
7267         PR target/49030
7268         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
7269         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
7270         reusing the old code from get_arm_condition_code.  Return ARM_NV
7271         for invalid comparison codes.
7272         (get_arm_condition_code): Redefine in terms of
7273         maybe_get_arm_condition_code.
7274         * config/arm/predicates.md (arm_comparison_operator): Use
7275         maybe_get_arm_condition_code.
7276
7277 2011-09-07  Richard Guenther  <rguenther@suse.de>
7278
7279         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
7280         Canonicalize negated predicates by swapping edges.
7281         (forward_propagate_into_cond): Likewise.
7282
7283 2011-09-07  Richard Guenther  <rguenther@suse.de>
7284
7285         PR tree-optimization/50213
7286         * tree-flow.h (simple_iv_increment_p): Declare.
7287         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
7288         POINTER_PLUS_EXPR.
7289         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
7290         not propagate simple IV counter increments.
7291
7292 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
7293             Iain Sandoe  <iains@gcc.gnu.org>
7294
7295         * config/rs6000/rs6000.c (compute_save_world_info): Test
7296         cfun->has_nonlocal_label to determine if the out-of-line save
7297         world call may be used.
7298
7299 2011-09-07  Nick Clifton  <nickc@redhat.com>
7300
7301         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
7302         label on the parallel part of the insn.
7303
7304 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
7305
7306         PR debug/50191
7307         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
7308         avoid_constant_pool_reference first instead of last.
7309
7310 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
7311
7312         * doc/configfiles.texi (Configuration Files): Update documentation
7313         about tm_p.h and remove FIXME comment.
7314
7315 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
7316
7317         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
7318         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
7319
7320 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
7321
7322         * config/darwin10.h Remove duplicate LIB_SPEC.
7323
7324 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
7325
7326         PR middle-end/44382
7327         * target.def (reassociation_width): New hook.
7328
7329         * doc/tm.texi.in (reassociation_width): Likewise.
7330
7331         * doc/tm.texi (reassociation_width): Likewise.
7332
7333         * doc/invoke.texi (tree-reassoc-width): New param documented.
7334
7335         * hooks.h (hook_int_uint_mode_1): New default hook.
7336
7337         * hooks.c (hook_int_uint_mode_1): Likewise.
7338
7339         * config/i386/i386.h (ix86_tune_indices): Add
7340         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
7341
7342         (TARGET_REASSOC_INT_TO_PARALLEL): New.
7343         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
7344
7345         * config/i386/i386.c (initial_ix86_tune_features): Add
7346         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
7347
7348         (ix86_reassociation_width): New function.
7349
7350         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
7351
7352         * tree-ssa-reassoc.c (get_required_cycles): New function.
7353         (get_reassociation_width): Likewise.
7354         (swap_ops_for_binary_stmt): Likewise.
7355         (rewrite_expr_tree_parallel): Likewise.
7356
7357         (rewrite_expr_tree): Refactored.  Part of code moved into
7358         swap_ops_for_binary_stmt.
7359
7360         (reassociate_bb): Now checks reassociation width to be used and
7361         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
7362
7363 2011-09-06  Richard Guenther  <rguenther@suse.de>
7364
7365         PR tree-optimization/47025
7366         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
7367         uses nothing.
7368         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
7369         BUILT_IN_FREE.
7370         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
7371         definitely points to.
7372         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7373         BUILT_IN_VA_START doesn't let its va_list argument escape.
7374         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
7375         not make any previous stores necessary.
7376
7377 2011-09-06  Martin Jambor  <mjambor@suse.cz>
7378
7379         * ipa-inline.h (struct inline_summary): Move versionable flag...
7380         * cgraph.h (struct cgraph_local_info): ...here
7381         * ipa-cp.c (determine_versionability): Use the new versionable flag.
7382         (determine_versionability): Likewise.
7383         (ipcp_versionable_function_p): Likewise.
7384         (ipcp_generate_summary): Likewise.
7385         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
7386         versionable flag.
7387         (compute_inline_parameters): Do not clear the versionable flag.
7388         (inline_read_section): Do not stream the versionable flag.
7389         (inline_write_summary): Likewise.
7390         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
7391         (input_overwrite_node): Likewise.
7392
7393 2011-09-06  Richard Guenther  <rguenther@suse.de>
7394
7395         PR tree-optimization/48149
7396         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
7397         (vn_valueize): Move earlier.
7398         (valueize_expr): Use vn_valueize.
7399         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
7400         operands.
7401         (simplify_unary_expression): Simplify.
7402
7403 2011-09-06  Richard Guenther  <rguenther@suse.de>
7404
7405         PR tree-optimization/48317
7406         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
7407         trailing array.
7408         (sizeof_vn_nary_op): New inline function.
7409         (vn_nary_op_lookup_pieces): Adjust.
7410         (vn_nary_op_insert_pieces): Likewise.
7411         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
7412         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
7413         any number of operands.
7414         (vn_nary_length_from_stmt): New function.
7415         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
7416         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
7417         sized temporary.
7418         (vn_nary_op_lookup): Likewise.
7419         (vn_nary_op_lookup_stmt): Likewise.
7420         (vn_nary_op_insert_into): Likewise.
7421         (vn_nary_op_insert_stmt): Likewise.
7422         (visit_use): Handle CONSTRUCTOR as nary.
7423         * tree-ssa-pre.c (phi_translate_1): Adjust.
7424         (create_expression_by_pieces): Likewise.
7425         (compute_avail): Likewise.
7426
7427 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
7428
7429          * config/arm/arm.c (arm_preferred_simd_mode): Check
7430         TARGET_NEON_VECTORIZE_DOUBLE instead of
7431         TARGET_NEON_VECTORIZE_QUAD.
7432         (arm_autovectorize_vector_sizes): Likewise.
7433         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
7434         mask of mvectorize-with-neon-double.  Add RejectNegative.
7435         (mvectorize-with-neon-double): New.
7436
7437 2011-09-06  Richard Guenther  <rguenther@suse.de>
7438
7439         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
7440
7441 2011-09-06  Tom de Vries  <tom@codesourcery.com>
7442
7443         * recog.c (asm_labels_ok): New function.
7444         (check_asm_operands): Use asm_labels_ok.
7445
7446 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
7447
7448         PR target/49606
7449         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
7450         (PMODE_INSN): New macro.
7451         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
7452         (mips_got_load, mips_expand_synci_loop): Likewise.
7453         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
7454         cprestore patterns.
7455         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
7456         copygp_mips16 patterns.
7457         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
7458         and use_cprestore patterns.
7459         (mips_override_options): Check for incompatible -mabi and -mlong
7460         combinations.
7461         * config/mips/mips.md (unspec_got<mode>): Rename to...
7462         (unspec_got_<mode>): ...this.
7463         (copygp_mips16): Use the Pmode iterator.
7464         (potential_cprestore, cprestore, use_cprestore): Likewise.
7465         (clear_cache, indirect_jump): Use PMODE_INSN.
7466         (indirect_jump<mode>): Rename to...
7467         (indirect_jump_<mode>): ...this.
7468         (tablejump): Use PMODE_INSN.
7469         (tablejump<mode>): Rename to...
7470         (tablejump_<mode>): ...this.
7471         (exception_receiver): Handle restore_gp_si and restore_gp_di.
7472         (restore_gp): Use the Pmode iterator.
7473         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
7474         PMODE_INSN.
7475
7476 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
7477
7478         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
7479         Fix the type of the BIT_AND_EXPR.
7480
7481 2011-09-05  David S. Miller  <davem@davemloft.net>
7482
7483         * config.host: Add driver-sparc.o and sparc/x-sparc on
7484         native sparc*-*-linux* builds.
7485         * config/sparc/driver-sparc.c: Correct Linux strings.
7486         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
7487         * config/sparc/linux64.h: Likewise.
7488         * doc/invoke.texi: Document that Linux also supports
7489         -mcpu=native and -mtune=native on sparc.
7490
7491         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
7492         PROCESSOR_NIAGARA4): New.
7493         * config/sparc/sparc.opt: Handle new processor types.
7494         * config/sparc/sparc.md: Add to "cpu" attribute.
7495         * config/sparc/sparc.h (TARGET_CPU_niagara3,
7496         TARGET_CPU_niagara4): New, treat as niagara2.
7497         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
7498         * config/sparc/sol2.h: Likewise.
7499         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
7500         * config/sparc/sparc.c (sparc_option_override): Add
7501         niagara3 and niagara4 handling.
7502         (sparc32_initialize_trampoline): Likewise.
7503         (sparc64_initialize_trampoline): Likewise.
7504         (sparc_use_sched_lookahead): Likewise.
7505         (sparc_issue_rate): Likewise.
7506         (sparc_register_move_cost): Likewise.
7507         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
7508         and niagara4 as appropriate.
7509         * doc/invoke.texi: Document new processor types.
7510         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
7511         and --with-tune options.
7512
7513         * config/sparc/sol2-64.h: Move ...
7514         * config/sparc/default-64.h: ... to here.  Update comment.
7515         * config.gcc: Update Solaris sparc to use default-64.h, also
7516         prefix this header into the list on sparc64-*-linux.
7517         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
7518         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
7519         to MASK_HARD_QUAD.
7520
7521 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
7522
7523         PR target/50289
7524         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
7525         that contain global register variable.
7526
7527 2011-09-05  Richard Guenther  <rguenther@suse.de>
7528
7529         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
7530
7531 2011-09-05  Richard Guenther  <rguenther@suse.de>
7532
7533         * stor-layout.c (layout_type): Use size_binop for array size
7534         calculations.
7535
7536 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
7537
7538         * config/avr/avr.h (progmem_section): Remove Declaration.
7539         * config/avr/avr.c (progmem_section): Make static and rename to
7540         progmem_swtable_section.
7541         (avr_output_addr_vec_elt): No need to switch sections.
7542         (avr_asm_init_sections): Use output_section_asm_op as section
7543         callback for progmem_swtable_section.
7544         (avr_output_progmem_section_asm_op): Remove Function.
7545         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
7546         (avr_asm_function_rodata_section): New static Function.
7547         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
7548         alignment 2**1 for jump tables.
7549
7550 2011-09-04  Jan Hubicka  <jh@suse.cz>
7551
7552         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
7553         parameter is SSA name.
7554
7555 2011-09-04  Richard Guenther  <rguenther@suse.de>
7556
7557         Revert
7558         2011-08-31  Richard Guenther  <rguenther@suse.de>
7559
7560         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
7561         special-casing.
7562
7563 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
7564
7565         PR debug/49901
7566         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
7567
7568 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
7569             Ira Rosen  <ira.rosen@linaro.org>
7570
7571         PR tree-optimization/50208
7572         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
7573         argument.  Check that def_stmt is inside the loop.
7574         (vect_recog_widen_mult_pattern): Update calls to
7575         vect_handle_widen_mult_by_cons.
7576         (vect_operation_fits_smaller_type): Check that def_stmt is
7577         inside the loop.
7578
7579 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
7580
7581         * tree-vectorizer.c (vect_print_dump_info): Print line
7582         number when dumping to a file.
7583         (vectorize_loops): Add new messages to dump file.
7584
7585 2011-09-03  Martin Jambor  <mjambor@suse.cz>
7586
7587         * ipa-prop.h (ipa_jump_func_t): New typedef.
7588         (struct ipa_edge_args): Removed field argument_count, field
7589         jump_functions turned into a vector.
7590         (ipa_set_cs_argument_count): Removed.
7591         (ipa_get_cs_argument_count): Updated to work on vectors.
7592         (ipa_get_ith_jump_func): Likewise.
7593         * ipa-prop.c (ipa_count_arguments): Removed.
7594         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
7595         jump functions.  Update caller.
7596         (compute_pass_through_member_ptrs): Likewise.
7597         (compute_cst_member_ptr_arguments): Likewise.
7598         (ipa_compute_jump_functions_for_edge): Get number of arguments from
7599         the statement, allocate vector.
7600         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
7601         (duplicate_ipa_jump_func_array): Removed.
7602         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
7603         (ipa_read_node_info): Allocate vector.
7604
7605 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7606
7607         PR middle-end/50232
7608         * config/pa/pa.md (return): Define "return" insn pattern.
7609         (epilogue): Use it when no epilogue is needed.
7610         * config/pa/pa.c (pa_can_use_return_insn): New function.
7611         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
7612
7613 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
7614
7615         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
7616         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
7617         Force at least BITS_PER_UNIT alignment on the new variable.
7618
7619 2011-09-02  Gary Funck <gary@intrepid.com>
7620
7621         * opts.c (print_specific_help): Fix off-by-one compare in
7622         assertion check.
7623         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7624         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
7625         Increase by +5 to allow for more languages.
7626         * optc-gen.awk: Generate #if that ensures that the number of
7627         languages is within the implementation-defined limit.
7628
7629 2011-09-02  Michael Matz  <matz@suse.de>
7630
7631         PR middle-end/50260
7632         * ipa-split.c (split_function): Call add_referenced_var.
7633
7634         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
7635         (cond_if_else_store_replacement_1): Ditto.
7636         * tree-ssa-pre.c (get_representative_for): Ditto.
7637         (create_expression_by_pieces): Ditto.
7638         (insert_into_preds_of_block): Ditto.
7639         * tree-sra.c (create_access_replacement): Ditto.
7640         (get_replaced_param_substitute): Ditto.
7641
7642 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
7643
7644         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
7645         automata_options.
7646         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
7647         (l1w, s1w, l2w, s2w): Define in the main automaton.
7648         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
7649         units.
7650         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
7651         (c6x_unit_names): Add the new units.
7652         (c6x_unit_codes): New static array.
7653         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
7654         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
7655         UNIT_QID_SIDE_OFFSET): New macros.
7656         (RESERVATION_S2): Adjust value.
7657         (c6x_option_override): Compute c6x_unit_codes.
7658         (assign_reservations): Take the unit_mask of the last instruction
7659         into account.  Detect floating point reservations by looking for
7660         the new units.  Don't assign reservations if the field is already
7661         nonzero.
7662         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
7663         (init_sched_state): Initialize it.
7664         (c6x_clear_sched_context): Free it.
7665         (insn_set_clock): Clear reservation.
7666         (prev_cycle_state): New static variable.
7667         (c6x_init_sched_context): Save it.
7668         (c6x_sched_init): Allocate space for it and clear it.
7669         (c6x_sched_dfa_pre_cycle_insn): New static function.
7670         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
7671         (c6x_variable_issue): Only record units in the unit_mask that
7672         were not set at the start of the cycle.
7673         (c6x_variable_issue): Compute and store the unit_mask from the
7674         current state.
7675         (reorg_split_calls): Ensure the new information remains correct.
7676         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
7677         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
7678         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
7679         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
7680         Add special reservations.
7681         * config/c6x/c6x-sched.md: Regenerate.
7682
7683 2011-09-02  Martin Jambor  <mjambor@suse.cz>
7684
7685         * ipa-prop.h (ipa_node_params): Removed fields
7686         called_with_var_arguments and node_versionable.
7687         (ipa_set_called_with_variable_arg): Removed.
7688         (ipa_is_called_with_var_arguments): Likewise.
7689         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
7690         (determine_versionability): Do not check for type attributes and va
7691         builtins.  Record versionability into inline summary.
7692         (initialize_node_lattices): Do not check
7693         ipa_is_called_with_var_arguments.
7694         (propagate_constants_accross_call): Likewise, ignore arguments we do
7695         not have PARM_DECLs for, set variable flag for parameters that were
7696         not passed a value.
7697         (create_specialized_node): Dump info that we cannot change signature.
7698         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
7699         number of arguments.
7700         (ipa_make_edge_direct_to_target): Likewise.
7701         (ipa_update_after_lto_read): Likewise.
7702         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
7703         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
7704         they were remapped.
7705
7706 2011-09-02  Richard Guenther  <rguenther@suse.de>
7707
7708         PR tree-optimization/27460
7709         PR middle-end/29269
7710         * doc/md.texi (vcond): Document.
7711         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
7712         optab with two modes.
7713         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
7714         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
7715         (vcond_optab): Adjust.
7716         (vcondu_optab): Likewise.
7717         (expand_vec_cond_expr_p): Adjust prototype.
7718         * optabs.c (get_vcond_icode): Adjust.
7719         (expand_vec_cond_expr_p): Likewise.
7720         (expand_vec_cond_expr): Likewise.
7721         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
7722         vector type.
7723         (vectorizable_condition): Allow differing types for comparison
7724         and result.
7725         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
7726         for the comparison.
7727         * config/i386/sse.md (vcond<mode>): Split to
7728         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
7729         vcond<V_128:mode><VI124_128:mode> and
7730         vcondu<V_128:mode><VI124_128:mode>.
7731         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
7732         (vconduv2di): Likewise.
7733         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
7734         (vcondu<mode>): Likewise.
7735         * config/ia64/vect.md (vcond<mode>): Likewise.
7736         (vcondu<mode>): Likewise.
7737         (vcondv2sf): Likewise.
7738         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
7739         * config/rs6000/paired.md (vcondv2sf): Likewise.
7740         * config/rs6000/vector.md (vcond<mode>): Likewise.
7741         (vcondu<mode>): Likewise.
7742         * config/spu/spu.md (vcond<mode>): Likewise.
7743         (vcondu<mode>): Likewise.
7744
7745 2011-09-02  Richard Guenther  <rguenther@suse.de>
7746
7747         * pretty-print.h (pp_unsigned_wide_integer): New.
7748         * tree-pretty-print.c (dump_generic_node): Print unsigned
7749         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
7750
7751 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
7752
7753         PR target/49987
7754         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
7755         valid CONST_VECTOR operands.
7756         (rs6000_expand_vector_init): Likewise.
7757
7758 2011-09-02  Martin Jambor  <mjambor@suse.cz>
7759
7760         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
7761         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
7762         BINFO_VTABLE.  Parameter delta removed, all callers updated.
7763         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
7764         BINFO_VTABLE.
7765         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
7766         all calls.
7767         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
7768         handling of thunk_delta.
7769         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
7770         (devirtualization_time_bonus): Do not handle thunk deltas.
7771         (ipcp_discover_new_direct_edges): Likewise.
7772         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7773         (try_make_edge_direct_simple_call): Likewise.
7774         (try_make_edge_direct_virtual_call): Likewise.
7775         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
7776         parameter set as unused.
7777         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
7778         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
7779         parameter set as unused.
7780         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
7781         (input_edge_opt_summary): Likewise.
7782         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
7783         BINFO_VIRTUALS at all.
7784         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
7785
7786 2011-09-02  Richard Guenther  <rguenther@suse.de>
7787
7788         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
7789         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
7790
7791 2011-08-31  Richard Guenther  <rguenther@suse.de>
7792
7793         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
7794         handling here, from ...
7795         (expand_expr_real_1): ... here.
7796         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
7797         and VEC_COND_EXPR.
7798         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
7799         a GIMPLE_TERNARY_RHS.
7800         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
7801         and VEC_COND_EXPR here ...
7802         (verify_gimple_assign_single): ... not here.
7803         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
7804         * tree-object-size.c (cond_expr_object_size): Adjust.
7805         (collect_object_sizes_for): Likewise.
7806         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
7807         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
7808         (ssa_forward_propagate_and_combine): Adjust.
7809         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
7810         as ternary.
7811         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
7812         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
7813         * tree-vect-stmt.c (vectorizable_condition): Likewise.
7814         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
7815         (extract_range_from_assignment): Likewise.
7816
7817 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
7818
7819         * config/i386/i386.md: Use (match_test ...) for attribute tests.
7820         * config/i386/mmx.md: Likewise.
7821         * config/i386/sse.md: Likewise.
7822         * config/i386/predicates.md (call_insn_operand): Use
7823         (not (match_test "...")) instead of (match_test "!...")
7824         * config/i386/constraints.md (w): Likewise.
7825
7826 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
7827
7828         * doc/md.texi: Describe the use of match_tests in attribute tests.
7829         * rtl.def (MATCH_TEST): Update commentary.
7830         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
7831         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
7832
7833 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
7834
7835         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
7836         (attr_string): Use copy_md_ptr_loc.
7837
7838 2011-08-31  Martin Jambor  <mjambor@suse.cz>
7839
7840         PR middle-end/49886
7841         * ipa-inline-analysis.c (compute_inline_parameters): Set
7842         can_change_signature of noes with typde attributes.
7843         * ipa-split.c (split_function): Do not skip any arguments if
7844         can_change_signature is set.
7845
7846 2011-08-31  Martin Jambor  <mjambor@suse.cz>
7847
7848         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
7849         check removed.
7850
7851 2011-08-31  Richard Guenther  <rguenther@suse.de>
7852
7853         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
7854         special-casing.
7855
7856 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
7857
7858         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
7859
7860 2011-08-31  Tom de Vries  <tom@codesourcery.com>
7861
7862         PR middle-end/43513
7863         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
7864         * tree-ssa-ccp.c (params.h): Include.
7865         (fold_builtin_alloca_for_var): New function.
7866         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
7867
7868 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
7869
7870         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
7871         Handle FMA option.
7872
7873 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
7874
7875         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
7876         b3 and b4 unsigned.
7877
7878 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
7879
7880         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
7881         when code is SET.
7882
7883 2011-08-30  Richard Guenther  <rguenther@suse.de>
7884
7885         PR middle-end/48571
7886         * gimple.h (maybe_fold_offset_to_address): Remove.
7887         (maybe_fold_offset_to_reference): Likewise.
7888         (maybe_fold_stmt_addition): Likewise.
7889         (may_propagate_address_into_dereference): Likewise.
7890         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
7891         array references.
7892         * gimple-fold.c (canonicalize_constructor_val): Likewise.
7893         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
7894         addresses instead.
7895         (may_propagate_address_into_dereference): Remove.
7896         (maybe_fold_offset_to_array_ref): Likewise.
7897         (maybe_fold_offset_to_reference): Likewise.
7898         (maybe_fold_offset_to_address): Likewise.
7899         (maybe_fold_stmt_addition): Likewise.
7900         (fold_gimple_assign): Do not reconstruct array references but
7901         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
7902         MEM_REF addresses.
7903         (gimple_fold_stmt_to_constant_1): Likewise.
7904         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7905         * gimplify.c (gimplify_conversion): Likewise.
7906         (gimplify_expr): Likewise.
7907
7908 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
7909
7910         * config/i386/fmaintrin.h: New.
7911         * config.gcc: Add fmaintrin.h.
7912         * config/i386/i386.c
7913         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
7914         <IX86_BUILTIN_VFMADDSD3>: Likewise.
7915         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
7916         (*fmai_fmadd_<mode>): Likewise.
7917         (*fmai_fmsub_<mode>): Likewise.
7918         (*fmai_fnmadd_<mode>): Likewise.
7919         (*fmai_fnmsub_<mode>): Likewise.
7920         * config/i386/immintrin.h: Add fmaintrin.h.
7921
7922 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
7923
7924         * genautomata.c (NO_COMB_OPTION): New macro.
7925         (no_comb_flag): New static variable.
7926         (gen_automata_option): Handle NO_COMB_OPTION.
7927         (comb_vect_p): False if no_comb_flag.
7928         (add_vect): Move computation of min/max values.  Return early if
7929         no_comb_flag.
7930         * doc/md.texi (automata_option): Document no-comb-vect.
7931
7932         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
7933         "__x86.get_pc_thunk".
7934
7935         * bb-reorder.c (insert_section_boundary_note): Only do it if
7936         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
7937
7938 2011-08-30  Christian Bruel  <christian.bruel@st.com>
7939
7940         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
7941         flag_profile_use.
7942
7943 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
7944
7945         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
7946         to off.  Document switch.
7947         * doc/invoke.texi (-msave-toc-indirect): Ditto.
7948
7949 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
7950
7951         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
7952         conditionals and comments inside macro arguments.
7953
7954 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
7955             Richard Guenther  <rguenther@suse.de>
7956
7957         * tree.h (constant_boolean_node): Adjust prototype.
7958         * fold-const.c (fold_convert_loc): Move aggregate conversion
7959         leeway down.
7960         (constant_boolean_node): Make value parameter boolean, add
7961         vector type handling.
7962         (fold_unary_loc): Use constant_boolean_node.
7963         (fold_binary_loc): Preserve types properly when folding
7964         COMPLEX_EXPR <__real x, __imag x>.
7965         * gimplify.c (gimplify_expr): Handle vector comparison.
7966         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
7967         comparison.
7968         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
7969         comparisons.
7970
7971 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
7972
7973         PR middle-end/48722
7974         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
7975         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
7976         (verify_rtl_sharing): Likewise and verify_rtx_sharing
7977         in there too.
7978         (unshare_all_rtl_in_chain): For CALL_INSNs
7979         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
7980
7981 2011-08-29  Richard Guenther  <rguenther@suse.de>
7982
7983         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
7984         on the built ADDR_EXPR.
7985
7986 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
7987
7988         PR debug/50215
7989         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
7990         before adding ENTRY_VALUE to val->locs.
7991
7992 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
7993
7994         PR bootstrap/50218
7995         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
7996         comp.
7997
7998 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
7999
8000         * doc/rtl.texi (simple_return): Document.
8001         (parallel, PATTERN): Here too.
8002         * doc/md.texi (return): Mention it's allowed to expand to simple_return
8003         in some cases.
8004         (simple_return): Document standard pattern.
8005         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
8006         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
8007         * reorg.c (function_return_label, function_simple_return_label):
8008         New static variables, replacing...
8009         (end_of_function_label): ... this.
8010         (simplejump_or_return_p): New static function.
8011         (optimize_skip, steal_delay_list_from_fallthrough,
8012         fill_slots_from_thread): Use it.
8013         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
8014         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
8015         (find_end_label): Take a new arg which is one of the two return
8016         rtxs.  Depending on which, set either function_return_label or
8017         function_simple_return_label.  All callers changed.
8018         (make_return_insns): Make both kinds.
8019         (dbr_schedule): Adjust for two kinds of end labels.
8020         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
8021         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
8022         (gen_expand, gen_split): Use ANY_RETURN_P.
8023         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
8024         * rtl.def (SIMPLE_RETURN): New code.
8025         * ifcvt.c (find_if_case_1): Be more careful about
8026         redirecting jumps to the EXIT_BLOCK.
8027         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
8028         returnjump_p_1): Handle SIMPLE_RETURNs.
8029         * print-rtl.c (print_rtx): Likewise.
8030         * rtl.c (copy_rtx): Likewise.
8031         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
8032         * combine.c (simplify_set): Likewise.
8033         * resource.c (find_dead_or_set_registers, mark_set_resources):
8034         Likewise.
8035         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
8036         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
8037         (init_emit_regs): Initialize simple_return_rtx.
8038         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
8039         force_nonfallthru_and_redirect.
8040         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
8041         (GR_SIMPLE_RETURN): New enum value.
8042         (simple_return_rtx): New macro.
8043         * basic-block.h (force_nonfallthru_and_redirect): Adjust
8044         declaration.
8045         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
8046         argument.  All callers changed.  Be careful about what kinds of
8047         returnjumps to generate.
8048         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
8049         ix86_pad_short_function): Likewise.
8050         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
8051         of return.
8052         * config/mips/mips.md (any_return): New code_iterator.
8053         (optab): Add cases for return and simple_return.
8054         (return): Expand to a simple_return.
8055         (simple_return): New pattern.
8056         (*<optab>, *<optab>_internal for any_return): New patterns.
8057         (return_internal): Remove.
8058         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
8059         a simple_return_internal.
8060
8061 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
8062
8063         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
8064         (vec_extract_lo_<mode>): Prevent both operands in memory.
8065         (vec_extract_lo_v16hi): Ditto.
8066         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
8067
8068 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
8069
8070         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
8071         (*sse2_mulv4si3): Ditto.
8072         (mulv2di3): Ditto.
8073         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
8074         notes to REG_EQUAL.
8075
8076 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
8077
8078         PR target/50202
8079         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
8080         when all outputs are unused.
8081         (sse4_2_pcmpistr): Ditto.
8082
8083 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
8084
8085         * config/i386/i386.md (round<mode>2): New expander.
8086         * config/i386/i386.c (enum ix86_builtins): Add
8087         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
8088         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
8089         descriptions.
8090         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
8091         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
8092
8093 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
8094
8095         PR middle-end/50083
8096         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
8097         only when TARGET_C99_FUNCTIONS.
8098         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
8099         <BUILT_IN_RINT{,F,L}>: Ditto.
8100
8101 2011-08-26  Michael Matz  <matz@suse.de>
8102             Jakub Jelinek  <jakub@redhat.com>
8103
8104         PR lto/50165
8105         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
8106         don't call strlen twice, use memcpy.
8107
8108 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
8109
8110         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
8111         * config/i386/bmiintrin.h: Likewise.
8112         * config/i386/lzcntintrin.h: Likewise.
8113
8114         * config/i386/immintrin.h: Include <lzcntintrin.h>,
8115         <bmiintrin.h> and <bmi2intrin.h>.
8116
8117 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8118
8119         PR target/50166
8120         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
8121         * configure: Regenerate.
8122
8123 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
8124
8125         PR c/50179
8126         * c-typeck.c (c_process_expr_stmt): Skip over nops and
8127         call mark_exp_read even if exprv is ADDR_EXPR.
8128
8129 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
8130
8131         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
8132         to df_set_dead_notes_for_mw.
8133
8134 2011-08-26  Richard Guenther  <rguenther@suse.de>
8135
8136         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
8137
8138 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
8139             Tom de Vries  <tom@codesourcery.com>
8140
8141         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
8142         (struct ivopts_data): Add loop_single_exit_p field.
8143         (niter_for_exit): Change parameter desc_p into return value.  Return
8144         desc if desc->may_be_zero.  Free desc if unused.
8145         (niter_for_single_dom_exit): Change return type.
8146         (find_induction_variables): Handle changed return type of
8147         niter_for_single_dom_exit.  Dump may_be_zero.
8148         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
8149         (set_use_iv_cost): Add and handle comp parameter.
8150         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
8151         comp argument to set_use_iv_cost.
8152         (strip_wrap_conserving_type_conversions, expr_equal_p)
8153         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
8154         (may_eliminate_iv): Add comp parameter.  Handle new return type of
8155         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
8156         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
8157         and may_eliminate_iv.
8158         (rewrite_use_compare): Move call to iv_elimination_compare to ...
8159         (may_eliminate_iv): Here.
8160         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
8161
8162 2011-08-26  Tom de Vries  <tom@codesourcery.com>
8163
8164         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
8165         accessing TREE_TYPE.
8166
8167 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
8168
8169         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
8170         (*ior_scc_scc_cmp): Likewise
8171         (*and_scc_scc): Likewise.
8172         (*and_scc_scc_cmp): Likewise.
8173         (*and_scc_scc_nodom): Likewise.
8174         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
8175
8176 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
8177
8178         * rtlanal.c (nonzero_bits1): Handle CLRSB.
8179
8180 2011-08-26  Richard Guenther  <rguenther@suse.de>
8181
8182         * expr.c (string_constant): Handle &MEM_REF.
8183
8184 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
8185
8186         * config/arm/arm.c (struct four_ints): New type.
8187         (count_insns_for_constant): Delete function.
8188         (find_best_start): Delete function.
8189         (optimal_immediate_sequence): New function.
8190         (optimal_immediate_sequence_1): New function.
8191         (arm_gen_constant): Move constant splitting code to
8192         optimal_immediate_sequence.
8193         Rewrite constant negation/invertion code.
8194
8195 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
8196
8197         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
8198         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
8199         Remove prototype. Remove static function type.
8200         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
8201         Add arch attribute.
8202         * config/arm/constraints.md (Pj, PJ): New constraints.
8203
8204 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8205
8206         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
8207         ("cortex_a9_multiply_long"): New and use above.  Handle all
8208         long multiply cases.
8209         ("cortex_a9_multiply"): Handle smmul and smmulr.
8210         ("cortex_a9_mac"): Handle smmla.
8211
8212 2011-08-25  Richard Henderson  <rth@redhat.com>
8213
8214         PR 50132
8215         PR 49864
8216         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
8217         non-constant stack adjutment.
8218         * expr.c (find_args_size_adjust): Break out from ...
8219         (fixup_args_size_notes): ... here.
8220         * rtl.h (find_args_size_adjust): Declare.
8221
8222 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
8223
8224         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
8225         sse4 and sse4_noavx.
8226         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
8227         (*pushdf_rex64): Change Y2 register constraint to x.
8228         (*movdf_internal_rex64): Ditto.
8229         (*zero_extendsidi2_rex64): Ditto.
8230         (*movdi_internal): Change Y2 register constraint to x
8231         and update "isa" attribute.
8232         (*pushdf): Ditto.
8233         (*movdf internal): Ditto.
8234         (zero_extendsidi2_1): Ditto.
8235         (*truncdfdf_mixed): Ditto.
8236         (*truncxfdf2_mixed): Ditto.
8237         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
8238         register constraint to x.
8239         (*movv2sf_internal_rex64): Ditto.
8240         (*mov<mode>_internal): Change Y2 register constraint to x
8241         and add "isa" attribute.
8242         (*movv2sf_internal): Ditto.
8243         (*vec_extractv2si_1): Ditto.
8244         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
8245         constraints to x and update "isa" attribute.
8246         (*vec_interleave_highv2df): Change Y3 registerconstraint
8247         to x and update "isa" attribute.
8248         (*vec_interleave_lowv2df): Ditto.
8249         (*vec_concatv2df): Change Y2 register constraint to x and
8250         update "isa" attribute.
8251         (sse2_loadld): Ditto.
8252         (*vec_extractv2di_1): Ditto.
8253         (*vec_dupv4si): Ditto.
8254         (*vec_dupv2di): Ditto.
8255         (*vec_concatv4si): Ditto.
8256         (vec_concatv2di): Ditto.
8257         * config/i386/constraints.md (Y2): Remove.
8258         (Y3): Ditto.
8259         (Y4): Ditto.
8260
8261 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
8262
8263         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
8264         dump_def_use_chain): Don't declare.
8265         (mark_conflict, create_new_chain): Move before users.
8266         (regrename_optimize): Move to near end of file.
8267
8268 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
8269
8270         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
8271         (secondary_input_reload_class): Remove Prototype.
8272         * config/avr/avr.c (byte_immediate_operand): Remove Function.
8273         * config/avr/avr.md (setmemhi): Use u8_operand.
8274         (strlenhi): Use const0_rtx for comparison.
8275         * config/avr/avr.h (avr_reg_order): Remove Declaration.
8276
8277 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
8278
8279         * config/avr/avr.c (reg_class_tab): Make local to
8280         avr_regno_reg_class.  Return smallest register class available.
8281
8282 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
8283
8284         * config/avr/avr.c (STR_PREFIX_P): New Define.
8285         (avr_asm_declare_function_name): Use it.
8286         (avr_asm_named_section): Use it.
8287         (avr_section_type_flags): Use it.
8288
8289 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
8290
8291         * doc/md.texi (automata_option): Document collapse-ndfa.
8292         * genautomata.c (COLLAPSE_OPTION): New macro.
8293         (collapse_flag): New static variable.
8294         (struct description): New member normal_decls_num.
8295         (struct automaton): New members advance_ainsn and collapse_ainsn.
8296         (gen_automata_option): Check for COLLAPSE_OPTION.
8297         (collapse_ndfa_insn_decl): New static variable.
8298         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
8299         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
8300         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
8301         necessary.  Use normal_decls_num rather than decls_num, remove
8302         test for special decls.
8303         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
8304         (make_automaton); Likewise.  Use the new advance_cycle_insn member
8305         of struct automaton.
8306         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
8307         is set.
8308         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
8309         transition.  Create the necessary transitions for it.
8310         (create_ainsns): Return void.  Take an automaton_t argument, and
8311         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
8312         callers changed.
8313         (COLLAPSE_NDFA_VALUE_NAME): New macro.
8314         (output_tables): Output code to define it.
8315         (output_internal_insn_code_evaluation): Output code to accept
8316         const0_rtx as collapse-ndfa transition.
8317         (output_default_latencies, output_print_reservation_func,
8318         output_print_description): Reorganize loops to use normal_decls_num
8319         as loop bound; remove special case for advance_cycle_insn_decl.
8320         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
8321         (check_automata_insn_issues): Check for collapse_ainsn.
8322         (expand_automate): Allocate sufficient space.  Initialize
8323         normal_decls_num.
8324
8325 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
8326
8327         * config/avr/avr.md: Fix indentation from r177991.
8328
8329 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
8330
8331         * regrename.c (struct du_head): Remove member terminated.
8332         (create_new_chain): Don't initialize it.
8333         (scan_rtx_reg): Don't set or test it, test the open_chains_set
8334         bitmap instead.
8335         (tick, this_tick): New global variables, moved out of
8336         regrename_optimize.
8337         (current_id, open_chains, closed_chains, open_chains_set,
8338         live_in_chains, live_hard_regs): Reorder declarations.
8339         (dump_def_use_chain): Move function earlier in the file.
8340         (rename_chains): New static function, broken out of
8341         regrename_optimize.
8342         (regrename_optimize): Use it.  Remove #if 0'ed code.
8343
8344 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8345
8346         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
8347
8348 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
8349
8350         PR target/50172
8351         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
8352
8353 2011-08-24  Richard Guenther  <rguenther@suse.de>
8354
8355         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
8356         ref in the basic-block case.  Move stripping array-refs
8357         to the place we create an access-function for it.  Remove
8358         bogus stripping down a MEM_REF to its base.
8359
8360 2011-08-24  Richard Guenther  <rguenther@suse.de>
8361
8362         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
8363         with -fno-strict-overflow.
8364
8365 2011-08-24  Richard Guenther  <rguenther@suse.de>
8366
8367         * tree-vectorizer.c (vect_print_dump_info): Avoid the
8368         file and location clutter when dumping to dump files.
8369
8370 2011-08-24  Simon Baldwin  <simonb@google.com>
8371
8372         * gengtype-state.c (write_state): Remove timestamped header line.
8373
8374 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
8375
8376         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
8377         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
8378         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
8379         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
8380         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
8381         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
8382         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
8383         rules.
8384         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
8385
8386 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
8387
8388         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
8389
8390 2011-08-24  Richard Guenther  <rguenther@suse.de>
8391
8392         PR tree-optimization/50067
8393         * tree-data-ref.c (dr_analyze_indices): Do not add an access
8394         function for a MEM_REF base that has no evolution in the loop
8395         nest or that is not analyzable.
8396
8397 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
8398
8399         * ira.c (ira_init_register_move_cost): Check small subclasses
8400         through ira_reg_class_max_nregs and ira_available_class_regs.
8401
8402 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
8403
8404         * config/i386/constraints.md (Yp): New register constraint.
8405         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
8406         Yp register constraint.
8407         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
8408         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
8409         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
8410
8411 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
8412
8413         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
8414
8415 2011-08-23  Mark Heffernan  <meheff@google.com>
8416
8417         PR middle-end/38509
8418         * common.opt (Wfree-nonheap-object): New option.
8419         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
8420         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
8421         to warning.
8422         (expand_builtin): Make warning conditional.
8423
8424 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
8425
8426         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
8427         (length_immediate): Handle imulx, ishiftx and rotatex.
8428         (imm_disp): Ditto.
8429         (isa): Add bmi2.
8430         (enabled): Handle bmi2.
8431         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
8432         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
8433         (*bmi2_umulditi3_1): New insn pattern.
8434         (*bmi2_umulsidi3_1): Ditto.
8435         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
8436         (*bmi2_ashl<mode>3_1): New insn pattern.
8437         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
8438         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
8439         (*bmi2_ashlsi3_1_zext): New insn pattern.
8440         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
8441         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
8442         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
8443         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
8444         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
8445         flags dependency.
8446         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
8447         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
8448         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
8449         flags dependency.
8450         (*bmi2_rorx<mode>3_1): New insn pattern.
8451         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
8452         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
8453         (*rotatert<mode>3_1 splitter): Ditto.
8454         (*bmi2_rorxsi3_1_zext): New insn pattern.
8455         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
8456         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
8457         (*rotatertsi3_1_zext splitter): Ditto.
8458
8459 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
8460
8461         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
8462         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
8463         (ix86_handle_option): Handle OPT_mbmi2 case.
8464         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
8465         (x86_64-*-*): Likewise.
8466         * config/i386/bmi2intrin.h: New file.
8467         * config/i386/cpuid.h (bit_BMI2): New.
8468         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8469         BMI2 feature.
8470         * config/i386/i386-c.c (ix86_target_macros_internal):
8471         Conditionally define __BMI2__.
8472         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
8473         Handle BMI2 option.
8474         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
8475         (print_reg): New code.
8476         (ix86_print_operand): Likewise.
8477         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
8478         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
8479         IX86_BUILTIN_PEXT64.
8480         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
8481         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
8482         IX86_BUILTIN_PEXT64.
8483         * config/i386/i386.h (TARGET_BMI2): New.
8484         * config/i386/i386.md (UNSPEC_PDEP): New.
8485         (UNSPEC_PEXT): Likewise.
8486         (*bmi2_bzhi_<mode>3): Likewise.
8487         (*bmi2_pdep_<mode>3): Likewise.
8488         (*bmi2_pext_<mode>3): Likewise.
8489         * config/i386/i386.opt (mbmi2): New.
8490         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
8491         is defined.
8492         * doc/extend.texi: Document BMI2 built-in functions.
8493         * doc/invoke.texi: Document -mbmi2.
8494
8495 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
8496
8497         PR middle-end/50161
8498         * simplify-rtx.c (simplify_const_unary_operation): If
8499         op is CONST_INT, don't look at op_mode, but use instead mode.
8500         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
8501         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
8502         operation and TRUNCATE/ZERO_EXTEND if needed.
8503         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
8504         Document that operand mode must be same as operation mode,
8505         or VOIDmode.
8506         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
8507         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
8508         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
8509         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
8510         use the mode of operand for the operation and add truncate
8511         or zero_extend around if needed.
8512         * config/c6x/c6x.md (ctzdi2): Likewise.
8513         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
8514
8515 2011-08-12  Michael Matz  <matz@suse.de>
8516
8517         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
8518         (gimple_expand_cfg): Merge alignment info for coalesced pointer
8519         SSA names.
8520
8521 2011-08-23  Richard Guenther  <rguenther@suse.de>
8522
8523         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
8524         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
8525         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
8526         from ...
8527         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
8528         (mem_refs_may_alias_p): Adjust.
8529         * tree-data-ref.h (dr_may_alias_p): Adjust.
8530         * tree-data-ref.c: Include tree-affine.h.
8531         (dr_analyze_indices): Do nothing for the non-loop case.
8532         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
8533         more cases in the non-loop case.
8534         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
8535         calls to dr_may_alias_p.
8536         (write_alias_graph_to_ascii_ecc): Likewise.
8537         (write_alias_graph_to_ascii_dot): Likewise.
8538         (build_alias_set_optimal_p): Likewise.
8539
8540 2011-08-23  Richard Guenther  <rguenther@suse.de>
8541
8542         PR tree-optimization/50162
8543         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
8544
8545 2011-08-23  Richard Guenther  <rguenther@suse.de>
8546
8547         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
8548         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
8549         (create_data_ref): Also dump access functions for the created data-ref.
8550
8551 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
8552             Kirill Yukhin  <kirill.yukhin@intel.com>
8553
8554         PR target/50155
8555         * config/i386/sse.md (VI_AVX2): New.
8556         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
8557         (*<plusminus_insn><mode>3): Ditto.
8558         (<sse2_avx2>_andnot<mode>3): Ditto.
8559         (*andnot<mode>3): Fix order of cond operands.
8560         Add asserts for correct TARGET_xxx.
8561         (*<any_logic:code><mode>3): Ditto.
8562
8563 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
8564
8565         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
8566         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
8567         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
8568         regclass argument type to reg_class_t. Change 'max' and 'v' vars
8569         and return types to unsigned char. Use reg_class_contents instead
8570         of class_contents.
8571         (TARGET_CLASS_MAX_NREGS): Define.
8572
8573 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
8574
8575         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
8576         to make computed_jump_p return true.
8577
8578 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8579
8580         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
8581         (PICFLAG_FOR_TARGET): Substitute.
8582         * aclocal.m4: Regenerate.
8583         * configure: Regenerate.
8584
8585 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
8586
8587         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
8588         after reading in the pch.
8589
8590 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8591
8592         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
8593         * configure: Regenerated.
8594
8595 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
8596
8597         PR tree-optimization/50133
8598         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
8599         from stmt instead of some statement around gsi.
8600
8601         PR middle-end/50141
8602         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
8603         innerdecl is a VAR_DECL.
8604
8605 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8606
8607         * config/i386/avx2intrin.h: New file.
8608         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
8609         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
8610         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
8611         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
8612         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
8613         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
8614         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
8615         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
8616         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
8617         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
8618         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
8619         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
8620         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
8621         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
8622         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
8623         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
8624         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
8625         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
8626         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
8627         VOID_FTYPE_PV8SI_V8SI_V8SI,
8628         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
8629         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
8630         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
8631         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
8632         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
8633         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
8634         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
8635         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
8636         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
8637         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
8638         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
8639         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
8640         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
8641         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
8642         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
8643         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
8644         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
8645         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
8646         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
8647         V4DI_FTYPE_V4DI_INT_CONVERT,
8648         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
8649         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
8650         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
8651         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
8652         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
8653         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
8654         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
8655         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
8656         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
8657         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
8658         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
8659         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
8660         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
8661         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
8662         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
8663         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
8664         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
8665         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
8666         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
8667         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
8668         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
8669         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
8670         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
8671         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
8672         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
8673         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
8674         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
8675         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
8676         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
8677         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
8678         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
8679         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
8680         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
8681         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
8682         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
8683         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
8684         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
8685         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
8686         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
8687         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
8688         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
8689         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
8690         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
8691         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
8692         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
8693         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
8694         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
8695         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
8696         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
8697         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
8698         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
8699         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
8700         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
8701         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
8702         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
8703         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
8704         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
8705         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
8706         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
8707         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
8708         IX86_BUILTIN_VBROADCASTSS_PS256,
8709         IX86_BUILTIN_VBROADCASTSD_PD256,
8710         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
8711         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
8712         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
8713         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
8714         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
8715         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
8716         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
8717         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
8718         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
8719         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
8720         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
8721         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
8722         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
8723         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
8724         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
8725         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
8726         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
8727         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
8728         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
8729         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
8730         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
8731         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
8732         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
8733         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
8734         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
8735         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
8736         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
8737         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
8738         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
8739         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
8740         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
8741         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
8742         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
8743         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
8744         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
8745         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
8746         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
8747         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
8748         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
8749         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
8750         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
8751         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
8752         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
8753         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
8754         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
8755         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
8756         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
8757         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
8758         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
8759         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
8760         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
8761         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
8762         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
8763         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
8764         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
8765         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
8766         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
8767         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
8768         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
8769         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
8770         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
8771         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
8772         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
8773         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
8774         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
8775         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
8776         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
8777         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
8778         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
8779         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
8780         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
8781         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
8782         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
8783         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
8784         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
8785         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
8786         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
8787         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
8788         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
8789         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
8790         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
8791         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
8792         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
8793         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
8794         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
8795         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
8796         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
8797         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
8798         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
8799         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
8800         IX86_BUILTIN_VBROADCASTSD_PD256,
8801         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
8802         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
8803         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
8804         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
8805         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
8806         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
8807         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
8808         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
8809         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
8810         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
8811         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
8812         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
8813         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
8814         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
8815         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
8816         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
8817         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
8818         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
8819         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
8820         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
8821         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
8822         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
8823         IX86_BUILTIN_GATHERDIV8SI.
8824         (ix86_preferred_simd_mode): Support AVX2 modes.
8825         (ix86_expand_args_builtin): Support AVX2 builtins.
8826         (ix86_expand_special_args_builtin): Likewise.
8827         (ix86_expand_builtin): Likewise.
8828         * config/i386/i386.md (UNSPEC_VPERMSI): New.
8829         (UNSPEC_VPERMDF): Likewise.
8830         (UNSPEC_VPERMSF): Likewise.
8831         (UNSPEC_VPERMDI): Likewise.
8832         (UNSPEC_VPERMTI): Likewise.
8833         (UNSPEC_GATHER): Likewise.
8834         (ssemodesuffix): Extend.
8835         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
8836         is defined.
8837         * config/i386/predicates.md (const1248_operand): New.
8838         * config/i386/sse.md (VI1_AVX2): New mode iterator.
8839         (VI2_AVX2): Likewise.
8840         (VI4_AVX2): Likewise.
8841         (VI8_AVX2): Likewise.
8842         (VIMAX_AVX2): Likewise.
8843         (SSESCALARMODE): Likewise.
8844         (VI12_AVX2): Likewise.
8845         (VI24_AVX2): Likewise.
8846         (VI124_AVX2): Likewise.
8847         (VI248_AVX2): Likewise.
8848         (VI48_AVX2): Likewise.
8849         (VI4SD_AVX2): Likewise.
8850         (V48_AVX2): Likewise.
8851         (AVX256MODE2P): Likewise.
8852         (AVXMODE48P_DI): Likewise.
8853         (sse2_avx2): New mode attribute.
8854         (ssse3_avx2): Likewise.
8855         (sse4_1_avx2): Likewise.
8856         (avx_avx2): Likewise.
8857         (ssebytemode): Likewise.
8858         (AVXTOSSEMODE): Likewise.
8859         (AVXMODE48P_DI): Likewise.
8860         (gthrfirstp): Likewise.
8861         (gthrlastp): Likewise.
8862         (lshift): New code_iterator
8863         (lshift): New code attribute.
8864         (lshift): Likewise.
8865         (ssescalarmodesuffix): Update.
8866         (sseunpackmode): Likewise.
8867         (ssepackmode): Likewise.
8868         (avx2_vec_dupv4sf): New insn pattern.
8869         (avx2_vec_dupv8sf): Likewise.
8870         (avx2_interleave_highv4di): Likewise.
8871         (avx2_interleave_lowv4di): Likewise.
8872         (avx2_umulv4siv4di3): Likewise
8873         (*avx2_umulv4siv4di3): Likewise
8874         (avx2_pmaddwd): Likewise.
8875         (*avx2_pmaddwd): Likewise.
8876         (avx2_lshrqv4di3): Likewise.
8877         (avx2_lshlqv4di3): Likewise.
8878         (avx2_lshl<mode>3): Likewise.
8879         (avx2_<umaxmin:code><mode>3): Likewise.
8880         (*avx2_<umaxmin:code><mode>3): Likewise.
8881         (avx2_<smaxmin:code><mode>3): Likewise.
8882         (*avx2_<smaxmin:code><mode>3): Likewise.
8883         (avx2_eq<mode>3): Likewise.
8884         (*avx2_eq<mode>3): Likewise.
8885         (avx2_gt<mode>3): Likewise.
8886         (avx2_interleave_highv32qi): New.
8887         (avx2_interleave_lowv32qi): Likewise.
8888         (avx2_interleave_highv16hi): Likewise.
8889         (avx2_interleave_lowv16hi): Likewise.
8890         (avx2_interleave_highv8si): Likewise.
8891         (avx2_interleave_lowv8si): Likewise.
8892         (avx2_pshufd): Likewise.
8893         (avx2_pshufd_1): Likewise.
8894         (avx2_pshuflwv3): Likewise.
8895         (avx2_pshuflw_1): Likewise.
8896         (avx2_pshufhwv3): Likewise.
8897         (avx2_pshufhw_1): Likewise.
8898         (avx2_uavgv32qi3): Likewise.
8899         (*avx2_uavgv32qi3): Likewise.
8900         (avx2_uavgv16hi3): Likewise.
8901         (*avx2_uavgv16hi3): Likewise.
8902         (avx2_pmovmskb): Likewise.
8903         (avx2_phaddwv16hi3): Likewise.
8904         (avx2_phadddv8si3): Likewise.
8905         (avx2_phaddswv16hi3): Likewise.
8906         (avx2_phsubwv16hi3): Likewise.
8907         (avx2_phsubdv8si3): Likewise.
8908         (avx2_phsubswv16hi3): Likewise.
8909         (avx2_pmaddubsw256): Likewise.
8910         (avx2_umulhrswv16hi3): Likewise.
8911         (*avx2_umulhrswv16hi3): Likewise.
8912         (avx2_packusdw): Likewise.
8913         (avx2_pblendd<mode>): Likewise.
8914         (avx2_<code>v16qiv16hi2): Likewise.
8915         (avx2_<code>v8qiv8si2): Likewise.
8916         (avx2_<code>v8hiv8si2): Likewise.
8917         (avx2_<code>v4qiv4di2): Likewise.
8918         (avx2_<code>v4hiv4di2): Likewise.
8919         (avx2_<code>v4siv4di2): Likewise.
8920         (avx2_pbroadcast<mode>): Likewise.
8921         (avx2_permvarv8si): Likewise.
8922         (avx2_permv4df): Likewise.
8923         (avx2_permvarv8sf): Likewise.
8924         (avx2_permv4di): Likewise.
8925         (avx2_permv2ti): Likewise.
8926         (avx2_vec_dupv4df): Likewise.
8927         (avx2_vbroadcasti128_<mode>): Likewise.
8928         (avx2_vec_set_lo_v4di): Likewise.
8929         (avx2_vec_set_hi_v4di): Likewise.
8930         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
8931         (avx2_extracti128): Likewise.
8932         (avx2_inserti128): Likewise.
8933         (avx2_ashrvv8si): Likewise.
8934         (avx2_ashrvv4si): Likewise.
8935         (avx2_<lshift>vv8si): Likewise.
8936         (avx2_<lshift>v<mode>): Likewise.
8937         (avx2_<lshift>vv2di): Likewise.
8938         (avx2_gathersi<mode>): Likewise.
8939         (*avx2_gathersi<mode>): Likewise.
8940         (avx2_gatherdi<mode>): Likewise.
8941         (*avx2_gatherdi<mode>): Likewise.
8942         (avx2_gatherdi<mode>256): Likewise.
8943         (*avx2_gatherdi<mode>256): Likewise.
8944         (<plusminus_insn><mode>3): Use VI mode iterator.
8945         (*<plusminus_insn><mode>3): Use VI mode iterator.
8946         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
8947         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
8948         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
8949         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
8950         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
8951         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
8952         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
8953         Use VI2_AVX2 mode iterator.
8954         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
8955         Use VI2_AVX2 mode iterator.
8956         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
8957         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
8958         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
8959         Use VI4_AVX2 mode iterator.
8960         (ashr<mode>3): Use VI24_AVX2 mode iterator.
8961         (lshr<mode>3): Use VI248_AVX2 mode iterator.
8962         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
8963         Use VIMAX_AVX2 mode iterator.
8964         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
8965         Use VI mode iterator.
8966         (*andnot<mode>3): Update for AVX2.
8967         (*<any_logic:code><mode>3): Likewise.
8968         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
8969         Use VI1_AVX mode iterator.
8970         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
8971         Use VI2_AVX mode iterator.
8972         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
8973         Use VI1_AVX mode iterator.
8974         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
8975         Use VI8_AVX2 mode iterator.
8976         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
8977         Use VI1_AVX2 mode iterator.
8978         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
8979         Use VI124_AVX2 mode iterator.
8980         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
8981         Use SSESCALARMODE mode iterator.
8982         (abs<mode>2): Use VI124_AVX2 mode iterator.
8983         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
8984         Use VI8_AVX2 mode iterator.
8985         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
8986         Use VI1_AVX2 mode iterator.
8987         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
8988         Use VI1_AVX2 mode iterator.
8989         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
8990         Use VI2_AVX2 mode iterator.
8991         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
8992         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
8993         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
8994         avx_maskstore<ssemodesuffix><avxsizesuffix>.
8995         Use V48_AVX2 mode iterator.
8996         * doc/extend.texi: Document AVX2 built-in functions.
8997         * doc/invoke.texi: Document -mavx2.
8998
8999 2011-08-22  Matthias Klose <doko@debian.org>
9000
9001         Revert:
9002         2011-07-11  Arthur Loiret  <aloiret@debian.org>
9003                     Matthias Klose <doko@debian.org>
9004         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
9005         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
9006         convention.
9007         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
9008
9009 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
9010
9011         PR bootstrap/50146
9012         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
9013         to #ifndef HONOR_REG_ALLOC_ORDER block.
9014
9015 2011-08-21  Richard Henderson  <rth@redhat.com>
9016
9017         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
9018         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
9019         * resource.c (next_insn_no_annul): Likewise.
9020         (mark_set_resources): Likewise.
9021         * reorg.c (delete_from_delay_slot): Likewise.
9022         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
9023         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
9024
9025 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
9026
9027         * config/i386/i386.md (any_div): Remove.
9028         (sgnprefix): Update for removal.
9029         (u): Ditto.
9030
9031 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
9032
9033         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
9034         for ira_reg_class_max_nregs.  Increase pressure by 1.
9035         (mark_pseudo_regno_subword_dead): Use allocno class
9036         for ira_reg_class_max_nregs.
9037
9038 2011-08-20  Richard Henderson  <rth@redhat.com>
9039
9040         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
9041         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
9042         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
9043         config/c6x/ltf.c: Adjust include path for soft-fp.
9044
9045 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9046
9047         PR other/46770
9048         * config.gcc (tm_file): Add initfini-array.h if
9049         .init_arrary/.fini_array are supported.
9050
9051         * crtstuff.c: Don't generate .ctors nor .dtors sections if
9052         USE_INITFINI_ARRAY is defined.
9053
9054         * output.h (default_elf_init_array_asm_out_constructor): New.
9055         (default_elf_fini_array_asm_out_destructor): Likewise.
9056         * varasm.c (elf_init_array_section): Likewise.
9057         (elf_fini_array_section): Likewise.
9058         (get_elf_initfini_array_priority_section): Likewise.
9059         (default_elf_init_array_asm_out_constructor): Likewise.
9060         (default_elf_fini_array_asm_out_destructor): Likewise.
9061
9062         * config/initfini-array.h: New.
9063
9064 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
9065
9066         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
9067         OK for ST_REGS and FP_REGS before taking those classes into account.
9068
9069 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
9070
9071         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
9072         before checking for annulled branches.
9073
9074 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
9075
9076         * config/i386/i386.c (ix86_binary_operator_ok): Use
9077         satisfies_constraint_L.
9078
9079 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
9080             Michael Matz  <matz@suse.de>
9081
9082         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
9083         trunc (a + copysign (nextafter (0.5, 0.0), a)).
9084
9085 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
9086
9087         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9088         * doc/tm.texi: Regenerate.
9089         * targhooks.c (default_preferred_output_reload_class): Don't use
9090         PREFERRED_OUTPUT_RELOAD_CLASS macro.
9091         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
9092
9093 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
9094
9095         PR tree-optimization/48739
9096         * tree-ssa.c: Include cfgloop.h.
9097         (execute_update_addresses_taken): When updating ssa, if in loop closed
9098         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
9099         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
9100
9101 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
9102
9103         PR rtl-optimization/49936
9104         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
9105         for calculation of max register move costs.
9106
9107 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
9108
9109         * c-parser.c (c_parser_postfix_expression): Convert operands of
9110         __builtin_complex to their semantic types.
9111
9112 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
9113
9114         PR middle-end/49721
9115         * explow.c (convert_memory_address_addr_space): Also permute the
9116         conversion and addition of constant for zero-extend.
9117
9118 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
9119
9120         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
9121         * doc/extend.texi (__builtin_complex): Document.
9122
9123 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9124
9125         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
9126         beyond conversions.
9127         (convert_mult_to_widen): Convert constant inputs to the right type.
9128         (convert_plusminus_to_widen): Don't automatically reject inputs that
9129         are not an SSA_NAME.
9130         Convert constant inputs to the right type.
9131
9132 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9133
9134         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
9135         to the correct type.
9136
9137 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9138
9139         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
9140         unsigned inputs of different modes.
9141         (convert_plusminus_to_widen): Likewise.
9142
9143 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9144
9145         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
9146         'type'.
9147         Use 'type' from caller, not inferred from 'rhs'.
9148         Don't reject non-conversion statements. Do return lhs in this case.
9149         (is_widening_mult_p): Add new argument 'type'.
9150         Use 'type' from caller, not inferred from 'stmt'.
9151         Pass type to is_widening_mult_rhs_p.
9152         (convert_mult_to_widen): Pass type to is_widening_mult_p.
9153         (convert_plusminus_to_widen): Likewise.
9154
9155 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9156
9157         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
9158         Ensure the the larger type is the first operand.
9159
9160 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9161
9162         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
9163         unsupported unsigned multiplies to signed.
9164         (convert_plusminus_to_widen): Likewise.
9165
9166 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9167
9168         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
9169         conversion statement separating multiply-and-accumulate.
9170
9171 2011-08-19  Richard Guenther  <rguenther@suse.de>
9172
9173         PR tree-optimization/50067
9174         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
9175         offset only if we accounted for it.
9176
9177 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9178
9179         * config/arm/arm.md (maddhidi4): Remove '*' from name.
9180         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
9181         * optabs.c (find_widening_optab_handler_and_mode): New function.
9182         (expand_widen_pattern_expr): Use find_widening_optab_handler.
9183         (expand_binop_directly): Likewise.
9184         (expand_binop): Likewise.
9185         * optabs.h (find_widening_optab_handler): New macro define.
9186         (find_widening_optab_handler_and_mode): New prototype.
9187         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
9188         type precision rules.
9189         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
9190         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
9191         (is_widening_mult_rhs_p): Allow widening by more than one mode.
9192         Explicitly disallow mis-matched input types.
9193         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
9194         input types to fit the new handler.
9195         (convert_plusminus_to_widen): Likewise.
9196
9197 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9198
9199         * expr.c (expand_expr_real_2): Use widening_optab_handler.
9200         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
9201         (gen_insn): $N now means $a must be wider than $b, not consecutive.
9202         * optabs.c (widened_mode): New function.
9203         (expand_widen_pattern_expr): Use widening_optab_handler.
9204         (expand_binop_directly): Likewise.
9205         (expand_binop): Likewise.
9206         * optabs.h (widening_optab_handlers): New struct.
9207         (optab_d): New member, 'widening'.
9208         (widening_optab_handler): New function.
9209         (set_widening_optab_handler): New function.
9210         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
9211         widening_optab_handler.
9212         (convert_plusminus_to_widen): Likewise.
9213
9214 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
9215
9216         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
9217         pedantic.
9218         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
9219         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
9220
9221 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
9222
9223         * opth-gen.awk: Do not declare target save/restore structures and
9224         functions if IN_RTS defined.
9225
9226 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
9227
9228         PR target/49437
9229         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
9230         when stack was realigned in interrupt handler prologue.
9231
9232 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
9233
9234         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
9235         (quals_from_declspecs): Assert _Noreturn not present.
9236         (grokdeclarator): Handle _Noreturn.
9237         (build_null_declspecs): Initialize noreturn_p.
9238         (declspecs_add_scspec): Handle RID_NORETURN.
9239         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
9240         (c_parser_attributes): Handle RID_NORETURN.
9241         * c-tree.h (struct c_declspecs): Add noreturn_p.
9242         * ginclude/stdnoreturn.h: New.
9243         * Makefile.in (USER_H): Add stdnoreturn.h.
9244
9245 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
9246
9247         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
9248         (OPTION_MASK_ISA_AVX_UNSET): Update.
9249         (OPTION_MASK_ISA_AVX2_UNSET): New.
9250         (ix86_handle_option): Handle OPT_mavx2 case.
9251         * config/i386/cpuid.h (bit_AVX2): New.
9252         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
9253         AVX2 feature.
9254         * config/i386/i386-c.c (ix86_target_macros_internal):
9255         Conditionally define __AVX2__.
9256         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
9257         Define "core-avx2" processor alias.  Handle avx2 option.
9258         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
9259         * config/i386/i386.h (TARGET_AVX2): New.
9260         * config/i386/i386.opt (mavx2): New.
9261         * doc/invoke.texi: Document -mavx2.
9262
9263 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
9264
9265         PR rtl-optimization/49890
9266         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
9267         subclasses of class which is superset of a pressure class.
9268
9269 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9270             Igor Zamyatin <igor.zamyatin@intel.com>
9271
9272         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
9273         with HOST_WIDE_INT for isa_flag.
9274         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
9275         isa variables.
9276
9277         * config/i386/i386.c (ix86_target_string): Replace int with
9278         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
9279         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
9280         (pta_flags): Removed.
9281         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
9282         (pta): Use HOST_WIDE_INT on flags.
9283         (builtin_isa): Use HOST_WIDE_INT on isa.
9284         (ix86_add_new_builtins): Likewise.
9285         (def_builtin): Use HOST_WIDE_INT on mask.
9286         (def_builtin_const): Likewise.
9287         (builtin_description): Likewise.
9288
9289         * config/i386/i386.opt (ix86_isa_flags): Replace int with
9290         HOST_WIDE_INT.
9291         (ix86_isa_flags_explicit): Likewise.
9292         (x_ix86_isa_flags_explicit): Likewise.
9293
9294 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
9295
9296         PR rtl-optimization/50107
9297         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
9298         (ira_hard_reg_in_set_p): New.
9299
9300         * ira-color.c (calculate_saved_nregs): New.
9301         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
9302         hard regs.
9303         (allocno_reload_assign, fast_allocation): Use
9304         ira_hard_reg_set_intersection_p instead of
9305         ira_hard_reg_not_in_set_p.
9306
9307         * ira.c (setup_reg_renumber): Use
9308         ira_hard_reg_set_intersection_p instead of
9309         ira_hard_reg_not_in_set_p.
9310         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
9311         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
9312
9313         * ira-costs.c (ira_tune_allocno_costs): Use
9314         ira_hard_reg_set_intersection_p instead of
9315         ira_hard_reg_not_in_set_p.
9316
9317 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9318             Igor Zamyatin <igor.zamyatin@intel.com>
9319
9320         * hwint.h (HOST_WIDE_INT_1): New.
9321
9322         * opt-functions.awk (switch_bit_fields): Initialize the
9323         host_wide_int field.
9324         (host_wide_int_var_name): New.
9325         (var_type_struct): Check and return HOST_WIDE_INT.
9326
9327         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
9328
9329         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
9330
9331         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
9332         check masks for HOST_WIDE_INT.
9333
9334         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
9335         (option_enabled): Likewise.
9336         (get_option_state): Likewise.
9337
9338         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
9339         to HOST_WIDE_INT.
9340
9341 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9342             Marc Glisse  <marc.glisse@normalesup.org>
9343
9344         PR libstdc++-v3/1773
9345         * target.def (decl_mangling_context): New C++ hook.
9346         * doc/tm.texi: Regenerate.
9347         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
9348         * config/sol2-protos.h: Group by source file.
9349         (solaris_cxx_decl_mangling_context): Declare.
9350         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
9351         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
9352         Use $<.
9353         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
9354         Add sol2-stubs.o to extra_objs.
9355
9356 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
9357
9358         PR target/50009
9359         * stor-layout.c (update_alignment_for_field): Don't ICE on
9360         packed flexible array members if ms_bitfield_layout_p.
9361
9362         PR target/50092
9363         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
9364         on the result before returning it.
9365
9366         PR debug/50017
9367         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
9368         is a debug stmt, use location of the first non-debug stmt after it.
9369
9370 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
9371
9372         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
9373         (arm_size_rtx_costs): Likewise.
9374
9375 2011-08-18  Richard Guenther  <rguenther@suse.de>
9376
9377         * tree.h (tree_int_cst_msb): Remove.
9378         * tree.c (tree_int_cst_msb): Likewise.
9379         (tree_int_cst_sign_bit): Move from ...
9380         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
9381
9382 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
9383
9384         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
9385         * doc/tm.texi: Regenerate.
9386         * target.def (rtx_costs): Add an opno parameter.
9387         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
9388         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
9389         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
9390         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
9391         * cse.c (COST_IN): Add an opno parameter.
9392         (notreg_cost): Likewise.  Update call to rtx_cost.
9393         (COST, fold_rtx): Update accordingly.
9394         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
9395         * expmed.c (emit_store_flag): Likewise.
9396         * optabs.c (avoid_expensive_constant): Add an opno parameter.
9397         Update call to rtx_cost.
9398         (expand_binop_directly, expand_binop): Likewise.
9399         (expand_twoval_binop, prepare_cmp_insn): Likewise.
9400         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
9401         (set_src_cost, get_full_set_src_cost): Update accordingly.
9402         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
9403         to target hook.
9404         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
9405         (default_adress_cost): Update calls to rtx_cost.
9406
9407         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
9408         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
9409         (arm_rtx_costs): Add an opno parameter.
9410         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
9411         adjust any recursive rtx-cost calls.
9412         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
9413         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9414         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
9415         * config/cris/cris.c (cris_rtx_costs): Likewise.
9416         * config/frv/frv.c (frv_rtx_costs): Likewise.
9417         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
9418         * config/i386/i386.c (ix86_rtx_costs): Likewise.
9419         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
9420         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
9421         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
9422         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
9423         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
9424         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
9425         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
9426         * config/mep/mep.c (mep_rtx_cost): Likewise.
9427         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
9428         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
9429         (mips_zero_extend_cost): Add an opno parameter.
9430         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
9431         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
9432         to rtx_cost.
9433         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
9434         rtx-cost calls.
9435         * config/pa/pa.c (hppa_rtx_costs): Likewise.
9436         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
9437         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
9438         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
9439         (rs6000_debug_rtx_costs): Likewise.
9440         * config/s390/s390.c (s390_rtx_costs): Likewise.
9441         * config/score/score-protos.h (score_rtx_costs): Likewise.
9442         * config/score/score.c (score_rtx_costs): Likewise.
9443         * config/sh/sh.c (andcosts): Update call to rtx_cost.
9444         (sh_rtx_costs): Add an opno parameter.
9445         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
9446         * config/spu/spu.c (spu_rtx_costs): Likewise.
9447         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
9448         * config/v850/v850.c (v850_rtx_costs): Likewise.
9449         * config/vax/vax.c (vax_rtx_costs): Likewise.
9450         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
9451
9452 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
9453
9454         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
9455         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
9456         rtx_cost.
9457         * calls.c (precompute_register_parameters): Likewise.
9458         * combine.c (expand_compound_operation, make_extraction): Likewise.
9459         (force_to_mode, distribute_and_simplify_rtx): Likewise.
9460         * dse.c (find_shift_sequence): Likewise.
9461         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
9462         * expr.c (compress_float_constant): Likewise.
9463         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
9464         * gcse.c (want_to_gcse_p): Likewise.
9465         * ifcvt.c (noce_try_sign_mask): Likewise.
9466         * loop-doloop.c (doloop_optimize): Likewise.
9467         * loop-invariant.c (create_new_invariant): Likewise.
9468         * optabs.c (avoid_expensive_constant): Likewise.
9469         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
9470         (try_replace_in_use, reload_cse_move2add): Likewise.
9471         * reload1.c (calculate_elim_costs_all_insns): Likewise.
9472         (note_reg_elim_costly): Likewise.
9473         * rtlanal.c (insn_rtx_cost): Likewise.
9474         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9475         * stmt.c (lshift_cheap_p): Likewise.
9476         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
9477         * config/avr/avr.c (final_prescan_insn): Likewise.
9478         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9479         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
9480
9481 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
9482
9483         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
9484         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
9485         * cfgloopanal.c (seq_cost): Likewise.
9486         * loop-invariant.c (create_new_invariant): Likewise.
9487         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
9488         (reload_cse_move2add): Use get_full_set_rtx_cost.
9489
9490 2011-08-18  Richard Guenther  <rguenther@suse.de>
9491
9492         * expr.c (get_inner_reference): Fix typo in last change.
9493
9494 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
9495             Joseph Myers  <joseph@codesourcery.com>
9496
9497         PR tree-optimization/49963
9498         * hwint.c (absu_hwi): Define.
9499         * hwint.h (absu_hwi): Declare.
9500         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
9501         of abs_hwi.
9502         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
9503         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
9504
9505 2011-08-18  Richard Guenther  <rguenther@suse.de>
9506
9507         * expr.c (get_inner_reference): Sign-extend the constant
9508         twos-complement offset before doing arbitrary precision
9509         arithmetic on it.
9510         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
9511         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
9512         to get_constraint_for_ptr_offset.
9513
9514 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
9515
9516         PR target/50068
9517         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
9518
9519 2011-08-17  Richard Guenther  <rguenther@suse.de>
9520
9521         * tree.h (convert_to_ptrofftype_loc): New function.
9522         (convert_to_ptrofftype): Define.
9523         * builtins.c (expand_builtin_bzero): Use size_type_node.
9524         (fold_builtin_bzero): Likewise.
9525         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
9526         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
9527         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
9528         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
9529         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
9530         * fold-const.c (build_range_check): Negate using the original type.
9531         (fold_unary_loc): Use fold_build_pointer_plus_loc.
9532         * gimple-fold.c (gimple_adjust_this_by_delta): Use
9533         convert_to_ptrofftype.
9534         * gimplify.c (gimplify_self_mod_expr): Likewise.
9535         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
9536         (graphite_create_new_loop_guard): Likewise.
9537         * graphite-sese-to-poly.c (my_long_long): Remove.
9538         (scop_ivs_can_be_represented): Adjust.
9539         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
9540         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
9541         * tree-loop-distribution.c (build_size_arg_loc): Use
9542         size_type_node.
9543         (generate_memset_zero): Simplify.
9544         * tree-mudflap.c: Use fold_convert, not convert.
9545         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
9546         its own type.
9547         (determine_offset): Likewise for DR_STEP.
9548         (valid_initializer_p): Likewise.
9549         * tree-profile.c (prepare_instrumented_value): Convert the pointer
9550         to an integer type of same size.
9551         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
9552         to sizetype without need.
9553         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
9554         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
9555         * tree-ssa-loop-manip.c (create_iv): Likewise.
9556         (determine_exit_conditions): Adjust comment.
9557         * tree-ssa-pre.c (create_expression_by_pieces): Use
9558         convert_to_ptrofftype.
9559         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
9560         * varasm.c (array_size_for_constructor): Compute using double_ints.
9561
9562 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9563
9564         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
9565         when generating an integer result where possible.  Short-cut
9566         comparison against 0 also for QImode.
9567
9568 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9569
9570         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
9571         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
9572         prototype.
9573         * config/spu/spu.c (spu_legitimize_reload_address): New function.
9574         (spu_legitimate_address_p): Do not check displacement if the base
9575         is an eliminable stack register.
9576
9577 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
9578
9579         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
9580         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
9581         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
9582         m32c_preferred_output_reload_class): Remove.
9583         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
9584         Change rclass argument and return types to reg_class_t. Use
9585         reg_class_subset_p instead of class_sizes.
9586         (m32c_preferred_output_reload_class): Make static. Change rclass
9587         argument and return types to reg_class_t.
9588         (TARGET_PREFERRED_RELOAD_CLASS,
9589         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9590
9591 2011-08-16  Kai Tietz  <ktietz@redhat.com>
9592
9593         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
9594
9595 2011-08-16  Richard GUenther  <rguenther@suse.de>
9596
9597         PR tree-optimization/50082
9598         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
9599         warnings here, instead of ...
9600         (ssa_forward_propagate_and_combine): ... here.
9601         (forward_propagate_into_comparison_1): Adjust.
9602         (forward_propagate_into_comparison): Likewise.
9603         (forward_propagate_into_gimple_cond): Likewise.
9604         (forward_propagate_into_cond): Likewise.
9605
9606 2011-08-16  Andreas Schwab  <schwab@redhat.com>
9607
9608         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
9609         instead of ggc_alloc_zone_vec_rtvec_def.
9610
9611 2011-08-16  Richard Guenther  <rguenther@suse.de>
9612
9613         * tree.h (ptrofftype_p): New helper function.
9614         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
9615         offset verification.
9616         (verify_gimple_assign_binary): Likewise.
9617         * tree.c (build2_stat): Likewise.
9618         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
9619         (reset_evolution_in_loop): Likewise.
9620         * tree-chrec.h (build_polynomial_chrec): Likewise.
9621
9622 2011-08-16  Liang Wang  <lwang1@marvell.com>
9623
9624         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
9625         ggc_alloc_zone_vec_rtvec_def.
9626
9627 2011-08-16  Richard Guenther  <rguenther@suse.de>
9628
9629         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
9630         helper factored out from ...
9631         (extract_range_from_binary_expr_1): ... here.  Re-structure
9632         to not glob handling too different tree codes.
9633
9634 2011-08-15  Richard Henderson  <rth@redhat.com>
9635
9636         PR middle-end/50006
9637         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
9638         setting out to include allocate_stack named pattern as well.
9639         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
9640         * stmt.c (expand_stack_restore): Likewise.
9641
9642 2011-08-15  Richard Guenther  <rguenther@suse.de>
9643
9644         PR middle-end/50082
9645         * fold-const.c (maybe_canonicalize_comparison_1): Properly
9646         convert the modified operand to the other operand type.
9647         (fold_comparison): Call maybe_canonicalize_comparison_1 with
9648         useless conversions stripped from comparison operands.
9649
9650 2011-08-15  Richard Guenther  <rguenther@suse.de>
9651
9652         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
9653         (extract_range_from_unary_expr_1): Restructure.
9654
9655 2011-08-15  Richard Guenther  <rguenther@suse.de>
9656
9657         PR tree-optimization/50058
9658         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
9659         copy matching.
9660
9661 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9662
9663         PR target/50022
9664         * config/arm/arm.c (output_move_double): Add 2 parameters
9665         to count the number of insns emitted and whether to emit or not.
9666         Use the flag to decide when to emit and count number of instructions
9667         that will be emitted.
9668         Handle case where output_move_double might be called for calculating
9669         lengths with an invalid constant.
9670         (arm_count_output_move_double_insns): Define.
9671         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
9672         (output_move_double): Adjust prototype.
9673         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
9674         output_move_double.
9675         ("*movdi_vfp_cortexa8"): Likewise and add attribute
9676         for ce_count.
9677         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
9678         ("*movdf_soft_insn"): Likewise.
9679         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
9680         ("*cirrus_thumb2_movdi"): Likewise.
9681         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
9682         ("*cirrus_movdf_hard_insn"): Likewise.
9683         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
9684         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
9685         ("mov<mode>_internal VMMX"): Likewise.
9686         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
9687
9688 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
9689
9690         * config/i386/i386.c (ix86_expand_round_sse4): New function.
9691         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
9692         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
9693         for TARGET_ROUND.
9694
9695         (rint<mode>2): Simplify TARGET_ROUND check.
9696         (floor<mode>2): Ditto.
9697         (ceil<mode>2): Ditto.
9698         (btrunc<mode>2): Ditto.
9699
9700 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
9701
9702         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
9703         as mmix_preferred_output_reload_class.
9704
9705 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
9706
9707         * PR target/49903
9708         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
9709         (branch_unspec): New insn.
9710         (branch): Beauty farm.
9711         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
9712         to be IF_THEN_ELSE.
9713         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
9714         New static functions.
9715         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
9716         Use CONST_INT_P.  Beauty.
9717
9718 2011-08-12  Richard Henderson  <rth@redhat.com>
9719
9720         PR rtl-opt/49994
9721         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
9722         * sched-deps.c (init_deps): Clear it.
9723         (deps_analyze_insn): Consume it.
9724         (sched_analyze_insn): Fill it.
9725
9726 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9727
9728         PR target/48328
9729         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
9730         for tbh instructions.
9731
9732 2011-08-12  Diego Novillo  <dnovillo@google.com>
9733
9734         * data-streamer.h (streamer_write_zero): Rename from output_zero.
9735         (streamer_write_uhwi): Rename from lto_output_uleb128.
9736         (streamer_write_hwi): Rename from output_sleb128.
9737         (streamer_write_string): Rename from lto_output_string.
9738         (streamer_string_index): Rename from lto_string_index.
9739         (streamer_write_string_with_length): Rename from
9740         lto_output_string_with_length.
9741         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
9742         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
9743         (streamer_read_string): Rename from lto_input_string.
9744         (streamer_read_indexed_string): Rename from input_string_internal.
9745         (streamer_read_uhwi): Rename from lto_input_uleb128.
9746         (streamer_read_hwi): Rename from lto_input_sleb128.
9747         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
9748         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
9749         (streamer_write_enum): Rename from lto_output_enum.
9750         (streamer_read_enum): Rename from lto_input_enum.
9751         (streamer_write_record_start): Rename from output_record_start.
9752         (streamer_read_record_start): Rename from input_record_start.
9753         (streamer_write_bitpack): Rename from lto_output_bitpack.
9754         (streamer_read_bitpack): Rename from lto_input_bitpack.
9755         (streamer_write_char_stream): Rename from lto_output_1_stream.
9756         (streamer_read_uchar): Rename from lto_input_1_unsigned.
9757         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
9758         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
9759         (streamer_read_string_cst): Rename from input_string_cst.
9760         (streamer_read_chain): Rename from lto_input_chain.
9761         (streamer_alloc_tree): Rename from lto_materialize_tree.
9762         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
9763         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
9764         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
9765         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
9766         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
9767         (streamer_write_chain): Rename from lto_output_chain.
9768         (streamer_write_tree_header): Rename from lto_output_tree_header.
9769         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
9770         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
9771         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
9772         (streamer_write_builtin): Rename from lto_output_builtin_tree.
9773         (streamer_check_handled_ts_structures): Rename from
9774         check_handled_ts_structures.
9775         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
9776         (streamer_tree_cache_insert_at): Rename from
9777         lto_streamer_cache_insert_at.
9778         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
9779         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
9780         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
9781         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
9782         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
9783         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
9784         (write_identifier): Rename from output_identifier.
9785         (write_ts_common_tree_pointers): Rename from
9786         lto_output_ts_common_tree_pointers.
9787         (write_ts_vector_tree_pointers): Rename from
9788         lto_output_ts_vector_tree_pointers.
9789         (write_ts_complex_tree_pointers): Rename from
9790         lto_output_ts_complex_tree_pointers.
9791         (write_ts_decl_minimal_tree_pointers): Rename from
9792         lto_output_ts_decl_minimal_tree_pointers.
9793         (write_ts_decl_common_tree_pointers): Rename from
9794         lto_output_ts_decl_common_tree_pointers.
9795         (write_ts_decl_non_common_tree_pointers): Rename from
9796         lto_output_ts_decl_non_common_tree_pointers.
9797         (write_ts_decl_with_vis_tree_pointers): Rename from
9798         lto_output_ts_decl_with_vis_tree_pointers.
9799         (write_ts_field_decl_tree_pointers): Rename from
9800         lto_output_ts_field_decl_tree_pointers.
9801         (write_ts_function_decl_tree_pointers): Rename from
9802         lto_output_ts_function_decl_tree_pointers.
9803         (write_ts_type_common_tree_pointers): Rename from
9804         lto_output_ts_type_common_tree_pointers.
9805         (write_ts_type_non_common_tree_pointers): Rename from
9806         lto_output_ts_type_non_common_tree_pointers.
9807         (write_ts_list_tree_pointers): Rename from
9808         lto_output_ts_list_tree_pointers.
9809         (write_ts_vec_tree_pointers): Rename from
9810         lto_output_ts_vec_tree_pointers.
9811         (write_ts_exp_tree_pointers): Rename from
9812         lto_output_ts_exp_tree_pointers.
9813         (write_ts_block_tree_pointers): Rename from
9814         lto_output_ts_block_tree_pointers.
9815         (write_ts_binfo_tree_pointers): Rename from
9816         lto_output_ts_binfo_tree_pointers.
9817         (write_ts_constructor_tree_pointers): Rename from
9818         lto_output_ts_constructor_tree_pointers.
9819         (write_ts_target_option): Rename from lto_output_ts_target_option.
9820         (write_ts_translation_unit_decl_tree_pointers): Rename from
9821         lto_output_ts_translation_unit_decl_tree_pointers.
9822         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
9823         Rename from lto_streamer_cache_add_to_node_array.
9824         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
9825         (record_common_node): Rename from lto_record_common_node.
9826
9827         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
9828         declarations.
9829         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
9830         function.
9831         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
9832         unused function.
9833         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
9834         (ipa-reference.o): Likewise.
9835         * lto-section-out.c: Include data-streamer.h.
9836         * ipa-reference.c: Include data-streamer.h.
9837
9838 2011-08-12  Nick Clifton  <nickc@redhat.com>
9839
9840         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
9841         * doc/md.texi (cmpstrn): Note that the comparison stops if both
9842         fetched bytes are zero.
9843         (cmpstr): Likewise.
9844         (cmpmem): Note that the comparison does not stop if both of the
9845         fetched bytes are zero.
9846
9847 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
9848
9849         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
9850         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
9851         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
9852         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
9853         to integer_type_node.
9854         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
9855         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
9856         * builtins.c (expand_builtin_in): Ditto.
9857         (mathfn_built_in_1): Ditto.
9858         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
9859         BUILT_IN_IFLOOR.
9860         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
9861         BUILT_IN_IROUND.
9862         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
9863         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
9864         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
9865
9866 2011-08-12  Richard Guenther  <rguenther@suse.de>
9867
9868         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
9869
9870 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
9871
9872         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
9873
9874 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
9875
9876         * config/arm/arm.c (get_label_padding): New function.
9877         (create_fix_barrier, arm_reorg): Use it.
9878
9879 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
9880
9881         PR target/49781
9882         * config/i386/i386.md (*lea_5_zext): New.
9883         (*lea_6_zext): Ditto.
9884         * config/i386/predicates.md (const_32bit_mask): New predicate.
9885         (lea_address_operand): Reject AND.
9886         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
9887         const_32bit_mask immediate.
9888         (ix86_print_operand_address): Handle AND.
9889         (memory_address_length): Ditto.
9890
9891 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
9892             Brian Hackett  <bhackett1024@gmail.com>
9893
9894         * plugin.def: Add event for finish_decl.
9895         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
9896         * c-decl.c (finish_decl): Invoke callbacks on above event.
9897         * doc/plugins.texi: Document above event.
9898
9899 2011-08-11  Richard Guenther  <rguenther@suse.de>
9900
9901         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
9902         lookups, make looking through aggregate copies stronger.
9903
9904 2011-08-11  Richard Henderson  <rth@redhat.com>
9905
9906         PR bootstrap/50018
9907         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
9908
9909 2011-08-11  Richard Guenther  <rguenther@suse.de>
9910
9911         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
9912         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
9913         (vrp_visit_stmt): Likewise.
9914
9915 2011-08-11  Richard Guenther  <rguenther@suse.de>
9916
9917         PR middle-end/50040
9918         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
9919         load of the other piece with TREE_NO_WARNING.
9920         * tree-flow.h (warn_uninit): Adjust prototype.
9921         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
9922         the base variable and the expression that is used separately.
9923         Properly query all TREE_NO_WARNING flags.
9924         (struct walk_data): Remove.
9925         (warn_uninitialized_var): Likewise.
9926         (warn_uninitialized_vars): Do not walk gimple pieces but simply
9927         look at all SSA uses of the statement.  Handle unused memory
9928         separately.
9929         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
9930
9931 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
9932
9933         * config/rx/rx.md (movsicc): Allow register to register transfers.
9934         (*movsicc): Likewise.
9935         (*stcc): Restrict this pattern to EQ and NE compares.
9936         (*stcc_reg): New pattern.  Works for any comparison but only for
9937         register transfers.
9938
9939 2011-08-11   Diego Novillo  <dnovillo@google.com>
9940
9941         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
9942         Call stream_write_tree instead of output_record_start.
9943         (lto_output_ts_binfo_tree_pointers): Likewise.
9944
9945         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
9946         Convert it to a macro.
9947         (stream_read_tree): Likewise.
9948
9949         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
9950         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
9951
9952         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
9953         and tree_read_bitfields.
9954         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
9955         (lto_write_tree): Call it.
9956         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
9957         * streamer-hooks.h (struct streamer_hooks): Remove fields
9958         name, is_streamable and alloc_tree. Update all users.
9959         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
9960         (lto_materialize_tree): ... here.
9961         Handle CALL_EXPR codes.
9962         Remove call to lto_streamer_cache_append.
9963         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
9964         * tree-streamer.h (tree_read_bitfields): Declare.
9965
9966         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
9967         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
9968         * tree-streamer.h (stream_read_tree): New.  Replace all calls
9969         to lto_input_tree with it.
9970         (stream_write_tree): New.  Replace all calls to lto_output_tree,
9971         lto_output_tree_ref and lto_output_tree_or_ref with it.
9972         * lto-streamer-in.c (lto_read_tree): Inline code from
9973         lto_streamer_read_tree.
9974         (lto_input_tree): Move from tree-streamer-in.c.
9975         * lto-streamer-out.c (lto_output_tree_ref): Make static.
9976         Remove handling of NULL values for EXPR.
9977         Do not handle EXPRs that are not indexable.
9978         (lto_write_tree): Move from tree-streamer-out.c.
9979         Inline lto_streamer_write_tree.
9980         (lto_output_tree): Move from tree-streamer-out.c.
9981         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
9982         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
9983         (lto_preload_common_nodes): Likewise.
9984         Remove assertions and adjustments for nodes
9985         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
9986         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
9987         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
9988         * lto-streamer.h (lto_input_tree): Declare.
9989         (lto_output_tree_ref): Remove.
9990         * streamer-hooks.h (struct streamer_hooks): Remove fields
9991         preload_common_nodes, indexable_with_decls_p,
9992         pack_value_fields, unpack_value_fields and output_tree_header.
9993         Update all users.
9994         * tree-streamer-in.c (lto_materialize_tree): Make extern.
9995         (lto_input_tree_pointers): Likewise.
9996         (lto_read_tree): Move to lto-streamer-in.c.
9997         (lto_input_integer_cst): Make extern.
9998         (lto_get_pickled_tree): Likewise.
9999         (lto_get_builtin_tree): Likewise.
10000         (lto_input_tree): Move to lto-streamer-in.c.
10001         * tree-streamer-out.c (pack_value_fields): Make extern.
10002         (lto_output_tree_or_ref): Remove.  Replace all callers with
10003         calls to stream_write_tree.
10004         (lto_output_builtin_tree): Make extern.
10005         (lto_streamer_write_tree): Inline into lto_write_tree.
10006         (lto_output_tree_pointers): Make extern.
10007         (lto_output_tree_header): Likewise.
10008         (lto_output_integer_cst): Likewise.
10009         (lto_write_tree): Move to lto-streamer-out.c.
10010         (lto_output_tree): Likewise.
10011         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
10012         (preload_common_nodes): Likewise.
10013         (lto_streamer_cache_create): Call it.
10014         * tree-streamer.h: Include streamer-hooks.h.
10015         (stream_write_tree): New.
10016         (stream_read_tree): New.
10017         (lto_input_tree): Remove.
10018         (lto_materialize_tree): Declare.
10019         (lto_input_tree_pointers): Declare.
10020         (lto_get_pickled_tree): Declare.
10021         (lto_get_builtin_tree): Declare.
10022         (lto_input_integer_cst): Declare.
10023         (lto_output_tree_header): Declare.
10024         (pack_value_fields): Declare.
10025         (lto_output_tree_pointers): Declare.
10026         (lto_output_integer_cst): Declare.
10027         (lto_output_builtin_tree): Declare.
10028
10029 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
10030
10031         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
10032         only if producer writes to the register given by regno.
10033
10034 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
10035             Alexander Monakov  <amonakov@ispras.ru>
10036
10037         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
10038         (sched_get_condition_with_rev_uncached): ... this.  Factor out
10039         condition caching logic into ...
10040         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
10041         attempt to use cache for instructions with zero luid.
10042         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
10043         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
10044
10045 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
10046
10047         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
10048         get_seqno_for_a_jump.  Update the caller.
10049         (get_seqno_by_succs): New.  Use it ...
10050         (get_seqno_for_a_jump): ... here to find a seqno if looking at
10051         predecessors was not sufficient.
10052         (get_seqno_by_preds): Include head in iteration range, exclude insn.
10053
10054 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
10055
10056         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
10057
10058 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
10059
10060         * sel-sched-ir.h (register_unavailable_p): Declare.
10061         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
10062         (set_unavailable_target_for_expr): ... here to properly test
10063         availability of a register.
10064         (speculate_expr): Ditto.
10065         * sel-sched.c (substitute_reg_in_expr): Ditto.
10066         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
10067
10068 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
10069
10070         * sel-sched.c (verify_target_availability): Fix usage of
10071         hard_regno_nregs.
10072
10073 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
10074
10075         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
10076         recognized by cannot_copy_insn_p hook and volatile instructions.
10077
10078 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
10079
10080         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
10081
10082 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
10083
10084         * doc/md.texi (define_bypass): Say that the instruction names can
10085         be filename-style globs.
10086         * Makefile.in (FNMATCH_H): Define.
10087         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
10088         * genattrtab.c: Include fnmatch.h.
10089         (bypass_list): Change field name from "insn" to "pattern".
10090         (gen_bypass_1): Update accordingly.
10091         (process_bypasses): Use fnmatch to check for matches between
10092         insn reservations and define_bypasses.
10093         * genautomata.c: Include fnmatch.h.
10094         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
10095         and out_pattern respectively.
10096         (gen_bypass, insert_bypass): Update accordingly.
10097         (for_each_matching_insn, process_bypass_2, process_bypass_1)
10098         (process_bypass): New functions.
10099         (process_decls): Use process_bypass.  Update after field name changes.
10100
10101 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
10102
10103         PR target/49687
10104         * config/avr/avr.md (smulqi3_highpart): New insn.
10105         (umulqi3_highpart): New insn.
10106         (*subqi3.ashiftrt7): New insn.
10107         (smulhi3_highpart): New expander.
10108         (umulhi3_highpart): Nex expander.
10109         (*smulhi3_highpart_call): New insn.
10110         (*umulhi3_highpart_call): New insn.
10111         (extend_u): New code attribute.
10112         (extend_prefix): Rename code attribute to extend_su.
10113         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
10114         widening QI/HI multiply.
10115
10116 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
10117
10118         PR tree-optimization/50039
10119         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
10120         that DEF_STMT has a stmt_vec_info.
10121
10122 2011-08-10  Richard Guenther  <rguenther@suse.de>
10123
10124         * tree.h (can_trust_pointer_alignment): Remove.
10125         * builtins.c (can_trust_pointer_alignment): Remove.
10126
10127 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
10128
10129         * c-typeck.c (scalar_to_vector): New function. Try scalar to
10130         vector conversion.
10131         (stv_conv): New enum for scalar_to_vector return type.
10132         (build_binary_op): Adjust.
10133         * doc/extend.texi: Description of scalar to vector expansion.
10134
10135 2011-08-10  Richard Guenther  <rguenther@suse.de>
10136
10137         * tree.h (get_pointer_alignment): Remove max-align argument.
10138         (get_object_alignment): Likewise.
10139         * builtins.c (get_object_alignment_1): Adjust.
10140         (get_object_alignment): Remove max-align argument.
10141         (get_pointer_alignment): Likewise.
10142         (expand_builtin_strlen): Adjust.
10143         (expand_builtin_memcpy): Likewise.
10144         (expand_builtin_mempcpy_args): Likewise.
10145         (expand_builtin_strncpy): Likewise.
10146         (expand_builtin_memset_args): Likewise.
10147         (expand_builtin_memcmp): Likewise.
10148         (expand_builtin_strcmp): Likewise.
10149         (expand_builtin_strncmp): Likewise.
10150         (get_builtin_sync_mem): Likewise.
10151         (fold_builtin_memset): Likewise.
10152         (fold_builtin_memory_op): Likewise.
10153         (expand_builtin_memory_chk): Likewise.
10154         * emit-rtl.c (get_mem_align_offset): Likewise.
10155         (set_mem_attributes_minus_bitpos): Likewise.
10156         * expr.c (expand_assignment): Likewise.
10157         (expand_expr_real_1): Likewise.
10158         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
10159         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
10160         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
10161         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
10162         * value-prof.c (gimple_stringops_transform): Likewise.
10163
10164 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
10165
10166         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
10167         * doc/tm.texi: Regenerate.
10168
10169 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
10170
10171         PR target/29560
10172         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
10173         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
10174         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
10175         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
10176         shift target is unused.
10177
10178 2011-08-10  Richard Guenther  <rguenther@suse.de>
10179
10180         PR tree-optimization/49937
10181         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
10182         using get_object_alignment_1.
10183
10184 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
10185
10186         * config/i386/i386.c (ix86_emit_i387_round): New function.
10187         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
10188         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
10189         Use ix86_emit_i387_round to expand round function for i387 math.
10190         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
10191         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
10192
10193 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10194
10195         * config/sync.c: Move to ../libgcc.
10196         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
10197         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
10198         Remove.
10199
10200 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
10201
10202         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
10203         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
10204         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
10205         Change 'from' and 'to' arguments type to reg_class_t.
10206         (TARGET_REGISTER_MOVE_COST): Define.
10207
10208 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
10209
10210         PR target/50026
10211         Revert:
10212         PR rtl-optimization/49990
10213         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
10214         ignore classes which can not change mode.
10215         (find_costs_and_classes): Ditto.
10216
10217 2011-08-09  Richard Guenther  <rguenther@suse.de>
10218
10219         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
10220         information for ranges with only negative values.
10221         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
10222         BIT_AND_EXPR handling to handle ranges with negative values.
10223
10224 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
10225
10226         * config/i386/i386.c: Remove traling spaces.
10227         * config/i386/sse.md: Likewise.
10228         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
10229         (*fma_fmsub_<mode>): Likewise.
10230         (*fma_fnmadd_<mode>): Likewise.
10231         (*fma_fnmsub_<mode>): Likewise.
10232
10233 2011-08-09  Nick Clifton  <nickc@redhat.com>
10234
10235         * config/rx/rx.md: Disable extender peepholes at -O3.
10236
10237 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
10238
10239         PR target/49781
10240         * config/i386/i386.md (reload_noff_load): New.
10241         (reload_noff_store): Ditto.
10242         * config/i386/i386.c (ix86_secondary_reload): Use
10243         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
10244         double-word moves from/to non-offsetable addresses instead of
10245         generating XMM temporary.
10246
10247 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
10248
10249         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
10250
10251 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
10252
10253         PR tree-optimization/50014
10254         * tree-vect-loop.c (vectorizable_reduction): Get def type before
10255         calling vect_get_vec_def_for_stmt_copy ().
10256
10257 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
10258
10259         PR rtl-optimization/49990
10260         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
10261         ignore classes which can not change mode.
10262         (find_costs_and_classes): Ditto.
10263
10264 2011-08-08  Richard Henderson  <rth@redhat.com>
10265
10266         PR middle-end/49990
10267         * config/i386/i386.c (ix86_expand_prologue): Call
10268         for SEH target gen_prologue_use instead of gen_blockage
10269         at prologue's end.
10270
10271 2011-08-08  Martin Jambor  <mjambor@suse.cz>
10272
10273         PR middle-end/49923
10274         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
10275         memory alignment.
10276
10277 2011-08-08   Diego Novillo  <dnovillo@google.com>
10278
10279         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
10280         (DATA_STREAMER_H): New.
10281         (GIMPLE_STREAMER_H): New.
10282         (TREE_STREAMER_H): New.
10283         (STREAMER_HOOKS_H): New.
10284         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
10285         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
10286         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
10287         (data-streamer.o): New.
10288         (data-streamer-in.o): New.
10289         (data-streamer-out.o): New.
10290         (gimple-streamer-in.o): New.
10291         (gimple-streamer-out.o): New.
10292         (streamer-hooks.o): New.
10293         (tree-streamer.o): New.
10294         (tree-streamer-in.o): New.
10295         (tree-streamer-out.o): New.
10296         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
10297         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
10298         GIMPLE_STREAMER_H and TREE_STREAMER_H.
10299         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
10300         GIMPLE_STREAMER_H and TREE_STREAMER_H.
10301         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
10302         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
10303         (ipa-inline-analysis.o): Likewise.
10304         (ipa-pure-const.o): Likewise.
10305         * data-streamer-in.c: New.
10306         * data-streamer-out.c: New.
10307         * data-streamer.c: New.
10308         * data-streamer.h: New.
10309         * gimple-streamer-in.c: New.
10310         * gimple-streamer-out.c: New.
10311         * gimple-streamer.h: New.
10312         * ipa-inline-analysis.c: Include data-streamer.h.
10313         * ipa-prop.c: Include data-streamer.h.
10314         * ipa-pure-const.c: Include data-streamer.h.
10315         * lto-cgraph.c: Include data-streamer.h.
10316         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
10317         (lto_input_widest_uint_uleb128): Likewise.
10318         (lto_input_sleb128): Likewise.
10319         (bp_unpack_var_len_unsigned): Likewise.
10320         (bp_unpack_var_len_int): Likewise.
10321         * lto-section-out.c (lto_output_uleb128_stream): Move to
10322         data-streamer-out.c.
10323         (lto_output_widest_uint_uleb128_stream): Likewise.
10324         (lto_output_sleb128_stream): Likewise.
10325         (bp_pack_var_len_unsigned): Likewise.
10326         (bp_pack_var_len_int): Likewise.
10327         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
10328         (struct string_slot): Remove.  Update all users.
10329         (lto_tag_check_set): Make extern.
10330         (lto_tag_check_range): Move to lto-streamer.h.
10331         (lto_tag_check): Likewise.
10332         (hash_string_slot_node): Remove.  Update all users.
10333         (eq_string_slot_node): Remove.  Update all users.
10334         (string_for_index): Move to data-streamer-in.c
10335         (input_string_internal): Likewise.
10336         (input_string_cst): Move to tree-streamer-in.c.
10337         (input_identifier): Likewise.
10338         (lto_input_string): Move to data-streamer-in.c
10339         (input_record_start): Move to data-streamer.h
10340         (canon_file_name): Use new definition of struct string_slot
10341         from data-streamer.h.  Set S_SLOT.LEN.
10342         (lto_input_location): Make extern.
10343         (lto_input_chain): Move to tree-streamer-in.c.
10344         (lto_init_eh): Make extern.
10345         (input_phi): Move to gimple-streamer-in.c.
10346         (input_gimple_stmt): Likewise.
10347         (input_bb): Likewise.
10348         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
10349         (unpack_ts_real_cst_value_fields): Likewise.
10350         (unpack_ts_fixed_cst_value_fields): Likewise.
10351         (unpack_ts_decl_common_value_fields): Likewise.
10352         (unpack_ts_decl_wrtl_value_fields): Likewise.
10353         (unpack_ts_decl_with_vis_value_fields): Likewise.
10354         (unpack_ts_function_decl_value_fields): Likewise.
10355         (unpack_ts_type_common_value_fields): Likewise.
10356         (unpack_ts_block_value_fields): Likewise.
10357         (unpack_ts_translation_unit_decl_value_fields): Likewise.
10358         (unpack_value_fields): Likewise.
10359         (lto_materialize_tree): Likewise.
10360         (lto_input_ts_common_tree_pointers): Likewise.
10361         (lto_input_ts_vector_tree_pointers): Likewise.
10362         (lto_input_ts_complex_tree_pointers): Likewise.
10363         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
10364         (lto_input_ts_decl_common_tree_pointers): Likewise.
10365         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
10366         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
10367         (lto_input_ts_field_decl_tree_pointers): Likewise.
10368         (lto_input_ts_function_decl_tree_pointers): Likewise.
10369         (lto_input_ts_type_common_tree_pointers): Likewise.
10370         (lto_input_ts_type_non_common_tree_pointers): Likewise.
10371         (lto_input_ts_list_tree_pointers): Likewise.
10372         (lto_input_ts_vec_tree_pointers): Likewise.
10373         (lto_input_ts_exp_tree_pointers): Likewise.
10374         (lto_input_ts_block_tree_pointers): Likewise.
10375         (lto_input_ts_binfo_tree_pointers): Likewise.
10376         (lto_input_ts_constructor_tree_pointers): Likewise.
10377         (lto_input_ts_target_option): Likewise.
10378         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
10379         (lto_input_tree_pointers): Likewise.
10380         (lto_get_pickled_tree): Likewise.
10381         (lto_get_builtin_tree): Likewise.
10382         (lto_read_tree): Likewise.
10383         (lto_input_integer_cst): Likewise.
10384         (lto_input_tree): Likewise.
10385         * lto-streamer-out.c: Include data-streamer.h,
10386         gimple-streamer.h and streamer-hooks.h.
10387         (struct string_slot): Move to data-streamer.h.
10388         (hash_string_slot_node): Likewise.
10389         (eq_string_slot_node): Likewise.
10390         (lto_string_index): Move to data-streamer-out.c.
10391         (lto_output_string_with_length): Likewise.
10392         (lto_output_string): Likewise.
10393         (output_string_cst): Move to tree-streamer-out.c.
10394         (output_identifier): Likewise.
10395         (output_zero): Move to data-streamer-out.c
10396         (output_uleb128): Likewise.
10397         (output_sleb128): Likewise.
10398         (output_record_start): Move to data-streamer.h
10399         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
10400         (pack_ts_real_cst_value_fields): Likewise.
10401         (pack_ts_fixed_cst_value_fields): Likewise.
10402         (pack_ts_decl_common_value_fields): Likewise.
10403         (pack_ts_decl_wrtl_value_fields): Likewise.
10404         (pack_ts_decl_with_vis_value_fields): Likewise.
10405         (pack_ts_function_decl_value_fields): Likewise.
10406         (pack_ts_type_common_value_fields): Likewise.
10407         (pack_ts_block_value_fields): Likewise.
10408         (pack_ts_translation_unit_decl_value_fields): Likewise.
10409         (pack_value_fields): Likewise.
10410         (lto_output_chain): Likewise.
10411         (lto_output_ts_common_tree_pointers): Likewise.
10412         (lto_output_ts_vector_tree_pointers): Likewise.
10413         (lto_output_ts_complex_tree_pointers): Likewise.
10414         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
10415         (lto_output_ts_decl_common_tree_pointers): Likewise.
10416         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
10417         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
10418         (lto_output_ts_field_decl_tree_pointers): Likewise.
10419         (lto_output_ts_function_decl_tree_pointers): Likewise.
10420         (lto_output_ts_type_common_tree_pointers): Likewise.
10421         (lto_output_ts_type_non_common_tree_pointers): Likewise.
10422         (lto_output_ts_list_tree_pointers): Likewise.
10423         (lto_output_ts_vec_tree_pointers): Likewise.
10424         (lto_output_ts_exp_tree_pointers): Likewise.
10425         (lto_output_ts_block_tree_pointers): Likewise.
10426         (lto_output_ts_binfo_tree_pointers): Likewise.
10427         (lto_output_ts_constructor_tree_pointers): Likewise.
10428         (lto_output_ts_target_option): Likewise.
10429         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
10430         (lto_output_tree_pointers): Likewise.
10431         (lto_output_tree_header): Likewise.
10432         (lto_output_builtin_tree): Likewise.
10433         (lto_write_tree): Likewise.
10434         (lto_output_integer_cst): Likewise.
10435         (lto_output_tree): Likewise.
10436         (output_phi): Move to gimple-streamer-out.c.
10437         (output_gimple_stmt): Likewise.
10438         (output_bb): Likewise.
10439         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
10440         (streamer_hooks): Move to streamer-hooks.c.
10441         (check_handled_ts_structures): Move to tree-streamer.c
10442         (lto_streamer_cache_add_to_node_array): Likewise.
10443         (lto_streamer_cache_insert_1): Likewise.
10444         (lto_streamer_cache_insert): Likewise.
10445         (lto_streamer_cache_insert_at): Likewise.
10446         (lto_streamer_cache_append): Likewise.
10447         (lto_streamer_cache_lookup): Likewise.
10448         (lto_streamer_cache_get): Likewise.
10449         (lto_record_common_node): Likewise.
10450         (lto_preload_common_nodes): Likewise.
10451         (lto_streamer_cache_create): Likewise.
10452         (lto_streamer_cache_delete): Likewise.
10453         (streamer_hooks_init): Move to streamer-hooks.c.
10454         * lto-streamer.h: Include diagnostic.h
10455         (struct output_block, struct lto_input_block,
10456         struct data_in, struct bitpack_d): Remove forward declarations.
10457         (struct bitpack_d): Move to data-streamer.h.
10458         (struct lto_streamer_cache_d): Move to tree-streamer.h.
10459         (struct streamer_hooks): Move to streamer-hooks.h.
10460         (bp_pack_var_len_unsigned): Move to data-streamer.h.
10461         (bp_pack_var_len_int): Likewise.
10462         (bp_unpack_var_len_unsigned): Likewise.
10463         (bp_unpack_var_len_int): Likewise.
10464         (lto_input_location): Declare.
10465         (lto_tag_check_set): Declare.
10466         (lto_init_eh): Declare.
10467         (lto_output_tree_ref): Declare.
10468         (lto_output_location): Declare.
10469         (bitpack_create): Move to data-streamer.h.
10470         (bp_pack_value): Likewise.
10471         (lto_output_bitpack): Likewise.
10472         (lto_input_bitpack): Likewise.
10473         (bp_unpack_value): Likewise.
10474         (lto_output_1_stream): Likewise.
10475         (lto_input_1_unsigned): Likewise.
10476         (lto_output_int_in_range): Likewise.
10477         (lto_input_int_in_range): Likewise.
10478         (bp_pack_int_in_range): Likewise.
10479         (bp_unpack_int_in_range): Likewise.
10480         (lto_output_enum): Likewise.
10481         (lto_input_enum): Likewise.
10482         (bp_pack_enum): Likewise.
10483         (bp_unpack_enum): Likewise.
10484         * streamer-hooks.c: New.
10485         * streamer-hooks.h: New.
10486         * tree-streamer-in.c: New.
10487         * tree-streamer-out.c: New.
10488         * tree-streamer.c: New.
10489         * tree-streamer.h: New.
10490
10491 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10492
10493         * gthr-posix95.h: Remove.
10494         * gthr.h [_PTHREADS95]: Remove.
10495         * configure.ac (enable_threads): Remove posix95.
10496         * configure: Regenerate.
10497         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
10498
10499 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
10500
10501         PR target/49781
10502         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
10503         SImode addresses.
10504         (ix86_print_operand_address): Handle zero-extended addresses.
10505         (memory_address_length): Add length of addr32 prefix for
10506         zero-extended addresses.
10507         (ix86_secondary_reload): Handle moves to/from double-word general
10508         registers from/to zero-extended addresses.
10509         * config/i386/predicates.md (lea_address_operand): Reject
10510         zero-extended operands.
10511
10512 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
10513
10514         PR other/48007
10515         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
10516
10517         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
10518         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
10519
10520         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
10521         (_Unwind_Context_Reg_Val): Likewise.
10522         (_Unwind_Get_Unwind_Word): Likewise.
10523         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
10524         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
10525         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
10526         for EXTENDED_CONTEXT_BIT.
10527         (__frame_state_for): Likewise.
10528         (uw_init_context_1): Likewise.
10529         (_Unwind_GetGR): Updated.
10530         (_Unwind_SetGR): Likewise.
10531         (_Unwind_GetGRPtr): Likewise.
10532         (_Unwind_SetGRPtr): Likewise.
10533         (_Unwind_SetGRValue): Likewise.
10534         (_Unwind_GRByValue): Likewise.
10535         (uw_install_context_1): Likewise.
10536
10537         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
10538         ASSUME_EXTENDED_UNWIND_CONTEXT.
10539         * doc/tm.texi: Regenerated.
10540
10541 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10542
10543         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
10544
10545 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10546
10547         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
10548         Linux/GNU-specific.
10549         (DEC Alpha Options, -mtune): Likewise.
10550         (MIPS Options, -march): native is supported on IRIX.
10551
10552 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10553
10554         * config/sparc/driver-sparc.c: New file.
10555         * config/sparc/x-sparc: New file.
10556         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
10557         * config/sparc/sparc.opt (native): New value for enum processor_type.
10558         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
10559         * config/sparc/sparc.c (sparc_option_override): Abort if
10560         PROCESSOR_NATIVE gets here.
10561         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
10562         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
10563         DRIVER_SELF_SPECS): Define.
10564         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
10565         (SPARC Options, -mtune): Likewise.
10566         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
10567         Substitute result.
10568         * configure: Regenerate.
10569         * Makefile.in (EXTRA_GCC_LIBS): Set.
10570         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
10571         (cpp$(exeext)): Likewise.
10572
10573 2011-08-08  Richard Guenther  <rguenther@suse.de>
10574
10575         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
10576         split out from ...
10577         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
10578         by composition.
10579
10580 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
10581
10582         PR tree-optimization/50005
10583         * ipa-inline-analysis (remap_predicate): Add cast to
10584         silence signed/unsigned comparison warning.
10585
10586 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
10587
10588         * modulo-sched.c (get_sched_window): Use a table for the debug output.
10589         Print the current ii.
10590         (sms_schedule_by_order): Reduce whitespace in dump line.
10591
10592 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
10593
10594         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
10595         and one loop for successors.  Fix upper bound of memory range.
10596
10597 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
10598
10599         PR target/50001
10600         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
10601         (TARGET_INSTANTIATE_DECLS): New define.
10602
10603 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
10604             Mikael Morin   <mikael.morin@sfr.fr>
10605
10606         * Makefile.in (INCLUDES_FOR_TARGET): New.
10607         (LIBGCC2_CFLAGS): Use it.
10608         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
10609
10610 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
10611
10612         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
10613         frame->save_regs_using_mov calculation.
10614
10615 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
10616
10617         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
10618         * config/i386/sse.md (castmode): New mode attribute.
10619         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
10620         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
10621
10622 2011-08-05  Jan Hubicka  <jh@suse.cz>
10623
10624         PR middle-end/49494
10625         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
10626
10627 2011-08-05  Jan Hubicka  <jh@suse.cz>
10628
10629         PR middle-end/49500
10630         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
10631         handle aliases.
10632         (create_emultls_var):New function.
10633         (ipa_lower_emutls): Handle aliases correctly.
10634
10635 2011-08-05  Jan Hubicka  <jh@suse.cz>
10636
10637         PR middle-end/49735
10638         * ipa-inline.c (recursive_inlining): Look through aliases.
10639
10640 2011-08-05  Jason Merrill  <jason@redhat.com>
10641
10642         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
10643         declarations to beginning of function.
10644
10645 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
10646
10647         PR rtl-optimization/49900
10648         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
10649         ensure basic blocks stay in the same order.
10650
10651 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
10652
10653         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
10654         store_bit_field.
10655         (s390_expand_atomic): Same.
10656
10657 2011-08-05  Richard Henderson  <rth@redhat.com>
10658
10659         PR rtl-opt/49977
10660         * dwarf2cfi.c (scan_insn_after): Split out of ...
10661         (scan_trace): ... here.  Correctly place notes wrt sequences.
10662
10663 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
10664             Richard Henderson  <rth@redhat.com>
10665
10666         PR rtl-opt/49982
10667         * expr.c (fixup_args_size_notes): Look through no-op moves.
10668
10669 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
10670
10671         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
10672         of "m" for operand 0.  Add type and mode attribute.
10673         (*pushxf_nointeger"): Use "<" constraint for operand 0.
10674         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
10675         constraint instead of "o" for opreand 1.
10676         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
10677         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
10678         operand 0, alternative 4.
10679         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
10680
10681 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
10682
10683         * config/i386/predicates.md (lea_address_operand): Rename from
10684         no_seg_address_operand.
10685         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
10686         (*lea_1_zext): Ditto.
10687         (*lea_2): Ditto.
10688         (*lea_2_zext): Ditto.
10689
10690 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
10691
10692         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
10693         parts.base and parts.index.
10694         * config/i386/predicates.md (aligned_operand): Ditto.
10695         (cmpxchg8b_pic_memory_operand): Ditto.
10696
10697 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10698
10699         * config/soft-fp: Move to ../libgcc.
10700         * Makefile.in (SFP_MACHINE): Remove.
10701         (libgcc-support): Remove $(SFP_MACHINE) dependency.
10702         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
10703         * config/arm/t-arm-softfp: Move to
10704         ../libgcc/config/arm/t-softfp.
10705         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
10706         * config/c6x/t-c6x-softfp: Remove.
10707         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
10708         * config/i386/t-fprules-softfp: Move to
10709         ../libgcc/config/t-softfp-tf.
10710         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
10711         * config/ia64/t-fprules-softfp: Remove.
10712         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
10713         * config/lm32/t-fprules-softfp: Remove.
10714         * config/moxie/sfp-machine.h: Remove.
10715         * config/moxie/t-moxie-softfp: Remove.
10716         * config/rs6000/darwin-ldouble-format: Move to
10717         ../libgcc/config/rs6000/ibm-ldouble-format.
10718         * config/rs6000/darwin-ldouble.c: Move to
10719         ../libgcc/config/rs6000/ibm-ldouble.c
10720         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
10721         * config/rs6000/libgcc-ppc64.ver: Likewise.
10722         * config/rs6000/sfp-machine.h: Likewise.
10723         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
10724         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
10725         (LIB2FUNCS_EXTRA): Remove.
10726         (TARGET_LIBGCC2_CFLAGS): Remove.
10727         * config/rs6000/t-aix52: Likewise
10728         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
10729         $(srcdir)/config/rs6000/darwin-ldouble.c.
10730         (SHLIB_MAPFILES): Remove.
10731         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
10732         $(srcdir)/config/rs6000/darwin-ldouble.c.
10733         * config/rs6000/t-fprules-softfp: Move to
10734         ../libgcc/config/t-softfp-sfdf.
10735         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
10736         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
10737         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
10738         $(srcdir)/config/rs6000/darwin-ldouble.c.
10739         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
10740         * config/score/t-score-softfp: Remove.
10741         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
10742         soft-fp/t-softfp from tmake_file.
10743         (arm*-*-uclinux*): Likewise.
10744         (arm*-*-ecos-elf): Likewise.
10745         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
10746         (arm*-*-rtems*): Likewise.
10747         (arm*-*-elf): Likewise.
10748         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
10749         tmake_file.
10750         (moxie-*-uclinux*): Likewise.
10751         (moxie-*-rtems*): Likewise.
10752         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
10753         tmake_file.
10754         (lm32-*-rtems*): Likewise.
10755         (lm32-*-uclinux*): Likewise.
10756         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
10757         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
10758         (powerpc-*-linux*, powerpc64-*-linux*): Remove
10759         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
10760         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
10761         tmake_file.
10762         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
10763         tmake_file.
10764         (tic6x-*-uclinux): Likewise.
10765         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
10766         soft-fp/t-softfp from tmake_file.
10767         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
10768         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
10769         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
10770         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
10771         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
10772
10773 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10774
10775         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
10776         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
10777         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
10778         TPBIT, TPBIT_FUNCS.
10779         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
10780         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
10781         Remove.
10782         * config/arm/t-vxworks: Likewise.
10783         * config/arm/t-wince-pe: Likewise.
10784         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
10785         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10786         * config/bfin/t-bfin-elf: Likewise.
10787         * config/bfin/t-bfin-linux: Likewise.
10788         * config/bfin/t-bfin-uclinux: Likewise.
10789         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
10790         Remove.
10791         * config/fr30/t-fr30: Likewise.
10792         * config/frv/t-frv: Likewise.
10793         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
10794         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10795         * config/m32c/t-m32c: Likewise.
10796         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
10797         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10798         * config/mcore/t-mcore: Likewise.
10799         * config/mep/t-mep: Likewise.
10800         * config/microblaze/t-microblaze: Likewise.
10801         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
10802         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10803         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
10804         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10805         * config/mn10300/t-linux: Remove.
10806         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10807         * config/pdp11/t-pdp11: Likewise.
10808         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
10809         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
10810         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10811         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
10812         * config/rs6000/t-aix52: Likewise.
10813         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
10814         $(srcdir)/config/rs6000/ppc64-fp.c.
10815         * config/rs6000/t-fprules-fpbit: Remove.
10816         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
10817         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10818         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
10819         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10820         * config/sparc/t-elf: Likewise.
10821         * config/sparc/t-leon: Likewise.
10822         * config/sparc/t-leon3: Likewise.
10823         * config/spu/t-spu-elf: Likewise.
10824         (DPBIT_FUNCS): Remove.
10825         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10826         * config/v850/t-v850: Likewise.
10827         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
10828         (avr-*-*): Likewise.
10829         (h8300-*-rtems*): Set libgcc_tm_file.
10830         (h8300-*-elf*): Likewise.
10831         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
10832         tmake_file.
10833         (powerpc-*-eabisim*): Likewise.
10834         (powerpc-*-elf*): Likewise.
10835         (powerpc-*-eabialtivec*): Likewise.
10836         (powerpc-xilinx-eabi*): Likewise.
10837         (powerpc-*-eabi*): Likewise.
10838         (powerpc-*-rtems*): Likewise.
10839         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
10840         (powerpcle-*-elf*): Likewise.
10841         (powerpcle-*-eabisim*): Likewise.
10842         (powerpcle-*-eabi*): Likewise.
10843         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
10844         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
10845         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
10846         Remove.
10847
10848 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10849
10850         * Makefile.in (UNWIND_H): Remove.
10851         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
10852         ../libgcc/Makefile.in.
10853         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
10854         (LIBUNWINDDEP): Remove.
10855         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
10856         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
10857         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
10858         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
10859         Don't copy $(UNWIND_H).
10860         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
10861         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
10862         * aclocal.m4: Regenerate.
10863         * configure: Regenerate.
10864         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
10865         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
10866         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
10867         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
10868         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
10869         * config/arm/libunwind.S, config/arm/pr-support.c,
10870         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
10871         ../libgcc/config/arm.
10872         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
10873         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
10874         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
10875         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
10876         ($(T)frvend$(objext)): Likewise.
10877         * config/ia64/t-glibc (LIB2ADDEH): Remove.
10878         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
10879         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
10880         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
10881         ../libgcc/config/ia64.
10882         * config/ia64/t-hpux (LIB2ADDEH): Remove.
10883         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
10884         * config/ia64/t-vms (LIB2ADDEH): Remove.
10885         * config/ia64/vms.h (UNW_IVMS_MODE,
10886         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
10887         * config/picochip/t-picochip (LIB2ADDEH): Remove.
10888         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
10889         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
10890         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
10891         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
10892         $(srcdir)/../libgcc to refer to unwinder sources.
10893         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
10894         * config/t-darwin (LIB2ADDEH): Remove.
10895         * config/t-freebsd (LIB2ADDEH): Remove.
10896         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
10897         * config/t-libunwind-elf: Move to ../libgcc/config.
10898         * config/t-linux (LIB2ADDEH): Remove.
10899         * config/t-sol2 (LIB2ADDEH): Remove.
10900         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
10901         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
10902
10903 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
10904
10905         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
10906
10907         * doc/invoke.texi: Document core-avx-i.
10908
10909 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10910
10911         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
10912
10913 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
10914
10915         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
10916         result of multiple results reduction when extracting the final
10917         value using scalar code.
10918
10919 2011-08-05  Richard Guenther  <rguenther@suse.de>
10920
10921         PR tree-optimization/49984
10922         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
10923
10924 2011-08-05  Richard Guenther  <rguenther@suse.de>
10925
10926         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
10927         return true for constant integer ranges.
10928         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
10929         BIT_IOR_EXPR handling.
10930
10931 2011-08-04  Kai Tietz  <ktietz@redhat.com>
10932
10933         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
10934         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
10935
10936 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
10937
10938         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
10939         pattern def statement, and its access macro.
10940         (NUM_PATTERNS): Set to 5.
10941         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
10942         pattern def statement.
10943         (vect_transform_loop): Likewise.
10944         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
10945         function vect_recog_over_widening_pattern ().
10946         (vect_operation_fits_smaller_type): New function.
10947         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
10948         Likewise.
10949         (vect_pattern_recog_1): Move the code that marks pattern
10950         statements to vect_mark_pattern_stmts (), and call it.  Update
10951         documentation.
10952         * tree-vect-stmts.c (vect_supportable_shift): New function.
10953         (vect_analyze_stmt): Handle pattern def statement.
10954         (new_stmt_vec_info): Initialize pattern def statement.
10955
10956 2011-08-04  Richard Henderson  <rth@redhat.com>
10957
10958         PR target/49964
10959         * config/i386/i386.c (ix86_expand_call): Don't create nested
10960         PARALLELs for TARGET_VZEROUPPER.
10961         (ix86_split_call_vzeroupper): Fix extraction of the original call.
10962         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
10963         recognize nested PARALLELs.
10964         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
10965         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
10966         *sibcall_value_pop_vzeroupper): Likewise.
10967
10968 2011-08-04  Richard Henderson  <rth@redhat.com>
10969
10970         PR middle-end/49968
10971         * calls.c (expand_call): Use fixup_args_size_notes for
10972         emit_stack_restore.
10973         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
10974         in non-standard modes.
10975
10976 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
10977
10978         * gcc.c (self_spec): New variable.
10979         (static_specs): Add self_spec.
10980         (main): Call do_self_spec on "self_spec" specs after reading
10981         user specs files.  Move compare_debug handling right after that.
10982
10983 2011-08-04  Richard Guenther  <rguenther@suse.de>
10984
10985         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
10986         (value_range_nonnegative_p): New function.
10987         (ssa_name_nonnegative_p): Use it.
10988         (value_range_constant_singleton): New function.
10989         (op_with_constant_singleton_value_range): Use it.
10990         (extract_range_from_binary_expr_1): New function, split out from ...
10991         (extract_range_from_binary_expr): ... this.  Remove fallback
10992         constant folding done here.
10993
10994 2011-08-04  Richard Guenther  <rguenther@suse.de>
10995
10996         PR tree-optimization/49806
10997         * tree-vrp.c (op_with_boolean_value_range_p): New function.
10998         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
10999         a new statement for a final conversion to bool.
11000
11001 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
11002
11003         * gengtype-state.c: Include "bconfig.h" if
11004         GENERATOR_FILE is defined, "config.h" otherwise.
11005         * gengtype.c: Likewise.
11006         * gengtype-lex.l: Likewise.
11007         * gengtype-parse.c: Likewise.
11008         * Makefile.in (gengtype-lex.o-warn): New variable.
11009         (plugin_resourcesdir): Likewise.
11010         (plugin_bindir): Likewise.
11011         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
11012         (MOSTLYCLEANFILES): Add gengtype$(exeext).
11013         (native): Depend on gengtype$(exeext) is $enable_plugin
11014         is set to "yes".
11015         (gtype.state): Depend on s-gtype. Use temporary file.
11016         (gengtype-lex.o): New rule.
11017         (gengtype-parse.o): Likewise.
11018         (gengtype-state.o): Likewise.
11019         (gengtype$(exeext)): Likewise.
11020         (install-gengtype): Likewise.
11021         (gengtype.o): Likewise.
11022         (build/gengtype.o): Depend on version.h.
11023         (build/gengtype-state): Depend on double-int.h, version.h,
11024         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
11025         (install-plugin): Depend on install-gengtype.
11026
11027 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
11028
11029         PR middle-end/49905
11030         * tree.h (init_attributes): New prototype.
11031         * attribs.c (init_attributes): No longer static.
11032
11033 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11034
11035         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
11036         maybe_suffix.
11037
11038 2011-08-03   David Li  <davidxl@google.com>
11039
11040         * tree-optimize.c (execute_fixup_cfg): Fix up entry
11041         outgoing edge counts after inlining.
11042
11043 2011-08-03   David Li  <davidxl@google.com>
11044
11045         * profile.c (compute_branch_probabilities): Compute
11046         function frequency after profile annotation.
11047
11048 2011-08-04  Alan Modra  <amodra@gmail.com>
11049
11050         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
11051         use_backchain_to_restore_sp initialisation.
11052         (rs6000_legitimate_offset_address_p): Simplify offset test.
11053
11054 2011-08-03  Richard Henderson  <rth@redhat.com>
11055
11056         * config/spu/spu.md: Use define_c_enum instead of define_constants.
11057         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
11058         (UNSPECV_NOP): New.
11059
11060 2011-08-03  Richard Henderson  <rth@redhat.com>
11061
11062         PR target/34888
11063         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
11064
11065 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
11066
11067         PR tree-optimization/49948
11068         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
11069
11070 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
11071
11072         * config/m32c/m32c.c (class_sizes): Remove.
11073         (reduce_class): Change arguments and return type to reg_class_t.
11074         Change type cc var to HARD_REG_SET. Change type best var to
11075         reg_class_t. Change type best_size var to unsigned int. Remove
11076         initialization class_sizes var. Use reg_class_size array instead
11077         of class_sizes. Use reg_class_contents array instead
11078         of class_contents.
11079
11080 2011-08-03  Richard Guenther  <rguenther@suse.de>
11081
11082         PR middle-end/49958
11083         * fold-const.c (fold_binary_loc): Only associate
11084         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
11085         overflow wraps.
11086
11087 2011-08-03  Alan Modra  <amodra@gmail.com>
11088
11089         PR rtl-optimization/49941
11090         * jump.c (mark_jump_label): Comment.
11091         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
11092         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
11093         (mark_used_flags): Don't mark RETURN.
11094
11095 2011-08-03  Richard Guenther  <rguenther@suse.de>
11096
11097         PR tree-optimization/49938
11098         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
11099         deal with a POLYNOMIAL_CHREC.
11100
11101 2011-08-03  Revital Eres  <revital.eres@linaro.org>
11102
11103         * modulo-sched.c (calculate_stage_count,
11104         calculate_must_precede_follow, get_sched_window,
11105         try_scheduling_node_in_cycle, remove_node_from_ps): Add
11106         declaration.
11107         (update_node_sched_params, set_must_precede_follow, optimize_sc):
11108         New functions.
11109         (reset_sched_times): Call update_node_sched_params.
11110         (sms_schedule): Call optimize_sc.
11111         (get_sched_window): Change function arguments.
11112         (sms_schedule_by_order): Update call to get_sched_window.
11113         Call set_must_precede_follow.
11114         (calculate_stage_count): Add function argument.
11115
11116 2011-08-02  Richard Henderson  <rth@redhat.com>
11117
11118         PR target/49864
11119         PR target/49879
11120         * reg-notes.def (REG_ARGS_SIZE): New.
11121         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
11122         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
11123         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
11124         different stack levels.
11125         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
11126         (maybe_move_args_size_note): New.
11127         (combine_stack_adjustments_for_block): Use it.
11128         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
11129         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
11130         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
11131         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
11132         (cur_cfa): New.
11133         (queued_args_size): Remove.
11134         (add_cfi_args_size): Assert size is non-negative.
11135         (stack_adjust_offset, dwarf2out_args_size): Remove.
11136         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
11137         (notice_args_size, notice_eh_throw): New.
11138         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
11139         (dwarf2out_frame_debug_adjust_cfa): Likewise.
11140         (dwarf2out_frame_debug_cfa_offset): Likewise.
11141         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
11142         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
11143         (change_cfi_row): Don't emit args_size.
11144         (maybe_record_trace_start_abnormal): Split out from ...
11145         (maybe_record_trace_start): Here.  Set args_size_undefined.
11146         (create_trace_edges): Update to match.
11147         (scan_trace): Handle REG_ARGS_SIZE.
11148         (connect_traces): Connect args_size between EH insns.
11149         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
11150         * explow.c (suppress_reg_args_size): New.
11151         (adjust_stack_1): Split out from ...
11152         (adjust_stack): ... here.
11153         (anti_adjust_stack): Use it.
11154         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
11155         * expr.c (mem_autoinc_base): New.
11156         (fixup_args_size_notes): New.
11157         (emit_single_push_insn_1): Rename from emit_single_push_insn.
11158         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
11159         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
11160         * reload1.c (reload_as_needed): Likewise.
11161         * rtl.h (fixup_args_size_notes): Declare.
11162
11163 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
11164
11165         PR bootstrap/49914
11166         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
11167         of abs.
11168         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
11169         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
11170
11171 2011-08-02  Richard Henderson  <rth@redhat.com>
11172
11173         * config/h8300/h8300.c (push, pop): Return the insn.
11174         (h8300_swap_into_er6): Generate correct unwind info.
11175         (h8300_swap_out_of_er6): Likewise.
11176         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
11177         complex cfa expression.
11178         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
11179
11180 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11181
11182         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
11183
11184 2011-08-02  Richard Henderson  <rth@redhat.com>
11185
11186         PR target/49878
11187         * config/h8300/h8300.c (h8300_move_ok): New.
11188         * config/h8300/h8300-protos.h: Declare it.
11189         * config/h8300/h8300.md (P): New mode iterator.
11190         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
11191         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
11192         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
11193         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
11194         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
11195         and pushqi1_h8300hs_normal; use PRE_MODIFY and
11196         register_no_sp_elim_operand.
11197         (*pushhi1_h8300hs_<P>): Similarly.
11198         (pushqi1, pushhi1, pushhi1_h8300): Remove.
11199         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
11200
11201 2011-08-02  Richard Henderson  <rth@redhat.com>
11202
11203         PR target/49881
11204         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
11205
11206 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
11207
11208         * c-parser.c (enum c_parser_prec): New enum, moved from within
11209         c_parser_binary_expression.
11210         (c_parser_binary_expression): Add PREC argument.  Stop parsing
11211         if operator has lower or equal precedence than PREC.
11212         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
11213         callers.
11214         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
11215         Adjust c_finish_omp_atomic caller.
11216         (c_parser_omp_taskyield): New function.
11217         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
11218         (c_parser_omp_clause_name): Handle final and mergeable clauses.
11219         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
11220         functions.
11221         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
11222         and PRAGMA_OMP_CLAUSE_MERGEABLE.
11223         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
11224         (c_parser_omp_clause_reduction): Handle min and max.
11225         * c-typeck.c (c_finish_omp_clauses): Don't complain about
11226         const qualified predetermined vars in firstprivate clause.
11227         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11228         Handle MIN_EXPR and MAX_EXPR.
11229         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
11230         and OMP_CLAUSE_MERGEABLE.
11231         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
11232         and OMP_ATOMIC_CAPTURE_NEW.
11233         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
11234         OMP_CLAUSE_MERGEABLE.
11235         (omp_clause_code_name): Likewise.
11236         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11237         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
11238         and OMP_CLAUSE_MERGEABLE.
11239         (OMP_CLAUSE_FINAL_EXPR): Define.
11240         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
11241         OMP_CLAUSE_MERGEABLE.
11242         (expand_task_call): Likewise.
11243         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
11244         (expand_omp_atomic_fetch_op): Handle cases where old or new
11245         value is needed afterwards.
11246         (expand_omp_atomic): Call expand_omp_atomic_load resp.
11247         expand_omp_atomic_store.
11248         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
11249         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
11250         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
11251         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11252         * tree-nested.c (convert_nonlocal_omp_clauses,
11253         convert_local_omp_clauses): Likewise.
11254         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
11255         OMP_ATOMIC_CAPTURE_NEW): New.
11256         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
11257         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
11258         New inlines.
11259         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
11260         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
11261         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11262
11263 2011-08-02  Kai Tietz  <ktietz@redhat.com>
11264
11265         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
11266         boolean-type.
11267         (ssa_forward_propagate_and_combine): Interprete result of
11268         forward_propagate_comparison.
11269         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
11270         boolean-typed operands for comparisons.
11271
11272 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
11273
11274         * config/avr/libgcc.S: Gather related function in the
11275         same input section.
11276         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
11277         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
11278         references.
11279         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
11280         __udivmodsi4, __divmodsi4, __prologue_saves__,
11281         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
11282         __do_copy_data, __do_clear_bss, __do_global_ctors,
11283         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
11284
11285 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
11286
11287         PR target/47766
11288         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
11289         (stack_protect_test): The pattern compares ptr_mode value.
11290
11291 2011-08-02  Alan Modra  <amodra@gmail.com>
11292
11293         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
11294         note for save_LR_around_toc_setup sequence.
11295
11296 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
11297
11298         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
11299
11300 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
11301             Joseph Myers  <joseph@codesourcery.com>
11302
11303         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
11304         * hwint.c: Include diagnostic-core.h.
11305         (abs_hwi): New.
11306         (gcd): Moved here...
11307         (pos_mul_hwi): New.
11308         (mul_hwi): New.
11309         (least_common_multiple): Moved here...
11310         * hwint.h (gcd): ... from here.
11311         (least_common_multiple): ... from here.
11312         (HOST_WIDE_INT_MIN): New.
11313         (HOST_WIDE_INT_MAX): New.
11314         (abs_hwi): Declared.
11315         (gcd): Declared.
11316         (pos_mul_hwi): Declared.
11317         (mul_hwi): Declared.
11318         (least_common_multiple): Declared.
11319         * omega.c (check_pos_mul): Removed.
11320         (check_mul): Removed.
11321         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
11322         mul_hwi instead of check_mul.
11323
11324 2011-08-01  Richard Henderson  <rth@redhat.com>
11325
11326         PR target/49881
11327         * config/avr/avr.h (PUSH_ROUNDING): New.
11328         * config/avr/avr.md (pushqi1): Rename from *pushqi.
11329         (*pushhi, *pushsi, *pushsf): Remove.
11330         (MPUSH): New mode iterator.
11331         (push<MPUSH>1): New expander.
11332
11333 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
11334
11335         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
11336         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
11337         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
11338         mmix_preferred_output_reload_class): Remove.
11339         * config/mmix/mmix.c (mmix_preferred_reload_class,
11340         mmix_preferred_output_reload_class): Make static. Change rclass
11341         argument and return type to reg_class_t.
11342         (TARGET_PREFERRED_RELOAD_CLASS,
11343         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11344
11345 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11346
11347         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
11348         handling.
11349
11350 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
11351
11352         PR target/47766
11353         * config/i386/i386.md (PTR): New.
11354         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
11355         (stack_protect_test): Likewise.
11356         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
11357         (stack_tls_protect_set_<mode>): Likewise.
11358         (stack_tls_protect_test_<mode>): Likewise.
11359
11360 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
11361
11362         PR target/49927
11363         * config/i386/i386.c (ix86_address_subreg_operand): New.
11364         (ix86_decompose_address): Use ix86_address_subreg_operand.
11365         (ix86_legitimate_address_p): Do not assert that subregs satisfy
11366         register_no_elim_operand in DImode.
11367
11368 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
11369
11370         PR tree-optimization/49926
11371         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
11372         in a chain doesn't have uses both inside and outside the loop.
11373
11374 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
11375
11376         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
11377         * config/avr/avr-devices.c (avr_mcu_types): Use it.
11378         * config/avr/avr-mcus.def (AVR_MCU): Use it.
11379         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
11380         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
11381         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
11382         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
11383         to detect if XJMP must not be skipped.
11384
11385 2011-08-02  Alan Modra  <amodra@gmail.com>
11386
11387         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
11388         Delete.
11389         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
11390         (rs6000_emit_prologue): Don't prematurely return when
11391         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
11392         save_toc_in_prologue case.
11393         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
11394         calls_alloca.
11395
11396 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
11397
11398         * config/avr/avr-devices.c: Delete SVN property svn:executable.
11399         * config/avr/predicates.md: Ditto.
11400         * config/avr/driver-avr.c: Ditto.
11401         * config/avr/genopt.sh: Set SVN property svn:executable to *.
11402
11403 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
11404
11405         * calls.c (emit_library_call_value_1): Declare size only if
11406         BLOCK_REG_PADDING is defined.
11407
11408 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
11409
11410         PR target/49547
11411         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
11412         (x86_64-*-*): Likewise.
11413         * config/i386/i386.opt (mlzcnt): New.
11414         * config/i386/abmintrin.h: File removed.
11415         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
11416         * config/i386/lzcntintrin.h: ... here.  New file.
11417         (__lzcnt): Rename to ...
11418         (__lzcnt32): ... this.
11419         * config/i386/bmiintrin.h (head): Update copyright year.
11420         (__lzcnt_u16): Removed.
11421         (__lzcnt_u32): Likewise.
11422         (__lzcnt_u64): Likewise.
11423         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
11424         is defined, remove abmintrin.h.
11425         * config/i386/cpuid.h (bit_LZCNT): New.
11426         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
11427         LZCNT feature.
11428         * config/i386/i386-c.c (ix86_target_macros_internal): Define
11429         __LZCNT__ if needed.
11430         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
11431         (ix86_option_override_internal): Handle LZCNT option.
11432         (ix86_valid_target_attribute_inner_p): Likewise.
11433         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
11434         * config/i386/i386.h (TARGET_LZCNT): New.
11435         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
11436         * config/i386/i386.md (clz<mode>2): Update insn constraint.
11437         (clz<mode>2_lzcnt): Likewise.
11438         * doc/invoke.texi: Mention -mlzcnt option.
11439         * doc/extend.texi: Likewise.
11440
11441 2011-08-01  Julian Brown  <julian@codesourcery.com>
11442
11443         * configure.ac (fixed-point): Add ARM support.
11444         * configure: Regenerate.
11445         * config/arm/arm.c (arm_fixed_mode_set): New struct.
11446         (arm_set_fixed_optab_libfunc): New.
11447         (arm_set_fixed_conv_libfunc): New.
11448         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
11449         ARM-specific names.
11450         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
11451         return values in SImode.
11452         (arm_return_in_msb): Return fixed-point types in the msb.
11453         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
11454         upwards.
11455         (arm_scalar_mode_supported_p): Support fixed-point modes.
11456         (arm_vector_mode_supported_p): Support vector fixed-point modes.
11457         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
11458         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
11459         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
11460         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
11461         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
11462         New mode iterators.
11463         (qaddsub_suf): New mode attribute.
11464         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
11465         vector modes.
11466         * config/arm/predicates.md (sat_shift_operator): New predicate.
11467         * config/arm/arm-fixed.md: New.
11468         * config/arm/arm.md: Include arm-fixed.md.
11469         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
11470
11471 2011-08-01  Julian Brown  <julian@codesourcery.com>
11472
11473         * calls.c (emit_library_call_value_1): Support padding for libcall
11474         arguments and return values.
11475         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
11476         downwards in big-endian mode.
11477
11478 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11479
11480         PR debug/49887
11481         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
11482         * config/sol2-protos.h: Likewise.
11483         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
11484         solaris_code_end.
11485         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
11486         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
11487         solaris_file_end.
11488         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
11489
11490 2011-08-01  Julian Brown  <julian@codesourcery.com>
11491
11492         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
11493
11494 2011-08-01  Julian Brown  <julian@codesourcery.com>
11495
11496         * final.c (output_addr_const): Print fixed-point constants as
11497         decimal not hex.
11498
11499 2011-08-01  Richard Guenther  <rguenther@suse.de>
11500
11501         * stor-layout.c (initialize_sizetypes): Properly sign-extend
11502         bitsiztype TYPE_MAX_VALUE.
11503
11504 2011-08-01  Julian Brown  <julian@codesourcery.com>
11505
11506         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
11507         comparison helpers.
11508
11509 2011-07-31  Richard Henderson  <rth@redhat.com>
11510
11511         * config/h8300/crti.asm: Add flags to .section directive.
11512         * config/h8300/crtn.asm: Likewise.
11513
11514 2011-07-31  Richard Henderson  <rth@redhat.com>
11515
11516         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
11517         * tree.c (build_common_tree_nodes): Likewise.
11518
11519 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
11520
11521         PR target/49880
11522         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
11523         (divsi3_i1): Likewise.
11524
11525 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11526
11527         PR tree-optimization/49749
11528         * tree-ssa-reassoc.c (get_rank): New forward declaration.
11529         (PHI_LOOP_BIAS): New macro.
11530         (phi_rank): New function.
11531         (loop_carried_phi): Likewise.
11532         (propagate_rank): Likewise.
11533         (get_rank): Add calls to phi_rank and propagate_rank.
11534
11535 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
11536
11537         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
11538         of TARGET_64BIT.
11539         (PTRDIFF_TYPE): Likewise.
11540
11541 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
11542
11543         PR target/49920
11544         * config/i386/i386.md (strset): Do not expand strset_singleop
11545         when %eax or $edi are fixed.
11546         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
11547         (*strsetsi_1): Ditto.
11548         (*strsethi_1): Ditto.
11549         (*strsetqi_1): Ditto.
11550         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
11551         (*rep_stossi): Ditto.
11552         (*rep_stosqi): Ditto.
11553         (*strlenqi_1): Ditto.
11554         (cmpstrnsi): Also fail when %ecx is fixed.
11555         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
11556         (*cmpstrnqi_1): Ditto.
11557         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
11558         (*strmovsi_1): Ditto.
11559         (*strmovhi_1): Ditto.
11560         (*strmovqi_1): Ditto.
11561         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
11562         (*rep_movsi): Ditto.
11563         (*rep_movqi): Ditto.
11564
11565 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
11566
11567         PR target/47908
11568         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
11569         Disable instruction scheduling for non-ColdFire targets.
11570         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
11571
11572 2011-07-31  Revital Eres  <revital.eres@linaro.org>
11573
11574         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
11575         of anti-dep edge from a branch.
11576         (add_cross_iteration_register_deps): Create anti-dep edge from
11577         a branch.
11578
11579 2011-07-31  Revital Eres  <revital.eres@linaro.org>
11580
11581         * modulo-sched.c: Change comment.
11582         (reset_sched_times): Fix print message.
11583         (print_partial_schedule): Add print info.
11584
11585 2011-07-31  Tom de Vries  <tom@codesourcery.com>
11586
11587         PR middle-end/43513
11588         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
11589         get_object_alignment and TYPE_ALIGN.
11590
11591 2011-07-30  Tom de Vries  <tom@codesourcery.com>
11592
11593         PR middle-end/43513
11594         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
11595         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
11596
11597 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11598
11599         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
11600         <sys/sbd.h>.
11601         (cpu_types): New array.
11602         (cputype): New function.
11603         (host_detect_local_cpu): Only define buf, f if !__sgi__.
11604         Use scaninvent instead of /proc/cpuinfo if __sgi__.
11605         * config.host: Also use driver-native.o, mips/x-native on
11606         mips-sgi-irix*.
11607         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
11608         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
11609         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
11610
11611 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
11612
11613         PR middle-end/49897
11614         PR middle-end/49898
11615         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
11616         in nested parallel and outer is a gimple_reg, mark it as addressable
11617         and set its bit in task_shared_vars bitmap too.
11618
11619 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
11620
11621         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
11622
11623 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11624
11625         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
11626         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
11627         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
11628         AMASK_LOCKPFTCHOK): Define.
11629         (host_detect_local_cpu): Remove buf, f, cpu_names.
11630         Define cpu_types, implver, amask.
11631         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
11632         native CPU.
11633         * config.host: Also use driver-alpha.o, alpha/x-alpha on
11634         alpha*-dec-osf*.
11635         * config/alpha/osf5.h [__alpha__ || __alpha]
11636         (host_detect_local_cpu): Declare.
11637         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
11638         (DRIVER_SELF_SPECS): Define.
11639
11640 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
11641
11642         PR target/47715
11643         * config/i386/i386.md (*load_tp_x32): New.
11644         (*load_tp_x32_zext): Ditto.
11645         (*add_tp_x32): Ditto.
11646         (*add_tp_x32_zext): Ditto.
11647         (*load_tp_<mode>): Disable for TARGET_X32 targets.
11648         (*add_tp_<mode>): Ditto.
11649         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
11650         ptr_mode and convert to Pmode if needed.
11651
11652 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
11653
11654         PR target/49687
11655         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
11656         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
11657         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
11658         Add X to register footprint: Clobber r26/r27.
11659
11660 2011-07-29  Richard Guenther  <rguenther@suse.de>
11661
11662         * builtins.c (fold_builtin_signbit): Build the comparison
11663         with a proper type.
11664
11665 2011-07-29  Richard Guenther  <rguenther@suse.de>
11666
11667         PR tree-optimization/49893
11668         * tree-predcom.c (suitable_reference_p): Volatile references
11669         are not suitable.
11670
11671 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
11672
11673         PR target/49313
11674         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
11675         (__ctzsi2): Result for 0 may be undefined.
11676         (__ctzhi2): Result for 0 may be undefined.
11677         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
11678         (__popcountsi2): Ditto. And don't clobber r26.
11679         (__popcountdi2): Ditto. And don't clobber r27.
11680         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
11681         (parityhi2): New expand.
11682         (paritysi2): New expand.
11683         (popcounthi2): New expand.
11684         (popcountsi2): New expand.
11685         (clzhi2): New expand.
11686         (clzsi2): New expand.
11687         (ctzhi2): New expand.
11688         (ctzsi2): New expand.
11689         (ffshi2): New expand.
11690         (ffssi2): New expand.
11691         (copysignsf3): New insn.
11692         (bswapsi2): New expand.
11693         (*parityhi2.libgcc): New insn.
11694         (*parityqihi2.libgcc): New insn.
11695         (*paritysihi2.libgcc): New insn.
11696         (*popcounthi2.libgcc): New insn.
11697         (*popcountsi2.libgcc): New insn.
11698         (*popcountqi2.libgcc): New insn.
11699         (*popcountqihi2.libgcc): New insn-and-split.
11700         (*clzhi2.libgcc): New insn.
11701         (*clzsihi2.libgcc): New insn.
11702         (*ctzhi2.libgcc): New insn.
11703         (*ctzsihi2.libgcc): New insn.
11704         (*ffshi2.libgcc): New insn.
11705         (*ffssihi2.libgcc): New insn.
11706         (*bswapsi2.libgcc): New insn.
11707
11708 2011-07-29  Richard Guenther  <rguenther@suse.de>
11709
11710         * tree-vrp.c (get_value_range): Only set parameter default
11711         definitions to varying, leave others at undefined.
11712         (extract_range_from_binary_expr): Fix undefined handling.
11713         (vrp_visit_phi_node): Handle merged undefined state.
11714
11715 2011-07-29  Wei Guozhi  <carrot@google.com>
11716
11717         PR rtl-optimization/49799
11718         * combine.c (make_compound_operation): Check if the bit field is valid
11719         before change it to bit field extraction.
11720
11721 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
11722
11723         PR rtl-optimization/49891
11724         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
11725         newly created returnjumps.
11726
11727 2011-07-28  DJ Delorie  <dj@redhat.com>
11728
11729         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
11730         local frame in a naked function, and produce a suitable error for
11731         that specific case.
11732
11733         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
11734         registers to be reloaded in HI classes when the target is HI.
11735
11736 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
11737
11738         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
11739         bound_one, bound_two.
11740
11741 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
11742
11743         PR middle-end/48648
11744         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
11745         CLAST assignments.
11746         (translate_clast): Same.
11747         (translate_clast_assignment): New.
11748
11749 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
11750
11751         PR tree-optimization/49876
11752         * sese.c (rename_uses): Do not return false on gloog_error: set
11753         the new_expr to integer_zero_node and continue code generation.
11754         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
11755
11756 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
11757
11758         PR debug/49846
11759         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
11760         arguments also check if they aren't initialized with a MODE_INT
11761         mode of the same size.
11762
11763 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
11764
11765         * expr.c (get_bit_range): Handle *MEM_REF's.
11766
11767 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
11768
11769         * rtlanal.c (tablejump_p): False for returns.
11770         * reorg.c (first_active_target_insn): New static function.
11771         (find_end_label): Set JUMP_LABEL for a new returnjump.
11772         (optimize_skip, get_jump_flags, rare_destination,
11773         mostly_true_jump, get_branch_condition,
11774         steal_delay_list_from_target, own_thread_p,
11775         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
11776         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
11777         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
11778         * jump.c (delete_related_insns): Likewise.
11779         (jump_to_label_p): New function.
11780         (redirect_target): New static function.
11781         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
11782         (redirect_jump_1): Assert that the new label is nonnull.
11783         (redirect_jump): Likewise.
11784         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
11785         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
11786         exit block.
11787         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
11788         changed.  Ensure that the right label is passed to redirect_jump.
11789         * function.c (emit_return_into_block,
11790         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
11791         ret_rtx in their JUMP_LABEL.
11792         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
11793         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
11794         pass ret_rtx as label.
11795         * cfglayout.c (fixup_reorder_chain): Use
11796         force_nonfallthru_and_redirect rather than force_nonfallthru.
11797         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
11798         * rtl.h (ANY_RETURN_P): New macro.
11799         (jump_to_label_p): Declare.
11800         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
11801         JUMP_LABELs.
11802         (mark_target_live_regs): Likewise.
11803         * basic-block.h (force_nonfallthru_and_redirect): Declare.
11804         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
11805         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
11806         alpha_tablejump_best_label): Remove functions.
11807         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
11808         alpha_tablejump_best_label): Remove declarations.
11809         * config/sh/sh.c (barrier_align, split_branches): Adjust for
11810         ret_rtx in JUMP_LABELs.
11811         * config/arm/arm.c (is_jump_table): Likewise.
11812
11813 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
11814
11815         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
11816         special predicate.  Remove explicit mode checks.
11817
11818 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
11819
11820         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
11821         DW_AT_data_member_location containing just DW_OP_plus_uconst.
11822
11823         PR debug/49871
11824         * dwarf2out.c (size_of_die, value_format, output_die): Use
11825         DW_FORM_udata instead of DW_FORM_data[48] for
11826         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
11827
11828 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
11829
11830         * config/i386/i386.md (*tls_global_dynamic_64): Update
11831         length attribute.
11832
11833 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
11834
11835         PR target/47715
11836         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
11837         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
11838         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
11839         (tls_dynamic_gnu2_64): Ditto.
11840         (*tls_dynamic_gnu2_lea_64): Ditto.
11841         (*tls_dynamic_gnu2_call_64): Ditto.
11842         (*tls_dynamic_gnu2_combine_64): Ditto.
11843
11844 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
11845
11846         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
11847
11848 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
11849
11850         PR target/47364
11851         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
11852
11853 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11854
11855         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
11856         before the core constraints. Adjust attributes.
11857         ("*thumb2_movdf_vfp"): Likewise.
11858
11859 2011-07-28  Kai Tietz  <ktietz@redhat.com>
11860
11861         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
11862         (simplify_truth_ops_using_ranges): Likewise.
11863         (build_assert_expr_for): Likewise.
11864         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
11865         and handle BIT_NOT_EXPR for truth-operation.
11866
11867 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
11868
11869         PR target/49313
11870         Undo r176835 from trunk
11871         2011-07-27  Georg-Johann Lay
11872
11873 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
11874
11875         PR target/49687
11876         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
11877         Add _muluhisi3, _mulshisi3, _usmulhisi3.
11878         * config/avr/libgcc.S (__mulsi3): Rewrite.
11879         (__mulhisi3): Rewrite.
11880         (__umulhisi3): Rewrite.
11881         (__usmulhisi3): New.
11882         (__muluhisi3): New.
11883         (__mulshisi3): New.
11884         (__mulohisi3): New.
11885         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
11886         declare.
11887         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
11888         (pseudo_register_or_const_int_operand): New.
11889         (combine_pseudo_register_operand): New.
11890         (u16_operand): New.
11891         (s16_operand): New.
11892         (o16_operand): New.
11893         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
11894         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
11895         (any_extend, any_extend2): New code iterators.
11896         (extend_prefix): New code attribute.
11897         (mulsi3): Rewrite. Turn insn to expander.
11898         (mulhisi3): Ditto.
11899         (umulhisi3): Ditto.
11900         (usmulhisi3): New expander.
11901         (*mulsi3): New insn-and-split.
11902         (mulu<mode>si3): New insn-and-split.
11903         (muls<mode>si3): New insn-and-split.
11904         (mulohisi3): New insn-and-split.
11905         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
11906         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
11907         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
11908         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
11909         insn-and-split.
11910         (*mulsi3_call): Rewrite.
11911         (*mulhisi3_call): Rewrite.
11912         (*umulhisi3_call): Rewrite.
11913         (*usmulhisi3_call): New insn.
11914         (*muluhisi3_call): New insn.
11915         (*mulshisi3_call): New insn.
11916         (*mulohisi3_call): New insn.
11917         (extendqihi2): Use combine_pseudo_register_operand as predicate
11918         for operand 1.
11919         (extendqisi2): Ditto.
11920         (zero_extendqihi2): Ditto.
11921         (zero_extendqisi2): Ditto.
11922         (zero_extendhisi2): Ditto.
11923         (extendhisi2): Ditto. Don't early-clobber operand 0.
11924
11925 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
11926
11927         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
11928
11929 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
11930
11931         PR tree-optimization/49471
11932         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
11933         iv only when the largest type is unsigned.  Do not call
11934         lang_hooks.types.type_for_size.
11935
11936 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
11937
11938         PR middle-end/45450
11939         * graphite-poly.c (apply_poly_transforms): Disable legality check
11940         after an openscop read.
11941
11942 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
11943
11944         PR middle-end/47691
11945         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
11946         copy_bb_and_scalar_dependences.
11947         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
11948         (graphite_copy_stmts_from_block): Update call to rename_uses.
11949         (copy_bb_and_scalar_dependences): Update call to
11950         graphite_copy_stmts_from_block.
11951         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
11952
11953 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
11954
11955         PR target/49313
11956         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
11957         (__ctzsi2): Result for 0 may be undefined.
11958         (__ctzhi2): Result for 0 may be undefined.
11959         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
11960         (__popcountsi2): Ditto. And don't clobber r26.
11961         (__popcountdi2): Ditto. And don't clobber r27.
11962         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
11963         (parityhi2): New expand.
11964         (paritysi2): New expand.
11965         (popcounthi2): New expand.
11966         (popcountsi2): New expand.
11967         (clzhi2): New expand.
11968         (clzsi2): New expand.
11969         (ctzhi2): New expand.
11970         (ctzsi2): New expand.
11971         (ffshi2): New expand.
11972         (ffssi2): New expand.
11973         (copysignsf3): New insn.
11974         (bswapsi2): New expand.
11975         (*parityhi2.libgcc): New insn.
11976         (*parityqihi2.libgcc): New insn.
11977         (*paritysihi2.libgcc): New insn.
11978         (*popcounthi2.libgcc): New insn.
11979         (*popcountsi2.libgcc): New insn.
11980         (*popcountqi2.libgcc): New insn.
11981         (*popcountqihi2.libgcc): New insn-and-split.
11982         (*clzhi2.libgcc): New insn.
11983         (*clzsihi2.libgcc): New insn.
11984         (*ctzhi2.libgcc): New insn.
11985         (*ctzsihi2.libgcc): New insn.
11986         (*ffshi2.libgcc): New insn.
11987         (*ffssihi2.libgcc): New insn.
11988         (*bswapsi2.libgcc): New insn.
11989
11990 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
11991
11992         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
11993         the mode of symbolic_opreand RTXes.
11994
11995 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
11996
11997         * config/i386/predicates.md (x86_64_movabs_operand): Return false
11998         for pic_32bit_operand RTXes.
11999         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
12000         in DImode.
12001
12002 2011-07-27  Kai Tietz  <ktietz@redhat.com>
12003
12004         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
12005         for 32-bit, too.
12006         (ix86_handle_abi_attribute): Allow function attributes
12007         ms_abi/sysv_abi in 32-bit mode, too.
12008         * doc/extend.texi: Adjust attribute documentation.
12009
12010         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
12011         expression handling.
12012         (and_var_with_comparison_1): Likewise.
12013
12014 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
12015
12016         * params.h (ALLOW_STORE_DATA_RACES): New.
12017         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
12018         * Makefile.in (expr.o): Depend on PARAMS_H.
12019         * machmode.h (get_best_mode): Add argument.
12020         * fold-const.c (optimize_bit_field_compare): Add argument to
12021         get_best_mode.
12022         (fold_truthop): Same.
12023         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
12024         * expr.c (emit_group_store): Same.
12025         (copy_blkmode_from_reg): Same.
12026         (write_complex_part): Same.
12027         (optimize_bitfield_assignment_op): Add argument.
12028         Add argument to get_best_mode.
12029         (get_bit_range): New.
12030         (expand_assignment): Calculate maxbits and pass it down accordingly.
12031         (store_field): New argument.
12032         (expand_expr_real_2): New argument to store_field.  Include params.h.
12033         * expr.h (store_bit_field): New argument.
12034         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
12035         into account maxbits.
12036         * calls.c (store_unaligned_arguments_into_pseudos): New argument
12037         to store_bit_field.
12038         * expmed.c (store_bit_field_1): New argument.  Use it.
12039         (store_bit_field): Same.
12040         (store_fixed_bit_field): Same.
12041         (store_split_bit_field): Same.
12042         (extract_bit_field_1): Pass new argument to get_best_mode.
12043         (extract_bit_field): Same.
12044         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
12045         * doc/invoke.texi: Document parameter allow-store-data-races.
12046
12047 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
12048
12049         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
12050
12051 2011-07-27  Kai Tietz  <ktietz@redhat.com>
12052
12053         * tree-vrp.c (extract_range_from_binary_expr): Remove
12054         TRUTH-binary cases and add new bitwise-cases.
12055         (extract_range_from_assignment): Likewise.
12056         (register_edge_assert_for_1): Likeiwise.
12057         (register_edge_assert_for): Likewise.
12058         (simplify_truth_ops_using_ranges): Likewise.
12059         (simplify_stmt_using_ranges): Likewise.
12060
12061 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
12062
12063         PR target/47372
12064         * config/i386/i386.c (ix86_delegitimize_address): Call
12065         simplify_gen_subreg for PIC with mode of x only if modes of
12066         x and orig_x are different.
12067
12068 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
12069
12070         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
12071         to GC allocated copy of the string.
12072         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
12073         before .debug_line, not after it.
12074
12075 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
12076
12077         PR middle-end/47046
12078         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
12079         evolution_function_is_affine_p on CHREC_RIGHT.
12080
12081 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
12082
12083         * tree-data-ref.c (max_stmt_executions_tree): Do not call
12084         lang_hooks.types.type_for_size.
12085
12086 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
12087
12088         PR middle-end/47653
12089         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
12090         loops using wrapping semantics.
12091
12092 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
12093
12094         PR middle-end/48805
12095         * tree-scalar-evolution.c (instantiate_scev_r): Return
12096         chrec_dont_know for ADDR_EXPR.
12097
12098 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
12099             H.J. Lu  <hongjiu.lu@intel.com>
12100
12101         PR target/47369
12102         PR target/49853
12103         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
12104         if legitimize_tls_address returned operand in wrong mode. Allow
12105         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
12106         if legitimize_pic_address returned operand in wrong mode.
12107
12108 2011-07-26  Martin Jambor  <mjambor@suse.cz>
12109
12110         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
12111         return false for invariants.
12112
12113 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
12114
12115         * config/i386/i386.md (add->lea splitter): Implement using SWI
12116         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
12117         (add->lea zext splitter): Change operand 2 predicate to
12118         x86_64_nonmemory_operand.
12119
12120 2011-07-26  Richard Guenther  <rguenther@suse.de>
12121
12122         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
12123         frequency makes everything hot.
12124
12125 2011-07-26  Richard Guenther  <rguenther@suse.de>
12126
12127         PR tree-optimization/49840
12128         * tree-vrp.c (range_fits_type_p): Properly handle full
12129         double-int precision.
12130
12131 2011-07-26  Martin Jambor  <mjambor@suse.cz>
12132
12133         PR bootstrap/49786
12134         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
12135         counts.
12136         (update_specialized_profile): Likewise.
12137
12138 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
12139             H.J. Lu  <hongjiu.lu@intel.com>
12140
12141         PR target/47381
12142         PR target/49832
12143         PR target/49833
12144         * config/i386/i386.md (i): Change SImode attribute to "e".
12145         (g): Change SImode attribute to "rme".
12146         (di): Change SImode attribute to "nF".
12147         (general_operand): Change SImode attribute to x86_64_general_operand.
12148         (general_szext_operand): Change SImode attribute to
12149         x86_64_szext_general_operand.
12150         (immediate_operand): Change SImode attribute to
12151         x86_64_immediate_operand.
12152         (nonmemory_operand): Change SImode attribute to
12153         x86_64_nonmemory_operand.
12154         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
12155         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
12156         (*lea_1): Use SWI48 mode iterator.
12157         (*lea_1_zext): New insn pattern.
12158         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
12159         (*bt<mode>): Ditto.
12160         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
12161         Update operand constraints.
12162         (addsi_1_zext): Ditto.
12163         (*add<mode>2): Ditto.
12164         (*addsi_3_zext): Ditto.
12165         (*subsi_1_zext): Ditto.
12166         (*subsi_2_zext): Ditto.
12167         (*subsi_3_zext): Ditto.
12168         (*addsi3_carry_zext): Ditto.
12169         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
12170         (*mulsi3_1_zext): Ditto.
12171         (*andsi_1): Ditto.
12172         (*andsi_1_zext): Ditto.
12173         (*andsi_2_zext): Ditto.
12174         (*<any_or:code>si_1_zext): Ditto.
12175         (*<any_or:code>si_2_zext): Ditto.
12176         (*test<mode>_1): Use <general_operand> predicate for operand 1.
12177         (*and<mode>_2): Ditto.
12178         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
12179         (add->lea splitter): Check operand modes in insn constraint.  Extend
12180         operands less than SImode wide to SImode.
12181         (add->lea zext splitter): Do not extend input operands to DImode.
12182         (*lea_general_1): Handle only QImode and HImode operands.
12183         (*lea_general_2): Ditto.
12184         (*lea_general_3): Ditto.
12185         (*lea_general_1_zext): Remove.
12186         (*lea_general_2_zext): Ditto.
12187         (*lea_general_3_zext): Ditto.
12188         (*lea_general_4): Check operand modes in insn constraint.  Extend
12189         operands less than SImode wide to SImode.
12190         (ashift->lea splitter): Ditto.
12191         * config/i386/i386.c (ix86_print_operand_address): Print address
12192         registers with 'q' modifier on 64bit targets.
12193         * config/i386/predicates.md (pic_32bit_opreand): Define as special
12194         predicate.  Reject non-SI and non-DI modes.
12195
12196 2011-07-25  Andrew Pinski  <apinski@cavium.com>
12197
12198         PR tree-opt/49671
12199         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
12200         TREE_THIS_NOTRAP into the inner most MEM_REF.
12201         Always copy TREE_THIS_VOLATILE.
12202         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
12203         arguments are not volatile references.
12204
12205 2011-07-25  Richard Henderson  <rth@redhat.com>
12206
12207         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
12208         * final.c (final_scan_insn): Don't test for it.
12209         (rest_of_clean_state): Likewise.
12210
12211 2011-07-25  Richard Henderson  <rth@redhat.com>
12212
12213         PR debug/49841
12214         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
12215         (emit_frame_save): Likewise.
12216         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
12217         insn onto a dummy blockage insn after the join label.
12218
12219 2011-07-25  Richard Henderson  <rth@redhat.com>
12220
12221         * dwarf2cfi.c (dw_trace_info): Add ID member.
12222         (get_trace_index): Remove.  Change users to use ID member.
12223         (before_next_cfi_note): New.
12224         (connect_traces): Remove unreachable traces before the main loop.
12225         Look across one trace and generate remember/restore_state if needed.
12226
12227 2011-07-25  Richard Henderson  <rth@redhat.com>
12228
12229         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
12230
12231 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
12232
12233         * genattr.c (write_upcase, gen_attr <enum definition writing>):
12234         Move to ...
12235         * genattr-common.c ... here.
12236         (main): Call gen_attr.
12237         * optc-gen.awk: Make generated program include insn-attr-common.h .
12238         * Makefile.in (oprions.o): Depend on insn-attr-common.h
12239
12240 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
12241
12242         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
12243         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
12244         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
12245         m32c_print_operand, m32c_print_operand_address): Remove.
12246         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
12247         Change return type to bool. Change argument type to bool.
12248         (m32c_print_operand, m32c_print_operand_address): Make static.
12249         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
12250         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12251
12252 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12253
12254         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
12255         attributes): Document mmap.
12256
12257 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
12258
12259         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
12260         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
12261         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
12262         mmix_print_operand, mmix_print_operand_address): Remove.
12263         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
12264         Change return type to bool. Change argument type to bool.
12265         (mmix_print_operand, mmix_print_operand_address): Make static.
12266         (mmix_intval, mmix_output_condition): Change 'x' argument type
12267         to const_rtx.
12268         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
12269         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12270
12271 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
12272
12273         PR target/39386
12274         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
12275         shift counter for x << x and x >> x shifts.
12276
12277 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12278
12279         PR target/47124
12280         * config.gcc: Reject *-*-solaris2 configuration.
12281
12282 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
12283
12284         PR tree-optimization/49809
12285         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
12286         gimple_get_lhs instead of gimple_assign_lhs.
12287
12288 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12289
12290         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
12291
12292 2011-07-25  Richard Guenther  <rguenther@suse.de>
12293
12294         PR tree-optimization/49822
12295         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
12296         more.  Make sure to preserve stmts with side-effects.  Properly
12297         handle virtual defs, follow a longer def chain.
12298
12299 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
12300
12301         PR plugins/45348
12302         PR plugins/48425
12303         PR plugins/46577
12304         * Makefile.in: Do not flatten c-family directory when installing
12305         plugin headers.
12306
12307 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
12308
12309         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
12310         original nodes if we are dealing with virtual clones.
12311
12312 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
12313
12314         * common/config/c6x/c6x-common.c: New file.
12315
12316 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
12317
12318         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
12319
12320 2011-07-25  Richard Guenther  <rguenther@suse.de>
12321
12322         PR tree-optimization/49715
12323         * tree-vrp.c: Include expr.h and optabs.h.
12324         (range_fits_type_): New function.
12325         (simplify_float_conversion_using_ranges): Likewise.
12326         (simplify_stmt_using_ranges): Call it.
12327         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
12328         * optabs.c (can_float_p): Export.
12329         * optabs.h (can_float_p): Declare.
12330
12331 2011-07-25  Richard Guenther  <rguenther@suse.de>
12332
12333         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
12334         (get_value_range): For out-of-range SSA names or names created
12335         after propagation return a read-only varying range.
12336         (dump_all_value_ranges): Adjust.
12337         (vrp_initialize): Likewise.
12338         (vrp_finalize): Likewise.
12339
12340 2011-07-24  Richard Henderson  <rth@redhat.com>
12341
12342         PR debug/49831
12343         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
12344         them entirely.
12345
12346 2011-07-24  Richard Henderson  <rth@redhat.com>
12347
12348         PR debug/49825
12349         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
12350         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
12351
12352 2011-07-24  Richard Henderson  <rth@redhat.com>
12353
12354         PR debug/49827
12355         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
12356
12357 2011-07-24  Richard Henderson  <rth@redhat.com>
12358
12359         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
12360         Zero args_size for abnormal edges.  Adjust all callers.
12361
12362 2011-07-24  Richard Henderson  <rth@redhat.com>
12363
12364         PR debug/49825
12365         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
12366
12367 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12368
12369         PR bootstrap/49835
12370         * collect2.c (demangle_flag): Removed.
12371
12372 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
12373
12374         * configure.ac (demangler_in_ld): Default to yes.
12375         * configure: Regenerated.
12376         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
12377         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
12378         --no-demangle options straight through to ld.  When
12379         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
12380         way that has the intended effect on Windows.
12381
12382 2011-07-23  Richard Henderson  <rth@redhat.com>
12383
12384         * dwarf2cfi.c: Include basic-block.h.
12385         (dw_label_info): Remove.
12386         (trace_work_list, trace_index): New.
12387         (remember_row, emit_cfa_remember): Remove.
12388         (dw_trace_info_hash, dw_trace_info_eq): New.
12389         (get_trace_index, get_trace_info): New.
12390         (save_point_p): New.
12391         (free_cfi_row): Remove.
12392         (add_cfi): Do not emit DW_CFA_remember_state.
12393         (cfa_row_equal_p): New.
12394         (barrier_args_size): Remove.
12395         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
12396         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
12397         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
12398         (dwarf2out_cfi_begin_epilogue): Remove.
12399         (dwarf2out_frame_debug_restore_state): Remove.
12400         (connect_traces, create_pseudo_cfg): New.
12401         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
12402         * Makefile.in (dwarf2cfi.o): Update.
12403
12404 2011-07-23  Richard Henderson  <rth@redhat.com>
12405
12406         * dwarf2cfi.c (dw_trace_info): New.
12407         (dw_label_info): New.
12408         (cie_return_save): New.
12409         (cur_trace): New.
12410         (queued_args_size): Rename from args_size.  Update all users.
12411         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
12412         (def_cfa_1): Use cur_trace instead of cfa_*.
12413         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
12414         (clobbers_queued_reg_save, reg_saved_in): Likewise.
12415         (dwarf2out_frame_debug_expr): Likewise.
12416         (create_cie_data): Split out from ...
12417         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
12418
12419 2011-07-23  Richard Henderson  <rth@redhat.com>
12420
12421         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
12422         Update all users to match.
12423         (execute_dwarf2_frame): Free reg_saved_in_data.
12424
12425 2011-07-23  Richard Henderson  <rth@redhat.com>
12426
12427         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
12428         (queued_reg_saves): Don't GTY.  Change to a VEC.
12429         (queue_reg_save): Update to match.
12430         (dwarf2out_flush_queued_reg_saves): Likewise.
12431         (clobbers_queued_reg_save): Likewise.
12432         (reg_saved_in): Likewise.
12433         (execute_dwarf2_frame): Free queued_reg_saves.
12434
12435 2011-07-23  Richard Henderson  <rth@redhat.com>
12436
12437         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
12438
12439 2011-07-23  Richard Henderson  <rth@redhat.com>
12440
12441         * dwarf2cfi.c (add_cfi_args_size): Split out from...
12442         (dwarf2out_args_size): ... here.
12443         (add_cfi_restore): Split out from ...
12444         (dwarf2out_frame_debug_cfa_restore): ... here.
12445         (def_cfa_0): Split out from ...
12446         (def_cfa_1): ... here.
12447         (cfi_oprnd_equal_p, cfi_equal_p): New.
12448         (change_cfi_row): New.
12449         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
12450         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
12451         (output_cfis): Remove.
12452         * dwarf2out.c (output_fde): Simplify output_cfi loop.
12453         (dwarf2out_switch_text_section): Don't call output_cfis.
12454         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
12455         * dwarf2out.h: Update decls.
12456         (enum dw_val_class): Add dw_val_class_none.
12457
12458 2011-07-23  Richard Henderson  <rth@redhat.com>
12459
12460         * dwarf2cfi.c (update_row_reg_save): New.
12461         (dwarf2out_frame_debug_cfa_expression): Use it.
12462         (dwarf2out_frame_debug_cfa_restore): Likewise.
12463         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
12464
12465 2011-07-23  Richard Henderson  <rth@redhat.com>
12466
12467         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
12468
12469 2011-07-23  Richard Henderson  <rth@redhat.com>
12470
12471         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
12472         (cie_cfi_row): New.
12473         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
12474         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
12475         (cur_row, remember_row): New.
12476         (def_cfa_1): Use cur_row instead of the old_* variables.
12477         (dwarf2out_frame_debug_restore_state): Similarly.
12478         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
12479         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
12480         (dwarf2out_frame_debug_adjust_cfa): Likewise.
12481         (dwarf2out_frame_debug_cfa_offset): Likewise.
12482         (dwarf2out_frame_debug_expr): Likewise.
12483         (execute_dwarf2_frame): Set up cur_row.
12484         * dwarf2out.h (struct cfa_loc): Mark for GTY.
12485
12486 2011-07-23  Richard Henderson  <rth@redhat.com>
12487
12488         * basic-block.h (EDGE_PRESERVE): New.
12489         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
12490         * bb-reorder.c: Include except.h.
12491         (fix_up_crossing_landing_pad): New.
12492         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
12493         landing pads in the right partition.  Duplicate as necessary.
12494         (partition_hot_cold_basic_blocks): Fix up DF info after
12495         duplicating landing pads.
12496         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
12497         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
12498         is set properly.  Validate that EH edges are not CROSSING.
12499         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
12500         (dw2_build_landing_pads): ... here.
12501         (convert_to_eh_region_ranges): Remove code to fixup crossing
12502         landing pads.
12503         * except.h (expand_dw2_landing_pad_for_region): Declare.
12504         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
12505
12506 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
12507
12508         PR target/49816
12509         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
12510
12511 2011-07-22  Jason Merrill  <jason@redhat.com>
12512
12513         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
12514
12515 2011-07-22  Richard Henderson  <rth@redhat.com>
12516
12517         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
12518
12519 2011-07-22  Richard Henderson  <rth@redhat.com>
12520
12521         * jump.c (maybe_propagate_label_ref): Split out of...
12522         (mark_all_labels): ... here.  Do not attempt label_ref
12523         propagation while in cfglayout mode.
12524
12525 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
12526
12527         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
12528         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
12529         (dwarf_attr_name): Handle DW_AT_GNU_macros.
12530         (dwarf2out_define): If the vector is empty and
12531         lineno is 0, emit a dummy entry first.
12532         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
12533         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
12534         optimize_macinfo_range): New functions.
12535         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
12536         mergeable, optimize longer strings using
12537         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
12538         optimize longer sequences of define/undef ops from headers
12539         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
12540         emit a section headers.
12541         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
12542         and macinfo_section_label to DEBUG_MACRO_SECTION
12543         resp. DEBUG_MACRO_SECTION_LABEL.
12544         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
12545         instead of DW_AT_macro_info.
12546
12547         PR other/32998
12548         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
12549         options.
12550         * dwarf2out.c: Include opts.h.
12551         (dchar_p): New typedef.  Define heap VEC for it.
12552         (producer_string): New variable.
12553         (gen_producer_string): New function.
12554         (gen_compile_unit_die): Use it.
12555         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
12556         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
12557         * doc/invoke.texi: Document -grecord-gcc-switches and
12558         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
12559         to -frecord-gcc-switches description.
12560
12561 2011-07-22  Jason Merrill  <jason@redhat.com>
12562
12563         PR c++/30112
12564         * c-decl.c (c_linkage_bindings): Define.
12565
12566 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
12567
12568         PR debug/49815
12569         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
12570
12571 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
12572
12573         * config/i386/i386.c (ix86_option_override_internal): Disallow
12574         MS ABI in x32 mode.
12575         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
12576         only for TARGET_LP64.
12577         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
12578
12579 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
12580
12581         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
12582         avoid warnings when GCC is built with a C++ compiler.
12583
12584 2011-07-22  Martin Jambor  <mjambor@suse.cz>
12585
12586         PR lto/49796
12587         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
12588         if decl node is in another partition, call cgraph_get_node only once.
12589
12590 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
12591
12592         * config.gcc (x86_64-*-linux*): Set
12593         default_gnu_indirect_function to yes.
12594
12595 2011-07-22  Richard Guenther  <rguenther@suse.de>
12596
12597         PR tree-optimization/45819
12598         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
12599         preserve volatile and notrap flags.
12600
12601 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12602             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12603
12604         PR bootstrap/49794
12605         * configure.ac: Test AM_ICONV with CXX.
12606         * configure: Regenerate.
12607         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
12608
12609 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12610
12611         PR bootstrap/49797
12612         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
12613         (set_cloog_options): Use it.
12614
12615 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
12616
12617         PR c++/49756
12618         * gcc.c (main): Call stack_limit_increase (64MB).
12619         * toplev.c (toplev_main): Likewise.
12620
12621 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
12622
12623         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
12624         instead of force_reg.
12625
12626 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
12627
12628         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
12629         needed and use force_reg after convert.
12630         (ix86_expand_call): Likewise.
12631         (ix86_expand_special_args_builtin): Likewise.
12632         (ix86_expand_builtin): Likewise.
12633
12634 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12635
12636         PR middle-end/47654
12637         PR middle-end/49649
12638         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
12639         in parameter.  Initialize v1 and v2 based on the values returned
12640         by clast_name_to_lb_ub.
12641         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
12642         values.
12643         (type_for_clast_bin): Same.
12644         (type_for_clast_expr): Same.
12645         (type_for_clast_eq): Update calls to type_for_clast_expr.
12646         (type_for_clast_for): Same.
12647         (build_iv_mapping): Same.
12648         * graphite-ppl.h (value_min): New.
12649
12650 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12651
12652         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
12653         types whenever possible.
12654
12655 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12656
12657         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
12658         and ub fields.
12659         (new_clast_name_index): Add lb and ub parameters.
12660         (free_clast_name_index): New.
12661         (clast_name_to_lb_ub): New.
12662         (save_clast_name_index): Add lb and ub parameters.
12663         (compute_bounds_for_param): New.
12664         (type_for_level): Removed.
12665         (type_for_clast_for): Removed level parameter.  Do not call
12666         type_for_level.
12667         (graphite_create_new_loop): Store the lb and ub for the clast_name
12668         of the iterator of the loop that has been generated.
12669         (graphite_create_new_loop_guard): Remove parameter level.
12670         (create_params_index): Store the lb and ub of each parameter.
12671         (gloog): Use free_clast_name_index.  Pass to create_params_index
12672         the current scop.
12673
12674 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12675
12676         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
12677         (max_precision_type): Inline max_signed_precision_type.
12678         (type_for_clast_red): Use max_precision_type.
12679         (type_for_clast_bin): Same.
12680         (type_for_clast_for): Same.
12681
12682 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12683
12684         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
12685         type_for_interval.
12686         (gcc_type_for_value): Renamed type_for_value.
12687         (gcc_type_for_clast_term): Renamed type_for_clast_term.
12688         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
12689         (gcc_type_for_clast_red): Renamed type_for_clast_red.
12690         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
12691         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
12692         (graphite_translate_clast_equation): Update calls.
12693         (compute_type_for_level): Renamed type_for_level.
12694         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
12695         (build_iv_mapping): Update calls.
12696         (graphite_create_new_loop_guard): Same.
12697
12698 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12699
12700         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
12701         comment.
12702
12703 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12704
12705         * graphite-clast-to-gimple.c (struct ivs_params): New.
12706         (clast_name_to_gcc): Use ivs_params to pass around parameters.
12707         (clast_to_gcc_expression): Same.
12708         (clast_to_gcc_expression_red): Same.
12709         (gcc_type_for_clast_term): Same.
12710         (gcc_type_for_clast_expr): Same.
12711         (gcc_type_for_clast_red): Same.
12712         (gcc_type_for_clast_bin): Same.
12713         (gcc_type_for_clast_eq): Same.
12714         (graphite_translate_clast_equation): Same.
12715         (graphite_create_guard_cond_expr): Same.
12716         (graphite_create_new_guard): Same.
12717         (graphite_create_new_loop): Same.
12718         (build_iv_mapping): Same.
12719         (translate_clast_user): Same.
12720         (graphite_create_new_loop_guard): Same.
12721         (translate_clast): Same.
12722         (translate_clast_for_loop): Same.
12723         (translate_clast_for): Same.
12724         (translate_clast_guard): Same.
12725         (initialize_cloog_names): Fix typo.
12726         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
12727
12728 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12729
12730         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
12731         (new_clast_name_index): Add level parameter.
12732         (clast_name_to_level): New.
12733         (save_clast_name_index): Add level parameter.
12734         (newivs_to_depth_to_newiv): Removed.
12735         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
12736         (graphite_create_new_loop): Add level parameter.  Pass level to
12737         save_clast_name_index.
12738         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
12739         (create_params_index): Pass level to save_clast_name_index.
12740
12741 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12742
12743         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
12744         recompute type, lb, and ub.  Get them from...
12745         (graphite_create_new_loop_guard): ...here.  Pass in parameter
12746         pointers to type, lb, and ub.
12747         (translate_clast_for_loop): Update function calls.
12748         (translate_clast_for): Same.
12749
12750 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12751
12752         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
12753         psct_dynamic_dim.
12754         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
12755         (gcc_type_for_iv_of_clast_loop): Update use of level.
12756         (gloog): Start counting nesting level from 0.
12757         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
12758         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
12759         psct_dynamic_dim on level.
12760
12761 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
12762
12763         * config/i386/i386.c (ix86_legitimize_address): Convert to
12764         Pmode if needed.
12765
12766 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
12767
12768         * config/i386/i386.c (function_value_64): Always return pointers
12769         in Pmode.
12770         (ix86_promote_function_mode): New.
12771         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
12772
12773 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12774
12775         PR tree-optimization/49749
12776         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
12777         remove no-longer-used maxrank variable.
12778
12779 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
12780
12781         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
12782
12783 2011-07-21  Jason Merrill  <jason@redhat.com>
12784
12785         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
12786         * recog.h (struct insn_data_d): Check it instead of
12787         HAVE_DESIGNATED_INITIALIZERS.
12788         * genoutput.c (output_insn_data): Likewise.
12789
12790 2011-07-21  Richard Guenther  <rguenther@suse.de>
12791
12792         PR tree-optimization/49770
12793         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
12794         valueized any operand.  Renamed from ...
12795         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
12796         (valueize_shared_reference_ops_from_ref): Return whether we
12797         valueized any operand.
12798         (vn_reference_lookup): Only when we valueized any operand
12799         use the valueized reference for alias analysis.  Do not preserve
12800         the original reference tree in this case.
12801
12802 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
12803
12804         * config/i386/i386.c (ix86_decompose_address): Reject all but
12805         register operands and subregs of DImode hard registers in index.
12806
12807 2011-07-21  Kai Tietz  <ktietz@redhat.com>
12808
12809         * fold-const.c (fold_unary_loc): Preserve indirect
12810         comparison cast to none-boolean type.
12811         * tree-ssa.c (useless_type_conversion_p): Preserve cast
12812         from/to boolean-type.
12813         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
12814         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
12815         * tree-cfg.c (verify_gimple_comparison): Check result
12816         type of comparison expression.
12817         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
12818         of condition result and disallow type-cast sinking into comparison.
12819
12820 2011-07-21  Richard Guenther  <rguenther@suse.de>
12821
12822         * tree-ssa-forwprop.c (combine_conversions): Return whether
12823         we have to run cfg-cleanup.  Properly remove dead stmts.
12824         (ssa_forward_propagate_and_combine): Adjust.
12825
12826 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
12827
12828         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
12829
12830 2011-07-21  Kai Tietz  <ktietz@redhat.com>
12831
12832         * tree-ssa-propagate.c (substitute_and_fold): Use
12833         do_dce flag to deside, if BB's statements are scanned
12834         in last to first, or first to last order.
12835
12836 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
12837
12838         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
12839
12840 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
12841             Uros Bizjak  <ubizjak@gmail.com>
12842             Richard Henderson  <rth@redhat.com>
12843
12844         * config/i386/constraints.md (w): New.
12845
12846         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
12847         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
12848
12849         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
12850         instead of TARGET_64BIT.
12851
12852         * config/i386/i386.md (indirect_jump): Replace
12853         nonimmediate_operand with indirect_branch_operand.
12854         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
12855         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
12856         Convert operand 0 to Pmode for x32 if not PIC.
12857         (*tablejump_1): Replace nonimmediate_operand with
12858         indirect_branch_operand.  Replace constraint "m" with "w".
12859         (*call_vzeroupper): Replace constraint "m" with "w".
12860         (*call): Likewise.
12861         (*call_rex64_ms_sysv_vzeroupper): Likewise.
12862         (*call_rex64_ms_sysv): Likewise.
12863         (*call_value_vzeroupper): Likewise.
12864         (*call_value): Likewise.
12865         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
12866         (*call_value_rex64_ms_sysv): Likewise.
12867         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
12868
12869         * config/i386/predicates.md (indirect_branch_operand): New.
12870         (call_insn_operand): Support x32.
12871
12872 2011-07-20  Michael Eager  <eager@eagercon.com>
12873
12874         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
12875
12876 2011-07-20  Richard Henderson  <rth@redhat.com>
12877
12878         * cfg.c (dump_bb_info): Dump basic_block->flags.
12879         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
12880
12881 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
12882
12883         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
12884         of DImode hard registers in index.
12885         (ix86_legitimate_address_p): Allow subregs of base and index to span
12886         more than a word.  Assert that subregs of base and index satisfy
12887         register_no_elim_operand predicates.  Reject addresses where
12888         base and index have different modes.
12889
12890 2011-07-20  Robert Millan  <rmh@gnu.org>
12891
12892         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
12893
12894 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12895
12896         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
12897         removing now-unnecessary assignment.
12898
12899 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12900
12901         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
12902         memory address space to the type's address space.
12903
12904 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
12905
12906         PR target/36467
12907         PR target/49687
12908         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
12909         and expand appropriately if there is a CONST_INT in operand2.
12910         (usmulqihi3): New insn.
12911         (*sumulqihi3): New insn.
12912         (*osmulqihi3): New insn.
12913         (*oumulqihi3): New insn.
12914         (*muluqihi3.uconst): New insn_and_split.
12915         (*muluqihi3.sconst): New insn_and_split.
12916         (*mulsqihi3.sconst): New insn_and_split.
12917         (*mulsqihi3.uconst): New insn_and_split.
12918         (*mulsqihi3.oconst): New insn_and_split.
12919         (*ashifthi3.signx.const): New insn_and_split.
12920         (*ashifthi3.signx.const7): New insn_and_split.
12921         (*ashifthi3.zerox.const): New insn_and_split.
12922         (mulsqihi3): New insn.
12923         (muluqihi3): New insn.
12924         (muloqihi3): New insn.
12925         * config/avr/predicates.md (const_2_to_7_operand): New.
12926         (const_2_to_6_operand): New.
12927         (u8_operand): New.
12928         (s8_operand): New.
12929         (o8_operand): New.
12930         (s9_operand): New.
12931         (register_or_s9_operand): New.
12932
12933 2011-07-20  Kai Tietz  <ktietz@redhat.com>
12934
12935         * builtins.c (fold_builtin_expect): See through the cast
12936         from truthvalue_type_node to long.
12937
12938 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
12939
12940         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
12941         where we can use them from the standard and altivec instruction
12942         sets, instead of always using the 3 operand VSX forms that require
12943         the destination to overlap one of the inputs.
12944         (vsx_fms*): Ditto.
12945         (vsx_fnma*): Ditto.
12946         (vsx_fnms*): Ditto.
12947
12948         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
12949         for DF types.
12950         (fmsdf4_fpr): Ditto.
12951         (nfmadf4_fpr): Ditto.
12952         (nfmsdf4_fpr): Ditto.
12953
12954 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
12955
12956         * genrecog.c (make_insn_sequence): Correct position numbering
12957         when filtering out match_scratch and match_dup.
12958
12959 2011-07-20  Richard Guenther  <rguenther@suse.de>
12960
12961         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
12962         against already removed statements.
12963         (forward_propagate_into_comparison): Remove dead defining stmts.
12964         (forward_propagate_into_gimple_cond): Likewise.
12965         (forward_propagate_into_cond): Simplify.
12966         (ssa_forward_propagate_and_combine): Handle changed cfg from
12967         forward_propagate_into_comparison.
12968         * tree-ssa-phiopt.c (conditional_replacement): Use proper
12969         locations for newly built statements.
12970
12971 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
12972
12973         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
12974
12975 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12976
12977         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
12978         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
12979
12980 2011-07-20  Richard Guenther  <rguenther@suse.de>
12981
12982         PR middle-end/18908
12983         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
12984         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
12985         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
12986
12987 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
12988
12989         * config/frv/frv.c (frv_register_move_cost): Define explicitly
12990         costs for subclasses of GR_REGS.
12991
12992 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
12993
12994         PR target/49780
12995         * config/i386/predicates.md (no_seg_addres_operand): No more special.
12996         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
12997         of DImode hard registers in base.
12998         (ix86_legitimate_address_p): Allow SImode and DImode base and index
12999         registers.
13000
13001 2011-07-20  Richard Guenther  <rguenther@suse.de>
13002
13003         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
13004         (unify_nodes): Deal with that.
13005         (solve_graph): Likewise.
13006
13007 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
13008
13009         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
13010         canonicalize left operand from ZERO_EXTEND to AND.
13011
13012 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
13013
13014         * target.def (class_max_nregs): New hook.
13015         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
13016         * doc/tm.texi: Regenerate.
13017         * targhooks.c (default_class_max_nregs): New function.
13018         * targhooks.h (default_class_max_nregs): Declare.
13019         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
13020         x_ira_reg_class_min_nregs arrays to unsigned char.
13021         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
13022         hook instead of CLASS_MAX_NREGS macro.
13023         * reginfo.c (restore_register_info): Ditto.
13024         * ira-conflicts.c (process_regs_for_copy): Use
13025         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
13026         Change type rclass and aclass vars to reg_class_t.
13027         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
13028         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
13029         reg_class_t.
13030         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
13031         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
13032
13033         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
13034         * config/i386/i386.c (ix86_class_max_nregs): New function.
13035         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
13036         instead of CLASS_MAX_NREGS macro.
13037         (TARGET_CLASS_MAX_NREGS): Define.
13038         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
13039         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
13040         * config/avr/avr.c (class_max_nregs): Remove function.
13041         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
13042         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
13043         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
13044         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
13045         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
13046         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
13047         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
13048         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
13049         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
13050         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
13051         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
13052         * config/score/score.h (CLASS_MAX_NREGS): Remove.
13053         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
13054         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
13055         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
13056
13057 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
13058
13059         * cif-code.def (OVERWRITABLE): Fix typo and move around.
13060         (TARGET_OPTIMIZATION_MISMATCH): Delete.
13061         (EH_PERSONALITY): Fix typo.
13062         (NON_CALL_EXCEPTIONS): Fix message.
13063         (OPTIMIZATION_MISMATCH): Adjust message.
13064         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
13065
13066 2011-07-19  Ian Lance Taylor  <iant@google.com>
13067
13068         * doc/install.texi (Configuration): Document
13069         --enable-build-poststage1-with-cxx.
13070
13071 2011-07-19  Robert Millan  <rmh@gnu.org>
13072
13073         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
13074         (GLIBC_DYNAMIC_LINKER): Remove.
13075
13076         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
13077         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
13078         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
13079         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
13080         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
13081         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
13082
13083         * config/mips/linux.h: Remove everything except for ...
13084         (GLIBC_DYNAMIC_LINKER): ... this macro.
13085
13086         * config/mips/linux64.h: Remove everything except for ...
13087         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
13088         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
13089         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
13090         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
13091         (GNU_USER_LINK_EMULATIONN32): New macros.
13092
13093         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
13094         Use the new headers.
13095
13096 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
13097
13098         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
13099         Add offset_known_p and size_known_p fields.
13100         (MEM_OFFSET_KNOWN_P): Update accordingly.
13101         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
13102         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
13103         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
13104         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
13105         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
13106         (init_emit_regs): Likewise.
13107
13108 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
13109
13110         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
13111         (MEM_OFFSET): Change from returning an rtx to returning a
13112         HOST_WIDE_INT.
13113         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
13114         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
13115         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
13116         (clear_mem_offset): Declare.
13117         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
13118         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
13119         MEM_OFFSET to get a HOST_WIDE_INT offset.
13120         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
13121         (adjust_offset_for_component_ref): Take a bool "known_p"
13122         parameter and a HOST_WIDE_INT "offset" parameter.
13123         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
13124         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
13125         than an rtx.  Use clear_mem_offset to clear the offset.
13126         * cfgcleanup.c (merge_memattrs): Likewise.
13127         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
13128         * function.c (assign_parm_find_stack_rtl): Likewise.
13129         (assign_parm_setup_stack): Likewise.
13130         * print-rtl.c (print_rtx): Likewise.
13131         * reload.c (find_reloads_subreg_address): Likewise.
13132         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
13133         * var-tracking.c (INT_MEM_OFFSET): Likewise.
13134         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
13135         (get_mem_align_offset): Likewise.
13136         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
13137         (clear_mem_offset): New function.
13138         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
13139         offset rather than an rtx.  Assume both the expressio and offset
13140         are available.
13141         (r10k_needs_protection_p_1): Update accordingly, checking the
13142         expression and offset availability here instead.
13143
13144 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
13145
13146         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
13147         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
13148         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
13149         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
13150         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
13151         (clear_mem_size): Declare.
13152         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
13153         (clear_mem_size): New function.
13154         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
13155         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
13156         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
13157         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
13158         to clear the size.
13159         (nonoverlapping_memrefs_p): Likewise.
13160         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
13161         (expand_builtin_init_trampoline): Likewise.
13162         * calls.c (compute_argument_addresses): Likewise.
13163         * cfgcleanup.c (merge_memattrs): Likewise.
13164         * dce.c (find_call_stack_args): Likewise.
13165         * dse.c (record_store, scan_insn): Likewise.
13166         * dwarf2out.c (dw_sra_loc_expr): Likewise.
13167         * expr.c (emit_block_move_hints): Likewise.
13168         * function.c (assign_parm_find_stack_rtl): Likewise.
13169         * print-rtl.c (print_rtx): Likewise.
13170         * reload.c (find_reloads_subreg_address): Likewise.
13171         * rtlanal.c (may_trap_p_1): Likewise.
13172         * var-tracking.c (track_expr_p): Likewise.
13173         * varasm.c (assemble_trampoline_template): Likewise.
13174         * config/arm/arm.c (arm_print_operand): Likewise.
13175         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
13176         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
13177         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
13178         (expand_constant_setmem_prologue): Likewise.
13179         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
13180         * config/rs6000/rs6000.c (expand_block_move): Likewise.
13181         (adjacent_mem_locations): Likewise.
13182         * config/s390/s390.c (s390_expand_setmem): Likewise.
13183         (s390_expand_insv): Likewise.
13184         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
13185         (*extendqi<mode>2_short_displ): Likewise.
13186         * config/sh/sh.c (expand_block_move): Likewise.
13187         * config/sh/sh.md (extv, extzv): Likewise.
13188
13189 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
13190
13191         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
13192         (mem_attrs_htab_eq): ...here.
13193         (find_mem_attrs): Replace with...
13194         (set_mem_attrs): ...this function.  Take a mem_attrs structure
13195         rather than individual fields.
13196         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
13197         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
13198         (set_mem_size, change_address, adjust_address_1, offset_address)
13199         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
13200         Update accordingly.
13201
13202 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
13203
13204         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
13205         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
13206         Provide a dummy definition of MEM_ADDR_SPACE for generators.
13207         (target_rtl): Add x_mode_mem_attrs.
13208         (mode_mem_attrs): New macro.
13209         (get_mem_attrs): New function.
13210         * emit-rtl.c (get_mem_attrs): Rename to...
13211         (find_mem_attrs): ...this.
13212         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
13213         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
13214         (set_mem_size, change_address, adjust_address_1, offset_address)
13215         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
13216         Update accordingly.
13217         (init_emit_regs): Initialize mode_mem_attrs.
13218
13219 2011-07-19  Richard Guenther  <rguenther@suse.de>
13220
13221         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
13222         TRUTH_*_EXPR handling.
13223         * tree-ssa-operands.c (get_expr_operands): Likewise.
13224         * tree-ssa-pre.c (fully_constant_expression): Likewise.
13225         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
13226         Likewise.
13227         (is_and_or_or): Likewise.
13228         (is_norm_cond_subset_of): Likewise.
13229
13230 2011-07-19  Richard Guenther  <rguenther@suse.de>
13231
13232         * tree.h (fold_build_pointer_plus_loc): New helper function.
13233         (fold_build_pointer_plus_hwi_loc): Likewise.
13234         (fold_build_pointer_plus): Define.
13235         (fold_build_pointer_plus_hwi): Likewise.
13236         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
13237         (fold_builtin_memory_op): Likewise.
13238         (fold_builtin_stpcpy): Likewise.
13239         (fold_builtin_memchr): Likewise.
13240         (fold_builtin_strstr): Likewise.
13241         (fold_builtin_strchr): Likewise.
13242         (fold_builtin_strrchr): Likewise.
13243         (fold_builtin_strpbrk): Likewise.
13244         (fold_builtin_strcat): Likewise.
13245         (expand_builtin_memory_chk): Likewise.
13246         (fold_builtin_memory_chk): Likewise.
13247         * c-typeck.c (build_unary_op): Likewise.
13248         * cgraphunit.c (thunk_adjust): Likewise.
13249         * fold-const.c (build_range_check): Likewise.
13250         (fold_binary_loc): Likewise.
13251         * omp-low.c (extract_omp_for_data): Likewise.
13252         (expand_omp_for_generic): Likewise.
13253         (expand_omp_for_static_nochunk): Likewise.
13254         (expand_omp_for_static_chunk): Likewise.
13255         * tree-affine.c (add_elt_to_tree): Likewise.
13256         * tree-data-ref.c (split_constant_offset_1): Likewise.
13257         * tree-loop-distribution.c (generate_memset_zero): Likewise.
13258         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
13259         * tree-predcom.c (ref_at_iteration): Likewise.
13260         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
13261         (add_to_parts): Likewise.
13262         (create_mem_ref): Likewise.
13263         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
13264         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
13265         (number_of_iterations_le): Likewise.
13266         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
13267         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
13268         (vect_create_addr_base_for_vector_ref): Likewise.
13269         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
13270         (vect_create_cond_for_alias_checks): Likewise.
13271         * tree-vrp.c (extract_range_from_assert): Likewise.
13272         * config/alpha/alpha.c (alpha_va_start): Likewise.
13273         (alpha_gimplify_va_arg_1): Likewise.
13274         * config/i386/i386.c (ix86_va_start): Likewise.
13275         (ix86_gimplify_va_arg): Likewise.
13276         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
13277         * config/mep/mep.c (mep_expand_va_start): Likewise.
13278         (mep_gimplify_va_arg_expr): Likewise.
13279         * config/mips/mips.c (mips_va_start): Likewise.
13280         (mips_gimplify_va_arg_expr): Likewise.
13281         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
13282         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
13283         (rs6000_gimplify_va_arg): Likewise.
13284         * config/s390/s390.c (s390_va_start): Likewise.
13285         (s390_gimplify_va_arg): Likewise.
13286         * config/sh/sh.c (sh_va_start): Likewise.
13287         (sh_gimplify_va_arg_expr): Likewise.
13288         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
13289         * config/spu/spu.c (spu_va_start): Likewise.
13290         (spu_gimplify_va_arg_expr): Likewise.
13291         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
13292         Likewise.
13293         (xstormy16_gimplify_va_arg_expr): Likewise.
13294         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
13295         (xtensa_gimplify_va_arg_expr): Likewise.
13296
13297 2011-07-19  Richard Guenther  <rguenther@suse.de>
13298
13299         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
13300         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
13301         handling.
13302
13303         PR middle-end/18908
13304         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
13305         result of BIT_*_EXPR to bitfield precision.
13306
13307 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
13308
13309         PR tree-optimization/49742
13310         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
13311         as a potential write.
13312
13313 2011-07-19  Richard Guenther  <rguenther@suse.de>
13314
13315         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
13316         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
13317         (forward_propagate_comparison): Simplify, remove obsolete code.
13318
13319 2011-07-19  Richard Guenther  <rguenther@suse.de>
13320
13321         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
13322         BIT_XOR_EXPR, same as the RTL expander does.
13323         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
13324         (verify_gimple_assign_unary): Likewise.
13325         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
13326         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
13327         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
13328
13329 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
13330
13331         PR tree-optimization/49768
13332         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
13333         if offset is smaller than bitoffset, but offset+size is bigger
13334         than bitoffset.
13335
13336 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
13337
13338         PR tree-optimization/49771
13339         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
13340         zero step, set segment length to the size of the data-ref's type.
13341
13342 2011-07-18  Martin Jambor  <mjambor@suse.cz>
13343
13344         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
13345         comments.
13346         (ipcp_values_pool): Declare.
13347         (ipcp_sources_pool): Likewise.
13348         (ipcp_lattice): Changed to forward declaration.
13349         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
13350         cannot_devirtualize.
13351         (ipa_node_params): New fields descriptors, lattices, known_vals,
13352         clone_for_all_contexts and node dead, removed fields params and
13353         count_scale.
13354         (ipa_set_param_count): Removed.
13355         (ipa_get_param_count): Made to work with descriptors vector.
13356         (ipa_get_param): Updated.
13357         (ipa_param_cannot_devirtualize_p): Removed.
13358         (ipa_param_types_vec_empty): Likewise.
13359         (ipa_set_param_used): New function.
13360         (ipa_get_param_used): Updated to use descriptors vector.
13361         (ipa_func_list): Removed.
13362         (ipa_init_func_list): Removed declaration.
13363         (ipa_push_func_to_list_1): Likewise.
13364         (ipa_pop_func_from_list): Likewise.
13365         (ipa_push_func_to_list): Removed.
13366         (ipa_lattice_from_jfunc): Remove declaration.
13367         (ipa_get_jf_pass_through_result): Declare.
13368         (ipa_get_jf_ancestor_result): Likewise.
13369         (ipa_value_from_jfunc): Likewise.
13370         (ipa_get_lattice): Update.
13371         (ipa_lat_is_single_const): New function.
13372         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
13373         (ipa_init_func_list): Likewise.
13374         (ipa_pop_func_from_list): Likewise.
13375         (ipa_get_param_decl_index): Fix coding style.
13376         (count_formal_params): Removed.
13377         (count_formal_params_1): Renamed to count_formal_params.
13378         (ipa_populate_param_decls): Update to use descriptors vector.
13379         (ipa_initialize_node_params): Likewise.
13380         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
13381         (ipa_analyze_params_uses): Likewise.
13382         (ipa_free_node_params_substructures): Likewise and free also lattices
13383         and known values.
13384         (duplicate_array): Removed.
13385         (ipa_edge_duplication_hook): Add the new edge to the list of edge
13386         clones.
13387         (ipa_node_duplication_hook): Update to use new lattices.
13388         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
13389         (ipa_free_all_structures_after_iinln): Likewise.
13390         (ipa_write_node_info): Update to use new lattices.
13391         (ipa_read_node_info): Likewise.
13392         (ipa_get_jf_pass_through_result): New function.
13393         (ipa_get_jf_ancestor_result): Likewise.
13394         (ipa_value_from_jfunc): Likewise.
13395         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
13396         * ipa-cp.c: Reimplemented.
13397         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
13398         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
13399         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
13400         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
13401         * doc/invoke.texi (devirt-type-list-size): Removed description.
13402         (ipa-cp-value-list-size): Added description.
13403
13404 2011-07-18  Richard Henderson  <rth@redhat.com>
13405
13406         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
13407         before calling create_basic_block.
13408
13409 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
13410
13411         PR middle-end/49675
13412         * tree.c (build_common_builtin_nodes): Register
13413         __builtin_return_address, __cyg_profile_func_enter
13414         and __cyg_profile_func_exit.
13415
13416 2011-07-18  Richard Henderson  <rth@redhat.com>
13417
13418         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
13419         (add_labels_and_missing_jumps): ... here.
13420         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
13421
13422 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
13423
13424         PR target/47744
13425         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
13426         of DImode hard registers in PLUS address chains.
13427
13428 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13429
13430         PR bootstrap/49769
13431         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
13432         (alpha*-*-freebsd*): Likewise.
13433         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
13434         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
13435         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
13436         crtprec80.o, crtfastmath.o to extra_parts for all targets.
13437         (ia64*-*-elf*): Remove extra_parts.
13438         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
13439         (sparc64-*-linux*): Likewise.
13440         (sparc64-*-freebsd*): Likewise.
13441
13442         Revert:
13443         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
13444         (ia64*-*-linux*): Likewise.
13445         (mips64*-*-linux*): Likewise.
13446         (mips*-*-linux*): Likewise.
13447
13448 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
13449
13450         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
13451
13452 2011-07-18  Richard Guenther  <rguenther@suse.de>
13453
13454         * gimplify.c (gimplify_expr): Use input_location, not saved_location
13455         when building new trees.
13456
13457 2011-07-18  Richard Guenther  <rguenther@suse.de>
13458
13459         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
13460         expansion result to bitfield precision if required.
13461
13462 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13463
13464         * config.gcc (i[3456x]86-*-netware*): Remove.
13465
13466         * gthr-nks.h: Remove.
13467         * configure.ac (enable_threads): Remove nks.
13468         * configure: Regenerate.
13469
13470         * config/i386/i386.c (ix86_encode_section_info): Remove netware
13471         reference.
13472         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
13473         <netware.h> reference.
13474
13475         * config/i386/netware-libgcc.c,
13476         gcc/config/i386/netware-libgcc.def,
13477         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
13478         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
13479         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
13480         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
13481
13482         * doc/extend.texi (Function Attributes,
13483         callee_pop_aggregate_return): Remove i?86-netware reference.
13484         * doc/install.texi (Configuration, --enable-threads): Remove nks.
13485
13486 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13487
13488         PR target/49746
13489         Revert:
13490         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13491
13492         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
13493         patterns.
13494
13495 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
13496
13497         PR middle-end/49732
13498         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
13499
13500 2011-07-16  Matthias Klose  <doko@ubuntu.com>
13501
13502         * doc/install.texi: Document --enable-static-libjava.
13503
13504 2011-07-15  Richard Henderson  <rth@redhat.com>
13505
13506         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
13507         Replace all three arguments by returning a VEC of edges.
13508         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
13509         pointers and counts.
13510         (fix_edges_for_rarely_executed_code): Merge ...
13511         (rest_of_handle_partition_blocks): ... into...
13512         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
13513         any work was performed.
13514         (pass_partition_blocks): Clear todo_flags_finish.
13515
13516 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
13517             Jakub Jelinek  <jakub@redhat.com>
13518             Jonathan Wakely  <jwakely.gcc@gmail.com>
13519
13520         PR libstdc++/49745
13521         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
13522         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
13523
13524 2011-07-15  Jason Merrill  <jason@redhat.com>
13525
13526         PR testsuite/49741
13527         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
13528         rather than --tool_opts.
13529
13530 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
13531
13532         * doc/plugins.texi (Building GCC plugins): gengtype needs its
13533         corresponding gtype.state.
13534
13535 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13536
13537         PR target/49723
13538         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
13539
13540 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
13541
13542         PR target/48220
13543         * doc/md.texi (Standard Names): Document window_save.
13544         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
13545         expand_debug_expr and expand_debug_source_expr.  If the target has
13546         a window_save instruction, adjust the ENTRY_VALUE_EXP.
13547         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
13548         SSA_NAME_VAR is a parameter.
13549         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
13550         * var-tracking.c (parm_reg_t): New type and associated vector type.
13551         (windowed_parm_regs): New variable.
13552         (adjust_insn): If the target has a window_save instruction and this
13553         is the instruction, make its effect on parameter registers explicit.
13554         (next_non_note_insn_var_location): New function.
13555         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
13556         (vt_add_function_parameter): If the target has a window_save insn,
13557         adjust the incoming RTL and record that in windowed_parm_regs.
13558         (vt_finalize): Free windowed_parm_regs.
13559
13560 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
13561
13562         * doc/invoke.texi (C6X Options): New section.
13563         * doc/md.texi (TI C6X family): New section.
13564         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
13565         tic6x-*-uclinux.
13566         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
13567         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
13568         Provide C6X definitions.
13569         * config/c6x/c6x.md: New file.
13570         * config/c6x/constraints.md: New file.
13571         * config/c6x/predicates.md: New file.
13572         * config/c6x/c6x-sched.md.in: New file.
13573         * config/c6x/c6x-sched.md: New file.
13574         * config/c6x/gensched.sh: New file.
13575         * config/c6x/c6x-mult.md.in: New file.
13576         * config/c6x/genmult.sh: New file.
13577         * config/c6x/c6x-mult.md: New file.
13578         * config/c6x/sync.md: New file.
13579         * config/c6x/c6x-protos.h: New file.
13580         * config/c6x/sfp-machine.h: New file.
13581         * config/c6x/c6x.c: New file.
13582         * config/c6x/c6x.h: New file.
13583         * config/c6x/crti.s: New file.
13584         * config/c6x/crtn.s: New file.
13585         * config/c6x/lib1funcs.asm: New file.
13586         * config/c6x/c6x-modes.def: New file.
13587         * config/c6x/genopt.sh: New file.
13588         * config/c6x/c6x.opt: New file.
13589         * config/c6x/c6x-tables.opt: New file.
13590         * config/c6x/c6x-opts.h: New file.
13591         * config/c6x/c6x-isas.def: New file.
13592         * config/c6x/elf.h: New file.
13593         * config/c6x/elf-common.h: New file.
13594         * config/c6x/uclinux-elf.h: New file.
13595         * config/c6x/t-c6x: New file.
13596         * config/c6x/t-c6x-elf: New file.
13597         * config/c6x/t-c6x-uclinux: New file.
13598         * config/c6x/t-c6x-softfp: New file.
13599         * config/c6x/gtd.c: New file.
13600         * config/c6x/gtf.c: New file.
13601         * config/c6x/ltd.c: New file.
13602         * config/c6x/ltf.c: New file.
13603         * config/c6x/ged.c: New file.
13604         * config/c6x/gef.c: New file.
13605         * config/c6x/led.c: New file.
13606         * config/c6x/lef.c: New file.
13607         * config/c6x/eqd.c: New file.
13608         * config/c6x/eqf.c: New file.
13609         * config/c6x/libgcc-c6xeabi.ver: New file.
13610
13611         Revert
13612         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
13613         PR rtl-optimization/11320
13614         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
13615         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
13616         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
13617         current_sched_info->compute_jump_reg_dependencies. Record which
13618         registers are used and which registers are set by the jump.
13619         Clear deps->reg_conditional_sets after a barrier.
13620         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
13621         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
13622         (init_deps): Initialize reg_conditional_sets.
13623         (free_deps): Clear reg_conditional_sets.
13624         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
13625         Mark registers live on entry of the fallthrough block and conditionally
13626         set as set by the jump. Mark registers live on entry of non-fallthrough
13627         blocks as used by the jump.
13628         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
13629         Mark new parameters as unused.
13630
13631 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
13632
13633         PR tree-opt/49309
13634         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
13635         Use fold_build2_loc instead of build2.
13636         Use the correct type for the new tree.
13637
13638 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
13639
13640         PR rtl-optimization/11320
13641         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
13642         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
13643
13644 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
13645
13646         PR target/49487
13647         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
13648         of REG.
13649         (*rotw<mode>): Use const_int_operand for operand2.
13650         Use match_scatch for operand3.
13651         (*rotb<mode>): Ditto
13652         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
13653
13654 2011-07-14  Richard Guenther  <rguenther@suse.de>
13655
13656         PR tree-optimization/49651
13657         * tree-ssa-structalias.c (get_constraint_for_1): Properly
13658         handle dereferences with subvariables.
13659
13660 2011-07-14  Richard Guenther  <rguenther@suse.de>
13661
13662         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
13663         (fold_stmt_1): Do it here directly on gimple and as a first thing.
13664
13665 2011-07-14  Richard Guenther  <rguenther@suse.de>
13666
13667         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
13668         not bool_var when folding bool_var != 1 or bool_var == 0.
13669
13670 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
13671
13672         * haifa-sched.c (schedule_insns): Remove outdated comment.
13673         (schedule_block): When computing a known value for TODO_SPEC,
13674         just set it rather than using logical operations.
13675         (try_ready): Likewise.  Use a local variable rather than a
13676         pointer to TODO_SPEC.  Reorder an if statement to move the
13677         easy case to the then block.
13678         * sched-deps.c (dep_spec_p): New static function.
13679         (update_dep): Use it to decide whether to call
13680         change_spec_dep_to_hard.
13681         (get_back_and_forw_lists): Use it.
13682         (sd_resolve_dep): Likewise.
13683         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
13684         (haifa_note_mem_dep): Likewise.
13685         (check_dep): Likewise.
13686         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
13687         (sched_free_deps): Free in two passes.
13688
13689 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
13690
13691         PR middle-end/49736
13692         * expr.c (all_zeros_p): Undo bogus part of last change.
13693
13694 2011-07-14  Matthias Klose <doko@ubuntu.com>
13695
13696         * doc/extend.texi (optimize attribute): Fix typo.
13697
13698 2011-07-14  Richard Guenther  <rguenther@suse.de>
13699
13700         * gimplify.c (gimplify_expr): Only do required conversions.
13701
13702 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
13703
13704         PR target/43746
13705         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
13706         i.e. use default_elf_select_section.
13707         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
13708         (READONLY_DATA_SECTION_ASM_OP): Remove.
13709         (TARGET_ASM_NAMED_SECTION): Move from here...
13710         * config/avr/avr.c: ...to here.
13711         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
13712         (avr_asm_named_section): Make static.
13713
13714 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13715
13716         PR bootstrap/49739
13717         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
13718         and crtfastmath.o for Linux/x86.
13719
13720 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
13721
13722         * haifa-sched.c: Include "hashtab.h"
13723         (sched_no_dce): New global variable.
13724         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
13725         SHADOW_P): New macros.
13726         (last_clock_var, cycle_issued_insns): Move declarations.
13727         (must_backtrack): New static variable.
13728         (struct delay_pair): New structure.
13729         (delay_htab, delay_htab_i2): New static variables.
13730         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
13731         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
13732         functions.
13733         (dep_cost_1): If delay pairs exist, try to look up the insns and
13734         use the correct pair delay if we find them.
13735         (rank-for_schedule): Tweak priority for insns that must be scheduled
13736         soon to avoid backtracking.
13737         (queue_insn): Detect conditions which force backtracking.
13738         (ready_add): Likewise.
13739         (struct sched_block_state): Add member shadows_only_p.
13740         (struct haifa_save_data): New structure.
13741         (backtrack_queue): New static variable.
13742         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
13743         unschedule_insns_until, restore_last_backtrack_point,
13744         free_topmost_backtrack_point, free_backtrack_queue,
13745         estimate_insn_tick, estimate_shadow_tick): New functions.
13746         (prune_ready_list): New arg shadows_only_p.  All callers changed.
13747         If true, remove everything that isn't SHADOW_P.  Look up delay
13748         pairs and estimate ticks to avoid scheduling the first insn too early.
13749         (verify_shadows): New function.
13750         (schedule_block): Add machinery to enable backtracking.
13751         (sched_init): Take sched_no_dce into account when setting
13752         DF_LR_RUN_DCE.
13753         (free_delay_pairs): New function.
13754         (init_h_i_d): Initialize INSN_EXACT_TICK.
13755         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
13756         * sched-deps.c (sd_unresolve_dep): New function.
13757         * sched-int. (struct haifa_sched_info): New fields save_state
13758         and restore_state.
13759         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
13760         feeds_backtrack_insn and shadow_p.
13761         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
13762         (sched_no_dce): Declare variable.
13763         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
13764         sd_unresolve_dep): Declare functions.
13765         * modulo-sched.c (sms_sched_info): Clear the two new fields.
13766         * sched-rgn.c (rgn_const_sched_info): Likewise.
13767         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
13768         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
13769         (ebb_sched_info): Add them for the two new fields.
13770         (add_deps_for_risky_insns): Call add_delay_dependencies.
13771
13772 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13773
13774         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
13775         Rename -mr11.
13776         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
13777         (rs6000_call_indirect_aix): Ditto.
13778         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
13779         (call_indirect_aix<ptrsize>_internal): Ditto.
13780         (call_indirect_aix<ptrsize>_nor11): Ditto.
13781         (call_indirect_aix<ptrsize>_internal2): Ditto.
13782         (call_value_indirect_aix<ptrsize>): Ditto.
13783         (call_value_indirect_aix<ptrsize>_internal): Ditto.
13784         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
13785         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
13786         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
13787
13788 2011-07-13  Jason Merrill  <jason@redhat.com>
13789
13790         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
13791
13792 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13793
13794         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
13795         * config/spu/spu.md ("clrsb<mode>2"): New expander.
13796
13797 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
13798
13799         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
13800         * configure: Regenerate.
13801
13802 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13803
13804         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
13805         (asm_file_start): Remove.
13806         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
13807         free_bb_for_insn around code that modifies insns before
13808         restarting df analysis.
13809
13810 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13811
13812         PR target/49541
13813         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
13814         (LINK_SPEC): ... here.
13815
13816 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
13817
13818         * haifa-sched.c (struct sched_block_state): New.
13819         (schedule_block): Move some local variables into such a structure.
13820
13821 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13822
13823         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
13824         * config/i386/t-crtpc: Remove.
13825         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
13826         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
13827         tmake_file.
13828         (x86_64-*-darwin*): Likewise.
13829         (i[34567]86-*-linux*): Likewise.
13830         (x86_64-*-linux*): Likewise.
13831
13832         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
13833         Handle -mpc32, -mpc64, -mpc80.
13834
13835 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13836
13837         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
13838         * config/alpha/t-crtfm: Remove.
13839         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
13840         * config/i386/t-crtfm: Remove.
13841         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
13842         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
13843         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
13844         * config/sparc/t-crtfm: Remove.
13845
13846         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
13847         (alpha*-*-freebsd*): Likewise.
13848         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
13849         (x86_64-*-darwin*): Likewise.
13850         (i[34567]86-*-linux*): Likewise.
13851         (x86_64-*-linux*): Likewise.
13852         (x86_64-*-mingw*): Likewise.
13853         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
13854         (ia64*-*-freebsd*): Likewise.
13855         (ia64*-*-linux*): Likewise.
13856         (mips64*-*-linux*): Likewise.
13857         (mips*-*-linux*): Likewise.
13858         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
13859         (sparc64-*-linux*): Likewise.
13860         (sparc64-*-freebsd*): Likewise.
13861
13862 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13863
13864         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
13865         * config/darwin-crt3.c: Move to ../libgcc/config.
13866         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
13867         ($(T)crt3$(objext)): Remove.
13868         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
13869         ($(T)crt2$(objext)): Remove.
13870         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
13871         (powerpc64-*-darwin*): Likewise.
13872
13873 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
13874
13875         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
13876
13877         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
13878         (addsi_1_zext): This.
13879
13880 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
13881
13882         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
13883         * doc/tm.texi: Regenerate.
13884         * target.def (mergeable_rodata_prefix): New defhookpod.
13885         * varasm.c (mergeable_string_section, mergeable_constant_section):
13886         Use it. Allocate name with alloca.
13887
13888 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
13889
13890         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
13891
13892 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
13893
13894         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
13895         overlap check.
13896
13897 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
13898
13899         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
13900         (count_type_elements): Delete.
13901         (complete_ctor_at_level_p): Declare.
13902         * expr.c (flexible_array_member_p): New function, split out from...
13903         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
13904         parameter with for_ctor_p.  When for_ctor_p is true, return the
13905         number of elements that should appear in the top-level constructor,
13906         otherwise return an estimate of the number of scalars.
13907         (categorize_ctor_elements): Replace p_must_clear with p_complete.
13908         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
13909         (complete_ctor_at_level_p): New function, borrowing union logic
13910         from old categorize_ctor_elements_1.
13911         (mostly_zeros_p): Return true if the constructor is not complete.
13912         (all_zeros_p): Update call to categorize_ctor_elements.
13913         * gimplify.c (gimplify_init_constructor): Update call to
13914         categorize_ctor_elements.  Don't call count_type_elements.
13915         Unconditionally prevent clearing for variable-sized types,
13916         otherwise rely on categorize_ctor_elements to detect
13917         incomplete initializers.
13918
13919 2011-07-13  Richard Guenther  <rguenther@suse.de>
13920
13921         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
13922         the final type is integral.
13923
13924 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
13925
13926         * sched-int.h (struct _dep): Add member cost.
13927         (DEP_COST, UNKNOWN_DEP_COST): New macros.
13928         * sched-deps.c (init_dep_1): Initialize DEP_COST.
13929         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
13930         (sched_change_pattern): Reset it for dependent insns.
13931
13932 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13933
13934         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
13935         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
13936         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
13937         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
13938         (CRT0_S, MCRT0_S): Remove.
13939         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
13940         Remove.
13941         (s-crt0): Remove.
13942         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
13943
13944 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
13945
13946         * cse.c (insert_with_costs): Put semi-colon after empty loop body
13947         on the next line.
13948         * emit-rtl.c (push_to_sequence): Likewise.
13949         * haifa-sched.c (max_issue): Likewise.
13950         * matrix-reorg.c (add_allocation_site): Likewise.
13951         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
13952         * reload.c (alternative_allows_const_pool_ref): Likewise.
13953         * sched-rgn.c (rgn_add_block): Likewise.
13954         (rgn_fix_recovery_cfg): Likewise.
13955         * tree.c (attribute_list_contained): Likewise.
13956
13957 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
13958
13959         * config/i386/i386.c: Tidy processor feature bitmasks.
13960         (m_P4_NOCONA): New.
13961
13962 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
13963
13964         PR rtl-opt/49474
13965         * cprop.c (find_implicit_sets): Correct the condition.
13966
13967 2011-07-12  Richard Henderson  <rth@redhat.com>
13968
13969         PR target/49713
13970         * dwarf2out.h (dwarf_frame_regnum): Remove.
13971         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
13972         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
13973         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
13974         (execute_dwarf2_frame): Initialize them.
13975         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
13976         users of the macros with the variables.
13977         (expand_builtin_dwarf_sp_column): Revert last change.
13978         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
13979         result of DWARF_FRAME_REGNUM into a local variable.
13980
13981 2011-07-12  Richard Henderson  <rth@redhat.com>
13982
13983         PR target/49714
13984         * config/i386/i386.c (x86_output_mi_thunk): Use
13985         machopic_indirect_call_target instead of machopic_indirection_name
13986         directly.
13987
13988 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
13989             Eric Botcazou  <ebotcazou@adacore.com>
13990
13991         * prefix.h: Wrap up in extern "C" block.
13992
13993 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
13994
13995         AMD bdver2 Enablement
13996         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
13997         (case ${target}): Add bdver2.
13998         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13999         -march=native recognize bdver2 processors.
14000         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14001         bdver2 def_and_undef
14002         * config/i386/i386.c (struct processor_costs bdver2_cost): New
14003         bdver2 cost table.
14004         (m_BDVER2): New definition.
14005         (m_AMD_MULTIPLE): Includes m_BDVER2.
14006         (initial_ix86_tune_features): Add bdver2 tuning.
14007         (processor_target_table): Add bdver2 entry.
14008         (static const char *const cpu_names): Add bdver2 entry.
14009         (ix86_option_override_internal): Add bdver2 instruction sets.
14010         (ix86_issue_rate): Add bdver2.
14011         (ix86_adjust_cost): Add bdver2.
14012         (has_dispatch): Add bdver2.
14013         * config/i386/i386.h (TARGET_BDVER2): New definition.
14014         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
14015         (enum processor_type): Add PROCESSOR_BDVER2.
14016         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
14017         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
14018         description.
14019
14020 2011-07-12  Richard Henderson  <rth@redhat.com>
14021
14022         PR target/49714
14023         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
14024         destination address in memory on some paths.
14025
14026 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
14027
14028         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
14029         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
14030         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
14031         * function.c (locate_and_pad_parm): Take it into account.
14032         * target.def (function_arg_round_boundary): New hook.
14033         * targhooks.c (default_function_arg_round_boundary): New function.
14034         * targhooks.h (default_function_arg_round_boundary): Declare.
14035         * doc/tm.texi: Regenerate.
14036
14037 2011-07-12  Richard Guenther  <rguenther@suse.de>
14038
14039         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
14040         Do not perform no-op changes.
14041
14042 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
14043
14044         * config/arm/predicates.md (neon_struct_operand): Make a normal
14045         predicate.
14046         (neon_struct_or_register_operand): New predicate.
14047         * config/arm/neon.md (movmisalign<mode>): Replace predicates
14048         with neon_struct_or_register_operand.
14049         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
14050         neon_struct_operand instead of memory_operand.
14051
14052 2011-07-12  Martin Jambor  <mjambor@suse.cz>
14053
14054         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
14055         * cgraph.c (cgraph_get_node_or_alias): Removed.
14056         (change_decl_assembler_name): Changed all calls to
14057         cgraph_get_node_or_alias to a call to cgraph_get_node.
14058         (cgraph_make_decl_local): Likewise.
14059         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
14060         * varasm.c (default_binds_local_p_1): Likewise.
14061         (decl_binds_to_current_def_p): Likewise.
14062
14063 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
14064
14065         PR tree-optimization/49712
14066         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
14067
14068 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
14069
14070         * genautomata.c (add_arc): Return void.  All callers changed.
14071         (make_automaton): Remove dead code.
14072
14073 2011-07-11  Richard Henderson  <rth@redhat.com>
14074
14075         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
14076         (DW_FRAME_POINTER_REGNUM): New.
14077         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
14078         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
14079         (dwf_regno): New.
14080         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
14081         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
14082         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
14083         Use it.
14084         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
14085         * dwarf2out.h (dwarf_frame_regnum): New.
14086         (struct cfa_loc): Document the domain of the reg member.
14087
14088 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
14089
14090         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
14091         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
14092
14093 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
14094
14095         PR debug/49676
14096         * dwarf2out.c (int_shift_loc_descriptor): New function.
14097         (int_loc_descriptor): If shorter, emit i as
14098         (i >> shift), shift, DW_OP_shl for suitable shift value.
14099         Similarly, try to optimize large negative values using
14100         DW_OP_neg of a positive value if shorter.
14101         (size_of_int_shift_loc_descriptor): New function.
14102         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
14103         changes.
14104         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
14105         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
14106         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
14107         is shorter.
14108         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
14109         addend as added DW_OP_plus if it is shorter.
14110
14111 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14112
14113         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
14114         (DTORS_SECTION_ASM_OP): Define.
14115
14116 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14117
14118         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
14119         * config/t-dfprules: Move to ../libgcc/config.
14120         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
14121         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
14122         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
14123         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
14124         Likewise.
14125         (i[34567]86-*-cygwin*): Likewise.
14126         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
14127         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
14128         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
14129         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
14130         D64PBIT_FUNCS, D128PBIT_FUNCS.
14131
14132 2011-07-11  Richard Guenther  <rguenther@suse.de>
14133
14134         * tree-vrp.c (simplify_conversion_using_ranges): Manually
14135         translate the source value-range through the conversion chain.
14136
14137 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
14138
14139         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
14140
14141 2011-07-11  Arthur Loiret  <aloiret@debian.org>
14142
14143         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
14144         a bi-arch compiler defaulting to 31-bit. In this case:
14145         (tmake_file): Add s390/t-linux64.
14146         * doc/install.texi: Add s390-linux to the list of targets supporting
14147         --enable-targets=all.
14148
14149 2011-07-11  Arthur Loiret  <aloiret@debian.org>
14150             Matthias Klose <doko@debian.org>
14151
14152         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
14153         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
14154         (tm_file): Add mips/linux64.h.
14155         (tmake_file): Add mips/t-linux64.
14156         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
14157         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
14158         instead of hardcoded mabi=n32.
14159         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
14160         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
14161         convention.
14162
14163 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14164
14165         * passes.c (init_optimization_passes): Add invariant motion pass
14166         after induction variable optimization.
14167
14168 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
14169
14170         PR target/39633
14171         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
14172         offsets 1..5 set cc0 in a usable way.
14173
14174 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
14175
14176         * tree.h (call_expr_arg): Remove.
14177         (call_expr_argp): Likewise.
14178
14179 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
14180
14181         * config/sparc/sparc.md (save_register_window_1): Rename to...
14182         (window_save): ...this.
14183         * config/sparc/sparc.c (emit_save_register_window): Rename to...
14184         (emit_window_save): ...this.
14185         (sparc_expand_prologue): Adjust to above renaming.
14186
14187 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
14188
14189         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
14190         of movabs for x32.
14191
14192 2011-07-10  Richard Henderson  <rth@redhat.com>
14193
14194         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
14195         run final, instead of emitting text directly.
14196
14197 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
14198
14199         * config/i386/i386.c (ix86_option_override_internal): Turn on
14200         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
14201         small PIC models for TARGET_X32.
14202
14203 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
14204
14205         PR target/49684
14206         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
14207         $(LIBGCC2_CFLAGS).
14208
14209         PR bootstrap/49680
14210         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
14211         stray notes and debug insns by using prev_nonnote_nondebug_insn
14212         instead of PREV_INSN.
14213
14214 2011-07-09  Richard Henderson  <rth@redhat.com>
14215
14216         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
14217         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
14218         * dwarf2out.c: ... here.
14219         (output_all_cfis): Remove.
14220         (dwarf2out_switch_text_section): Use output_cfis directly.
14221         (size_of_locs): Export.
14222         (output_loc_sequence, output_loc_sequence_raw): Export.
14223         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
14224         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
14225         output_cfa_loc_raw): Move to ...
14226         * dwarfcfi.c: ... here.
14227         * dwarf2out.h: Update decls.
14228
14229 2011-07-09  Richard Henderson  <rth@redhat.com>
14230
14231         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
14232         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
14233         * dwarf2cfi.c: ... here.
14234         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
14235         (DWARF_ROUND, DWARF_CIE_ID): Remove.
14236         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
14237         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
14238         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
14239
14240 2011-07-09  Richard Henderson  <rth@redhat.com>
14241
14242         * dwarf2cfi.c (cie_return_save): New.
14243         (queue_reg_save): Use compare_reg_or_pc.
14244         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
14245         (dwarf2out_frame_debug_expr): Likewise.
14246         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
14247         (initial_return_save): Likewise.
14248         (execute_dwarf2_frame): Save and restore initial return save from
14249         the cie to the fde.
14250         * config/mips/mips.c (mips_frame_set): Remove special case for
14251         DWARF_FRAME_RETURN_COLUMN.
14252
14253 2011-07-09  Richard Henderson  <rth@redhat.com>
14254
14255         * dwarf2cfi.c (lookup_cfa): Remove.
14256         (execute_dwarf2_frame): Assert queues are empty on entry.
14257         Setup initial cfa directly, not via lookup_cfa.
14258         Don't clear args_size state here.
14259
14260 2011-07-09  Richard Henderson  <rth@redhat.com>
14261
14262         * dwarf2cfi.c (add_cfi_vec): New.
14263         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
14264         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
14265         (execute_dwarf2_frame): Set add_cfi_vec.
14266
14267 2011-07-09  Richard Henderson  <rth@redhat.com>
14268
14269         * defaults.h (ASM_COMMENT_START): Move here...
14270         * dwarf2asm.c: ... from here.
14271         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
14272         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
14273         * varasm.c: Likewise.
14274
14275 2011-07-09  Richard Henderson  <rth@redhat.com>
14276
14277         PR debug/49686
14278         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
14279         (create_cfi_notes): ... do it here instead.
14280
14281 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
14282
14283         PR debug/49676
14284         * dwarf2out.c (size_of_int_loc_descriptor): New function.
14285         (address_of_int_loc_descriptor): Use it.
14286         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
14287
14288 2011-07-09  Richard Henderson  <rth@redhat.com>
14289
14290         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
14291         (prologue, epilogue): New.
14292         (return, *rts): New.
14293         (blockage, setd, seti): New.
14294         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
14295         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
14296         (pdp11_saved_regno): New.
14297         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
14298         generate rtl instead of text.
14299         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
14300         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
14301         * config/pdp11/pdp11-protos.h: Update.
14302
14303 2011-07-09  Richard Henderson  <rth@redhat.com>
14304
14305         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
14306         try to insert an rtl prologue here.
14307         (rs6000_output_function_epilogue): Similarly.
14308         * config/rs6000/rs6000.md (prologue): Emit a barrier to
14309         satisfy !TARGET_SCHED_PROLOG.
14310         (epilogue, sibcall_epilogue): Likewise.
14311
14312 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
14313
14314         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
14315         (FP_REG_P): Delete.
14316         (IN_OR_GLOBAL_P): Likewise.
14317
14318 2011-07-08  Jason Merrill  <jason@redhat.com>
14319
14320         PR c++/45437
14321         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
14322         compound assignment.
14323
14324         * cgraph.c (cgraph_add_to_same_comdat_group): New.
14325         * cgraph.h: Declare it.
14326         * ipa.c (function_and_variable_visibility): Make sure thunks
14327         have the right visibility.
14328
14329 2011-07-08  Richard Henderson  <rth@redhat.com>
14330
14331         PR bootstrap/49680
14332         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
14333         any tablejump vector.
14334
14335         PR bootstrap/49680
14336         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
14337         end of the prologue.
14338
14339 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
14340
14341         PR target/49621
14342         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
14343         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
14344         * config/rs6000/vector.md (vector_select_<mode>,
14345         vector_select_<mode>_uns): Change second operand of NE to
14346         CONST0_RTX (<MODE>mode) instead of const0_rtx.
14347         * config/rs6000/altivec.md (*altivec_vsel<mode>,
14348         *altivec_vsel<mode>_uns): Expect second operand of NE to be
14349         zero_constant of the corresponding vector mode.
14350         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
14351         Likewise.
14352
14353 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
14354
14355         * graphite-dependences.c (build_alias_set_powerset): Remove
14356         continue from loop, add one more assert.
14357
14358 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
14359
14360         PR target/46779
14361         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
14362         In particular, allow 8-bit values in r28 and r29.
14363         (avr_hard_regno_scratch_ok): Disallow any register that might be
14364         part of the frame pointer.
14365         (avr_hard_regno_rename_ok): Same.
14366         (avr_legitimate_address_p): Don't allow SUBREGs.
14367
14368 2011-07-08  Julian Brown  <julian@codesourcery.com>
14369
14370         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
14371         big-endian mode.
14372         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
14373         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
14374         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
14375         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
14376         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
14377         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
14378         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
14379         registers in big-endian mode.
14380
14381 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
14382
14383         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
14384         in terms of another.
14385         (write_attr_value): Write a cast if necessary.
14386
14387         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
14388         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
14389         (REG_WORDS_BIG_ENDIAN): Document.
14390         * doc/tm.texi: Regenerate.
14391         * reload.c (operands_match_p): Take it into account.
14392         (reload_adjust_reg_for_mode): Likewise.
14393         * rtlanal.c (subreg_get_info): Likewise.
14394
14395 2011-07-08  Richard Guenther  <rguenther@suse.de>
14396
14397         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
14398         folding.
14399
14400 2011-07-08  Kai Tietz  <ktietz@redhat.com>
14401
14402         * fold-const.c (fold_truth_andor): Factored out truth_andor
14403         label from fold_binary as function.
14404         (fold_binary_loc): Replace truth_andor lable
14405         by function fold_truth_andor.
14406
14407 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
14408
14409         PR middle-end/49519
14410         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
14411         check if address is stored in register. If so - give up.
14412         (check_sibcall_argument_overlap_1): Do not perform check of
14413         overlapping when it is call to address.
14414
14415 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
14416
14417         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
14418         of magic '31'.
14419
14420 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
14421
14422         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
14423         GET_MODE_BITSIZE where appropriate.
14424         (widen_leading, expand_parity, expand_ctz, expand_ffs,
14425         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
14426         expand_float, expand_fix): Likewise.
14427         * expr.c (convert_move, convert_modes, expand_expr_real_2,
14428         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
14429         * stor-layout.c (get_mode_bounds): Likewise.
14430         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
14431         Likewise.
14432         * convert.c (convert_to_integer): Likewise.
14433         * expmed.c (expand_shift_1): Likewise.
14434
14435         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
14436         a bitsize.
14437
14438         * optabs.c (expand_binop): Tighten conditions for doubleword
14439         expansions.
14440         (widen_bswap): Assert that mode bitsize and precision are the same.
14441         * stor-layout.c (get_best_mode): Skip modes that have lower
14442         precision than bitsize.
14443         * recog.c (simplify_while_replacing): Assert that bitsize and
14444         precision are the same.
14445
14446 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14447
14448         * Makefile.in (LIBGCOV): Remove.
14449         (libgcc.mvars): Remove LIBGCOV.
14450         * libgov.c: Move to ../libgcc.
14451
14452 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14453
14454         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
14455
14456 2011-07-08  Martin Jambor  <mjambor@suse.cz>
14457
14458         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
14459         is too big for total scalarization.
14460
14461 2011-07-07  Richard Henderson  <rth@redhat.com>
14462
14463         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
14464         (DBX_DEBUGGING_INFO): Undef.
14465
14466 2011-07-07  Richard Henderson  <rth@redhat.com>
14467
14468         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
14469         Handle some opcodes specially for debugging.
14470         * print-rtl.c: Include dwarf2out.h
14471         (print_rtx): Handle NOTE_INSN_CFI.
14472         * Makefile.in (print-rtl.o): Update.
14473
14474 2011-07-07  Richard Henderson  <rth@redhat.com>
14475
14476         * tree-pass.h (pass_dwarf2_frame): Declare.
14477         * passes.c (init_optimization_passes): Add it.
14478         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
14479         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
14480         make static, do not call add_cfis_to_fde.
14481         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
14482         dwarf2out_frame_init): Merge into...
14483         (execute_dwarf2_frame): ... here.  New function.
14484         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
14485         saved_do_cfi_asm to a tri-state variable.
14486         (gate_dwarf2_frame, pass_dwarf2_frame): New.
14487         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
14488         if it has yet to be done.  Don't call dwarf2cfi_function_init.
14489         * dwarf2out.h, debug.h: Update decls.
14490         * final.c (final_start_function): Don't call
14491         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
14492         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
14493         * toplev.c (lang_dependent_init): Likewise.
14494
14495 2011-07-07  Richard Henderson  <rth@redhat.com>
14496
14497         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
14498         FDE_TABLE_INCREMENT): Replace with...
14499         (fde_vec): ... this, a new vector.
14500         (current_fde): Remove.  Replace all users with cfun->fde.
14501         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
14502         (size_of_aranges, dwarf2out_finish): Likewise.
14503         (dwarf2out_alloc_current_fde): Break out from ...
14504         (dwarf2out_begin_prologue): ... here.
14505         (dwarf2out_frame_init): Remove.
14506         * dwarf2cfi.c: Update all users of current_fde.
14507         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
14508         * dwarf2out.h: Update decls.
14509         (dw_fde_node): Add fde_index member.
14510         * function.h (struct function): Add fde member.
14511
14512 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
14513             Richard Henderson  <rth@redhat.com>
14514
14515         * dwarf2cfi.c (add_cfi): Remove.
14516         (dwarf2out_cfi_label): Remove force argument.  Only generate the
14517         label name.
14518         (add_fde_cfi): Simplify the different code paths.
14519         (add_cie_cfi): New.
14520         (old_cfa, old_cfa_remember): New.
14521         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
14522         (last_reg_save_label): Remove.
14523         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
14524         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
14525         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
14526         dwarf2out_frame_debug_cfa_expression,
14527         dwarf2out_frame_debug_cfa_restore,
14528         dwarf2out_frame_debug_cfa_window_save,
14529         dwarf2out_frame_debug_expr): Remove label parameter.
14530         (cfi_label_required_p, add_cfis_to_fde): New.
14531         (dwarf2out_frame_debug_after_prologue): New.
14532         (dwarf2cfi_frame_init): Initialize old_cfa.
14533         (dwarf2out_frame_debug_restore_state): Likewise.
14534         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
14535         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
14536         * final.c (final_start_function): Call
14537         dwarf2out_frame_debug_after_prologue.
14538
14539 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
14540             Richard Henderson  <rth@redhat.com>
14541
14542         * dwarf2cfi.c (cfi_insn): New.
14543         (dwarf2out_cfi_label): Don't emit cfi label here.
14544         (add_fde_cfi): Create a NOTE_INSN_CFI.
14545         (dwarf2out_frame_debug): Setup cfi_insn.
14546         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
14547         (dwarf2out_cfi_begin_epilogue): Make static.
14548         (dwarf2out_frame_debug_restore_state): Make static.
14549         * dwarf2out.c (output_cfi_directive): Make static.
14550         (dwarf2out_emit_cfi): New.
14551         * dwarf2out.h: Update.
14552         * final.c (final): Remove CFI notes.
14553         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
14554         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
14555         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
14556         * insn-notes.def (NOTE_INSN_CFI): New.
14557         (NOTE_INSN_CFI_LABEL): New.
14558         * rtl.h (union rtunion_def): Add rt_cfi member.
14559         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
14560
14561 2011-07-07  Richard Henderson  <rth@redhat.com>
14562
14563         * dwarf2cfi.c: New file.
14564         * Makefile.in (OBJS): Add it.
14565         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
14566         * gengtype.c (open_base_files): Include dwarf2out.h.
14567         * coretypes.h (enum var_init_status): Move from ...
14568         * rtl.h: ... here.
14569         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
14570         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
14571         expand_builtin_dwarf_sp_column, init_return_column_size,
14572         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
14573         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
14574         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
14575         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
14576         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
14577         compute_barrier_args_size, dwarf2out_args_size,
14578         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
14579         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
14580         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
14581         queue_reg_save, dwarf2out_flush_queued_reg_saves,
14582         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
14583         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
14584         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
14585         dwarf2out_frame_debug_cfa_expression,
14586         dwarf2out_frame_debug_cfa_restore,
14587         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
14588         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
14589         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
14590         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
14591         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
14592         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
14593         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
14594         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
14595         dw_loc_descr_node): Move to dwarf2out.h.
14596         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
14597         mem_loc_descriptor): Export.
14598         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
14599         (dwarf2out_frame_init): Extract CIE generation code to
14600         dwarf2cfi_frame_init.
14601
14602 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
14603
14604         PR target/49660
14605         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
14606         MASK_V8PLUS, remove commented out flag and reorder.
14607
14608 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
14609
14610         PR c/49644
14611         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
14612         one non-complex and one complex argument, call c_save_expr on both
14613         operands.
14614
14615 2011-07-07  Martin Jambor  <mjambor@suse.cz>
14616
14617         PR middle-end/49495
14618         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
14619         (verify_cgraph_node): Some functinality moved to
14620         verify_edge_corresponds_to_fndecl, call it.
14621
14622 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
14623
14624         * config.gcc (*local*): Remove.
14625         * doc/install-old.texi: Don't mention local configurations.
14626
14627 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
14628
14629         PR debug/49522
14630         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
14631         referencing debug insns that have been reset.
14632         (dead_debug_insert_before): Don't assert reg is non-NULL,
14633         instead return immediately if it is NULL.
14634
14635 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
14636
14637         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
14638
14639 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
14640
14641         * hw-doloop.c: New file.
14642         * hw-doloop.h: New file.
14643         * Makefile.in (OBJS): Add hw-doloop.o.
14644         (hw-doloop.o): New rule.
14645         ($(obj_out_file)): Add hw-doloop.h dependency.
14646         * config/bfin/bfin.c: Include "hw-doloop.h".
14647         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
14648         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
14649         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
14650         type changed to hwloop_info.  Return bool, true if the loop was
14651         successfully optimized.  Remove code that was moved to
14652         hw-doloop.c, and adjust other parts.
14653         (hwloop_fail): New static function, containing parts that used
14654         to be in bfin_optimize_loop.
14655         (bfin_discover_loop, bfin_discover_loops, free_loops,
14656         bfin_reorder_loops): Remove.
14657         (hwloop_pattern_reg): New static function.
14658         (bfin_doloop_hooks): New variable.
14659         (bfin_reorg_loops): Remove most code, call reorg_loops.
14660         * config/bfin/bfin.md (doloop_end splitter): Also enable if
14661         loop counter is a memory_operand.
14662
14663 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14664
14665         * config.gcc: Support --with-multilib-list for x86 Linux targets.
14666
14667         * configure.ac: Mention x86-64 for --with-multilib-list.
14668         * configure: Regenerated.
14669
14670         * config/i386/gnu-user64.h (SPEC_64): Support x32.
14671         (SPEC_32): Likewise.
14672         (ASM_SPEC): Likewise.
14673         (LINK_SPEC): Likewise.
14674         (TARGET_THREAD_SSP_OFFSET): Likewise.
14675         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
14676         (SPEC_X32): New.
14677
14678         * config/i386/i386.h (TARGET_X32): New.
14679         (TARGET_LP64): New.
14680         (LONG_TYPE_SIZE): Likewise.
14681         (POINTER_SIZE): Likewise.
14682         (POINTERS_EXTEND_UNSIGNED): Likewise.
14683         (OPT_ARCH64): Support x32.
14684         (OPT_ARCH32): Likewise.
14685
14686         * config/i386/i386.opt (mx32): New.
14687
14688         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
14689         (GLIBC_DYNAMIC_LINKERX32): Likewise.
14690         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
14691         (GLIBC_DYNAMIC_LINKERX32): Likewise.
14692
14693         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
14694         (BIONIC_DYNAMIC_LINKERX32): Likewise.
14695         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
14696
14697         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
14698
14699         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
14700
14701         * doc/invoke.texi: Document -mx32.
14702
14703 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
14704
14705         * doc/invoke.texi (mwords-little-endian): Deprecate.
14706         * config/arm/arm.opt (mwords-little-endian): Likewise.
14707         * config/arm/arm.c (arm_option_override): Warn about the deprecation
14708         of -mwords-little-endian.
14709
14710 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
14711
14712         * reload1.c (choose_reload_regs): Use mode sizes to check whether
14713         an old reload register completely defines the required value.
14714
14715 2011-07-07  Richard Guenther  <rguenther@suse.de>
14716
14717         * fold-const.c (fold_unary_loc): Do not strip sign-changes
14718         for NEGATE_EXPR.
14719
14720 2011-07-07  Richard Guenther  <rguenther@suse.de>
14721
14722         * tree-vrp.c (simplify_conversion_using_ranges): New function.
14723         (simplify_stmt_using_ranges): Call it.
14724
14725 2011-07-07  Kai Tietz  <ktietz@redhat.com>
14726
14727         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
14728         (lookup_logical_inverted_value): Likewise.
14729         (simplify_bitwise_binary_1): Likewise.
14730         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
14731
14732 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
14733
14734         * gcc.c (%[Spec]): Don't document.
14735         (struct spec_list): Update comment.
14736         (do_spec_1): Don't handle %[Spec].
14737         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
14738
14739 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
14740
14741         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
14742         default based on TARGET_ASM_NAMED_SECTION.
14743         * common/common-target.def (have_named_sections): Default to true.
14744         * common/config/default-common.c: Don't include tm.h.
14745         * common/config/picochip/picochip-common.c
14746         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
14747         * common/config/m32c/m32c-common.c: Remove.
14748         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
14749         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14750         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14751         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14752         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14753         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14754         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14755
14756 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
14757
14758         PR middle-end/49640
14759         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
14760         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
14761
14762 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14763
14764         PR libmudflap/49550
14765         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
14766
14767 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14768
14769         PR target/39150
14770         * configure.ac (gcc_cv_as_hidden): Also accept
14771         x86_64-*-solaris2.1[0-9]*.
14772         (gcc_cv_as_cfi_directive): Likewise.
14773         (gcc_cv_as_comdat_group_group): Likewise.
14774         (set_have_as_tls): Likewise.
14775         * configure: Regenerate.
14776         * config.gcc (i[34567]86-*-solaris2*): Also handle
14777         x86_64-*-solaris2.1[0-9]*.
14778         * config.host (i[34567]86-*-solaris2*): Likewise.
14779         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
14780         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
14781         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
14782         (TARGET_LD_EMULATION): Use it.
14783         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
14784         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
14785         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
14786         (ASM_CPU64_DEFAULT_SPEC): Define.
14787         (ASM_CPU_SPEC): Use %(asm_cpu_default).
14788         (ASM_SPEC): Redefine.
14789         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
14790         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
14791         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
14792         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
14793         configuration.
14794         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
14795
14796 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14797
14798         * config/sol2.h (ASM_SPEC): Split into ...
14799         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
14800         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
14801         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
14802         (ASM_SPEC): Use ASM_SPEC_BASE.
14803         * config/sparc/sol2.h (ASM_SPEC): Redefine.
14804
14805 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
14806
14807         * config/avr/avr.md (*reload_insi): Change predicate #1 to
14808         const_int_operand.  Ditto for peep2 producing this insn.
14809         Add argument to output_reload_insisf call.
14810         (*movsi,*movsf): Add argument to output_movsisf call.
14811         (*reload_insf): New insn and new peep2 to produce it.
14812         * config/avr/avr-protos.h (output_movsisf): Change prototype.
14813         (output_reload_insisf): Change prototype.
14814         * config/avr/avr.c (avr_asm_len): New function.
14815         (output_reload_insisf): Rewrite.
14816         (output_movsisf): Change prototype.  output_reload_insisf for
14817         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
14818         (adjust_insn_length): Add argument to output_movsisf and
14819         output_reload_insisf call.
14820
14821 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
14822
14823         * emit-rtl.c (paradoxical_subreg_p): New function.
14824         * rtl.h (paradoxical_subreg_p): Declare.
14825         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
14826         apply_distributive_law, simplify_comparison, simplify_set): Use it.
14827         * cse.c (record_jump_cond, cse_insn): Likewise.
14828         * expr.c (force_operand): Likewise.
14829         * rtlanal.c (num_sign_bit_copies1): Likewise.
14830         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
14831         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
14832         (push_reload): Use precision to check for paradoxical subregs.
14833         * expmed.c (extract_bit_field_1): Likewise.
14834
14835         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
14836         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
14837         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
14838         simplify_set, simplify_logical, expand_compound_operation,
14839         make_extraction, force_to_mode, if_then_else_cond, extended_count,
14840         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
14841         record_value_for_reg): Likewise.
14842         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
14843         * simplify-rtx. c (simplify_unary_operation_1,
14844         simplify_binary_operation_1, simplify_const_relational_operation):
14845         Likewise.
14846
14847         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
14848         instead of GET_MODE_BITSIZE where appropriate.
14849         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
14850         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
14851         init_num_sign_bit_copies_in_rep): Likewise.
14852         * cse.c (fold_rtx, cse_insn): Likewise.
14853         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
14854         * simplify-rtx.c (simplify_unary_operation_1,
14855         simplify_const_unary_operation, simplify_binary_operation_1,
14856         simplify_const_binary_operation, simplify_ternary_operation,
14857         simplify_const_relational_operation, simplify_subreg): Likewise.
14858         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
14859         simplify_if_then_else, simplify_set, expand_compound_operation,
14860         expand_field_assignment, make_extraction, if_then_else_cond,
14861         make_compound_operation, force_to_mode, make_field_assignment,
14862         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
14863         extended_count, try_widen_shift_mode, simplify_shift_const_1,
14864         simplify_comparison, record_promoted_value, simplify_compare_const,
14865         record_dead_and_set_regs_1): Likewise.
14866
14867         Revert:
14868         * simplify-rtx.c (simplify_const_binary_operation): Use the
14869         shift_truncation_mask hook instead of performing modulo by width.
14870         Compare against mode precision, not bitsize.
14871         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
14872         Use shift_truncation_mask instead of constructing the value manually.
14873
14874 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
14875
14876         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
14877         declaration.
14878         (rs6000_save_toc_in_prologue_p): Ditto.
14879
14880         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
14881         up the static chain (r11) during indirect function calls.
14882         (-msave-toc-indirect): New undocumented debug switch.
14883
14884         * config/rs6000/rs6000.c (struct machine_function): Add
14885         save_toc_in_prologue field to note whether the prologue needs to
14886         save the TOC value in the reserved stack location.
14887         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
14888         to save the TOC in the prologue, do so.
14889         (rs6000_trampoline_init): Don't allow creating AIX style
14890         trampolines if -mno-r11 is in effect.
14891         (rs6000_call_indirect_aix): New function to create AIX style
14892         indirect calls, adding support for -mno-r11 to suppress loading
14893         the static chain, and saving the TOC in the prologue instead of
14894         the call body.
14895         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
14896         TOC in the prologue.
14897
14898         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
14899         register numbers.
14900         (TOC_REGNUM): Ditto.
14901         (STATIC_CHAIN_REGNUM): Ditto.
14902         (ARG_POINTER_REGNUM): Ditto.
14903         (SFP_REGNO): Delete, unused.
14904         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
14905         function descriptor offsets.
14906         (TOC_SAVE_OFFSET_64BIT): Ditto.
14907         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
14908         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
14909         (AIX_FUNC_DESC_SC_32BIT): Ditto.
14910         (AIX_FUNC_DESC_SC_64BIT): Ditto.
14911         (ptrload): New mode attribute for the appropriate load of a pointer.
14912         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
14913         (call_indirect_aix64): Ditto.
14914         (call_value_indirect_aix32): Ditto.
14915         (call_value_indirect_aix64): Ditto.
14916         (call_indirect_nonlocal_aix32_internal): Ditto.
14917         (call_indirect_nonlocal_aix32): Ditto.
14918         (call_indirect_nonlocal_aix64_internal): Ditto.
14919         (call_indirect_nonlocal_aix64): Ditto.
14920         (call): Rewrite AIX indirect function calls.  Add support for
14921         eliminating the static chain, and for moving the save of the TOC
14922         to the function prologue.
14923         (call_value): Ditto.
14924         (call_indirect_aix<ptrsize>): Ditto.
14925         (call_indirect_aix<ptrsize>_internal): Ditto.
14926         (call_indirect_aix<ptrsize>_internal2): Ditto.
14927         (call_indirect_aix<ptrsize>_nor11): Ditto.
14928         (call_value_indirect_aix<ptrsize>): Ditto.
14929         (call_value_indirect_aix<ptrsize>_internal): Ditto.
14930         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
14931         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
14932         (call_nonlocal_aix32): Relocate in the rs6000.md file.
14933         (call_nonlocal_aix64): Ditto.
14934
14935         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
14936         -mno-r11 documentation.
14937
14938 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
14939
14940         PR other/49658
14941         * doc/extend.texi (Compound Literals): Fix typo.
14942
14943 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
14944
14945         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
14946
14947 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
14948
14949         * configure.ac (plugin-version.h): Generate
14950         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
14951         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
14952         macros.
14953
14954         * configure: Regenerate.
14955
14956         * doc/plugins.texi (Building GCC plugins): Mention
14957         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
14958
14959 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
14960
14961         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
14962         * combine.c (make_extraction, gen_lowpart_or_truncate,
14963         apply_distributive_law, simplify_comparison,
14964         reg_truncated_to_mode, record_truncated_value): Use it.
14965         * cse.c (notreg_cost): Likewise.
14966         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
14967         * expr.c (convert_move, convert_modes): Likewise.
14968         * optabs.c (expand_binop, expand_unop): Likewise.
14969         * postreload.c (move2add_last_label): Likewise.
14970         * regmove.c (optimize_reg_copy_3): Likewise.
14971         * rtlhooks.c (gen_lowpart_general): Likewise.
14972         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
14973
14974 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
14975
14976         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
14977
14978 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
14979
14980         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
14981         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
14982         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
14983         (simplify_const_unary_operation, simplify_binary_operation_1,
14984         simplify_const_binary_operation, simplify_const_relational_operation):
14985         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
14986         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
14987         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
14988         simplify_shift_const_1, simplify_comparison): Likewise.
14989         * expr.c (convert_modes): Likewise.
14990         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
14991         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
14992         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
14993
14994         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
14995
14996 2011-07-06  Richard Guenther  <rguenther@suse.de>
14997
14998         PR tree-optimization/49645
14999         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
15000         register variables.
15001         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
15002         in type qualification here ...
15003         (copy_reference_ops_from_ref): ... not here.
15004         (vn_reference_lookup_3): ... or here.
15005         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
15006         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
15007
15008 2011-07-06  Ian Lance Taylor  <iant@google.com>
15009
15010         * doc/install.texi (Configuration): It's
15011         --enable-gnu-indirect-function, not --enable-indirect-function.
15012
15013 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
15014
15015         * simplify-rtx.c (simplify_const_binary_operation): Use the
15016         shift_truncation_mask hook instead of performing modulo by width.
15017         Compare against mode precision, not bitsize.
15018         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
15019         Use shift_truncation_mask instead of constructing the value manually.
15020
15021 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
15022
15023         PR middle-end/47383
15024         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
15025         address computation and convert to address_mode if needed.
15026
15027 2011-07-06  Richard Guenther  <rguenther@suse.de>
15028
15029         * tree.c (build_common_tree_nodes_2): Merge with
15030         build_common_tree_nodes.
15031         * tree.h (build_common_tree_nodes): Adjust prototype.
15032         (build_common_tree_nodes_2): Remove.
15033         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
15034         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
15035
15036 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
15037
15038         PR tree-optimization/49618
15039         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
15040         t recurse on the decl.
15041         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
15042         return true if expr isn't known to be defined in current
15043         TU or some other LTO partition.
15044
15045 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
15046
15047         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
15048         override CASE_VALUES_THRESHOLD.
15049
15050         * stmt.c (toplevel): Include params.h.
15051         (case_values_threshold): Use the --param case-values-threshold
15052         value if non-zero, otherwise use machine dependent value.
15053         (expand_case): Use case_values_threshold.
15054
15055         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
15056
15057         * doc/invoke.texi (--param case-values-threshold): Document.
15058
15059 2011-07-05  Richard Henderson  <rth@redhat.com>
15060
15061         * dwarf2out.c (dwarf2out_cfi_label): Make static.
15062         (dwarf2out_flush_queued_reg_saves): Make static.
15063         (dwarf2out_reg_save): Remove.
15064         (dwarf2out_return_save): Remove.
15065         (dwarf2out_return_reg): Remove.
15066         (dwarf2out_reg_save_reg): Remove.
15067         (dwarf2out_def_cfa): Merge into ...
15068         (dwarf2out_frame_init): ... here.
15069         * dwarf2out.h, tree.h: Remove declarations as necessary.
15070
15071 2011-07-05  Richard Henderson  <rth@redhat.com>
15072
15073         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
15074         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
15075         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
15076         the alloc insn.
15077
15078         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
15079         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
15080         (process_epilogue): Don't call dwarf2out_def_cfa.
15081
15082         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
15083         indicate the return address save.
15084         (process_cfa_register): Likewise.
15085
15086         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
15087         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
15088
15089         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
15090         for ar.pfs save at alloc insn.
15091
15092 2011-07-05  Richard Henderson  <rth@redhat.com>
15093
15094         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
15095         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
15096         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
15097         stack pointer save.
15098         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
15099         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
15100         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
15101         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
15102
15103 2011-07-05  Richard Henderson  <rth@redhat.com>
15104
15105         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
15106         VUNSPEC_* constants here instead of via define_constants.
15107         (VUNSPEC_PEM): New constant.
15108         (procedure_entry_mask): New insn.
15109         (prologue): New expander.
15110         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
15111         (vax_expand_prologue): Rename from vax_output_function_prologue;
15112         emit rtl instead of text.
15113         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
15114         (print_operand): Add 'x' prefix.
15115
15116 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
15117
15118         PR middle-end/47715
15119         * calls.c (precompute_register_parameters): Promote the function
15120         argument before checking non-legitimate constant.
15121
15122 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
15123
15124         PR tree-optimization/47654
15125         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
15126         (lst_do_strip_mine_loop): Return an int.
15127         (lst_do_strip_mine): Same.
15128         (scop_do_strip_mine): Same.
15129         (scop_do_block): Loop blocking should strip-mine at least two loops.
15130         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
15131         (scop_do_interchange): Same.
15132         * graphite-poly.h (scop_do_interchange): Update declaration.
15133         (scop_do_strip_mine): Same.
15134
15135 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
15136
15137         * graphite-clast-to-gimple.c (precision_for_value): Removed.
15138         (precision_for_interval): Removed.
15139         (gcc_type_for_interval): Use mpz_sizeinbase.
15140
15141 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
15142
15143         * graphite-ppl.h (value_max): Correct computation of max.
15144
15145 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
15146
15147         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
15148
15149 2011-07-05  Richard Guenther  <rguenther@suse.de>
15150
15151         * c-decl.c (c_init_decl_processing): Defer building common
15152         tree nodes to c_common_nodes_and_builtins.
15153
15154 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
15155
15156         PR tree-optimization/49580
15157         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
15158         the loop's number of iterations.
15159         * tree-parloops.c (transform_to_exit_first_loop): Add the
15160         handling of the loop's number of iterations before the call
15161         to gimple_duplicate_sese_tail.
15162         Insert the stmt caclculating the new rhs of the loop's
15163         condition stmt to the preheader instead of iters_bb.
15164
15165 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
15166
15167         PR rtl-optimization/47449
15168         * fwprop.c (forward_propagate_subreg): Don't propagate hard
15169         register nor zero/sign extended hard register.
15170
15171 2011-07-05  Richard Guenther  <rguenther@suse.de>
15172
15173         PR tree-optimization/49518
15174         PR tree-optimization/49628
15175         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
15176         irrelevant and invariant data-references.
15177         (vect_analyze_data_ref_access): For invariant loads clear the
15178         group association.
15179
15180 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
15181
15182         PR rtl-optimization/49619
15183         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
15184         pass VOIDmode as op0_mode to recursive call, and return temp even
15185         when different from tor, just if it is not IOR of the original
15186         PLUS arguments.
15187
15188         PR rtl-optimization/49472
15189         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
15190         negating MULT, negate the second operand instead of first.
15191         (simplify_binary_operation_1) <case MULT>: If one operand is
15192         a NEG and the other is MULT, don't attempt to optimize by negation
15193         of the MULT operand if it only moves the NEG operation around.
15194
15195         PR debug/49602
15196         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
15197         get_current_def return value if it can't be trusted to be
15198         the current value of the variable in the current bb.
15199
15200 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
15201
15202         PR target/49600
15203         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
15204         general register to memory for !TARGET_INTER_UNIT_MOVES.
15205
15206 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
15207
15208         PR target/44643
15209         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
15210         instead of TREE_READONLY.
15211
15212 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
15213
15214         * doc/extend.texi (AVR Built-in Functions): Update documentation
15215         of __builtin_avr_fmul*.
15216         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
15217         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
15218         * config/avr/avr.md (fmul): Rename to fmul_insn.
15219         (fmuls): Rename to fmuls_insn.
15220         (fmulsu): Rename to fmulsu_insn.
15221         (fmul,fmuls,fmulsu): New expander.
15222         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
15223         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
15224         * config/avr/libgcc.S (__fmul): New function.
15225         (__fmuls): New function.
15226         (__fmulsu,__fmulsu_exit): New function.
15227
15228 2011-07-04  Richard Guenther  <rguenther@suse.de>
15229
15230         PR tree-optimization/49615
15231         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
15232         basic-block index check.
15233
15234 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
15235
15236         * longlong.h (count_leading_zeros, count_trailing_zeros,
15237         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
15238         resp. 64.
15239
15240 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
15241
15242         PR tree-optimization/49610
15243         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
15244         a basic block.
15245
15246 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
15247             Olivier Hainque  <hainque@adacore.com>
15248             Nicolas Setton  <setton@adacore.com>
15249
15250         * tree.h (TYPE_ARTIFICIAL): New flag.
15251         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
15252         the DIE of the type if it is artificial.
15253         (gen_array_type_die): Likewise.
15254         (gen_enumeration_type_die): Likewise.
15255         (gen_struct_or_union_type_die): Likewise.
15256         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
15257         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
15258
15259 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
15260
15261         * tree-object-size.c (pass_through_call): Handle
15262         BUILT_IN_ASSUME_ALIGNED.
15263
15264 2011-07-01  Martin Jambor  <mjambor@suse.cz>
15265
15266         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
15267
15268 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
15269
15270         PR middle-end/48016
15271         * explow.c (update_nonlocal_goto_save_area): Use proper mode
15272         for stack save area.
15273         * function.c (expand_function_start): Likewise.
15274
15275 2011-07-01  Richard Guenther  <rguenther@suse.de>
15276
15277         PR middle-end/49596
15278         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
15279         may have unknown refs.
15280
15281 2011-07-01  Kai Tietz  <ktietz@redhat.com>
15282
15283         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
15284
15285 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15286
15287         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
15288         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
15289         (Specific, mips-sgi-irix6): Likewise.
15290
15291 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15292
15293         PR libmudflap/49549
15294         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
15295
15296 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
15297
15298         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
15299         [idx]= and [idx1 ... idx2]= before initializers if needed for
15300         array initializers.
15301
15302 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
15303
15304         * config.gcc (score-*-elf): Remove score7.o.
15305         * config/score/t-score-elf: Likewise.
15306         * config/score/score.c: Merge score7 to score.c and
15307         remove forwarding functions.
15308         * config/score/score7.c: Deleted.
15309         * config/score/score7.h: Deleted.
15310
15311 2011-07-01  Richard Guenther  <rguenther@suse.de>
15312
15313         PR tree-optimization/49603
15314         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
15315
15316 2011-06-30  Martin Jambor  <mjambor@suse.cz>
15317
15318         * tree-sra.c (struct access): Rename total_scalarization to
15319         grp_total_scalarization
15320         (completely_scalarize_var): New function.
15321         (sort_and_splice_var_accesses): Set total_scalarization in the
15322         representative access.
15323         (analyze_access_subtree): Propagate total scalarization accross the
15324         tree, no holes in totally scalarized trees, simplify coverage
15325         computation.
15326         (analyze_all_variable_accesses): Call completely_scalarize_var instead
15327         of completely_scalarize_record.
15328
15329 2011-06-30  Richard Henderson  <rth@redhat.com>
15330
15331         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
15332         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
15333         * config/i386/i386.c: Don't include dwarf2out.h.
15334         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
15335         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
15336         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
15337         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
15338         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
15339
15340 2011-06-30  Richard Henderson  <rth@redhat.com>
15341
15342         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
15343         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
15344         * final.c (final_scan_insn): Look for it, and invoke
15345         dwarf2out_frame_debug before the insn if found.
15346
15347 2011-06-30  Richard Henderson  <rth@redhat.com>
15348
15349         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
15350         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
15351
15352 2011-06-30  Richard Henderson  <rth@redhat.com>
15353
15354         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
15355         Define a vector of this type.
15356         (regs_saved_in_regs): Use a VEC.
15357         (num_regs_saved_in_regs): Remove.
15358         (compare_reg_or_pc): New.
15359         (record_reg_saved_in_reg): Split out from...
15360         (dwarf2out_flush_queued_reg_saves): ... here.
15361         (clobbers_queued_reg_save): Update for VEC.
15362         (reg_saved_in): Likewise.
15363         (dwarf2out_frame_debug_init): Likewise.
15364         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
15365         (dwarf2out_frame_debug_cfa_register): Likewise.
15366
15367 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
15368
15369         PR tree-optimization/49572
15370         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
15371         type of the RHS instead of that of the LHS for the expression type.
15372
15373 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
15374
15375         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
15376         unconditionally.
15377
15378 2011-06-30  Richard Guenther  <rguenther@suse.de>
15379
15380         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
15381         * tree-ssa-structalias.c (create_variable_info_for): Do not
15382         add initial constraints for non-var-decls.  Properly handle
15383         globals in other ltrans partitions.
15384         (intra_create_variable_infos): Manually create constraints for
15385         the fake no-alias parameter.
15386         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
15387         and assert there are no clones.
15388
15389 2011-06-30  Richard Guenther  <rguenther@suse.de>
15390
15391         PR tree-optimization/46787
15392         * tree-data-ref.c (dr_address_invariant_p): Remove.
15393         (find_data_references_in_stmt): Invariant accesses are ok now.
15394         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
15395         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
15396         invariant loads.
15397
15398 2011-06-30  Martin Jambor  <mjambor@suse.cz>
15399
15400         PR tree-optimization/49094
15401         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
15402         (build_accesses_from_assign): Use it.
15403
15404 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
15405
15406         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
15407         handling of BUILT_IN_ASSUME_ALIGNED.
15408
15409         PR debug/49364
15410         * dwarf2out.c (output_abbrev_section): Don't return early
15411         if abbrev_die_table_in_use is 1.
15412         (dwarf2out_finish): Instead don't call output_abbrev_section
15413         nor emit abbrev_section_label in that case.
15414
15415 2011-06-30  Nick Clifton  <nickc@redhat.com>
15416
15417         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
15418         for the V850E.
15419
15420 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
15421
15422         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
15423         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
15424
15425 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
15426
15427         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
15428         both pattern and original statements if necessary.
15429         (vect_transform_loop): Likewise.
15430         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
15431         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
15432         Mark the pattern statement only if the original statement doesn't
15433         have its own uses.
15434         (process_use): Call vect_mark_relevant with additional parameter.
15435         (vect_mark_stmts_to_be_vectorized): Likewise.
15436         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
15437         (vect_analyze_stmt): Handle both pattern and original statements
15438         if necessary.
15439         (vect_transform_stmt): Don't store vectorized pattern statement
15440         in the original statement.
15441         (vect_is_simple_use_1): Use related pattern statement only if the
15442         original statement is irrelevant.
15443         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
15444
15445 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
15446
15447         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
15448         option.
15449         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
15450         entry.
15451         (TARGET_AVX128_OPTIMAL): New definition.
15452         * config/i386/i386.c (initial_ix86_tune_features): Initialize
15453         X86_TUNE_AVX128_OPTIMAL entry.
15454         (ix86_option_override_internal): Enable the generation
15455         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
15456         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
15457         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
15458
15459 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
15460
15461         PR tree-optimization/49539
15462         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
15463         names by means of stmt_references_abnormal_ssa_name.
15464         (associate_plusminus): Call can_propagate_from before propagating
15465         from definition statements.
15466         (ssa_forward_propagate_and_combine): Remove superfluous newline.
15467
15468 2011-06-29  Richard Guenther  <rguenther@suse.de>
15469
15470         * doc/invoke.texi: Document -scev dump modifier.
15471         * tree-pass.h (TDF_SCEV): New dump flag.
15472         * tree-dump.c (dump_option_value_in): Add scev.
15473         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
15474         * tree-scalar-evolution.c: Likewise.
15475
15476 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
15477
15478         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
15479         (cxa_type_match): Correct declaration.
15480         (__gnu_unwind_pr_common): Reconstruct additional indirection
15481         when __cxa_type_match returns succeeded_with_ptr_to_base.
15482
15483 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15484
15485         PR rtl-optimization/49114
15486         * reload.c (struct replacement): Remove SUBREG_LOC member.
15487         (push_reload): Do not set it.
15488         (push_replacement): Likewise.
15489         (subst_reload): Remove dead code.
15490         (copy_replacements): Remove assertion.
15491         (copy_replacements_1): Do not handle SUBREG_LOC.
15492         (move_replacements): Likewise.
15493         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
15494         Detect subregs via recursive descent instead of via SUBREG_LOC.
15495
15496 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
15497
15498         * config/avr/avr.c (avr_encode_section_info): Dispatch to
15499         default_encode_section_info.
15500
15501 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
15502
15503         PR tree-optimization/49545
15504         * builtins.c (get_object_alignment_1): Update function comment.
15505         Do not use DECL_ALIGN for functions, but test
15506         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
15507         * fold-const.c (get_pointer_modulus_and_residue): Don't check
15508         for functions here.
15509         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
15510
15511 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
15512
15513         PR debug/49567
15514         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
15515         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
15516
15517 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
15518
15519         PR target/34734
15520         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
15521         about uninitialized data attributed 'progmem' from here...
15522         (avr_encode_section_info): ...to this new function.
15523         (TARGET_ENCODE_SECTION_INFO): New define.
15524         (avr_section_type_flags): For data in ".progmem.data", remove
15525         section flag SECTION_WRITE.
15526
15527 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
15528
15529         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
15530         _xmulhisi3_exit.
15531         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
15532         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
15533         (__umulhisi3): Ditto.
15534         * config/avr/avr.md (mulhisi3): New insn expender.
15535         (umulhisi3): New insn expender.
15536         (*mulhisi3_call): New insn.
15537         (*umulhisi3_call): New insn.
15538
15539 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
15540
15541         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
15542
15543 2011-06-28  Richard Henderson  <rth@redhat.com>
15544
15545         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
15546         all code and arguments that handled pushes.  Update all callers.
15547
15548 2011-06-28  Richard Henderson  <rth@redhat.com>
15549
15550         * config/arm/arm.c (arm_output_function_prologue): Don't call
15551         thumb1_output_function_prologue.
15552         (arm_expand_prologue): Avoid dead store.
15553         (number_of_first_bit_set): Use ctz_hwi.
15554         (thumb1_emit_multi_reg_push): New.
15555         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
15556         to emit the entire prologue as rtl.
15557         (thumb1_output_interwork): Split out from
15558         thumb1_output_function_prologue.
15559         (thumb1_output_function_prologue): Remove.
15560         (arm_attr_length_push_multi): Handle thumb1.
15561         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
15562         (prologue_thumb1_interwork): New.
15563         (*push_multi): Allow thumb1; use push_mult_memory_operand.
15564         * config/arm/predicates.md (push_mult_memory_operand): New.
15565
15566 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
15567
15568         * config/sparc/sync.md (*stbar): Delete.
15569         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
15570
15571 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
15572
15573         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
15574
15575 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15576
15577         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
15578         (TARGET_64BIT_DEFAULT): Define.
15579         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
15580         of tm_file.
15581         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
15582
15583 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
15584
15585         * common.opt (in_lto_p): New Variable entry.
15586         * flags.h (in_lto_p): Move to common.opt.
15587         * gcc.c: Include params.h.
15588         (set_option_handlers): Also use common_handle_option and
15589         target_handle_option.
15590         (main): Call global_init_params, finish_params and init_options_struct.
15591         * opts.c (debug_type_names): Move from toplev.c.
15592         (print_filtered_help): Access quiet_flag through opts pointer.
15593         (common_handle_option): Return early in the driver for some options.
15594         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
15595         opts pointer.
15596         * toplev.c (in_lto_p): Move to common.opt.
15597         (debug_type_names): Move to opts.c.
15598         * Makefile.in (OBJS): Remove opts.o.
15599         (OBJS-libcommon-target): Add opts.o.
15600         (gcc.o): Update dependencies.
15601
15602 2011-06-28  Kai Tietz  <ktietz@redhat.com>
15603
15604         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
15605
15606 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15607
15608         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
15609         with '=' constraint modifier.
15610         (*divdf3_vfp): Likewise.
15611         ("*mulsf3_vfp"): Likewise.
15612         ("*muldf3_vfp"): Likewise.
15613         ("*mulsf3negsf_vfp"): Likewise.
15614         ("*muldf3negdf_vfp"): Likewise.
15615
15616 2011-06-28  Nick Clifton  <nickc@redhat.com>
15617
15618         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
15619         relaxation when performing an incremental link.
15620
15621 2011-06-28  Kai Tietz  <ktietz@redhat.com>
15622
15623         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
15624         within BB from last to first.
15625
15626 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
15627
15628         * genattr-common.c: New.  Based on genattr.c.
15629         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
15630         (MOSTLYCLEANFILES): Add insn-attr-common.h.
15631         (opts.o): Update dependencies.
15632         (.PRECIOUS): Add insn-attr-common.h.
15633         (simple_rtl_generated_h): Add insn-attr-common.h.
15634         (build/genattr-common.o): New.
15635         (genprogrtl): Add attr-common.
15636         * genattr.c (main): Include insn-attr-common.h.  Don't generate
15637         definitions of DELAY_SLOTS or INSN_SCHEDULING.
15638         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
15639
15640 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
15641
15642         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
15643         avr-*-* and avr-*-rtems* targets.
15644
15645         * config/avr/elf.h: New file.
15646         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
15647         (TARGET_ASM_SELECT_SECTION): Define.
15648         (INIT_SECTION_ASM_OP): Undefine.
15649         (FINI_SECTION_ASM_OP): Undefine.
15650         (READONLY_DATA_SECTION_ASM_OP): Undefine.
15651         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
15652         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
15653         * config/avr/avr.h:
15654         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
15655         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
15656         (MAX_OFILE_ALIGNMENT): Move to elf.h.
15657         (STRING_LIMIT): Move to elf.h.
15658         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
15659         (ASM_DECLARE_OBJECT_NAME): Remove.
15660         (ESCAPES): Remove.
15661         (ASM_OUTPUT_SKIP): Remove.
15662         (DWARF2_DEBUGGING_INFO): Remove.
15663         (OBJECT_FORMAT_ELF): Remove.
15664         (USER_LABEL_PREFIX): Remove.
15665         (ASM_OUTPUT_EXTERNAL): Remove.
15666         (ASM_OUTPUT_ASCII): Remove.
15667         (TYPE_ASM_OP): Remove.
15668         (SIZE_ASM_OP): Remove.
15669         (WEAK_ASM_OP): Remove.
15670         (STRING_ASM_OP): Remove.
15671         (SET_ASM_OP): Remove.
15672         (ASM_WEAKEN_LABEL): Remove.
15673         (TYPE_OPERAND_FMT): Remove.
15674         (ASM_DECLARE_FUNCTION_SIZE): Remove.
15675         (ASM_FINISH_DECLARE_OBJECT): Remove.
15676         (NO_DOLLAR_IN_LABEL): Remove.
15677         (ASM_GENERATE_INTERNAL_LABEL): Remove.
15678         (ASM_OUTPUT_CASE_LABEL): Remove.
15679         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
15680         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
15681         (gas_output_ascii): Remove.
15682         (gas_output_limited_string): Remove.
15683         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
15684         * config/avr/avr-protos.h
15685         (gas_output_ascii): Remove prototye.
15686         (gas_output_limited_string): Remove prototype.
15687
15688 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
15689
15690         PR target/48637
15691         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
15692         asm operands.
15693
15694 2011-06-27  Jan Hubicka  <jh@suse.cz>
15695
15696         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
15697         node instead of references in node.
15698
15699 2011-06-27  Richard Henderson  <rth@redhat.com>
15700
15701         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
15702         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
15703         inside ifdef.
15704
15705 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
15706
15707         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
15708
15709         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
15710         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
15711         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
15712         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
15713         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
15714         (evaluate_stmt, execute_fold_all_builtins): Handle
15715         BUILT_IN_ASSUME_ALIGNED.
15716         * tree-ssa-dce.c (propagate_necessity): Likewise.
15717         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
15718         call_may_clobber_ref_p_1): Likewise.
15719         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
15720         (expand_builtin_assume_aligned): New function.
15721         * doc/extend.texi (__builtin_assume_aligned): Document.
15722
15723         PR debug/49544
15724         * cselib.c (promote_debug_loc): If cselib_preserve_constants
15725         and l has two DEBUG_INSN owned locs instead of just one, adjust
15726         the second location's setting_insn too.
15727
15728 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15729
15730         PR libmudflap/38738
15731         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
15732
15733 2011-06-27  Nick Clifton  <nickc@redhat.com>
15734
15735         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
15736         bit position of highest bit set into a count of the high zero bits.
15737
15738 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
15739
15740         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
15741
15742 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
15743
15744         PR lto/48492
15745         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
15746         to a NULL parent.
15747
15748 2011-06-27  Richard Guenther  <rguenther@suse.de>
15749
15750         PR tree-optimization/49394
15751         * passes.c (execute_one_pass): Restore current_pass after
15752         applying IPA transforms.
15753
15754 2011-06-27  Kai Tietz  <ktietz@redhat.com>
15755
15756         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
15757         out of type precision after operation.
15758         (find_bswap): Take for limit value the integer auto-promotion
15759         into account.
15760
15761 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
15762
15763         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
15764         forward scan as well.
15765
15766 2011-06-27  Tristan Gingold  <gingold@adacore.com>
15767
15768         PR target/44241
15769         * config/vms/vms-protos.h: New file.
15770         * config/vms/vms-crtlmap.map: New file.
15771         * config/vms/vms.c: New file.
15772         * config/vms/make-crtlmap.awk: New file.
15773         * config/vms/vms-crtl.h: File removed.
15774         * config/vms/vms-crtl-64.h: File removed.
15775         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
15776         * config/alpha/vms64.h: Do not include vms-crtl-64.h
15777         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
15778         clear some builtins on VMS.  Calls vms_patch_builtins.
15779         (avms_asm_output_external): Remove.
15780         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
15781         (struct crtl_name_spec): Remove
15782         (DO_CTRL_NAMES): Remove.
15783         * config/ia64/vms.h (struct crtl_name_spec): Remove
15784         (DO_CTRL_NAMES): Remove.
15785         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
15786         clear some builtins on VMS.  Calls vms_patch_builtins.
15787         (ia64_asm_output_external): Remove DO_CRTL_NAME.
15788         * config/ia64/vms64.h: Do not include vms-crtl-64.h
15789         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
15790
15791 2011-06-27  Tristan Gingold  <gingold@adacore.com>
15792
15793         * config/alpha/alpha.c (alpha_end_function): Always generate .end
15794         directive on VMS.
15795
15796 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
15797
15798         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
15799         the function receives nonlocal gotos.
15800
15801 2011-06-27  Richard Guenther  <rguenther@suse.de>
15802
15803         PR tree-optimization/49536
15804         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
15805         For non-scalar inner types use a scalar type according to
15806         the scalar inner mode.
15807
15808 2011-06-27  Richard Guenther  <rguenther@suse.de>
15809
15810         PR tree-optimization/49365
15811         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
15812
15813 2011-06-27  Richard Guenther  <rguenther@suse.de>
15814
15815         PR tree-optimization/49169
15816         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
15817         the alignment of function decls.
15818
15819 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
15820
15821         PR target/47997
15822         * config/darwin.c (darwin_mergeable_string_section): Place string
15823         constants in '.cstring' rather than '.const' when CF/NSStrings are
15824         active.
15825
15826 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
15827
15828         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
15829         (emit_save_register_window): Likewise.
15830         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
15831         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
15832         Swap back %o7/%i7 in register naming.
15833
15834 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
15835
15836         PR driver/49371
15837         * config/darwin.c (darwin_override_options): Improve warning when
15838         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
15839         is given with fpie/fPIE.
15840         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
15841         * config/darwin9.h (PIE_SPEC): New.
15842
15843 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
15844
15845         * timevar.c (timevar_print): Increase width for display of timevar
15846         name.
15847
15848 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
15849
15850         PR c++/46400
15851         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
15852         instead of TYPE_CHAIN for chain_next for types.
15853
15854 2011-06-24  Richard Henderson  <rth@redhat.com>
15855
15856         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
15857         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
15858         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
15859         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
15860         (sparc_flat_expand_prologue): Emit individual instructions
15861         instead of one of the above.
15862
15863 2011-06-24  Easwaran Raman  <eraman@google.com>
15864
15865         PR rtl-optimization/49429
15866         PR target/49454
15867         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
15868         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
15869         used to copy y into x.
15870         * calls.c (initialize_argument_information): Mark
15871         an argument addressable if it is passed by invisible reference.
15872         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
15873         if it is passed by reference.
15874
15875 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15876
15877         PR rtl-optimization/49504
15878         * rtlanal.c (nonzero_bits1): Properly handle addition or
15879         subtraction of a pointer in Pmode if pointers extend unsigned.
15880         (num_sign_bit_copies1): Likewise.
15881
15882 2011-06-24  Martin Jambor  <mjambor@suse.cz>
15883
15884         PR tree-optimizations/49516
15885         * tree-sra.c (sra_modify_assign): Choose the safe path for
15886         aggregate copies if we also did scalar replacements.
15887
15888 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15889
15890         PR target/49335
15891         * config/arm/predicates.md (add_operator): New.
15892         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
15893
15894 2011-06-24  Andi Kleen  <ak@linux.intel.com>
15895
15896         * tree-sra.c (type_internals_preclude_sra_p): Add msg
15897         parameter. Split up ifs and report reason in *msg.
15898         (reject): Add.
15899         (find_var_candiate): Add msg variable.
15900         Split up ifs and report reason to reject.
15901         (find_param_candidates): Add msg variable.
15902         Pass msg to type_internals_preclude_sra_p.
15903
15904 2011-06-23  Jeff Law  <law@redhat.com>
15905
15906         PR middle-end/48770
15907         * reload.h (reload): Change to return a bool.
15908         * ira.c (ira): If requested by reload, run a fast DCE pass after
15909         reload has completed.  Fix comment typo.
15910         * reload1.c (need_dce): New file scoped static.
15911         (reload): Set reload_completed here.  Return whether or not a DCE
15912         pass after reload is needed.
15913         (delete_dead_insn): Set need_dce as needed.
15914
15915         PR middle-end/49465
15916         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
15917         to detect threading through joiner block.  If there was already
15918         an edge to the new target, then do not change the PHI nodes.
15919
15920 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
15921
15922         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
15923         get_pointer_alignment to see if base isn't sufficiently aligned.
15924
15925 2011-06-23  Jan Hubicka  <jh@suse.cz>
15926
15927         PR tree-optimize/49373
15928         * tree-pass.h (all_late_ipa_passes): Declare.
15929         * cgraphunit.c (init_lowered_empty_function): Fix properties.
15930         (cgraph_optimize): Execute late passes; remove unreachable funcions
15931         after materialization.
15932         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
15933         LTOing.
15934         * passes.c (all_late_ipa_passes): Declare.
15935         (dump_passes, register_pass): Handle late ipa passes.
15936         (init_optimization_passes): Move ipa_pta to late passes; schedule
15937         fixup_cfg at beggining of all_passes.
15938         (apply_ipa_transforms): New function.
15939         (execute_one_pass): When doing simple ipa pass, apply all transforms.
15940
15941 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
15942
15943         * params.c: Include common/common-target.h.  Don't include tm.h.
15944         (lang_independent_params): Move from toplev.c.
15945         (global_init_params): New.
15946         * params.h (global_init_params): Declare.
15947         * target.def (default_params): Move to common-target.def.
15948         * toplev.c (lang_independent_options): Remove.
15949         (lang_independent_params): Move to params.c.
15950         (general_init): Use global_init_params.
15951         * common/common-target.def (option_default_params): Move from
15952         target.def.
15953         * common/config/ia64/ia64-common.c: Include params.h.
15954         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
15955         from ia64.c.
15956         * common/config/rs6000/rs6000-common.c: Include params.h.
15957         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
15958         from rs6000.c.
15959         * common/config/sh/sh-common.c: Include params.h.
15960         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
15961         from sh.c.
15962         * common/config/spu/spu-common.c: Include params.h.
15963         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
15964         from spu.c.
15965         * config/ia64/ia64.c (ia64_option_default_params,
15966         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
15967         * config/rs6000/rs6000.c (rs6000_option_default_params,
15968         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
15969         * config/sh/sh.c (sh_option_default_params,
15970         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
15971         * config/spu/spu.c (spu_option_default_params,
15972         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
15973         * Makefile.in (OBJS): Remove params.o.
15974         (OBJS-libcommon-target): Add params.o.
15975         (params.o, $(common_out_object_file)): Update dependencies.
15976         * doc/tm.texi: Regenerate.
15977
15978 2011-06-23  Alan Modra  <amodra@gmail.com>
15979
15980         PR bootstrap/49383
15981         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
15982         invocation for 2011-06-09 changes.
15983
15984 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
15985
15986         PR libgomp/49490
15987         * omp-low.c (expand_omp_for_static_nochunk): Only
15988         use n ceil/ nthreads size for the first n % nthreads threads in the
15989         team instead of all threads except for the last few ones which
15990         get less work or none at all.
15991
15992         PR debug/49496
15993         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
15994         uses.
15995
15996 2011-06-22  Richard Guenther  <rguenther@suse.de>
15997
15998         PR tree-optimization/49493
15999         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
16000         Refer to the alias target of variables.
16001         (associate_varinfo_to_alias_1): Remove.
16002         (ipa_pta_execute): Do not associate aliases with anything.
16003         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
16004         (cgraph_function_node): Likewise.
16005         (cgraph_function_or_thunk_node): Likewise.
16006         (varpool_variable_node): Likewise.
16007
16008 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
16009
16010         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
16011         * config.gcc (arm*-*-linux*): Default to gnu tls.
16012         (arm*-*-*): Add --with-tls option.
16013         (all_defaults): Add 'tls'.
16014
16015 2011-06-22  Richard Henderson  <rth@redhat.com>
16016
16017         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
16018         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
16019         (dwarf2out_frame_debug_cfa_window_save): Rename from
16020         dwarf2out_window_save; make static.
16021         * tree.h (dwarf2out_window_save): Don't declare.
16022
16023         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
16024         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
16025         (emit_save_register_window): Rename from gen_save_register_window;
16026         emit the insn and add REG_CFA_* notes.
16027         (sparc_expand_prologue): Update to match.
16028         * config/sparc/sparc.md (save_register_window_1): Simplify from
16029         save_register_window<P:mode>.
16030
16031 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16032
16033         PR target/49497
16034         * config/i386/i386.md (*lea_general_2): Always allow SImode.
16035         (*lea_general_2_zext): Likewise.
16036         (imul to lea peepholes): Use const359_operand and check
16037         TARGET_PARTIAL_REG_STALL.
16038
16039         * config/i386/predicates.md (const359_operand): New.
16040
16041 2011-06-22  Michael Matz  <matz@suse.de>
16042
16043         * cgraphunit.c (assemble_thunk): Use correct return type.
16044
16045 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
16046             Dmitry Melnik  <dm@ispras.ru>
16047
16048         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
16049         (neon_output_shift_immediate): Ditto.
16050         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
16051         prototype.
16052         (neon_output_shift_immediate): Ditto.
16053         * config/arm/neon.md (vashl<mode>3): Modified constraint.
16054         (vashr<mode>3_imm): New insn pattern.
16055         (vlshr<mode>3_imm): Ditto.
16056         (vashr<mode>3): Modified constraint.
16057         (vlshr<mode>3): Ditto.
16058         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
16059         predicate.
16060         (imm_for_neon_rshift_operand): Ditto.
16061         (imm_lshift_or_reg_neon): Ditto.
16062         (imm_rshift_or_reg_neon): Ditto.
16063
16064         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
16065
16066 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
16067
16068         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
16069         builtin calls even if likelyvalue is not CONSTANT.
16070         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
16071         Return get_value_for_expr of first operand
16072         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
16073         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
16074         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
16075         their non-checking counterparts.
16076         (call_may_clobber_ref_p_1): Likewise.
16077         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
16078         like their non-checking counterparts.
16079         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16080         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
16081         like their non-checking counterparts.
16082         (find_func_clobbers): Likewise.
16083         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
16084         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
16085
16086         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
16087         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
16088         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
16089         of base type reference as argument.
16090         (resolve_addr_in_expr): Likewise.  Fix keep computation.
16091         (convert_descriptor_to_signed): Renamed to...
16092         (convert_descriptor_to_mode): ... this.  For wider types convert to
16093         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
16094         (typed_binop): New function.
16095         (scompare_loc_descriptor, ucompare_loc_descriptor,
16096         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
16097         default to unsigned type instead of signed.
16098
16099         PR debug/47858
16100         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
16101         (gimple_build_debug_source_bind_stat): New prototype.
16102         (gimple_build_debug_source_bind): Define.
16103         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
16104         gimple_debug_source_bind_get_value,
16105         gimple_debug_source_bind_get_value_ptr,
16106         gimple_debug_source_bind_set_var,
16107         gimple_debug_source_bind_set_value): New inlines.
16108         * gimple.c (gimple_build_debug_source_bind_stat): New function.
16109         * gimple-pretty-print.c (dump_gimple_debug): Handle
16110         GIMPLE_DEBUG_SOURCE_BIND.
16111         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
16112         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16113         * tree-parloops.c (eliminate_local_variables,
16114         separate_decls_in_region): Likewise.
16115         (separate_decls_in_region_debug): Renamed from
16116         separate_decls_in_region_debug_bind.  Handle
16117         gimple_debug_source_bind_p.
16118         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
16119         prototypes.
16120         (DECL_HAS_DEBUG_ARGS_P): Define.
16121         (struct tree_function_decl): Add has_debug_args_flag field.
16122         * tree.c (debug_args_for_decl): New variable.
16123         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
16124         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
16125         (rewrite_debug_stmt_uses): New function.
16126         (rewrite_stmt): Use it to rewrite debug stmt uses.
16127         * rtl.def (DEBUG_PARAMETER_REF): New.
16128         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
16129         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
16130         DEBUG_PARAMETER_REF.
16131         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
16132         * print-rtl.c (print_rtx): Likewise.
16133         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
16134         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
16135         debug stmts in the first bb.
16136         * tree-inline.c (remap_ssa_name): If remapping default def
16137         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
16138         a source bind debug stmt.
16139         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
16140         (maybe_move_debug_stmts_to_successors): Likewise.
16141         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
16142         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
16143         debug args vector from old_decl to new_decl.
16144         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
16145         or modified parameters, add debug bind stmts before call
16146         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
16147         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
16148         on DECL_DEBUG_EXPRs from debug args vector.
16149         (expand_debug_source_expr): New function.
16150         (expand_debug_locations): Use it for source bind insns.
16151         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
16152         * var-tracking.c (prepare_call_arguments): Add debug args
16153         to call_arguments if any.
16154         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
16155         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
16156         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
16157         (get_ref_die_offset, parameter_ref_descriptor): New functions.
16158         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
16159         (gen_subprogram_die): Handle parameters identified by
16160         DEBUG_PARAMETER_REF.
16161
16162 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
16163
16164         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
16165         * doc/install.texi (Configuration): Document --with-tls.
16166         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
16167         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
16168         (arm_tls_descseq_addr): New.
16169         (legitimize_tls_address): Add tlsdesc support.
16170         (arm_cannot_copy_insn_p): Check for tlscall.
16171         (arm_emit_tls_decoration): Likewise.
16172         * config/arm/arm.h (TARGET_GNU2_TLS): New.
16173         (OPTION_DEFAULT_SPECS): Add with-tls support.
16174         * config/arm/arm.md (R1_REGNUM): Define.
16175         (tlscall): New.
16176         * config/arm/arm.opt (tls_type): New enumeration type and values.
16177         (mtls-dialect): New switch.
16178         * config/arm/arm-opts.h (enum tls_type): New.
16179
16180 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
16181
16182         * attribs.c (register_attribute): Added assert to check that all
16183         attribute specs are registered with a name that is not empty and
16184         does not start with '_'.
16185         (decl_attributes): Avoid the lookup of the "naked" attribute spec
16186         if the function has no attributes.
16187         * tree.c (is_attribute_with_length_p): Removed.
16188         (is_attribute_p): Removed.
16189         (private_is_attribute_p): New.
16190         (private_lookup_attribute): New.
16191         (lookup_attribute): Removed.
16192         (lookup_ident_attribute): New.
16193         (remove_attribute): Require the first argument to be in the form
16194         'text', not '__text__'.  Updated asserts.
16195         (merge_attributes): Use lookup_ident_attributes instead of
16196         lookup_attribute.
16197         (merge_dllimport_decl_attributes): Use remove_attribute.
16198         (attribute_list_contained): Likewise.
16199         (attribute_list_equal): Immediately return 1 if the arguments are
16200         identical pointers.
16201         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
16202         'int'.  Require the first argument to be in the form 'text', not
16203         '__text__'.  Require the second argument to be an identifier.
16204         (lookup_attribute): Made inline.  Require the first argument to be
16205         in the form 'text', not '__text__'.
16206         (private_is_attribute_p, private_lookup_attribute): New.
16207         Updated comments.
16208
16209 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
16210
16211         * builtins.c: Add sync_ or SYNC__ to builtin names.
16212         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
16213         * omp-low.c: Add sync_ or SYNC__ to builtin names.
16214
16215 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
16216
16217         PR target/33049
16218         * config/avr/avr.md (extzv): New expander.
16219         (*extzv): New insn.
16220         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
16221         * config/avr/constraints.md (C04): New constraint.
16222         * doc/md.texi (Machine Constraints): Document it.
16223
16224 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
16225
16226         PR middle-end/49489
16227         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
16228         unsignedp argument instead of 1 for clrsb_optab.
16229         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
16230         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
16231         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
16232         * optabs.c (widen_leading): Call widen_operand and expand_unop
16233         with 0 as unsignedp argument instead of 1 for clrsb_optab.
16234         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
16235
16236 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
16237
16238         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
16239
16240 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
16241
16242         * gensupport.c (add_define_attr): New static function.
16243         (is_predicable): Allow multi-alternative lists for the "predicable"
16244         attribute.
16245         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
16246         (process_one_cond_exec): Call alter_attrs_for_insn.
16247         * doc/md.texi (Defining Attributes): Mention some standard names.
16248         (Conditional Execution): Update documentation for "predicable".
16249
16250         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
16251         __builtin_clrsbll): Document.
16252         * doc/rtl.texi (clrsb): New entry.
16253         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
16254         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
16255         (expand_unop): Handle clrsb_optab.
16256         (init_optabs): Initialize it.
16257         * optabs.h (enum optab_index): New entry OTI_clrsb.
16258         (clrsb_optab): Define.
16259         * genopinit.c (optabs): Add an entry for it.
16260         * builtins.c (expand_builtin): Handle clrsb builtin functions.
16261         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
16262         BUILT_IN_CLRSBLL): New.
16263         * rtl.def (CLRSB): New code.
16264         * dwarf2out.c (mem_loc_descriptor): Handle it.
16265         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
16266         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
16267         and popcount.
16268         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
16269         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
16270         (__ctzDI2): Move declaration.
16271         * config/bfin/bfin.md (clrsbsi2): New expander.
16272         (signbitssi2): Use the CLRSB rtx.
16273         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
16274         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
16275
16276 2011-06-21  Richard Guenther  <rguenther@suse.de>
16277
16278         * ipa-inline-transform.c (inline_transform): Fix previous change.
16279
16280 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
16281
16282         PR tree-optimization/49478
16283         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
16284         with constant operand.
16285
16286 2011-06-21  Richard Guenther  <rguenther@suse.de>
16287
16288         * ipa-inline-transform.c (inline_transform): Fix typo.
16289
16290 2011-06-21  Richard Guenther  <rguenther@suse.de>
16291
16292         PR tree-optimization/49483
16293         * tree-vect-stmts.c (vectorizable_assignment): Also handle
16294         VIEW_CONVERT_EXPR conversions.
16295
16296 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
16297
16298         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
16299         * config/avr/avr-tables.opt: New file (generated).
16300         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
16301         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
16302         avr-mcus.def.
16303         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
16304         (avr_option_override): Don't process -mmcu= argument here.  Set
16305         avr_current_device using avr_mcu_index.
16306         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
16307         * config/avr/avr.opt (mmcu=): Use Enum.
16308         * config/avr/t-avr (avr-devices.o): Update dependencies.
16309         ($(srcdir)/config/avr/avr-tables.opt): New.
16310         * target.def (help): Remove.
16311         * doc/tm.texi.in (TARGET_HELP): Remove.
16312         * doc/tm.texi: Regenerate.
16313         * opts.c: Don't include target.h.
16314         (common_handle_option): Don't call targetm.help.
16315         * system.h (TARGET_HELP): Poison.
16316         * Makefile.in (opts.o): Update dependencies.
16317
16318 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16319
16320         * config/usegld.h: New file.
16321         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
16322         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
16323         (LIB_SPEC): Likewise.  Search /lib.
16324         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
16325         (RDYNAMIC_SPEC): Handle GNU ld.
16326         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
16327         Define.
16328         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
16329         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
16330         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
16331         (STACK_CHECK_STATIC_BUILTIN): Define.
16332         * config/sol2.opt (compat-bsd): Remove.
16333         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
16334         * config/sol2-bi.h: New file.
16335         * config/sol2-gld.h: Remove.
16336         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
16337         (NO_DBX_BNSYM_ENSYM): Remove.
16338         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
16339         (STACK_CHECK_STATIC_BUILTIN): Remove.
16340         Test USE_GLD instead of TARGET_GNU_LD.
16341         * config/i386/sol2-10.h: Rename to ...
16342         * config/i386/sol2-bi.h .. this.
16343         (SUBTARGET_EXTRA_SPECS): Redefine.
16344         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
16345         (MULTILIB_DEFAULTS): Remove.
16346         (DEFAULT_ARCH32_P): Define.
16347         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
16348         (ARCH64_SUBDIR): Define.
16349         Test USE_GLD instead of TARGET_GNU_LD.
16350         (I386_EMULATION): Rename to ...
16351         (ARCH32_EMULATION): ... this.
16352         (X86_64_EMULATION): Rename to ...
16353         (ARCH64_EMULATION): ... this.
16354         (TARGET_LD_EMULATION): Remove.
16355         (LINK_ARCH_SPEC): Remove.
16356         * config/i386/sol2-gas.h: Remove.
16357         * config/i386/t-sol2-10: Rename to ...
16358         * config/i386/t-sol2-64: ... this.
16359         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
16360         (AS_SPARC64_FLAG): Define.
16361         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
16362         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
16363         depending on TARGET_CPU_DEFAULT.
16364         (CPP_CPU_SPEC): Redefine.
16365         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
16366         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
16367         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
16368         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
16369         ASM_ARCH_DEFAULT_SPEC): Redefine.
16370         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16371         LINK_ARCH_DEFAULT_SPEC.
16372         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
16373         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
16374         (ARCH64_SUBDIR): Define.
16375         (LINK_ARCH64_SPEC): Redefine.
16376         (CC1_SPEC): Redefine.
16377         (OPTION_DEFAULT_SPECS): Redefine.
16378         (MULTILIB_DEFAULTS): Define.
16379         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
16380         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
16381         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
16382         (NO_DBX_BNSYM_ENSYM): Remove.
16383         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
16384         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
16385         (TARGET_ASM_NAMED_SECTION): Likewise.
16386         (STACK_CHECK_STATIC_BUILTIN): Remove.
16387         * config/sparc/sol2-bi.h: Remove.
16388         * config/sparc/sol2-gas-bi.h: Remove.
16389         * config/sparc/sol2-gas.h: Remove.
16390         * config/sparc/sol2-gld-bi.h: Remove.
16391         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
16392         common parts ...
16393         (*-*-solaris2*): ... here.
16394
16395 2011-06-21  Christian Bruel  <christian.bruel@st.com>
16396
16397         PR other/43564
16398         * ipa-inline.c (can_inline_edge_p): Check
16399         !DECL_DISREGARD_INLINE_LIMITS.
16400
16401 2011-06-21  Christian Bruel  <christian.bruel@st.com>
16402
16403         PR middle-end/49139
16404         * cgraphunit.c (process_function_and_variable_attributes): warn when
16405         always_inline functions that are not inline.
16406         * ipa-inline-transform.c (inline_transform): Always call
16407         optimize_inline.
16408         * tree-inline.c (tree_inlinable_function_p): Use error instead
16409         of sorry.
16410         (expand_call_inline): Likewise.
16411
16412 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
16413
16414         * Makefile.in (dg_target_exps): Set.
16415         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
16416         instead of 7, try to divide it more evenly.
16417
16418 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
16419
16420         PR target/49089
16421         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
16422         (avx256_split_unaligned_store): New definition.
16423         (ix86_option_override_internal): Enable avx256 unaligned load/store
16424         splitting only when avx256_split_unaligned_load/store is set.
16425
16426 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
16427
16428         * regrename.c (scan_rtx_reg): Handle the case where we write to an
16429         open chain in a smaller mode without failing the entire block.
16430
16431 2011-06-21  Alan Modra  <amodra@gmail.com>
16432
16433         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
16434         CONST high part large-toc address.
16435         (rs6000_tls_referenced_p): Make static.
16436         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
16437
16438 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16439
16440         PR target/49385
16441         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
16442         one of the operands is a register.
16443
16444 2011-06-20  Kai Tietz  <ktietz@redhat.com>
16445
16446         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
16447         operations in combination with binary and.
16448
16449 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
16450
16451         * regrename.c (do_replace): Don't update notes.
16452
16453 2011-06-20  Alan Modra  <amodra@gmail.com>
16454
16455         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
16456         of toc-relative address in CONST.
16457         (rs6000_delegitimize_address): Recognize changed address.
16458         (rs6000_legitimize_reload_address): Likewise.
16459         (rs6000_emit_move): Don't force these constants to memory.
16460         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
16461         toc-relative address in CONST.
16462         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
16463         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
16464
16465 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
16466
16467         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
16468         (count_trailing_zeros): Likewise.
16469
16470 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
16471
16472         PR other/49325
16473         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
16474         .init_array can be used with .ctors on targets.
16475         * configure: Regenerated.
16476
16477 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
16478
16479         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
16480         if the element type is volatile.
16481
16482 2011-06-18  Jan Hubicka  <jh@suse.cz>
16483
16484         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
16485         extra name aliases.
16486         (lto_symtab_resolve_can_prevail_p): Likewise.
16487         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
16488         * cgraphbuild.c (record_reference): Remove extra body alias code.
16489         (mark_load): Likewise.
16490         (mark_store): Likewise.
16491         * cgraph.h (varpool_node): Remove extra_name filed;
16492         add alias_of and extraname_alias.
16493         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
16494         (varpool_alias_aliased_node): New inline function.
16495         (varpool_variable_node): New function.
16496         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
16497         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
16498         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
16499         (input_varpool_node): Likewise.
16500         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
16501         (varpool_externally_visible_p): Remove extra body alias code.
16502         (function_and_variable_visibility): Likewise.
16503         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
16504         (ipa_pta_execute): Use it.
16505         * varpool.c (varpool_remove_node): Remove extra name alias code.
16506         (varpool_mark_needed_node): Likewise.
16507         (varpool_analyze_pending_decls): Analyze aliases.
16508         (assemble_aliases): New functoin.
16509         (varpool_assemble_decl): Use it.
16510         (varpool_create_variable_alias): New function.
16511         (varpool_extra_name_alias): Rewrite.
16512         (varpool_for_node_and_aliases): New function.
16513
16514 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
16515
16516         PR target/49411
16517         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
16518         last_arg_constant and last argument doesn't match its predicate,
16519         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
16520         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
16521         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
16522         spelling of error message.
16523         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
16524         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
16525         const_0_to_255_operand instead of const_int_operand.
16526
16527         Revert:
16528         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16529
16530         * config/i386/sse.md (blendbits): Remove mode attribute.
16531         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16532         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16533         Check integer value of operand 3 in insn constraint.
16534
16535 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
16536
16537         PR rtl-optimization/48542
16538         * reload.c (find_equiv_reg): Stop looking when finding a
16539         setjmp-type call.
16540         * reload1.c (reload_as_needed): Invalidate all reload
16541         registers when crossing a setjmp-type call.
16542
16543 2011-06-16  Jeff Law  <law@redhat.com>
16544
16545         * tree-ssa-threadupdate.c (struct redirection_data): New field
16546         intermediate_edge.
16547         (THREAD_TARGET2): Define.
16548         (redirection_data_eq): Also check that the intermediate edge is equal.
16549         (lookup_redirection_data): Drop useless argument.  Extract the
16550         outgoing_edge and intermediate edge from E.  Callers updated.
16551         (copy_phi_args, update_destination_phis): New functions.
16552         (fix_duplicate_block_edges): Likewise.
16553         (create_edge_and_update_destination_phis): Duplicate all the edges
16554         hung off e->aux.  Use copy_phi_args.
16555         (create_duplicates): Use fix_duplicate_block_edges.
16556         (fixup_template_block): Likewise.
16557         (redirect_edges): If necessary, redirect the joiner block's incoming
16558         edge to the duplicate of the joiner block.
16559         (thread_block): Don't muck up loops when threading through a joiner
16560         block.
16561         (thread_through_loop_header): Handle threading through a joiner block.
16562         (mark_threaded_blocks, register_jump_thread): Likewise.
16563         * tree-flow.h (register_jump_thread): Add new argument.  Callers
16564         updated.
16565         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
16566         (thread_across_edge): Handle threading through a joiner block.
16567
16568 2011-06-16  Martin Jambor  <mjambor@suse.cz>
16569
16570         PR tree-optimization/49343
16571         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
16572         calculate offset, provide 2nd operand for the new COMPONENT_REF.
16573
16574 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
16575
16576         * config/darwin-protos.h (machopic_select_rtx_section): Move to
16577         inside RTX_CODE ifdef.
16578
16579 2011-06-16  Tom de Vries  <tom@codesourcery.com>
16580
16581         PR target/45098
16582         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
16583         Disallow NULL pointer for pointer arithmetic.
16584
16585 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16586
16587         PR target/49398
16588         Revert.
16589         2011-06-10  Wei Guozhi  <carrot@google.com>
16590
16591         PR target/45335
16592         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
16593         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
16594         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
16595         related peephole2.
16596         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
16597         related peephole2.
16598         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
16599         (arm_legitimate_ldrd_p): New prototype.
16600         (arm_output_ldrd): New prototype.
16601         * config/arm/arm.c (arm_check_ldrd_operands): New function.
16602         (arm_legitimate_ldrd_p): New function.
16603         (arm_output_ldrd): New function.
16604
16605 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
16606
16607         PR middle-end/46500
16608         * doc/tm.texi.in: Update Copyright date.
16609         * doc/tm.texi: Regenerate.
16610         * targhooks.c (default_setup_incoming_varargs): Replace
16611         CUMULATIVE_ARGS* argument type with cumulative_args_t.
16612         (default_pretend_outgoing_varargs_named): Likewise.
16613         (hook_pass_by_reference_must_pass_in_stack): Likewise.
16614         (hook_callee_copies_named): Likewise.
16615         (default_function_arg_advance): Likewise.
16616         (default_function_arg): Likewise.
16617         (default_function_incoming_arg): Likewise.
16618         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
16619         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
16620         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
16621         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16622         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
16623         * targhooks.h (default_setup_incoming_varargs): Likewise.
16624         (default_pretend_outgoing_varargs_named): Likewise.
16625         (hook_pass_by_reference_must_pass_in_stack): Likewise.
16626         (hook_callee_copies_named): Likewise.
16627         (default_function_arg_advance): Likewise.
16628         (default_function_arg): Likewise.
16629         (default_function_incoming_arg): Likewise.
16630         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
16631         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
16632         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
16633         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16634         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
16635         * target.def (pass_by_reference): Likewise.
16636         (setup_incoming_varargs, strict_argument_naming): Likewise.
16637         (pretend_outgoing_varargs_named, callee_copies): Likewise.
16638         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
16639         (function_incoming_arg): Likewise.
16640         * target.h: Don't include "tm.h" .
16641         (cumulative_args_t): New typedef.
16642         [GCC_TM_H] (get_cumulative_args): New static inline function.
16643         [GCC_TM_H] (pack_cumulative_args): Likewise.
16644         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
16645         argument type with cumulative_args_t.
16646         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
16647         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
16648         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
16649         (frv_arg_partial_bytes, frv_function_arg): Likewise.
16650         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
16651         (frv_function_arg_1): Likewise.
16652         * config/s390/s390.c (s390_pass_by_reference): Likewise.
16653         (s390_function_arg_advance, s390_function_arg): Likewise.
16654         * config/m32c/m32c.c (m32c_function_arg): Likewise.
16655         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
16656         (m32c_strict_argument_naming): Likewise.
16657         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
16658         (spu_function_arg_advance): Likewise.
16659         (spu_setup_incoming_varargs): Likewise.  Make static.
16660         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
16661         Remove prototype.
16662         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
16663         CUMULATIVE_ARGS* argument type with cumulative_args_t.
16664         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
16665         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
16666         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
16667         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
16668         (mep_pass_by_reference, mep_function_arg): Likewise.
16669         (mep_function_arg_advance): Likewise.
16670         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
16671         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
16672         (m32r_function_arg, m32r_function_arg_advance): Likewise.
16673         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
16674         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
16675         (ix86_function_arg, ix86_pass_by_reference): Likewise.
16676         (ix86_setup_incoming_varargs): Likewise.
16677         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
16678         (sh_strict_argument_naming): Likewise.
16679         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
16680         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
16681         (sh_function_arg_advance, sh_function_arg): Likewise.
16682         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
16683         (pdp11_function_arg_advance): Likewise.
16684         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
16685         Likewise.
16686         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
16687         * config/avr/avr.c (avr_function_arg): Likewise.
16688         (avr_function_arg_advance): Likewise.
16689         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
16690         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
16691         (xtensa_function_arg_1): Likewise.
16692         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
16693         Likewise.
16694         (xstormy16_function_arg): Likewise.
16695         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
16696         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
16697         (fr30_function_arg_advance): Likewise.
16698         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16699         (lm32_function_arg, lm32_function_arg_advance): Likewise.
16700         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
16701         (moxie_function_arg, moxie_function_arg_advance): Likewise.
16702         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
16703         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
16704         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
16705         (cris_function_arg, cris_function_incoming_arg): Likewise.
16706         (cris_function_arg_advance, cris_function_arg_1): Likewise.
16707         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
16708         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
16709         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
16710         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
16711         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
16712         (mn10300_arg_partial_bytes): Likewise.
16713         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
16714         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
16715         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
16716         (ia64_function_arg_1): Likewise.
16717         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
16718         (m68k_function_arg): Likewise.
16719         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
16720         (rs6000_function_arg, setup_incoming_varargs): Likewise.
16721         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
16722         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
16723         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
16724         (picochip_arg_advance): Likewise.
16725         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
16726         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
16727         (mcore_function_arg_advance): Likewise.
16728         * config/score/score.c (score_pass_by_reference): Likewise.
16729         (score_function_arg_advance): Likewise.
16730         (score_arg_partial_bytes): Likewise.  Make static.
16731         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
16732         * config/arm/arm.c (arm_arg_partial_bytes): Replace
16733         CUMULATIVE_ARGS* argument type with cumulative_args_t.
16734         (arm_function_arg, arm_function_arg_advance): Likewise.
16735         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
16736         * config/pa/pa.c (pa_pass_by_reference): Likewise.
16737         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
16738         (pa_function_arg): Likewise.
16739         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
16740         (mips_function_arg, mips_function_arg_advance): Likewise.
16741         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
16742         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
16743         * config/vax/vax.c (vax_function_arg): Likewise.
16744         (vax_function_arg_advance): Likewise.
16745         * config/h8300/h8300.c (h8300_function_arg): Likewise.
16746         (h8300_function_arg_advance): Likewise.
16747         * config/v850/v850.c (v850_pass_by_reference): Likewise.
16748         (v850_strict_argument_naming, v850_function_arg): Likewise.
16749         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
16750         (v850_setup_incoming_varargs): Likewise.
16751         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
16752         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
16753         (mmix_function_arg, mmix_pass_by_reference): Likewise.
16754         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
16755         with const void *.
16756         * config/bfin/bfin.c (setup_incoming_varargs): Replace
16757         CUMULATIVE_ARGS* argument type with cumulative_args_t.
16758         (bfin_function_arg_advance, bfin_function_arg): Likewise.
16759         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
16760         * calls.c (emit_call_1): Change type of args_so_far to
16761         cumulative_args_t.  Changed all callers.
16762         (initialize_argument_information): Likewise.
16763         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
16764         * dse.c (get_call_args): Likewise.
16765         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16766         * function.c (pass_by_reference, reference_callee_copied): Likewise.
16767         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
16768         New member args_so_far_v.  Changed all users.
16769         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
16770         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16771         * config/mips/mips.c (mips_output_args_xfer): Likewise.
16772         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
16773         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16774         * config/microblaze/microblaze.c (microblaze_expand_prologue):
16775         Likewise.
16776         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
16777         m32r_pass_by_reference.
16778
16779 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
16780
16781         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
16782         argument to be a VEC of statements.
16783         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
16784         assert that pattern statements have to have their vector type set.
16785         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
16786         Change the first argument to be a VEC of statements.  Update
16787         documentation.
16788         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
16789         (vect_handle_widen_mult_by_const): New function.
16790         (vect_recog_widen_mult_pattern):  Change the first argument to be a
16791         VEC of statements.  Update documentation.  Check that the constant is
16792         INTEGER_CST.  Support multiplication by a constant that fits an
16793         intermediate type - call vect_handle_widen_mult_by_const.
16794         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
16795         call.  Handle additional pattern statements if necessary.
16796
16797 2011-06-16  Nick Clifton  <nickc@redhat.com>
16798
16799         PR target/49427
16800         * config.gcc: Set cpu_type to v850 for any V850 architecture.
16801         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
16802         md_file, extra_modes, out_file and extra_options are these are all
16803         deduced from cpu_type.
16804
16805 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
16806
16807         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
16808         truncation mask to 63.
16809
16810 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
16811
16812         PR target/49313
16813         PR target/29524
16814         * longlong.h: Add AVR support:
16815         (count_leading_zeros): New macro.
16816         (count_trailing_zeros): New macro.
16817         (COUNT_LEADING_ZEROS_0): New macro.
16818         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
16819         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
16820         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
16821         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
16822         (LIB2FUNCS_EXCLUDE): Add _clz.
16823         * config/avr/libgcc.S (XCALL): Move up in file.
16824         (XJMP): New C Macro.
16825         (DEFUN): New asm macro.
16826         (ENDF): New asm macro.
16827         (__ffssi2): New function.
16828         (__ffshi2): New function.
16829         (__loop_ffsqi2): New function.
16830         (__ctzsi2): New function.
16831         (__ctzhi2): New function.
16832         (__clzdi2): New function.
16833         (__clzsi2): New function.
16834         (__clzhi2): New function.
16835         (__paritydi2): New function.
16836         (__paritysi2): New function.
16837         (__parityhi2): New function.
16838         (__parityqi2): New function.
16839         (__popcounthi2): New function.
16840         (__popcountsi2): New function.
16841         (__popcountdi2): New function.
16842         (__popcountqi2): New function.
16843         (__bswapsi2): New function.
16844         (__bswapdi2): New function.
16845         (__ashldi3): New function.
16846         (__ashrdi3): New function.
16847         (__lshrdi3): New function.
16848         Fix suspicous lines.
16849
16850 2011-06-16  Richard Guenther  <rguenther@suse.de>
16851
16852         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
16853         the same as x != 0.
16854         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
16855         to (bool) X & 1.
16856         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
16857         equality compares against zero for the lower bit.
16858
16859 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
16860
16861         PR tree-optimization/49419
16862         * tree-vrp.c (execute_vrp): Call init_range_assertions
16863         before estimate_numbers_of_iterations, call
16864         free_number_of_iterations_estimates before calling
16865         remove_range_assertions.
16866
16867 2011-06-16  Revital Eres  <revital.eres@linaro.org>
16868
16869         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
16870         (struct partial_schedule): Add rows_length field.
16871         (verify_partial_schedule): Check rows_length.
16872         (ps_insert_empty_row): Handle rows_length.
16873         (create_partial_schedule): Likewise.
16874         (free_partial_schedule): Likewise.
16875         (reset_partial_schedule): Likewise.
16876         (create_ps_insn): Remove rest_count argument.
16877         (remove_node_from_ps): Update rows_length.
16878         (add_node_to_ps): Update rows_length and call create_ps_insn
16879         without passing row_rest_count.
16880         (rotate_partial_schedule): Update rows_length.
16881
16882 2011-06-16  Revital Eres  <revital.eres@linaro.org>
16883
16884         * ddg.c (add_intra_loop_mem_dep): New function.
16885         (build_intra_loop_deps): Call it.
16886
16887 2011-06-13  Jeff Law  <law@redhat.com>
16888
16889         * df-problems.c (df_lr_local_compute): Manually CSE
16890         PIC_OFFSET_TABLE_REGNUM.
16891         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
16892         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
16893
16894 2011-06-13  Jan Hubicka  <jh@suse.cz>
16895
16896         * cgraphunit.c (handle_alias_pairs): New function.
16897         (cgraph_finalize_compilation_unit): Use it.
16898         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
16899         as externally visible.
16900
16901 2011-06-15  Richard Guenther  <rguenther@suse.de>
16902
16903         * expr.c (expand_expr_real_2): Reduce all integral types to
16904         bitfield precision.
16905         (expand_expr_real_1): Likewise.
16906
16907 2011-06-15  Martin Jambor  <mjambor@suse.cz>
16908
16909         PR tree-optimization/48613
16910         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
16911         ipa_node_params_vector is NULL.
16912
16913 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
16914
16915         PR debug/49382
16916         * dwarf2out.c (dw_loc_list_node): Add force field.
16917         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
16918         location in the list, even if it is modified before first real insn.
16919         (output_loc_list): Emit empty ranges with force flag set.
16920         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
16921
16922 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
16923
16924         PR target/49349
16925         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
16926         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
16927         above a fence.  Update comments.
16928         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
16929         placed just above it.  Do not allow NULL place_to_insert.
16930
16931 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
16932
16933         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
16934         (slpeel_tree_peel_loop_to_edge): Don't call
16935         remove_dead_stmts_from_loop.
16936         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
16937         remove irrelevant pattern statements.  For irrelevant statements
16938         check if it is the last statement of a detected pattern, use
16939         corresponding pattern statement instead.
16940         (destroy_loop_vec_info): No need to remove pattern statements,
16941         only free stmt_vec_info.
16942         (vect_transform_loop): For irrelevant statements check if it is
16943         the last statement of a detected pattern, use corresponding
16944         pattern statement instead.
16945         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
16946         pattern statements.  Set basic block for the new statement.
16947         (vect_pattern_recog): Update documentation.
16948         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
16949         operands of pattern statements.
16950         (vectorizable_call): Fix printing.  In case of a pattern statement
16951         use the lhs of the original statement when creating a dummy
16952         statement to replace the original call.
16953         (vect_analyze_stmt): For irrelevant statements check if it is
16954         the last statement of a detected pattern, use corresponding
16955         pattern statement instead.
16956         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
16957         statements use gsi of the original statement.
16958
16959 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
16960
16961         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
16962         common/common-target-def.h.
16963         * target.def (default_target_flags, handle_option,
16964         supports_split_stack, optimization_table, init_struct,
16965         except_unwind_info, unwind_tables_default, have_named_sections):
16966         Move to common/common-target.def.
16967         * target.h (enum opt_levels, struct default_options): Move to
16968         common/common-target.h.
16969         * targhooks.c (default_except_unwind_info,
16970         dwarf2_except_unwind_info, sjlj_except_unwind_info,
16971         default_target_handle_option, empty_optimization_table): Move to
16972         common/common-targhooks.c.
16973         * targhooks.h (default_except_unwind_info,
16974         dwarf2_except_unwind_info, sjlj_except_unwind_info,
16975         default_target_handle_option, empty_optimization_table): Move to
16976         common/common-targhooks.h.
16977         * common/common-target-def.h: Include common/common-targhooks.h.
16978         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
16979         defined.
16980         * common/common-target.def (handle_option, option_init_struct,
16981         option_optimization_table, default_target_flags,
16982         except_unwind_info, supports_split_stack, unwind_tables_default,
16983         have_named_sections): Move from target.def.
16984         (HOOK_PREFIX): Undefine at end of file.
16985         * common/common-target.h: Include input.h.
16986         (enum opt_levels, struct default_options): Move from target.h.
16987         * common/common-targhooks.c, common/common-targhooks.h: New.
16988         * config.gcc (target_has_targetm_common): Default to yes.
16989         (moxie*): Set target_has_targetm_common=no.
16990         (hppa*-*-*): Don't set target_has_targetm_common=yes.
16991         * doc/tm.texi: Regenerate.
16992         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
16993         (C_TARGET_DEF_H): Add common/common-targhooks.h.
16994         (GCC_OBJS): Remove vec.o.
16995         (OBJS): Remove hooks.o and vec.o.
16996         (OBJS-libcommon-target): Add vec.o, hooks.o and
16997         common/common-targhooks.o.
16998         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
16999         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
17000         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
17001         cfglayout.o, $(out_object_file), $(common_out_object_file)):
17002         Update dependencies.
17003         (common/common-targhooks.o): New.
17004         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
17005         * common/config/pa/pa-common.c: Include more headers.  Take
17006         copyright dates from pa.c.
17007         (pa_option_optimization_table, pa_handle_option,
17008         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
17009         TARGET_HANDLE_OPTION): Move from pa.c.
17010         * common/config/alpha/alpha-common.c,
17011         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
17012         common/config/bfin/bfin-common.c,
17013         common/config/cris/cris-common.c,
17014         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
17015         common/config/h8300/h8300-common.c,
17016         common/config/i386/i386-common.c,
17017         common/config/ia64/ia64-common.c,
17018         common/config/iq2000/iq2000-common.c,
17019         common/config/lm32/lm32-common.c,
17020         common/config/m32c/m32c-common.c,
17021         common/config/m32r/m32r-common.c,
17022         common/config/m68k/m68k-common.c,
17023         common/config/mcore/mcore-common.c,
17024         common/config/mep/mep-common.c,
17025         common/config/microblaze/microblaze-common.c,
17026         common/config/mips/mips-common.c,
17027         common/config/mmix/mmix-common.c,
17028         common/config/mn10300/mn10300-common.c,
17029         common/config/pdp11/pdp11-common.c,
17030         common/config/picochip/picochip-common.c,
17031         common/config/rs6000/rs6000-common.c,
17032         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
17033         common/config/score/score-common.c, common/config/sh/sh-common.c,
17034         common/config/sparc/sparc-common.c,
17035         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
17036         common/config/vax/vax-common.c,
17037         common/config/xstormy16/xstormy16-common.c,
17038         common/config/xtensa/xtensa-common.c: New.
17039         * config/alpha/alpha.c: Include common/common-target.h.
17040         (alpha_option_optimization_table, alpha_handle_option,
17041         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17042         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
17043         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
17044         * config/arm/arm.c (arm_option_optimization_table,
17045         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
17046         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
17047         arm-common.c.
17048         * config/avr/avr.c (avr_option_optimization_table,
17049         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
17050         to avr-common.c.
17051         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
17052         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
17053         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
17054         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
17055         * config/cris/cris.c (cris_option_optimization_table,
17056         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17057         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
17058         cris-common.c.
17059         * config/fr30/fr30.c (fr30_option_optimization_table,
17060         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
17061         to fr30-common.c.
17062         * config/frv/frv.c (frv_option_optimization_table,
17063         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
17064         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
17065         * config/h8300/h8300.c (h8300_option_optimization_table,
17066         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
17067         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
17068         * config/i386/i386-protos.h (ix86_handle_option): Declare.
17069         * config/i386/i386.c: Include common/common-target.h.
17070         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
17071         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
17072         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
17073         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
17074         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
17075         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
17076         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
17077         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
17078         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
17079         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
17080         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
17081         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
17082         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
17083         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
17084         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
17085         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
17086         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
17087         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
17088         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
17089         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
17090         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
17091         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
17092         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
17093         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
17094         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
17095         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
17096         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
17097         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
17098         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
17099         ix86_option_optimization_table, ix86_option_init_struct,
17100         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
17101         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
17102         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
17103         i386-common.c.
17104         * config/i386/t-i386 (i386.o): Update dependencies.
17105         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
17106         * config/ia64/ia64.c (ia64_option_optimization_table,
17107         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
17108         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17109         ia64_handle_option): Move to ia64-common.c.
17110         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
17111         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
17112         * config/lm32/lm32.c (lm32_option_optimization_table,
17113         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
17114         to lm32-common.c.
17115         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
17116         m32c-common.c.
17117         * config/m32r/m32r.c (m32r_option_optimization_table,
17118         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17119         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
17120         m32r_handle_option): Move to m32r-common.c.
17121         (m32r_memory_move_cost): Remove comment referring to
17122         TARGET_HANDLE_OPTION.
17123         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
17124         Move to m68k-common.c.
17125         * config/mcore/mcore.c (mcore_option_optimization_table,
17126         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
17127         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
17128         * config/mep/mep.c (mep_option_optimization_table,
17129         mep_handle_option, TARGET_HANDLE_OPTION,
17130         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
17131         Move to mep-common.c.
17132         * config/microblaze/microblaze.c
17133         (microblaze_option_optimization_table,
17134         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
17135         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
17136         * config/mips/mips.c (mips_handle_option,
17137         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
17138         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
17139         mips-common.c.
17140         * config/mmix/mmix.c (mmix_option_optimization_table,
17141         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
17142         Move to mmix-common.c.
17143         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
17144         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
17145         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17146         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
17147         * config/pa/pa.c: Include common/common-target.h.
17148         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
17149         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17150         pa_handle_option): Move to pa-common.c.
17151         (pa_option_override): Use targetm_common.except_unwind_info.
17152         (pa_asm_output_mi_thunk, pa_function_section): Use
17153         targetm_common.have_named_sections.
17154         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
17155         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17156         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
17157         pdp11_handle_option, pdp11_option_init_struct): Move to
17158         pdp11-common.c.
17159         * config/picochip/picochip.c (picochip_option_optimization_table,
17160         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
17161         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
17162         * config/rs6000/rs6000.c: Include common/common-target.h.
17163         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
17164         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
17165         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
17166         rs6000_handle_option): Move to rs6000-common.c.
17167         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
17168         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
17169         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
17170         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
17171         * config/s390/s390.c (processor_flags_table,
17172         s390_option_optimization_table, s390_option_init_struct,
17173         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
17174         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
17175         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
17176         * config/s390/s390.h (processor_flags_table): Declare.
17177         * config/score/score.c (score_option_optimization_table,
17178         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17179         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
17180         score_handle_option): Move to score-common.c.
17181         * config/sh/sh.c (sh_option_optimization_table,
17182         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
17183         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17184         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
17185         * config/sparc/sparc.c: Include common/common-target.h.
17186         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
17187         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
17188         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
17189         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
17190         spu_option_init_struct): Move to spu-common.c.
17191         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
17192         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
17193         * config/v850/v850.c (small_memory_physical_max,
17194         v850_handle_memory_optionn v850_handle_option,
17195         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
17196         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
17197         v850-common.c.
17198         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
17199         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
17200         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
17201         Move to xtensa-common.c.
17202         * cfglayout.c: Include common/common-target.h.
17203         (fixup_reorder_chain): Use targetm_common.have_named_sections.
17204         * cfgrtl.c: Include common/common-target.h.
17205         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
17206         targetm_common.have_named_sections.
17207         * dbxout.c: Include common/common-target.h.
17208         (dbxout_function_end): Use targetm_common.have_named_sections.
17209         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
17210         targetm_common.except_unwind_info.
17211         * dwarf2out.c: Include common/common-target.h.
17212         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
17213         dwarf2out_begin_prologue, dwarf2out_frame_init,
17214         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
17215         targetm_common.except_unwind_info.
17216         * except.c: Include common/common-target.h.
17217         (init_eh, finish_eh_generation,
17218         output_one_function_exception_table): Use
17219         targetm_common.except_unwind_info.
17220         (switch_to_exception_section): Use targetm_common.have_named_sections.
17221         * explow.c: Include common/common-target.h.
17222         * expr.c: Include common/common-target.h.
17223         (build_personality_function): Use targetm_common.except_unwind_info.
17224         * function.c: Include common/common-target.h.
17225         (expand_function_end): Use targetm_common.except_unwind_info.
17226         * haifa-sched.c: Include common/common-target.h.
17227         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
17228         * lto-opts.c: Include common/common-target.h instead of target.h.
17229         (lto_reissue_options): Use targetm_common.handle_option.
17230         * opts.c: Include common/common-target.h.
17231         (target_handle_option): Use targetm_common.handle_option.
17232         (init_options_struct): Update comment referring to
17233         targetm.target_option.optimization.  Use
17234         targetm_common.default_target_flags,
17235         targetm_common.unwind_tables_default and
17236         targetm_common.option_init_struct.
17237         (default_options_optimization): Use
17238         targetm_common.option_optimization_table.
17239         (finish_options): Use targetm_common.except_unwind_info,
17240         targetm_common.unwind_tables_default,
17241         targetm_common.have_named_sections and
17242         targetm_common.supports_split_stack.
17243         * toplev.c: Include common/common-target.h.
17244         (process_options): Use targetm_common.have_named_sections.
17245         * tree-tailcall.c: Include common/common-target.h.
17246         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
17247         * tree.c: Include common/common-target.h.
17248         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
17249         * varasm.c: Include common/common-target.h.
17250         (resolve_unique_section, hot_function_section,
17251         default_function_section): Use targetm_common.have_named_sections.
17252
17253 2011-06-14  Easwaran Raman  <eraman@google.com>
17254
17255         PR rtl-optimization/44194
17256         * dse.c: Include tree-flow.h
17257         (insn_info): Add new field non_frame_wild_read.
17258         (group_info): Add new fields escaped_n and escaped_p.
17259         (kill_on_calls): New variable.
17260         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
17261         (dse_step0): Initialize kill_on_calls.
17262         (can_escape): New function.
17263         (set_usage_bits): Add additional parameter; record information
17264         about escaped locations.
17265         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
17266         (dse_step2_nospill): Set kill_on_calls based on
17267         group->escaped_n and group->escaped_n.
17268         (add_wild_read): Refactor into...
17269         (reset_active_stores): ... New function, and
17270         (free_read_records): ... New function.
17271         (add_non_frame_wild_read): New function.
17272         (scan_insn): Call add_non_frame_wild_read on non-const calls.
17273         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
17274         (dse_step5_nospill): Call scan_reads_nospill for instructions
17275         marked as non_frame_wild_read.
17276         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
17277
17278 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
17279
17280         * common/common-target-def.h, common/common-target.def,
17281         common/common-target.h, common/config/default-common.c,
17282         common/config/pa/pa-common.c: New files.
17283         * Makefile.in (common_out_file, common_out_object_file,
17284         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
17285         (OBJS-libcommon-target): Include $(common_out_object_file).
17286         (prefix.o): Update dependencies.
17287         ($(common_out_object_file), common/common-target-hooks-def.h,
17288         s-common-target-hooks-def-h): New.
17289         (s-tm-texi): Also check timestamp on common-target.def.
17290         (build/genhooks.o): Update dependencies.
17291         * config.gcc (common_out_file, target_has_targetm_common): Define.
17292         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
17293         TARGET_ALWAYS_STRIP_DOTDOT.
17294         * configure.ac (common_out_object_file): Define.
17295         (common_out_file, common_out_object_file): Substitute.
17296         (common): Create directory.
17297         * configure: Regenerate.
17298         * doc/tm.texi.in (targetm_common): Document.
17299         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
17300         * doc/tm.texi: Regenerate.
17301         * genhooks.c (hook_array): Also include common/common-target.def.
17302         * prefix.c (tm.h): Don't include.
17303         (common/common-target.h): Include.
17304         (ALWAYS_STRIP_DOTDOT): Don't define.
17305         (update_path): Use targetm_common.always_strip_dotdot instead of
17306         ALWAYS_STRIP_DOTDOT.
17307         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
17308
17309 2011-06-14  David Li  <davidxl@google.com>
17310
17311         * passes.c (execute_function_todo): Remove TODO_dump_func.
17312         (execute_one_pass): Remove TODO_dump_func.
17313         (execute_function_dump): New function.
17314         * tree-vrp.c: Remove TODO_dump_func.
17315         * regrename.c: Remove TODO_dump_func.
17316         * fwprop.c: Remove TODO_dump_func.
17317         * tree-into-ssa.c: Remove TODO_dump_func.
17318         * tree-complex.c: Remove TODO_dump_func.
17319         * tracer.c: Remove TODO_dump_func.
17320         * tree-loop-distribution.c: Remove TODO_dump_func.
17321         * postreload-gcse.c: Remove TODO_dump_func.
17322         * postreload.c: Remove TODO_dump_func.
17323         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
17324         * tree-tailcall.c: Remove TODO_dump_func.
17325         * ipa-cp.c: Remove TODO_dump_func.
17326         * final.c: Remove TODO_dump_func.
17327         * tree-emutls.c: Remove TODO_dump_func.
17328         * omp-low.c: Remove TODO_dump_func.
17329         * tree-ssa-dse.c: Remove TODO_dump_func.
17330         * tree-ssa-uncprop.c: Remove TODO_dump_func.
17331         * auto-inc-dec.c: Remove TODO_dump_func.
17332         * reorg.c: Remove TODO_dump_func.
17333         * tree-ssa-copyrename.c: Remove TODO_dump_func.
17334         * tree-ssa-ccp.c: Remove TODO_dump_func.
17335         * compare-elim.c: Remove TODO_dump_func.
17336         * mode-switching.c: Remove TODO_dump_func.
17337         * modulo-sched.c: Remove TODO_dump_func.
17338         * tree-call-cdce.c: Remove TODO_dump_func.
17339         * cse.c: Remove TODO_dump_func.
17340         * web.c: Remove TODO_dump_func.
17341         * tree-stdarg.c: Remove TODO_dump_func.
17342         * lto-streamer-out.c: Remove TODO_dump_func.
17343         * tree-ssa-math-opts.c: Remove TODO_dump_func.
17344         * tree-ssa-dom.c: Remove TODO_dump_func.
17345         * tree-nrv.c: Remove TODO_dump_func.
17346         * loop-init.c: Remove TODO_dump_func.
17347         * gimple-low.c: Remove TODO_dump_func.
17348         * ipa-inline.c: Remove TODO_dump_func.
17349         * tree-ssa-sink.c: Remove TODO_dump_func.
17350         * jump.c: Remove TODO_dump_func.
17351         * ifcvt.c: Remove TODO_dump_func.
17352         * tree-ssa-loop.c: Remove TODO_dump_func.
17353         * recog.c: Remove TODO_dump_func.
17354         * dse.c: Remove TODO_dump_func.
17355         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
17356         * matrix-reorg.c: Remove TODO_dump_func.
17357         * tree-eh.c: Remove TODO_dump_func.
17358         * regmove.c: Remove TODO_dump_func.
17359         * function.c: Remove TODO_dump_func.
17360         * tree-vectorizer.c: Remove TODO_dump_func.
17361         * ipa-split.c: Remove TODO_dump_func.
17362         * gcse.c: Remove TODO_dump_func.
17363         * tree-if-conv.c: Remove TODO_dump_func.
17364         * init-regs.c: Remove TODO_dump_func.
17365         * tree-ssa-phiopt.c: Remove TODO_dump_func.
17366         * implicit-zee.c: Remove TODO_dump_func.
17367         * lower-subreg.c: Remove TODO_dump_func.
17368         * bt-load.c: Remove TODO_dump_func.
17369         * tree-dfa.c: Remove TODO_dump_func.
17370         * except.c: Remove TODO_dump_func.
17371         * emit-rtl.c: Remove TODO_dump_func.
17372         * store-motion.c: Remove TODO_dump_func.
17373         * cfgexpand.c: Remove TODO_dump_func.
17374         * tree-cfgcleanup.c: Remove TODO_dump_func.
17375         * cfgcleanup.c: Remove TODO_dump_func.
17376         * tree-ssa-pre.c: Remove TODO_dump_func.
17377         * tree-sra.c: Remove TODO_dump_func.
17378         * tree-mudflap.c: Remove TODO_dump_func.
17379         * tree-ssa-copy.c: Remove TODO_dump_func.
17380         * cfglayout.c: Remove TODO_dump_func.
17381         * tree-ssa-forwprop.c: Remove TODO_dump_func.
17382         * tree-ssa-dce.c: Remove TODO_dump_func.
17383         * ira.c: Remove TODO_dump_func.
17384         * tree-ssa.c: Remove TODO_dump_func.
17385         * integrate.c: Remove TODO_dump_func.
17386         * tree-optimize.c: Remove TODO_dump_func.
17387         * tree-ssa-phiprop.c: Remove TODO_dump_func.
17388         * tree-object-size.c: Remove TODO_dump_func.
17389         * combine.c: Remove TODO_dump_func.
17390         * bb-reorder.c: Remove TODO_dump_func.
17391         * cprop.c: Remove TODO_dump_func.
17392         * var-tracking.c: Remove TODO_dump_func.
17393         * tree-profile.c: Remove TODO_dump_func.
17394         * tree-vect-generic.c: Remove TODO_dump_func.
17395         * reg-stack.c: Remove TODO_dump_func.
17396         * sched-rgn.c: Remove TODO_dump_func.
17397         * tree-ssa-structalias.c: Remove TODO_dump_func.
17398         * tree-switch-conversion.c: Remove TODO_dump_func.
17399         * tree-cfg.c: Remove TODO_dump_func.
17400         * tree-ssa-reassoc.c: Remove TODO_dump_func.
17401         * combine-stack-adj.c: Remove TODO_dump_func.
17402         * dce.c: Remove TODO_dump_func.
17403         * tree-ssanames.c: Remove TODO_dump_func.
17404         * regcprop.c: Remove TODO_dump_func.
17405
17406 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
17407
17408         PR middle-end/47364
17409         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
17410         and properly handle result not in Pmode.
17411
17412 2011-06-14  Robert Millan  <rmh@gnu.org>
17413
17414         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
17415         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
17416         `config/linux.h'.
17417
17418         * config/i386/kfreebsd-gnu64.h: New file.
17419         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
17420         with `i386/kfreebsd-gnu64.h'.
17421
17422         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
17423         (GNU_USER_LINK_EMULATION64): New macros.
17424         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
17425         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
17426         of hardcoding `elf_i386' and `elf_x86_64'.
17427
17428 2011-06-14  Nick Clifton  <nickc@redhat.com>
17429
17430         PR target/49403
17431         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
17432
17433         PR target/49402
17434         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
17435
17436 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
17437
17438         PR fortran/49103
17439         * tree.h (DECL_NONSHAREABLE): Define.
17440         (struct tree_decl_common): Change decl_common_unused to
17441         decl_nonshareable_flag.
17442         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
17443         Ignore vars with DECL_NONSHAREABLE bit set.
17444         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
17445         on stores to automatic aggregate vars.
17446
17447         PR rtl-optimization/49390
17448         Revert:
17449         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
17450
17451         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
17452         MEM_ALIAS_SET.
17453
17454 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
17455             Tom de Vries  <tom@codesourcery.com>
17456
17457         PR target/45098
17458         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
17459         Document changed semantics.
17460         (max_stmt_executions, max_stmt_executions_int): Declare.
17461         * tree-data-ref.c (estimated_loop_iterations)
17462         (estimated_loop_iterations_int): Move functions...
17463         * tree-ssa-loop-niter.c (estimated_loop_iterations)
17464         (estimated_loop_iterations_int): here.
17465         (record_estimate): Change nb_iterations_upper_bound and
17466         nb_iterations_estimate semantics.
17467         (max_stmt_executions, max_stmt_executions_int): New function.
17468         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
17469         (max_stmt_executions_tree): this.
17470         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
17471         estimated_loop_iterations_tree.
17472         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
17473         max_stmt_executions_int instead of estimated_loop_iterations_int.
17474         * predict.c (predict_loops): Idem.
17475         * tree-parloops.c (parallelize_loops): Idem.
17476         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
17477         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
17478         (init_omega_for_ddr_1): Idem.
17479         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
17480         (loop_prefetch_arrays): Idem
17481         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
17482         max_stmt_executions instead of estimated_loop_iterations.
17483         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
17484         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
17485         instead of nb_iterations_upper_bound.
17486
17487 2011-06-13  Jan Hubicka  <jh@suse.cz>
17488
17489         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
17490
17491 2011-06-14  Richard Henderson  <rth@redhat.com>
17492
17493         PR debug/48459
17494         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
17495         (based_loc_descr): Assert it's true.
17496         (compute_frame_pointer_to_fb_displacement): Set it, rather than
17497         aborting immediately.
17498
17499 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
17500             Mingfeng Wu  <mingfeng@faraday-tech.com>
17501
17502         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
17503
17504 2011-06-13  Jan Hubicka  <jh@suse.cz>
17505
17506         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
17507
17508 2011-06-13  Jan Hubicka  <jh@suse.cz>
17509
17510         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
17511         similarly to DECL_COMDAT.
17512         * cgraphunit.c (cgraph_analyze_function): Likewise.
17513         * ipa.c (function_and_variable_visibility): Likewise.
17514
17515 2011-06-13  Jan Hubicka  <jh@suse.cz>
17516
17517         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
17518         BINFO_VIRTUALS when streaming for ltrans unit.
17519
17520 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
17521
17522         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
17523         (movdi_internal64): Same.
17524
17525 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
17526
17527         PR target/44618
17528         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
17529         a set of similar patterns, where the MATCH_OPERAND for the function
17530         argument is replaced with individual references to hardware registers.
17531         (save_fpregs_<mode>): Ditto
17532         (restore_gpregs_<mode>): Ditto
17533         (return_and_restore_gpregs_<mode>): Ditto
17534         (return_and_restore_fpregs_<mode>): Ditto
17535         (return_and_restore_fpregs_aix_<mode>): Ditto
17536
17537 2011-06-13  Jan Hubicka  <jh@suse.cz>
17538
17539         * ipa-utils.c (postorder_stack): New structure.
17540         (ipa_reverse_postorder): Handle aliases.
17541
17542 2011-06-13  Jan Hubicka  <jh@suse.cz>
17543
17544         * ipa-inline.c (reset_edge_caches): Walk aliases.
17545         (update_caller_keys): Do not test inlinability of aliases.
17546         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
17547         (do_estimate_growth): Fix typo.
17548
17549 2011-06-13  Jan Hubicka  <jh@suse.cz>
17550
17551         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
17552         (can_remove_node_now_p): ... here; handle same comdat groups.
17553         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
17554         (inline_call): Update use of can_remove_node_now_p.
17555
17556 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
17557
17558         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
17559         condition to disallow non-identical memory locations.
17560         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
17561         preference to bit manipulation instructions.
17562
17563 2011-06-13  Jan Hubicka  <jh@suse.cz>
17564
17565         * cgraph.c (cgraph_for_node_thunks_and_aliases,
17566         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
17567         (nonremovable_p): New function.
17568         (cgraph_can_remove_if_no_direct_calls_p): New function.
17569         (used_from_object_file_p): New functoin.
17570         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
17571         references from aliases.
17572         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
17573         * ipa-inline.c (check_caller_edge): New function.
17574         (want_inline_function_called_once_p): Use it; accept aliases called
17575         once, too.
17576         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
17577
17578 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17579
17580         PR target/48454
17581         * config/arm/neon.md (vec_pack_trunc): Set the lengths
17582         correctly for the case with Quad vectors.
17583
17584 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
17585            Ira Rosen  <ira.rosen@linaro.org>
17586
17587         PR tree-optimization/49352
17588         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
17589         all, make sure loop_use_stmt after the loop is a def stmt of a used
17590         SSA_NAME that is the only one defined inside of the loop.  Don't
17591         check for COND_EXPR and GIMPLE_BINARY_RHS.
17592         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
17593         check_reduction is true.
17594
17595 2011-06-11  Jan Hubicka  <jh@suse.cz>
17596
17597         PR middle-end/49373
17598         * ipa.c (cgraph_externally_visible_p): Check resolution info.
17599
17600 2011-06-11  Jan Hubicka  <jh@suse.cz>
17601
17602         PR middle-end/48836
17603         * ipa-inline-transform.c: Include tree-pass.h
17604         (inline_transform): Set TODO_update_ssa_only_virtuals.
17605         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
17606
17607 2011-06-11  Jan Hubicka  <jh@suse.cz>
17608
17609         PR middle-end/49378
17610         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
17611         aliases and thunks.
17612
17613 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
17614
17615         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
17616         Take number of iterations to peel into account for equally frequent
17617         misalignment values.
17618
17619 2011-06-11  Jan Hubicka  <jh@suse.cz>
17620
17621         * lto-streamer-out.c (produce_symtab): Stream out the newly
17622         represented aliases.
17623
17624 2011-06-11  Jan Hubicka  <jh@suse.cz>
17625
17626         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
17627         varying args.
17628         (ipa_update_after_lto_read): Likewise.
17629         (ipa_write_node_info): Do not sream call_with_var_arguments.
17630         (ipa_read_node_info): Likewise.
17631
17632 2011-06-11  Jan Hubicka  <jh@suse.cz>
17633
17634         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
17635
17636 2011-06-11  Jan Hubicka  <jh@suse.cz>
17637
17638         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
17639         (lto_symtab_resolve_can_prevail_p): Likewise.
17640         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
17641         * cgraph.c (same_body_aliases_done): New global var.
17642         (cgraph_same_body_alias_1): Rename to ...
17643         (cgraph_create_function_alias): ... this one; reorg to new
17644         representation.
17645         (cgraph_same_body_alias): Use cgraph_create_function_alias;
17646         record references when asked to.
17647         (cgraph_add_thunk): Fix formating.
17648         (cgraph_get_node): Kill same body alias code.
17649         (cgraph_node_for_asm): Likewise.
17650         (cgraph_remove_same_body_alias): Remove.
17651         (cgraph_remove_node): Kill same body alias code.
17652         (cgraph_mark_address_taken_node): Mark also the aliased function
17653         as having address taken.
17654         (dump_cgraph_node): Dump same body aliases.
17655         (cgraph_for_node_thunks_and_aliases): Update for new alias
17656         representation.
17657         (cgraph_for_node_and_aliases): Likewise.
17658         * cgraph.h (same_body): Kll pointer.
17659         (same_body_alias): Update comment.
17660         (same_body_aliases_done): Declare.
17661         (cgraph_remove_same_body_alias): Remove declaration.
17662         (cgraph_create_function_alias): Declare.
17663         (cgraph_process_same_body_aliases): Declare.
17664         (cgraph_function_with_gimple_body_p): Check for alias.
17665         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
17666         (cgraph_alias_aliased_node): New function.
17667         (cgraph_function_node): Update for new aliases.
17668         (cgraph_function_or_thunk_node): Likewise.
17669         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
17670         (inline_call): Remove dead aliases.
17671         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
17672         name hack for same body aliases.
17673         (clone_of_p): Look through aliases.
17674         (verify_cgraph_node): Verify aliases.
17675         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
17676         (cgraph_process_same_body_aliases): New function.
17677         (process_function_and_variable_attributes): Disable weakref warning on
17678         alias.
17679         (cgraph_analyze_functions): Handle aliases.
17680         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
17681         (assemble_thunks): Rename to ...
17682         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
17683         (cgraph_expand_function): Remove alias output code.
17684         (cgraph_output_in_order): Skip aliases.
17685         (cgraph_preserve_function_body_p): Aliases don't need preserving.
17686         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
17687         (ipa_record_reference): Do not assert on alias references.
17688         (ipa_ref_has_aliases_p): New function.
17689         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
17690         (ipa_ref_has_aliases_p): Declare.
17691         * lto-cgraph.c (lto_output_node): Handle aliases.
17692         (input_node): Likewise.
17693         * lto-streamer-out.c (lto_output): Skip aliases.
17694         (produce_symtab): Kill same_body_alias code.
17695         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
17696         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
17697         * ipa-inline.c (update_caller_keys): Walk aliases.
17698         (inline_small_functions): Fix thinko in previous patch.
17699         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
17700         (function_and_variable_visibility): Do not walk same body aliases.
17701         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
17702         (ipa_pta_execute): Use it.
17703
17704 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
17705
17706         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
17707         (*vec_dupv2df): Rename from vec_dupv2df.
17708         (vec_dupv2df): New expander.
17709
17710 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
17711
17712         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
17713
17714 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
17715
17716         * config/i386/i386.md: Use default value in "isa" attribute.
17717         * config/i386/sse.md: Ditto.
17718         * config/i386/mmx.md: Ditto.
17719
17720 2011-06-10  Wei Guozhi  <carrot@google.com>
17721
17722         PR target/45335
17723         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
17724         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
17725         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
17726         related peephole2.
17727         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
17728         related peephole2.
17729         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
17730         (arm_legitimate_ldrd_p): New prototype.
17731         (arm_output_ldrd): New prototype.
17732         * config/arm/arm.c (arm_check_ldrd_operands): New function.
17733         (arm_legitimate_ldrd_p): New function.
17734         (arm_output_ldrd): New function.
17735
17736 2011-06-10  David Li  <davidxl@google.com>
17737
17738         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
17739         * passes.c (passr_eq): New function.
17740         (create_pass_tab): New function.
17741         (pass_traverse): New function.
17742         (dump_one_pass): New function.
17743         (dump_pass_list): New function.
17744         (dump_passes): New function.
17745
17746 2011-06-10  Jan Hubicka  <jh@suse.cz>
17747
17748         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
17749         setting the nothrow flag.
17750         * ipa-reference.c (propagate): Skip aliases.
17751         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
17752         (propagate_nothrow): Skip aliases; do not update cgraph.
17753         (local_pure_const): Do not update cgraph.
17754         * tree-profile.c (tree_profiling): Do fixup_cfg.
17755
17756 2011-06-10  Jan Hubicka  <jh@suse.cz>
17757
17758         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
17759         (cgraph_local_node_p): ... here; handle aliases.
17760         (has_addr_references_p): Break out from ...;
17761         (cgraph_remove_unreachable_nodes) ... here.
17762
17763 2011-06-10  Jan Hubicka  <jh@suse.cz>
17764
17765         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
17766         * common.opt (flag_inline_functions_called_once): Do not
17767         initialize to 1.
17768
17769 2011-06-10  Jan Hubicka  <jh@suse.cz>
17770
17771         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
17772         (ipcp_initialize_node_lattices): Do not deal with aliases;
17773         Do not try to propagate through thunks.
17774         (ipcp_change_tops_to_bottom): Do not deal with aliases.
17775
17776 2011-06-10  Jan Hubicka  <jh@suse.cz>
17777
17778         * ipa-prop.c (ipa_write_node_info): Stream jump functions
17779         for indirect calls.
17780         (ipa_read_node_info): Likewise.
17781
17782 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17783
17784         PR lto/49302
17785         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
17786         (build_and_insert_call): Likewise.
17787         (build_and_insert_ref): New.
17788         (gimple_expand_builtin_pow): Minor cleanup.
17789         (gimple_expand_builtin_cabs): New.
17790         (execute_cse_sincos): Add case for BUILT_IN_CABS.
17791
17792 2011-06-10  Jan Hubicka  <jh@suse.cz>
17793
17794         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
17795         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
17796         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
17797         (ipcp_propagate_stage): Skip aliases when propagating.
17798         (ipcp_need_redirect_p): Skip aliases.
17799         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
17800         collect_callers_of_node.
17801         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
17802         for aliases.
17803         (ipa_compute_jump_functions): Look through aliases.
17804
17805 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17806
17807         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
17808
17809 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
17810
17811         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
17812         Adjust comments.
17813         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
17814
17815 2011-06-10  Jan Hubicka  <jh@suse.cz>
17816
17817         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
17818         Update call of gimple_get_virt_method_for_binfo.
17819         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
17820         refuse_thunks parameter.
17821         (gimple_fold_call): Update.
17822         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
17823
17824 2011-06-10  Jan Hubicka  <jh@suse.cz>
17825
17826         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
17827         (not_all_callers_have_enough_arguments_p): ... this one; turn into
17828         worker for cgraph_for_node_and_aliases.
17829         (convert_callers_for_node): Break out from ...
17830         (convert_callers): ... here.
17831         (modify_function): Use collect_callers_of_node.
17832         (ipa_early_sra): Use cgraph_for_node_and_aliases.
17833
17834 2011-06-10  Richard Guenther  <rguenther@suse.de>
17835
17836         PR tree-optimization/49361
17837         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
17838         when not already in gimple form.
17839
17840 2011-06-10  Richard Guenther  <rguenther@suse.de>
17841
17842         PR bootstrap/49344
17843         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
17844         FOR_EACH_PHI_OR_STMT_USE.
17845
17846 2011-06-10  Jan Hubicka  <jh@suse.cz>
17847
17848         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
17849         (clone_inlined_nodes): ... here.
17850         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
17851         to real destination prior inlining.
17852         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
17853         can_early_inline_edge_p, want_early_inline_function_p,
17854         want_early_inline_function_p, want_inline_small_function_p,
17855         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
17856         edge_badness, update_all_callee_keys, lookup_recursive_calls,
17857         add_new_edges_to_heap, inline_small_functions, flatten_function,
17858         inline_always_inline_functions, early_inline_small_functions): Use
17859         cgraph_function_or_thunk_node.
17860         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
17861         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
17862         (do_estimate_edge_growth_1): Break out from ...
17863         (do_estimate_growth) ... here; walk aliases.
17864         (inline_generate_summary): Skip aliases.
17865
17866 2011-06-10  Richard Guenther  <rguenther@suse.de>
17867
17868         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
17869         forward when combining, visit inserted stmts when a stmt was changed.
17870
17871 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
17872
17873         * tree.h (error_operand_p): Add.
17874         * dbxout.c (dbxout_type_fields): Use the latter.
17875         * c-decl.c (add_stmt): Likewise.
17876         * gimplify.c (omp_add_variable, omp_notice_variable,
17877         gimplify_scan_omp_clauses): Likewise.
17878
17879 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
17880
17881         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
17882         when a value is actually passed in regs.
17883
17884 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
17885             Laurent Rougé  <laurent.rouge@menta.fr>
17886
17887         * doc/invoke.texi (SPARC options): Add -mflat.
17888         * config/sparc/sparc.opt: Likewise.
17889         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
17890         (sparc_flat_expand_prologue): Declare.
17891         (sparc_flat_expand_epilogue): Likewise.
17892         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
17893         (CPP_ENDIAN_SPEC): Replace with...
17894         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
17895         (CPP_SPEC): Adjust to above change.
17896         (EXTRA_SPECS): Likewise.
17897         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
17898         (INCOMING_REGNO): Likewise.
17899         (OUTGOING_REGNO): Likewise.
17900         (LOCAL_REGNO): Likewise.
17901         (SETUP_FRAME_ADDRESSES): Likewise.
17902         (FIXED_REGISTERS): Set 0 for %fp.
17903         (CALL_USED_REGISTERS): Likewise.
17904         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
17905         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
17906         (RETURN_ADDR_REGNUM): Define.
17907         (RETURN_ADDR_RTX): Use it.
17908         (INCOMING_RETURN_ADDR_REGNUM): Define.
17909         (INCOMING_RETURN_ADDR_RTX): Use it.
17910         (DWARF_FRAME_RETURN_COLUMN): Likewise.
17911         (EH_RETURN_REGNUM): Define.
17912         (EH_RETURN_STACKADJ_RTX): Use it.
17913         (EH_RETURN_HANDLER_RTX): Delete.
17914         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
17915         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
17916         Delete.
17917         (struct machine_function): Add frame_size, apparent_frame_size,
17918         frame_base_reg, frame_base_offset, n_global_fp_regs and
17919         save_local_in_regs_p fields.
17920         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
17921         sparc_frame_base_offset, sparc_n_global_fp_regs,
17922         sparc_save_local_in_regs_p): New macros.
17923         (sparc_option_override): Error out if -fcall-saved-REG is specified
17924         for Out registers.
17925         (eligible_for_restore_insn): Fix formatting.
17926         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
17927         (eligible_for_sibcall_delay): Likewise.
17928         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
17929         (sparc_legitimate_address_p): Adjust to above change.
17930         (save_global_or_fp_reg_p): New predicate.
17931         (return_addr_reg_needed_p): Likewise.
17932         (save_local_or_in_reg_p): Likewise.
17933         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
17934         (SORR_SAVE, SORR_RESTORE): Delete.
17935         (sorr_pred_t): New typedef.
17936         (sorr_act_t): New enum.
17937         (save_or_restore_regs): Rename to...
17938         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
17939         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
17940         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
17941         mechanism.  Add CFI information for double-word saves in 32-bit mode.
17942         (emit_adjust_base_to_offset): New function extracted from...
17943         (emit_save_or_restore_regs): ...this.  Rename the rest to...
17944         (emit_save_or_restore_regs_global_fp_regs): ...this.
17945         (emit_save_or_restore_regs_local_in_regs): New function.
17946         (gen_create_flat_frame_[123]): New functions.
17947         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
17948         (sparc_flat_expand_prologue): New function.
17949         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
17950         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
17951         (sparc_flat_expand_epilogue): New function.
17952         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
17953         (output_return): Likewise.
17954         (output_sibcall): Likewise.
17955         (sparc_output_mi_thunk): Likewise.
17956         (sparc_frame_pointer_required): Likewise.
17957         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
17958         function optimization.
17959         * config/sparc/sparc.md (flat): New attribute.
17960         (prologue): Add TARGET_FLAT handling.
17961         (save_register_window): Disable if TARGET_FLAT.
17962         (create_flat_frame_[123]): New patterns.
17963         (epilogue): Add TARGET_FLAT handling.
17964         (sibcall_epilogue): Likewise.
17965         (eh_return): New expander.
17966         (eh_return_internal): New insn and splitter.
17967         (return_internal): Add TARGET_FLAT handling.
17968         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
17969         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
17970         (nonlocal_goto): Add TARGET_FLAT handling.
17971         * config/sparc/t-elf: Add -mflat multilib.
17972         * config/sparc/t-leon: Likewise.
17973
17974 2011-06-10  Jan Hubicka  <jh@suse.cz>
17975
17976         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
17977         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
17978         (self_recursive_p): Use cgraph_function_node.
17979         (propagate_pure_const): Likewise.
17980         (propagate_nothrow): Likewise.
17981         * ipa-reference.c (ipa_reference_get_not_read_global): Use
17982         cgraph_function_node.
17983         (propagate_bits): Likewise.
17984         (propagate): Likewise.
17985
17986 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17987             Richard Earnshaw  <rearnsha@arm.com>
17988
17989         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
17990         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
17991         (*thumb2_movdi_vfp): Delete.
17992         (*arm_movdi_vfp_cortexa8): Delete.
17993         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
17994         (*movdi_vfp_cortexa8): Likewise.
17995
17996 2011-06-10  Richard Guenther  <rguenther@suse.de>
17997
17998         * stor-layout.c (initialize_sizetypes): Give names to all
17999         sizetype kinds.
18000
18001 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
18002
18003         PR tree-optimization/49318
18004         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
18005         irrelevant pattern statements.
18006
18007 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
18008
18009         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
18010
18011         PR bootstrap/49354
18012         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
18013         to last assignment.
18014
18015 2011-06-09  Jan Hubicka  <jh@suse.cz>
18016
18017         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
18018         do not recompute reachable flag.
18019         (cgraph_finalize_function, cgraph_analyze_functions): Set
18020         redefined_extern_inline here.
18021
18022 2011-06-09  Jan Hubicka  <jh@suse.cz>
18023
18024         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
18025         (cgraph_only_called_directly_p): ... this one; bring offline.
18026         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
18027         varpool_used_from_object_file_p): Drop names from the declaratoin.
18028         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
18029         collect_callers_of_node): New.
18030         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
18031         (cgraph_edge_recursive_p): Use cgraph_function_node.
18032         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
18033         (cgraph_node_cannot_be_local_p_1): Break out from ...
18034         (cgraph_node_can_be_local_p): ... here; walk aliases.
18035         (cgraph_for_node_thunks_and_aliases): New function.
18036         (cgraph_for_node_and_aliases): New function.
18037         (cgraph_make_node_local_1): Break out from ...
18038         (cgraph_make_node_local) ... here; use
18039         cgraph_for_node_thunks_and_aliases.
18040         (cgraph_set_nothrow_flag_1): Break out from ...
18041         (cgraph_set_nothrow_flag) ... here;
18042         use cgraph_for_node_thunks_and_aliases.
18043         (cgraph_set_const_flag_1): Break out from ...
18044         (cgraph_set_const_flag) ... here;
18045         use cgraph_for_node_thunks_and_aliases.
18046         (cgraph_set_pure_flag_1): Break out from ...
18047         (cgraph_set_pure_flag) ... here;
18048         use cgraph_for_node_thunks_and_aliases.
18049         (cgraph_propagate_frequency_1): Break out from ...
18050         (cgraph_propagate_frequency) ... here; use
18051         cgraph_for_node_thunks_and_aliases.
18052         (cgraph_used_from_object_file_p): Do not care about aliases.
18053         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
18054         New functions.
18055         (collect_callers_of_node_1, collect_callers_of_node): New functions.
18056
18057 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
18058
18059         PR rtl-optimization/49154
18060         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
18061         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
18062         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
18063         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
18064         * config/cris/cris.h (cris_register_move_cost): Remove
18065         !TARGET_V32 code.  Tweak comments.
18066
18067 2011-06-09  Jan Hubicka  <jh@suse.cz>
18068
18069         * cgraphbuild.c (record_eh_tables): Mark personality function as having
18070         address taken.
18071
18072 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
18073
18074         PR rtl-optimization/49154
18075         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
18076         is a matching slot in the hashtable, assign it to classes_ptr.
18077
18078         PR rtl-optimization/49154
18079         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
18080         register classes.
18081         * doc/tm.texi: Regenerate.
18082
18083 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
18084
18085         PR target/49307
18086         * config/sh/sh.md (UNSPEC_CHKADD): New.
18087         (chk_guard_add): New define_insn_and_split.
18088         (symGOT_load): Use chk_guard_add instead of blockage.
18089
18090 2011-06-09  Kai Tietz  <ktietz@redhat.com>
18091
18092         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
18093
18094 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
18095
18096         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
18097
18098 2011-06-09  Wei Guozhi  <carrot@google.com>
18099
18100         PR target/46975
18101         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
18102         (peephole2 for conditional move): Generate 16 bit instructions.
18103
18104 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
18105
18106         * config/i386/i386.md (*movdi_internal_rex64): Merge
18107         alternatives 6 and 8.
18108
18109 2011-06-09  David Li  <davidxl@google.com>
18110
18111         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
18112         * passes.c (passr_eq): New function.
18113         (create_pass_tab): New function.
18114         (pass_traverse): New function.
18115         (dump_one_pass): New function.
18116         (dump_pass_list): New function.
18117         (dump_passes): New function.
18118
18119 2011-06-09  David Li  <davidxl@google.com>
18120
18121         * tree-complex.c (tree_lower_complex): Gate cleanup.
18122         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
18123         (execute_optimize_stdarg): Ditto.
18124         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
18125         (execute_cleanup_eh_1): Ditto.
18126         (execute_cleanup_eh): Ditto.
18127         * gcse.c (gate_rtl_pre): Ditto.
18128         (execute_rtl_pre): Ditto.
18129         * except.c (finish_eh_generation): Ditto.
18130         (convert_to_eh_region_ranges): Ditto.
18131         * cprop.c (one_cprop_pass): Ditto.
18132
18133 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
18134
18135         PR target/48673
18136         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
18137         in all basic blocks.
18138
18139 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18140
18141         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
18142         (HAVE_ENABLE_EXECUTE_STACK): Define.
18143         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
18144         (HAVE_ENABLE_EXECUTE_STACK): Define.
18145         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
18146         (HAVE_ENABLE_EXECUTE_STACK): Define.
18147         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
18148         (ENABLE_EXECUTE_STACK): Remove.
18149         (HAVE_ENABLE_EXECUTE_STACK): Define.
18150         [IN_LIBGCC2]: Don't include <windows.h>.
18151         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
18152         (HAVE_ENABLE_EXECUTE_STACK): Define.
18153         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
18154         (HAVE_ENABLE_EXECUTE_STACK): Define.
18155         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
18156         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
18157         (HAVE_ENABLE_EXECUTE_STACK): Define.
18158         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
18159         (HAVE_ENABLE_EXECUTE_STACK): Define.
18160         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
18161         (HAVE_ENABLE_EXECUTE_STACK): Define.
18162         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
18163         (HAVE_ENABLE_EXECUTE_STACK): Define.
18164         * config/alpha/alpha.c (alpha_trampoline_init): Test
18165         HAVE_ENABLE_EXECUTE_STACK.
18166         * config/i386/i386.c (ix86_trampoline_init): Likewise.
18167         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
18168         (sparc64_initialize_trampoline): Likewise.
18169         * libgcc2.c [L_enable_execute_stack]: Remove.
18170         * system.h (ENABLE_EXECUTE_STACK): Poison.
18171         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
18172         * doc/tm.texi: Regenerate.
18173         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
18174
18175 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
18176
18177         PR middle-end/49308
18178         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
18179         variable.  After resetting and rescanning insn continue with previous
18180         statement.
18181
18182 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18183
18184         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
18185         (gcc_cv_ld_hidden): Likewise.
18186         * configure: Regenerate.
18187         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
18188         (ix86_stack_protect_fail): Mark unused.
18189         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
18190         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
18191         [TARGET_MACHO]: Don't define.
18192         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
18193         (TARGET_STACK_PROTECT_FAIL): Likewise.
18194         (rs6000_stack_protect_fail): Mark unused.
18195         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
18196         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
18197
18198 2011-06-08  Andi Kleen  <ak@linux.intel.com>
18199
18200         * varasm.c (get_section): Print location of other conflict
18201         for section conflicts.
18202
18203 2011-06-08  Andi Kleen  <ak@linux.intel.com>
18204
18205         * config/i386/driver-i386.c (host_detect_local_cpu):
18206         Add model 0x2d Intel CPU.
18207
18208 2011-06-08  Andi Kleen  <ak@linux.intel.com>
18209
18210         * reginfo.c (global_regs_decl): Add.
18211         (globalize_reg): Add decl parameter. Compute location.  Pass location
18212         to warnings and add inform. Store decl in global_regs_decl.
18213         * rtl.h (globalize_reg): Update prototype.
18214         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
18215
18216 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
18217
18218         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
18219
18220 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18221
18222         PR target/49305
18223         * config/sh/predicates.md (general_movsrc_operand): Check
18224         mode for memory with indexed address for QI and HImode.
18225         (general_movdst_operand): Likewise.
18226
18227 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
18228
18229         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
18230
18231 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
18232
18233         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
18234         (num_ssa_operands): Likewise.
18235         (op_iter_init_phiuse): Forward-declare.
18236         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
18237
18238 2011-06-08  Nick Clifton  <nickc@redhat.com>
18239
18240         * doc/invoke.texi (ARM Options): Update description of
18241         -mthumb-interwork.
18242
18243 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
18244
18245         * config/i386/driver-i386.c (host_detect_local_cpu): Support
18246         unknown Intel family 0x6 CPUs.
18247
18248 2011-06-08  Martin Jambor  <mjambor@suse.cz>
18249
18250         * tree-sra.c (mark_rw_status): Removed.
18251         (analyze_access_subtree): New parameter parent instead of
18252         mark_read and mark_write, propagate from that.
18253
18254 2011-06-08  Julian Brown  <julian@codesourcery.com>
18255
18256         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
18257         for double-precision helper functions in hard-float mode if only
18258         single-precision arithmetic is supported in hardware.
18259
18260 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
18261
18262         PR rtl-optimization/49303
18263         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
18264         code_motion_path_driver returned 0 or 1.
18265         (sel_region_finish): Clear h_d_i_d.
18266
18267 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18268
18269         * config/sh/sh.c (prepare_move_operands): Set pic register
18270         appropriately for global and local dynamic tls models even
18271         if flag_pic is unset.
18272
18273 2011-06-07  Jason Merrill  <jason@redhat.com>
18274
18275         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
18276
18277 2011-06-07  Xinliang David Li  <davidxl@google.com>
18278         * passes.c (enable_disable_pass): Handle assembler name.
18279         (is_pass_explicitly_enabled_or_disabled): Ditto.
18280
18281 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18282
18283         PR tree-optimization/48497
18284         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
18285
18286 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18287
18288         PR tree-optimization/46728
18289         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
18290         to use gimple_val_nonnegative_real_p.
18291         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
18292         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
18293
18294 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
18295
18296         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
18297
18298 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
18299
18300         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
18301         constant vectors.
18302
18303 2011-06-07  Richard Guenther  <rguenther@suse.de>
18304
18305         * stor-layout.c (initialize_sizetypes): Initialize all
18306         sizetypes based on target definitions.
18307         (set_sizetype): Remove.
18308         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
18309         * tree.h (set_sizetype): Remove.
18310
18311 2011-06-07  Nick Clifton  <nickc@redhat.com>
18312
18313         * config.gcc: Unify V850 architecture options and add support for
18314         newer V850 architectures.
18315         * config/v850/t-v850e: Delete.
18316
18317 2011-06-07  Richard Guenther  <rguenther@suse.de>
18318
18319         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
18320         Call set_sizetype from here.
18321
18322 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
18323
18324         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
18325         (*maddhisi4tb, *maddhisi4tt): New define_insns.
18326
18327 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
18328             Andrew Stubbs  <ams@codesourcery.com>
18329
18330         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
18331         multiplies.
18332         * doc/md.texi (Canonicalization of Instructions): Document widening
18333         multiply canonicalization.
18334
18335 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
18336
18337         PR gcov-profile/49299
18338         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
18339
18340 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
18341
18342         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
18343         a pointer.
18344         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
18345         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
18346         vect_recog_pow_pattern): Likewise.
18347         (vect_pattern_recog_1): Remove declaration.
18348         (widened_name_p): Remove declaration.  Add new argument to specify
18349         whether to check that both types are either signed or unsigned.
18350         (vect_recog_widen_mult_pattern): Update documentation.  Handle
18351         unsigned patterns and multiplication by constants.
18352         (vect_pattern_recog_1): Update vect_recog_func references.  Use
18353         statement information from the statement returned from pattern
18354         detection functions.
18355         (vect_pattern_recog): Update vect_recog_func reference.
18356         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
18357         multiplication by a constant use the type of the other operand.
18358
18359 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
18360
18361         PR rtl-optimization/49145
18362         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
18363
18364 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
18365
18366         PR debug/49262
18367         * dwarf2out.c (native_encode_initializer): Decrement count in each
18368         iteration.
18369
18370         PR debug/49294
18371         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
18372         non-MODE_INT modes.
18373
18374         PR c++/49264
18375         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
18376         if stmt folded into nothing.
18377         * tree-inline.c (fold_marked_statements): If a builtin at the end of
18378         a bb folded into nothing, just update cgraph edges and move to next bb.
18379         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
18380         to be NULL.  Don't compute count and frequency if new_call is NULL.
18381
18382 2011-06-04  Diego Novillo  <dnovillo@google.com>
18383
18384         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
18385         (cgraph.o): Likewise.
18386         (cgraphunit.o): Likewise.
18387         * cgraphunit.c: Include lto-streamer.h
18388         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
18389         if LTO is enabled.
18390         * lto-streamer-in.c (unpack_value_fields): Call
18391         streamer_hooks.unpack_value_fields if set.
18392         (lto_materialize_tree): For unhandled nodes, first try to
18393         call lto_streamer_hooks.alloc_tree, if it exists.
18394         (lto_input_ts_decl_common_tree_pointers): Move reading of
18395         DECL_INITIAL to lto_streamer_read_tree.
18396         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
18397         (lto_streamer_read_tree): New.
18398         (lto_reader_init): Rename from lto_init_reader.
18399         Move initialization code to lto/lto.c.
18400         * lto-streamer-out.c (pack_value_fields): Call
18401         streamer_hooks.pack_value_fields if set.
18402         (lto_output_tree_ref): For tree nodes that are not normally indexable,
18403         call streamer_hooks.indexable_with_decls_p before giving up.
18404         (lto_output_ts_decl_common_tree_pointers): Move handling
18405         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
18406         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
18407         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
18408         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
18409         (lto_streamer_write_tree): New.
18410         (lto_output): Call lto_streamer_init directly.
18411         (lto_writer_init): Remove.
18412         * lto-streamer.c (streamer_hooks): New.
18413         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
18414         instead of lto_preload_common_nodes.
18415         (lto_is_streamable): Move from lto-streamer.h
18416         (lto_streamer_hooks_init): New.
18417         (streamer_hooks): New.
18418         (streamer_hooks_init): New.
18419         * lto-streamer.h (struct output_block): Forward declare.
18420         (struct lto_input_block): Likewise.
18421         (struct data_in): Likewise.
18422         (struct bitpack_d): Likewise.
18423         (struct streamer_hooks): Declare.
18424         (streamer_hooks): Declare.
18425         (lto_streamer_hooks_init): Declare.
18426         (lto_streamer_write_tree): Declare.
18427         (lto_streamer_read_tree): Declare.
18428         (streamer_hooks_init): Declare.
18429         (lto_is_streamable): Move to lto-streamer.c
18430
18431 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18432
18433         * longlong.h (smul_ppmm): The resulting register pair contains the
18434         higher order word first.
18435
18436 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18437
18438         PR tree-optimization/46728
18439         * builtins.c (powi_table): Remove.
18440         (powi_lookup_cost): Remove.
18441         (powi_cost): Remove.
18442         (expand_powi_1): Remove.
18443         (expand_powi): Remove.
18444         (expand_builtin_pow_root): Remove.
18445         (expand_builtin_pow): Remove.
18446         (expand_builtin_powi): Eliminate handling of constant exponent.
18447         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
18448
18449 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
18450
18451         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
18452
18453 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
18454
18455         * dce.c (reset_unmarked_insns_debug_uses): New.
18456         (delete_unmarked_insns): Skip debug insns.
18457         (prescan_insns_for_dce): Likewise.
18458         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
18459         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
18460         active reg can be found.
18461         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
18462         (convert_regs_1): Use it.
18463
18464 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
18465
18466         * tree-pretty-print.c (dump_function_header): Add flags.
18467         Don't dump decl_uid with nouid.
18468         * tree-pretty-print.h (dump_function_header): Adjust.
18469         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
18470         * passes.c (pass_init_dump_file): Pass dump_flags on.
18471         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
18472
18473 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
18474
18475         PR bootstrap/49270
18476         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
18477
18478 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
18479
18480         PR tree-optimization/49243
18481         * calls.c (setjmp_call_p): Also check if fndecl has the
18482         returns_twice attribute.
18483
18484 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18485
18486         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
18487         -ffast-math etc.
18488
18489 2011-06-06  Richard Henderson  <rth@redhat.com>
18490             Georg-Johann Lay  <avr@gjlay.de>
18491
18492         PR target/42210
18493         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
18494         New predicates.
18495         * config/avr/avr.md ("insv"): New insn expander.
18496         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
18497         "*insv.not.io", "*insv.reg"): New insns.
18498
18499 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
18500
18501         PR target/49285
18502         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
18503         to nonimmediate_operand from memory_operand for the operand that is to
18504         be forced to memory by the expander.  Lose the constraints.
18505
18506 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
18507
18508         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
18509         EH return when delayed branches are disabled.
18510
18511 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
18512
18513         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
18514         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
18515         calculation.
18516         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
18517         Simplify MODE_V1DF and MODE_V2SF handling.
18518         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
18519         Simplify MODE_SF handling.
18520
18521 2011-06-04  Jan Hubicka  <jh@suse.cz>
18522
18523         PR tree-optimization/48893
18524         PR tree-optimization/49091
18525         PR tree-optimization/49179
18526         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
18527         Bounds check.
18528
18529 2011-06-04  Jan Hubicka  <jh@suse.cz>
18530
18531         PR lto/48954
18532         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
18533         bitmaps.
18534
18535 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
18536
18537         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
18538
18539 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18540
18541         PR target/49281
18542         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
18543         to be strictly smaller than 1 << shiftcount.
18544
18545 2011-06-04  Jan Hubicka  <jh@suse.cz>
18546
18547         PR tree-optimize/48929
18548         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
18549         of empty predicate.
18550
18551 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
18552
18553         PR debug/48333
18554         * calls.c (emit_call_1): Prefer the __builtin declaration of
18555         builtin functions.
18556
18557 2011-06-03   Diego Novillo  <dnovillo@google.com>
18558
18559         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
18560         (lto_input_tree_pointers): Likewise.
18561         * lto-streamer-out.c (pack_value_fields): Likewise.
18562         (lto_output_tree_pointers): Likewise.
18563         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
18564         and OPTIMIZATION_NODE.
18565
18566 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18567
18568         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
18569         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
18570         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
18571         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
18572         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
18573         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
18574         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
18575         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
18576         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
18577         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
18578         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
18579         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
18580         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
18581         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
18582         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
18583         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
18584         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
18585         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
18586         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
18587         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
18588         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
18589         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
18590         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
18591         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
18592         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
18593         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
18594         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
18595         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
18596         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
18597         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
18598         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
18599         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
18600         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
18601         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
18602         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
18603         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
18604         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
18605         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
18606         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
18607         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
18608         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
18609         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
18610         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
18611         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
18612         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
18613         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
18614         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
18615         * system.h (MD_UNWIND_SUPPORT): Poison.
18616         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
18617         * doc/tm.texi: Regenerate.
18618         * unwind-dw2.c: Include md-unwind-support.h instead of
18619         MD_UNWIND_SUPPORT.
18620         * config/ia64/unwind-ia64.c: Likewise.
18621         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
18622
18623 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
18624
18625         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
18626
18627 2011-06-03  Richard Henderson  <rth@redhat.com>
18628             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18629
18630         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
18631         (sigill_hdlr): Correct insn, insn size.
18632         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
18633
18634 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18635
18636         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
18637         t-slibgcc-dummy.
18638         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
18639         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
18640         * config/mips/t-iris: Remove.
18641         * config/mips/t-irix6: New file.
18642         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
18643
18644 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18645
18646         * Makefile.in (LIB2ADDEHDEP): Remove.
18647         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
18648         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
18649         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
18650         * config/t-darwin (LIB2ADDEHDEP): Remove.
18651         * config/t-freebsd (LIB2ADDEHDEP): Remove.
18652         * config/t-linux (LIB2ADDEHDEP): Remove.
18653
18654 2011-06-03  Diego Novillo  <dnovillo@google.com>
18655
18656         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
18657         (lto_register_var_decl_in_symtab): Likewise.
18658         (lto_register_function_decl_in_symtab): Likewise.
18659         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
18660         logic to uniquify_nodes.
18661
18662 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18663
18664         * config/alpha/t-osf5: Remove.
18665         * config/alpha/t-osf-pthread: Remove.
18666         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
18667         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
18668
18669 2011-06-03  Julian Brown  <julian@codesourcery.com>
18670
18671         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
18672         (strongarm1110): Use strongarm tuning.
18673         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
18674         * config/arm/arm.c (arm_strongarm_tune): New.
18675         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
18676         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
18677         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
18678         setting, using previous defaults or 1 for Cortex-A5.
18679         (arm_option_override): Set max_insns_skipped from current tuning.
18680
18681 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
18682
18683         * doc/install.texi (Options specification): Document --with-specs.
18684
18685 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18686
18687         * config/arm/neon.md (orndi3_neon): Actually split it.
18688
18689 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
18690
18691         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
18692         * var-tracking.c (reverse_op): Limite recurse depth to 5.
18693
18694 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
18695
18696         PR debug/47590
18697         * target.def (delay_sched2, delay_vartrack): New.
18698         * doc/tm.texi.in: Update.
18699         * doc/tm.texi: Rebuild.
18700         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
18701         * var-tracking.c (gate_handle_var_tracking): Likewise.
18702         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
18703         (bfin_flag_var_tracking): Drop.
18704         (output_file_start): Don't save and override flag_var_tracking.
18705         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
18706         (bfin_reorg): Test original variables.
18707         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
18708         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
18709         (ia64_flag_var_tracking): Drop.
18710         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
18711         (ia64_file_start): Don't save and override flag_var_tracking.
18712         (ia64_override_options_after_change): Ditto
18713         flag_schedule_insns_after_reload.
18714         (ia64_reorg): Test original variables.
18715         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
18716         (picochip_flag_var_tracking): Drop.
18717         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
18718         (picochip_option_override): Don't save and override
18719         flag_schedule_insns_after_reload.
18720         (picochip_asm_file_start): Ditto flag_var_tracking.
18721         (picochip_reorg): Test original variables.
18722         * config/spu/spu.c (spu_flag_var_tracking): Drop.
18723         (TARGET_DELAY_VARTRACK): Define.
18724         (spu_var_tracking): New.
18725         (spu_machine_dependent_reorg): Call it.
18726         (asm_file_start): Don't save and override flag_var_tracking.
18727
18728 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
18729
18730         PR target/49163
18731         * config/sh/predicates.md (general_movsrc_operand): Return 0
18732         for memory and memory subreg of which address is an invalid
18733         indexed address for QI and HImode.
18734         (general_movdst_operand): Likewise.
18735
18736 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
18737
18738         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
18739         edges only, when there is a non-local label in the function.
18740         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
18741
18742 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
18743
18744         * config/i386/constraints.md (Y3): New register constraint.
18745         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
18746         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
18747         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
18748         *sse2_interleave_lowv2df.
18749
18750 2011-06-02  Julian Brown  <julian@codesourcery.com>
18751
18752         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
18753         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
18754         (arm_cortex_a5_tune): New.
18755
18756 2011-06-02  Julian Brown  <julian@codesourcery.com>
18757
18758         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
18759         * config/arm/arm.c (arm_default_branch_cost): New.
18760         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
18761         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
18762         (arm_fa726_tune): Set branch_cost field using
18763         arm_default_branch_cost.
18764         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
18765         current_tune structure.
18766         * dojump.c (tm_p.h): Include file.
18767
18768 2011-06-02  Julian Brown  <julian@codesourcery.com>
18769
18770         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
18771         tuning.
18772         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
18773         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
18774         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
18775         field.
18776         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
18777         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
18778         (arm_fa726te_tune): Add prefer_constant_pool setting.
18779         (arm_v6t2_tune, arm_cortex_tune): New.
18780         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
18781         prefer_constant_pool setting.
18782
18783 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
18784
18785         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
18786         switch statement.
18787         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
18788         (*movdf_internal) <case 6,7,8>: Ditto.
18789
18790         * config/i386/constraints.md (Y4): New register constraint.
18791         * config/i386/sse.md (vec_set<mode>_0): Merge with
18792         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
18793         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
18794         *vec_extractv2di_1_sse.
18795         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
18796         and *vec_concatv2di_rex64_sse.
18797
18798 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
18799
18800         PR target/48807
18801         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
18802         of cgraph_local_info for null before attempting to use it.
18803
18804 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
18805
18806         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
18807         (current_function_dynamic_alloc_count): Delete.
18808         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
18809         (expand_builtin_nonlocal_goto): Remove obsolete comment.
18810         (expand_builtin_update_setjmp_buf): Remove dead code.
18811         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
18812         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
18813         support.
18814         * function.c (instantiate_virtual_regs): Likewise.
18815         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
18816         for a block with a single abnormal incoming edge.
18817         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
18818         (SETJMP_VIA_SAVE_AREA): Delete.
18819         * config/sparc/sparc-protos.h (load_got_register): Declare.
18820         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
18821         (load_got_register): Make global.
18822         (sparc_frame_pointer_required): Add 'static'.
18823         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
18824         (sparc_builtin_setjmp_frame_value): New function.
18825         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
18826         (save_stack_nonlocal): New expander.
18827         (restore_stack_nonlocal): Likewise.
18828         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
18829         (nonlocal_goto_internal): New insn.
18830         (goto_handler_and_restore): Delete.
18831         (builtin_setjmp_setup): Likewise.
18832         (do_builtin_setjmp_setup): Likewise.
18833         (setjmp): Likewise.
18834         (builtin_setjmp_receiver): New expander.
18835
18836 2011-06-01  David Li  <davidxl@google.com>
18837
18838         PR middle-end/49261
18839         * tree-pretty-print.c (dump_function_header): Format cleanup.
18840
18841 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
18842
18843         PR target/49238
18844         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
18845         needed when original operands are used for msw_skip comparison.
18846
18847 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
18848
18849         PR debug/49250
18850         * var-tracking.c (add_uses, add_stores): Don't call
18851         cselib_subst_to_values on ENTRY_VALUE.
18852
18853 2011-06-01  Diego Novillo  <dnovillo@google.com>
18854
18855         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
18856         output_record_start with LTO_null instead of output_zero.
18857         (lto_output_ts_binfo_tree_pointers): Likewise.
18858         (lto_output_tree): Likewise.
18859         (output_eh_try_list): Likewise.
18860         (output_eh_region): Likewise.
18861         (output_eh_lp): Likewise.
18862         (output_eh_regions): Likewise.
18863         (output_bb): Likewise.
18864         (output_function): Likewise.
18865         (output_unreferenced_globals): Likewise.
18866         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
18867         instead of NUM_TREE_CODES.
18868         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
18869         (lto_output_int_in_range): Change << to >> when shifting VAL.
18870
18871 2011-06-01  Diego Novillo  <dnovillo@google.com>
18872
18873         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
18874         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
18875
18876 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
18877
18878         PR target/45074
18879         * optabs.h (valid_multiword_target_p): Declare.
18880         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
18881         doing multi-word operations.
18882         * optabs.c (expand_binop): Likewise.
18883         (expand_doubleword_bswap): Likewise.
18884         (expand_absneg_bit): Likewise.
18885         (expand_unop): Likewise.
18886         (expand_copysign_bit): Likewise.
18887         (multiword_target_p): New function.
18888
18889 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
18890
18891         PR rtl-optimization/48830
18892         PR rtl-optimization/48808
18893         PR rtl-optimization/48792
18894         * reload.c (push_reload): Check contains_reg_of_mode.
18895         * reload1.c (strip_paradoxical_subreg): New function.
18896         (gen_reload_chain_without_interm_reg_p): Use it to handle
18897         paradoxical subregs.
18898         (emit_output_reload_insns, gen_reload): Likewise.
18899
18900 2011-06-01  David Li  <davidxl@google.com>
18901
18902         * predict.c : Change pass name
18903         * ipa.c: Ditto.
18904         * dce.c: Ditto.
18905         * tree-profile.c: Ditto.
18906         * except.c: Ditto.
18907
18908 2011-06-01  David Li  <davidxl@google.com>
18909
18910         * tree-pretty-print.c (dump_function_header): New function.
18911         * final.c (rest_of_clean_state): Use header dumper.
18912         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
18913         * passes.c (pass_init_dump_file): Use header dumper.
18914
18915 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
18916
18917         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
18918         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
18919         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
18920         New functions.
18921         (mem_loc_descriptor): Use them.
18922
18923         * var-tracking.c (create_entry_value): New function.
18924         (vt_add_function_parameter): Use it.
18925
18926 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18927
18928         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
18929         Include <signal.h>, <ucontext.h>.
18930         (sigill_caught): Define.
18931         (sigill_hdlr): New function.
18932         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
18933         insns can be executed.
18934         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
18935         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
18936
18937 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18938
18939         * config/t-slibgcc-darwin: Move to ...
18940         * config/t-slibgcc-dummy: ... this.  Clarify comments.
18941         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
18942         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
18943         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
18944         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
18945         Remove i386/t-crtstuff from tmake_file.
18946         (i[34567]86-*-solaris2*): Remove t-svr4,
18947         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
18948         t-slibgcc-dummy.
18949         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
18950         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
18951         sparc/t-crtfm from tmake_file.
18952         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
18953         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
18954         Remove extra_parts.
18955         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
18956         * config/i386/t-nwld (SHLIB_LINK): Remove.
18957         * config/i386/t-rtems-i386: Rename to ...
18958         * config/i386/t-rtems: ... this.
18959         ($(T)crti.o, $(T)crtn.o): Remove.
18960         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
18961         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
18962         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
18963         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
18964         EXTRA_MULTILIB_PARTS): Remove.
18965         * config/sparc/t-sol2-64: Likewise.
18966         * config/sparc/t-sol2: Remove.
18967         * config/sparc/t-crtin: Remove.
18968         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
18969         * config/i386/gmon-sol2.c: Remove.
18970         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
18971         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
18972         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
18973         * config/i386/sol2-gc1.asm: Remove.
18974         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
18975         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
18976         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
18977         * config/t-slibgcc-sld: Remove.
18978
18979 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
18980
18981         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
18982         base_type_for_mode with op_mode instead of mode.
18983
18984 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
18985
18986         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
18987         Cortex-A15.
18988         * config/arm/arm-tune.md: Regenerate.
18989         * config/arm/arm-tables.opt: Regenerate.
18990         * config/arm/arm.c (FL_DIV): Rename...
18991         (FL_THUMB_DIV): ... to this.
18992         (FL_ARM_DIV): Define.
18993         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
18994         (arm_arch_hwdiv): Remove.
18995         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
18996         (arm_issue_rate): Add cortexr5.
18997         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
18998         __ARM_ARCH_EXT_IDIV__.
18999         (TARGET_IDIV): Define.
19000         (arm_arch_hwdiv): Remove.
19001         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
19002         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
19003         (divsi3, udivsi3): New patterns.
19004         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
19005         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
19006
19007 2011-06-01  Martin Jambor  <mjambor@suse.cz>
19008
19009         * ipa-utils.c (ipa_dfs_info): New field scc_no.
19010         * ipa-utils.c (searchc): Set scc_no.
19011
19012 2011-06-01  Martin Jambor  <mjambor@suse.cz>
19013
19014         * ipa-utils.c (searchc_env): New field allow_overwritable.
19015         (searchc): do not ignore edges to overwritable nodes if indicated
19016         by env->allow_overwritable.
19017         (ipa_reduced_postorder): Set env.allow_overwritable.
19018
19019 2011-06-01  Richard Guenther  <rguenther@suse.de>
19020
19021         * tree.c (free_lang_data): Do not reset boolean_type_node nor
19022         char_type_node.
19023         * lto-streamer.c (lto_record_common_node): Take node pointer,
19024         do not register types.
19025         (lto_preload_common_nodes): Explicitly skip preloading nodes
19026         that differ between frontends.
19027
19028 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
19029
19030         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
19031         NON_FLOAT_REGS.
19032
19033 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
19034
19035         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
19036         parameter value for dump. Dump cost on outermost call only.
19037         (rs6000_memory_move_cost): Dump cost on outermost call only.
19038
19039 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
19040
19041         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
19042         DW_OP_GNU_convert ops.
19043
19044         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
19045         cselib_preserve_constants.
19046         (cselib_lookup_1): If cselib_preserve_constants,
19047         a new VALUE is being created for REG and there is a VALUE for the
19048         same register in wider mode, add another loc with lowpart SUBREG of
19049         the wider VALUE.
19050         (cselib_subst_to_values): Handle ENTRY_VALUE.
19051         * var-tracking.c  (replace_expr_with_values): Return NULL for
19052         ENTRY_VALUE too.
19053         * dwarf2out.c (convert_descriptor_to_signed): New function.
19054         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
19055         instead of two shifts.
19056         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
19057         the right mode if needed.
19058         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
19059         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
19060         convert_descriptor_to_signed.
19061         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
19062         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
19063
19064         PR target/48688
19065         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
19066
19067 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
19068
19069         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
19070         of X87MODEI12 and SWI48x instead of SSEMODEI24.
19071         (SWI248x): New mode iterator, rename from X87MODEI.
19072         (X87MODEI): Remove mode iterator.
19073         (X87MODEI12): Ditto.
19074         (SSEMODEI24): Ditto.
19075
19076 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
19077
19078         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
19079         * doc/invoke.texi: Document max-vartrack-expr-depth.
19080         * var-tracking.c (EXPR_DEPTH): New.
19081         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
19082
19083 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
19084
19085         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
19086         * config/i386/sse.md: Add n to negated FMA pattern names.
19087
19088 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
19089
19090         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
19091
19092 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
19093
19094         * gengtype-state.c (read_state_params_structs): Initialize previous.
19095
19096 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
19097
19098         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
19099         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
19100
19101 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
19102
19103         * config/i386/i386.md (*movtf_internal): Avoid allocating general
19104         registers.  Penalize F*r->o alternative to prevent partial memory
19105         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
19106         CONST_DOUBLE immediates when optimizing function for size.  Do not move
19107         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
19108         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
19109         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
19110         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
19111         alternatives.
19112         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
19113
19114         (fp_register_operand splitters): Use fp_register_operand
19115         constraint.  Do not use FP_REG_P in insn condition.
19116         (any_fp_register_operand splitters): Use any_fp_register_operand
19117         constraint.  Do not use ANY_FP_REG_P in insn condition.
19118
19119 2011-05-31  Jan Hubicka  <jh@suse.cz>
19120
19121         * cgraph.h (cgraph_inline_failed_t): Give enum a name
19122         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
19123         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
19124         (lto_output_edge): Use output_enum and var_len_unsigned.
19125         (lto_output_varpool_node): Likewise.
19126         (input_overwrite_node): Do not take resolution parameter;
19127         extract it from a bitpack.
19128         (input_node): Do not read resolution; use input_enum and
19129         var_len_unsigned.
19130         (input_varpool_node): Likewise.
19131         (input_edge): Likewise.
19132         (input_cgraph_1): Likewise.
19133
19134 2011-05-31  Richard Guenther  <rguenther@suse.de>
19135
19136         * gimple.c (gimple_register_canonical_type): Do not register
19137         any types via gimple_register_type.
19138
19139 2011-05-31  Jan Hubicka  <jh@suse.cz>
19140
19141         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
19142         of thunks.
19143
19144 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
19145
19146         PR rtl-optimization/49235
19147         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
19148         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
19149
19150 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
19151
19152         PR tree-optimization/49093
19153         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
19154         data references.
19155
19156 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
19157
19158         PR debug/49047
19159         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
19160         for concrete functions containing the code of cloned functions.
19161
19162 2011-05-31  Richard Guenther  <rguenther@suse.de>
19163
19164         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
19165         to ...
19166         (forward_propagate_into_comparison_1): ... this.
19167         (forward_propagate_comparison): Rename to ...
19168         (forward_propagate_into_comparison): ... this.  Split out
19169         real forward propagation code to ...
19170         (forward_propagate_comparison): ... this.
19171         (forward_propagate_into_gimple_cond): Remove looping.
19172         (forward_propagate_into_cond): Likewise.
19173         (simplify_not_neg_expr): Return whether we have done something.
19174         (simplify_gimple_switch): Likewise.
19175         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
19176         (ssa_forward_propagate_and_combine): ... this.  Re-structure
19177         to do a forward forward-propagation walk on BBs and a backward
19178         stmt combining walk on BBs.  Consistently re-scan changed statements.
19179         (pass_forwprop): Adjust.
19180
19181 2011-05-30  Ian Lance Taylor  <iant@google.com>
19182
19183         * godump.c (go_format_type): Correct length of name added to
19184         obstack for anonymous field.
19185
19186 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
19187
19188         PR target/49186
19189         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
19190         part of the second operand is 0.
19191
19192 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
19193
19194         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
19195         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
19196         to memory for !TARGET_MEMORY_MISMATCH_STALL.
19197         (*movdf_internal_rex64): Do not penalize F->r alternative.
19198         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
19199         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
19200         when optimizing function for size.  Do not move CONST_DOUBLEs
19201         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
19202         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
19203         SUBREGs.  Do not check for MEM_P operands in the insn condition,
19204         check for ANY_FP_REGNO_P instead.
19205         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
19206         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
19207         function for speed.
19208         * config/i386/i386.c (ix86_option_override_internal): Do not
19209         set TARGET_INTEGER_DFMODE_MOVES here.
19210
19211 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
19212
19213         PR target/49168
19214         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
19215
19216 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
19217
19218         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
19219         DW_TAG_rvalue_reference_type even for
19220         -gdwarf-4 -fno-debug-types-section.
19221
19222 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19223
19224         PR tree-optimization/46728
19225         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
19226         (build_and_insert_binop): New.
19227         (gimple_expand_builtin_pow): Reorder args for
19228         build_and_insert_call; use build_and_insert_binop; add more
19229         optimizations for fractional exponents.
19230
19231 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
19232
19233         PR bootstrap/49190
19234
19235         Revert:
19236         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
19237
19238         * tree.h (struct tree_identifier): Inherit from tree_typed, not
19239         tree_common.
19240         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
19241         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
19242         TS_BASE instead of TS_COMMON.
19243         * varasm.c (assemble_name): Remove assert.
19244
19245 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
19246
19247         * config.gcc: Keep obselete list sorted.
19248
19249 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
19250             Eric Botcazou  <ebotcazou@adacore.com>
19251
19252         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
19253         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
19254         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
19255         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
19256         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
19257
19258 2011-05-30  Richard Guenther  <rguenther@suse.de>
19259
19260         * gimple.c (gimple_types_compatible_p_1): Compare record
19261         and union type members properly.
19262
19263 2011-05-30  Richard Guenther  <rguenther@suse.de>
19264
19265         PR tree-optimization/49210
19266         * ipa-split.c (split_function): Care for the case where the call
19267         result is not trivially convertible to the result holding variable.
19268
19269 2011-05-30  Richard Guenther  <rguenther@suse.de>
19270
19271         PR tree-optimization/49218
19272         * tree-vrp.c (adjust_range_with_scev): Properly check whether
19273         overflow occured.
19274
19275 2011-05-30  Richard Guenther  <rguenther@suse.de>
19276
19277         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
19278         New function split out from ...
19279         (forward_propagate_into_gimple_cond): ... here.  Adjust.
19280         (forward_propagate_into_cond): Likewise.
19281         (forward_propagate_comparison): Also propagate into
19282         comparisons on assignment RHS.  Change return value to
19283         behave similar to forward_propagate_into_cond.
19284         (tree_ssa_forward_propagate_single_use_vars): Handle
19285         strict-overflow warnings properly for forward_propagate_comparison.
19286
19287 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19288
19289         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
19290         from plugin linker.
19291         * configure: Regenerate.
19292
19293 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
19294
19295         PR tree-optimization/49199
19296         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
19297         non-reduction operands are either defined in the loop or by induction.
19298
19299 2011-05-29  Xinliang David Li  <davidxl@google.com>
19300
19301         * opts-global.c (handle_common_deferred_options): Handle new options.
19302         * passes.c (register_one_dump_file): Call register_pass_name.
19303         (execute_one_pass): Check explicit enable/disable flag.
19304         (passr_hash): New function.
19305         (passr_eq): Ditto.
19306         (register_pass_name): Ditto.
19307         (get_pass_by_name): Ditto.
19308         (pass_hash): Ditto.
19309         (pass_eq): Ditto.
19310         (enable_pass): Ditto.
19311         (disable_pass): Ditto.
19312         (is_pass_explicitly_enabled_or_disabled): Ditto.
19313
19314 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
19315
19316         * config/i386/i386.md (*movoi_internal_avx): Use
19317         standard_sse_constant_opcode for alternative 0.
19318         (*movti_internal_sse): Ditto.
19319         (*movti_internal_rex64): Use standard_sse_constant_opcode for
19320         alternative 2.
19321         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
19322         sselog1 type moves.
19323         (*movsi_internal): Ditto.
19324         (*movdi_internal): Ditto.  Add ssecvt type moves.
19325
19326 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
19327
19328         PR target/48830
19329         * rtlanal.c (simplify_subreg_regno): Adjust comment.
19330
19331 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
19332
19333         PR rtl-optimization/49095
19334         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
19335         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
19336
19337 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
19338
19339         PR target/43995
19340         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
19341         recurse_p argument.  Only follow register copies if it is set,
19342         and prevent mips_find_pic_call_symbol from recursing.
19343         (mips_find_pic_call_symbol): Add a recurse_p argument.
19344         Pass it to mips_pic_call_symbol_from_set.
19345         (mips_annotate_pic_calls): Update accordingly.
19346
19347 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
19348
19349         * emit-rtl.c (try_split): Use a loop to search for
19350         NOTE_INSN_CALL_ARG_LOCATIONs.
19351
19352 2011-05-29  Richard Guenther  <rguenther@suse.de>
19353
19354         PR tree-optimization/49217
19355         * ipa-pure-const.c (propagate_pure_const): Fix typos.
19356
19357 2011-05-28  Jan Hubicka  <jh@suse.cz>
19358
19359         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
19360         length.
19361         (string_slot_free): Remove
19362         (create_output_block): Initialize obstack.
19363         (destroy_output_block): Free obstack.
19364         (lto_string_index): Add PERSISTENT parameter; do not duplicate
19365         the string unless it needs to be added into the hash.
19366         (lto_output_string_with_length): Add persistent attribute;
19367         handle NULL strings.
19368         (lto_output_string): Add PERSISTENT parameter.
19369         (output_string_cst, output_identifier): Simplify.
19370         (lto_output_location_bitpack): Update.
19371         (lto_output_builtin_tree): Update.
19372         * lto-streamer.h (struct output_block): Add obstack.
19373         (lto_output_string, lto_output_string_with_length): Remove
19374         declarations; functions are static now.
19375
19376 2011-05-28  Jan Hubicka  <jh@suse.cz>
19377
19378         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
19379         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
19380         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
19381         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
19382         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
19383         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
19384         unpack_ts_decl_with_vis_value_fields,
19385         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
19386         lto_get_builtin_tree): Use enum and variable length i/o.
19387         * basic-block.h (profile_status_d): Add PROFILE_LAST.
19388         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
19389         New functions.
19390         (bp_pack_enum, bp_unpack_enum): New macros.
19391
19392 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
19393
19394         * genrecog.c: Remove redundant forward declarations.
19395
19396 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
19397
19398         * config.gcc: Deprecate mips*-*-openbsd*.
19399
19400 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
19401
19402         PR bootstrap/49195
19403         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
19404         for match_op_dup.
19405
19406 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
19407
19408         PR middle-end/48981
19409         * gengtype.c (vec_prefix_type): New function.
19410         (note_def_vec): Use vec_prefix_type and change the length
19411         attribute to be based on the prefix.
19412         * vec.c: Include coretypes.h before vec.h.
19413         (struct vec_prefix): Remove.
19414         (vec_gc_p_reserve): Change the offsetof to sizeof.
19415         (vec_gc_p_reserve_exact): Likewise.
19416         (vec_heap_p_reserve): Likewise.
19417         (vec_heap_p_reserve_exact): Likewise.
19418         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
19419         (vec_stack_p_reserve): Change the offsetof to sizeof.
19420         (vec_stack_p_reserve_exact): Likewise.
19421         * vec.h (struct vec_prefix): New struct definition.
19422         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
19423         (VEC_T_GTY(T,B)): Likewise.
19424         (DEF_VEC_FUNC_P(T)): Use prefix field.
19425         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
19426         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
19427
19428 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19429
19430         PR tree-optimization/46728
19431         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
19432         (powi_as_mults): Add gimple_set_location.
19433         (build_and_insert_call): New.
19434         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
19435         0.5, 0.25, 0.75, 1./3., or 1./6.
19436
19437 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
19438
19439         * doc/contrib.texi: Update copyright years.
19440         (Contributors): Add Zdenek Sojka.
19441
19442 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
19443
19444         * c-decl.c (c_push_function_context): Copy the current statement
19445         list stack.
19446         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
19447         (finish_struct): Call building_stmt_list_p instead of checking
19448         cur_stmt_list.
19449         * c-parser.c (c_parser_postfix_expression): Likewise.
19450         * c-typeck.c (c_end_compound_stmt): Likewise.
19451         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
19452         * tree-iterator.c (stmt_list_cache): Change to a VEC.
19453         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
19454         (free_stmt_list): Likewise.
19455         * tree.h (struct tree_statement_list): Include typed_tree instead
19456         of tree_common.
19457         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
19458         as TS_TYPED instead of TS_COMMON.
19459
19460 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19461             Uros Bizjak  <ubizjak@gmail.com>
19462
19463         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
19464         (HAVE_AS_IX86_TLSGDPTL): Define.
19465         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
19466         (HAVE_AS_IX86_TLSLDMPLT): Define.
19467         * configure: Regenerate.
19468         * config.in: Regenerate.
19469         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
19470         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
19471         TARGET_SUN_TLS, use @tlsgdplt or @plt.
19472         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
19473         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
19474         @tlsldmplt or @plt.
19475         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
19476
19477 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
19478
19479         * sched-int.h (struct _haifa_deps_insn_data): New members cond
19480         and reverse_cond.
19481         (INSN_COND, INSN_REVERSE_COND): New macros.
19482         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
19483         once.
19484         (sched_get_condition_with_rev): Cache the results, and look them up
19485         if possible.
19486         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
19487         are clobbered by the current insn.
19488         * target.def (exposed_pipline): New sched data hook.
19489         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
19490         * doc/tm.texi: Regenerate.
19491
19492 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19493
19494         PR tree-optimization/49170
19495         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
19496         sincos or cexp.
19497
19498 2011-05-27  Richard Guenther  <rguenther@suse.de>
19499
19500         PR middle-end/49189
19501         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
19502         of comparisons.
19503
19504 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
19505
19506         * haifa-sched.c (sched_scan_info): Remove.
19507         (schedule_block): Call sched_extend_luids rather than sched_init_luids
19508         with NULL args.
19509         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
19510         Remove functions.
19511         (sched_scan): Remove.
19512         (sched_extend_luids): Renamed from luids_extend_insn and no longer
19513         static.  All callers changed.
19514         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
19515         static.  All callers changed.
19516         (sched_init_luids): Remove all arguments except the first.  All
19517         callers changed.  Don't use sched_scan.
19518         (haifa_init_h_i_d): Likewise.
19519         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
19520         manually rather than using sched_init_luids.  Likewise with
19521         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
19522         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
19523         rather than sched_init_luids with NULL args.
19524         * sel-sched-ir.c (new_insns): Remove variable.
19525         (sched_scan): New static function, previously in haifa-sched.c.  Remove
19526         all arguments but the first two; all callers changed.
19527         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
19528         rather than sched_init_luids.
19529         (sel_init_bbs): Remove second argument.  All callers changed.
19530         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
19531         with NULL arguments.
19532         (create_insn_rtx_from_pattern): Likewise.
19533         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
19534         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
19535         (sched_init_insn_luid, sched_extend_luids): Declare.
19536         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
19537         declarations.
19538
19539 2011-05-27  Richard Guenther  <rguenther@suse.de>
19540
19541         PR middle-end/49177
19542         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
19543         A CMP B ? (T) true : (T) false for non-integral types T again.
19544
19545 2011-05-27  Jan Hubicka  <jh@suse.cz>
19546
19547         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
19548         so 0 means NULL string.
19549         (lto_output_string_with_length): ... here.
19550         (lto_output_string, output_string_cst, output_identifier): Update
19551         handling of NULL strings.
19552         (lto_output_location_bitpack): New function.
19553         (lto_output_location): Use it.
19554         (lto_output_tree_ref): Use output_record_start.
19555         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
19556         len values.
19557         * lto-streamer-in.c (string_for_index): Break out from ...; offset
19558         values by 1.
19559         (input_string_internal): ... here;
19560         (input_string_cst, input_identifier, lto_input_string): Update handling
19561         of NULL strings.
19562         (lto_input_location_bitpack): New function
19563         (lto_input_location): Use it.
19564         (unpack_ts_type_common_value_fields): Pack align & alias in var len
19565         values.
19566         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
19567         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
19568         (bp_pack_value): Sanity check the value range.
19569         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
19570         New functions.
19571         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
19572         New functions.
19573
19574 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
19575
19576         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
19577         call_arg_location instructions down the floor.
19578
19579 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
19580
19581         PR rtl-optimization/49154
19582         * ira.c (setup_pressure_classes): Process class without sublcasses
19583         as a candidate for pressure classes.
19584
19585 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
19586
19587         PR rtl-optimization/48575
19588         * genrecog.c (position_type): New enum.
19589         (position): New structure.
19590         (decision): Use position structure instead of a string.
19591         (root_pos, peep2_insn_pos_list): New variables.
19592         (next_position, compare_positions): New functions.
19593         (new_decision): Use position structures instead of strings.
19594         (maybe_both_true): Likewise.
19595         (change_state): Likewise.
19596         (write_tree): Likewise.
19597         (make_insn_sequence): Likewise.
19598
19599 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
19600
19601         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
19602         TS_BASE instead of TS_COMMON.
19603         (find_decls_types_r): Check for TS_TYPED structure before looking at
19604         TREE_TYPE.
19605         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
19606         Add chain field.
19607         (BLOCK_CHAIN): Use new chain field.
19608
19609 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
19610
19611         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
19612         moves expensive on Power7 also.
19613
19614 2011-05-26  Richard Guenther  <rguenther@suse.de>
19615
19616         * fold-const.c (fold_unary_loc): Remove bogus code.
19617
19618 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
19619
19620         * tree.h (struct tree_identifier): Inherit from tree_typed, not
19621         tree_common.
19622         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
19623         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
19624         TS_BASE instead of TS_COMMON.
19625         * varasm.c (assemble_name): Remove assert.
19626
19627 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
19628
19629         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
19630         substituted first.
19631         * libgcc-std.ver: Delete file.
19632
19633 2011-05-26  Richard Guenther  <rguenther@suse.de>
19634
19635         PR tree-optimization/48702
19636         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
19637         only when we know the base address is within bounds.
19638         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
19639         assume the base address of TARGET_MEM_REFs is in bounds.
19640
19641 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19642
19643         PR target/49099
19644         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
19645         declaration in TARGET_SOLARIS.
19646
19647 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
19648
19649         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
19650         The instruction is then expanded explicitly.
19651         (supported_compare): Callable instruction.
19652         (compare): Likewise.
19653
19654 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
19655
19656         PR c++/49165
19657         * gimplify.c (shortcut_cond_r): Don't special case
19658         COND_EXPRs if they have void type on one of their arms.
19659
19660 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
19661
19662         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
19663         to reduce duplication, and to achieve a slightly more logical order
19664         of operations.
19665
19666 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
19667
19668         PR tree-optimization/49161
19669         * tree-vrp.c (struct case_info): New type.
19670         (compare_case_labels): Sort case_info structs instead of
19671         trees, and not primarily by CASE_LABEL uids but by
19672         label_for_block indexes.
19673         (find_switch_asserts): Put case labels into struct case_info
19674         array instead of TREE_VEC, adjust sorting, compare label_for_block
19675         values instead of CASE_LABELs.
19676
19677 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19678
19679         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
19680         ("orndi3_neon"): Likewise.
19681         ("bic<mode>3_neon"): Likewise.
19682
19683 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
19684
19685         PR tree-optimization/49038
19686         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
19687         Ensure at least one epilogue iteration if required by data
19688         accesses with gaps.
19689         * tree-vectorizer.h (struct _loop_vec_info): Add new field
19690         to mark loops that require peeling for gaps.
19691         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
19692         (vect_get_known_peeling_cost): Take peeling for gaps into
19693         account.
19694         (vect_transform_loop): Generate epilogue if required by data
19695         access with gaps.
19696         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
19697         loop as requiring an epilogue if there are gaps in the end of
19698         the strided group.
19699
19700 2011-05-25  Ian Lance Taylor  <iant@google.com>
19701
19702         * godump.c (go_format_type): Output the first field with a usable
19703         Go type, if any.
19704
19705 2011-05-25  Ian Lance Taylor  <iant@google.com>
19706
19707         * godump.c (go_format_type): Check for invalid type names, pointer
19708         target types, and struct field types.
19709
19710 2011-05-25  Jason Merrill  <jason@redhat.com>
19711
19712         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
19713
19714 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
19715
19716         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
19717
19718 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
19719
19720         * config/i386/i386.md (*movqi_extv_1)): Put back
19721         "register_operand" check in "type" calculation.
19722         (*movqi_extzv_2): Likewise.
19723
19724 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
19725
19726         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
19727
19728 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
19729
19730         PR bootstrap/49160
19731         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
19732         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
19733         __divxc3, __divtc3): Wrap definitions in #ifndef.
19734
19735 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
19736
19737         PR target/49142
19738         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
19739         "register_operand" check and replace q_regs_operand with
19740         QIreg_operand in "type" calculation.
19741         (*movqi_extv_1): Likewise.
19742         (*movqi_extzv_2_rex64): Likewise.
19743         (*movqi_extzv_2): Likewise.
19744
19745         * config/i386/predicates.md (QIreg_operand): New.
19746
19747 2011-05-25  Richard Guenther  <rguenther@suse.de>
19748
19749         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
19750         type-based offset disambiguation, streamline MEM_REF and
19751         TARGET_MEM_REF handling.
19752
19753 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
19754
19755         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
19756         (bdesc_special_args): Add pause intrinsic.
19757
19758         * config/i386/i386.md (UNSPEC_PAUSE): New.
19759         (pause): Likewise.
19760         (*pause): Likewise.
19761         * config/i386/ia32intrin.h (__pause): Likewise.
19762
19763         * doc/extend.texi (X86 Built-in Functions): Add documentation for
19764         pause intrinsic.
19765
19766 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19767
19768         PR tree-optimization/46728
19769         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
19770         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
19771
19772 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
19773
19774         * tree.h (struct tree_exp): Inherit from struct tree_typed.
19775         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
19776         instead of TS_COMMON.
19777
19778 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
19779
19780         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
19781         LIBGCC2_GNU_PREFIX is defined.
19782         (__N): New macro.
19783         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
19784         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
19785         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
19786         __clz_tab): Define using __N.
19787         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
19788         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
19789         * target.def (libfunc_gnu_prefix): New hook.
19790         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
19791         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
19792         * doc/tm.texi: Regenerate.
19793         * system.h (LIBGCC2_GNU_PREFIX): Poison.
19794         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
19795         account.
19796         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
19797         (init_optabs): Likewise for the bswap libfuncs.
19798         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
19799         and divide.
19800         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
19801         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
19802         * libgcc-std.ver: Remove.
19803         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
19804         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
19805         libgcc-std.ver.
19806         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
19807         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
19808         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
19809         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
19810         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
19811         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
19812         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
19813         * config/fixed-bit.h (FIXED_OP): Define differently depending on
19814         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
19815         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
19816
19817 2011-05-25  Jan Hubicka  <jh@suse.cz>
19818
19819         * lto-streamer-out.c (output_record_start): Use lto_output_enum
19820         (lto_output_tree): Use output_record_start.
19821         * lto-streamer-in.c (input_record_start): Use lto_input_enum
19822         (lto_get_pickled_tree): Use input_record_start.
19823         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
19824         (lto_value_range_error): New function.
19825         * lto-streamer.h (lto_value_range_error): Declare.
19826         (lto_output_int_in_range, lto_input_int_in_range): New functions.
19827         (lto_output_enum, lto_input_enum): New macros.
19828
19829 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
19830
19831         * common.opt (flag_stack_usage_info): New variable.
19832         (-Wstack-usage): New option.
19833         * doc/invoke.texi (Warning options): Document -Wstack-usage.
19834         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
19835         <OPT_fstack_usage>: Likewise.
19836         * toplev.c (output_stack_usage): Handle -Wstack-usage.
19837         * calls.c (expand_call): Test flag_stack_usage_info variable instead
19838         of flag_stack_usage.
19839         (emit_library_call_value_1): Likewise.
19840         * explow.c (allocate_dynamic_stack_space): Likewise.
19841         * function.c (instantiate_virtual_regs ): Likewise.
19842         (prepare_function_start): Likewise.
19843         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
19844         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
19845         * config/arm/arm.c (arm_expand_prologue): Likewise.
19846         (thumb1_expand_prologue): Likewise.
19847         * config/avr/avr.c (expand_prologue): Likewise.
19848         * config/i386/i386.c (ix86_expand_prologue): Likewise.
19849         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
19850         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
19851         * config/mips/mips.c (mips_expand_prologue): Likewise.
19852         * config/pa/pa.c (hppa_expand_prologue): Likewise.
19853         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
19854         * config/s390/s390.c (s390_emit_prologue): Likewise.
19855         * config/sh/sh.c (sh_expand_prologue): Likewise.
19856         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
19857         * config/spu/spu.c (spu_expand_prologue): Likewise.
19858
19859 2011-05-25  Richard Guenther  <rguenther@suse.de>
19860
19861         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
19862         (gimple_canonical_types_compatible_p): Likewise.
19863
19864 2011-05-25  Jan Hubicka  <jh@suse.cz>
19865
19866         PR middle-end/49062
19867         * ipa.c (function_and_variable_visibility): Only add to same
19868         comdat group list if DECL_ONE_ONLY.
19869
19870 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
19871
19872         PR rtl-optimization/49014
19873         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
19874
19875 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19876
19877         PR target/49128
19878         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
19879
19880 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
19881
19882         PR rtl-optimization/48757
19883         * ira-build.c (loop_with_eh_edge_p): Rename to
19884         loop_with_complex_edge_p, check edges on complexity, make function
19885         conditional.
19886         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
19887         conditional.
19888
19889 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
19890
19891         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
19892         force flag_ira_share_save_slots to 0.
19893
19894 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
19895
19896         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
19897         (vt_initialize): Set PROLOGUE_BB unconditionally.
19898         Add block comment about CFA_BASE_RTX machinery.
19899         Reset FP_CFA_OFFSET to -1 on all invalid paths.
19900         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
19901
19902 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
19903
19904         PR objc/48187
19905         * c-parser.c (c_parser_objc_class_instance_variables): More robust
19906         parsing of syntax error in ObjC instance variable lists.  In
19907         particular, avoid an infinite loop if there is a stray ']'.
19908         Updated error message.
19909
19910 2011-05-24  Ian Lance Taylor  <iant@google.com>
19911
19912         * godump.c (go_define): Don't accept a string immediately after
19913         another operand.
19914
19915 2011-05-24  Ian Lance Taylor  <iant@google.com>
19916
19917         * godump.c (struct godump_container): Add invalid_hash field.
19918         (go_format_type): Return false if type is found in invalid_hash.
19919         (go_output_typedef): Add invalid type to invalid_hash.
19920         (go_finish): Create and delete invalid_hash.
19921
19922 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19923
19924         PR tree-optimization/46728
19925         * tree-ssa-math-opts.c (powi_table): New.
19926         (powi_lookup_cost): New.
19927         (powi_cost): New.
19928         (powi_as_mults_1): New.
19929         (powi_as_mults): New.
19930         (gimple_expand_builtin_powi): New.
19931         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
19932         (gate_cse_sincos): Remove sincos/cexp restriction.
19933
19934 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19935
19936         PR target/3746
19937         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
19938         mips-tdump native.
19939         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
19940         * mips-tdump.c: Likewise.
19941
19942 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
19943
19944         PR target/49128
19945         * config/i386/driver-i386.c (host_detect_local_cpu): Always
19946         add -mno-XXX.  Handle FMA.
19947
19948 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
19949
19950         PR rtl-optimization/48633
19951         * ira-build.c (loop_with_eh_edge_p): New function.
19952         (mark_loops_for_removal): Use it.
19953
19954 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
19955
19956         PR rtl-optimization/48971
19957         * ira.c (setup_pressure_classes): Don't check register move cost
19958         for classes with one registers.  Don't add pressure class if there
19959         is a pressure class with the same available hard registers.
19960         Check contains_reg_of_mode.  Fix a typo in collecting
19961         temp_hard_regset.  Ignore hard registers not belonging to a class.
19962
19963 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
19964
19965         PR target/49133
19966         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
19967
19968 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
19969             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19970
19971         PR gcov-profile/48845
19972         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
19973
19974 2011-05-24  Richard Guenther  <rguenther@suse.de>
19975
19976         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
19977         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
19978         (gimple_types_compatible_p_1): Adjust.
19979         (iterative_hash_canonical_type): Do not bother about complete vs.
19980         incomplete types.
19981         (gimple_canonical_types_compatible_p): Likewise.
19982
19983 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19984
19985         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
19986
19987 2011-05-24  Richard Guenther  <rguenther@suse.de>
19988
19989         PR bootstrap/49078
19990         * gimple.c (gimple_register_canonical_type): Revert
19991         previous change.
19992         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
19993         does not for a tree for the case where it matters.  Cache
19994         pointer-type alias-sets.
19995
19996 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
19997
19998         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
19999         (OBJS): Remove options.o, opts-common.o and prefix.o.
20000         (OBJS-libcommon-target): New.
20001         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
20002         (BACKEND): Include libcommon-target.a.
20003         (MOSTLYCLEANFILES): Include libcommon-target.a.
20004         (libcommon-target.a): New.
20005         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
20006         prefix.o.
20007
20008 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
20009
20010         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
20011         parts of output shared with the driver.
20012         * optc-gen.awk: Don't generate parts of output not shared with the
20013         driver.
20014         * opth-gen.awk: Remove GCC_DRIVER conditionals.
20015         * doc/options.texi (SourcerInclude): Mention options-save.c.
20016         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
20017         (OBJS): Add options-save.o.
20018         (options-save.c, options-save.o): New.
20019         (options.o): Update dependencies.
20020         (gcc-options.o): Remove.
20021         (mostlyclean): Remove options-save.c.
20022
20023 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
20024
20025         PR debug/49032
20026         * dbxout.c: Include cgraph.h.
20027         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
20028         and without value expr, return NULL if no varpool node exists for
20029         it or if it is not needed.
20030         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
20031
20032         PR c/49120
20033         * c-decl.c (start_decl): Convert expr to void_type_node.
20034
20035 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
20036
20037         PR rtl-optimization/48826
20038         * emit-rtl.c (try_split): When splitting a call that is followed
20039         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
20040
20041 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
20042
20043         * cfgexpand.c (expand_debug_expr): For unused non-addressable
20044         parameters passed in memory prefer using DECL_INCOMING_RTL over
20045         the pseudos it will be copied into.
20046
20047 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
20048
20049         PR target/47315
20050         * config/i386/i386.c (ix86_option_override_internal): Save the
20051         initial options after checking vzeroupper.
20052
20053 2011-05-23  David Li  <davidxl@google.com>
20054
20055         PR tree-optimization/48988
20056         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
20057         Initialize has_valid_pred for each pred chain.
20058
20059 2011-05-23  Richard Guenther  <rguenther@suse.de>
20060
20061         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
20062         (iterative_hash_gimple_type): Always hash type names.
20063
20064 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
20065
20066         * c-typeck.c (build_function_call_vec): Tweak call to
20067         check_function_arguments.
20068
20069 2011-05-23  Richard Guenther  <rguenther@suse.de>
20070
20071         PR tree-optimization/49115
20072         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
20073         is not necessarily carried out, do not claim it kills the ref.
20074         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
20075
20076 2011-05-23  Richard Guenther  <rguenther@suse.de>
20077
20078         PR middle-end/15419
20079         * builtins.c (fold_builtin_memory_op): Be less restrictive about
20080         what pointer types we accept for folding.
20081
20082 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20083
20084         * gthr-gnat.c: Remove.
20085         * gthr-gnat.h: Remove.
20086         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
20087         * config/t-freebsd (LIB2ADDEH): Likewise.
20088         * config/t-linux (LIB2ADDEH): Likewise.
20089         * config/t-sol2 (LIB2ADDEH): Likewise.
20090         * config/ia64/t-vms (LIB2ADDEH): Likewise.
20091         * configure.ac (target_thread_file): Remove gnat handling.
20092         * configure: Regenerate.
20093         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
20094
20095 2011-05-23  Tristan Gingold  <gingold@adacore.com>
20096             Eric Botcazou  <ebotcazou@adacore.com>
20097
20098         * gcov.c (create_file_names): If no object directory is specified,
20099         keep the directory of the file.
20100
20101 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20102
20103         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
20104         * configure: Regenerate.
20105
20106 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
20107
20108         PR middle-end/48973
20109         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
20110         failed and the comparison has a single bit signed type, use
20111         constm1_rtx instead of const1_rtx for true value.
20112         (do_store_flag): If ops->type is single bit signed type, disable
20113         signel bit test optimization and pass -1 instead of 1 as last
20114         parameter to emit_store_flag_force.
20115
20116 2011-05-23  Tom de Vries  <tom@codesourcery.com>
20117
20118         PR target/45098
20119         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
20120         function.
20121         (infer_loop_bounds_from_undefined): Use new function.
20122
20123 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
20124
20125         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
20126         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
20127         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
20128         and -O0 otherwise.
20129         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
20130
20131 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
20132
20133         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
20134         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
20135         returns true.
20136
20137 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
20138
20139         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
20140
20141 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
20142
20143         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
20144         UNSPEC_MOVE_PIC pattern.
20145
20146 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
20147
20148         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
20149         (sparc-*-rtems*): Likewise.
20150         (sparc64-*-elf*): Likewise.
20151         (sparc64-*-rtems*): Likewise.
20152         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
20153         * config/sparc/t-crtin: New file.
20154         * config/sparc/t-sol2 (crti.o): Delete rule.
20155         (crtn.o): Likewise.
20156         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
20157         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
20158         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
20159         (ENDFILE_SPEC): Add crtn.o.
20160
20161 2011-05-22  Tom de Vries  <tom@codesourcery.com>
20162
20163         PR middle-end/48689
20164         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
20165         CODE_CONTAINS_STRUCT (TS_COMMON).
20166
20167 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
20168
20169         PR middle-end/49029
20170         * expmed.c (extract_fixed_bit_field): Test whether target can be used
20171         only after deciding which mode to use.
20172
20173 2011-05-22  Tom de Vries  <tom@codesourcery.com>
20174
20175         PR target/45098
20176         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
20177         for call to get_shiftadd_cost.
20178
20179 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
20180
20181         PR target/49104
20182         * config/i386/cpuid.h (bit_MMXEXT): New define.
20183
20184 2011-05-22  Nick Clifton  <nickc@redhat.com>
20185
20186         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
20187         initialisation of non-existant args[2] element.  Use args[] array
20188         not arg[] array to pass arguments to build_function_type_list.
20189
20190 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
20191
20192         PR tree-optimization/49087
20193         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
20194
20195 2011-05-21  Jason Merrill  <jason@redhat.com>
20196
20197         PR c++/49092
20198         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
20199         static storage duration.
20200
20201 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
20202
20203         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
20204         frame pointer.
20205
20206 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
20207
20208         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
20209         false if there are call-saved registers here...
20210         (sparc_can_use_return_insn_p): ...but here instead.
20211         (save_or_restore_regs): Fix thinko.
20212         (sparc_expand_prologue): Use current_function_is_leaf.
20213         (sparc_frame_pointer_required): Likewise.
20214
20215 2011-05-21  Nick Clifton  <nickc@redhat.com>
20216
20217         PR target/49098
20218         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
20219
20220 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
20221
20222         * gengtype.c (walk_type): Implemented "atomic" GTY option.
20223         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
20224
20225 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
20226
20227         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
20228         * optc-gen.awk: Move common code to opt-read.awk.
20229         * opth-gen.awk: Likewise.
20230         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
20231
20232 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
20233
20234         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
20235
20236 2011-05-20  Tom de Vries  <tom@codesourcery.com>
20237
20238         PR target/45098
20239         * tree-ssa-loop-ivopts.c: Include expmed.h.
20240         (get_shiftadd_cost): New function.
20241         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
20242
20243 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
20244
20245         PR bootstrap/49086
20246         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
20247         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
20248
20249 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
20250
20251         * Makefile.in: Update comment referring to $(OBJS-common).
20252
20253 2011-05-20  Ian Lance Taylor  <iant@google.com>
20254
20255         * godump.c (go_output_typedef): Put enum constants in the macro
20256         hash table to avoid duplicate Go const definitions.
20257
20258 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
20259
20260         * Makefile.in (LIBDEPS): Add libcommon.a.
20261         (LIBS): Likewise.
20262         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
20263         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
20264         pretty-print.o and version.o.
20265         (OBJS-libcommon): New.
20266         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
20267         (BACKEND): Add libcommon.a.
20268         (MOSTLYCLEANFILES): Likewise.
20269         (libcommon.a): New.
20270         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
20271         (cpp$(exeext)): Likewise.
20272         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
20273         pretty-print.o and input.o.
20274         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
20275         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
20276         (errors.o): Remove.
20277         (mips-tfile): Don't explicitly use version.o.
20278         (mips-tdump): Likewise.
20279         (gcov.o): Depend on $(DIAGNOSTIC_H).
20280         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
20281         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
20282         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
20283         * gcov-dump.c: Include intl.h and diagnostic.h.
20284         (main): Initialize diagnostics.
20285         * gcov.c: Include diagnostic.h.
20286         (fnotice): Remove.
20287         (main): Initialize diagnostics.
20288         * lto-wrapper.c: Include diagnostic.h.
20289         (main): Initialize diagnostics.
20290
20291 2011-05-20  Michael Matz  <matz@suse.de>
20292
20293         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
20294
20295 2011-05-20  Michael Matz  <matz@suse.de>
20296             Richard Guenther  <rguenther@suse.de>
20297
20298         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
20299         use lto_streamer_cache_append directly instead of returning a VEC.
20300         (preload_common_node): Remove.
20301         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
20302         track seen nodes.
20303         (lto_streamer_cache_create): Call lto_preload_common_nodes.
20304
20305 2011-05-20  Richard Guenther  <rguenther@suse.de>
20306
20307         PR tree-optimization/49079
20308         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
20309         MEM_REFs correctly for the trailing array access detection.
20310         Special case constants the same way as decls for overall size
20311         constraining.
20312
20313 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
20314
20315         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
20316         argument expansion.
20317
20318 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
20319
20320         PR tree-optimization/49073
20321         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
20322         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
20323         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
20324
20325 2011-05-20  Richard Guenther  <rguenther@suse.de>
20326
20327         PR middle-end/48849
20328         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
20329         of pointer types the same way the middle-end does.
20330
20331 2011-05-20  Richard Guenther  <rguenther@suse.de>
20332
20333         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
20334         or pointer-to chains.  Delay all fixup to uniquify_nodes.
20335
20336 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
20337
20338         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
20339         (fma4_fmaddsub): Likewise
20340
20341 2011-05-19  Jan Hubicka  <jh@suse.cz>
20342
20343         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
20344         (GIMPLE_TYPE_PAIR_SIZE): New macro.
20345         (type_pair_cache): New static var.
20346         (lookup_type_pair): Use fixed sized custom hash; make inline.
20347         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
20348         calls of lookup_type_pair.
20349         (print_gimple_types_stats): Remove cache stats.
20350         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
20351         and gtc_ob.
20352
20353 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
20354
20355         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
20356         when TARGET_RDRND is active.
20357         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
20358         Generate dummy SImode target register when target is NULL.
20359
20360 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
20361
20362         * config/arm/arm-fpus.def: New.
20363         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
20364         arm-fpus.def.
20365         * config/arm/arm-tables.opt: Regenerate.
20366         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
20367         (arm_option_override): Don't decode FPU name to string here.
20368         * config/arm/arm.opt (mfpu=): Use Enum.
20369         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
20370         Update dependencies.
20371
20372 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
20373
20374         * collect2.c: Include diagnostic.h.
20375         (fatal_perror, fatal, error, fancy_abort): Remove.
20376         (main): Set progname.  Call xmalloc_set_program_name and
20377         diagnostic_initialize.
20378         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
20379         scan_libraries, resolve_lib_name): Call fatal_error instead of
20380         fatal and fatal_perror.
20381         * collect2.h (error, fatal, fatal_perror): Don't declare.
20382         * tlink.c: Include diagnostic-core.h.
20383         (recompile_files): Call fatal_error instead of fatal_perror.
20384         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
20385         pretty-print.o and input.o.
20386         (collect2.o, tlink.o): Update dependencies.
20387
20388 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20389
20390         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
20391
20392 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20393
20394         PR target/40483
20395         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
20396         COMDAT group syntax, both SPARC and x86 variants.
20397         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
20398         * configure: Regenerate.
20399         * config/sol2.h (TARGET_SOLARIS): Define.
20400         (PUSHSECTION_FORMAT): Remove.
20401         (SECTION_NAME_FORMAT): Define.
20402         * config/sol2.c: Include hashtab.h.
20403         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
20404         expansion, using SECTION_NAME_FORMAT.
20405         (solaris_comdat_htab): New variable.
20406         (struct comdat_entry): Define.
20407         (comdat_hash): New function.
20408         (comdat_eq): New function.
20409         (solaris_elf_asm_comdat_section): New function.
20410         (solaris_define_comdat_signature): New function.
20411         (solaris_code_end): New function.
20412         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
20413         (solaris_code_end): Declare.
20414         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
20415         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
20416         solaris_code_end.
20417         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
20418         Remove ATTRIBUTE_UNUSED.
20419         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
20420         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
20421         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
20422         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
20423         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
20424         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
20425         (PUSHSECTION_FORMAT): Remove.
20426         (SECTION_NAME_FORMAT): Redefine.
20427
20428 2011-05-19  Kai Tietz  <ktietz@redhat.com>
20429
20430         * tree-cfg.c (verify_gimple_assign_binary): Barf on
20431         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
20432         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
20433
20434 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
20435             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20436
20437         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
20438
20439 2011-05-19  Richard Guenther  <rguenther@suse.de>
20440
20441         PR middle-end/48985
20442         * tree-object-size.c (addr_object_size): If the pointed-to
20443         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
20444
20445 2011-05-19  Richard Guenther  <rguenther@suse.de>
20446
20447         * gimple.c (gimple_types_compatible_p_1): Compare names of
20448         the types themselves.
20449         (iterative_hash_gimple_type): And hash them that way.
20450         (gimple_register_type_1): If we register a main variant properly
20451         initialize the leader to ourselves.
20452
20453 2011-05-19  Tom de Vries  <tom@codesourcery.com>
20454
20455         PR target/45098
20456         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
20457         get_loop_invariant_expr_id.
20458         (get_loop_invariant_expr_id): Use get_expr_id.
20459         (parm_decl_cost): New function.
20460         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
20461         Improve bound cost estimation.  Use different inv_expr_id for elim and
20462         express cases.
20463
20464 2011-05-19  Tom de Vries  <tom@codesourcery.com>
20465
20466         PR target/45098
20467         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
20468         cost_base.cost == 0.
20469
20470 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
20471
20472         PR target/49002
20473         * config/i386/sse.md
20474         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
20475         load cast.
20476
20477 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
20478
20479         PR tree-optimization/49039
20480         * tree-vrp.c (extract_range_from_binary_expr): For
20481         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
20482         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
20483
20484 2011-05-18  Tom de Vries  <tom@codesourcery.com>
20485
20486         PR target/45098
20487         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
20488
20489 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
20490
20491         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
20492         (*tls_global_dynamic_64): Ditto.
20493         (*tls_local_dynamic_base_32_gnu): Ditto.
20494         (*tls_local_dynamic_base_64): Ditto.
20495         (tls_initial_exec_64_sun): Ditto.
20496
20497 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
20498
20499         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
20500         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
20501         bf592-none.
20502         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
20503         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
20504         * config/bfin/bfin.c (bfin_cpus): Add bf592.
20505         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
20506         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
20507         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
20508         * config/bfin/elf.h (LIB_SPEC): Add bf592.
20509
20510 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
20511
20512         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
20513         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
20514         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
20515         target_thread_pointer, arm_structure_size_boundary, struct
20516         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
20517         struct abi_name, arm_all_abis): Remove.
20518         (arm_option_override) Don't process most enumerated option values here.
20519         Don't process target_fpe_name here.  Work with integer not string for
20520         structure size boundary; use separate diagnostics for each case.
20521         * config/arm/arm.h (enum float_abi_type, enum
20522         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
20523         to arm-opts.h.
20524         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
20525         arm_structure_size_boundary): Remove.
20526         * config/arm/arm.opt (mabi=): Use Enum and Init.
20527         (arm_abi_type): New Enum and EnumValue entries.
20528         (mfloat-abi=): Use Enum and Init.
20529         (float_abi_type): New Enum and EnumValue entries.
20530         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
20531         (mfp16-format=): Use Enum and Init.
20532         (arm_fp16_format_type): New Enum and EnumValue entries.
20533         (mstructure-size-boundary=): Use UInteger and Init.
20534         (mtp=): Use Enum and Init.
20535         (arm_tp_type): New Enum and EnumValue entries.
20536
20537 2011-05-18  Richard Guenther  <rguenther@suse.de>
20538
20539         PR tree-optimization/49018
20540         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
20541         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
20542         gimple_has_side_effects.
20543
20544 2011-05-18  Richard Guenther  <rguenther@suse.de>
20545
20546         * gimple.c (gimple_register_type_1): New function, split out from ...
20547         (gimple_register_type): ... here.  Avoid infinite recursion.
20548
20549 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
20550
20551         PR tree-optimization/41881
20552         * tree-vectorizer.h (struct _loop_vec_info): Add new field
20553         reduction_chains along with a macro for its access.
20554         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
20555         (destroy_loop_vec_info): Free reduction chains.
20556         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
20557         (vect_is_slp_reduction): New function.
20558         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
20559         (vect_create_epilog_for_reduction): Support SLP reduction chains.
20560         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
20561         definition types for reduction chains.
20562         (vect_supported_load_permutation_p): Don't allow permutations for
20563         reduction chains.
20564         (vect_analyze_slp_instance): Support reduction chains.
20565         (vect_analyze_slp): Try to build SLP instance from reduction chains.
20566         (vect_get_constant_vectors):  Handle reduction chains.
20567         (vect_schedule_slp_instance): Mark the first statement of the
20568         reduction chain as reduction.
20569
20570 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
20571
20572         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
20573         names for group elements access.
20574         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
20575         reduction chains as well.  Remove data reference and interleaving
20576         related words from the fields names.
20577         * tree-vect-loop.c (vect_transform_loop): Use new names for group
20578         elements access.
20579         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
20580         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
20581         vect_update_interleaving_chain, vect_same_range_drs,
20582         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
20583         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
20584         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
20585         vect_analyze_group_access, vect_analyze_data_ref_access,
20586         vect_create_data_ref_ptr, vect_transform_strided_load,
20587         vect_record_strided_load_vectors): Likewise.
20588         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
20589         vect_model_load_cost, vectorizable_store, vectorizable_load,
20590         vect_remove_stores, new_stmt_vec_info): Likewise.
20591         * tree-vect-slp.c (vect_build_slp_tree,
20592         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
20593
20594 2011-05-18  Richard Guenther  <rguenther@suse.de>
20595
20596         PR middle-end/48989
20597         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
20598         operand verification.
20599         (verify_gimple_assign_binary): Likewise.
20600         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
20601         to non-1-precision BOOLEAN_TYPEs.
20602
20603 2011-05-18  Tom de Vries  <tom@codesourcery.com>
20604
20605         PR target/45098
20606         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
20607
20608 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
20609
20610         PR tree-optimization/49000
20611         * tree-ssa.c (execute_update_addresses_taken): Call
20612         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
20613         be rewritten and decl has been marked for renaming, reset
20614         the debug stmt.
20615
20616 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
20617
20618         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
20619         enum_opts_set when testing if attributes have set -mfpmath=.
20620
20621 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
20622
20623         * config/mips/mips.c (mips_handle_option): Remove unused variable.
20624
20625 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
20626
20627         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
20628         info->entry with 0
20629         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
20630         id.transform_lang_insert_block with NULL.
20631
20632 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
20633
20634         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
20635         (output_fp_compare): Change args 3 and 4 to bool.
20636         (ix86_expand_call): Change arg 6 to bool.
20637         (ix86_attr_length_immediate_default): Change arg 2 to bool.
20638         (ix86_attr_length_vex_default): Change arg 3 to bool.
20639         * config/i386/i386.md: Update all uses.
20640         * config/i386/i386.c: Ditto.
20641         (ix86_flags_dependent): Change return type to bool.
20642
20643 2011-05-17  Richard Guenther  <rguenther@suse.de>
20644
20645         * gimple.c (type_hash_pair_compare): Fix comparison.
20646
20647 2011-05-17  Richard Guenther  <rguenther@suse.de>
20648
20649         * gimple.c (iterative_hash_gimple_type): Simplify singleton
20650         case some more, fix final hash value of the non-singleton case.
20651
20652 2011-05-17  Richard Guenther  <rguenther@suse.de>
20653
20654         PR bootstrap/49013
20655         Revert
20656         2011-05-16  Richard Guenther  <rguenther@suse.de>
20657
20658         * gimple.c (gimple_types_compatible_p_1): Use names of the
20659         type itself, not its main variant.
20660         (iterative_hash_gimple_type): Likewise.
20661
20662 2011-05-17  Richard Guenther  <rguenther@suse.de>
20663
20664         * gimple.c (gimple_register_canonical_type): Use the main-variant
20665         leader for computing the canonical type.
20666
20667 2011-05-17  Nick Clifton  <nickc@redhat.com>
20668
20669         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
20670         moves.
20671
20672         * config/rx/rx.md: Add peephole to remove redundant extensions
20673         after loads.
20674         (bitset_in_memory): Use rx_restricted_mem_operand.
20675         (bitinvert_in_memory): Likewise.
20676         (bitclr_in_memory): Likewise.
20677
20678 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
20679             Nick Clifton  <nickc@redhat.com>
20680
20681         * config/rx/rx.md: Add peepholes to match a register move followed
20682         by a comparison of the moved register.  Replace these with an
20683         addition of zero that does both actions in one instruction.
20684
20685 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
20686
20687         PR target/48986
20688         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
20689         predicate to allow CONST_INT.
20690         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
20691
20692 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
20693
20694         * opts-common.c (opt_enum_arg_to_value): New.
20695         * opts.h (opt_enum_arg_to_value): Declare.
20696         * config/i386/i386.opt (fpmath): Remove.
20697         (mfpmath=): Use Enum, Init and Save.
20698         (fpmath_unit): New Enum and EnumValue entries.
20699         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
20700         name for function fpmath state.
20701         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
20702         * config/i386/i386.c: Include diagnostic.h.
20703         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
20704         (ix86_target_string): Take enum fpmath_unit value instead of string.
20705         (ix86_debug_options): Update call to ix86_target_string.
20706         (ix86_option_override_internal): Don't process fpmath strings here.
20707         (x86_function_specific_save, ix86_function_specific_restore):
20708         Don't handle fpmath state specially.
20709         (ix86_function_specific_print): Pass fpmath state to
20710         ix86_target_string instead of printing in this function.
20711         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
20712         Handle enum attributes.
20713         (IX86_ATTR_ENUM, ix86_opt_enum): New.
20714         (ix86_valid_target_attribute_tree): Update option_strings
20715         handling.  Handle fpmath as enum option.
20716         (ix86_can_inline_p): Update field names for function fpmath state.
20717         (ix86_expand_builtin): Update call to ix86_target_string.
20718         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
20719         (ix86_fpmath): Remove.
20720         * config/i386/t-i386 (i386.o): Update dependencies.
20721
20722 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
20723
20724         PR preprocessor/48677
20725         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
20726         from decoded_options[0], not from itself.
20727
20728 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
20729
20730         * config/i386/constraints.md (z): New constraint.
20731         * config/i386/i386.c (c): New mode attribute.
20732         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
20733         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
20734         constraint for operand 0.
20735         (*call_vzeroupper): Ditto.
20736         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
20737         (*call_rex64_ms_sysv_vzeroupper): Ditto.
20738         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
20739         Use "lzm" constraint for operand 0.
20740         (*call_pop_vzeroupper): Ditto.
20741         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
20742         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
20743         constraint for operand 0.
20744         (*sibcall_vzeroupper): Ditto.
20745         (*sibcall_rex64_ms_sysv): Ditto.
20746         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
20747         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
20748         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
20749         (*sibcall_pop_vzeroupper): Ditto.
20750         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
20751         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
20752         mode iterator.  Use "<c>zm" constraint for operand 1.
20753         (*call_value_vzeroupper): Ditto.
20754         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
20755         for operand 1.
20756         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
20757         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
20758         *call_value_pop_1.  Use "lzm" constraint for operand 1.
20759         (*call_value_pop_vzeroupper): Ditto.
20760         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
20761         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
20762         mode iterator.  Use "Uz" constraint for operand 1.
20763         (*sibcall_value_vzeroupper): Ditto.
20764         (*sibcall_value_rex64_ms_sysv): Ditto.
20765         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
20766         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
20767         constraint for operand 1.
20768         (*sibcall_value_pop_vzeroupper): Ditto.
20769         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
20770         and "z" constraint for operand 2.
20771         (*tls_global_dynamic_32_gnu): Ditto.
20772         (*tls_local_dynamic_base_32_gnu): Ditto.
20773         (*tls_local_dynamic_base_64): Ditto.
20774         (*tls_local_dynamic_32_once): Ditto.
20775         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
20776         Update all callers.
20777         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
20778
20779 2011-05-16  Richard Guenther  <rguenther@suse.de>
20780
20781         * gimple.c (gimple_types_compatible_p_1): Use names of the
20782         type itself, not its main variant.
20783         (iterative_hash_gimple_type): Likewise.
20784
20785 2011-05-16  Richard Guenther  <rguenther@suse.de>
20786
20787         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
20788         always visit pointer target and function result and argument types.
20789
20790 2011-05-16  Jason Merrill  <jason@redhat.com>
20791
20792         PR c++/48999
20793         * tree-inline.c (copy_statement_list): Put back recursion.
20794
20795 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
20796
20797         PR target/27663
20798         PR target/41076
20799         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
20800         * config/avr/avr.md ("*ior<mode>qi.byte0",
20801         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
20802
20803 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
20804
20805         PR target/45099
20806         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
20807         register is needed for a function argument.
20808
20809 2011-05-16  Richard Guenther  <rguenther@suse.de>
20810
20811         * gimple.c (struct type_hash_pair): New type.
20812         (type_hash_pair_compare): New function.
20813         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
20814
20815 2011-05-16  Revital Eres  <revital.eres@linaro.org>
20816
20817         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
20818
20819 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
20820
20821         * config/i386/i386.md (floating point move splitters): Fix
20822         usage of standard_80387_constant_p.
20823         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
20824
20825 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
20826
20827         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
20828
20829 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20830
20831         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
20832         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
20833         (tree_ssa_lim_finalize): Likewise.
20834
20835 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
20836
20837         * config/i386/constraint.md (Yd, Yx): New register constraints.
20838         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
20839         Yd conditional register constraint.
20840         (*movtf_internal): Use standard_sse_constant_opcode.
20841         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
20842         Yx conditional register constraint.
20843         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
20844         Yd conditional register constraint.  Use standard_sse_constant_p to
20845         check for valid SSE constants and call standard_sse_constant_opcode to
20846         output SSE insn.
20847         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
20848         constants and call standard_sse_constant_opcode to output SSE insn.
20849         * config/i386/i386.c (ix86_option_ovverride_internal): Set
20850         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
20851         optimize_size is set.
20852         (standard_sse_constant_opcode): Output conditional AVX insn templates.
20853
20854 2011-05-14  Tobias Burnus  <burnus@net-b.de>
20855
20856         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
20857
20858 2011-05-13  Martin Jambor  <mjambor@suse.cz>
20859
20860         * ipa-prop.c (ipa_cst_from_jfunc): New function.
20861         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
20862         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
20863         (evaluate_conditions_for_ipcp_clone): Removed.
20864         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
20865         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
20866         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
20867
20868 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
20869
20870         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
20871         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
20872         lieu of MAY_HAVE_DEBUG_STMTS.
20873         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
20874         debug statements if !MAY_HAVE_DEBUG_STMTS.
20875
20876 2011-05-13  Martin Thuresson  <martint@google.com>
20877
20878         PR gcov-profile/47793
20879         * libgcov.c (gcov_exit): Support relative profile paths.
20880         * doc/invoke.texi (-fprofile-dir): Update for above change.
20881
20882 2011-05-13  Richard Guenther  <rguenther@suse.de>
20883
20884         * gimple.c (gimple_canonical_types_compatible_p): Do not use
20885         type-pair caching, do not compare hashes.
20886
20887 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
20888
20889         PR middle-end/48965
20890         * tree-cfg.c (edge_to_cases_cleanup): Return true.
20891         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
20892
20893 2011-05-13  Kai Tietz  <ktietz@redhat.com>
20894
20895         * gimplify.c (gimplify_expr): Make sure operand is boolified.
20896         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
20897         compatible type for TRUTH_NOT_EXPR.
20898
20899 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
20900
20901         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
20902         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
20903         can_create_pseudo_p ().
20904
20905 2011-05-13  Richard Guenther  <rguenther@suse.de>
20906
20907         PR lto/48978
20908         * gimple.c (iterative_hash_gimple_type): Revert change in
20909         pointer target and function result and argument hashing.
20910
20911 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
20912
20913         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
20914         (*movxf_internal_nointeger): Ditto.
20915         (*movdf_internal_rex64): Ditto.
20916         (*movdf_internal): Ditto.
20917         (*movdf_internal_nointeger): Ditto.
20918         (*movsf_internal): Ditto.
20919         (sincos splitters): Use can_create_pseudo ().
20920
20921 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
20922
20923         * config/i386/i386-opts.h: New.
20924         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
20925         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
20926         ix86_section_threshold): Remove.
20927         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
20928         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
20929         OPT_mbranch_cost_.
20930         (ix86_option_override_internal): Don't decode strings for options
20931         other than -march=, -mtune= and -mfpmath=.  Don't allow for
20932         __attribute__ uses in remaining diagnostics for options with
20933         string arguments.  Don't check for integer arguments being negative.
20934         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
20935         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
20936         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
20937         ix86_branch_cost, ix86_section_threshold): Remove.
20938         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
20939         HeaderInclude.
20940         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
20941         but not Var.
20942         (masm=): Use Enum and Init.
20943         (asm_dialect): New Enum and EnumValue entries.
20944         (mbranch-cost=): Use UInteger.
20945         (mlarge-data-threshold=): Use UInteger and Init.
20946         (mcmodel=): Use Enum and Init.
20947         (cmodel): New Enum and EnumValue entries.
20948         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
20949         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
20950         mregparm=): Use UInteger.
20951         (mstringop-strategy=): Use Enum and Init.
20952         (stringop_alg): New Enum and EnumValue entries.
20953         (mtls-dialect=): Use Enum and Init.
20954         (tls_dialect): New Enum and EnumValue entries.
20955         (mabi=): Use Enum and Init.
20956         (calling_abi): New Enum and EnumValue entries.
20957         (mveclibabi=): Use Enum and Init.
20958         (ix86_veclibabi): New Enum and EnumValue entries.
20959
20960 2011-05-13  Nick Clifton  <nickc@redhat.com>
20961
20962         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
20963         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
20964
20965 2011-05-13  Kai Tietz  <ktietz@redhat.com>
20966
20967         PR middle-end/48984
20968         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
20969         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
20970         (gimple_boolify): Check for cast for boolean_type_node instead for
20971         BOOLEAN_TYPE.
20972
20973 2011-05-13  Richard Guenther  <rguenther@suse.de>
20974
20975         PR tree-optimization/48172
20976         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
20977         multiplying by number of iterations for equal step.
20978         (vect_create_cond_for_alias_checks): Likewise.
20979
20980 2011-05-13  Andreas Schwab  <schwab@redhat.com>
20981
20982         * configure.ac: Use AS_HELP_STRING throughout.
20983         * configure: Regenerate.
20984
20985 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
20986
20987         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
20988         (ix86_emit_restore_regs_using_mov): Likewise.
20989         (ix86_emit_restore_sse_regs_using_mov): Likewise.
20990
20991 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
20992
20993         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
20994         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
20995         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
20996         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
20997         RTX_OK_FOR_OLO10_P): ...here.
20998         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
20999         SYMBOLIC_CONST.
21000
21001 2011-05-12  Kai Tietz  <ktietz@redhat.com>
21002
21003         * gimplify.c (gimple_boolify): Re-boolify expression
21004         arguments even if expression type is of kind BOOLEAN_TYPE.
21005         (gimplify_boolean_expr): Removed.
21006         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
21007         and XOR. Additional take care that we keep expression's type.
21008         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
21009         of TRUTH_AND|OR|XOR_EXPR.
21010
21011 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
21012
21013         PR tree-optimization/48975
21014         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
21015         on all bbs here and free and clear ifc_bbs at the end.
21016
21017 2011-05-12  Richard Guenther  <rguenther@suse.de>
21018
21019         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
21020         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
21021         until after simple checks.
21022         (gimple_types_compatible_p): Likewise.
21023         (iterative_hash_gimple_type): Always hash pointer targets
21024         and function return and argument types.
21025         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
21026         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
21027         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
21028         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
21029         completely in the simple compare section.
21030         (gimple_register_canonical_type): Query the cache again after
21031         registering.
21032
21033 2011-05-12  Richard Guenther  <rguenther@suse.de>
21034
21035         PR tree-optimization/48172
21036         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
21037         the number of iterations from the segment size calculation.
21038         (vect_create_cond_for_alias_checks): Adjust.
21039
21040 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
21041
21042         PR debug/48967
21043         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
21044         if validate_subreg fails.
21045
21046 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
21047
21048         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
21049         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
21050         early.
21051
21052 2011-05-12  DJ Delorie  <dj@redhat.com>
21053
21054         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
21055         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
21056         created builtin into rx_builtins array.
21057         (rx_builtin_decl): New function.
21058         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
21059
21060 2011-05-12  DJ Delorie  <dj@redhat.com>
21061             Nick Clifton  <nickc@redhat.com>
21062
21063         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
21064         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
21065         (rx_is_legitimate_address): Add pre-decrement and post-increment
21066         addressing in HImode and QImode.  Fix test for out of range
21067         REG+INT addressing.
21068         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
21069         (rx_align_for_label): Test label before extracting its usage count.
21070         (rx_adjust_insn_lengths): Fix selection of insn codes.
21071         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
21072
21073 2011-05-11  Jason Merrill  <jason@redhat.com>
21074
21075         * tree.c (type_hash_canon): Use struct tree_type_non_common.
21076
21077 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
21078
21079         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
21080         reindent the subsequent block.
21081
21082 2011-05-11  Satoru Takabayashi  <satorux@google.com>
21083             Paul Pluzhnikov  <ppluzhnikov@google.com>
21084
21085         * doc/install.texi (Configuration): Document --with-linker-hash-style.
21086         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
21087         * config.in: Add LINKER_HASH_STYLE.
21088         * configure.ac: Add --with-linker-hash-style.
21089         * configure: Regenerate.
21090
21091 2011-05-11  Richard Guenther  <rguenther@suse.de>
21092
21093         PR middle-end/48964
21094         * gimple.c (iterative_hash_canonical_type): Fix typo.
21095
21096 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
21097
21098         * config/i386/i386.c (legitimize_tls_address)
21099         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
21100         expanders directly for TARGET_GNU2_TLS.  Determine pic and
21101         __tls_get_addr symbol reference here.  Update call to
21102         gen_tls_global_dynamic_{32,64} for added arguments.
21103         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
21104         expanders directly for TARGET_GNU2_TLS.  Determine
21105         __tls_get_addr symbol reference here.  Update call to
21106         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
21107         unique UNSPEC REG_EQUIV to libcall block.
21108         (ix86_tls_get_addr): Declare static.
21109         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
21110         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
21111         Do not determine pic and __tls_get_addr symbol reference here. Do not
21112         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
21113         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
21114         (tls_global_dynamic_64): Add operand 2.  Do not determine
21115         __tls_get_addr symbol reference here.  Do not call
21116         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
21117         (tls_local_dynamic_base64): Ditto for operand 1.
21118
21119 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
21120
21121         * function.c (expand_function_start): Initialize stack_check_probe_note
21122         only if the generic stack checking mechanism is used.
21123
21124 2011-05-11  Richard Guenther  <rguenther@suse.de>
21125
21126         PR tree-optimization/15256
21127         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
21128         (A & B) | C, combine (A op CST1) op CST2.
21129         (tree_ssa_forward_propagate_single_use_vars): Only bother to
21130         visit assigns that have uses.
21131
21132 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
21133
21134         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
21135         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
21136         (unpack_ts_type_common_value_fields): ...this.  Update comment.
21137         (unpack_value_fields): Adjust for renaming.
21138         (lto_input_ts_type_tree_pointers): Split into...
21139         (lto_input_ts_type_common_tree_pointer): ...this and...
21140         (lto_input_ts_type_non_common_tree_pointers): ...this.
21141         (lto_input_tree_pointers): Adjust for above split.
21142         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
21143         (pack_ts_type_common_value_fields): ...this.  Update comment.
21144         (lto_output_ts_type_tree_pointers): Split into...
21145         (lto_output_ts_type_common_tree_pointers): ...this and...
21146         (lto_output_ts_type_non_common_tree_pointers): ...this.
21147         (lto_output_tree_pointers): Adjust for above split.
21148         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
21149         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
21150         * stor-layout.c (vector_type_mode): Adjust location of mode field.
21151         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
21152         Define.
21153         (struct tree_type): Split into...
21154         (struct tree_type_common: ...this and...
21155         (struct tree_type_with_lang_specific): ...this and...
21156         (struct tree_type_non_common): ...this.  Adjust accessor macros
21157         accordingly.
21158         (TYPE_VALUES_RAW): Define.
21159         (union tree_node): Update for above changes.
21160         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
21161         TS_TYPE_NON_COMMON.
21162         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
21163         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
21164         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
21165         * treestructu.def (TS_TYPE): Remove.
21166         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
21167         Define.
21168
21169 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
21170
21171         PR debug/48159
21172         * tree-ssa.c (reset_debug_uses): New function.
21173         * tree-flow.h (reset_debug_uses): New prototype.
21174         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
21175         * tree-loop-distribution.c (generate_loops_for_partition): Call
21176         reset_debug_uses on the stmts that will be removed.  Keep around
21177         all debug stmts, don't count them as bits in partition bitmap.
21178         (generate_builtin): Don't count debug stmts or labels as bits in
21179         partition bitmap.
21180
21181 2011-05-11  Richard Guenther  <rguenther@suse.de>
21182
21183         * gimple.c (gimple_type_hash_1): Merge with ...
21184         (gimple_type_hash): ... this.
21185         (gtc_visit): Remove mode parameter and simplify accordingly.
21186         (gimple_types_compatible_p_1): Likewise.
21187         (gimple_types_compatible_p): Likewise.
21188         (iterative_hash_gimple_type): Likewise.
21189         (visit): Likewise.
21190         (gimple_type_eq): Adjust.
21191
21192 2011-05-11  Revital Eres  <revital.eres@linaro.org>
21193
21194         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
21195         enters the branch create an anti edge in the opposite direction
21196         to prevent the creation of reg-moves.
21197         * modulo-sched.c: Adjust comment to reflect the fact we are
21198         scheduling closing branch.
21199         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
21200         (stage_count): New field in struct partial_schedule.
21201         (calculate_stage_count): New function.
21202         (normalize_sched_times): Rename to reset_sched_times and handle
21203         incrementing the sched time of the nodes by a constant value
21204         passed as parameter.
21205         (duplicate_insns_of_cycles): Skip closing branch.
21206         (sms_schedule_by_order): Schedule closing branch.
21207         (ps_insn_find_column): Handle closing branch.
21208         (sms_schedule): Call reset_sched_times and adjust the code to
21209         support scheduling of the closing branch.
21210         (ps_insert_empty_row): Update calls to normalize_sched_times
21211         and rotate_partial_schedule functions.
21212
21213 2011-05-11  Richard Guenther  <rguenther@suse.de>
21214
21215         PR middle-end/48953
21216         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
21217
21218 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
21219
21220         * opts.c (finish_options): Move warning settings from process_options.
21221         * toplev.c (process_options): Move warning settings to finish_options.
21222
21223 2011-05-11  Richard Guenther  <rguenther@suse.de>
21224
21225         PR tree-optimization/18041
21226         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
21227         (simplify_bitwise_binary): ... this.  Handle operand conversions
21228         by applying them to the result instead.
21229         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
21230
21231 2011-05-11  Richard Guenther  <rguenther@suse.de>
21232
21233         * gimple.c (gimple_canonical_types_compatible_p): Split out
21234         from gimple_types_compatible_p and friends.  Do not recurse
21235         to pointed-to types.
21236         (gimple_canonical_type_eq): Use it.
21237         (iterative_hash_canonical_type): Split out from
21238         iterative_hash_gimple_type and friends.  Do not recurse
21239         to pointed-to types.
21240         (gimple_canonical_type_hash): Use it, allocate the hash here.
21241
21242 2011-05-11  Revital Eres  <revital.eres@linaro.org>
21243
21244         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
21245         recognizing doloop.
21246
21247 2011-05-11  Revital Eres  <revital.eres@linaro.org>
21248
21249         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
21250         instead of PREV_INSN.
21251
21252 2011-05-11  Revital Eres  <revital.eres@linaro.org>
21253
21254         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
21255         * loop-doloop.c (doloop_condition_get): Likewise.
21256         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
21257         (doloop_end): New.
21258         * config/arm/arm.md (*addsi3_compare0): Remove "*".
21259
21260 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
21261
21262         * tree.def (CASE_LABEL_EXPR): Add an operand.
21263         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
21264
21265 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
21266
21267         * c-decl.c (c_override_global_bindings_to_false): Remove.
21268         (global_bindings_p): Don't check
21269         c_override_global_bindings_to_false.
21270         * c-tree.h (c_override_global_bindings_to_false): Remove.
21271         * c-typeck.c (composite_type): Don't set
21272         c_override_global_bindings_to_false.
21273
21274 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
21275
21276         PR target/48857, 48495
21277         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
21278         (VSX_MODE): Ditto.
21279         (VSX_MOVE_MODE): Ditto.
21280         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
21281         VSX vector types.  Add V2DImode.
21282         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
21283         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
21284         (MODES_TIEABLE_P): Ditto.
21285
21286         * config/rs6000/rs6000.c (rs6000_emit_move): Use
21287         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
21288         VSX_VECTOR_MODE.
21289         (init_cumulative_args): Ditto.
21290         (rs6000_function_arg_boundary): Ditto.
21291         (rs6000_function_arg_advance_1): Ditto.
21292         (rs6000_function_arg): Ditto.
21293         (rs6000_function_ok_for_sibcall): Ditto.
21294         (emit_frame_save): Ditto.
21295         (rs6000_function_value): Ditto.
21296         (rs6000_libcall_value): Ditto.
21297
21298 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
21299
21300         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
21301         i386/darwin-lib.h to $libgcc_tm_file.
21302         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
21303
21304 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
21305
21306         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
21307
21308 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
21309
21310         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
21311         * config/rs6000/rs6000-tables.opt: New file (generated).
21312         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
21313         rs6000/rs6000-tables.opt to extra_options.
21314         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
21315         * config/rs6000/rs6000.c (rs6000_select): Remove.
21316         (processor_target_table): Move contents to rs6000-cpus.def.
21317         (darwin_rs6000_override_options): Check
21318         global_options_set.x_rs6000_cpu_index instead of
21319         rs6000_select[1].string.
21320         (rs6000_option_override_internal): Likewise.
21321         (rs6000_handle_option): Don't assert that global structures are in
21322         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
21323         (rs6000_default_cpu): New variable.
21324         (rs6000_file_start): Set it instead of local default_cpu.  Check
21325         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
21326         global_options_set.x_rs6000_tune_index instead of rs6000_select.
21327         (rs6000_darwin_file_start): Check rs6000_default_cpu and
21328         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
21329         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
21330         rs6000_select): Remove.
21331         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
21332         Remove.
21333         (mcpu=, mtune=): Use Var, Init, Enum and Save.
21334         * config/rs6000/t-rs6000
21335         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
21336         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
21337         global_options_set.x_rs6000_cpu_index instead of
21338         rs6000_select[1].string.
21339         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
21340         global_options_set.x_rs6000_cpu_index instead of
21341         rs6000_select[1].string.
21342
21343 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
21344
21345         * config.gcc (libgcc_tm_file): Define instead of including files
21346         from ../../libgcc/config/ in tm_file.
21347         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
21348         * configure: Regenerate.
21349         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
21350         libgcc_tm.h, cs-libgcc_tm.h): New.
21351         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
21352         (clean): Remove libgcc_tm.h.
21353         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
21354         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
21355         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
21356
21357 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
21358
21359         PR target/48896
21360         * config/avr/avr.c (avr_ret_register): Return unsigned int
21361         instead of int.
21362         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
21363         it to avr_libcall_value.
21364         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
21365         expand_expr.
21366         (avr_expand_binop_builtin): Ditto.
21367         (avr_expand_unop_builtin): Ditto.
21368
21369 2011-05-10  DJ Delorie  <dj@redhat.com>
21370
21371         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
21372         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
21373         * config/rx/rx.c (rx_align_for_label): Add label and
21374         uses_threshold parameters.  Do not align when the label is not
21375         used enough.
21376         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
21377
21378 2011-05-10  Richard Guenther  <rguenther@suse.de>
21379
21380         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
21381         a series of conversions and apply foldings similar to what
21382         fold-const does.
21383         (tree_ssa_forward_propagate_single_use_vars): Call it.
21384
21385 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
21386
21387         PR tree-optimization/48611
21388         PR tree-optimization/48794
21389         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
21390         referenced from RESX or EH_DISPATCH arguments.
21391
21392         PR debug/48928
21393         * dfp.c (decimal_to_decnumber): Handle conversion from
21394         dconst{1,2,m1,half}.
21395
21396 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
21397
21398         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
21399         for !flag_prefer_avx128.
21400         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
21401
21402 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
21403
21404         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
21405         (fold_ternary_loc): Use expr_location_or.
21406
21407 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
21408
21409         PR debug/48853
21410         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
21411         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
21412         Pmode and mem_mode is not VOIDmode.
21413
21414 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
21415
21416         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
21417         TYPE_QUAL_RESTRICT): Convert to enum.
21418
21419 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
21420
21421         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
21422         (const_pow2_1_to_8_operand): Ditto.
21423         (const_pow2_1_to_128_operand): Ditto.
21424         (const_pow2_1_to_32768_operand): Ditto.
21425         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
21426         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
21427         in insn constraint to check integer value of operand 3.
21428         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
21429
21430         (PINSR_MODE): New mode iterator.
21431         (sse2p4_1): New mode attribute.
21432         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
21433         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
21434         iterator.  Use const_int_operand instead of
21435         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
21436         exact_log2 in insn constraint to check integer value of operand 3.
21437
21438 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
21439
21440         * config/i386/sse.md (blendbits): Remove mode attribute.
21441         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
21442         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
21443         Check integer value of operand 3 in insn constraint.
21444
21445 2011-05-09  Richard Guenther  <rguenther@suse.de>
21446
21447         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
21448         for diagnostics.
21449         (lto_symtab_merge): Likewise.  Do not register types here.
21450         (lto_symtab_merge_decls_2): Likewise.
21451         (lto_symtab_merge_decls_1): Likewise.
21452         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
21453         * gimple.c (enum gtc_mode): Declare.
21454         (gimple_types_compatible_p): Make static.
21455
21456 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21457
21458         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
21459         temporary register to match Pmode.
21460
21461 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
21462
21463         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
21464         and *vec_concatv4si_1_avx.
21465
21466 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
21467
21468         PR rtl-optimization/48927
21469         * ira-conflicts.c (commutative_constraint_p): Use
21470         recog_data.alternative_enabled_p to disable alternatives where
21471         "enabled" attribute is false.
21472         (get_dup_num): Ditto.
21473         * ira-lives.c (single_reg_class): Ditto.
21474         (ira_implicitly_set_insn_hard_regs): Ditto.
21475
21476 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
21477
21478         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
21479         (dataflow_set_preserve_mem_locs): Likewise.
21480
21481 2011-05-09  Philipp Thomas  <pth@suse.de>
21482
21483         * config/mep/mep.c (mep_validate_vliw): Syntax description
21484         should not be translated.
21485
21486 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
21487
21488         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
21489         * config/mips/mips-tables.opt: New file (generated).
21490         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
21491         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
21492         MIPS_ARCH_OPTION_NATIVE): Define.
21493         * config/mips/mips.c (mips_cpu_info_table): Move contents to
21494         mips-cpus.def.
21495         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
21496         mips_parse_cpu): Remove.
21497         (mips_cpu_info_from_opt, mips_default_arch): New.
21498         (mips_handle_option): Don't assert that global structures are in
21499         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
21500         (mips_option_override): Use new variables and functions to set
21501         state of these options.  Use strcmp to check for individual CPU names.
21502         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
21503         definition.
21504         * config/mips/mips.opt (march=): Use ToLower and Enum.
21505         (mips): Use ToLower, Enum and Var.
21506         (mtune=): Use ToLower and Enum.
21507         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
21508
21509 2011-05-08  Jan Hubicka  <jh@suse.cz>
21510
21511         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
21512         Arrange type pairs to be UID ordered.
21513         (gimple_lookup_type_leader): Make inline.
21514
21515 2011-05-09  Nick Clifton  <nickc@redhat.com>
21516
21517         PR target/48899
21518         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
21519         PROCESSOR_DEFAULT.
21520
21521         PR target/48897
21522         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
21523         variable 's'.
21524
21525 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
21526
21527         * combine.c (simplify_comparison): Abstract out parts into...
21528         (simplify_compare_const): ... new function.
21529         (try_combine): Generalize parallel arithmetic/compare combining
21530         to call simplify_compare_const() and CANONICALIZE_COMPARE().
21531
21532 2011-05-08  Jan Hubicka  <jh@suse.cz>
21533
21534         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
21535         (cgraph_create_virtual_clone): Call hooks once virtual clone
21536         is finished.
21537         * cgraph.h (cgraph_clone_node): Update prototype.
21538         * ipa-cp.c (ipcp_estimate_growth): Use
21539         estimate_ipcp_clone_size_and_time.
21540         * ipa-inline-transform.c (clone_inlined_nodes): Update.
21541         * lto-cgraph.c (input_node): Update.
21542         * ipa-inline.c (recursive_inlining): Update.
21543         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
21544         (evaluate_conditions_for_known_args): Break out from ...
21545         (evaluate_conditions_for_edge): ... here.
21546         (evaluate_conditions_for_ipcp_clone): New function.
21547         (inline_node_duplication_hook): Update clone summary based
21548         on parameter map.
21549         (estimate_callee_size_and_time): Rename to ...
21550         (estimate_node_size_and_time): take NODE instead of EDGE;
21551         take POSSIBLE_TRUTHS as argument.
21552         (estimate_callee_size_and_time): Update.
21553         (estimate_ipcp_clone_size_and_time): New function.
21554         (do_estimate_edge_time): Update.
21555
21556 2011-05-08  Richard Guenther  <rguenther@suse.de>
21557
21558         PR middle-end/48908
21559         PR middle-end/48905
21560         * expmed.c (expand_shift_1): Compute adjusted constant shift
21561         amount manually.
21562
21563 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
21564
21565         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
21566
21567 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
21568
21569         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
21570
21571 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
21572
21573         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
21574
21575 2011-05-07  Jan Hubicka  <jh@suse.cz>
21576
21577         * ipa-inline-transform.c (inline_call): Account when program size
21578         decreases.
21579         * ipa-inline.c (relative_time_benefit): New function.
21580         (edge_badness): Reorganize to be power 2 based; fix thinko when
21581         computing badness for negative growth; update comments to match
21582         reality; better dumps.
21583
21584 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
21585
21586         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
21587         type to bool and adjust comment.
21588         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
21589         (fold_mathfn_compare): Remove calls to global_bindings_p.
21590         (fold_inf_compare): Likewise.
21591         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
21592         * c-tree.h (global_bindings_p): Adjust prototype.
21593         * c-decl.c (global_bindings_p): Return bool and simplify.
21594
21595 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
21596
21597         PR tree-optimization/48837
21598         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
21599         when accumulator transformation is performed.
21600
21601 2011-05-06  Jan Hubicka  <jh@suse.cz>
21602
21603         * i386.h (ix86_tune_indices): Add
21604         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
21605         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
21606         * i386.c (initial_ix86_tune_features): Add
21607         X86_SOFTARE_PREFETCHING_BENEFICIAL.
21608         (software_prefetching_beneficial_p): Remove predicate.
21609         (ix86_option_override_internal): Use new macro.
21610
21611 2011-05-06  Jan Hubicka  <jh@suse.cz>
21612
21613         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
21614
21615 2011-05-06  Jan Hubicka  <jh@suse.cz>
21616
21617         * cgraph.c (cgraph_add_thunk): Create real function node instead
21618         of alias node; finalize it and mark needed/reachale; arrange visibility
21619         to be right and add it into the corresponding same comdat group list.
21620         (dump_cgraph_node): Dump thunks.
21621         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
21622         cgraph_function_with_gimple_body_p,
21623         cgraph_first_function_with_gimple_body,
21624         cgraph_next_function_with_gimple_body): New functions.
21625         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
21626         New macros.
21627         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
21628         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
21629         * cgraphunit.c (cgraph_finalize_function): Only look into possible
21630         devirtualization when optimizing.
21631         (verify_cgraph_node): Verify thunks.
21632         (cgraph_analyze_function): Analyze thunks.
21633         (cgraph_mark_functions_to_output): Output thunks only in combination
21634         with function they are assigned to.
21635         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
21636         alias into normal node.
21637         (assemble_thunks): New functoin.
21638         (cgraph_expand_function): Use it.
21639         * lto-cgraph.c (lto_output_node): Stream thunks.
21640         (input_overwrite_node): Stream in thunks.
21641         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
21642         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
21643         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
21644         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
21645         (inline_analyze_function): Do not care about thunk jump functions.
21646         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
21647         * ipa-prop.c (ipa_prop_write_jump_functions): Use
21648         cgraph_function_with_gimple_body_p.
21649         * passes.c (do_per_function_toporder): Use
21650         cgraph_function_with_gimple_body_p.
21651         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
21652         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
21653         (function_called_by_processed_nodes_p): Likewise.
21654
21655 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
21656
21657         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
21658         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
21659         entries.
21660         (mabi=): Replace with separate entries for mabi=altivec,
21661         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
21662         mabi=ieeelongdouble and mabi=ibmlongdouble.
21663         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
21664         check for -mabi=spe without SPE ABI support here.
21665         (rs6000_handle_option): Replace OPT_mabi_ handling with
21666         OPT_mabi_altivec and OPT_mabi_spe handling.
21667
21668 2011-05-06  Cary Coutant  <ccoutant@google.com>
21669
21670         * dwarf2out.c (contains_subprogram_definition): New function.
21671         (should_move_die_to_comdat): Call it.
21672
21673 2011-05-06  Jeff Law  <law@redhat.com>
21674
21675         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
21676         remove_ctrl_stmt_and_useless_edges.
21677         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
21678         (fixup_template_block, thread_single_edge): Likewise.
21679         (mark_threaded_blocks): Use THREAD_TARGET.
21680
21681 2011-05-06  Alan Modra  <amodra@gmail.com>
21682
21683         PR target/48900
21684         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
21685         const0_rtx as the arg to the dummy __tls_get_addr libcall.
21686
21687 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
21688
21689         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
21690         constraint modifier to "r".
21691
21692 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
21693
21694         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
21695         fall through for OPT_mcmodel_.
21696
21697 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21698
21699         * config/s390/s390.c (s390_asm_trampoline_template): Comment
21700         instruction sizes.
21701         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
21702
21703 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
21704
21705         PR target/47930
21706         * config/arm/arm.opt (marm): Document it.
21707         (mthumb): Reject negative variant.
21708
21709 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
21710
21711         PR target/48898
21712         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
21713         Fix typo in "ccvt" variable name.
21714
21715 2011-05-06  Tristan Gingold  <gingold@adacore.com>
21716
21717         PR target/48895
21718         * config/vms/vms-ar.c (main): Remove cwd variable.
21719
21720 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
21721
21722         PR debug/48902
21723         * var-tracking.c (prepare_call_arguments): Move else before #endif.
21724
21725 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
21726
21727         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
21728         * gimplify.c (gimplify_switch_expr): Likewise.
21729         * omp-low.c (expand_omp_sections): Likewise.
21730         * tree-eh.c (lower_try_finally_switch): Likewise.
21731         (lower_eh_dispatch): Likewise.
21732         * tree.h (build_case_label): Declare.
21733         * tree.c (build_case_label): Define.
21734
21735 2011-05-05  Jason Merrill  <jason@redhat.com>
21736
21737         PR c++/40975
21738         * tree-inline.c (copy_tree_r): Use copy_statement_list.
21739         (copy_statement_list): Don't recurse.
21740         * stor-layout.c (copy_self_referential_tree_r): Don't allow
21741         STATEMENT_LIST.
21742
21743 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
21744
21745         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
21746         through from -mfpu= handling.
21747         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
21748
21749 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
21750
21751         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
21752         POST_MODIFY.
21753
21754 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
21755
21756         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
21757         for 11.31.
21758         (hppa[12]*-*-hpux11*): Ditto.
21759         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
21760         * config/ia64/hpux-unix2003.h: New.
21761         * config/pa/pa-hpux1131.opt: New.
21762         * config/pa/pa-hpux1131.h: New.
21763         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
21764         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
21765         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
21766
21767 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
21768
21769         PR debug/48853
21770         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
21771         instead of mode as 3rd argument to recursive call.
21772         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
21773         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
21774         VOIDmode.
21775         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
21776         don't give up if mode is Pmode and mem_mode is not VOIDmode.
21777         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
21778         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
21779
21780 2011-05-05  Julian Brown  <julian@codesourcery.com>
21781
21782         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
21783         parenthesis in D-register case.
21784
21785 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
21786
21787         * opt-functions.awk (var_type_struct): Handle Enum options.
21788         * optc-gen.awk: Don't check range of variables of character type.
21789         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
21790         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
21791         rs6000_sdata_name, rs6000_explicit_options): Remove.
21792         (rs6000_option_override_internal): Check for -malign-power here.
21793         Use global_options_set instead of rs6000_explicit_options.
21794         (rs6000_parse_fpu_option): Remove.
21795         (rs6000_handle_option): Access variables via opts and opts_set
21796         pointers.  Use error_at and warning_at.  Add fall-through
21797         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
21798         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
21799         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
21800         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
21801         here.  Don't use rs6000_parse_fpu_option.
21802         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
21803         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
21804         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
21805         (mrecip=): Use Var.
21806         (mspe): Use Var and Save.
21807         (mtraceback=): Use Enum and Var.
21808         (rs6000_traceback_type): New Enum and EnumValue entries.
21809         (mfloat-gprs=): Use Enum, Var and Save.
21810         (rs6000_float_gprs): New Enum and EnumValue entries.
21811         (mlong-double-): use Var and Save.
21812         (msched-costly-dep=, minsert-sched-nops=): Use Var.
21813         (malign-): Use Enum and Var.
21814         (rs6000_alignment_flags): New Enum and EnumValue entries.
21815         (mfpu=): Use Enum.
21816         (fpu_type_t): New Enum and EnumValue entries.
21817         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
21818         global_options_set instead of rs6000_explicit_options.
21819         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
21820         global_options_set instead of rs6000_explicit_options.
21821         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
21822         global_options_set instead of rs6000_explicit_options.
21823         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
21824         global_options_set instead of rs6000_explicit_options.
21825         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
21826         global_options_set instead of rs6000_explicit_options.
21827         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
21828         global_options_set instead of rs6000_explicit_options.
21829         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
21830         definition.
21831         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
21832         global_options_set instead of rs6000_explicit_options.
21833         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
21834         (rs6000_cmodel): New Enum and EnumValue entries.
21835         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
21836         global_options_set instead of rs6000_explicit_options.
21837         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
21838         (mtls-size=): Use Enum and Var.
21839         (rs6000_tls_size): New Enum and EnumValue entries.
21840
21841 2011-05-05  Michael Matz  <matz@suse.de>
21842
21843         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
21844         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
21845         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
21846         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
21847         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
21848         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
21849         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
21850         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
21851         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
21852         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
21853         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
21854         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
21855         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
21856         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
21857         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
21858         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
21859
21860 2011-05-05  Richard Guenther  <rguenther@suse.de>
21861
21862         * expmed.c (expand_variable_shift): Rename to ...
21863         (expand_shift_1): ... this.  Take an expanded shift amount.
21864         For rotates recurse directly not building trees for the shift amount.
21865         (expand_variable_shift): Wrap around expand_shift_1.
21866         (expand_shift): Adjust.
21867
21868 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
21869
21870         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
21871
21872 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
21873
21874         * tree.h (get_pending_sizes): Remove prototype.
21875         (put_pending_size): Likewise.
21876         (put_pending_sizes): Likewise.
21877         * stor-layout.c (pending_sizes): Delete.
21878         (get_pending_sizes): Likewise.
21879         (put_pending_size): Likewise.
21880         (put_pending_sizes): Likewise.
21881         (variable_size): Do not call put_pending_size and tidy up.
21882         * function.h (struct function): Remove dont_save_pending_sizes_p.
21883         * lto-streamer-in.c (input_function): Do not stream it.
21884         * lto-streamer-out.c (output_function): Likewise.
21885         * tree-inline.c (initialize_cfun): Do not copy it.
21886         * c-decl.c (store_parm_decls): Do not set it.
21887         * omp-low.c (create_task_copyfn): Likewise.
21888         * tree-optimize.c (tree_rest_of_compilation): Likewise.
21889
21890 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
21891
21892         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
21893         conditions.
21894         (*movdf_internal): Ditto.
21895         (*movdf_internal_nointeger): Ditto.
21896         (*movsf_internal): Ditto.
21897
21898 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
21899
21900         * c-decl.c (finish_decl): Don't call get_pending_sizes.
21901         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
21902         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
21903         (c_variable_size): Remove.
21904         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
21905         call put_pending_sizes.
21906         (get_parm_info): Add parameter expr.  Use it to set
21907         arg_info->pending_sizes.
21908         (store_parm_decls): Use arg_info->pending_sizes instead or calling
21909         get_pending_sizes.
21910         * c-parser.c (c_parser_parms_declarator): Update call to
21911         c_parser_parms_list_declarator.
21912         (c_parser_parms_list_declarator): Take parameter expr.  Update
21913         call to push_parm_decl.  Update recursive call.  Don't call
21914         get_pending_sizes.  Update calls to get_parm_info.
21915         (c_parser_objc_method_definition): Update calls to
21916         c_parser_objc_method_decl and objc_start_method_definition.
21917         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
21918         (c_parser_objc_method_decl): Add parameter expr.  Update call to
21919         grokparm.
21920         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
21921         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
21922         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
21923
21924 2011-05-05  Michael Hope  <michael.hope@linaro.org>
21925
21926         PR pch/45979
21927         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
21928         __ARM_EABI__ hosts.
21929
21930 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21931
21932         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
21933         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
21934         (spu_output_mi_thunk): New function.
21935
21936 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21937
21938         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
21939         targetm.asm_out.print_operand.
21940         * config/sol2.c: Include target.h.
21941
21942 2011-05-04  Jan Hubicka  <jh@suse.cz>
21943
21944         * ipa-inline.c (reset_edge_caches): New function.
21945         (update_caller_keys): Add check_inlinablity_for; do not
21946         reset edge caches; remove now unnecesary loop.
21947         (update_callee_keys): Add comments; reset node_growth_cache of callee.
21948         (update_all_callee_keys): Likewise.
21949         (inline_small_functions): Sanity check cache; update code
21950         recomputing it.
21951
21952 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
21953
21954         PR rtl-optimization/47612
21955         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
21956         as the last insn of the sequence to be moved.
21957
21958 2011-05-04  Tobias Burnus  <burnus@net-b.de>
21959
21960         PR fortran/48864
21961         * doc/invoke.texi (Ofast): Document that it
21962         enables Fortran's -fno-protect-parens.
21963
21964 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
21965
21966         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
21967
21968 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
21969
21970         * stor-layout.c (variable_size): Do not issue errors.
21971
21972 2011-05-04  Richard Guenther  <rguenther@suse.de>
21973
21974         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
21975         for array-ref indices.
21976         (tree_coverage_counter_addr): Likewise.
21977         (build_fn_info_type): Use size_int for index types.
21978         (build_gcov_info): Likewise.
21979
21980 2011-05-04  Richard Guenther  <rguenther@suse.de>
21981
21982         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
21983         to build_int_cst.
21984         * c-typeck.c (really_start_incremental_init): Use bitsize_int
21985         for constructor indices.
21986         (push_init_level): Likewise.
21987
21988 2011-05-04  Richard Guenther  <rguenther@suse.de>
21989
21990         * explow.c (promote_mode): Move variable declarations before code.
21991
21992 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
21993
21994         * tree.h (build_function_type_array): Declare.
21995         (build_varargs_function_type_array): Declare.
21996         (build_function_type_vec, build_varargs_function_type_vec): Define.
21997         * tree.c (build_function_type_array_1): New function.
21998         (build_function_type_array): New function.
21999         (build_varargs_function_type_array): New function.
22000
22001 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
22002
22003         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
22004         before setting STMT_VINFO_TYPE.
22005
22006 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22007
22008         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
22009         instead of spu_pass_by_reference.
22010
22011 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22012
22013         * calls.c (emit_library_call_value_1): Invoke
22014         promote_function_mode hook on libcall arguments.
22015         * explow.c (promote_function_mode, promote_mode): Handle TYPE
22016         argument being NULL.
22017         * targhooks.c (default_promote_function_mode): Lisewise.
22018         * config/s390/s390.c (s390_promote_function_mode): Likewise.
22019         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
22020
22021         * doc/tm.texi: Document that TYPE argument might be NULL.
22022
22023 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
22024
22025         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
22026
22027 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
22028
22029         From Bernd Schmidt
22030         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
22031
22032 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22033
22034         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
22035         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
22036         Move ...
22037         * mips-tfile.c: ... here.
22038         Don't include coretypes.h, tm.h, filenames.h.
22039         (saber_stop): Remove definition and all calls.
22040         [__SABER__]: Remove.
22041         (__LINE__): Remove default.
22042         (Size_t, Ptrdiff_t): Remove definitions.
22043         Replace by size_t, ptrdiff_t.
22044         [!MIPS_DEBUGGING_INFO]: Remove.
22045         (SHASH_SIZE, THASH_SIZE): Remove defaults.
22046         (progname): Add const.
22047         (STATIC): Remove.
22048         Replace all uses by static.
22049         (ALIGN_SYMTABLE_OFFSET): Remove default.
22050         * mips-tdump.c: Don't include coretypes.h, tm.h.
22051         Remove !MIPS_IS_STAB guard.
22052         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
22053         $(TM_H), filenames.h dependencies.
22054         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
22055
22056 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
22057
22058         From Jie Zhang
22059         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
22060         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
22061
22062 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
22063
22064         From Bernd Schmidt
22065         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
22066         account and save/restore RETS.
22067         (PROFILE_BEFORE_PROLOGUE): Define.
22068         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
22069         the push insn to use predecrement.
22070
22071 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
22072
22073         From Jie Zhang
22074         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
22075
22076 2011-05-04  Nick Clifton  <nickc@redhat.com>
22077
22078         * config/mn10300/mn10300.c: Include cfgloop.h.
22079         (DUMP): New macro.
22080         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
22081         Lcc or a FLcc insn into the instruction stream.
22082         (mn10300_block_contains_call): New function.  Returns true if the
22083         given basic block contains a CALL insn.
22084         (mn10300_loop_contains_call_insn): New function.  Returns true if
22085         the given loop contains a CALL insn.
22086         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
22087         to use the SETLB and Lcc or FLcc insns.
22088         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
22089         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
22090         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
22091         disable the SETLB optimization.
22092         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
22093         __SETLB__ or __NO_SETLB__.
22094         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
22095         (movsf_internal): Handle MDR register.
22096         (cmpsi): Make visible.
22097         (setlb): New pattern.
22098         (Lcc): New pattern.
22099         (FLcc): New pattern.
22100
22101 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
22102
22103         PR target/48860
22104         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
22105         for reg<->xmm moves.
22106         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
22107         (vec_concatv2di_rex64_sse): Ditto.
22108         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
22109         (*vec_extractv2di_1_rex64): Ditto.
22110
22111         Revert:
22112         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
22113
22114         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
22115         reg<->xmm moves.
22116         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
22117
22118 2011-05-04  Richard Guenther  <rguenther@suse.de>
22119
22120         * tree.h (int_const_binop): Remove notrunc argument.
22121         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
22122         create integer constants that are properly truncated.
22123         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
22124         (const_binop): Remove zero notrunc argument to int_const_binop.
22125         (size_binop_loc): Likewise.
22126         (fold_div_compare): Likewise.
22127         (maybe_canonicalize_comparison_1): Likewise.
22128         (fold_comparison): Likewise.
22129         (fold_binary_loc): Likewise.
22130         (multiple_of_p): Likewise.
22131         * expr.c (store_constructor): Likewise.
22132         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
22133         (maybe_fold_stmt_addition): Likewise.
22134         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
22135         * stor-layout.c (layout_type): Likewise.
22136         * tree-data-ref.c (tree_fold_divides_p): Likewise.
22137         * tree-sra.c (build_ref_for_offset): Likewise.
22138         (build_user_friendly_ref_for_offset): Likewise.
22139         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
22140         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
22141         * tree-ssa-loop-niter.c (inverse): Likewise.
22142         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
22143         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
22144         * tree-switch-conversion.c (check_range): Likewise.
22145         (build_constructors): Likewise.
22146         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
22147         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
22148         (extract_range_from_assert): Likewise.
22149         (vrp_int_const_binop): Likewise.
22150         (extract_range_from_binary_expr): Likewise.
22151         (extract_range_from_unary_expr): Likewise.
22152         (check_array_ref): Likewise.
22153         (find_case_label_range): Likewise.
22154         (simplify_div_or_mod_using_ranges): Likewise.
22155         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
22156         comparing case labels for merging.
22157
22158 2011-05-03  Mark Wielaard  <mjw@redhat.com>
22159
22160         * dwarf2out.c (debug_str_hash_forced): Removed.
22161         (gen_label_for_indirect_string): Removed.
22162         (get_debug_string_label): Removed.
22163         (AT_string_form): Generate label directly.
22164         (output_indirect_string): Test indirect_string_node for
22165         DW_FORM_strp instead of checking label and refcount.
22166         (prune_indirect_string): Removed.
22167         (prune_unused_types): Don't check debug_str_hash_forced or
22168         call prune_indirect_string.
22169
22170 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
22171
22172         PR other/48093
22173         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
22174
22175 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
22176
22177         PR debug/47994
22178         PR debug/47919
22179         * combine.c (try_combine): Skip debug insns at m_split tests.
22180
22181 2011-04-26  Mark Wielaard  <mjw@redhat.com>
22182
22183         PR42288
22184         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
22185         when info_section_emitted.
22186
22187 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
22188
22189         * config/mips/mips-opts.h: New.
22190         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
22191         to mips-opts.h.
22192         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
22193         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
22194         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
22195         via opts pointer.
22196         * config/mips/mips.h (enum mips_code_readable_setting): Move to
22197         mips-opts.h.
22198         (mips_abi, mips_code_readable): Don't declare.
22199         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
22200         (mabi=): Use Enum and Var.
22201         (mips_abi): New Enum and EnumValue entries.
22202         (mcode-readable=): Use Enum and Var.
22203         (mips_code_readable_setting): New Enum and EnumValue entries.
22204         (mr10k-cache-barrier=): Use Enum and Var.
22205         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
22206
22207 2011-05-03  Jan Hubicka  <jh@suse.cz>
22208
22209         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
22210         replace hash by pointer map.
22211         (cgraph_node_set_element_def, cgraph_node_set_element,
22212         const_cgraph_node_set_element, varpool_node_set_element_def,
22213         varpool_node_set_element, const_varpool_node_set_element): Remove.
22214         (free_cgraph_node_set, free_varpool_node_set): New function.
22215         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
22216         * tree-emutls.c: Free varpool node set.
22217         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
22218         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
22219         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
22220         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
22221         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
22222         Move here from ipa.c; implement using pointer_map
22223         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
22224         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
22225         debug_cgraph_node_set, varpool_node_set_new,
22226         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
22227         dump_varpool_node_set, debug_varpool_node_set):
22228         Move to ipa-uitls.c.
22229         * passes.c (ipa_write_summaries): Update.
22230
22231 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22232
22233         From Mike Frysinger:
22234         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
22235         bf542/bf544/bf547/bf548/bf549.
22236
22237 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
22238
22239         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
22240
22241 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22242
22243         From Bernd Schmidt:
22244         * config/bfin/bfin.md (MOVCC): New mode_macro.
22245         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
22246         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
22247         comments from generated assembly.
22248
22249 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22250
22251         From Bernd Schmidt
22252         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
22253         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
22254         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
22255         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
22256         * config/bfin/lib1funcs.asm (___muldi3): New function.
22257
22258 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22259
22260         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
22261         build_function_type_list instead of build_function_type.
22262         Rearrange initialization of `args' to do so.
22263
22264 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22265
22266         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
22267         instead of build_function_type.
22268
22269 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22270
22271         * config/rs6000/rs6000.c (spe_init_builtins): Call
22272         build_function_type_list instead of build_function_type.
22273         (paired_init_builtins, altivec_init_builtins): Likewise.
22274         (builtin_function_type): Likewise.
22275
22276 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22277
22278         * config/sh/sh.c (sh_media_init_builtins): Call
22279         build_function_type_list instead of build_function_type.
22280
22281 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22282
22283         * config/sparc/sparc.c (sparc_file_end): Call
22284         build_function_type_list instead of build_function_type.
22285
22286 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22287
22288         * config/alpha/alpha.c (alpha_init_builtins): Call
22289         build_function_type_list instead of build_function_type.
22290
22291 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22292
22293         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
22294         build_function_type_list instead of build_function_type.
22295
22296 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22297
22298         * config/iq2000/i2000.c (iq2000_init_builtins): Call
22299         build_function_type_list instead of build_function_type.
22300         Delete `endlink' variable.
22301
22302 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22303
22304         * config/avr/avr.c (avr_init_builtins): Call
22305         build_function_type_list instead of build_function_type.
22306
22307 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22308
22309         * config/picochip/picochip.c (picochip_init_builtins): Call
22310         build_function_type_list instead of build_function_type.
22311         Delete `endlink' variable.
22312
22313 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22314
22315         * config/bfin/bfin.c (bfin_init_builtins): Call
22316         build_function_type_list instead of build_function_type.
22317
22318 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22319
22320         From Bernd Schmidt
22321         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
22322         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
22323
22324 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22325
22326         From Jie Zhang:
22327         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
22328         libbffastfp overrides libgcc when -mfast-fp.
22329
22330 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22331
22332         Originally from Bernd Schmidt
22333         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
22334         * config/bfin/bfin.c (override_options): Test it and error if
22335         TARGET_FDPIC.
22336
22337 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22338
22339         Originally From Bernd Schmidt
22340         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
22341         FD-PIC.
22342
22343 2011-05-03  Jeff Law  <law@redhat.com>
22344
22345         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
22346         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
22347         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
22348         than accessing AUX field directly.  Free the AUX field before
22349         clearing it.
22350         (thread_block, thread_through_loop_header): Likewise.
22351         (thread_single_edge, mark_threaded_blocks): Likewise.
22352         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
22353         (register_jump_thread): Do not attempt to thread to a NULL edge.
22354
22355 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
22356
22357         * function.c (init_function_start): Call decide_function_section.
22358         * varasm.c (decide_function_section): New function.
22359         (assemble_start_function): When not using
22360         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
22361         or first_function_block_is_cold.
22362         * rtl.h (decide_function_section): Declare.
22363
22364 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
22365             Jakub Jelinek  <jakub@redhat.com>
22366
22367         PR target/48774
22368         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
22369         only succeed if req_mode is the same as set_mode.
22370
22371 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
22372
22373         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
22374         * genemit.c (gen_exp): Handle RETURN.
22375         * emit-rtl.c (verify_rtx_sharing): Likewise.
22376         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
22377         * rtl.c (copy_rtx): RETURN is shared.
22378         * rtl.h (enum global_rtl_index): Add GR_RETURN.
22379         (ret_rtx): New.
22380         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
22381         * config/s390/s390.c (s390_emit_epilogue): Likewise.
22382         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
22383         * config/cris/cris.c (cris_expand_return): Likewise.
22384         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
22385         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
22386         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
22387         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
22388         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
22389         Likewise.
22390         * config/v850/v850.c (expand_epilogue): Likewise.
22391         * config/bfin/bfin.c (bfin_expand_call): Likewise.
22392         * config/arm/arm.md (epilogue): Likewise.
22393         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
22394         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
22395         variable to ret_reg.
22396
22397 2011-05-03  Richard Guenther  <rguenther@suse.de>
22398
22399         PR lto/48846
22400         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
22401         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
22402         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
22403
22404 2011-05-03  Richard Guenther  <rguenther@suse.de>
22405
22406         * c-decl.c (grokdeclarator): Instead of looking at
22407         TREE_OVERFLOW check if the constant fits in the index type.
22408
22409 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
22410
22411         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
22412         (vec_store_lanes<mode><mode>): Likewise.
22413
22414 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
22415
22416         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
22417         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
22418         convert_optab_index values.
22419         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
22420         * genopinit.c (optabs): Initialize the new optabs.
22421         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
22422         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
22423         (expand_STORE_LANES): New functions.
22424         * tree.h (build_array_type_nelts): Declare.
22425         * tree.c (build_array_type_nelts): New function.
22426         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
22427         (vect_model_load_cost): Likewise.
22428         (vect_store_lanes_supported, vect_load_lanes_supported)
22429         (vect_record_strided_load_vectors): Declare.
22430         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
22431         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
22432         (vect_transform_strided_load): Split out statement recording into...
22433         (vect_record_strided_load_vectors): ...this new function.
22434         * tree-vect-stmts.c (create_vector_array, read_vector_array)
22435         (write_vector_array, create_array_ref): New functions.
22436         (vect_model_store_cost): Add store_lanes_p argument.
22437         (vect_model_load_cost): Add load_lanes_p argument.
22438         (vectorizable_store): Try to use store-lanes functions for
22439         interleaved stores.
22440         (vectorizable_load): Likewise load-lanes and loads.
22441         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
22442         to vect_model_store_cost.
22443         (vect_build_slp_tree): Likewise vect_model_load_cost.
22444
22445 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
22446
22447         * hooks.h (hook_bool_mode_uhwi_false): Declare.
22448         * hooks.c (hook_bool_mode_uhwi_false): New function.
22449         * target.def (array_mode_supported_p): New hook.
22450         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
22451         * doc/tm.texi: Regenerate.
22452         * stor-layout.c (mode_for_array): New function.
22453         (layout_type): Use it.
22454         * config/arm/arm.c (arm_array_mode_supported_p): New function.
22455         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
22456
22457 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
22458
22459         PR target/48723
22460         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
22461         for -fstack-check if the size to allocate is negative.
22462
22463 2011-05-02  Lawrence Crowl  <crowl@google.com>
22464
22465         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
22466         (timevar_cond_start): New for starting a timer only when it is not
22467         already running.
22468         (timevar_cond_stop): New for stopping a timer when it was not already
22469         running.
22470
22471         * timevar.c (timevar_stop): Enable start/stop timers to start again.
22472         (timevar_cond_start): New as above.
22473         (timevar_cond_stop): New as above.
22474
22475         * timevar.def: Add start/stop timers for compiler phases,
22476         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
22477         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
22478         and TV_PHASE_FINALIZE.
22479         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
22480         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
22481         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
22482         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
22483         Make unused TV_OVERLOAD into a start/stop timer.
22484
22485         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
22486         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
22487         to indicate that they are start/stop timers.
22488
22489         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
22490         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
22491         Move initialization to do_compile.
22492         (do_compile): Add initialization from above.
22493         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
22494
22495         * c-decl.c (c_write_global_declarations): Add start/stop of
22496         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
22497
22498         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
22499         or TV_PARSE_INLINE, as appropriate.
22500         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
22501         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
22502
22503 2011-05-02  Jason Merrill  <jason@redhat.com>
22504
22505         PR c++/40975
22506         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
22507
22508 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
22509
22510         PR c/35445
22511         * c-decl.c (finish_decl): Only create a composite if the types are
22512         compatible.
22513
22514 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
22515
22516         * config/fr30/fr30-protos.h (Mmode): Don't define.
22517         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
22518         definition where used.
22519         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
22520         define.  Expand definitions where used.
22521         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
22522         Expand definitions where used.
22523         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
22524         rx_function_arg, rx_function_arg_advance,
22525         rx_function_arg_boundary): Expand definitions of those macros.
22526         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
22527         definition where used.
22528
22529 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
22530
22531         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
22532         reg<->xmm moves.
22533         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
22534         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
22535         with *movv2sf_internal_rex64_avx.
22536         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
22537         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
22538         Use %v prefix in insn mnemonic to handle TARGET_AVX.
22539         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
22540         "vex" in "prefix" attribute calculation.
22541         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
22542
22543 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
22544
22545         PR target/47951
22546         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
22547         inputs match the output.
22548
22549 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
22550
22551         PR target/47955
22552         * config/m68k/m68k.c (m68k_expand_prologue): Set
22553         current_function_static_stack_size.
22554
22555 2011-05-02   Jan Hubicka  <jh@suse.cz>
22556
22557         * lto-streamer.c (lto_streamer_cache_insert_1,
22558         lto_streamer_cache_lookup, lto_streamer_cache_create,
22559         lto_streamer_cache_delete): Use pointer map instead of hashtable.
22560         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
22561
22562 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
22563
22564         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
22565         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
22566         config/m68k/t-opts: New files.
22567         * config/m68k/m68k-tables.opt: New file (generated).
22568         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
22569         extra_options and m68k/t-opts to tmake_file.
22570         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
22571         (all_isas): Initialize using m68k-isas.def.
22572         (all_microarchs): Initialize using m68k-microarchs.def.
22573         (m68k_find_selection): Remove.
22574         (m68k_handle_option): Don't assert that global structures are in
22575         use.  Use error_at.  Access variables via opts pointer.  Don't
22576         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
22577         directly for -m68020-40 and -m68020-60.
22578         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
22579         m68k_tune_entry here.
22580         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
22581         to m68k-opts.h.
22582         (m68k_library_id_string): Remove declaration.
22583         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
22584         (m68k_library_id_string): New Variable.
22585         (march=, mcpu=, mtune=): Use Enum and Var.
22586
22587 2011-05-02  Richard Guenther  <rguenther@suse.de>
22588
22589         * varasm.c (output_constructor_regular_field): Compute zero-based
22590         index with double-ints.  Make sure to ICE instead of producing
22591         wrong code.
22592         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
22593         in asserts.  Properly use a signed type.
22594
22595 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
22596
22597         * config/i386/sse.md (V): New mode iterator.
22598         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
22599         TARGET_SSE2.
22600         (V_256): Rename from AVX256MODE.
22601         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
22602         condition to all users.
22603         (VF1): Ditto.
22604         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
22605         condition to all users.
22606         (VF_128): Make V4SF mode unconditional.
22607         (VF_256): Rename from AVX256MODEF2P.
22608         (VI4F_128): Rename from SSEMODE4S.
22609         (VI8F_128): Rename from SSEMODE2D.
22610         (VI4F_256): Rename from AVX256MODE8P.
22611         (VI8F_256): Rename from AVX256MODE4P.
22612         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
22613         (ssescalarmodesuffix): Remove SF and DF modes.
22614         (SSEMODE124): Remove.
22615         (SSEMODE1248): Ditto.
22616         (SSEMODEF2P): Ditto.
22617         (AVXMODEF2P): Ditto.
22618         (AVXMODEFDP): Ditto.
22619         (AVXMODEFSP): Ditto.
22620         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
22621         unconditional.
22622         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
22623         unconditional.
22624         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
22625         xop_pcmov_<mode>256.  Use V mode iterator.
22626
22627         Adjust RTX patterns globally for renamed mode attributes.
22628
22629 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22630
22631         * haifa-sched.c (sched_emit_insn): Emit insn before first
22632         non-scheduled insn.  Inform back-end about new insn.  Add
22633         new insn to scheduled_insns list.
22634
22635 2011-05-02  Richard Guenther  <rguenther@suse.de>
22636
22637         PR tree-optimization/48822
22638         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
22639         (process_scc): Indicate which iteration we start.
22640
22641 2011-05-02  Jan Hubicka  <jh@suse.cz>
22642
22643         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
22644         (lto_section_overrun): New.
22645         * lto-section-out.c (append_block): Rename to ...
22646         (lto_append_block): ... this one; export.
22647         (lto_output_1_stream): Move lto lto-streamer.h
22648         (lto_output_data_stream): Update.
22649         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
22650         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
22651         functions.
22652
22653 2011-05-02  Richard Guenther  <rguenther@suse.de>
22654
22655         * tree.c (tree_code_counts): New global array.
22656         (record_node_allocation_statistics): Count individual tree codes.
22657         (dump_tree_statistics): Dump individual code stats.
22658
22659 2011-05-01  Jan Hubicka  <jh@suse.cz>
22660
22661         * ipa-inline.c (caller_growth_limits): Fix thinko when
22662         looking for largest stack frame.
22663         * ipa-inline.h (dump_inline_summary): Declare.
22664         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
22665         on stack usage.
22666         (dump_inline_summary): Export.
22667         (debug_inline_summary): Declare as DEBUG_FUNCTION.
22668
22669 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
22670
22671         * reginfo.c (memory_move_cost): Change rclass argument type form
22672         'enum reg_class' to reg_class_t.
22673         * reload.h (memory_move_cost): Update prototype.
22674         * postreload.c reload_cse_simplify_set): Change type dclass var to
22675         reg_class_t.
22676         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
22677         Update prototype.
22678         (ira_allocate_and_set_costs): Change aclass argument type form
22679         'enum reg_class' to reg_class_t.
22680         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
22681         Change aclass argument type to reg_class_t.
22682         (update_conflict_hard_reg_costs): Change type aclass and pref vars
22683         to reg_class_t.
22684         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
22685         memory_move_cost call.
22686
22687         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
22688         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
22689         Change type tmp var to reg_class_t.
22690
22691 2011-04-30  Jan Hubicka  <jh@suse.cz>
22692
22693         * ipa-inline.c (can_inline_edge_p): Disregard limits when
22694         inlining into function with flatten attribute.
22695         (want_inline_small_function_p): Be more realistic about inlining
22696         cold calls where callee size grows.
22697
22698 2011-04-30  Jan Hubicka  <jh@suse.cz>
22699
22700         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
22701         flags.
22702
22703 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
22704
22705         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
22706         PRINT_OPERAND_PUNCT_VALID_P): Remove.
22707         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
22708         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
22709         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22710         (print_operand): Rename to...
22711         (sparc_print_operand): ...this. Make static. Adjust
22712         sparc_print_operand function call.
22713         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
22714         functions.
22715
22716 2011-04-30  Jan Hubicka  <jh@suse.cz>
22717
22718         PR middle-end/48752
22719         * ipa-inline.c (early_inliner): Disable when doing late
22720         addition of function.
22721
22722 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
22723
22724         * dwarf2out.c (get_address_mode): New inline.
22725         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
22726         if not dwarf_strict emit
22727         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
22728         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
22729         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
22730         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
22731         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
22732         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
22733         mem_loc_descriptor callers.
22734         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
22735         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
22736         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
22737         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
22738         (base_types): New variable.
22739         (get_base_type_offset, calc_base_type_die_sizes,
22740         base_type_for_mode, mark_base_types, base_type_cmp,
22741         move_marked_base_types): New functions.
22742         (calc_die_sizes): Assert that die_offset is 0 or equal to
22743         next_die_offset.
22744         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
22745         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
22746         callers.  If not dwarf_strict, call mem_loc_descriptor even for
22747         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
22748         (gen_subprogram_die): Don't give up on call site parameters
22749         with non-integral or large integral modes.  Adjust
22750         mem_loc_descriptor callers.
22751         (prune_unused_types): Call prune_unused_types_mark on base_types
22752         vector entries.
22753         (resolve_addr): Call mark_base_types.
22754         (dwarf2out_finish): Call move_marked_base_types.
22755
22756         PR tree-optimization/48809
22757         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
22758         type.
22759         (gen_inbound_check): Don't compute index_expr - range_min in utype
22760         again, instead reuse SSA_NAME initialized in build_arrays.
22761         Remove two useless gsi_for_stmt calls.
22762
22763 2011-04-29  Jeff Law  <law@redhat.com>
22764
22765         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
22766
22767 2011-04-29  Martin Jambor  <mjambor@suse.cz>
22768
22769         * cgraph.h (cgraph_postorder): Remove declaration.
22770         * ipa-utils.h (ipa_free_postorder_info): Declare.
22771         (ipa_reverse_postorder): Likewise.
22772         * cgraphunit.c: Include ipa-utils.h.
22773         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
22774         * ipa-inline.c: Include ipa-utils.h.
22775         (ipa_inline): Update call to ipa_reverse_postorder.
22776         * ipa-pure-const.c (propagate_pure_const): Update call to
22777         ipa_reduced_postorder and ipa_print_order.  Call
22778         ipa_free_postorder_info to clean up.
22779         (propagate_nothrow): Likewise.
22780         * ipa-reference.c (propagate): Removed a useless call to
22781         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
22782         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
22783         * ipa.c: Include ipa-utils.h.
22784         (ipa_profile): Update call to ipa_reverse_postorder.
22785         (cgraph_postorder): Moved to...
22786         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
22787         (ipa_utils_print_order): Renamed to ipa_print_order.
22788         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
22789         comments.
22790         (ipa_free_postorder_info): New function.
22791         * passes.c: Include ipa-utils.h.
22792         (do_per_function_toporder): Update call to ipa_reverse_postorder.
22793         (ipa_write_summaries): Likewise.
22794         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
22795         (cgraphunit.o): Likewise.
22796         (ipa.o): Likewise.
22797         (ipa-inline.o): Likewise.
22798
22799 2011-04-29  Jan Hubicka  <jh@suse.cz>
22800
22801         * ipa-inline.h (clause_t): Turn into unsigned int.
22802         * ipa-inline-analysis.c (add_clause): Do more simplification.
22803         (and_predicates): Shortcut more cases.
22804         (predicates_equal_p): Move forward; check that clauses are properly
22805         ordered.
22806         (or_predicates): Shortcut more cases.
22807         (edge_execution_predicate): Rewrite as...
22808         (set_cond_stmt_execution_predicate): ... this function; handle
22809         __builtin_constant_p.
22810         (set_switch_stmt_execution_predicate): New .
22811         (compute_bb_predicates): New.
22812         (will_be_nonconstant_predicate): Update TODO.
22813         (estimate_function_body_sizes): Use compute_bb_predicates
22814         and free them later, always try to estimate if stmt is constant.
22815         (estimate_time_after_inlining, estimate_size_after_inlining):
22816         Gracefully handle optimized out edges.
22817         (read_predicate): Fix off by one error.
22818
22819 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
22820
22821         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
22822
22823 2011-04-27  Xinliang David Li  <davidxl@google.com>
22824
22825         * tree-profile.c (init_ic_make_global_vars): Set
22826         tls attribute on ic vars.
22827         * coverage.c (coverage_end_function): Initialize
22828         function_list with zero.
22829
22830 2011-04-29  Richard Guenther  <rguenther@suse.de>
22831
22832         * builtins.c (fold_builtin_classify_type): Use integer_type_node
22833         for the type of the result.
22834         (fold_builtin_isascii): Likewise.
22835         (fold_builtin_toascii): Use integer_type_node where appropriate.
22836         (fold_builtin_logb): Likewise.
22837         (fold_builtin_frexp): Likewise.
22838         (fold_builtin_strstr): Likewise.
22839         (fold_builtin_strpbrk): Likewise.
22840         (fold_builtin_fputs): Likewise.
22841         (fold_builtin_sprintf): Likewise.
22842         (fold_builtin_snprintf): Likewise.
22843         (fold_builtin_printf): Likewise.
22844         (do_mpfr_remquo): Use a proper type for the assigned constant.
22845         (do_mpfr_lgamma_r): Likewise.
22846         * dwarf2out.c (resolve_one_addr): Use size_int.
22847         * except.c (init_eh): Likewise.
22848         (assign_filter_values): Use integer_type_node for filter values.
22849         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
22850         indices.
22851         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
22852         for EH region numbers.
22853         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
22854         for the shift amount.
22855
22856 2011-04-29  Richard Guenther  <rguenther@suse.de>
22857
22858         * expr.h (expand_shift): Rename to ...
22859         (expand_variable_shift): ... this.
22860         (expand_shift): Take a constant shift amount.
22861         * expmed.c (expand_shift): Rename to ...
22862         (expand_variable_shift): ... this.
22863         (expand_shift): New wrapper around expand_variable_shift.
22864         * expr.c (convert_move, emit_group_load_1, emit_group_store,
22865         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
22866         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
22867         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
22868         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
22869         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
22870         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
22871         emit_store_flag_1, emit_store_flag): Likewise.
22872         * builtins.c (expand_builtin_signbit): Likewise.
22873         * calls.c (load_register_parameters): Likewise.
22874         * function.c (assign_parm_setup_block): Likewise.
22875         * lower-subreg.c (resolve_shift_zext): Likewise.
22876         * optabs.c (widen_bswap, expand_abs_nojump,
22877         expand_one_cmpl_abs_nojump, expand_float): Likewise.
22878         * spu/spu.c (spu_expand_extv): Likewise.
22879         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
22880
22881 2011-04-29  Richard Guenther  <rguenther@suse.de>
22882
22883         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
22884         for the remapped region number.
22885         * predict.c (build_predict_expr): Use integer_type_node for the
22886         predict kind.
22887         * fold-const.c (fold_binary_loc): Use integer_type_node for
22888         the shift amount.  Use a proper type for the PLUS_EXPR operand.
22889
22890 2011-04-29  Michael Matz  <matz@suse.de>
22891
22892         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
22893         other trees that just builtins.
22894         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
22895
22896 2011-04-29  Richard Guenther  <rguenther@suse.de>
22897
22898         * tree-nested.c (get_trampoline_type): Use size_int.
22899         (get_nl_goto_field): Likewise.
22900         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
22901         for all indexes.
22902         (lower_eh_constructs_2): Likewise.
22903         (lower_resx): Likewise.
22904         (lower_eh_dispatch): Likewise.
22905         * tree-mudflap.c (mf_build_string): Use size_int.
22906         (mudflap_register_call): Use integer_type_node for the flag.
22907         (mudflap_enqueue_constant): Use size_int.
22908         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
22909         instead of rebuilding it.
22910
22911 2011-04-29  Richard Guenther  <rguenther@suse.de>
22912
22913         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
22914         Handle OBJ_TYPE_REF.
22915         (find_func_aliases_for_call): Use it more consistently.
22916
22917 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
22918
22919         * haifa-sched.c (last_nondebug_scheduled_insn): New.
22920         (rank_for_schedule): Use it.
22921         (schedule_block): Set it.
22922
22923 2011-04-28  David Li  <davidxl@google.com>
22924
22925         * tree.c (crc32_string): Use crc32_byte.
22926         (crc32_byte): New function.
22927         * tree.h (crc32_byte): New function.
22928         * gcov.c (read_graph_file): Handle new cfg_cksum.
22929         (read_count_file): Ditto.
22930         * profile.c (instrument_values): Ditto.
22931         (get_exec_counts): Ditto.
22932         (read_profile_edge_counts): Ditto.
22933         (compute_branch_probabilities): Ditto.
22934         (compute_value_histograms): Ditto.
22935         (branch_prob): Ditto.
22936         (end_branch_prob): Ditto.
22937         * coverage.c (read_counts_file): Ditto.
22938         (get_coverage_counts): Ditto.
22939         (tree_coverage_counter_addr): Ditto.
22940         (coverage_checksum_string): Ditto.
22941         (coverage_begin_output): Ditto.
22942         (coverage_end_function): Ditto.
22943         (build_fn_info_type): Ditto.
22944         (build_fn_info_value): Ditto.
22945         * libgcov.c (gcov_exit): Ditto.
22946         * gcov-dump.c (tag_function): Ditto.
22947         (compute_checksum): Remove.
22948
22949 2011-04-29  Alan Modra  <amodra@gmail.com>
22950
22951         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
22952         unspec plus offset.  Tidy macho code.
22953
22954 2011-04-29  Martin Jambor  <mjambor@suse.cz>
22955
22956         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
22957         node instead of a decl.  Update all callers.
22958         * cgraph.h: Update declaration.
22959
22960 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
22961
22962         PR tree-optimization/48765
22963         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
22964         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
22965         to indicate if loop aware SLP is being used.  Scan the statements
22966         and update the vectorization factor according to the type of
22967         vectorization before statement analysis.
22968         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
22969         pass it to vect_analyze_loop_operations.
22970         (vectorizable_reduction): Set number of copies to 1 in case of pure
22971         SLP statement.
22972         * tree-vect-stmts.c (vectorizable_conversion,
22973         vectorizable_assignment, vectorizable_shift,
22974         vectorizable_operation, vectorizable_type_demotion,
22975         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
22976         Likewise.
22977         (vectorizable_condition): Move the check that it is not SLP
22978         vectorization before the number of copies check.
22979         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
22980         to vectorize the loop using SLP.
22981
22982 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
22983
22984         PR middle-end/48597
22985         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
22986         inline asm.
22987
22988 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
22989
22990         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
22991         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
22992         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
22993         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
22994         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
22995         linux*.h headers.
22996         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
22997         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
22998         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
22999         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
23000         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
23001         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
23002         REG_NAME.
23003         * config/i386/linux.h (REG_NAME): Don't define.
23004         * config/i386/linux64.h (REG_NAME): Don't define.
23005         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
23006         Undefine before defining.
23007
23008 2011-04-28  Jan Hubicka  <jh@suse.cz>
23009
23010         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
23011         nonconstant_names array.
23012         (estimate_function_body_sizes): Build nonconstant_names array; handle
23013         BUILT_IN_CONSTANT_P.
23014
23015 2011-04-28  Richard Guenther  <rguenther@suse.de>
23016
23017         PR bootstrap/48804
23018         Revert
23019         2011-04-28  Richard Guenther  <rguenther@suse.de>
23020
23021         * tree-ssa-structalias.c (solve_constraints): Build succ graph
23022         as late as possible.
23023
23024 2011-04-28  Richard Guenther  <rguenther@suse.de>
23025
23026         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
23027         (debug_constraint): Do it here.
23028         (dump_constraints): And here.
23029         (rewrite_constraints): And here.
23030         (dump_constraint_edge): Remove.
23031         (dump_constraint_graph): Rewrite to produce DOT output.
23032         (solve_constraints): Build succ graph as late as possible.
23033         Dump constraint graphs before and after solving.
23034
23035 2011-04-28  Richard Guenther  <rguenther@suse.de>
23036
23037         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23038         New function split out from ...
23039         (find_func_aliases): ... here.  Call it.
23040         (find_func_aliases_for_call): Likewise.
23041
23042 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23043
23044         * internal-fn.h (internal_fn_name_array): Declare.
23045         (internal_fn_flags_array): Likewise.
23046
23047 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
23048
23049         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
23050         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
23051         Move from sse.md.
23052         (ssemodefsuffix): Remove.
23053         (ssevecmodesuffix): New mode attribute.
23054         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
23055         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
23056         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
23057         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
23058         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
23059         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
23060         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
23061         ssemodesuffix mode attribute.
23062         (float splitters): Use ssevecmodesuffix mode attribute.
23063         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
23064         (sseinsmode): Rename from avxvecmode.
23065         (avxsizesuffix): Rename from avxmodesuffix.
23066         (sseintvecmode): Rename from avxpermvecmode.
23067         (ssedoublevecmode): Rename from ssedoublesizemode.
23068         (ssehalfvecmode): Rename from avxhalfvecmode.
23069         (ssescalarmode): Rename from avxscalarmode.
23070         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
23071         templates for ssemodesuffix mode attribute.
23072         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
23073         mode attribute.
23074
23075         Adjust RTX patterns globally for renamed mode attributes.
23076
23077 2011-04-27  Jan Hubcika  <jh@suse.cz>
23078
23079         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
23080         * ipa-inline-analysis.c: Include alloc-pool.h.
23081         (edge_predicate_pool): New.
23082         (trye_predicate_p): New function
23083         (false_predicate_p): New function.
23084         (add_clause): Sanity check that false clauses are "optimized";
23085         never add clauses to predicate that is already known to be false.
23086         (and_predicate): Use flase_predicate_p.
23087         (evaulate_predicate): Rename to ...
23088         (evaluate_predicate): ... this one; update all callers; assert
23089         that false is not listed among possible truths.
23090         (dump_predicate): Use true_predicate_p.
23091         (account_size_time): Use false_predicate_p.
23092         (evaulate_conditions_for_edge): Rename to ...
23093         (evaluate_conditions_for_edge) ... this one.
23094         (edge_set_predicate): New function.
23095         (inline_edge_duplication_hook): Duplicate edge predicates.
23096         (inline_edge_removal_hook): Free edge predicates.
23097         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
23098         (dump_inline_summary): Update.
23099         (estimate_function_body_sizes): Set edge predicates.
23100         (estimate_calls_size_and_time): Handle predicates.
23101         (estimate_callee_size_and_time): Update.
23102         (remap_predicate): Add toplev_predicate; update comment.
23103         (remap_edge_predicates): New function.
23104         (inline_merge_summary): Compute toplev predicate; update.
23105         (read_predicate): New function.
23106         (read_inline_edge_summary): Use it.
23107         (inline_read_section): Likewise.
23108         (write_predicate): New function.
23109         (write_inline_edge_summary): Use it.
23110         (inline_write_summary): Likewise.
23111         (inline_free_summary): Free alloc pool and edge summary vec.
23112
23113 2011-04-27  Richard Guenther  <rguenther@suse.de>
23114
23115         * tree-ssa-structalias.c (changed_count): Remove.
23116         (changed): Use a bitmap.
23117         (unify_nodes): Adjust.
23118         (do_sd_constraint): Likewise.
23119         (do_ds_constraint): Likewise.
23120         (do_complex_constraint): Likewise.
23121         (solve_graph): Likewise.
23122
23123 2011-04-27  Jan Hubicka  <jh@suse.cz>
23124
23125         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
23126
23127 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
23128
23129         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
23130         (avx_vperm2f128_*_operand): Ditto.
23131         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
23132         Use avx_vpermilp_parallel in insn condition.
23133         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
23134         Use avx_vperm2f128_parallel in insn condition.
23135
23136 2011-04-27  Richard Guenther  <rguenther@suse.de>
23137
23138         * Makefile.in (tree-ssa-structalias.o): Remove
23139         gt-tree-ssa-structalias.h dependency.
23140         (GTFILES): Remove tree-ssa-structalias.c.
23141         * tree.c (allocate_decl_uid): New function.
23142         (make_node_stat): Use it.
23143         (copy_node_stat): Likewise.
23144         * tree.h (allocate_decl_uid): Declare.
23145         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
23146         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
23147         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
23148         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
23149         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
23150         (struct heapvar_map): Likewise.
23151         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
23152         heapvar_insert): Likewise.
23153         (make_heapvar_for): Rename to ...
23154         (make_heapvar): ... this.  Simplify.
23155         (fake_var_decl_obstack): New global var.
23156         (build_fake_var_decl): New function.
23157         (make_constraint_from_heapvar): Adjust.
23158         (handle_lhs_call): Likewise.
23159         (create_function_info_for): Likewise.
23160         (intra_create_variable_infos): Likewise.
23161         (init_alias_vars): Allocate fake_var_decl_obstack.
23162         (init_alias_heapvars, delete_alias_heapvars): Remove.
23163         (compute_points_to_sets): Do not call init_alias_heapvars.
23164         (ipa_pta_execute): Likewise.
23165         (delete_points_to_sets): Free fake_var_decl_obstack.
23166
23167 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23168
23169         * config/spu/divmovti4.c (union qword_UTItype): New data type.
23170         (si_from_UTItype, si_to_UTItype): New functions.
23171         (__udivmodti4): Use them to implement type-punning.
23172         * config/spu/multi3.c (union qword_TItype): New data type.
23173         (si_from_TItype, si_to_TItype): New functions.
23174         (__multi3): Use them to implement type-punning.
23175
23176 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23177
23178         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
23179
23180 2011-04-27  Jan Hubicka  <jh@suse.cz>
23181
23182         * ipa-prop.c (function_insertion_hook_holder): New holder.
23183         (ipa_add_new_function): New function.
23184         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
23185         Register/deregister holder.
23186
23187 2011-04-27  Richard Guenther  <rguenther@suse.de>
23188
23189         PR tree-optimization/48772
23190         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
23191
23192 2011-04-27  Richard Guenther  <rguenther@suse.de>
23193
23194         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
23195         TARGET_MEM_REF handling.
23196
23197 2011-04-27  Nick Clifton  <nickc@redhat.com>
23198
23199         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
23200         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
23201         (REG_CLASS_NAMES): Likewise.
23202         (REG_CLASS_CONTENTS): Likewise.
23203         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
23204         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
23205         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
23206         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
23207         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
23208         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
23209         duplicate register classes.
23210         (frv_class_likely_spilled_p): Likewise.
23211         (frv_register_move_cost): Likewise.
23212
23213         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
23214         end of the regno_reg_class array.
23215
23216 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
23217
23218         PR c/48742
23219         * c-typeck.c (build_binary_op): Don't wrap arguments if
23220         int_operands is true.
23221
23222 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
23223
23224         PR target/48767
23225         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
23226         targetm.calls.must_pass_in_stack for void type.
23227
23228 2011-04-26  Jan Hubicka  <jh@suse.cz>
23229
23230         * cgraphbuild.c (build_cgraph_edges): Update call
23231         of cgraph_create_edge and cgraph_create_indirect_edge.
23232         * cgraph.c (cgraph_create_edge_including_clones,
23233         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
23234         cgraph_update_edges_for_call_stmt_node): Do not take nest
23235         argument; do not initialize call_stmt_size/time.
23236         (dump_cgraph_node): Do not dump nest.
23237         (cgraph_clone_edge): Do not take loop_nest argument;
23238         do not propagate it; do not clone call_stmt_size/time.
23239         (cgraph_clone_node): Likewise.
23240         (cgraph_create_virtual_clone): Update.
23241         * cgraph.h (struct cgraph_edge): Remove
23242         call_stmt_size/call_stmt_time/loop_nest.
23243         (cgraph_create_edge, cgraph_create_indirect_edge,
23244         cgraph_create_edge_including_clones, cgraph_clone_node): Update
23245         prototype.
23246         * tree-emutls.c (gen_emutls_addr): Update.
23247         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
23248         loop_nest; handle indirect calls, too.
23249         (clone_inlined_nodes): Do not care about updating inline summaries.
23250         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
23251         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
23252         stream call_stmt_size/call_stmt_time/loop_nest.
23253         * ipa-inline.c (edge_badness): Update.
23254         (ipa_inline): dump summaries after inlining.
23255         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
23256         New.
23257         (inline_edge_summary): New function.
23258         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
23259         (inline_edge_removal_hook): Handle edge summaries.
23260         (inline_edge_duplication_hook): New hook.
23261         (inline_summary_alloc): Alloc hooks.
23262         (initialize_growth_caches): Do not register removal hooks.
23263         (free_growth_caches); Do not free removal hook.
23264         (dump_inline_edge_summary): New function.
23265         (dump_inline_summary): Use it.
23266         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
23267         (inline_update_callee_summaries): New function.
23268         (inline_merge_summary): Use it.
23269         (do_estimate_edge_time, do_estimate_edge_growth): Update.
23270         (read_inline_edge_summary): New function.
23271         (inline_read_section): Use it.
23272         (write_inline_edge_summary): New function.
23273         (inline_write_summary): Use it.
23274         (inline_free_summary): Free edge new holders.
23275         * tree-inline.c (copy_bb): Update.
23276
23277 2011-04-26  Jason Merrill  <jason@redhat.com>
23278
23279         * tree-eh.c (lower_try_finally_switch): Create the label along with
23280         the CASE_LABEL_EXPR.
23281
23282 2011-04-26  David S. Miller  <davem@davemloft.net>
23283             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23284
23285         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
23286         * configure: Regenerate.
23287
23288 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
23289
23290         PR target/48258
23291         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
23292         reduction.
23293         (VEC_reduc): New code iterator and splitters for vector reduction.
23294         (VEC_reduc_name): Ditto.
23295         (VEC_reduc_rtx): Ditto.
23296         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
23297         (reduc_<VEC_reduc_name>_v4sf): Ditto.
23298
23299         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
23300         support for extracting SF on VSX.
23301
23302         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
23303         generating xscvspdp.
23304         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
23305         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
23306         double add, minimum, maximum vector reduction.
23307         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
23308         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
23309         optimize double vector reduction.
23310         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
23311
23312 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
23313
23314         * config/fr30/fr30.h (inhibit_libc): Don't define.
23315         * config/m32r/m32r-protos.h: Correct comment.
23316         * config/v850/v850.h (GHS_default_section_names,
23317         GHS_current_section_names): Use tree, not union tree_node *.
23318
23319 2011-04-26  Xinliang David Li  <davidxl@google.com>
23320
23321         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
23322         * c-family/c-opts.c (c_common_handle_option): Set
23323         warn_maybe_uninitialized.
23324         * opts.c (common_handle_option): Ditto.
23325         * common.opt:  New option.
23326         * tree-ssa.c (warn_uninit): Add one more parameter.
23327         (warn_uninitialized_var): Pass warning code.
23328         * tree-flow.h: Interface change.
23329
23330 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23331
23332         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
23333         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
23334         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
23335
23336 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23337
23338         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
23339         * config/mips/mips.opt (mmips-tfile): Remove.
23340
23341         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
23342         mips-tdump reference to ...
23343         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
23344         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
23345         reference by Tru64 UNIX.
23346
23347 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
23348
23349         PR debug/48768
23350         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
23351         is error_mark_node, set value to NULL.
23352
23353         PR tree-optimization/48734
23354         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
23355         if return value from maybe_fold_*_comparsions isn't something
23356         the code is prepared to handle.
23357
23358 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
23359
23360         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
23361         mode check.
23362         (ext_QIreg_nomode_operands): Remove.
23363         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
23364         (*andsi_1): Ditto.
23365         (*andhi_1): Ditto.
23366
23367 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
23368
23369         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
23370
23371 2011-04-26  Richard Guenther  <rguenther@suse.de>
23372
23373         * c-typeck.c (build_unary_op): Do not expand array-refs via
23374         pointer arithmetic.  Only adjust qualifiers for function types.
23375
23376 2011-04-26  Richard Guenther  <rguenther@suse.de>
23377
23378         PR middle-end/48694
23379         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
23380         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
23381         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
23382         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
23383
23384 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
23385
23386         * doc/extend.texi: Document __underlying_type.
23387
23388 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
23389
23390         * config/rs6000/titan.md (automata_option "progress"): Remove.
23391
23392 2011-04-25  Jeff Law  <law@redhat.com>
23393
23394         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
23395
23396 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
23397
23398         * system.h (ENUM_BITFIELD): Remove.
23399
23400 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
23401             Eric Botcazou  <ebotcazou@adacore.com>
23402
23403         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
23404         for STORE_FLAG_VALUE==-1 case.
23405
23406 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
23407
23408         PR target/43804
23409         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
23410         LEGITIMATE_PIC_OPERAND_P.
23411
23412 2011-04-24  Jan Hubicka  <jh@suse.cz>
23413
23414         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
23415         WPA hack.
23416         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
23417         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
23418         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
23419         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
23420         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
23421         Sanity check predicate length.
23422         (remap_predicate): Likewise; sanity check jump functions.
23423         (inline_read_section, inline_write_summary): Sanity check
23424         predicate length.
23425
23426 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
23427
23428         PR other/48748
23429         * doc/extend.texi (Type Traits): Document __is_standard_layout,
23430         __is_literal_type, and __is_trivial; update throughout about
23431         possibly cv-qualified void types.
23432
23433 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
23434
23435         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
23436         testsuite and make it version agnostic.
23437
23438 2011-04-22  Jan Hubicka  <jh@suse.cz>
23439
23440         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
23441
23442 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
23443
23444         PR c/48685
23445         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
23446         to VOID_TYPE even around MODIFY_EXPR.
23447
23448 2011-04-22  Mike Stump  <mikestump@comcast.net>
23449
23450         * gensupport.c (read_md_rtx): Fix typo in comment.
23451         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
23452         comment.
23453
23454 2011-04-22  Jan Hubicka  <jh@suse.cz>
23455
23456         * gengtype.c (open_base_files): Add ipa-inline.h include.
23457         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
23458         ipa-prop.c; update all uses.
23459         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
23460         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
23461         merge summary of inlined function into former caller.
23462         * ipa-inline.c (max_benefit): Remove.
23463         (edge_badness): Compensate for removal of benefits.
23464         (update_caller_keys): Use
23465         reset_node_growth_cache/reset_edge_growth_cache.
23466         (update_callee_keys): Likewise.
23467         (update_all_callee_keys): Likewise.
23468         (inline_small_functions): Do not collect max_benefit; do not reset
23469         estimated_growth; call free_growth_caches and initialize_growth_caches.
23470         * ipa-inline.h (struct condition, type clause_t, struct predicate,
23471         struct size_time_entry): New structures.
23472         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
23473         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
23474         and estimated_growth.
23475         (edge_growth_cache_entry): New structure.
23476         (node_growth_cache, edge_growth_cache): New global vars.
23477         (estimate_growth): Turn into inline.
23478         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
23479         initialize_growth_caches, free_growth_caches): Declare.
23480         (estimate_edge_growth): Rewrite.
23481         (estimate_edge_time): Implement as inline cache lookup.
23482         (reset_node_growth_cache, reset_edge_growth_cache): New inline
23483         functions.
23484         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
23485         (NUM_CONDITIONS): New constant.
23486         (predicate_conditions): New enum.
23487         (IS_NOT_CONSTANT): New constant.
23488         (edge_removal_hook_holder): New var.
23489         (node_growth_cache, edge_growth_cache): New global vars.
23490         (true_predicate, single_cond_predicate, false_predicate,
23491         not_inlined_predicate, add_condition, add_clause, and_predicates,
23492         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
23493         dump_clause, dump_predicate, account_size_time,
23494         evaulate_conditions_for_edge): New functions.
23495         (inline_summary_alloc): Move to heap.
23496         (inline_node_removal_hook): Clear condition and entry vectors.
23497         (inline_edge_removal_hook): New function.
23498         (initialize_growth_caches, free_growth_caches): New function.
23499         (dump_inline_summary): Update.
23500         (edge_execution_predicate): New function.
23501         (will_be_nonconstant_predicate): New function.
23502         (estimate_function_body_sizes): Compute BB and constantness predicates.
23503         (compute_inline_parameters): Do not clear estimated_growth.
23504         (estimate_edge_size_and_time): New function.
23505         (estimate_calls_size_and_time): New function.
23506         (estimate_callee_size_and_time): New function.
23507         (remap_predicate): New function.
23508         (inline_merge_summary): New function.
23509         (do_estimate_edge_time): New function based on...
23510         (estimate_edge_time): ... this one.
23511         (do_estimate_edge_growth): New function.
23512         (do_estimate_growth): New function based on....
23513         (estimate_growth): ... this one.
23514         (inline_analyze_function): Analyze after deciding on jump functions.
23515         (inline_read_section): New function.
23516         (inline_read_summary): Use it.
23517         (inline_write_summary): Write all the new data.
23518         * ipa-prop.c (ipa_get_param_decl_index): Export.
23519         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
23520         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
23521         Declare.
23522         (ipa_get_lattice): Move here from ipa-cp.c
23523         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
23524         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
23525         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
23526         cgraph_edge_inlinable_p): Remove.
23527         * cgraphunit.c: Include ipainline.h
23528         (cgraph_process_new_functions): Update call of
23529         compute_inline_parameters.
23530
23531 2011-04-22  Richard Guenther  <rguenther@suse.de>
23532
23533         * tree.c (build_int_cst): Properly create canonicalized integer
23534         constants.
23535         (build_int_cst_type): Remove scary comments.
23536
23537 2011-04-22  Xinliang David Li  <davidxl@google.com>
23538
23539         * toplev.c (process_options): Enable -Werror=coverage-mismatch
23540         by default when -Wno-error is not specified.
23541         * opts-global.c (decode_options): Remove call to
23542         control_warning_options.
23543
23544 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
23545
23546         PR tree-optimization/48717
23547         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
23548         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
23549
23550 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
23551
23552         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
23553         definition where used.
23554
23555 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
23556
23557         PR c/48716
23558         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
23559         TREE_STATIC variables declared inside of some OpenMP construct.
23560
23561 2011-04-22  Martin Jambor  <mjambor@suse.cz>
23562
23563         PR middle-end/48585
23564         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
23565
23566 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
23567
23568         PR c/36750
23569         * c-typeck.c (pop_init_level): Do not warn about initializing
23570         with ` = {0}'.
23571
23572 2011-04-22  Alan Modra  <amodra@gmail.com>
23573
23574         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
23575         when returning call_cookie.
23576         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
23577         pointers, to functions with no more vector args than the current
23578         function, and some non-local calls for ABI_V4.
23579         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
23580         sibcall_nonlocal_aix64): Combine to ..
23581         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
23582         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
23583         (sibcall_value_nonlocal_aix<mode>): ..likewise.
23584         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
23585         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
23586         operand.
23587         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
23588         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
23589         sibcall_value_symbolic_64): Delete.
23590
23591 2011-04-21  Xinliang David Li  <davidxl@google.com>
23592
23593         * cgraph.h: Remove pid.
23594         * cgraph.c: Remove pid.
23595         * value-prof.c (init_node_map): New function.
23596         (del_node_map): New function.
23597         (find_func_by_funcdef_no): New function.
23598         (gimple_ic_transform): Call new function.
23599         * cgraphunit.c (cgraph_finalize_function): Remove pid.
23600         * function.c (get_last_funcdef_no): New function.
23601         * function.h (get_last_funcdef_no): New function.
23602         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
23603         to libgcov function.
23604         (tree-profiling): Call node map init and delete function.
23605
23606 2011-04-21  Ian Lance Taylor  <iant@google.com>
23607
23608         * godump.c (go_format_type): Use exported Go name for anonymous
23609         field name.
23610
23611 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
23612
23613         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
23614         Call builtin_function_type_list instead of builtin_function_type.
23615         (UNARY, BINARY, TRINARY, QUAD): Likewise.
23616
23617 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
23618
23619         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
23620         build_function_type_list instead of build_function_type.
23621         Delete variable `endlink'.
23622
23623 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
23624
23625         * config/s390/s390.c (s390_init_builtins): Call
23626         build_function_type_list instead of build_function_type.
23627
23628 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
23629
23630         * config/ia64/ia64.c (ia64_init_builtins): Call
23631         build_function_type_list instead of builtin_function_type.
23632
23633 2011-04-21  Easwaran Raman  <eraman@google.com>
23634
23635         * cfgexpand.c (stack_var): Remove OFFSET...
23636         (add_stack_var): ...and its reference here...
23637         (expand_stack_vars): ...and here.
23638         (stack_var_cmp): Sort by descending order of size.
23639         (partition_stack_vars): Change heuristic.
23640         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
23641         (dump_stack_var_partition): Add newline after each partition.
23642
23643 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
23644             Jeff Law  <law@redhat.com>
23645
23646         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23647         * gengtype.c (matching_file_name_substitute): Likewise.
23648
23649 2011-04-21  Richard Guenther  <rguenther@suse.de>
23650
23651         PR lto/48703
23652         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
23653
23654 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
23655
23656         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
23657
23658 2011-04-21  Richard Guenther  <rguenther@suse.de>
23659
23660         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
23661         file name.
23662
23663 2011-04-21  Richard Guenther  <rguenther@suse.de>
23664
23665         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
23666         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
23667         Use DECL_P, not SSA_VAR_P.
23668         (ptr_derefs_may_alias_p): Likewise.
23669         (ptr_deref_may_alias_ref_p_1): Likewise.
23670         (decl_refs_may_alias_p): Likewise.
23671         (refs_may_alias_p_1): Likewise.
23672         (ref_maybe_used_by_call_p_1): Likewise.
23673         (call_may_clobber_ref_p_1): Likewise.
23674         (indirect_ref_may_alias_decl_p): Assume indirect refrences
23675         are either MEM_REF or TARGET_MEM_REF.
23676         (indirect_refs_may_alias_p): Likewise.
23677         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
23678         for MEM_EXPR of indirect calls.
23679
23680 2011-04-21  Tristan Gingold  <gingold@adacore.com>
23681
23682         * vmsdbgout.c (write_srccorr): Compute file length from the string.
23683         (dst_file_info_struct): Remove flen field.
23684         (lookup_filename): Remove code that set flen field.
23685
23686 2011-04-21  Tristan Gingold  <gingold@adacore.com>
23687
23688         * config/ia64/ia64.c (ia64_start_function): Add a guard.
23689
23690 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
23691
23692         PR target/48708
23693         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
23694         vec_extract and vec_concat for non-SSE4_1 targets.
23695
23696 2011-04-21  Richard Guenther  <rguenther@suse.de>
23697
23698         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
23699         return statements.
23700
23701 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
23702
23703         * config/i386/cygming.h (union tree_node, TREE): Don't define or
23704         undefine.
23705         (FILE): Don't undefine.
23706
23707 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
23708
23709         * config/alpha/alpha.c (struct machine_function): Use rtx, not
23710         struct rtx_def *.
23711         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
23712         struct rtx_def *.
23713         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
23714         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
23715         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
23716         rtx_def *.
23717         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
23718         definitions where used.
23719         * config/microblaze/microblaze.h (struct microblaze_args): Use
23720         rtx, not struct rtx_def *.
23721         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
23722         rtx_def *.
23723         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
23724         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
23725         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
23726         not struct rtx_def *.
23727         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
23728         struct rtx_def *.
23729         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
23730         rtx_def *.
23731         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
23732
23733 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
23734
23735         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
23736         operand_equal_p to compare DR_BASE_ADDRESSes.
23737         (vect_check_interleaving): Likewise.
23738
23739 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
23740
23741         PR target/46329
23742         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
23743         for all Neon struct constants.
23744
23745 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
23746
23747         * target.def (legitimate_constant_p): New hook.
23748         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
23749         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
23750         * doc/tm.texi: Regenerate.
23751         * hooks.h (hook_bool_mode_rtx_true): Declare.
23752         * hooks.c (hook_bool_mode_rtx_true): Define.
23753         * system.h (LEGITIMATE_CONSTANT_P): Poison.
23754         * calls.c (precompute_register_parameters): Replace uses of
23755         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
23756         (emit_library_call_value_1): Likewise.
23757         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
23758         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
23759         * ira-costs.c (scan_one_insn): Likewise.
23760         * recog.c (general_operand, immediate_operand): Likewise.
23761         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
23762         * reload1.c (init_eliminable_invariants): Likewise.
23763
23764         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
23765         mode argument.
23766         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
23767         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
23768         argument.
23769         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23770         * config/alpha/predicates.md (input_operand): Update call to
23771         alpha_legitimate_constant_p.
23772
23773         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
23774         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
23775         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
23776         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23777         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
23778         (arm_legitimate_constant_p): New functions.
23779         (arm_cannot_force_const_mem): Make static.
23780
23781         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
23782
23783         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
23784         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
23785         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
23786         instead of bfin_legitimate_constant_p.
23787         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
23788         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23789
23790         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
23791
23792         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
23793
23794         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
23795         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
23796         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23797         (frv_legitimate_constant_p): Make static.  Add a mode argument.
23798
23799         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
23800         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
23801         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
23802
23803         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
23804         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
23805         * config/i386/i386.c (legitimate_constant_p): Rename to...
23806         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
23807         argument.
23808         (ix86_cannot_force_const_mem): Update accordingly.
23809         (ix86_legitimate_address_p): Likewise.
23810         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23811         * config/i386/i386.md: Update commentary.
23812
23813         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
23814         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
23815         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23816         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
23817
23818         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
23819
23820         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
23821         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
23822         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23823         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
23824
23825         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
23826         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
23827         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
23828
23829         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
23830         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23831         (m32r_legitimate_constant_p): New function.
23832
23833         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
23834         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
23835         LEGITIMATE_CONSTANT_P.
23836         (LEGITIMATE_CONSTANT_P): Delete.
23837         * config/m68k/m68k.c (m68k_expand_prologue): Call
23838         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
23839         (m68k_legitimate_constant_p): New function.
23840         * config/m68k/m68k.md: Update comments.
23841
23842         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
23843         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23844         (mcore_legitimate_constant_p): New function.
23845
23846         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
23847         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
23848         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
23849         Add a mode argument.
23850         (mep_legitimate_address): Update accordingly.
23851         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23852
23853         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
23854         Delete.
23855         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
23856         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
23857         static.  Check OP's mode for VOIDmode.
23858         (microblaze_legitimate_constant_p): New function.
23859         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23860
23861         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
23862         * config/mips/mips.c (mips_legitimate_constant_p): New function.
23863         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
23864         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23865         * config/mips/predicates.md: Update comments.
23866
23867         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
23868         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
23869         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23870         (mmix_legitimate_constant_p): Make static, return a bool, and take
23871         a mode argument.
23872         (mmix_print_operand_address): Update accordingly.
23873
23874         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
23875         Delete.
23876         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
23877         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
23878         static.  Add a mode argument.
23879         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23880
23881         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
23882
23883         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
23884         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23885         (pa_legitimate_constant_p): New function.
23886
23887         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
23888
23889         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
23890         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23891         (pdp11_legitimate_constant_p): New function.
23892
23893         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
23894         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23895         (rs6000_legitimate_constant_p): New function.
23896
23897         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
23898         (rx_legitimate_constant_p): ...this.
23899         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
23900         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
23901         (rx_legitimate_constant_p): ...this.
23902         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23903         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
23904
23905         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
23906         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
23907         * config/s390/s390.c (legitimate_constant_p): Rename to...
23908         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
23909         and add a mode argument.
23910         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23911
23912         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
23913
23914         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
23915         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23916         (sh_legitimate_constant_p): New function.
23917
23918         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
23919         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
23920         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23921         (legitimate_constant_p): Rename to...
23922         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
23923         argument.
23924         (constant_address_p): Update accordingly.
23925
23926         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
23927         argument and return a bool.
23928         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
23929         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23930         (spu_legitimate_constant_p): Add a mode argument and return a bool.
23931         (spu_rtx_costs): Update accordingly.
23932         * config/spu/predicates.md (vec_imm_operand): Likewise.
23933
23934         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
23935
23936         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
23937         * config/v850/v850.c (v850_legitimate_constant_p): New function.
23938         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23939
23940         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
23941         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
23942         * config/vax/vax.c (legitimate_constant_p): Likewise.
23943
23944         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
23945         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23946         (xtensa_legitimate_constant_p): New function.
23947
23948 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
23949
23950         * target.def (cannot_force_const_mem): Add a mode argument.
23951         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
23952         * doc/tm.texi: Regenerate.
23953         * hooks.h (hook_bool_mode_rtx_false): Declare.
23954         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
23955         (hook_bool_mode_const_rtx_true): Likewise.
23956         (hook_bool_mode_rtx_false): New function.
23957         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
23958         to be non-VOID.  Update call to cannot_force_const_mem.
23959         (find_reloads): Update accordingly.
23960         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
23961         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
23962         argument.
23963         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
23964         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
23965         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
23966         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
23967         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
23968         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
23969         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
23970         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
23971         (m68k_cannot_force_const_mem): ...this new function.
23972         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
23973         argument.
23974         (mips_const_insns, mips_legitimize_const_move): Update calls.
23975         (mips_secondary_reload_class): Likewise.
23976         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
23977         (pa_cannot_force_const_mem): ...this new function.
23978         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
23979         (rs6000_cannot_force_const_mem): ...this new function.
23980         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
23981         argument.
23982         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
23983         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
23984         to...
23985         (xtensa_cannot_force_const_mem): ...this new function.
23986
23987 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
23988
23989         * config/mips/mips.c (mips16_build_function_stub): Call
23990         build_function_type_list instead of build_function_type.
23991         (mips16_build_call_stub): Likewise.
23992
23993 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
23994
23995         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
23996         instead of build_function_type.
23997
23998 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
23999
24000         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
24001         instead of build_function_type.
24002
24003 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
24004
24005         PR target/48678
24006         * config/i386/i386.md (insv): Change operand 0 constraint to
24007         "register_operand".  Change operand 1 and 2 constraint to
24008         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
24009         * config/i386/sse.md (sse4_1_pinsrb): Export.
24010         (sse2_pinsrw): Ditto.
24011         (sse4_1_pinsrd): Ditto.
24012         (sse4_1_pinsrq): Ditto.
24013         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
24014         * config/i386/i386.c (ix86_expand_pinsr): New.
24015
24016 2011-04-20  Easwaran Raman  <eraman@google.com>
24017
24018         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
24019         containing union type only with -fstrict-aliasing.
24020
24021 2011-04-20  Jim Meyering  <meyering@redhat.com>
24022
24023         Remove useless if-before-free tests.
24024         * calls.c (expand_call, save_area): Likewise.
24025         * cfgcleanup.c (try_forward_edges): Likewise.
24026         * collect2.c (collect_execute): Likewise.
24027         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
24028         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
24029         * coverage.c (coverage_checksum_string): Likewise.
24030         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
24031         * cselib.c (cselib_init): Likewise.
24032         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
24033         (df_set_clean_cfg): Likewise.
24034         * function.c (free_after_compilation): Likewise.
24035         * gcc.c (do_spec_1, main): Likewise.
24036         * gcov.c (create_file_names): Likewise.
24037         * gensupport.c (identify_predicable_attribute): Likewise.
24038         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
24039         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
24040         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
24041         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
24042         * ipa-pure-const.c (local_pure_const): Likewise.
24043         * ipa-reference.c (propagate): Likewise.
24044         * ira-costs.c (free_ira_costs): Likewise.
24045         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
24046         * matrix-reorg.c (mat_free): Likewise.
24047         * prefix.c (get_key_value): Likewise.
24048         * profile.c (compute_value_histograms): Likewise.
24049         * reload1.c (free_reg_equiv): Likewise.
24050         * sched-deps.c (free_deps): Likewise.
24051         * sel-sched-ir.c (fence_clear): Likewise.
24052         * sese.c (set_rename, if_region_set_false_region): Likewise.
24053         * tree-data-ref.c (free_rdg): Likewise.
24054         * tree-eh.c (lower_try_finally): Likewise.
24055         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
24056         * tree-ssa-live.c (delete_var_map): Likewise.
24057         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
24058         * tree-ssa-pre.c (phi_trans_add): Likewise.
24059
24060 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
24061
24062         PR tree-optimization/48611
24063         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
24064         beyond ERT_MUST_NOT_THROW region.
24065
24066 2011-04-20  Catherine Moore  <clm@codesourcery.com>
24067
24068         * config/mips/mips.opt (mfix-24k): New.
24069         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
24070         * config/mips/mips.md (length): Increase by 4 for stores if
24071         fixing 24K errata.
24072         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
24073         all noreorder if fixing 24K errata.
24074         * doc/invoke.texi: Document mfix-24k.
24075
24076 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
24077
24078         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
24079         quad-word modes, reduce to 9-bit index range when above 1016 limit.
24080
24081 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
24082
24083         * config/arm/arm.c (arm_gen_constant): Move movw support ....
24084         (const_ok_for_op): ... to here.
24085
24086 2011-04-20  Kai Tietz  <ktietz@redhat.com>
24087
24088         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
24089         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
24090
24091 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
24092
24093         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
24094
24095 2011-04-20  Richard Guenther  <rguenther@suse.de>
24096
24097         PR tree-optimization/47892
24098         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
24099         are if-convertible.
24100
24101 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
24102
24103         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
24104
24105 2011-04-20  Tristan Gingold  <gingold@adacore.com>
24106
24107         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
24108
24109 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
24110
24111         PR target/18145
24112
24113         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
24114         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
24115         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
24116         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
24117         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
24118
24119         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
24120         New prototype.
24121
24122         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
24123         (avr_asm_named_section, avr_asm_output_aligned_common,
24124         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
24125         New functions to update...
24126         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
24127         (avr_asm_init_sections): Overwrite section callbacks for
24128         data_section, bss_section.
24129         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
24130         from here to...
24131         (avr_file_end): ...here.
24132
24133 2011-04-20  Richard Guenther  <rguenther@suse.de>
24134
24135         PR middle-end/48695
24136         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
24137         objects and types here.  Adjust for their offset before comparing.
24138
24139 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
24140
24141         * tree-vect-stmts.c (vectorizable_store): Only chain one related
24142         statement per copy.
24143
24144 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
24145
24146         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
24147         (GIMPLE_H): Include $(INTERNAL_FN_H).
24148         (OBJS-common): Add internal-fn.o.
24149         (internal-fn.o): New rule.
24150         * internal-fn.def: New file.
24151         * internal-fn.h: Likewise.
24152         * internal-fn.c: Likewise.
24153         * gimple.h: Include internal-fn.h.
24154         (GF_CALL_INTERNAL): New gf_mask.
24155         (gimple_statement_call): Put fntype into a union with a new
24156         internal_fn field.
24157         (gimple_build_call_internal): Declare.
24158         (gimple_build_call_internal_vec): Likewise.
24159         (gimple_call_same_target_p): Likewise.
24160         (gimple_call_internal_p): New function.
24161         (gimple_call_internal_fn): Likewise.
24162         (gimple_call_fntype): Return null for internal calls.
24163         (gimple_call_set_fntype): Assert that the function is not internal.
24164         (gimple_call_set_fn): Likewise.
24165         (gimple_call_set_fndecl): Likewise.
24166         (gimple_call_set_internal_fn): New function.
24167         (gimple_call_addr_fndecl): Handle null functions.
24168         (gimple_call_return_type): Likewise null types.
24169         * gimple.c (gimple_build_call_internal_1): New function.
24170         (gimple_build_call_internal): Likewise.
24171         (gimple_build_call_internal_vec): Likewise.
24172         (gimple_call_same_target_p): Likewise.
24173         (gimple_call_flags): Handle calls to internal functions.
24174         (gimple_call_fnspec): New function.
24175         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
24176         (gimple_has_side_effects): Handle null functions.
24177         (gimple_rhs_has_side_effects): Likewise.
24178         (gimple_call_copy_skip_args): Handle calls to internal functions.
24179         * cfgexpand.c (expand_call_stmt): Likewise.
24180         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
24181         * gimple-fold.c (gimple_fold_call): Handle null functions.
24182         (gimple_fold_stmt_to_constant_1): Don't fold
24183         calls to internal functions.
24184         * gimple-low.c (gimple_check_call_args): Handle calls to internal
24185         functions.
24186         * gimple-pretty-print.c (dump_gimple_call): Likewise.
24187         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
24188         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
24189         (do_warn_unused_result): Likewise.
24190         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
24191         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
24192         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
24193         the target of a call.
24194         (initialize_hash_element): Update accordingly.
24195         (hashable_expr_equal_p): Use gimple_call_same_target_p.
24196         (iterative_hash_hashable_expr): Handle calls to internal functions.
24197         (print_expr_hash_elt): Likewise.
24198         * tree-ssa-pre.c (can_value_number_call): Likewise.
24199         (eliminate): Handle null functions.
24200         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
24201         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
24202         (find_func_aliases): Likewise.
24203         * value-prof.c (gimple_ic_transform): Likewise.
24204         (gimple_indirect_call_to_profile): Likewise.
24205         * lto-streamer-in.c (input_gimple_stmt): Likewise.
24206         * lto-streamer-out.c (output_gimple_stmt): Likewise.
24207
24208 2011-04-19  Jan Hubicka  <jh@suse.cz>
24209
24210         * ipa-inline-transform.c (save_inline_function_body): Add comments.
24211         * ipa-inline.c (inline_small_functions): Compute summaries first,
24212         populate heap later.
24213
24214 2011-04-19  Jan Hubicka  <jh@suse.cz>
24215
24216         * cgraph.h (save_inline_function_body): Remove.
24217         * ipa-inline-transform.c: New file, broke out of...
24218         * ipa-inline.c: ... this one; Update toplevel comment.
24219         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
24220         make global.
24221         (update_noncloned_frequencies): Move to ipa-inline-transform.c
24222         (cgraph_mark_inline_edge): Rename to inline_call; move to
24223         ipa-inline-transform.c.
24224         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
24225         move to ipa-inline-transform.c
24226         (recursive_inlining, inline_small_functions, flatten_function,
24227         ipa_inline, inline_always_inline_functions,
24228         early_inline_small_functions): Update.
24229         (inline_transform): Move to ipa-inline-transform.c.
24230         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
24231         Declare.
24232         * Makefile.in (ipa-inline-transform.o): New file.
24233         * cgraphunit.c (save_inline_function_body): Move to
24234         ipa-inline-transform.c
24235
24236 2011-04-19  DJ Delorie  <dj@redhat.com>
24237
24238         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
24239         registers if we already know there aren't any.
24240         (m32c_emit_epilogue): Don't emit a barrier here.
24241         (m32c_emit_eh_epilogue): Likewise.
24242         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
24243         operands at expand time.
24244         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
24245         int" wchar type.
24246         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
24247         duplicates.  Provide aliases instead.
24248         * config/m32c/prologue.md (eh_return): Emit a barrier here.
24249         (eh_epilogue): Add a "(return)" here as a hint to other parts of
24250         the compiler.
24251
24252 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
24253
24254         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
24255         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
24256         (general_or_i64_p, sparc_register_move_cost): New function.
24257
24258 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24259
24260         * doc/install.texi (Configuration, --enable-threads): Remove mach.
24261         Add lynx, mipssde.  Sort table.
24262
24263 2011-04-19  Xinliang David Li  <davidxl@google.com>
24264
24265         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
24266         not negative.
24267
24268 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
24269
24270         PR target/48678
24271         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
24272         is a SUBREG with non-MODE_INT mode inside of it.
24273
24274 2011-04-19  Martin Jambor  <mjambor@suse.cz>
24275
24276         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
24277         also according to actual contants.
24278         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
24279         (gimple_fold_call): Use it.
24280         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
24281
24282 2011-04-19  Martin Jambor  <mjambor@suse.cz>
24283
24284         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
24285         non-pointer assignments.
24286
24287 2011-04-19  Martin Jambor  <mjambor@suse.cz>
24288
24289         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
24290         account anc_offset and otr_type from the indirect edge info.
24291         * ipa-prop.c (get_ancestor_addr_info): New function.
24292         (compute_complex_ancestor_jump_func): Assignment analysis moved to
24293         get_ancestor_addr_info, call it.
24294         (ipa_note_param_call): Do not initialize information about polymorphic
24295         calls, return the indirect call graph edge.  Remove the last
24296         parameter, adjust all callers.
24297         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
24298         parameters.  Initialize polymorphic information in the indirect edge.
24299
24300 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
24301
24302         PR lto/48148
24303         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
24304         the types if they have different enumeration identifiers.
24305
24306 2011-04-19  Jan Hubicka  <jh@suse.cz>
24307
24308         * cgraph.h (cgraph_optimize_for_size_p): Declare.
24309         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
24310         * predict.c (cgraph_optimize_for_size_p): Break out from ...
24311         (optimize_function_for_size_p) ... here.
24312
24313 2011-04-19  Richard Guenther  <rguenther@suse.de>
24314
24315         PR lto/48207
24316         * tree.c (free_lang_data): Do not reset the decl-assembler-name
24317         langhook.
24318
24319 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
24320
24321         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
24322         if DECL_NO_INLINE_WARNING_P is set on the function.
24323
24324 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
24325
24326         PR fortran/47976
24327         * reload1.c (inc_for_reload): Return void. All callers changed.
24328         (emit_input_reload_insns): Don't try to delete previous output
24329         reloads to a register, or record spill_reg_store for autoincs.
24330
24331 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
24332
24333         * gengtype.h: Updated copyright year.
24334         (struct input_file_st): Add inpisplugin field.
24335         (type_fileloc): New function.
24336         * gengtype.c
24337         (write_typed_struct_alloc_def): Add gcc_assert.
24338         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
24339         (write_typed_alloc_defns): Don't output for plugin files.
24340         (input_file_by_name): Clear inpisplugin field.
24341         (main): Set inpisplugin field for plugin files.
24342
24343 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
24344
24345         * gengtype-state.c (string_eq): New.
24346         (read_state): Use string_eq instead of strcmp when creating the
24347         state_ident_tab.
24348
24349 2011-04-19  Wei Guozhi  <carrot@google.com>
24350
24351         PR target/47855
24352         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
24353         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
24354         linkage.
24355         * config/arm/constraints.md (Uu): New constraint.
24356         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
24357
24358 2011-04-19  Tristan Gingold  <gingold@adacore.com>
24359
24360         * config.gcc (-*-*-*vms): Added.
24361         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
24362         definitions moved.
24363         * config/vms/vms-ld.c: New file.
24364         * config/vms/vms-ar.c: New file.
24365         * config/vms/t-vmsnative: New file.
24366
24367 2011-04-18  Xinliang David Li  <davidxl@google.com>
24368
24369         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
24370
24371 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
24372
24373         PR middle-end/48661
24374         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
24375         if TREE_TYPE (v) is non-NULL.
24376
24377         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
24378         gimple_get_virt_mehtod_for_binfo.
24379         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
24380         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
24381         callers.
24382         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24383
24384 2011-04-18  Michael Matz  <matz@suse.de>
24385             Steve Ellcey  <sje@cup.hp.com>
24386
24387         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
24388         use its mode as source mode if it isn't VOIDmode.
24389
24390 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
24391
24392         * doc/passes.texi: Fill crossref nodes.
24393
24394 2011-04-18  Jim Meyering  <meyering@redhat.com>
24395
24396         Fix doubled-word typos in comments and strings
24397         * config/alpha/vms-unwind.h: s/for for/for/
24398         * config/arm/unwind-arm.h: Likewise.
24399         * config/microblaze/microblaze.c: Likewise.
24400         * config/sh/constraints.md: s/in in/in/
24401         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
24402
24403 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
24404
24405         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
24406         (AVX_FLOAT_MODE_P): Ditto.
24407         (AVX128_VEC_FLOAT_MODE_P): Ditto.
24408         (AVX256_VEC_FLOAT_MODE_P): Ditto.
24409         (AVX_VEC_FLOAT_MODE_P): Ditto.
24410         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
24411         (UNSPEC_MASKSTORE): Ditto.
24412         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
24413         Merge from <sse>_movmsk<ssemodesuffix> and
24414         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
24415         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
24416         iterator.
24417         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
24418         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
24419         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
24420
24421 2011-04-18  Jan Hubicka  <jh@suse.cz>
24422
24423         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
24424
24425         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
24426         (want_inline_function_called_once_p): Break out the logic from
24427         ipa_inline.
24428         (edge_badness): Ensure that profile is not misupdated.
24429         (lookup_recursive_calls): Prioritize by call frequencies.
24430         (inline_small_functions): Move program size estimates here;
24431         actually process whole queue even when unit growth has been
24432         met. (to properly compute inline_failed reasons and for the
24433         case unit size decrease.) Revisit comments on recursive inlining.
24434         (ipa_inline): Remove unit summary code; first inline hot calls
24435         of functions called once, cold calls next.
24436         (order, nnodes): Remove unused variables.
24437         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
24438         (GTFILES): Remove ipa-inline.c
24439         * sel-sched.c (fill_insns): Silence uninitialized var warning.
24440
24441 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
24442
24443         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
24444
24445 2011-04-18  Jie Zhang  <jie@codesourcery.com>
24446             Richard Earnshaw  <rearnsha@arm.com>
24447
24448         * arm.c (neon_builtin_type_bits): Remove.
24449         (typedef enum neon_builtin_mode): New.
24450         (T_MAX): Don't define.
24451         (typedef enum neon_builtin_datum): Remove bits, codes[],
24452         num_vars and base_fcode.  Add mode, code and fcode.
24453         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
24454         VAR10): Change accordingly.
24455         (neon_builtin_data[]): Change accordingly
24456         (arm_init_neon_builtins): Change accordingly.
24457         (neon_builtin_compare): Remove.
24458         (locate_neon_builtin_icode): Remove.
24459         (arm_expand_neon_builtin): Change accordingly.
24460
24461         * arm.h (enum arm_builtins): Move to ...
24462         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
24463
24464         * arm.c (arm_builtin_decl): Declare.
24465         (TARGET_BUILTIN_DECL): Define.
24466         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
24467         (arm_builtin_decls[]): New.
24468         (arm_init_neon_builtins): Store builtin declarations in
24469         arm_builtin_decls[].
24470         (arm_init_tls_builtins): Likewise.
24471         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
24472         (arm_builtin_decl): New.
24473
24474 2011-04-18  Richard Guenther  <rguenther@suse.de>
24475
24476         * tree.c (upper_bound_in_type): Build properly canonicalized
24477         INTEGER_CSTs.
24478         (lower_bound_in_type): Likewise.
24479
24480 2011-04-18  Richard Guenther  <rguenther@suse.de>
24481
24482         * gimple.h (gimple_call_addr_fndecl): New function.
24483         (gimple_call_fndecl): Use it.
24484         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
24485         for direct calls.
24486         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
24487         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
24488
24489 2011-04-18  Richard Guenther  <rguenther@suse.de>
24490
24491         PR middle-end/48650
24492         * tree.c (build_string): STRING_CST is now derived from tree_typed.
24493
24494 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
24495
24496         PR lto/48492
24497         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
24498         DECL_IN_CONSTANT_POOL without RTL.
24499
24500 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
24501             Ira Rosen  <ira.rosen@linaro.org>
24502
24503         PR target/48252
24504         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
24505         to match neon_vzip/vuzp/vtrn_internal.
24506         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
24507         outputs explicitly dependent on both inputs.
24508         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
24509
24510 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
24511
24512         PR tree-optimization/48616
24513         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
24514         whether the shift is by scalar or vector based on whether all SLP
24515         scalar stmts have the same rhs.
24516
24517 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
24518
24519         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
24520         memory operands.
24521
24522 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
24523
24524         PR target/43700
24525         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
24526         registers.
24527
24528 2011-04-17  Jan Hubicka  <jh@suse.cz>
24529
24530         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
24531         * cgrpahunit.c (cgraph_finalize_function): Do not set
24532         finalized_by_frontend.
24533         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
24534         finalized_by_frontend.
24535
24536 2011-04-17  Jan Hubicka  <jh@suse.cz>
24537
24538         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
24539         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
24540         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
24541         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
24542         method.
24543         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
24544         gimple-fold.c
24545         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
24546
24547 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
24548
24549         PR lto/48538
24550         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
24551         is non-null before accessing it.
24552         (input_cgraph): Remove trailing spaces.
24553
24554 2011-04-17  Revital Eres  <revital.eres@linaro.org>
24555
24556         * params.def (sms-min-sc): New param flag.
24557         * modulo-sched.c (sms_schedule): Use it.
24558         * doc/invoke.texi (sms-min-sc): Document it.
24559
24560 2011-04-17  Jan Hubicka  <jh@suse.cz>
24561
24562         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
24563         present, also set gimple_call_set_cannot_inline.
24564         * ipa-inline.c: Update toplevel comment.
24565         (MAX_TIME): Remove.
24566         (cgraph_clone_inlined_nodes): Fix linebreaks.
24567         (cgraph_check_inline_limits): Restructure to ...
24568         (caller_growth_limits): ... this one; be more tolerant
24569         on growth in nested inline chains; add explanatory comment;
24570         fix stack accounting thinko introduced by previous patch.
24571         (cgraph_default_inline_p): Remove.
24572         (report_inline_failed_reason): New function.
24573         (can_inline_edge_p): New function.
24574         (can_early_inline_edge_p): New function.
24575         (leaf_node_p): Move upwards in file.
24576         (want_early_inline_function_p): New function.
24577         (want_inline_small_function_p): New function.
24578         (want_inline_self_recursive_call_p): New function.
24579         (cgraph_edge_badness): Rename to ...
24580         (edge_badness) ... this one; fix linebreaks.
24581         (update_edge_key): Update call of edge_baddness; add
24582         detailed dump about queue updates.
24583         (update_caller_keys): Use can_inline_edge_p and
24584         want_inline_small_function_p.
24585         (cgraph_decide_recursive_inlining): Rename to...
24586         (recursive_inlining): Use can_inline_edge_p and
24587         want_inline_self_recursive_call_p; simplify and remove no longer
24588         valid FIXME.
24589         (cgraph_set_inline_failed): Remove.
24590         (add_new_edges_to_heap): Use can_inline_edge_p and
24591         want_inline_small_function_p.
24592         (cgraph_decide_inlining_of_small_functions): Rename to ...
24593         (inline_small_functions): ... this one; cleanup; use
24594         can/want predicates; cleanup debug ouput; work edges till fibheap
24595         is exhausted and do not stop once unit growth is reached; remove
24596         later loop processing remaining edges.
24597         (cgraph_flatten): Rename to ...
24598         (flatten_function): ... this one; use can_inline_edge_p
24599         and can_early_inline_edge_p predicates.
24600         (cgraph_decide_inlining): Rename to ...
24601         (ipa_inline): ... this one; remove unreachable nodes before
24602         inlining functions called once; simplify the pass.
24603         (cgraph_perform_always_inlining): Rename to ...
24604         (inline_always_inline_functions): ... this one; use
24605         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
24606         (cgraph_decide_inlining_incrementally): Rename to ...
24607         (early_inline_small_functions): ... this one; simplify
24608         using new predicates; cleanup; make dumps prettier.
24609         (cgraph_early_inlining): Rename to ...
24610         (early_inliner): newer inline regular functions into always-inlines;
24611         fix updating of call stmt summaries.
24612         (pass_early_inline): Update for new names.
24613         (inline_transform): Fix formating.
24614         (gate_cgraph_decide_inlining): Rename to ...
24615         (pass_ipa_inline): ... this one.
24616         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
24617         * ipa-inline-analysis.c (dump_inline_summary): Update.
24618         (compute_inline_parameters): Do not compute disregard_inline_limits;
24619         look for mismatching arguments.
24620         (estimate_growth): Fix handlig of non-trivial self recursion.
24621         (inline_read_summary): Do not read info->disregard_inline_limits.
24622         (inline_write_summary): Do not write info->disregard_inline_limits.
24623         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
24624         and move all checks into can_inline_edge_p predicate; re-enable code
24625         comparing optimization levels.
24626         (expand_call_inline): Do not test inline_forbidden_into_p.
24627         * Makefile.in (ipa-inline.o): Update arguments.
24628
24629 2011-04-17  Revital Eres  <revital.eres@linaro.org>
24630
24631         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
24632
24633 2011-04-17  Revital Eres  <revital.eres@linaro.org>
24634
24635         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
24636
24637 2011-04-17  Michael Matz  <matz@suse.de>
24638
24639         PR tree-optimization/48622
24640         PR lto/48645
24641         * ipa-inline-analysis.c (inline_read_summary): Read size/time
24642         in same order as they're written.
24643
24644 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24645
24646         * config/pa/predicates.md: Reorganize and simplify predicates.
24647         Eliminate duplicate code checks.
24648         (arith_operand): Rename to arith14_operand
24649         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
24650         * config/pa/pa.md: Use renamed operands.
24651         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
24652         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
24653         arith11_operand, adddi3_operand, indexed_memory_operand,
24654         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
24655         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
24656         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
24657         move_dest_operand, move_src_operand, prefetch_cc_operand,
24658         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
24659         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
24660         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
24661         div_operand, int5_operand, movb_comparison_operator,
24662         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
24663         arith_double_operand, ireg_operand, lhs_lshift_operand,
24664         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
24665         integer_store_memory_operand): Likewise.
24666         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
24667         (integer_store_memory_operand, read_only_operand,
24668         function_label_operand, borx_reg_operand,
24669         non_hard_reg_operand): Likewise.
24670         (eq_neq_comparison_operator): Delete unused operator.
24671         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
24672         function_label_operand.
24673         (emit_move_sequence): Likewise.
24674
24675 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
24676
24677         * config/i386/sse.md (sseunpackmode): New mode attribute.
24678         (ssepackmode): Ditto.
24679         (vec_pack_trunc_<mode>): Macroize expander from
24680         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
24681         (vec_unpacks_lo_<mode>): Macroize expander from
24682         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
24683         (vec_unpacks_hi_<mode>): Macroize expander from
24684         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
24685         (vec_unpacku_lo_<mode>): Macroize expander from
24686         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
24687         (vec_unpacku_hi_<mode>): Macroize expander from
24688         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
24689         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
24690         ix86_expand_sse4_unpack.
24691         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
24692
24693 2011-04-16  Jan Hubicka  <jh@suse.cz>
24694
24695         * cgraphbuild.c: Include ipa-inline.h.
24696         (reset_inline_failed): Use initialize_inline_failed.
24697         * cgraph.c: Include ipa-inline.h.
24698         (cgraph_create_node_1): Do not initialize estimated_growth.
24699         (initialize_inline_failed): More to ipa-inline-analysis.c
24700         (dump_cgraph_node): Do not dump inline flags.
24701         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
24702         and disregard_inline_limits flags.
24703         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
24704         time, size, estimated_growth.
24705         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
24706         Update.
24707         * cgraphunit.c (cgraph_decide_is_function_needed): Use
24708         DECL_DISREGARD_INLINE_LIMITS.
24709         (cgraph_analyze_function): Do not initialize
24710         node->local.disregard_inline_limits.
24711         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
24712         inlinable, versionable and disregard_inline_limits.
24713         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
24714         cgraph_check_inline_limits, cgraph_default_inline_p,
24715         cgraph_edge_badness, update_caller_keys, update_callee_keys,
24716         add_new_edges_to_heap): Update.
24717         (cgraph_decide_inlining_of_small_function): Update; set
24718         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
24719         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
24720         cgraph_decide_inlining_incrementally): Update.
24721         * ipa-inline.h (inline_summary): Add inlinable, versionable,
24722         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
24723         time, size and estimated_growth parameters.
24724         (estimate_edge_growth): Update.
24725         (initialize_inline_failed): Declare.
24726         * ipa-split.c: Include ipa-inline.h
24727         (execute_split_functions): Update.
24728         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
24729         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
24730         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
24731         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
24732         estimated_growth to INT_MIN.
24733         (inline_node_duplication_hook): Likewise.
24734         (dump_inline_summary): Dump new fields.
24735         (compute_inline_parameters): Update.
24736         (estimate_edge_time, estimate_time_after_inlining,
24737         estimate_size_after_inlining, estimate_growth, inline_read_summary,
24738         inline_write_summary):
24739         (initialize_inline_failed): Move here from cgraph.c.
24740         * tree-sra.c: Include ipa-inline.h.
24741         (ipa_sra_preliminary_function_checks): Update.
24742         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
24743         ipa-inline.h.
24744
24745 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
24746
24747         * config/i386/sse.md (V16): New mode iterator.
24748         (VI1, VI8): Ditto.
24749         (AVXMODEQI, AVXMODEDI): Remove.
24750         (sse2, sse3): New mode attribute.
24751         (mov<mode>): Use V16 mode iterator.
24752         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
24753         (push<mode>1): Use V16 mode iterator.
24754         (movmisalign<mode>): Ditto.
24755         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
24756         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
24757         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
24758         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
24759         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
24760         avx_movdqu<avxmodesuffix>.
24761         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
24762         *avx_movdqu<avxmodesuffix>.
24763         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
24764         avx_lddqu<avxmodesuffix>.
24765         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
24766         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
24767         avx_movnt<AVXMODEDI:mode>.
24768         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
24769         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
24770
24771 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
24772
24773         PR target/48629
24774         * haifa-sched.c (prune_ready_list, schedule_block): Use
24775         sched_pressure_p rather than flag_sched_pressure.
24776
24777 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
24778
24779         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
24780         cgraph_get_node instead of cgraph_get_create_node.
24781
24782 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
24783
24784         * cfgexpand.c (expand_debug_expr): Use
24785         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
24786
24787 2011-04-15  Michael Matz  <matz@suse.de>
24788
24789         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
24790         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
24791         * function.c (gimplify_parameters): Ditto.
24792         * gimplify.c (gimplify_vla_decl): Ditto.
24793
24794         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
24795         (gimple_call_set_alloca_for_var): New inline function.
24796         (gimple_call_alloca_for_var_p): Ditto.
24797         * gimple.c (gimple_build_call_from_tree): Remember
24798         CALL_ALLOCA_FOR_VAR_P state.
24799         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
24800
24801         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
24802         calls if they were for VLA objects.
24803
24804 2011-04-15  Martin Jambor  <mjambor@suse.cz>
24805
24806         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
24807         of ADR_EXPRs.
24808
24809 2011-04-15  Martin Jambor  <mjambor@suse.cz>
24810
24811         PR middle-end/48601
24812         * tree-emutls.c (lower_emutls_function_body): Call
24813         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
24814         result is non-NULL.
24815
24816 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
24817
24818         * c-decl.c (detect_field_duplicates): Call
24819         objc_detect_field_duplicates instead of objc_get_interface_ivars.
24820
24821 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
24822
24823         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
24824         * gimple.c (gimple_asm_clobbers_memory_p): Define.
24825         * ipa-pure-const.c (check_stmt): Call it.
24826         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
24827
24828 2011-04-15  Richard Guenther  <rguenther@suse.de>
24829
24830         PR tree-optimization/48290
24831         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
24832         Properly decide inhibiting propagation based on the valueized
24833         operand.  Do loop-closed SSA form preserving here ...
24834         (init_copy_prop): ... not here.
24835
24836 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
24837
24838         PR target/48612
24839         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
24840         (*ieee_smax<mode>3): Likewise.
24841
24842 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24843
24844         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
24845         Replace match_operand with match_dup for the third operand in
24846         these expanders.
24847
24848 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
24849
24850         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
24851         to track processing of conditionals.  Update all callers.
24852         (try_combine, simplify_if_then_else): Update.
24853
24854 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
24855
24856         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
24857         -fsched-pressure.
24858
24859 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
24860
24861         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
24862         instead of match_operand for operand 3.
24863
24864 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
24865
24866         * recog.h (insn_operand_data): Add an "allows_mem" field.
24867         * genoutput.c (output_operand_data): Initialize it.
24868         * optabs.c (maybe_legitimize_operand_same_code): New function.
24869         (maybe_legitimize_operand): Use it when matching the original
24870         op->value.
24871
24872 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
24873
24874         * gimplify.c: Fix issues in comments throughout.
24875         (voidify_wrapper_expr): Fix long line.
24876         (build_stack_save_restore): Likewise.
24877         (gimplify_loop_expr): Likewise.
24878         (gimplify_compound_lval): Likewise.
24879         (gimplify_init_ctor_eval): Likewise.
24880         (gimplify_modify_expr_rhs): Likewise.
24881         (omp_notice_threadprivate_variable): Likewise.
24882
24883 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
24884
24885         * cfgexpand.c (expand_call_stmt): Convert the function type to the
24886         original one if this is not a builtin function.
24887
24888 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
24889
24890         PR target/48605
24891         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
24892         offset it as needed based on top 2 bits in operands[3], change
24893         MEM mode to SFmode and mask those 2 bits away from operands[3].
24894
24895 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
24896
24897         * c-parser.c (c_parser_objc_protocol_definition): Updated for
24898         change from objc_declare_protocols() to objc_declare_protocol().
24899
24900 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
24901
24902         * config/i386/sse.md (sse4_1): New mode attribute.
24903         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
24904         avx_blend<ssemodesuffix><avxmodesuffix> and
24905         sse4_1_blend<ssemodesuffix> using VF mode iterator.
24906         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
24907         avx_blendv<ssemodesuffix><avxmodesuffix> and
24908         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
24909         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
24910         avx_dp<ssemodesuffix><avxmodesuffix> and
24911         sse4_1_dp<ssemodesuffix> using VF mode iterator.
24912         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
24913         (sse4_1_packusdw): Merge with *avx_packusdw.
24914         (sse4_1_pblendvb): Merge with *avx_pblendvb.
24915         (sse4_1_pblendw): Merge with *avx_pblendw.
24916         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
24917         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
24918         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
24919         VF mode iterator.
24920         (sse4_1_round<ssescalarmodesuffix>): Merge with
24921         *avx_round<ssescalarmodesuffix>.
24922         (aesenc): Merge with *avx_aesenc.
24923         (aesenclast): Merge with *avx_aesenclast.
24924         (aesdec): Merge with *avx_aesdec.
24925         (aesdeclast): Merge with *avx_aesdeclast.
24926         (pclmulqdq): Merge with *pclmulqdq.
24927         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
24928         New predicate.
24929         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
24930
24931 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
24932
24933         PR middle-end/48608
24934         * cfgexpand.c (get_decl_align_unit): Renamed to ...
24935         (align_local_variable): This.  Update DECL_ALIGN.
24936         (add_stack_var): Updated.
24937         (expand_one_stack_var): Likewise.
24938
24939 2011-04-14  Richard Guenther  <rguenther@suse.de>
24940
24941         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
24942         Remove.
24943         (dse_initialize_block_local_data, dse_leave_block,
24944         record_voperand_set, get_stmt_uid): Likewise.
24945         (dse_possible_dead_store_p): Allow any kind of killing stmt.
24946         (dse_optimize_stmt): Remove voperand set handling code.
24947         Simplify and improve to handle any kind of killing stmt.
24948         (dse_record_phi): Remove.
24949         (dse_enter_block): Simplify.
24950         (tree_ssa_dse): Likewise.
24951         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
24952
24953 2011-04-14  Jan Hubicka  <jh@suse.cz>
24954
24955         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
24956         * cgraph.h (struct inline_summary): Move to ipa-inline.h
24957         (cgraph_local_info): Remove inline_summary.
24958         * ipa-cp.c: Include ipa-inline.h.
24959         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
24960         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
24961         accesor.
24962         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
24963         (input_overwrite_node): Do not set inline summary.
24964         (input_node): Do not stream inline summary.
24965         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
24966         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
24967         growth; we do not have inline parameters computed for that anyway.
24968         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
24969         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
24970         (inline_summary_t): New type and VECtor.
24971         (debug_inline_summary, dump_inline_summaries): Declare.
24972         (inline_summary): Use VOCtor.
24973         (estimate_edge_growth): Kill hack computing call stmt size directly.
24974         * lto-section-in.c (lto_section_name): Add inline section.
24975         * ipa-inline-analysis.c: Include lto-streamer.h
24976         (node_removal_hook_holder, node_duplication_hook_holder): New holders
24977         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
24978         (inline_summary_vec): Define.
24979         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
24980         dump_inline_summaries): New functions.
24981         (estimate_function_body_sizes): Properly compute size/time of outgoing
24982         calls.
24983         (compute_inline_parameters): Alloc inline_summary; do not compute
24984         size/time of incomming calls.
24985         (estimate_edge_time): Avoid missing time summary hack.
24986         (inline_read_summary): Read inline summary info.
24987         (inline_write_summary): Write inline summary info.
24988         (inline_free_summary): Free all hooks and inline summary vector.
24989         * lto-streamer.h: Add LTO_section_inline_summary section.
24990         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
24991         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
24992
24993 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
24994
24995         * tree-vectorizer.h (vect_strided_store_supported): Add a
24996         HOST_WIDE_INT argument.
24997         (vect_strided_load_supported): Likewise.
24998         (vect_permute_store_chain): Return void.
24999         (vect_transform_strided_load): Likewise.
25000         (vect_permute_load_chain): Delete.
25001         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
25002         count argument.  Check that the count is a power of two.
25003         (vect_strided_load_supported): Likewise.
25004         (vect_permute_store_chain): Return void.  Update after above changes.
25005         Assert that the access is supported.
25006         (vect_permute_load_chain): Likewise.
25007         (vect_transform_strided_load): Return void.
25008         * tree-vect-stmts.c (vectorizable_store): Update calls after
25009         above interface changes.
25010         (vectorizable_load): Likewise.
25011         (vect_analyze_stmt): Don't check for strided powers of two here.
25012
25013 2011-04-14  Richard Guenther  <rguenther@suse.de>
25014
25015         PR tree-optimization/48590
25016         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
25017         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
25018         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
25019         BUILT_IN_STACK_SAVE.
25020         * tree-ssa-dce.c (propagate_necessity): Handle
25021         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
25022
25023 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
25024
25025         * c-parser.c (c_parser_objc_class_declaration): Updated call to
25026         objc_declare_class.
25027
25028 2011-04-14  Richard Guenther  <rguenther@suse.de>
25029
25030         * tree.h (get_object_alignment_1): Declare.
25031         * builtins.c (get_object_alignment_1): Split out worker from ...
25032         (get_object_alignment): ... here.
25033         * fold-const.c (get_pointer_modulus_and_residue): Use
25034         get_object_alignment_1.
25035
25036 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
25037
25038         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
25039         type parameter.
25040         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
25041         parameter.  Generalise code to handle arrays as well as vectors.
25042         (vect_setup_realignment): Update accordingly.
25043         * tree-vect-stmts.c (vectorizable_store): Likewise.
25044         (vectorizable_load): Likewise.
25045
25046 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
25047
25048         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
25049         within the per-copy loop.
25050
25051 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
25052
25053         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
25054         in the dump file.
25055
25056 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
25057
25058         * doc/options.texi (Negative): Explicitly mention that the
25059         Negative chain must be circular.
25060
25061 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
25062
25063         * function.h (block_chainon): Declare.
25064         * function.c (block_chainon): Define.
25065
25066 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
25067             Eric Weddington  <eric.weddington@atmel.com>
25068             Georg-Johann Lay  <avr@gjlay.de>
25069
25070         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
25071         New Includes
25072         (avr_init_builtins, avr_expand_builtin,
25073         avr_expand_delay_cycles, avr_expand_unop_builtin,
25074         avr_expand_binop_builtin ): New functions.
25075         (avr_builtin_id): New enum
25076         (struct avr_builtin_description): New struct
25077         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
25078         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
25079
25080         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
25081         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
25082         UNSPECV_DELAY_CYCLES): new enumeration values
25083         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
25084         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
25085         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
25086         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
25087         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
25088         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
25089         "fmulsu"): New insns
25090
25091         * config/avr/avr-c.c: fix line endings
25092         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
25093         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
25094         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
25095         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
25096         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
25097
25098         * doc/extend.texi (AVR Built-in Functions): New node
25099         (Target Builtins): Add documentation of AVR
25100         built-in functions.
25101
25102 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
25103
25104         PR target/44643
25105         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
25106         alone. Error if non-const data has attribute progmem.
25107
25108 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
25109
25110         * tree.h (struct tree_constructor): Include tree_typed instead of
25111         tree_common.
25112         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
25113         TS_TYPED instead of TS_COMMON.
25114
25115 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
25116
25117         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
25118         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
25119         (sse2_psadbw): Merge with *avx_psadbw.
25120         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
25121         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
25122         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
25123         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
25124         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
25125         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
25126         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
25127         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
25128         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
25129         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
25130         (ssse3_palignrti): Merge with *avx_palignrti.
25131
25132 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
25133
25134         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
25135         * tree-ssanames.c (fini_ssanames): VEC_free it.
25136         (make_ssa_name_fn): Update for VECness of free_ssanames.
25137         (release_ssa_name, release_dead_ssa_names): Likewise.
25138         * tree.h (struct tree_ssa_name): Include tree_typed instead of
25139         tree_common.
25140         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
25141         TS_TYPED instead of TS_COMMON.
25142
25143 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
25144
25145         * postreload-gcse.c (gcse_after_reload_main): Add calls to
25146         statistics_counter_event.
25147         * tree-ssa-copyrename.c (stats): Define.
25148         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
25149         statistics_counter_event.
25150         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
25151         (bswap_stats, widen_mul_stats): Define.
25152         (insert_reciprocals): Increment rdivs_inserted.
25153         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
25154         rfuncs_inserted.  Add calls to statistics_counter_event.
25155         (execute_cse_sincos_1): Increment inserted.
25156         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
25157         statistics_counter_event.
25158         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
25159         of bswap_stats.  Add calls to statistics_counter_event.
25160         (convert_mult_to_widen): Increment widen_mults_inserted.
25161         (convert_plusminus_to_widen): Increment maccs_inserted.
25162         (convert_mult_to_fma): Increment fmas_inserted.
25163         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
25164         calls to statistics_counter_event.
25165
25166 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
25167
25168         PR rtl-optimization/48455
25169         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
25170         `temp_costs->mem_cost'.
25171
25172 2011-04-13  Jan Hubicka  <jh@suse.cz>
25173
25174         * ipa-inline.h: New file.
25175         * ipa-inline-analysis.c: New file. Broken out of ...
25176         * ipa-inline.c: ... this file; update toplevel comment;
25177         include ipa-inline.h
25178         (inline_summary): Move to ipa-inline.h
25179         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
25180         ipa-inline-analysis.c.
25181         (cgraph_estimate_time_after_inlining): Rename to
25182         estiamte_time_after_inlining; move to ipa-inline-analysis.c
25183         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
25184         to estimate_edge_growth.
25185         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
25186         rename to estimate_size_after_inlining.
25187         (cgraph_mark_inline_edge): Update for new naming convention.
25188         (cgraph_check_inline_limits): Likewise.
25189         (cgraph_edge_badness): Likewise.
25190         (cgraph_decide_recursive_inlining): Likewise.
25191         (cgraph_decide_inlining_of_small_functions): Likewise.
25192         (cgraph_decide_inlining_incrementally): Likewise.
25193         (cgraph_estimate_growth): Rename to estimate_growth; move to
25194         ipa-inline-analysis.c.
25195         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
25196         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
25197         (compute_inline_parameters): Likewise.
25198         (compute_inline_parameters_for_current): Likewise.
25199         (pass_inline_parameters): Likewise.
25200         (inline_indirect_intraprocedural_analysis): Likewise.
25201         (analyze_function): Rename to inline_analyze_function; likewise.
25202         (add_new_function): Move to ipa-inline-analysis.c.
25203         (inline_generate_summary): Likewise.
25204         (inline_read_summary): Likewise.
25205         (inline_write_summary): Likewise.
25206         * Makefile.in (ipa-inline-analysis.c): New file.
25207
25208 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25209
25210         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
25211         * configure: Regenerate.
25212
25213 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
25214
25215         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
25216         instead of tree_common.
25217         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
25218         Likewise.
25219         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
25220         TS_TYPED rather than TS_COMMON.
25221         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
25222
25223 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
25224
25225         PR target/45263
25226         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
25227         r20 around calls of __tablejump_elpm__
25228
25229 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
25230
25231         PR middle-end/48591
25232         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
25233         NULL.
25234         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
25235
25236 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
25237
25238         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
25239         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
25240         (cfi_vec): New typedef.
25241         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
25242         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
25243         (cie_cfi_vec): New static variable.
25244         (cie_cfi_head): Delete.
25245         (add_cfi): Accept a cfi_vec * as first argument. All callers and
25246         declaration changed. Use vector rather than list operations.
25247         (new_cfi): Don't initialize the dw_cfi_next field.
25248         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
25249         rather than list operations.
25250         (lookup_cfa): Use vector rather than list operations.
25251         (output_cfis): New argument upto. Accept a cfi_vec rather than
25252         a dw_cfi_ref list head as argument. All callers changed.
25253         Iterate over the vector using upto as a maximum index.
25254         (output_all_cfis): New static function.
25255         (output_fde): Use vector rather than list operations. Use the
25256         new upto argument for output_cfis rather than manipulating a
25257         list.
25258         (dwarf2out_begin_prologue): Change initializations to match
25259         new struct members.
25260         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
25261         from the vector length rather than searching for the end of a list.
25262         Use output_all_cfis.
25263         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
25264
25265 2011-04-13  Nick Clifton  <nickc@redhat.com>
25266
25267         * config/rx/rx.md (movmemsi): Do not use this pattern when
25268         volatile pointers are involved.
25269
25270 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
25271
25272         * config/i386/sse.md (pinsrbits): Remove.
25273         (sse2_packsswb): Merge with *avx_packsswb.
25274         (sse2_packssdw): Merge with *avx_packssdw.
25275         (sse2_packuswb): Merge with *avx_packuswb.
25276         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
25277         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
25278         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
25279         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
25280         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
25281         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
25282         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
25283         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
25284         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
25285         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
25286         (sse2_loadld): Merge with *avx_loadld.
25287         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
25288         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
25289         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
25290         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
25291         (vec_concatv2di): Merge with *vec_concatv2di_avx.
25292
25293 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
25294
25295         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
25296         calling TREE_CHAIN.
25297         * print-tree.c (print_node): Likewise.
25298         * tree-inline.c (copy_tree_r): Likewise.
25299         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
25300         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
25301         instead of TS_COMMON.
25302         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
25303         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
25304         (copy_node_stat): Zero TREE_CHAIN only if necessary.
25305         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
25306         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
25307         ...and these...
25308         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
25309         * tree.h: ...here.
25310         (TREE_CHAIN): Check for a TS_COMMON structure.
25311         (TREE_TYPE): Check for a TS_TYPED structure.
25312
25313 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
25314
25315         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
25316         cgraph_get_create_node instead of cgraph_node.
25317
25318 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
25319
25320         * c-parser.c (c_parser_initelt): Updated call to
25321         objc_build_message_expr.
25322         (c_parser_postfix_expression): Likewise.
25323
25324 2011-04-12  Kai Tietz  <ktietz@redhat.com>
25325
25326         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
25327         MASK_MS_BITFIELD_LAYOUT bit.
25328
25329 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
25330
25331         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
25332         assert it is always true.
25333         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
25334         moves.
25335
25336 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
25337
25338         * c-parser.c (c_lex_one_token): Rewritten conditional used when
25339         compiling Objective-C to be more efficient.
25340
25341 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
25342
25343         * opts-common.c (decode_cmdline_options_to_array): Remove variable
25344         argv_copied.
25345
25346 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
25347
25348         * recog.h, genoutput.c, optabs.c: Revert last patch.
25349
25350 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
25351
25352         PR target/48090
25353         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
25354
25355 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
25356
25357         * recog.h (insn_operand_data): Add an "allows_mem" field.
25358         * genoutput.c (output_operand_data): Initialize it.
25359         * optabs.c (maybe_legitimize_operand_same_code): New function.
25360         (maybe_legitimize_operand): Use it when matching the original
25361         op->value.
25362
25363 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
25364
25365         * genpreds.c (process_define_predicate): Move most processing
25366         to gensupport.c.  Continue to validate the expression.
25367         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
25368         (process_define_predicate): Move processing to gensupport.c.
25369         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
25370         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
25371         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
25372         argument.
25373         (valid_predicate_name_p): New function, split out from old
25374         genpreds.c:process_define_predicate.
25375         (process_define_predicate): New function, combining code from
25376         old genpreds.c and genrecog.c functions.
25377         (process_rtx): Call it for DEFINE_PREDICATE and
25378         DEFINE_SPECIAL_PREDICATE.
25379
25380 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
25381
25382         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
25383         size of a '%A' memory reference.
25384         (T_DREG, T_QREG): New neon_builtin_type_bits.
25385         (arm_init_neon_builtins): Assert that the load and store operands
25386         are neon_struct_operands.
25387         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
25388         (NEON_ARG_MEMORY): New builtin_arg.
25389         (neon_dereference_pointer): New function.
25390         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
25391         Handle NEON_ARG_MEMORY.
25392         (arm_expand_neon_builtin): Update after above interface changes.
25393         Use NEON_ARG_MEMORY for loads and stores.
25394         * config/arm/predicates.md (neon_struct_operand): New predicate.
25395         * config/arm/iterators.md (V_two_elem): Tweak formatting.
25396         (V_three_elem): Use BLKmode for accesses that have no associated mode.
25397         (V_four_elem): Tweak formatting.
25398         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
25399         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
25400         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
25401         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
25402         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
25403         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
25404         (neon_vst4<mode>): Replace pointer operand with a memory operand.
25405         Use %A in the output template.
25406         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
25407         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
25408         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
25409         the width of the memory access.  Remove post-increment.
25410         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
25411
25412 2011-04-12  Nick Clifton  <nickc@redhat.com>
25413
25414         * config/v850/v850.c (expand_prologue): Do not use the CALLT
25415         instruction for interrupt handlers if the target is the basic V850
25416         architecture.
25417         (expand_epilogue): Likewise.
25418
25419 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
25420
25421         PR rtl-optimization/48549
25422         * combine.c (propagate_for_debug): Also stop after BB_END of
25423         this_basic_block.  Process LAST and just stop processing after it.
25424         (combine_instructions): If last_combined_insn has been deleted,
25425         set last_combined_insn to its PREV_INSN.
25426
25427 2011-04-12  Richard Guenther  <rguenther@suse.de>
25428
25429         PR tree-optimization/46076
25430         * gimple.h (struct gimple_statement_call): Add fntype field.
25431         (gimple_call_fntype): Adjust.
25432         (gimple_call_set_fntype): New function.
25433         * gimple.c (gimple_build_call_1): Set the call function type.
25434         * gimplify.c (gimplify_call_expr): Preserve the function
25435         type the frontend used for the call.
25436         (gimplify_modify_expr): Likewise.
25437         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
25438         function type.
25439         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
25440         function type.
25441         * tree-ssa.c (useless_type_conversion_p): Function pointer
25442         conversions are useless.
25443
25444 2011-04-12  Martin Jambor  <mjambor@suse.cz>
25445
25446         * cgraph.h (cgraph_node): Remove function declaration.
25447         (cgraph_create_node): Declare.
25448         (cgraph_get_create_node): Likewise.
25449         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
25450         Updated all callers.
25451         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
25452         the decl does not already exist.  Call cgraph_get_create_node instead
25453         of cgraph_node.
25454         (cgraph_get_create_node): New function.
25455         (cgraph_same_body_alias): Update comment.
25456         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
25457         assert it does not return NULL.
25458         (cgraph_update_edges_for_call_stmt): Likewise.
25459         (cgraph_clone_edge): Likewise.
25460         (cgraph_create_virtual_clone): Likewise.
25461         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
25462         instead of cgraph_node.
25463         (cgraph_add_new_function): Call cgraph_create_node or
25464         cgraph_get_create_node instead of cgraph_node.
25465         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
25466         instead of cgraph_node.
25467         (record_eh_tables): Likewise.
25468         (mark_address): Likewise.
25469         (mark_load): Likewise.
25470         (build_cgraph_edges): Call cgraph_get_create_node instead
25471         of cgraph_node.
25472         (rebuild_cgraph_edges): Likewise.
25473         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
25474         instead of cgraph_node.
25475         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
25476         cgraph_node.
25477         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
25478         cgraph_create_node instead of cgraph_node.
25479         * c-decl.c (finish_function): Call cgraph_get_create_node instead
25480         of cgraph_node.
25481         * lto-cgraph.c (input_node): Likewise.
25482         * lto-streamer-in.c (input_function): Likewise.
25483         * varasm.c (mark_decl_referenced): Likewise.
25484         (assemble_alias): Likewise.
25485
25486 2011-04-12  Martin Jambor  <mjambor@suse.cz>
25487
25488         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
25489         instead of cgraph_node and assert it does not return NULL.
25490         * lto-streamer-in.c (lto_read_body): Likewise.
25491         * omp-low.c (new_omp_context): Likewise.
25492         (create_task_copyfn): Likewise.
25493         * tree-emutls.c (lower_emutls_function_body): Likewise.
25494         * matrix-reorg.c (transform_allocation_sites): Likewise.
25495
25496 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
25497
25498         PR c/48552
25499         * c-typeck.c (build_asm_expr): Error out on attempts to use
25500         void type outputs or inputs for constraints that allow reg or
25501         don't allow memory.
25502
25503 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
25504             Richard Earnshaw  <rearnsha@arm.com>
25505
25506         PR target/48250
25507         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
25508         to use sign-magnitude offsets. Reject unsupported unaligned
25509         cases. Add detailed description in comments.
25510         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
25511         condition from TARGET_32BIT to TARGET_ARM.
25512
25513 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
25514
25515         * tree.h (struct typed_tree): New.
25516         (struct tree_common): Include it instead of tree_base.
25517         (TREE_TYPE): Update for new location of type field.
25518         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
25519         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
25520         (union tree_node): Add typed field.
25521         * treestruct.def (TS_TYPED): New.
25522         * lto-streamer.c (check_handled_ts_structures): Handle it.
25523         * tree.c (MARK_TS_TYPED): New macro.
25524         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
25525
25526 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
25527
25528         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
25529         (force_nonfallthru): Do not alter the loop nest if no basic block
25530         was created.
25531
25532 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
25533
25534         * config/i386/sse.md (VI): New mode iterator.
25535         (SSEMODEI): Remove.
25536         (AVX256MODEI): Ditto.
25537         (AVXMODEF4P): Ditto.
25538         (avxvecpsmode): Ditto.
25539         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
25540         (sse2_andnot<mode>3): New expander.
25541         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
25542         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
25543         (<any_logic:code><mode>3): Use VI mode iterator.
25544         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
25545         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
25546         (*andnottf3): Handle AVX three-operand constraints.
25547         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
25548
25549 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
25550             Robert Millan  <rmh@gnu.org>
25551
25552         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
25553         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
25554         GNU_USER_DYNAMIC_LINKER64): Define.
25555         (REG_NAME): Don't undefine.
25556         (MD_UNWIND_SUPPORT): Undefine.
25557         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
25558         (REG_NAME): Don't undefine.
25559         (MD_UNWIND_SUPPORT): Undefine.
25560         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
25561
25562 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
25563
25564         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
25565         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
25566
25567 2011-04-11  Xinliang David Li  <davidxl@google.com>
25568
25569         * value-profile.c (check_ic_target): New function.
25570         (gimple_ic_transform): Sanity check indirect call target.
25571         * gimple-low.c (gimple_check_call_args): Interface change.
25572         (gimple_check_call_matching_types): New function.
25573         * tree-inline.c (tree_can_inline_p): Call new function.
25574
25575 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
25576
25577         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
25578         tree-pretty-print.h & realmpfr.h.
25579
25580 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
25581
25582         PR middle-end/48464
25583         * ira.c (setup_pressure_classes): Fix typo in loop condition.
25584         (setup_allocno_and_important_classes): Ditto.
25585
25586 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
25587
25588         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
25589         GNU_USER_DYNAMIC_LINKER.
25590         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
25591         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25592         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
25593         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
25594         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
25595         GNU_USER_TARGET_OS_CPP_BUILTINS.
25596         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
25597         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25598         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
25599         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25600         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
25601         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
25602         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
25603         GNU_USER_TARGET_OS_CPP_BUILTINS.
25604         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25605         GNU_USER_DYNAMIC_LINKER.
25606         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25607         GNU_USER_TARGET_OS_CPP_BUILTINS.
25608         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
25609         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25610         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
25611         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25612         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
25613         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
25614         GNU_USER_DYNAMIC_LINKER64): Remove.
25615         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
25616         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25617         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25618         GNU_USER_DYNAMIC_LINKER.
25619         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25620         GNU_USER_TARGET_OS_CPP_BUILTINS.
25621         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25622         GNU_USER_TARGET_OS_CPP_BUILTINS.
25623         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
25624         to GNU_USER_TARGET_OS_CPP_BUILTINS.
25625         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25626         GNU_USER_TARGET_OS_CPP_BUILTINS.
25627         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
25628         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
25629         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
25630         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
25631         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25632         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25633         GNU_USER_DYNAMIC_LINKER.
25634         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
25635         GNU_USER_TARGET_OS_CPP_BUILTINS.
25636         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
25637         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25638         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25639         GNU_USER_DYNAMIC_LINKER.
25640         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
25641         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25642         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
25643         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25644         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25645         GNU_USER_DYNAMIC_LINKER.
25646         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
25647         GNU_USER_DYNAMIC_LINKERN32.
25648         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
25649         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
25650         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
25651         GNU_USER_DYNAMIC_LINKER32.
25652         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
25653         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25654         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25655         GNU_USER_DYNAMIC_LINKER.
25656         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
25657         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25658         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
25659         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25660         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
25661         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
25662         GNU_USER_DYNAMIC_LINKER32.
25663         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
25664         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
25665         GNU_USER_DYNAMIC_LINKER.
25666         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
25667         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25668         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
25669         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
25670         GNU_USER_DYNAMIC_LINKER64.
25671         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
25672         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25673         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25674         GNU_USER_DYNAMIC_LINKER.
25675         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
25676         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25677         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25678         GNU_USER_DYNAMIC_LINKER.
25679         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
25680         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25681         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
25682         GNU_USER_DYNAMIC_LINKER32.
25683         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
25684         GNU_USER_DYNAMIC_LINKER64.
25685         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
25686         GNU_USER_DYNAMIC_LINKER64.
25687         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
25688         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25689         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
25690         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25691         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
25692
25693 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
25694
25695         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
25696         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
25697         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
25698         GNU_USER_DYNAMIC_LINKER.
25699         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
25700         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
25701         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
25702         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
25703         GNU_USER_DYNAMIC_LINKER64.
25704         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
25705         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
25706         GNU_USER_LINK_EMULATION.
25707         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
25708         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
25709         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
25710         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
25711         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
25712         CPP_SPEC, CC1_SPEC): Remove.
25713         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
25714         (GNU_USER_DYNAMIC_LINKER): Define.
25715         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
25716         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
25717         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
25718         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
25719         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
25720         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
25721         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
25722         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
25723         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
25724         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
25725         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
25726         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
25727         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
25728         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
25729         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
25730         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
25731         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
25732         GNU_USER_DYNAMIC_LINKER.
25733         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
25734         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
25735         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
25736         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
25737         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
25738         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
25739         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
25740         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
25741         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
25742         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
25743
25744 2011-04-11  Kai Tietz  <ktietz@redhat.com>
25745
25746         PR target/9601
25747         PR target/11772
25748         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
25749         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
25750         comment.
25751         (ix86_is_msabi_thiscall): Removed.
25752         (ix86_is_type_thiscall): Likewise.
25753         (ix86_get_callcvt): New function.
25754         (ix86_comp_type_attributes): Simplify check.
25755         (ix86_function_regparm): Use ix86_get_callcvt for calling
25756         convention attribute checks.
25757         (ix86_return_pops_args): Likewise.
25758         (ix86_static_chain): Likewise.
25759         (x86_this_parameter): Likewise.
25760         (x86_output_mi_thunk): Likewise.
25761         (ix86_function_type_abi): Optimize check for types without attributes.
25762         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
25763         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
25764         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
25765         by flag-values.
25766         (IX86_BASE_CALLCVT): Helper macro.
25767         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
25768         Use ix86_get_callcvt for calling convention attribute checks and avoid
25769         symbol-decoration for stdcall in TARGET_RTD case.
25770         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
25771         Likewise.
25772         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
25773         for declaration.
25774
25775 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
25776
25777         * config/i386/sse.md (VI_128): New mode iterator.
25778         (VI12_128): Rename from SSEMODE12.
25779         (VI14_128): Rename from SSEMODE14.
25780         (VI124_128): New mode iterator.
25781         (VI24_128): Rename from SSEMODE248.
25782         (VI248_128): Rename from SSEMODE248.
25783         (SSEMODE124C8): Remove.
25784         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
25785         (*sse2_<plusminus_insn><mode>3): Merge with
25786         *avx_<plusminus_insn><mode>3.
25787         (*mulv8hi3): Merge with *avx_mulv8hi3.
25788         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
25789         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
25790         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
25791         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
25792         (ashr<mode>3): Merge with *avx_ashr<mode>3.
25793         (lshr<mode>3): Merge with *avx_lshr<mode>3.
25794         (ashl<mode>3): Merge with *avx_ashl<mode>3.
25795         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
25796         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
25797         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
25798         (*<smaxmin:code>v8hi3): Ditto.
25799         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
25800         (*<smaxmin:code>v16qi3): Ditto.
25801         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
25802         (*sse2_eq<mode>3): Ditto.
25803         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
25804         (*sse2_gt<mode>3): Ditto.
25805         (vcondv2di): Split out of vcond<mode>.
25806         (vconduv2di): Split out of vcondu<mode>.
25807
25808 2011-04-11  Richard Guenther  <rguenther@suse.de>
25809
25810         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
25811         before calling tree_low_cst.
25812
25813 2011-04-11  Richard Guenther  <rguenther@suse.de>
25814
25815         * stor-layout.c (layout_type): Compute all array index size operations
25816         in the original type.
25817         (initialize_sizetypes): Add comment.
25818         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
25819
25820 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
25821
25822         * common.opt (Tbss=, Tdata=, Ttext=): New options.
25823
25824 2011-04-11  Martin Jambor  <mjambor@suse.cz>
25825
25826         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
25827         of cgraph_node, handle NULL return value.
25828         (cgraph_global_info): Likewise.
25829         (cgraph_rtl_info): Likewise.
25830         * tree-inline.c (estimate_num_insns): Likewise.
25831         * gimplify.c (unshare_body): Likewise.
25832         (unvisit_body): Likewise.
25833         (gimplify_body): Likewise.
25834         * predict.c (optimize_function_for_size_p): Likewise.
25835         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
25836         (call_may_clobber_ref_p_1): Likewise.
25837         * varasm.c (function_section_1): Likewise.
25838         (assemble_start_function): Likewise.
25839
25840 2011-04-11  Martin Jambor  <mjambor@suse.cz>
25841
25842         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
25843         of cgraph_node.
25844         * final.c (rest_of_clean_state): Likewise.
25845         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
25846         * passes.c (pass_init_dump_file): Likewise.
25847         (execute_all_ipa_transforms): Likewise.
25848         (function_called_by_processed_nodes_p): Likewise.
25849         * predict.c (maybe_hot_frequency_p): Likewise.
25850         (probably_never_executed_bb_p): Likewise.
25851         (compute_function_frequency): Likewise.
25852         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
25853         (unnest_nesting_tree_1): Likewise.
25854         (lower_nested_functions): Likewise.
25855         * tree-optimize.c (execute_fixup_cfg): Likewise.
25856         (tree_rest_of_compilation): Likewise.
25857         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
25858         * tree-sra.c (ipa_early_sra): Likewise.
25859         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
25860         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
25861         * ipa.c (record_cdtor_fn): Likewise.
25862         * ipa-inline.c (cgraph_early_inlining): Likewise.
25863         (compute_inline_parameters_for_current): Likewise.
25864         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
25865         * ipa-pure-const.c (local_pure_const): Likewise.
25866         * ipa-split.c (split_function): Likewise.
25867         (execute_split_functions): Likewise.
25868         * cgraphbuild.c (build_cgraph_edges): Likewise.
25869         (rebuild_cgraph_edges): Likewise.
25870         (cgraph_rebuild_references): Likewise.
25871         (remove_cgraph_callee_edges): Likewise.
25872         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
25873         (verify_cgraph_node): Likewise.
25874         (cgraph_analyze_functions): Likewise.
25875         (cgraph_preserve_function_body_p): Likewise.
25876         (save_inline_function_body): Likewise.
25877         (save_inline_function_body): Likewise.
25878         * tree-inline.c (copy_bb): Likewise.
25879         (optimize_inline_calls): Likewise.
25880
25881 2011-04-11  Martin Jambor  <mjambor@suse.cz>
25882
25883         PR tree-optimization/48195
25884         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
25885         ipa_check_create_edge_args.
25886         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
25887         ipa_check_create_edge_args.
25888         * ipa-inline.c (inline_generate_summary): Do not call
25889         ipa_check_create_node_params and ipa_check_create_edge_args.
25890         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
25891         ipa_check_create_edge_args.
25892
25893 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
25894
25895         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
25896         instead of loop.
25897         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
25898         * function.c (record_hard_reg_sets): Likewise.
25899         * ira.c (compute_regs_asm_clobbered): Likewise.
25900         * sched-deps.c (sched_analyze_1): Likewise.
25901         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
25902
25903 2011-04-09  Xinliang David Li  <davidxl@google.com>
25904
25905         PR tree-optimization/PR48484
25906         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
25907         has_valid_pred lazily
25908
25909 2011-04-09  Duncan Sands  <baldrick@free.fr>
25910
25911         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
25912
25913 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
25914
25915         * combine.c (combine_validate_cost): Adjust comments.  Set registered
25916         cost of I0 to zero at the end, if any.
25917
25918 2011-04-08  Xinliang David Li  <davidxl@google.com>
25919
25920         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
25921         to insane profile data.
25922
25923 2011-04-08  Xinliang David Li  <davidxl@google.com>
25924
25925         * ipa-cp.c (ipcp_update_profiling): Correct
25926          negative scale factor due to insane profile data.
25927
25928 2011-04-08  Xinliang David Li  <davidxl@google.com>
25929
25930         * final.c (dump_basic_block_info): New function.
25931         (final): Dump basic block.
25932         (final_scan_insn): Remove old dump.
25933
25934 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
25935
25936         PR target/47829
25937         * config.gcc (i386-*-freebsd): Disable unwind table generation for
25938         crtbegin/crtend.
25939
25940 2011-04-08  Michael Matz  <matz@suse.de>
25941
25942         PR middle-end/48389
25943         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
25944         functions.
25945         (rebuild_jump_labels): Call rebuild_jump_labels_1.
25946         * rtl.h (rebuild_jump_labels_chain): Declare.
25947         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
25948         insns inserted on edges.
25949
25950 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
25951
25952         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
25953         * config/arm/arm-arches.def: New.
25954         * config/arm/arm-opts.h: New.
25955         * config/arm/genopt.sh: New.
25956         * config/arm/arm-tables.opt: New (generated).
25957         * config/arm/arm.c (arm_handle_option, arm_target_help,
25958         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
25959         (all_architectures): Get most table contents from arm-arches.def.
25960         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
25961         arm_selected_tune here.
25962         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
25963         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
25964         (march=, mcpu=, mtune=): Use Enum and Var.
25965         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
25966         (arm.o): Update dependencies.
25967
25968 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
25969
25970         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
25971         of header_file.
25972         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
25973         (write_typed_alloc_defns): Likewise.
25974         (main): Calls write_typed_alloc_defns with output_header.
25975
25976 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
25977
25978         PR inline-asm/48435
25979         * ira-color.c (setup_profitable_hard_regs): Add comments.
25980         Don't take prohibited hard regs into account.
25981         (setup_conflict_profitable_regs): Rename to
25982         get_conflict_profitable_regs.
25983         (check_hard_reg_p): Check prohibited hard regs.
25984
25985 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
25986
25987         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
25988         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
25989         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
25990
25991 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25992
25993         PR target/48366
25994         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
25995         move from floating point to shift amount register.
25996         (emit_move_sequence): Remove secondary reload support for floating
25997         point to shift amount amount register copies.
25998         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
25999         amount register copies.
26000         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
26001         register, return false if mode isn't a scalar integer mode.
26002         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
26003
26004 2011-04-08  Richard Guenther  <rguenther@suse.de>
26005
26006         * gimple.c (gimple_call_flags): Remove kludge.
26007
26008 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
26009
26010         * sel-sched.c (sel_region_init): Move call to
26011         sel_setup_region_sched_flags after setup_current_loop_nest.
26012
26013 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
26014
26015         PR rtl-optimization/48272
26016         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
26017         init_insn_reg_pressure_info.  Adjust a caller.
26018         * sched-int.h (init_insn_reg_pressure_info): Declare.
26019         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
26020         when sched-pressure is enabled.
26021
26022 2011-04-08  Richard Guenther  <rguenther@suse.de>
26023
26024         * gimple.c (gimple_set_modified): Do not queue calls to
26025         MODIFIED_NORETURN_CALLS here ...
26026         * tree-ssa-operands.c (update_stmt_operands): ... but here.
26027
26028 2011-04-08  Richard Guenther  <rguenther@suse.de>
26029
26030         PR lto/48467
26031         * toplev.c (lang_dependent_init): Do not open asm_out_file
26032         in WPA mode, nor perform debug machinery initialization.
26033         (finalize): Do not unlink asm_out_file in WPA mode.
26034
26035 2011-04-08  Richard Guenther  <rguenther@suse.de>
26036
26037         * gimple.h (gimple_call_fntype): New function.
26038         (gimple_call_return_type): Use it.
26039         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
26040         * gimple-low.c (gimple_check_call_args): Likewise.
26041         * gimple.c (gimple_call_flags): Likewise.
26042         (gimple_call_arg_flags): Likewise.
26043         (gimple_call_return_flags): Likewise.
26044         * tree-cfg.c (verify_gimple_call): Likewise.
26045         (do_warn_unused_result): Likewise.
26046         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
26047         * value-prof.c (gimple_ic_transform): Fix fndecl check.
26048
26049 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
26050
26051         PR rtl-optimization/48235
26052         * sel-sched.c (code_motion_process_successors): Recompute the last
26053         insn in basic block if control flow changed.
26054         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
26055         Update condition for ilist_remove.
26056
26057 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
26058
26059         PR rtl-optimization/48302
26060         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
26061         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
26062         it to record added preheader blocks.
26063         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
26064         on to sel_add_loop_preheaders.
26065         (sel_region_init): Move call to setup_current_loop_nest after
26066         sel_init_bbs.
26067
26068 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
26069
26070         PR target/48273
26071         * cfgloop.h (loop_has_exit_edges): New helper.
26072         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
26073         non-clonable.
26074         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
26075         that have no exit edges.
26076
26077 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
26078
26079         PR rtl-optimization/48442
26080         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
26081         all callers.  Adjust assert.
26082
26083 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
26084
26085         PR tree-optimization/48377
26086         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
26087         is_packed to true even for types with smaller TYPE_ALIGN than
26088         TYPE_SIZE.
26089
26090 2011-04-08  Richard Guenther  <rguenther@suse.de>
26091
26092         PR bootstrap/48513
26093         * doc/tm.texi: Re-generate.
26094
26095 2011-04-08  Wei Guozhi  <carrot@google.com>
26096
26097         PR target/47855
26098         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
26099         * config/arm/arm.c (arm_attr_length_push_multi): New function.
26100         * config/arm/arm.md (*push_multi): Change the length computation to
26101         call a C function.
26102
26103 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
26104
26105         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
26106         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
26107         * doc/tm.texi: Regenerate.
26108         * system.h (ASM_OUTPUT_BSS): Poison.
26109         * varasm.c (asm_output_bss): Remove function.
26110         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
26111
26112         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
26113         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
26114         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
26115         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
26116         Likewise.
26117         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
26118         Likewise.
26119         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
26120         Likewise.
26121         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
26122
26123 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
26124
26125         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
26126         EnumValue lines.
26127
26128 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
26129
26130         * config/m68k/m68k.c (m68k_handle_option): Don't handle
26131         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
26132         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
26133         OPT_mcpu32.
26134         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
26135         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
26136         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
26137         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
26138         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
26139         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
26140         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
26141         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
26142         options.  Don't map other m68k options manually.  Don't handle
26143         old-style options as canonical.
26144         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
26145         * doc/install.texi (m68k-*-*): Document binutils version requirement.
26146
26147 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
26148
26149         * basic-block.h (force_nonfallthru): Move to...
26150         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
26151         (force_nonfallthru): ...here.
26152         * cfghooks.c (force_nonfallthru): New function.
26153         * cfgrtl.c (force_nonfallthru): Rename into...
26154         (rtl_force_nonfallthru): ...this.
26155         (commit_one_edge_insertion): Do not set AUX field.
26156         (commit_edge_insertions): Do not discover new basic blocks.
26157         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
26158         (cfg_layout_rtl_cfg_hooks): Likewise.
26159         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
26160         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
26161         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
26162
26163 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
26164
26165         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
26166         Remove macros.
26167
26168 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
26169
26170         * config/i386/sse.md: Update copyright year.
26171         (avxcvtvecmode): Remove.
26172         (sse_movhlps): Merge with *avx_movhlps.
26173         (sse_movlhps): Merge with *avx_movlhps.
26174         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
26175         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
26176         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
26177         (sse_loadhps): Merge with *avx_loadhps.
26178         (sse_storelps): Merge with *avx_storelps.
26179         (sse_loadlps): Merge with *avx_loadlps.
26180         (sse_movss): Merge with *avx_movss.
26181         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
26182         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
26183         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
26184         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
26185         (vec_set<mode>_0): Ditto.
26186         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
26187         (sse4_1_insertps): Merge with *avx_insertps.
26188         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
26189         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
26190         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
26191         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
26192         (sse2_storehpd): Merge with *avx_storehpd.
26193         (sse2_loadhpd): Merge with *avx_loadhpd.
26194         (sse2_loadlpd): Merge with *avx_loadlpd.
26195         (sse2_movsd): Merge with *avx_movsd.
26196         (*vec_concatv2df): Merge with *vec_concatv2df.
26197
26198 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
26199
26200         PR debug/48343
26201         * combine.c (combine_instructions): Add last_combined_insn,
26202         update it if insn is after it, pass it to all try_combine calls.
26203         (try_combine): Add last_combined_insn parameter, pass it instead of
26204         i3 to propagate_for_debug.
26205
26206 2011-04-07  Nick Clifton  <nickc@redhat.com>
26207
26208         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
26209         to handle MDR <-> data register transfers.
26210         (movhi_internal): Likewise.
26211
26212 2011-04-07  Alan Modra  <amodra@gmail.com>
26213
26214         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
26215         previous stack info.
26216
26217 2011-04-07  Tom de Vries  <tom@codesourcery.com>
26218
26219         PR target/43920
26220         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
26221         flow_find_cross_jump.  Swap variables to implement backward replacement.
26222         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
26223
26224 2011-04-07  Tom de Vries  <tom@codesourcery.com>
26225
26226         PR target/43920
26227         * cfgcleanup.c (walk_to_nondebug_insn): New function.
26228         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
26229         and bb2.
26230         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
26231         src1 or src2.  Redirect edges to the last basic block.  Update
26232         frequency and count on multiple basic blocks in case of fallthru.
26233
26234 2011-04-07  Tom de Vries  <tom@codesourcery.com>
26235
26236         PR target/43920
26237         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
26238         function.
26239         (old_insns_match_p): Change return type.  Replace return false/true
26240         with return dir_none/dir_both.  Use can_replace_by.
26241         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
26242         direction from dir_p.  Register replacement direction in dir, last_dir
26243         and afterlast_dir.  Handle new return type of old_insns_match_p using
26244         merge_dir.  Return replacement direction in dir_p.
26245         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
26246         return type of old_insns_match_p.
26247         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
26248         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
26249         flow_find_cross_jump.
26250         * basic-block.h (enum replace_direction): New type.
26251         (flow_find_cross_jump): Add parameter to declaration.
26252
26253 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
26254
26255         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
26256         (AVXMODEDCVTPS2DQ): Ditto.
26257         (VEC_FLOAT_MODE): Ditto.
26258         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
26259         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
26260         (<any_logic:code><mode>3): Use VF mode iterator.
26261         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
26262         Use VF mode iterator.
26263         (copysign<mode>3): Use VF mode iterator.
26264         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
26265         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
26266         (*<any_logic:code><MODEF:mode>3): Merge with
26267         *avx_<any_logic:code><MODEF:mode>3.
26268         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
26269         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
26270         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
26271         (avx_cvtdq2ps<avxmodesuffix>): Remove.
26272         (sse2_cvtdq2ps): Use %v modifier.
26273         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
26274         (avx_cvtps2dq<avxmodesuffix>): Remove.
26275         (sse2_cvtps2dq): Use %v modifier.
26276         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
26277         (avx_cvttps2dq<avxmodesuffix>): Remove.
26278         (sse2_cvttps2dq): Use %v modifier.
26279         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
26280         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
26281         (sse2_cvtsd2siq): Fix insn template.
26282         (sse2_cvtsd2siq_2): Ditto.
26283         (sse2_cvttsd2siq): Ditto.
26284         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
26285         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
26286
26287 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
26288
26289         * gcov-io.c: Use GCC Runtime Library Exception.
26290
26291 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
26292
26293         PR debug/48466
26294         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
26295         as base_reg whatever register reg has been eliminated to, instead
26296         of hardcoding STACK_POINTER_REGNUM.
26297
26298 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
26299
26300         * doc/tm.texi.in: Document C target hooks as separate from general
26301         target hooks.
26302         * doc/tm.texi: Regenerate.
26303         * genhooks.c (struct hook_desc): Add docname field.
26304         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
26305         docname field.
26306         (hook_array): Include c-target.def.
26307         (emit_documentation): Use docname field in output.
26308         (emit_init_macros): Take docname argument.  Only emit definitions
26309         for hooks matching docname.
26310         (main): Expect additional arguments in all cases.  Pass argument
26311         to emit_init_macros.
26312         * target.def: Move initial macro definitions and comments to
26313         target-hooks-macros.h.
26314         (gcc_targetcm): Move to c-family/c-target.def.
26315         * target.h (targetcm): Move declaration to c-family/c-target.h.
26316         * targhooks.c (default_handle_c_option): Move to
26317         c-family/c-opts.c.
26318         * targhooks.h (default_handle_c_option): Move declaration to
26319         c-family/c-common.h.
26320         * target-hooks-macros.h: New file.
26321         * config.gcc (target_has_targetcm): Define and use to add to
26322         c_target_objs and cxx_target_objs.
26323         * config/default-c.c: New file.
26324         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
26325         of target.h and target-def.h.
26326         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
26327         (darwin_objc_construct_string, darwin_cfstring_ref_p,
26328         darwin_check_cfstring_format_arg): Make static.
26329         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
26330         TARGET_STRING_OBJECT_REF_TYPE_P,
26331         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
26332         * config/darwin-protos.h (darwin_objc_construct_string,
26333         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
26334         declare.
26335         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
26336         TARGET_STRING_OBJECT_REF_TYPE_P,
26337         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
26338         * config/t-darwin (darwin-c.o): Update dependencies.
26339         * system.h (TARGET_HAS_TARGETCM): Poison.
26340         * Makefile.in (TARGET_H): Update.
26341         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
26342         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
26343         (default-c.o): New target.
26344         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
26345         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
26346         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
26347         c-target.def.
26348         (build/genhooks.o): Update dependencies.
26349
26350 2011-04-06  Richard Guenther  <rguenther@suse.de>
26351
26352         * ipa-inline.c (enum inlining_mode): Remove.
26353         (cgraph_flatten): Use some other token.
26354         (cgraph_edge_early_inlinable_p): New function, split out from ...
26355         (cgraph_perform_always_inlining): New function, split out from ...
26356         (cgraph_decide_inlining_incrementally): ... here.
26357         (cgraph_mark_inline_edge): Adjust.
26358         (cgraph_early_inlining): Re-structure.
26359         (pass_early_inline): Require SSA form.
26360
26361 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
26362             Julian Brown  <julian@codesourcery.com>
26363             Mark Shinwell  <shinwell@codesourcery.com>
26364
26365         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
26366         LO_REGS only for Thumb-1.
26367         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
26368         be used in short instructions when optimising for size on Thumb-2.
26369
26370 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
26371
26372         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
26373         associated with user returns to be preserved.
26374
26375 2011-04-06  Tristan Gingold  <gingold@adacore.com>
26376
26377         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
26378         symbol_queue_size, DBXOUT_DECR_NESTING,
26379         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
26380         if XCOFF_DEBUGGING_INFO.
26381
26382 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
26383
26384         * config/i386/i386.md (attribute isa): New.
26385         (attribute enabled): New.
26386         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
26387         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
26388         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
26389         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
26390         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
26391         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
26392         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
26393         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
26394
26395         * config/i386/sse.md (VF): New mode iterator.
26396         (VF1): Ditto.
26397         (VF2): Ditto.
26398         (VF_128): Ditto.
26399         (SSEMODEF4): Remove.
26400         (attribute sse): Handle V8SF and V4DF modes.
26401         (<absneg:code><mode>2): Use VF mode iterator.
26402         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
26403         mode iterator.
26404         (<plusminus_insn><mode>3): Use VF mode iterator.
26405         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
26406         Use VF mode iterator.
26407         (<sse>_vm<plusminus_insn><mode>3): Merge with
26408         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
26409         (mul<mode>3): Use VF mode iterator.
26410         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
26411         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
26412         mode iterator.
26413         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
26414         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
26415         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
26416         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
26417         mode iterator.
26418         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
26419         Use VF1 mode iterator.
26420         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
26421         (sqrt<VF2:mode>2): New expander.
26422         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
26423         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
26424         and sqrtv2df2.  Use VF mode iterator.
26425         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
26426         mode iterator.
26427         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
26428         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
26429         Use VF1 mode iterator.
26430         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
26431         (<smaxmin:code><mode>3): Use VF mode iterator.
26432         (*<smaxmin:code><mode>3_finite): Merge with
26433         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
26434         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
26435         (<sse>_vm<smaxmin:code><mode>2): Merge with
26436         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
26437         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
26438         mode iterator.
26439         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
26440         mode iterator.
26441         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
26442         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
26443         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
26444         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
26445         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
26446         VF mode iterator.
26447         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
26448         Use VF_128 mode iterator.
26449         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
26450         mode iterator.
26451         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
26452         VF_128 mode iterator.
26453         (vcond<mode>): Use VF mode iterator.
26454         * config/i386/predicates.md (sse_comparison_operator): Merge with
26455         avx_comparison_float_operator.  Do not declare as special_predicate.
26456         * config/i386/i386.c (struct builtin_description): Update for renamed
26457         compare patterns.
26458         (ix86_expand_args_builtin): Ditto.
26459         (ix86_expand_sse_compare_mask): Ditto.
26460
26461 2011-04-06  Richard Guenther  <rguenther@suse.de>
26462
26463         * tree-inline.c (estimate_num_insns): For calls simply account
26464         for all passed arguments and a used return value.
26465
26466 2011-04-06  Richard Guenther  <rguenther@suse.de>
26467
26468         PR tree-optimization/47663
26469         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
26470         call_stmt_time fields.
26471         (cgraph_edge_inlinable_p): Declare.
26472         (cgraph_edge_recursive_p): New inline function.
26473         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
26474         (cgraph_clone_edge): Copy it.
26475         * ipa-inline.c (cgraph_estimate_edge_time): New function.
26476         Account for call stmt time.
26477         (cgraph_estimate_time_after_inlining): Take edge argument.
26478         (cgraph_estimate_edge_growth): Account call stmt size.
26479         (cgraph_estimate_size_after_inlining): Take edge argument.
26480         (cgraph_mark_inline_edge): Adjust.
26481         (cgraph_check_inline_limits): Likewise.
26482         (cgraph_recursive_inlining_p): Remove.
26483         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
26484         (cgraph_decide_recursive_inlining): Take edge argument and
26485         adjust.
26486         (cgraph_decide_inlining_of_small_functions): Do not avoid
26487         diags for recursive inlining here.
26488         (cgraph_flatten): Adjust.
26489         (cgraph_decide_inlining_incrementally): Likewise.
26490         (estimate_function_body_sizes): Remove call cost handling.
26491         (compute_inline_parameters): Initialize caller edge call costs.
26492         (cgraph_estimate_edge_growth): New function.
26493         (cgraph_estimate_growth): Use it.
26494         (cgraph_edge_badness): Likewise.
26495         (cgraph_check_inline_limits): Take an edge argument.
26496         (cgraph_decide_inlining_of_small_functions): Adjust.
26497         (cgraph_decide_inlining): Likewise.
26498         * tree-inline.c (estimate_num_insns): Only account for call
26499         return value if it is used.
26500         (expand_call_inline): Avoid diagnostics on recursive inline
26501         functions here.
26502         * lto-cgraph.c (lto_output_edge): Output edge call costs.
26503         (input_edge): Input edge call costs.
26504
26505 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26506
26507         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
26508
26509 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
26510
26511         * doc/invoke.texi (Spec Files): Fix typo.
26512
26513 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
26514
26515         * profile.c (branch_prob): Move declaration of local variable.  Remove
26516         obsolete ??? comment.  Expand the location explicitly instead of using
26517         the LOCATION_FILE and LOCATION_LINE macros.
26518
26519 2011-04-06  Wei Guozhi  <carrot@google.com>
26520
26521         PR target/47855
26522         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
26523         (arm_cond_branch): Likewise.
26524         (arm_cond_branch_reversed): Likewise.
26525         (arm_jump): Likewise.
26526         (push_multi): Likewise.
26527         * config/arm/constraints.md (Py): New constraint.
26528
26529 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26530
26531         PR bootstrap/48471
26532         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
26533         Move these...
26534         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
26535         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
26536         #ifdef DBX_DEBUGGING_INFO.
26537
26538 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
26539
26540         PR bootstrap/48403
26541         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
26542         if old and new states differ.
26543
26544 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
26545
26546         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
26547         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
26548         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
26549         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
26550         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
26551         mcfv4e): Use Alias.
26552         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
26553         ColdFire options to -mcpu= options.
26554
26555 2011-04-05  Jeff Law  <law@redhat.com>
26556
26557         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
26558         check if BB is a successor of LOOP->header and return
26559         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
26560
26561 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
26562
26563         * cprop.c (struct reg_use): Remove.
26564         (reg_use_table): Make an array of RTX.
26565         (find_used_regs, constprop_register, local_cprop_pass,
26566         bypass_block): Simplify users of reg_use_table.
26567         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
26568         on one of the uses found by find_used_regs.
26569
26570 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26571
26572         PR bootstrap/48469
26573         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
26574         declaration.
26575
26576 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26577
26578         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
26579         as an rtx.
26580         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
26581
26582 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
26583
26584         PR middle-end/48441
26585         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
26586
26587 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26588
26589         * combine.c: Include obstack.h.
26590         (struct insn_link): Define.
26591         (uid_log_links): Adjust type.
26592         (FOR_EACH_LOG_LINK): New macro.
26593         (insn_link_obstack): Declare.
26594         (alloc_insn_link): Define.
26595         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
26596         type of link variables.
26597         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
26598         (try_combine, record_promoted_values, distribute_notes): Likewise.
26599         (distribute_links): Likewise.  Tweak prototype.
26600         (clear_log_links): Delete.
26601         (adjust_for_new_dest): Call alloc_insn_link.
26602         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
26603
26604 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26605
26606         * gcse.c (modify_mem_list): Convert to an array of VECs.
26607         (canon_modify_mem_list, compute_transp): Tweak formatting.
26608         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
26609         (load_killed_in_block_p): Likewise.
26610         (record_last_mem_set_info): Likewise.
26611         (clear_modify_mem_tables): Likewise.
26612
26613 2011-04-05  Tom de Vries  <tom@codesourcery.com>
26614
26615         PR middle-end/48461
26616         * function.c (emit_use_return_register_into_block): Only define if
26617         HAVE_return.
26618
26619 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
26620
26621         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
26622
26623 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
26624
26625         * config/rx/rx-opts.h: New.
26626         * config/rx/rx.c (rx_cpu_type): Remove.
26627         (rx_handle_option): Don't assert that global structures are in
26628         use.  Access variables via opts pointer.  Defer most handling of
26629         OPT_mint_register_.  Use error_at.
26630         (rx_option_override): Handle deferred OPT_mint_register_ here.
26631         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
26632         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
26633         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
26634         (rx_cpu_types): New Enum and EnumValue entries.
26635         (mint-register=): Use Defer and use Var accordingly.
26636
26637 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26638
26639         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
26640         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
26641         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
26642         Move these...
26643         (debug_free_queue, debug_nesting, symbol_queue_index):
26644         ...and these...
26645         * dbxout.c: ...to here.  Make static.
26646
26647 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26648
26649         * gcse.c (modify_pair): Define.  Define a VEC of it.
26650         (canon_modify_mem_list): Convert to an array of VECs.
26651         (free_insn_expr_list_list): Delete.
26652         (clear_modify_mem_tables): Call VEC_free instead.
26653         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
26654         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
26655         (canon_list_insert, compute_transp): Likewise.
26656
26657 2011-04-05  Tom de Vries  <tom@codesourcery.com>
26658
26659         PR target/43920
26660         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
26661         for size.
26662
26663 2011-04-05  Tom de Vries  <tom@codesourcery.com>
26664
26665         PR target/43920
26666         * function.c (emit_use_return_register_into_block): New function.
26667         (thread_prologue_and_epilogue_insns): Use
26668         emit_use_return_register_into_block.
26669
26670 2011-04-05  Tom de Vries  <tom@codesourcery.com>
26671
26672         PR target/43920
26673         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
26674         insn.
26675
26676 2011-04-05  Tom de Vries  <tom@codesourcery.com>
26677
26678         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
26679
26680 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
26681
26682         * config/arm/arm.md (define_constants for unspec): Replace with
26683         define_c_enum.
26684         (define_constants for unspecv): Replace with define_c_enum.
26685         * config/arm/neon.md (define_constants for unspec): Replace with
26686         define_c_enum.
26687
26688 2011-04-04  Richard Henderson  <rth@redhat.com>
26689
26690         PR bootstrap/48400
26691         * dwarf2out.c (output_line_info): Always emit line info from
26692         at least one section.
26693         (dwarf2out_init): Create text_section_line_info here ...
26694         (set_cur_line_info_table): ... not here.
26695
26696 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
26697
26698         PR target/48380
26699         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
26700         not called.
26701
26702         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
26703
26704 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
26705
26706         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
26707         (expr_equiv_p): Remove.
26708         (insert_set_in_table): Look at <dest, src> pair instead of expr.
26709         (hash_scan_set): Update call to insert_set_in_table.
26710         (dump_hash_table): Dump <dest, src> pair.
26711         (lookup_set): Simplify.  Lookup <dest, src> pair.
26712         (compute_transp): Remove, fold heavily simplified code into...
26713         (compute_local_properties): ...here.  Expect COMP and TRANSP
26714         unconditionally.
26715         (find_avail_set): Take set directly from struct expr.
26716         (find_bypass-set): Likewise.
26717         (bypass_block): Likewise.
26718         (cprop_insn): Likewise.  Remove redundant INSN_P test.
26719
26720         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
26721         checks on form of COND from find_implicit_sets to here.
26722         (find_implicit_sets): Cleanup control flow. Split critical edges
26723         if it exposes implicit sets.  Allocate/resize implicit_sets as
26724         necessary.
26725         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
26726         changed something.  Run df_analyze after find_implicit_sets if any
26727         edges were split.  Do not allocate implicit_sets here.
26728
26729         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
26730         (gcse_obstack): Renamed to cprop_obstack.
26731         (GNEW, GNEWVEC, GNEWVAR): Remove.
26732         (gmalloc): Remove.
26733         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
26734         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
26735         (gcse_alloc): Likewise, and rename to cprop_alloc.
26736         (alloc_gcse_men, free_gcse_mem): Remove.
26737         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
26738         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
26739         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
26740
26741         * cprop.c (oprs_not_set_p): Remove.
26742         (mark_set, mark_clobber): Remove.
26743         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
26744         (reg_not_set_p): New function.
26745         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
26746         (cprop_insn): Likewise.
26747         (cprop_jump): Use FOR_EACH_EDGE.
26748
26749 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
26750
26751         PR bootstrap/48403
26752         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
26753         (rank_for_schedule): Use scheduled_insns vector instead of
26754         last_scheduled_insn.
26755         (ok_for_early_queue_removal): Likewise.
26756         (queue_to_ready): Search forward in nonscheduled_insns_begin if
26757         we have a dbg_cnt.
26758         (choose_ready): Likewise.
26759         (commit_schedule): Use VEC_iterate.
26760         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
26761         a dbg_cnt, use it and ensure the first insn is in the ready list.
26762         (haifa_sched_init): Allocate scheduled_insns.
26763         (sched_extend_ready_list): Don't allocate it; reserve space.
26764         (haifa_sched_finish): Free it.
26765
26766 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
26767
26768         * optc-gen.awk: Always remove type from Variable entry before
26769         recording in var_seen.
26770
26771 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
26772
26773         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
26774         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
26775         call to tidy_fallthru_edges.
26776
26777 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
26778
26779         * doc/options.texi (ToLower): Document.
26780         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
26781         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
26782         * opts.h (cl_option): Add cl_tolower field.
26783         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
26784         arguments with lowercase strings.
26785         * config/rx/rx.opt (mcpu=): Add ToLower.
26786         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
26787         argument.
26788
26789 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
26790
26791         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
26792
26793 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
26794
26795         * config/vax/vax.c: Include reload.h.
26796
26797 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
26798
26799         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
26800         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
26801         (sparc_preferred_reload_class): New function.
26802
26803 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
26804
26805         PR debug/48401
26806         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
26807         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
26808
26809 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
26810
26811         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
26812         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
26813
26814 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
26815
26816         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
26817         (ASM_OUTPUT_ALIGNED_BSS): Define.
26818
26819 2011-04-03  Michael Matz  <matz@suse.de>
26820
26821         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
26822         and next_slot members.
26823         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
26824         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
26825         (lto_streamer_cache_append): Declare.
26826         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
26827         unsigned index, remove offset parameter, ensure that we append
26828         or update existing entries.
26829         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
26830         parameter, update next_slot for append.
26831         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
26832         parameter.
26833         (lto_streamer_cache_insert_at): Likewise.
26834         (lto_streamer_cache_append): New function.
26835         (lto_streamer_cache_lookup): Use unsigned index.
26836         (lto_streamer_cache_get): Likewise.
26837         (lto_record_common_node): Don't test tree_node_can_be_shared.
26838         (preload_common_node): Adjust call to lto_streamer_cache_insert.
26839         (lto_streamer_cache_delete): Don't free offsets member.
26840         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
26841         (lto_output_string_with_length): Use lto_output_data_stream.
26842         (lto_output_tree_header): Remove ix parameter, don't write it.
26843         (lto_output_builtin_tree): Likewise.
26844         (lto_write_tree): Adjust callers to above, don't track and write
26845         offset, write unsigned index.
26846         (output_unreferenced_globals): Don't emit all global vars.
26847         (write_global_references): Use unsigned indices.
26848         (lto_output_decl_state_refs): Likewise.
26849         (write_symbol): Likewise.
26850         * lto-streamer-in.c (lto_input_chain): Move earlier.
26851         (input_function): Use unsigned index.
26852         (input_alias_pairs): Don't read and then ignore all global vars.
26853         (lto_materialize_tree): Remove ix_p parameter, don't read index,
26854         don't pass it back, use lto_streamer_cache_append.
26855         (lto_register_var_decl_in_symtab): Use unsigned index.
26856         (lto_register_function_decl_in_symtab): Likewise.
26857         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
26858         index.
26859         (lto_get_builtin_tree): Don't read index, use
26860         lto_streamer_cache_append.
26861         (lto_read_tree): Adjust call to lto_materialize_tree.
26862
26863         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
26864         don't use function calls in arguments to MIN.
26865
26866         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
26867         twice.
26868
26869         * gimple.c (gimple_type_leader_entry): Mark deletable.
26870
26871 2011-04-03  Alan Modra  <amodra@gmail.com>
26872
26873         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
26874
26875 2011-04-03  Michael Matz  <matz@suse.de>
26876
26877         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
26878         an integer.
26879         * tree.h (tree_decl_non_common.vindex): Adjust comment.
26880
26881 2011-04-03  Michael Matz  <matz@suse.de>
26882
26883         * cgraphbuild.c (record_reference): Canonicalize constructor values.
26884         * gimple-fold.c (canonicalize_constructor_val): Accept being called
26885         without function context.
26886         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
26887         current_function_decl and cfun.
26888
26889 2011-04-03  Michael Matz  <matz@suse.de>
26890
26891         * tree.c (decl_init_priority_insert): Don't create entry for
26892         default priority.
26893         (decl_fini_priority_insert): Ditto.
26894         (fields_compatible_p, find_compatible_field): Remove.
26895         * tree.h (fields_compatible_p, find_compatible_field): Remove.
26896         * gimple.c (gimple_compare_field_offset): Adjust block comment.
26897
26898 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
26899
26900         * combine.c (try_combine): Remove useless local variable.
26901
26902 2011-04-03  Richard Guenther  <rguenther@suse.de>
26903             Ira Rosen  <ira.rosen@linaro.org>
26904
26905         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
26906         non-variable offsets and compare the remaining bases of the two
26907         accesses instead of looking for exact same data-ref.
26908
26909 2011-04-02  Kai Tietz  <ktietz@redhat.com>
26910
26911         PR target/48416
26912         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
26913
26914         * i386.c (ix86_is_msabi_thiscall): New helper function.
26915         (ix86_is_type_thiscall): New helper function.
26916         (ix86_comp_type_attributes): Handle thiscall for method-functions
26917         special.
26918         (init_cumulative_args): Likewise.
26919         (find_drap_reg): Likewise.
26920         (ix86_static_chain): Likewise.
26921         (x86_this_parameter): Likewise.
26922         (x86_output_mi_thunk): Likewise.
26923
26924 2011-04-01  Olivier Hainque  <hainque@adacore.com>
26925             Nicolas Setton  <setton@adacore.com>
26926             Eric Botcazou  <ebotcazou@adacore.com>
26927
26928         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
26929         (add_gnat_descriptive_type_attribute): New function.
26930         (gen_array_type_die): Call it.
26931         (gen_enumeration_type_die): Likewise.
26932         (gen_struct_or_union_type_die): Likewise.
26933         (modified_type_die): Likewise.
26934         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
26935         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
26936         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
26937
26938 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
26939
26940         PR bootstrap/48148
26941         * dwarf2out.c (resolve_addr): Don't call force_decl_die
26942         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
26943
26944         Revert:
26945         2011-03-17  Richard Guenther  <rguenther@suse.de>
26946
26947         PR bootstrap/48148
26948         * lto-cgraph.c (input_overwrite_node): Clear the abstract
26949         origin for decls in other ltrans units.
26950         (input_varpool_node): Likewise.
26951
26952 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
26953
26954         PR middle-end/48335
26955         * expr.c (expand_assignment): Handle all possibilities
26956         if TO_RTX is CONCAT.
26957         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
26958         (store_split_bit_field): If SUBREG_REG (op0) or
26959         op0 itself has smaller mode than word, return it
26960         for offset 0 and const0_rtx for out-of-bounds stores.
26961         If word is const0_rtx, skip it.
26962
26963 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
26964
26965         * config/h8300/h8300.c (print_operand_address): Rename to...
26966         (h8300_print_operand_address): ...this. Make static. Adjust comments.
26967         Call h8300_print_operand and h8300_print_operand_address instead of
26968         print_operand and print_operand_address. Declare.
26969         (print_operand): Renake to...
26970         (h8300_print_operand): ...this. Make static. Adjust comments.
26971         Call h8300_print_operand instead of print_operand. Declare.
26972         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
26973         (h8300_register_move_cost): Likewise.
26974         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
26975         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
26976         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
26977         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
26978         * config/h8300/h8300-protos.h (print_operand): Delete.
26979         (print_operand_address): Delete.
26980
26981 2011-04-01  Richard Henderson  <rth@redhat.com>
26982
26983         PR 48400
26984         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
26985         in strict mode before dwarf4.  Re-order tests to early out
26986         before switching sections.
26987
26988 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
26989
26990         * config/h8300/constraints.md: New file.
26991         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
26992         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
26993         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
26994         * config/h8300/predicates.md (bit_operand): Likewise.
26995         (incdec_operand): Use satisfies_constraint_M and
26996         satisfies_constraint_O.  Don't use C code block.
26997         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
26998         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
26999         (compute_mov_length): Use satisfies_constraint_G.
27000         (fix_bit_operand): Use satisfies_constraint_U.
27001         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
27002         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
27003         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
27004         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
27005         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
27006         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
27007         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27008         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
27009         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
27010         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
27011         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
27012         (EXTRA_MEMORY_CONSTRAINT): Delete.
27013
27014 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
27015             Michael Meissner  <meissner@linux.vnet.ibm.com>
27016
27017         PR target/48262
27018         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
27019         operands, as per the specifications.
27020
27021         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
27022         (vec_extract_evenv4sf): Ditto.
27023         (vec_extract_evenv8hi): Ditto.
27024         (vec_extract_evenv16qi): Ditto.
27025         (vec_extract_oddv4si): Ditto.
27026
27027 2011-03-31  Mark Wielaard  <mjw@redhat.com>
27028
27029         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
27030         high_pc attribute if the CU has no associated code. Only output
27031         DW_AT_entry_pc for CU if not generating strict dwarf and
27032         dwarf_version < 4.
27033
27034 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
27035
27036         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
27037         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
27038         out of ...
27039         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
27040         * final.c (final_start_function): Call the new function rather
27041         than using a NULL argument for dwarf2out_frame_debug.
27042
27043         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
27044         that contains the prologue.
27045
27046         * haifa-sched.c (queue_insn): New arg REASON.  All callers
27047         changed.  Print it in debugging output.
27048
27049         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
27050
27051         * sched-ebb.c (begin_schedule_ready): Remove second argument.
27052         Split most of the code into...
27053         (begin_move_insn): ... here.  New function.
27054         (ebb_sched_info): Add a pointer to it.
27055         * haifa-sched.c (scheduled_insns): New static variable.
27056         (sched_extend_ready_list): Allocate it.
27057         (schedule_block): Use it to record the order of scheduled insns.
27058         Perform RTL changes to move insns only after all scheduling
27059         decisions have been made.
27060         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
27061         begin_move_insn field.
27062         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
27063         * sched-int.h (struct haifa_sched_info): Remove second argument
27064         from begin_schedule_ready hook.  Add new member begin_move_insn.
27065         * sched-rgn.c (begin_schedule_ready): Remove second argument.
27066         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
27067
27068         * haifa-sched.c (prune_ready_list): New function, broken out of
27069         schedule_block.
27070         (schedule_block): Use it.
27071
27072 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27073
27074         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
27075
27076 2011-04-01  Kai Tietz  <ktietz@redhat.com>
27077
27078         * config.gcc (*-*-mingw*): Allow as option the
27079         posix threading model.
27080         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
27081         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
27082         definition.
27083         (CPP_SPEC): Add pthread/no-pthread handling.
27084         (LIB_SPEC): Likewise.
27085         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
27086         (LIB_SPEC): Likewise.
27087         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
27088         flag to pass -pthread option for shared libgcc build.
27089         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
27090         for shared libgcc build.
27091         * config/i386/t-mingw-pthread: New file.
27092         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
27093         New define to enable use of library pthread by default.
27094         * config/i386/mingw.opt (pthread): New driver option.
27095         (no-pthread): New driver option.
27096         * config/i386/cygming.opt: Make sure trailing empty line is retained.
27097         * config/i386/mingw-w64.opt: Likewise.
27098
27099 2011-04-01  Gary Funck  <gary@intrepid.com>
27100
27101         * c-decl.c (grokdeclarator): Fix formatting.
27102
27103 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
27104
27105         * expr.c (emit_block_move_via_movmem): Use n_generator_args
27106         instead of n_operands.
27107         (set_storage_via_setmem): Likewise.
27108         * optabs.c (maybe_gen_insn): Likewise.
27109         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
27110         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
27111         (mips_expand_builtin_direct): Likewise.
27112         * config/spu/spu.c (expand_builtin_args): Likewise.
27113
27114 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
27115
27116         * recog.h (insn_data_d): Add n_generator_args.
27117         * genoutput.c (data): Likewise.
27118         (output_insn_data): Print it.
27119         (max_opno, num_dups): Delete.
27120         (scan_operands): Just fill in "d->operand[...]".
27121         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
27122
27123 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
27124
27125         * gensupport.h (pattern_stats): New structure.
27126         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
27127         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
27128         (max_operand_1, max_operand_vec): Delete.
27129         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
27130
27131 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
27132
27133         * emit-rtl.c (emit_pattern_after_setloc): New function.
27134         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
27135         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
27136         (emit_pattern_after): New function.
27137         (emit_insn_after, emit_jump_insn_after): Call it.
27138         (emit_call_insn_after, emit_debug_insn_after): Likewise.
27139         (emit_pattern_before_setloc): New function.
27140         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
27141         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
27142         Likewise.
27143         (emit_pattern_before): New function.
27144         (emit_insn_before, emit_jump_insn_before): Call it.
27145         (emit_call_insn_before, emit_debug_insn_before): Likewise.
27146
27147 2011-03-31  Richard Henderson  <rth@redhat.com>
27148
27149         * dwarf2out.c (dw_separate_line_info_ref): Remove.
27150         (dw_separate_line_info_entry): Remove.
27151         (enum dw_line_info_opcode): New.
27152         (dw_line_info_entry): Use it.
27153         (dw_line_info_table, dw_line_info_table_p): New.
27154         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
27155         (line_info_table, line_info_label_num): Remove.
27156         (line_info_table_in_use): Remove.
27157         (separate_line_info_table): Remove.
27158         (separate_line_info_table_allocated): Remove.
27159         (separate_line_info_table_in_use): Remove.
27160         (LINE_INFO_TABLE_INCREMENT): Remove.
27161         (line_info_label_num): New.
27162         (cur_line_info_table): New.
27163         (text_section_line_info, cold_text_section_line_info): New.
27164         (separate_line_info): New.
27165         (SEPARATE_LINE_CODE_LABEL): Remove.
27166         (print_dwarf_line_table): Remove.
27167         (debug_dwarf): Don't dump it.
27168         (output_one_line_info_table): New.
27169         (output_line_info): Use it.
27170         (new_line_info_table): New.
27171         (set_cur_line_info_table): New.
27172         (dwarf2out_switch_text_section): Use it.
27173         (dwarf2out_begin_function): Likewise.
27174         (push_dw_line_info_entry): New.
27175         (dwarf2out_source_line): Rewrite for new line info tables.
27176         (dwarf2out_init): Remove dead initailizations.
27177
27178 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
27179
27180         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
27181         various flags.
27182         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
27183         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
27184         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
27185         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
27186         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
27187         * opt-functions.awk (flag_init, switch_bit_fields): New.
27188         (switch_flags): Don't handle flags moved to bit-fields.  Don't
27189         generate CL_MISSING_OK or CL_SAVE.
27190         * optc-gen.awk: Update to generate bit-field output as well as
27191         flags field.
27192         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
27193         bit-field instead of CL_REJECT_DRIVER flag.
27194         * opts-common.c (generate_canonical_option,
27195         decode_cmdline_option): Use bit-fields instead of CL_* flags.
27196         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
27197         instead of CL_REJECT_NEGATIVE flag.
27198         * toplev.c (print_switch_values): Use cl_report bit-field instead
27199         of CL_REPORT flag.
27200
27201 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
27202
27203         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
27204         a zero minimum index only if it is redundant.
27205
27206 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
27207
27208         PR rtl-optimization/48381
27209         * ira-color.c (assign_hard_reg): Use hard reg set intersection
27210         instead of ira_class_hard_reg_index for calculating conflicting
27211         hard registers.
27212
27213 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
27214
27215         * cprop.c: Clean up hash table building.
27216         (reg_avail_info): Remove.
27217         (oprs_available_p): Remove.
27218         (record_last_reg_set_info): Remove.
27219         (record_last_set_info): Remove.
27220         (reg_available_p): New function.
27221         (gcse_constant_p): Do not treat unfolded conditions as constants.
27222         (make_set_regs_unavailable): New function.
27223         (hash_scan_set): Simplify with new reg_available_p.
27224         (compute_hash_table_work): Traverse insns stream only once.
27225         Do not compute reg_avail_info. Traverse insns in reverse order.
27226         Record implicit sets after recording explicit sets from the block.
27227
27228 2011-03-31  Michael Matz  <matz@suse.de>
27229
27230         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
27231
27232 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
27233
27234         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
27235         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
27236         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27237         (h8300_mode_dependent_address_p): New function.
27238         (h8300_get_index): Make static.
27239
27240 2011-03-31  Jeff Law  <law@redhat.com>
27241
27242         * reload1.c (elimination_effects): Fix typo in recent change.
27243
27244         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
27245         typo potentially leading to null pointer dereference.
27246
27247         * caller-save.c (new_saved_hard_reg): Eliminate return value.
27248         (setup_save_areas): Corresponding changes to avoid useless
27249         assignments.
27250
27251         * jump.c (reversed_comparison_code_parts): Avoid successive return
27252         statements when REVERSE_CONDITION is defined.
27253
27254         * expr.c (expand_assignment): Avoid useless assignments.
27255         (expand_expr_real_1): Likewise.
27256         (expand_expr_real_2): Avoid useless statements.
27257
27258         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
27259
27260         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
27261
27262         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
27263         statements.
27264
27265         * stmt.c (expand_expr_stmt): Avoid useless assignment.
27266
27267 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
27268
27269         PR target/47109
27270         * doc/tm.texi.in (TARGET_VERSION): Remove.
27271         * doc/tm.texi: Regenerate.
27272         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
27273         * collect2.c (main): Don't use TARGET_VERSION.
27274         * mips-tdump.c (main): Don't use TARGET_VERSION.
27275         * mips-tfile.c (main): Don't use TARGET_VERSION.
27276         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
27277         * config/rs6000/vxworksae.h: Remove.
27278         * config/alpha/alpha.h (TARGET_VERSION): Remove.
27279         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
27280         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
27281         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
27282         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
27283         * config/arm/arm.h (TARGET_VERSION): Remove.
27284         * config/arm/coff.h (TARGET_VERSION): Remove.
27285         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
27286         * config/arm/elf.h (TARGET_VERSION): Remove.
27287         * config/arm/freebsd.h (TARGET_VERSION): Remove.
27288         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
27289         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
27290         * config/arm/pe.h (TARGET_VERSION): Remove.
27291         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
27292         * config/arm/semi.h (TARGET_VERSION): Remove.
27293         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
27294         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
27295         * config/arm/vxworks.h (TARGET_VERSION): Remove.
27296         * config/avr/avr.h (TARGET_VERSION): Remove.
27297         * config/bfin/bfin.h (TARGET_VERSION): Remove.
27298         * config/fr30/fr30.h (TARGET_VERSION): Remove.
27299         * config/frv/frv.h (TARGET_VERSION): Remove.
27300         * config/h8300/h8300.h (TARGET_VERSION): Remove.
27301         * config/i386/cygwin.h (TARGET_VERSION): Remove.
27302         * config/i386/darwin.h (TARGET_VERSION): Remove.
27303         * config/i386/darwin64.h (TARGET_VERSION): Remove.
27304         * config/i386/djgpp.h (TARGET_VERSION): Remove.
27305         * config/i386/freebsd.h (TARGET_VERSION): Remove.
27306         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
27307         * config/i386/gnu.h (TARGET_VERSION): Remove.
27308         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
27309         * config/i386/i386elf.h (TARGET_VERSION): Remove.
27310         * config/i386/linux.h (TARGET_VERSION): Remove.
27311         * config/i386/linux64.h (TARGET_VERSION): Remove.
27312         * config/i386/lynx.h (TARGET_VERSION): Remove.
27313         * config/i386/mingw32.h (TARGET_VERSION): Remove.
27314         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
27315         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
27316         * config/i386/netware.h (TARGET_VERSION): Remove.
27317         * config/i386/nto.h (TARGET_VERSION): Remove.
27318         * config/i386/openbsd.h (TARGET_VERSION): Remove.
27319         * config/i386/vxworks.h (TARGET_VERSION): Remove.
27320         * config/ia64/elf.h (TARGET_VERSION): Remove.
27321         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
27322         * config/ia64/hpux.h (TARGET_VERSION): Remove.
27323         * config/ia64/linux.h (TARGET_VERSION): Remove.
27324         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
27325         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
27326         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
27327         * config/lm32/lm32.h (TARGET_VERSION): Remove.
27328         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
27329         * config/m32c/m32c.h (TARGET_VERSION): Remove.
27330         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
27331         * config/m32r/m32r.h (TARGET_VERSION): Remove.
27332         * config/m68k/linux.h (TARGET_VERSION): Remove.
27333         * config/m68k/m68k.h (TARGET_VERSION): Remove.
27334         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
27335         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
27336         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
27337         * config/mep/mep.h (TARGET_VERSION): Remove.
27338         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
27339         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
27340         * config/mips/iris6.h (MACHINE_TYPE): Remove.
27341         * config/mips/linux.h (TARGET_VERSION): Remove.
27342         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
27343         * config/mips/vxworks.h (TARGET_VERSION): Remove.
27344         * config/mmix/mmix.h (TARGET_VERSION): Remove.
27345         * config/mn10300/linux.h (TARGET_VERSION): Remove.
27346         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
27347         * config/pa/pa.h (TARGET_VERSION): Remove.
27348         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
27349         * config/picochip/picochip.h (TARGET_VERSION): Remove.
27350         * config/rs6000/aix.h (TARGET_VERSION): Remove.
27351         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
27352         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
27353         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
27354         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
27355         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
27356         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
27357         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
27358         * config/rs6000/linux.h (TARGET_VERSION): Remove.
27359         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
27360         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
27361         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
27362         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
27363         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
27364         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
27365         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
27366         * config/s390/linux.h (TARGET_VERSION): Remove.
27367         * config/s390/s390.h (TARGET_VERSION): Remove.
27368         * config/s390/tpf.h (TARGET_VERSION): Remove.
27369         * config/score/score.h (TARGET_VERSION): Remove.
27370         * config/sh/linux.h (TARGET_VERSION): Remove.
27371         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
27372         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
27373         * config/sh/sh.h (TARGET_VERSION): Remove.
27374         * config/sh/sh64.h (TARGET_VERSION): Remove.
27375         * config/sh/superh.h (TARGET_VERSION): Remove.
27376         * config/sh/vxworks.h (TARGET_VERSION): Remove.
27377         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
27378         * config/sparc/linux.h (TARGET_VERSION): Remove.
27379         * config/sparc/linux64.h (TARGET_VERSION): Remove.
27380         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
27381         TARGET_NAME32, TARGET_NAME): Remove.
27382         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
27383         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
27384         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
27385         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
27386         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
27387         * config/spu/spu.h (TARGET_VERSION): Remove.
27388         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
27389         * config/v850/v850.h (TARGET_VERSION): Remove.
27390         * config/vax/linux.h (TARGET_VERSION): Remove.
27391         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
27392         * config/xtensa/elf.h (TARGET_VERSION): Remove.
27393         * config/xtensa/linux.h (TARGET_VERSION): Remove.
27394
27395 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
27396
27397         PR target/48142
27398         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
27399         frame-related from frame-unrelated adjustments to the stack pointer.
27400
27401 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
27402
27403         * common.opt (fdebug-types-section): Move earlier.
27404         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
27405
27406 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
27407
27408         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
27409         var.
27410
27411 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
27412
27413         * tree.h (CASE_CHAIN): Define.
27414         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
27415         (gimple_redirect_edge_and_branch): Likewise.
27416
27417 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
27418
27419         PR middle-end/48367
27420         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
27421         calculation.
27422
27423 2011-03-30  Jeff Law  <law@redhat.com>
27424
27425         * PR bootstrap/48371
27426         * reload1.c (reload): Fix botch in last change.
27427
27428         * reload.h (struct reload): Fix typo introduced in last change.
27429
27430 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
27431
27432         * config/arm/arm.opt (mhard-float, msoft-float): Mark
27433         Undocumented.  Remove help text.
27434         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
27435         -mhard-float.
27436
27437 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
27438
27439         * doc/options.texi (NegativeAlias): Document.
27440         (Alias): Mention NegativeAlias.
27441         * opt-functions.awk: Handle NegativeAlias.
27442         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
27443         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
27444         * opts.h (CL_NEGATIVE_ALIAS): Define.
27445         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
27446         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
27447         OPT_mspe_.
27448         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
27449         Alias entries.
27450         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
27451         mno-spe and mno-isel instead of mspe=no and -misel=no.
27452
27453 2011-03-29  Mark Wielaard  <mjw@redhat.com>
27454
27455         * common.opt (fdebug-types-section): New flag.
27456         * doc/invoke.texi: Document new -fno-debug-types-section flag.
27457         * dwarf2out.c (use_debug_types): New define.
27458         (struct die_struct): Mark die_id with GTY desc use_debug_types.
27459         (print_die): Guard output of type unit signatures using
27460         use_debug_types.
27461         (build_abbrev_table): Replace assert of dwarf_version >= 4
27462         with assert on use_debug_types.
27463         (size_of_die): Likewise.
27464         (unmark_dies): Likewise.
27465         (value_format): Decide AT_ref_external form on use_debug_types.
27466         (output_die): Replace dwarf_version version check guard with
27467         use_debug_types where appropriate.
27468         (modified_type_die): Likewise.
27469         (gen_reference_type_die): Likewise.
27470         (dwarf2out_start_source_file): Likewise.
27471         (dwarf2out_end_source_file): Likewise.
27472         (prune_unused_types_walk_attribs): Likewise.
27473         (dwarf2out_finish): Likewise.
27474
27475 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
27476
27477         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
27478
27479 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
27480
27481         PR rtl-optimization/48332
27482         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
27483         mode of input operand N and modeN to its actual mode.
27484
27485 2011-03-30  Jeff Law  <law@redhat.com>
27486
27487         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
27488         define accessor macro.
27489         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
27490         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
27491         (reg_equiv_init): Likewise.
27492         (reg_equivs_size): New variable.
27493         (reg_equiv_init_size): Remove.
27494         (allocate_initial_values): Move prototype to here from....
27495         * integrate.h (allocate_initial_values): Remove prototype.
27496         * integrate.c: Include reload.h.
27497         (allocate_initial_values): Corresponding changes.
27498         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
27499         (fix_reg_equiv_init, no_equiv): Corresponding changes.
27500         (update_equiv_regs): Corresponding changes.
27501         (ira): Corresponding changes.
27502         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
27503         (push_secondary_reload): Corresponding changes.
27504         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
27505         (make_memloc, find_reloads_address): Corresponding changes.
27506         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
27507         (find_reloads_address_1): Corresponding changes.
27508         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
27509         (refers_to_regno_for_reload_p): Corresponding changes.
27510         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
27511         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
27512         * reload1.c: Include ggc.h.
27513         (grow_reg_equivs): New function.
27514         (replace_pseudos_in, reload): Corresponding changes.
27515         (calculate_needs_all_insns, alter_regs): Corresponding changes.
27516         (eliminate_regs_1, elimination_effects): Corresponding changes.
27517         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
27518         (delete_output_reload): Likewise.
27519         * caller-save.c (mark_referenced_regs): Corresponding changes.
27520         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
27521         * frv/predicates.md (frv_load_operand): Corresponding changes.
27522         * microblaze/microblaze.c (double_memory_operand): Corresponding
27523         changes.
27524         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
27525         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
27526         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
27527         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
27528         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
27529         changes.
27530         * pa/pa.c (emit_move_sequence): Corresponding changes.
27531         * vax/vax.c (nonindexed_address_p): Corresponding changes.
27532
27533 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
27534
27535         PR target/47551
27536         * config/arm/arm.c (coproc_secondary_reload_class): Handle
27537         structure modes.  Don't check neon_vector_mem_operand for
27538         vector or structure modes.
27539
27540 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
27541             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
27542
27543         PR target/43590
27544         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
27545         operand 1 and reshuffle the operands to match.
27546         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
27547
27548 2011-03-30  Christian Schüler  <cschueler@gmx.de>
27549
27550         PR driver/48208
27551         * config/c.opt (F): Added 'Driver' to -F option.
27552
27553         PR driver/48260
27554         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
27555           handler function.
27556         * config/darwin.opt: Added '-arch' option.
27557
27558 2011-03-30  Nick Clifton  <nickc@redhat.com>
27559
27560         * config/rx/rx.md: Add peepholes and patterns to combine
27561         extending loads and simple arithmetic instructions.
27562         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
27563         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
27564         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
27565         modes to use pre-decrement and post-increment addressing.
27566         (rx_is_restricted_memory_address): Add range checking of REG+INT
27567         addresses.
27568         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
27569         (rx_memory_move_cost): Adjust cost of stores.
27570         (rx_adjust_insn_length): New function.
27571
27572 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
27573
27574         PR c/48305
27575         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
27576         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
27577         matching arg00/arg01 types.
27578
27579 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
27580
27581         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
27582         last_location to UNKNOWN_LOCATION.
27583
27584 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
27585
27586         PR target/48349
27587         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
27588         FLOAT_SSE_REGS.
27589
27590 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
27591             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27592
27593         PR bootstrap/48337
27594         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
27595         Init(PROCESSOR_V7).
27596         (sparc_cpu): Likewise.
27597         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
27598         PROCESSOR_V7.
27599
27600 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
27601
27602         PR target/48336
27603         PR middle-end/48342
27604         PR rtl-optimization/48345
27605         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
27606         hard regs for given mode from profitable regs when doing secondary
27607         allocation.
27608
27609 2011-03-29  Jeff Law  <law@redhat.com>
27610
27611         PR bootstrap/48327
27612         * tree-ssa-threadupdate.c (struct redirection_data): Remove
27613         do_not_duplicate field.
27614         (lookup_redirection_data): Corresponding changes.
27615         (create_duplicates): Always create a template block.
27616         (redirect_edges): Remove code which reused the original block
27617         when it was going to become unreachable code.
27618         (thread_block): Don't set do_not_duplicate field.
27619
27620 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
27621
27622         * lto-opts.c (register_user_option_p, lto_register_user_option):
27623         Make type argument unsigned.
27624         * lto-streamer.h (lto_register_user_option): Make type argument
27625         unsigned.
27626         * opth-gen.awk: Make CL_* macros unsigned.
27627         * opts-common.c (find_opt): Make lang_mask argument unsigned.
27628         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
27629         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
27630         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
27631         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
27632         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
27633         (find_opt): Make lang_mask argument unsigned.
27634
27635 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
27636
27637         PR rtl-optimization/48331
27638         PR rtl-optimization/48334
27639         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
27640         for any used algorithm.
27641
27642 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
27643
27644         * ira-conflicts.c (build_object_conflicts): Add unused attribute
27645         to parent_max.
27646
27647 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
27648
27649         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
27650         (alpha_option_override): Don't set alpha_sr_alias_set.
27651         (emit_frame_store_1): Use gen_frame_mem rather than calling
27652         set_mem_alias_set.
27653         (alpha_expand_epilogue): Ditto.
27654
27655 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
27656
27657         PR tree-optimization/48290
27658         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
27659         vectorization, check that relevant phis in the basic block after
27660         the inner loop are really inner loop's exit phis.
27661
27662 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
27663
27664         PR debug/48190
27665         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
27666         (cached_dw_loc_list_def): New structure.
27667         (cached_dw_loc_list): New typedef.
27668         (cached_dw_loc_list_table): New variable.
27669         (cached_dw_loc_list_table_hash): New function.
27670         (cached_dw_loc_list_table_eq): Likewise.
27671         (add_location_or_const_value_attribute): Take a bool cache_p.
27672         Cache the list when the parameter is true.
27673         (gen_formal_parameter_die): Update caller.
27674         (gen_variable_die): Likewise.
27675         (dwarf2out_finish): Likewise.
27676         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
27677         while generating debug info for the decl.
27678         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
27679         (dwarf2out_init): Initialize cached_dw_loc_list_table.
27680         (resolve_addr): Cache the result of resolving a chain of
27681         location lists.
27682
27683 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
27684
27685         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
27686         conflict object hard regset nodes have intersecting hard reg sets.
27687
27688         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
27689         after regstat_init_n_sets_and_refs.
27690
27691         * ira.c: Add more comments at the top.
27692         (setup_stack_reg_pressure_class, setup_pressure_classes):
27693         Add comments how we compute the register pressure classes.
27694         (setup_allocno_and_important_classes): Add more comments.
27695         (setup_class_translate_array, reorder_important_classes)
27696         (setup_reg_class_relations): Add comments.
27697
27698         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
27699         start of the file.
27700
27701         * ira-color.c: Add 2011 to the Copyright line.
27702         (assign_hard_reg):  Add more comments.
27703         (improve_allocation): Ditto.
27704
27705         * ira-costs.c: Add 2011 to the Copyright line.
27706         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
27707         comments.
27708         (setup_regno_cost_classes_by_mode): Ditto.
27709
27710         Initial patches from ira-improv branch:
27711
27712         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
27713
27714         * ira-build.c (ira_create_object): Remove initialization of
27715         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
27716         (ira_create_allocno): Remove initialization of
27717         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
27718         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
27719         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
27720         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
27721         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
27722         Initialize ALLOCNO_ADD_DATA.
27723         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
27724         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
27725         ALLOCNO_REG.
27726         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
27727         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
27728
27729         * ira.c (ira_reallocate): Remove.
27730         (setup_pressure_classes): Call
27731         ira_init_register_move_cost_if_necessary.  Use
27732         ira_register_move_cost instead of ira_get_register_move_cost.
27733         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
27734         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
27735
27736         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
27737         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
27738         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
27739         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
27740         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
27741         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
27742         Fix formatting.
27743         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
27744         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
27745         (struct allocno_color_data): New.
27746         (allocno_color_data_t): New typedef.
27747         (allocno_color_data): New definition.
27748         (ALLOCNO_COLOR_DATA): New macro.
27749         (struct object_color_data): New.
27750         (object_color_data_t): New typedef.
27751         (object_color_data): New definition.
27752         (OBJECT_COLOR_DATA): New macro.
27753         (update_copy_costs, calculate_allocno_spill_cost): Call
27754         ira_init_register_move_cost_if_necessary.  Use
27755         ira_register_move_cost instead of ira_get_register_move_cost.
27756         (move_spill_restore, update_curr_costs): Ditto.
27757         (allocno_spill_priority): Make it inline.
27758         (color_pass): Allocate and free allocno_color_dat and object_color_data.
27759         (struct coalesce_data, coalesce_data_t): New.
27760         (allocno_coalesce_data): New definition.
27761         (ALLOCNO_COALESCE_DATA): New macro.
27762         (merge_allocnos, coalesced_allocno_conflict_p): Use
27763         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
27764         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
27765         (coalesce_allocnos): Ditto.
27766         (setup_coalesced_allocno_costs_and_nums): Ditto.
27767         (collect_spilled_coalesced_allocnos): Ditto.
27768         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
27769         (setup_slot_coalesced_allocno_live_ranges): Ditto.
27770         (coalesce_spill_slots): Ditto.
27771         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
27772         free allocno_coalesce_data.
27773
27774         * ira-conflicts.c: Fix formatting.
27775         (process_regs_for_copy): Call
27776         ira_init_register_move_cost_if_necessary.  Use
27777         ira_register_move_cost instead of ira_get_register_move_cost.
27778         (build_object_conflicts): Optimize.
27779
27780         * ira-costs.c (record_reg_classes): Optimize.  Call
27781         ira_init_register_move_cost_if_necessary.  Use
27782         ira_register_move_cost, ira_may_move_in_cost, and
27783         ira_may_move_out_cost instead of ira_get_register_move_cost and
27784         ira_get_may_move_cost.
27785         (record_address_regs): Ditto.
27786         (scan_one_insn): Optimize.
27787         (find_costs_and_classes): Optimize.
27788         (process_bb_node_for_hard_reg_moves): Call
27789         ira_init_register_move_cost_if_necessary.  Use
27790         ira_register_move_cost instead of ira_get_register_move_cost.
27791
27792         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
27793         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
27794         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
27795         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
27796         definitions.
27797         (ira_initiate_emit_data, ira_finish_emit_data)
27798         (create_new_allocno): New functions.
27799         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
27800         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
27801         Use ira_register_move_cost instead of ira_get_register_move_cost.
27802
27803         * ira-int.h: Fix some comments.
27804         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
27805         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
27806         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
27807         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
27808         add_data.
27809         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
27810         bitfield after mode.  Make hard_regno a short int.  Make
27811         hard_regno short.  Remove first_coalesced_allocno and
27812         next_coalesced_allocno.  Move mem_optimized_dest_p,
27813         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
27814         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
27815         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
27816         temp, colorable_p.  Add new member add_data.
27817         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
27818         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
27819         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
27820         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
27821         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
27822         (ALLOCNO_ADD_DATA): New macro.
27823         (ira_emit_data_t): New typedef.
27824         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
27825         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
27826         from struct ira_allocno.
27827         (ALLOCNO_EMIT_DATA): New macro.
27828         (ira_allocno_emit_data, allocno_emit_reg): New.
27829         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
27830         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
27831         (OBJECT_ADD_DATA): New macro.
27832         (ira_reallocate): Remove.
27833         (ira_initiate_emit_data, ira_finish_emit_data): New.
27834         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
27835         (ira_init_register_move_cost_if_necessary): New.
27836         (ira_object_conflict_iter_next): Merge into
27837         ira_object_conflict_iter_cond.
27838         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
27839
27840         * ira-live.c (process_single_reg_class_operands): Call
27841         ira_init_register_move_cost_if_necessary.  Use
27842         ira_register_move_cost instead of ira_get_register_move_cost.
27843
27844         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
27845
27846         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
27847
27848         * ira-costs.c: Fix formatting.
27849         (cost_classes, cost_classes_num): Remove.
27850         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
27851         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
27852         (cost_classes_del, cost_classes_htab): New.
27853         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
27854         (initiate_regno_cost_classes, setup_cost_classes): New.
27855         (setup_regno_cost_classes_by_aclass): New.
27856         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
27857         (record_reg_classes): Use regno_cost_classes instead of
27858         cost_classes.  Move checking opposite operand up.
27859         (record_address_regs): Use regno_cost_classes
27860         instead of cost_classes.
27861         (scan_one_insn): Ditto.  Use always general register.
27862         (print_allocno_costs): Use regno_cost_classes instead of
27863         cost_classes.
27864         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
27865         (find_costs_and_classes): Set up cost classes for each registers.
27866         Use also their mode for this.  Use regno_cost_classes instead of
27867         cost_classes.
27868         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
27869         cost_classes.
27870         (free_ira_costs, ira_init_costs): Don't use cost_classes.
27871         (ira_costs, ira_set_pseudo_classes): Call
27872         initiate_regno_cost_classes and finish_regno_cost_classes.
27873
27874         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
27875
27876         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
27877
27878         * target.def (ira_cover_classes): Remove.
27879
27880         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
27881
27882         * doc/tm.texi.in: Ditto.
27883
27884         * ira-conflicts.c: Remove mentioning cover classes from the file.
27885         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
27886         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
27887
27888         * targhooks.c (default_ira_cover_classes): Remove.
27889
27890         * targhooks.h (default_ira_cover_classes): Ditto.
27891
27892         * haifa-sched.c: Remove mentioning cover classes from the file.
27893         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
27894         ira_pressure_classes and ira_pressure_classes_num instead of
27895         ira_reg_class_cover_size and ira_reg_class_cover.  Use
27896         sched_regno_pressure_class instead of sched_regno_cover_class.
27897         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
27898         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
27899
27900         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
27901         classes from the file.
27902         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
27903         (struct object_hard_regs, struct object_hard_regs_node): New.
27904         (struct ira_object): New members profitable_hard_regs,
27905         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
27906         (struct ira_allocno): Rename cover_class to aclass.  Rename
27907         cover_class_cost and updated_cover_class_cost to class_cost and
27908         updated_class_cost.  Remove splay_removed_p and
27909         left_conflict_size.  Add new members colorable_p.
27910         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
27911         (ALLOCNO_COLORABLE_P): New macro.
27912         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
27913         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
27914         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
27915         (OBJECT_...): Rename parameter C to O.
27916         (OBJECT_PROFITABLE_HARD_REGS): New macro.
27917         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
27918         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
27919         (struct target_ira_int): New members x_ira_max_memory_move_cost,
27920         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
27921         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
27922         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
27923         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
27924         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
27925         x_ira_reg_class_subunion.
27926         (ira_max_memory_move_cost, ira_max_register_move_cost)
27927         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
27928         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
27929         (ira_important_class_nums, ira_reg_class_superunion): New macros.
27930         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
27931         (ira_reg_class_union): Rename to ira_reg_class_subunion.
27932         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
27933         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
27934         (ira_tune_allocno_costs_and_cover_classes): Rename to
27935         ira_tune_allocno_costs.
27936         (ira_debug_hard_regs_forest): New.
27937         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
27938         (ira_object_conflict_iter_next): Fix comments.
27939         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
27940         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
27941         cover_class to aclass.
27942         (ira_allocate_and_accumulate_costs): Ditto.
27943         (ira_allocate_and_set_or_copy_costs): Ditto.
27944
27945         * opts.c (decode_options): Remove ira_cover_class check.
27946
27947         * ira-color.c: Remove mentioning cover classes from the file.  Use
27948         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
27949         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
27950         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
27951         (splay-tree.h): Remove include.
27952         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
27953         before copy_freq_compare_func.
27954         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
27955         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
27956         New definitions.
27957         (hard_regs_roots, hard_regs_node_vec): Ditto.
27958         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
27959         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
27960         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
27961         (create_new_object_hard_regs_node): Ditto.
27962         (add_new_object_hard_regs_node_to_forest): Ditto.
27963         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
27964         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
27965         Ditto.
27966         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
27967         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
27968         (remove_unused_object_hard_regs_nodes): Ditto.
27969         (enumerate_object_hard_regs_nodes): Ditto.
27970         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
27971         (object_hard_regs_subnode_t): Ditto.
27972         (struct object_hard_regs_subnode): Ditto.
27973         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
27974         (setup_object_hard_regs_subnode_index): Ditto.
27975         (get_object_hard_regs_subnodes_num): Ditto.
27976         (form_object_hard_regs_nodes_forest): Ditto.
27977         (finish_object_hard_regs_nodes_tree): Ditto.
27978         (finish_object_hard_regs_nodes_forest): Ditto.
27979         (allocnos_have_intersected_live_ranges_p): Rename to
27980         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
27981         (pseudos_have_intersected_live_ranges_p): Rename to
27982         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
27983         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
27984         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
27985         (update_copy_costs): Remove assert.  Skip cost update if the hard
27986         reg does not belong the class.
27987         (assign_hard_reg): Process only profitable hard regs.
27988         (uncolorable_allocnos_num): Make it scalar.
27989         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
27990         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
27991         and ira_reg_class_max_nregs.
27992         (bucket_allocno_compare_func): Check frequency first.
27993         (sort_bucket): Add compare function as a parameter.
27994         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
27995         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
27996         (push_allocno_to_stack): Rewrite for checking new allocno
27997         colorability.
27998         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
27999         (push_only_colorable): Pass new parameter to sort_bucket.
28000         (push_allocno_to_spill): Remove.
28001         (allocno_spill_priority_compare): Make it inline and rewrite.
28002         (splay_tree_allocate, splay_tree_free): Remove.
28003         (allocno_spill_sort_compare): New function.
28004         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
28005         build and use splay tree.  Choose first allocno in uncolorable
28006         allocno bucket to spill.  Remove setting spill cost.
28007         (all_conflicting_hard_regs): Remove.
28008         (setup_allocno_available_regs_num): Check only profitable hard
28009         regs.  Print info about hard regs nodes.
28010         (setup_allocno_left_conflicts_size): Remove.
28011         (put_allocno_into_bucket): Don't call
28012         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
28013         (improve_allocation): New.
28014         (color_allocnos): Call setup_profitable_hard_regs,
28015         form_object_hard_regs_nodes_forest, improve_allocation,
28016         finish_object_hard_regs_nodes_forest.  Setup spill cost.
28017         (print_loop_title): Use pressure classes.
28018         (color_allocnso): Ditto.
28019         (do_coloring): Remove allocation and freeing splay_tree_node_pool
28020         and allocnos_for_spilling.
28021         (ira_sort_regnos_for_alter_reg): Don't setup members
28022         {first,next}_coalesced_allocno.
28023         (color): Remove allocating and freeing removed_splay_allocno_vec.
28024         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
28025         prohibited_class_mode_regs.
28026
28027         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
28028         formatting.
28029         (update_allocno_pressure_excess_length): Use pressure classes.
28030         (inc_register_pressure, dec_register_pressure): Check for pressure
28031         class.
28032         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
28033         pressure class.  Use ira_reg_class_nregs instead of
28034         ira_reg_class_max_nregs.
28035         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
28036         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
28037         (single_reg_class): Use ira_reg_class_nregs instead of
28038         ira_reg_class_max_nregs.
28039         (process_bb_node_lives): Use pressure classes.
28040
28041         * ira-emit.c: Remove mentioning cover classes from the file.  Use
28042         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
28043         (change_loop): Use pressure classes.
28044         (modify_move_list): Call ira_set_allocno_class instead of
28045         ira_set_allocno_cover_class.
28046
28047         * ira-build.c: Remove mentioning cover classes from the file.  Use
28048         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
28049         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
28050         ALLOCNO_UPDATED_CLASS_COST instead of
28051         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
28052         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
28053         (ira_create_allocno): Remove initialization of
28054         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
28055         ALLOCNO_COLORABLE_P.
28056         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
28057         Update conflict regs for the objects.
28058         (create_cap_allocno): Remove assert.  Don't propagate
28059         ALLOCNO_AVAILABLE_REGS_NUM.
28060         (ira_free_allocno_costs): New function.
28061         (finish_allocno): Change a part of code into call of
28062         ira_free_allocno_costs.
28063         (low_pressure_loop_node_p): Use pressure classes.
28064         (object_range_compare_func): Don't compare classes.
28065         (setup_min_max_conflict_allocno_ids): Ditto.
28066
28067         * loop-invariant.c: Remove mentioning cover classes from the file.
28068         Use ira_pressure_classes and ira_pressure_classes_num instead of
28069         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
28070         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
28071         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
28072         Use reg_allocno_class instead of reg_cover_class.
28073         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
28074         STACK_REG_COVER_CLASS.
28075         (get_regno_cover_class): Rename to get_regno_pressure_class.
28076         (move_loop_invariants): Initialize and finalize regstat.
28077
28078         * ira.c: Remove mentioning cover classes from the file.  Add
28079         comments about coloring without cover classes.  Use ALLOCNO_CLASS
28080         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
28081         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
28082         setup_class_subset_and_memory_move_costs.
28083         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
28084         (setup_cover_and_important_classes): Rename to
28085         setup_allocno_and_important_classes.
28086         (setup_class_translate_array): New.
28087         (setup_class_translate): Call it for allocno and pressure classes.
28088         (cover_class_order): Rename to allocno_class_order.
28089         (comp_reg_classes_func): Use ira_allocno_class_translate instead
28090         of ira_class_translate.
28091         (reorder_important_classes): Set up ira_important_class_nums.
28092         (setup_reg_class_relations): Set up ira_reg_class_superunion.
28093         (print_class_cover): Rename to print_classes.  Add parameter.
28094         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
28095         Print pressure classes too.
28096         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
28097         setup_reg_subclasses.
28098         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
28099         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
28100         (setup_prohibited_class_mode_regs): Use
28101         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
28102         (clarify_prohibited_class_mode_regs): New function.
28103         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
28104         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
28105         (ira_init_once): Initialize them.
28106         (free_register_move_costs): Process them.
28107         (ira_init): Move calls of find_reg_classes and
28108         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
28109         Call clarify_prohibited_class_mode_regs.
28110         (ira_no_alloc_reg): Remove.
28111         (too_high_register_pressure_p): Use pressure classes.
28112
28113         * sched-deps.c: Remove mentioning cover classes from the file.
28114         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
28115         ira_pressure_classes and ira_pressure_classes_num instead of
28116         ira_reg_class_cover_size and ira_reg_class_cover.
28117         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
28118         sched_regno_pressure_class instead of sched_regno_cover_class.
28119         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
28120         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
28121
28122         * ira.h: Add 2010 to Copyright.
28123         (ira_no_alloc_reg): Remove external.
28124         (struct target_ira): Rename x_ira_hard_regno_cover_class,
28125         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
28126         x_ira_class_translate to x_ira_hard_regno_allocno_class,
28127         x_ira_allocno_classes_num, x_ira_allocno_classes, and
28128         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
28129         x_ira_pressure_classes, x_ira_pressure_class_translate, and
28130         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
28131         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
28132         x_ira_no_alloc_regs.
28133         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
28134         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
28135         ira_allocno_classes_num and ira_allocno_classes.
28136         (ira_class_translate): Rename to ira_allocno_class_translate.
28137         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
28138         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
28139         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
28140         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
28141         (ira_no_alloc_regs): New.
28142
28143         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
28144         classes from the file.  Use ALLOCNO_CLASS instead of
28145         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
28146         ALLOCNO_COVER_CLASS_COST.
28147         (regno_cover_class): Rename to regno_aclass.
28148         (record_reg_classes): Use ira_reg_class_subunion instead of
28149         ira_reg_class_union.
28150         (record_address_regs): Check overflow.
28151         (scan_one_insn): Ditto.
28152         (print_allocno_costs): Print total mem cost fore regional allocation.
28153         (print_pseudo_costs): Use REG_N_REFS.
28154         (find_costs_and_classes): Use classes intersected with them on the
28155         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
28156         ira_reg_class_union.  Use ira_allocno_class_translate and
28157         regno_aclass instead of ira_class_translate and regno_cover_class.
28158         Modify code for finding regno_aclass.  Setup preferred classes for
28159         the next pass.
28160         (setup_allocno_cover_class_and_costs): Rename to
28161         setup_allocno_class_and_costs.  Use regno_aclass instead of
28162         regno_cover_class.  Use ira_set_allocno_class instead of
28163         ira_set_allocno_cover_class.
28164         (init_costs, finish_costs): Use regno_aclass instead of
28165         regno_cover_class.
28166         (ira_costs): Use setup_allocno_class_and_costs instead of
28167         setup_allocno_cover_class_and_costs.
28168         (ira_tune_allocno_costs_and_cover_classes): Rename to
28169         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
28170         by processing objects.  Use ira_reg_class_max_nregs instead of
28171         ira_reg_class_nregs.
28172
28173         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
28174
28175         * sched-int.h: Remove mentioning cover classes from the file.
28176         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
28177
28178         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
28179         classes from the file.
28180         (struct reg_pref): Rename coverclass into allocnoclass.
28181         (reg_cover_class): Rename to reg_allocno_class.
28182
28183         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
28184
28185         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
28186
28187         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
28188
28189         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
28190
28191         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
28192
28193         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
28194
28195         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
28196
28197         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
28198
28199         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
28200
28201         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
28202
28203         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
28204         (i386_ira_cover_classes): Ditto.
28205
28206         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
28207
28208         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
28209
28210         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
28211
28212         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
28213
28214         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
28215
28216         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
28217
28218         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
28219         (mips_ira_cover_classes): Ditto.
28220
28221         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
28222
28223         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
28224
28225         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
28226
28227         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
28228
28229         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
28230
28231         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
28232         (IRA_COVER_CLASSES_VSX): Ditto.
28233
28234         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
28235         (rs6000_ira_cover_classes): Ditto.
28236
28237         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
28238
28239         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
28240
28241         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
28242
28243         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
28244
28245         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
28246
28247         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
28248
28249         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
28250
28251         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
28252
28253         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
28254
28255         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
28256
28257 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
28258
28259         PR debug/48253
28260         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
28261         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
28262         dw_fde_unlikely_section_end_label, cold_in_std_section,
28263         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
28264         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
28265         fields.
28266         (output_fde): Use dw_fde_second_{begin,end} if second is
28267         true, otherwise dw_fde_{begin,end}.
28268         (output_call_frame_info): Test dw_fde_second_begin != NULL
28269         instead of dw_fde_switched_sections.
28270         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
28271         fields, initialize new fields.  Initialize in_std_section
28272         unconditionally from the first partition.
28273         (dwarf2out_end_epilogue): Don't override dw_fde_end when
28274         dw_fde_second_begin is non-NULL.
28275         (dwarf2out_switch_text_section): Stop initializing removed
28276         dw_fde_struct fields, initialize new fields, initialize
28277         also dw_fde_end here.  Set dw_fde_switch_cfi even when
28278         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
28279         (struct var_loc_list_def): Add last_before_switch field.
28280         (arange_table, arange_table_allocated, arange_table_in_use,
28281         ARANGE_TABLE_INCREMENT, add_arange): Removed.
28282         (size_of_aranges): Count !in_std_section and !second_in_std_section
28283         hunks in fdes, instead of looking at arange_table_in_use.
28284         (output_aranges): Add aranges_length argument, don't call
28285         size_of_aranges here.  Instead of using aranges_table*
28286         emit ranges for fdes when !in_std_section resp.
28287         !second_in_std_section.
28288         (dw_loc_list): Break ranges crossing section switch.
28289         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
28290         use dw_fde_second_end instead of dw_fde_end as end of last range.
28291         (gen_subprogram_die): Don't call add_arange.  Use
28292         dw_fde_{begin,end} for first partition and if switched
28293         section dw_fde_second_{begin,end} for the second.
28294         (var_location_switch_text_section_1,
28295         var_location_switch_text_section): New functions.
28296         (dwarf2out_begin_function): Initialize cold_text_section even
28297         when function_section () isn't text_section.
28298         (prune_unused_types): Don't walk arange_table.
28299         (dwarf2out_finish): Don't needlessly test
28300         flag_reorder_blocks_and_partition when testing cold_text_section_used.
28301         If info_section_emitted, call size_of_aranges and if it indicates
28302         non-empty .debug_aranges, call output_aranges with the computed
28303         size.  Stop using removed dw_fde_struct fields, use
28304         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
28305         for second.
28306
28307         PR debug/48203
28308         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
28309         create ENTRY_VALUE if incoming or address of incoming's MEM
28310         is a hard REG.
28311         * dwarf2out.c (mem_loc_descriptor): Don't emit
28312         DW_OP_GNU_entry_value of DW_OP_fbreg.
28313         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
28314         on ENTRY_VALUE is able to find the canonical parameter VALUE.
28315         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
28316         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
28317         ENTRY_VALUE_EXPs.
28318         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
28319         is a REG_P or MEM_P with REG_P address, compute hash directly
28320         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
28321         (preserve_only_constants): Don't clear VALUES forwaring
28322         ENTRY_VALUE to some other VALUE.
28323
28324 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
28325
28326         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
28327         instead of GEN_INT.
28328
28329 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
28330
28331         * cfgexpand.c (expand_gimple_cond): Always set the source location and
28332         block before expanding the statement.
28333         (expand_gimple_stmt_1): Likewise.  Set them here...
28334         (expand_gimple_stmt): ...and not here.  Tidy.
28335         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
28336         unknown.
28337
28338 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
28339
28340         * Makefile.in: New rule for cprop.o.
28341         * gcse.c: Move constant/copy propagation to cprop.c.
28342         (compute_local_properties): Only handle expression tables.
28343         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
28344         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
28345         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
28346         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
28347         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
28348         compute_cprop_data, find_used_regs, try_replace_reg,
28349         find_avail_set, cprop_jump, constprop_register, cprop_insn,
28350         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
28351         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
28352         find_bypass_set, reg_killed_on_edge, bypass_block,
28353         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
28354         execute_rtl_cprop, pass_rtl_cprop): Move to...
28355         * cprop.c: ...here.  New file, constant/copy propagation for RTL
28356         moved from gcse.c to here with minor cleanups in duplicated code.
28357
28358 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
28359
28360         * config/i386/i386.c (flag_opts): Fix a typo in
28361         -mavx256-split-unaligned-store.
28362
28363 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
28364
28365         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
28366         LIBCALL_VALUE): Remove macros.
28367         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28368         TARGET_FUNCTION_VALUE_REGNO_P): Define.
28369         (h8300_function_value, h8300_libcall_value,
28370         h8300_function_value_regno_p): New functions.
28371
28372 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
28373
28374         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
28375
28376 2011-03-28  Jeff Law  <law@redhat.com>
28377
28378         * tree-ssa-threadupdate.c (redirect_edges): Call
28379         create_edge_and_update_destination_phis as needed.
28380         (create_edge_and_update_destination_phis): Accept new BB argument.
28381         All callers updated.
28382         (thread_block): Do not update the profile when threading around
28383         intermediate blocks.
28384         (thread_single_edge): Likewise.
28385         (determine_bb_domination_status): If BB is not a successor of the
28386         loop header, return NONDOMINATING.
28387         (register_jump_thread): Note when we register a jump thread around
28388         an intermediate block.
28389         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
28390         (thread_across_edge): Use it.
28391
28392 2011-03-28  Tristan Gingold  <gingold@adacore.com>
28393
28394         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
28395         when for_return is 2.
28396
28397 2011-03-28  Jeff Law  <law@redhat.com>
28398
28399         * var-tracking.c (canonicalize_values_mark): Delete unused
28400         lhs assignment.
28401         (canonicalize_values_star, set_variable_part): Likewise.
28402         (clobber_variable_part, delete_variable_part): Likewise.
28403
28404 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
28405
28406         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
28407
28408 2011-03-28  Martin Jambor  <mjambor@suse.cz>
28409
28410         * tree-inline.c (expand_call_inline): Do not check that destination
28411         node is analyzed.
28412         (optimize_inline_calls): Assert that destination node is analyzed.
28413         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
28414         not call tree_lowering_passes.
28415         * cgraph.h (cgraph_analyze_function): Declare.
28416         * cgraphunit.c (cgraph_analyze_function): Make public.
28417
28418 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
28419
28420         * config/sparc/sparc-opts.h: New.
28421         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
28422         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
28423         (sparc_option_override): Store processor_type enumeration rather
28424         than string in cpu_default.  Remove name and enumeration from
28425         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
28426         without using sparc_select.  Use target_flags_explicit instead of
28427         fpu_option_set.
28428         * config/sparc/sparc.h (enum processor_type): Move to
28429         sparc-opts.h.
28430         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
28431         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
28432         HeaderInclude entry.
28433         (mcpu=, mtune=): Use Var and Enum.
28434         (sparc_processor_type): New Enum and EnumValue entries.
28435
28436 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28437             Iain Sandoe  <iains@gcc.gnu.org>
28438
28439         PR target/48245
28440         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
28441
28442 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
28443
28444         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
28445         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
28446         Insert new statements at it in lieu of STMT.
28447         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
28448         * tree-vect-stmts.c (vectorizable_store): Likewise.
28449         (vectorizable_load): Likewise.
28450
28451 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
28452
28453         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
28454         (divtf3): Ditto.
28455         (multf3): Ditto.
28456         (subtf3): Ditto.
28457
28458 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
28459
28460         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
28461         unaligned 256bit load/store.
28462         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
28463         (*avx_movdqu<avxmodesuffix>): Likewise.
28464
28465 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28466
28467         PR target/48288
28468         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
28469         * config/pa/pa.md (iordi3): Use new predicate in expander.
28470         (iorsi3): Likewise.
28471
28472 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
28473
28474         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
28475         FUNCTION_VALUE_REGNO_P): Remove macros.
28476         * config/mips/mips-protos.h (mips_function_value): Remove.
28477         * config/mips/mips.c (mips_function_value): Rename to...
28478         (mips_function_value_1): ... this. Make static.  Handle receiving
28479         the function type in 'fn_decl_or_type' argument.
28480         (mips_function_value, mips_libcall_value,
28481         mips_function_value_regno_p): New function.
28482         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28483         TARGET_FUNCTION_VALUE_REGNO_P): Define.
28484
28485 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
28486
28487         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
28488         and -mavx256-split-unaligned-store.
28489         (ix86_option_override_internal): Split 32-byte AVX unaligned
28490         load/store by default.
28491         (ix86_avx256_split_vector_move_misalign): New.
28492         (ix86_expand_vector_move_misalign): Use it.
28493
28494         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
28495         -mavx256-split-unaligned-store.
28496
28497         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
28498         256bit load/store.  Generate unaligned store on misaligned memory
28499         operand.
28500         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
28501         256bit load/store.
28502         (*avx_movdqu<avxmodesuffix>): Likewise.
28503
28504         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
28505         -mavx256-split-unaligned-store.
28506
28507 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
28508
28509         PR target/38598
28510         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
28511         Update commentary.
28512
28513 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
28514
28515         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
28516         opno arguments with an expand_operand.  Use create_input_operand.
28517         (mips_prepare_builtin_target): Delete.
28518         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
28519         functions.
28520         (mips_expand_builtin_direct): Use create_output_operand and
28521         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
28522         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
28523         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
28524
28525 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
28526
28527         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
28528         function.
28529         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
28530
28531 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
28532
28533         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
28534         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
28535         basic blocks and call commit_edge_insertions directly.
28536         (fixup_abnormal_edges): Move from here to...
28537         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
28538         on the edges and return whether some have actually been inserted.
28539         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
28540         compensation code.
28541
28542 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
28543
28544         PR rtl-optimization/48144
28545         * sel-sched-ir.c (merge_history_vect): Factor out from ...
28546         (merge_expr_data): ... here.
28547         (av_set_intersect): Rename to av_set_code_motion_filter.
28548         Update all callers.  Call merge_history_vect when an expression
28549         is found in both sets.
28550         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
28551
28552 2011-03-26  Alan Modra  <amodra@gmail.com>
28553
28554         * config/rs6000/predicates.md (word_offset_memref_op): Handle
28555         cmodel medium addresses.
28556         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
28557         64-bit gpr loads and stores.
28558         (rs6000_secondary_reload_ppc64): New function.
28559         * config/rs6000/rs6000-protos.h: Declare it.
28560         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
28561
28562 2011-03-26  Alan Modra  <amodra@gmail.com>
28563
28564         PR target/47487
28565         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
28566         GNU Go in traceback table.
28567
28568 2011-03-25  Richard Henderson  <rth@redhat.com>
28569
28570         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
28571         if there are exactly 6 operands.
28572         (set_storage_via_setmem): Similarly.
28573
28574 2011-03-25  Kai Tietz  <ktietz@redhat.com>
28575
28576         * collect2.c (write_c_file_stat): Handle backslash
28577         as right-hand directory separator.
28578         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
28579         checking just for slash.
28580         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
28581         instead of checking for trailing slash.
28582         * gcc.c (record_temp_file): Use filename_cmp instead
28583         of strcmp.
28584         (do_spec_1): Likewise.
28585         (replace_outfile_spec_function): Likewise.
28586         (is_directory): Use filename_ncmp instead of strncmp.
28587         (print_multilib_info): Likewise.
28588         * gcov.c (find_source): Use filename_cmp instead
28589         instead of strcmp.
28590         (make_gcov_file_name): Fix order of slash/backslash
28591         checks.
28592         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
28593         (add_standard_paths): Likewise.
28594         * mips-tfile.c (saber_stop): Handle backslash.
28595         * prefix.c (update_path): Use filename_ncmp instead of
28596         strncmp.
28597         * profile.c (output_location): Use filename_cmp instead
28598         of strcmp.
28599         * read-md.c (handle_toplevel_file): Handle backslash.
28600         * tlink.c (frob_extension):  Likewise.
28601         * tree-cfg.c (same_line_p): Use filename_cmp instead of
28602         strcmp.
28603         * tree-dump.c (dequeue_and_dump): Handle backslash.
28604         * tree.c (get_file_function_name): Likewise.
28605         * gengtype.c (read_input_list): Likewise.
28606         (get_file_realbasename): Likewise.
28607         (get_output_file_with_visibility): Use filename_cmp
28608         instead of strcmp.
28609
28610 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
28611
28612         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
28613         case to VFPv1.
28614
28615 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
28616
28617         * fold-const.c (expr_location_or): New function.
28618         (fold_truth_not_expr): Call it.
28619
28620 2011-03-25  Jeff Law  <law@redhat.com>
28621
28622         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
28623         va_end.
28624         * c-family/c-common.c (def_fn_type): Likewise.
28625         * emit-rtl.c (gen_rtvec): Likewise.
28626         * lto/lto-lang.c (def_fn_type): Likewise.
28627
28628 2011-03-25  Richard Guenther  <rguenther@suse.de>
28629
28630         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
28631         also generate copies.
28632         (fini_copy_prop): Handle constant values properly.
28633
28634 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
28635
28636         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
28637         mode size instead of bitsize with DWARF2_ADDR_SIZE.
28638         (hash_loc_operands, compare_loc_operands): Handle
28639         DW_OP_GNU_entry_value.
28640
28641 2011-03-25  Kai Tietz  <ktietz@redhat.com>
28642
28643         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
28644         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
28645         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
28646         comment and use macro TARGET_64BIT_MS_ABI instead.
28647         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
28648         and change default behavior for 32-bit MS_ABI.
28649         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
28650         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
28651         32-bit, too.
28652         (ix86_cfun_abi): Likewise.
28653         (ix86_maybe_switch_abi): Adjust comment.
28654         (init_cumulative_args): Check for bit-ness in MS_ABI case.
28655         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
28656         instead of checking for SYSV_ABI.
28657         (ix86_nsaved_sseregs): Likewise.
28658         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
28659         to 16 bytes.
28660         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
28661         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
28662         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
28663         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
28664         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
28665
28666 2011-03-25  Richard Guenther  <rguenther@suse.de>
28667
28668         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
28669         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
28670         (verify_gimple): Remove.
28671         * tree-cfg.c (verify_gimple_call): Merge verification
28672         from verify_stmts.
28673         (verify_gimple_phi): Merge verification from verify_stmts.
28674         (verify_gimple_label): New function.
28675         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
28676         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
28677         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
28678         (verify_stmts): Rename to verify_gimple_in_cfg.
28679         (verify_gimple_in_cfg): New function.
28680         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
28681         * tree-ssa.c (verify_ssa): Likewise.
28682         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
28683
28684 2011-03-25  Richard Guenther  <rguenther@suse.de>
28685
28686         * passes.c (init_optimization_passes): Add FRE pass after
28687         early SRA.
28688
28689 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
28690             Andrew Stubbs  <ams@codesourcery.com>
28691
28692         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
28693         for Cortex-A8.
28694         (arm_movdi_vfp_cortexa8): New pattern.
28695         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
28696         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
28697         instructions when tuning for Cortex-A8.  Set attribute "arch".
28698         * config/arm/arm.md: Move include arm-tune.md up a bit.
28699         (define_attr "arch"): Add "onlya8" and "nota8" values.
28700         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
28701
28702 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
28703
28704         PR bootstrap/48282
28705         Revert:
28706         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
28707
28708         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
28709         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
28710         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
28711         * passes.c (init_optimization_passes): Move
28712         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
28713
28714 2011-03-25  Kai Tietz  <ktietz@redhat.com>
28715
28716         * c-typeck.c (comptypes_internal): Replace target
28717         hook call of comp_type_attributes by version in tree.c file.
28718         * gimple.c (gimple_types_compatible_p_1): Likewise.
28719         * tree-ssa.c (useless_type_conversion_p): Likewise.
28720         * tree.c (build_type_attribute_qual_variant): Likewise.
28721         (attribute_value_equal): New static helper function.
28722         (comp_type_attributes): New function.
28723         (merge_attributes): Use attribute_value_equal for comparison.
28724         (attribute_list_contained): Likewise.
28725         * tree.h (comp_type_attributes): New prototype.
28726
28727 2011-03-25  Richard Guenther  <rguenther@suse.de>
28728
28729         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
28730         of complex types at -O0.
28731         (verify_gimple_assign_binary): Likewise.
28732         (verify_gimple_assign_ternary): Likewise.
28733
28734 2011-03-24  Mark Wielaard  <mjw@redhat.com>
28735
28736         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
28737         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
28738
28739 2011-03-24  Mark Wielaard  <mjw@redhat.com>
28740
28741         PR debug/48041
28742         * dwarf2out.c (output_abbrev_section): Only write table when
28743         abbrev_die_table_in_use > 1.
28744
28745 2011-02-24  Richard Henderson  <rth@redhat.com>
28746
28747         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
28748         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
28749         (alpha_expand_unaligned_load_words): Use extql.
28750         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
28751         (emit_insxl): Handle all modes for consistency.
28752
28753 2011-02-24  Richard Henderson  <rth@redhat.com>
28754
28755         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
28756         (alpha_expand_unaligned_load): Likewise.
28757         (alpha_expand_unaligned_store): Likewise.
28758         (alpha_expand_unaligned_load_words): Likewise.
28759         (alpha_expand_unaligned_store_words): Likewise.
28760         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
28761         (alpha_split_lock_test_and_set_12): Likewise.
28762         (print_operand, alpha_fold_builtin_extxx): Likewise.
28763         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
28764         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
28765         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
28766         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
28767         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
28768         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
28769         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
28770         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
28771         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
28772         (extwl, extll, extql): Similarly.
28773         (inswh, inslh, insqh): Similarly.
28774         (mskbl, mskwl, mskll, mskql): Similarly.
28775         (mskwh, msklh, mskqh): Similarly.
28776
28777 2011-02-24  Richard Henderson  <rth@redhat.com>
28778
28779         * config/alpha/alpha.md (attribute isa): Add er, ner.
28780         (attribute enabled): Handle them.
28781         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
28782
28783 2011-02-24  Richard Henderson  <rth@redhat.com>
28784
28785         * config/alpha/alpha.md (attribute isa): Add vms.
28786         (attribute enabled): Handle it.
28787         (*movsf): Merge *movsf_{nofix,fix,nofp}.
28788         (*movdf): Merge *movdf_{nofix,fix,nofp}.
28789         (*movtf): Rename from *movtf_internal for consistency.
28790         (*movsi): Merge with *movsi_nt_vms.
28791         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
28792         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
28793         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
28794         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
28795
28796 2011-02-24  Richard Henderson  <rth@redhat.com>
28797
28798         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
28799         (extendqisi2, extendhisi2): Likewise.
28800         (extendqidi2): Simplify BWX/non-BWX expansions.
28801         (extendhidi2): Similarly.
28802
28803 2011-02-24  Richard Henderson  <rth@redhat.com>
28804
28805         * config/alpha/alpha.md (attribute isa): New.
28806         (attribute enabled): New.
28807         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
28808         (zero_extendqisi2, zero_extendqidi2): Similarly.
28809         (zero_extendhisi2, zero_extendhidi2): Similarly.
28810         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
28811
28812 2011-02-24  Richard Henderson  <rth@redhat.com>
28813
28814         * config/alpha/predicates.md (input_operand): Revert last change;
28815         update comment to mention 32-bit VMS rather than Windows.
28816
28817 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
28818
28819         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
28820         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
28821         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
28822         * passes.c (init_optimization_passes): Move
28823         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
28824
28825 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
28826
28827         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
28828
28829 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
28830
28831         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
28832         correctly.
28833
28834 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
28835
28836         PR debug/48204
28837         * simplify-rtx.c (simplify_const_unary_operation): Call
28838         real_convert when changing mode class with FLOAT_EXTEND.
28839
28840 2011-03-24  Nick Clifton  <nickc@redhat.com>
28841
28842         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
28843         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
28844         * config/rx/rx.c (rx_option_override): Set align_jumps,
28845         align_loops and align_labels if not set by the user.
28846         (rx_align_for_label): New function.
28847         (rx_max_skip_for_label): New function.
28848         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
28849         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
28850         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
28851         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
28852         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
28853
28854 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
28855
28856         PR rtl-optimization/48263
28857         * optabs.c (expand_binop_directly): Reinstate convert_modes code
28858         and original commutative_p handling.  Use maybe_gen_insn.
28859
28860 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28861
28862         * reload.c (find_reloads_subreg_address): Add address_reloaded
28863         parameter and return true there if the full address has been
28864         reloaded.
28865         (find_reloads_toplev): Pass address_reloaded flag.
28866         (find_reloads_address_1): Don't use address_reloaded parameter.
28867
28868 2011-03-24  Jeff Law  <law@redhat.com>
28869
28870         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
28871         unused variable "ann".
28872         (remove_unused_locals): Likewise.
28873
28874         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
28875         statement.
28876
28877         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
28878         after it is freed.
28879
28880 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28881
28882         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
28883         for invalid symbolic addresses.
28884         (s390_secondary_reload): Don't use s390_check_symref_alignment for
28885         larl operands.
28886
28887 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
28888
28889         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
28890         the argument in calls to fold_truth_not_expr.
28891
28892 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
28893
28894         * tree.c (record_node_allocation_statistics): New function.
28895         (make_node_stat, copy_node_stat, build_string): Call it.
28896         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
28897         (build1_stat, build_omp_clause): Likewise.
28898
28899 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
28900
28901         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
28902         last commit.
28903
28904 2011-03-24  Richard Guenther  <rguenther@suse.de>
28905
28906         PR tree-optimization/48271
28907         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
28908         blocks that still exist.
28909
28910 2011-03-24  Richard Guenther  <rguenther@suse.de>
28911
28912         PR tree-optimization/48270
28913         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
28914         not free datarefs before ddrs.
28915
28916 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
28917
28918         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
28919         from the address built for a reference with variable offset.
28920
28921 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
28922
28923         PR target/48237
28924         * config/i386/i386.md (*movdf_internal_rex64): Do not split
28925         alternatives that can be handled with movq or movabsq insn.
28926         (*movdf_internal): Disable for !TARGET_64BIT.
28927         (*movdf_internal_nointeger): Ditto.
28928         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
28929
28930 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
28931
28932         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
28933         (FUNCTION_ARG_ADVANCE): Likewise.
28934         * tm.texi.in: Change references to them to hook references.
28935         * tm.texi: Regenerate.
28936         * targhooks.c (default_function_arg): Eliminate check for target macro.
28937         (default_function_incoming_arg): Likewise.
28938         (default_function_arg_advance): Likewise.
28939         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
28940         (function_arg_advance): Likewise.
28941         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
28942
28943 2011-03-24  Richard Guenther  <rguenther@suse.de>
28944
28945         PR middle-end/48269
28946         * tree-object-size.c (addr_object_size): Do not double-account
28947         for MEM_REF offsets.
28948
28949 2011-03-24  Diego Novillo  <dnovillo@google.com>
28950
28951         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
28952         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
28953         (lto_input_data_block): Move from lto-opts.c.  Make extern.
28954         Update all users.
28955         (lto_input_string): Rename from input_string.  Make extern.
28956         Update all users.
28957         * lto-streamer-out.c (lto_output_string_with_length): Rename from
28958         output_string_with_length.
28959         Output 0 to indicate a non-NULL string.  Update all callers to
28960         not emit 0.
28961         (lto_output_string): Rename from output_string.  Make extern.
28962         Update all users.
28963         (lto_output_decl_state_streams): Make extern.
28964         (lto_output_decl_state_refs): Make extern.
28965         * lto-streamer.h (lto_input_string): Declare.
28966         (lto_input_data_block): Declare.
28967         (lto_output_string): Declare.
28968         (lto_output_string_with_length): Declare.
28969         (lto_output_decl_state_streams): Declare.
28970         (lto_output_decl_state_refs): Declare.
28971
28972 2011-03-24  Richard Guenther  <rguenther@suse.de>
28973
28974         PR tree-optimization/46562
28975         * tree.c (build_invariant_address): New function.
28976         * tree.h (build_invariant_address): Declare.
28977         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
28978         a renamed function moved ...
28979         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
28980         Take valueization callback parameter.
28981         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
28982         * gimple-fold.h: New file.
28983         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
28984         (ccp_fold, fold_const_aggregate_ref,
28985         fold_ctor_reference, fold_nonarray_ctor_reference,
28986         fold_array_ctor_reference, fold_string_cst_ctor_reference,
28987         get_base_constructor): Move ...
28988         * gimple-fold.c: ... here.
28989         (gimple_fold_stmt_to_constant_1): New function
28990         split out from ccp_fold.  Take a valueization callback parameter.
28991         Valueize all operands.
28992         (gimple_fold_stmt_to_constant): New wrapper function.
28993         (fold_const_aggregate_ref_1): New function split out from
28994         fold_const_aggregate_ref.  Take a valueization callback parameter.
28995         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
28996         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
28997         invariant POINTER_PLUS_EXPRs to invariant form.
28998         (vn_valueize): New function.
28999         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
29000         * tree-vrp.c (vrp_valueize): New function.
29001         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
29002         to fold statements to constants.
29003         * tree-ssa-pre.c (eliminate): Properly guard propagation of
29004         function declarations.
29005         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
29006         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
29007
29008 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
29009
29010         * config/h8300/predicates.md (jump_address_operand): Fix register
29011         mode check.
29012
29013 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
29014
29015         * doc/invoke.texi (max-stores-to-sink): Document.
29016         * params.h (MAX_STORES_TO_SINK): Define.
29017         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
29018         if either vectorization or if-conversion is disabled.
29019         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
29020         tree-vect-data-refs.c vect_equal_offsets.
29021         (dr_equal_offsets_p): New function.
29022         (find_data_references_in_bb): Remove static.
29023         * tree-data-ref.h (find_data_references_in_bb): Declare.
29024         (dr_equal_offsets_p): Likewise.
29025         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
29026         (vect_drs_dependent_in_basic_block): Update calls to
29027         vect_equal_offsets.
29028         (vect_check_interleaving): Likewise.
29029         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
29030         (cond_if_else_store_replacement): Rename to...
29031         (cond_if_else_store_replacement_1): ... this.  Change arguments and
29032         documentation.
29033         (cond_if_else_store_replacement): New function.
29034         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
29035         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
29036
29037 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
29038
29039         PR target/46934
29040         * config/arm/arm.md (casesi): Use the gen_int_mode() function
29041         to subtract lower bound instead of GEN_INT().
29042
29043 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
29044
29045         PR other/48179
29046         PR other/48221
29047         PR other/48234
29048         * doc/extend.texi (Alignment): Move section to match order in TOC.
29049         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
29050         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
29051
29052 2011-03-23  Jeff Law  <law@redhat.com>
29053
29054         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
29055         before removing the edge.
29056
29057         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
29058         it may have been freed by redirect_branch_edge or
29059         redirect_edge_succ_nodup.
29060
29061 2011-03-23  Richard Guenther  <rguenther@suse.de>
29062
29063         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
29064         (check_va_list_escapes): Likewise.
29065         (check_all_va_list_escapes): Likewise.
29066
29067 2011-03-23  Richard Guenther  <rguenther@suse.de>
29068
29069         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
29070         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
29071         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
29072         (alias.o): Likewise.
29073         (ipa-type-escape.o): Remove.
29074         (ipa-struct-reorg.o): Likewise.
29075         (GTFILES): Remove ipa-struct-reorg.c.
29076         * alias.c: Do not include ipa-type-escape.h.
29077         * tree-ssa-alias.c: Likewise.
29078         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
29079         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
29080         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
29081         and ipa-type-escape passes.
29082         * tree-pass.h (pass_ipa_type_escape): Remove.
29083         (pass_ipa_struct_reorg): Likewise.
29084         * ipa-struct-reorg.h: Remove.
29085         * ipa-struct-reorg.c: Likewise.
29086         * ipa-type-escape.h: Likewise.
29087         * ipa-type-escape.c: Likewise.
29088         * doc/invoke.texi (-fipa-struct-reorg): Remove.
29089         (--param struct-reorg-cold-struct-ratio): Likewise.
29090         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
29091         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
29092         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
29093
29094 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29095
29096         * config/s390/2084.md: Enable all insn reservations also for z9_ec
29097         cpu attribute value.
29098         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
29099         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
29100         * config/s390/s390.c (processor_flags_table): New constant array.
29101         (s390_handle_arch_option): Remove.
29102         (s390_handle_option): Remove s390_handle_arch_option invocations
29103         and OPT_mwarn_framesize_ handling.
29104         (s390_option_override): Remove s390_handle_arch_option invocation.
29105         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
29106         warnings.
29107         * config/s390/s390.md (cpu attribute): Add z9_ec value.
29108         * config/s390/s390.opt (s390_tune, s390_arch)
29109         (march=): Replace s390_arch_option enum and values with
29110         processor_type.  Set variable name to s390_arch.  Set
29111         initialization value.
29112         (mtune=): Replace s390_arch_option with processor_type.  Set
29113         variable name to s390_tune.  Set initialization value.
29114
29115 2011-03-23  Julian Brown  <julian@codesourcery.com>
29116
29117         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
29118         accesses which are not naturally aligned.
29119
29120 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
29121
29122         PR target/47553
29123         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
29124
29125 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
29126
29127         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
29128         parameter from "int" to "enum insn_code".
29129         (expand_operand_type): New enum.
29130         (expand_operand): New structure.
29131         (create_expand_operand): New function.
29132         (create_fixed_operand, create_output_operand): Likewise
29133         (create_input_operand, create_convert_operand_to): Likewise.
29134         (create_convert_operand_from, create_address_operand): Likewise.
29135         (create_integer_operand): Likewise.
29136         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
29137         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
29138         (expand_insn, expand_jump_insn): Likewise.
29139         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
29140         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
29141         (expand_movstr, expand_builtin___clear_cache): Likewise.
29142         (expand_builtin_lock_release): Likewise.
29143         * explow.c (allocate_dynamic_stack_space): Likewise.
29144         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
29145         and use the default handling in that case.
29146         * expmed.c (check_predicate_volatile_ok): Delete.
29147         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
29148         (emit_cstore): Likewise.
29149         * expr.c (emit_block_move_via_movmem): Likewise.
29150         (set_storage_via_setmem, expand_assignment): Likewise.
29151         (emit_storent_insn, try_casesi): Likewise.
29152         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
29153         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
29154         (expand_vec_shift_expr, expand_binop_directly): Likewise.
29155         (expand_twoval_unop, expand_twoval_binop): Likewise.
29156         (expand_unop_direct, emit_indirect_jump): Likewise.
29157         (emit_conditional_move, vector_compare_rtx): Likewise.
29158         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
29159         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
29160         (expand_sync_lock_test_and_set): Likewise.
29161         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
29162         (emit_unop_insn): Likewise.
29163         (expand_copysign_absneg): Change icode to an insn_code.
29164         (create_convert_operand_from_type): New function.
29165         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
29166         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
29167         (expand_insn, expand_jump_insn): Likewise.
29168         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
29169         than const_int_operand for operand 2.
29170
29171 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29172
29173         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
29174         if possible.
29175
29176 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
29177
29178         * emit-rtl.c (emit_pattern_before_noloc): New function.
29179         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
29180         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
29181         (emit_pattern_after_noloc): New function.
29182         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
29183         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
29184
29185 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
29186
29187         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
29188         (__ffsDI2): Likewise.
29189
29190 2011-03-22  Richard Henderson  <rth@redhat.com>
29191
29192         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
29193         of !TARGET_ABI_OPEN_VMS.
29194         (alpha_trampoline_init, alpha_start_function): Likewise.
29195         (alpha_expand_epilogue, alpha_file_start): Likewise.
29196         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
29197         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
29198         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
29199         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
29200         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
29201
29202 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29203
29204         * config/s390/s390-opts.h: New.
29205         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
29206         s390_arch_flags, s390_warn_framesize, s390_stack_size,
29207         s390_stack_guard): Remove.
29208         (s390_handle_arch_option): Return void.  Take enum
29209         s390_arch_option value instead of string and searching array.
29210         (s390_handle_option): Don't assert that global structures are in
29211         use.  Access variables via opts pointer.  Use error_at.  Don't use
29212         sscanf for -mstack-guard= or -mstack-size=.  Update call to
29213         s390_handle_arch_option.
29214         (s390_option_override): Update call to s390_handle_arch_option.
29215         (s390_emit_prologue): Use %d format for s390_stack_size in
29216         diagnostic.  Use %wd for HOST_WIDE_INT.
29217         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
29218         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
29219         * config/s390/s390.opt (config/s390/s390-opts.h): New
29220         HeaderInclude entry.
29221         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
29222         s390_arch_flags, s390_warn_framesize): New Variable entries.
29223         (s390_arch_option): New Enum and EnumValue entries.
29224         (march=): Use Enum instead of Var.
29225         (mstack-guard=, mstack-size=): Use UInteger and Var.
29226         (mtune=): Use Enum.
29227
29228 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29229
29230         * config/score/score.c (score_handle_option): Don't assert that
29231         global structures are in use.  Access target_flags via opts
29232         pointer.  Use value of -march= option to determine target_flags
29233         settings.
29234         * config/score/score.opt (march=): Use Enum.
29235         (score_arch): New Enum and EnumValue entries.
29236
29237 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29238
29239         * config/mep/mep.c (option_mtiny_specified): Remove.
29240         (mep_option_override): Move register handling for -mivc2 from
29241         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
29242         instead of option_mtiny_specified.
29243         (mep_handle_option): Access target_flags via opts pointer.  Don't
29244         assert that global structures are in use.  Defer part of -mivc2
29245         handling and move it to mep_option_override.
29246         * config/mep/mep.opt (IVC2): New Mask entry.
29247         (mivc2): Use Var and Defer instead of Mask.
29248
29249 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29250
29251         * config/v850/v850-opts.h: New.
29252         * config/v850/v850.c (small_memory): Replace with
29253         small_memory_physical_max array.  Make that array static const.
29254         (v850_handle_memory_option): Take integer value of argument.  Take
29255         gcc_options pointer, option text and location.  Return void.
29256         Update for changes to small memory structures.
29257         (v850_handle_option): Access target_flags via opts pointer.  Don't
29258         assert that global structures are in use.  Update calls to
29259         v850_handle_memory_option.
29260         (v850_encode_data_area): Update references to small memory settings.
29261         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
29262         (enum small_memory_type): Move to v850-opts.h.
29263         * config/v850/v850.opt (config/v850/v850-opts.h): New
29264         HeaderInclude entry.
29265         (small_memory_max): New Variable entry.
29266         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
29267         (mtda, mzda): Likewise.
29268
29269 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29270
29271         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
29272         pointer.  Don't assert that global structures are in use.
29273
29274 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29275
29276         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
29277         via opts pointer.  Don't assert that global structures are in use.
29278
29279 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29280
29281         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
29282         (munix=93): Use Var.
29283         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
29284         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
29285         * config/pa/pa-opts.h: New.
29286         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
29287         (pa_handle_option): Don't assert that global structures are in
29288         use.  Access target_flags via opts pointer.  Don't handle
29289         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
29290         OPT_munix_98 here.
29291         (pa_option_override): Handle deferred OPT_mfixed_range_.
29292
29293 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29294
29295         * config/mn10300/mn10300-opts.h: New.
29296         * config/mn10300/mn10300.c (mn10300_processor,
29297         mn10300_tune_string): Remove.
29298         (mn10300_handle_option): Don't assert that global structures are
29299         in use.  Access mn10300_processor via opts pointer.  Don't handle
29300         OPT_mtune_ here.
29301         * config/mn10300/mn10300.h (enum processor_type): Move to
29302         mn10300-opts.h.
29303         (mn10300_processor): Remove.
29304         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
29305         HeaderInclude entry.
29306         (mn10300_processor): New Variable entry.
29307         (mtune=): Use Var.
29308
29309 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29310
29311         * config/microblaze/microblaze.c: Don't include opts.h.
29312         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
29313         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
29314         (mno-clearbss): Use Var and Warn.
29315
29316 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29317
29318         * config/m32r/m32r-opts.h: New.
29319         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
29320         (m32r_handle_option): Don't assert that global structures are in
29321         use.  Access target_flags and m32r_cache_flush_func via opts
29322         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
29323         OPT_mno_flush_trap here.
29324         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
29325         include of m32r-opts.h.
29326         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
29327         HeaderInclude entry.
29328         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
29329         (mmodel=): Use Enum and Var.
29330         (m32r_model): New Enum and EnumValue entries.
29331         (mno-flush-trap): Use Var.
29332         (msdata=): Use Enum and Var.
29333         (m32r_sdata): New Enum and EnumValue entries.
29334
29335 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29336
29337         * config/m32c/m32c.c: Don't include opts.h.
29338         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
29339         m32c_handle_option): Remove.
29340         (m32c_option_override): Check global_options_set.x_target_memregs
29341         instead of target_memregs_set.
29342         * config/m32c/m32c.h (target_memregs): Remove.
29343         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
29344         variable.
29345
29346 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29347
29348         * config/iq2000/iq2000-opts.h: New.
29349         * config/iq2000/iq2000.c: Don't include opts.h.
29350         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
29351         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
29352         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
29353         HeaderInclude entry.
29354         (iq2000_tune): New Variable entry.
29355         (march=): Add comment.  Use Enum.
29356         (iq2000_arch): New Enum and EnumValue entries.
29357         (mcpu=): Use Enum and Var.
29358         (iq2000_tune): New Enum and EnumValue entries.
29359
29360 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29361
29362         * config/ia64/ia64-opts.h: New.
29363         * config/ia64/ia64.c (ia64_tune): Remove.
29364         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
29365         here.  Use error_at.
29366         (ia64_option_override): Handle deferred OPT_mfixed_range_.
29367         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
29368         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
29369         HeaderInclude entry.
29370         (ia64_tune): New Variable entry.
29371         (mfixed-range=): Use Defer and Var.
29372         (mtune=): Use Enum and Var.
29373         (ia64_tune): New Enum and EnumValue entries.
29374
29375 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29376
29377         * config/frv/frv-opts.h: New.
29378         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
29379         frv-opts.h.
29380         (frv_cpu_type): Remove.
29381         * config/frv/frv.c: Don't include opts.h.
29382         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
29383         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
29384         (frv_cpu_type): New Variable entry.
29385         (frv_cpu): New Enum and EnumValue entries.
29386
29387 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29388
29389         * config/cris/cris.c (cris_handle_option): Access target_flags via
29390         opts pointer.  Don't assert that global structures are in use.
29391         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
29392         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
29393
29394 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29395
29396         * config/bfin/bfin-opts.h: New.
29397         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
29398         bfin_si_revision, bfin_workarounds): Remove.
29399         (bfin_cpus): Make static const.
29400         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
29401         not bfin_lib_id_given.
29402         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
29403         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
29404         pointer. Use error_at.  Don't assert that global structures are in use.
29405         * config/bfin/bfin.h: Include bfin-opts.h.
29406         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
29407         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
29408         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
29409         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
29410         entries.
29411
29412 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29413
29414         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
29415         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
29416         or -msoft-float here.
29417         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
29418         -msoft-float and -mhard-float.
29419         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
29420         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
29421         msoft-float.
29422         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
29423         -msoft-float.
29424         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
29425         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
29426         not mhard-float.
29427         (LIBGCC_SPEC): Don't handle -msoft-float.
29428         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
29429         -mhard-float.
29430         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
29431         msoft-float.
29432         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
29433         -mfloat-abi=*, not -msoft-float and -mhard-float.
29434         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
29435         -msoft-float.
29436         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
29437         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
29438         mhard-float and msoft-float.
29439         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
29440         mfloat-abi=soft in comments, not mhard-float and msoft-float.
29441         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
29442         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
29443         mhard-float.
29444         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
29445         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
29446         msoft-float.
29447         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
29448         not mhard-float.
29449         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
29450         not msoft-float.
29451
29452 2011-03-22  Richard Henderson  <rth@redhat.com>
29453
29454         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
29455         TARGET_ABI_WINDOWS_NT.
29456         (alpha_output_function_end_prologue): Likewise.
29457         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
29458         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
29459         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
29460         (trap, *movsi_nt_vms): Likewise.
29461         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
29462         (*tablejump_osf_nt_internal): Remove.
29463         * config/alpha/predicates.md (input_operand): Only test Pmode.
29464
29465 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29466
29467         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
29468         via opts pointer.  Use error_at.  Don't assert that global
29469         structures are in use.
29470
29471 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29472
29473         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
29474         (ix86_handle_option): Access ix86_isa_flags and
29475         ix86_isa_flags_explicit via opts pointer.  Don't assert that
29476         global structures are in use.
29477         (ix86_function_specific_save, ix86_function_specific_restore):
29478         Update ix86_isa_flags_explicit field name.
29479         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
29480         (ix86_isa_flags_explicit): Rename TargetSave entry to
29481         x_ix86_isa_flags_explicit.
29482
29483 2011-03-22  Richard Henderson  <rth@redhat.com>
29484
29485         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
29486         (alpha_option_override, direct_return): Likewise.
29487         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
29488         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
29489         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
29490         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
29491         (alpha_expand_epilogue, alpha_end_function): Likewise.
29492         (alpha_init_libfuncs): Likewise.
29493         (struct machine_function): Remove unicosmk members.
29494         (print_operand) ['t']: Remove.
29495         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
29496         unicosmk_output_module_name, unicosmk_output_common,
29497         current_section_align, unicosmk_output_text_section_asm_op,
29498         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
29499         unicosmk_section_type_flags, unicosmk_unique_section,
29500         unicosmk_asm_named_section, unicosmk_insert_attributes,
29501         unicosmk_output_align, unicosmk_defer_case_vector,
29502         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
29503         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
29504         unicosmk_output_ssib, unicosmk_add_call_info_word,
29505         unicosmk_extern_head, unicosmk_output_default_externs,
29506         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
29507         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
29508         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
29509         * config/alpha/alpha-protos.h: Update.
29510         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
29511         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
29512         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
29513         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
29514         (*mulsi_se, mulvsi3): Likewise.
29515         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
29516         (*divmodsi_internal, call, call_value, realign): Likewise.
29517         (moddi3, umoddi3): Likewise; remove duplicate expander.
29518         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
29519         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
29520         (*movdi_nofix): Remove r/U alternative.
29521         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
29522         * config/alpha/constraints.md ("U"): Remove.
29523         * config/alpha/predicates.md (call_operand"): Don't test
29524         TARGET_ABI_UNICOSMK.
29525
29526 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29527
29528         * target.def (handle_option): Take gcc_options and
29529         cl_decoded_option pointers and location_t.
29530         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
29531         * doc/tm.texi: Regenerate.
29532         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
29533         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
29534         * lto-opts.c (lto_reissue_options): Generate option structure for
29535         targetm.handle_option call.
29536         * opts.c (target_handle_option): Update call to
29537         targetm.handle_option.  Remove assertions about values now passed
29538         down to hook.
29539         * targhooks.c (default_target_handle_option): New.
29540         * targhooks.h (default_target_handle_option): Declare.
29541         * config/alpha/alpha.c: Include opts.h.
29542         (alpha_handle_option): Update to new hook interface.
29543         * config/arm/arm.c: Include opts.h.
29544         (arm_handle_option): Update to new hook interface.
29545         * config/arm/t-arm (arm.o): Update dependencies.
29546         * config/bfin/bfin.c: Include opts.h.
29547         (bfin_handle_option): Update to new hook interface.
29548         * config/cris/cris.c: Include opts.h.
29549         (cris_handle_option): Update to new hook interface.
29550         * config/frv/frv.c: Include opts.h.
29551         (frv_handle_option): Update to new hook interface.
29552         * config/i386/i386.c: Include opts.h.
29553         (ix86_handle_option): Update to new hook interface.
29554         (ix86_valid_target_attribute_inner_p): Generate option structure
29555         for call to ix86_handle_option.
29556         * config/i386/t-i386 (i386.o): Update dependencies.
29557         * config/ia64/ia64.c: Include opts.h.
29558         (ia64_handle_option): Update to new hook interface.
29559         * config/ia64/t-ia64 (ia64.o): Update dependencies.
29560         * config/iq2000/iq2000.c: Include opts.h.
29561         (iq2000_handle_option): Update to new hook interface.
29562         * config/m32c/m32c.c: Include opts.h.
29563         (m32c_handle_option): Update to new hook interface.
29564         * config/m32r/m32r.c: Include opts.h.
29565         (m32r_handle_option): Update to new hook interface.
29566         * config/m68k/m68k.c: Include opts.h.
29567         (m68k_handle_option): Update to new hook interface.
29568         * config/mep/mep.c: Include opts.h.
29569         (mep_handle_option): Update to new hook interface.
29570         * config/microblaze/microblaze.c: Include opts.h.
29571         (microblaze_handle_option): Update to new hook interface.
29572         * config/mips/mips.c: Include opts.h.
29573         (mips_handle_option): Update to new hook interface.
29574         * config/mn10300/mn10300.c: Include opts.h.
29575         (mn10300_handle_option): Update to new hook interface.
29576         * config/pa/pa.c: Include opts.h.
29577         (pa_handle_option): Update to new hook interface.
29578         * config/pdp11/pdp11.c: Include opts.h.
29579         (pdp11_handle_option): Update to new hook interface.
29580         * config/rs6000/rs6000.c: Include opts.h.
29581         (rs6000_handle_option): Update to new hook interface.
29582         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
29583         * config/rx/rx.c: Include opts.h.
29584         (rx_handle_option): Update to new hook interface.
29585         * config/s390/s390.c: Include opts.h.
29586         (s390_handle_option): Update to new hook interface.
29587         * config/score/score.c: Include opts.h.
29588         (score_handle_option): Update to new hook interface.
29589         * config/sh/sh.c: Include opts.h.
29590         (sh_handle_option): Update to new hook interface.
29591         * config/sparc/sparc.c: Include opts.h.
29592         (sparc_handle_option): Update to new hook interface.
29593         * config/v850/v850.c: Include opts.h.
29594         (v850_handle_option): Update to new hook interface.
29595
29596 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29597
29598         * gcc.c (driver_unknown_option_callback): Only permit and save
29599         unknown -Wno- options.
29600         (driver_wrong_lang_callback): Save options directly instead of via
29601         driver_unknown_option_callback.
29602
29603 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
29604
29605         * combine.c (simplify_set): Try harder to find the best CC mode when
29606         simplifying a nested COMPARE on the RHS.
29607
29608 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29609
29610         * config/alpha/gnu.h: Remove.
29611         * config/arc: Remove directory.
29612         * config/arm/netbsd.h: Remove.
29613         * config/arm/t-pe: Remove.
29614         * config/crx: Remove directory.
29615         * config/i386/netbsd.h: Remove.
29616         * config/m68hc11: Remove directory.
29617         * config/m68k/uclinux-oldabi.h: Remove.
29618         * config/mcore/mcore-pe.h: Remove.
29619         * config/mcore/t-mcore-pe: Remove.
29620         * config/netbsd-aout.h: Remove.
29621         * config/rs6000/gnu.h: Remove.
29622         * config/sh/sh-symbian.h: Remove.
29623         * config/sh/symbian-base.c: Remove.
29624         * config/sh/symbian-c.c: Remove.
29625         * config/sh/symbian-cxx.c: Remove.
29626         * config/sh/symbian-post.h: Remove.
29627         * config/sh/symbian-pre.h: Remove.
29628         * config/sh/t-symbian: Remove.
29629         * config/svr3.h: Remove.
29630         * config/vax/netbsd.h: Remove.
29631         * config.build: Don't handle i[34567]86-*-pe.
29632         * config.gcc: Remove handling of deprecations for most deprecated
29633         targets.
29634         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
29635         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
29636         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
29637         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
29638         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
29639         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
29640         Remove cases.
29641         * config.host: Don't handle i[34567]86-*-pe.
29642         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
29643         (ASM_SPEC32): Don't handle -mcall-gnu.
29644         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
29645         -mcall-gnu.
29646         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
29647         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
29648         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
29649         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
29650         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
29651         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
29652         conditional on SYMBIAN.
29653         * configure.ac: Don't handle powerpc*-*-gnu*.
29654         * configure: Regenerate.
29655         * doc/extend.texi (interrupt attribute): Don't mention CRX.
29656         * doc/install-old.texi (m6811, m6812): Don't mention.
29657         * doc/install.texi (arc-*-elf*): Don't document multilib option.
29658         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
29659         (m68k-uclinuxoldabi): Don't mention.
29660         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
29661         Remove.
29662         (-mcall-gnu): Remove.
29663         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
29664         families): Remove constraint documentation.
29665
29666 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
29667
29668         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
29669         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
29670         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
29671
29672 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
29673
29674         PR target/48226
29675         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
29676         vector when peeking at the next token for vector, don't expand the
29677         keywords.
29678
29679 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
29680
29681         * config/avr/avr-protos.h (expand_epilogue): Change prototype
29682         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
29683         * config/avr/avr.c (init_cumulative_args)
29684         (avr_function_arg_advance): Use it.
29685         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
29686         sibcall epilogues.
29687         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
29688         (avr_function_ok_for_sibcall): ...this new function.
29689         (avr_lookup_function_attribute1): New static Function.
29690         (avr_naked_function_p, interrupt_function_p)
29691         (signal_function_p, avr_OS_task_function_p)
29692         (avr_OS_main_function_p): Use it.
29693         * config/avr/avr.md ("sibcall", "sibcall_value")
29694         ("sibcall_epilogue"): New expander.
29695         ("*call_insn", "*call_value_insn"): New insn.
29696         ("call_insn", "call_value_insn"): Remove
29697         ("call", "call_value", "epilogue"): Change expander to handle
29698         sibling calls.
29699
29700 2011-03-21  Nick Clifton  <nickc@redhat.com>
29701
29702         * doc/invoke.texi (Overall Options): Move closing brace to end of
29703         options list.
29704         (Optimization Options): Add missing @gol.
29705         (Directory Options): Likewise.
29706         (i386 and x86-64 Options): Likewise.
29707         (RS6000 and PowerPC Options): Likewise.
29708         (i386 and x86-64 Windows Options): Likewise.
29709         (V850 Options): Add text missing from descriptions.
29710
29711 2011-03-22  Richard Henderson  <rth@redhat.com>
29712
29713         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
29714         (avr_incoming_return_addr_rtx): New.
29715         (emit_push_byte): New.
29716         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
29717         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
29718         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
29719         (emit_pop_byte): New.
29720         (expand_epilogue): Use it.  Pop frame pointer by bytes.
29721         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
29722         (INCOMING_RETURN_ADDR_RTX): New.
29723         (INCOMING_FRAME_SP_OFFSET): New.
29724         (ARG_POINTER_CFA_OFFSET): New.
29725         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
29726         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
29727         (pophi): Remove.
29728
29729         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
29730
29731 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
29732
29733         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
29734         (FUNCTION_ARG_ADVANCE): Likewise.
29735         * tm.texi.in: Change references to them to hook references.
29736         * tm.texi: Regenerate.
29737         * targhooks.c (default_function_arg): Eliminate check for target
29738         macro.
29739         (default_function_incoming_arg): Likewise.
29740         (default_function_arg_advance): Likewise.
29741         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
29742         (function_arg_advance): Likewise.
29743         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
29744
29745 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
29746
29747         * tree.c (build_call_1): New function.
29748         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
29749
29750 2011-03-22  Richard Guenther  <rguenther@suse.de>
29751
29752         PR tree-optimization/48228
29753         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
29754         for single-arg PHIs.
29755
29756 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
29757
29758         PR rtl-optimization/48143
29759         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
29760         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
29761         sse2_cvtps2pd): Likewise.
29762
29763 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29764
29765         * recog.c (canonicalize_change_group): Use validate_unshare_change.
29766
29767 2011-03-22  Richard Guenther  <rguenther@suse.de>
29768
29769         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
29770         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
29771         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
29772         and REALIGN_LOAD_EXPR.
29773         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
29774         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
29775         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
29776         DOT_PROD_EXPR case ...
29777         (expand_expr_real_2): ... here.
29778         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
29779         and REALIGN_LOAD_EXPR.
29780         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
29781         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
29782         (vect_create_epilog_for_reduction): Likewise.
29783         (vectorizable_reduction): Likewise.
29784         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
29785         * tree-vect-stmts.c (vectorizable_load): Likewise.
29786
29787 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
29788
29789         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
29790
29791 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29792
29793         * config/s390/s390.c (s390_delegitimize_address): Fix offset
29794         handling for PLTOFF/GOTOFF.
29795
29796 2011-03-22  Nick Clifton  <nickc@redhat.com>
29797
29798         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
29799         trailing backslash from the end of the macro definition.
29800
29801 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29802
29803         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
29804         and PLT unspecs.
29805
29806 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
29807
29808         * expr.h (prepare_operand): Move to...
29809         * optabs.h (prepare_operand): ...here and change the insn code
29810         parameter from "int" to "enum insn_code".
29811         (insn_operand_matches): Declare.
29812         * expr.c (init_expr_target): Use insn_operand_matches.
29813         (compress_float_constant): Likewise.
29814         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
29815         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
29816         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
29817         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
29818         Likewise.
29819         (gen_cond_trap): Likewise.
29820         (prepare_operand): Likewise.  Change icode to an insn_code.
29821         (insn_operand_matches): New function.
29822         * reload.c (find_reloads_address_1): Use insn_operand_matches.
29823         * reload1.c (gen_reload): Likewise.
29824         * targhooks.c (default_secondary_reload): Likewise.
29825
29826 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
29827
29828         * config/alpha/alpha.md (unspec): New define_c_enum.
29829         (unspecv): Ditto.
29830
29831 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
29832
29833         PR debug/48214
29834         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
29835         between a call and its CALL_ARG_LOCATION note.
29836
29837 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
29838
29839         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
29840
29841 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
29842
29843         PR c/42544
29844         PR c/48197
29845         * c-common.c (shorten_compare): If primopN is first sign-extended
29846         to opN and then zero-extended to result type, set primopN to opN.
29847
29848 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
29849
29850         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
29851         for barrier handlers.
29852
29853 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
29854
29855         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
29856         UNSPEC constants to be in the unspec enumeration, and redefine
29857         all UNSPECV constants to be in the unspecv enumeration, so that
29858         dumps print which unspec/unspec_volatile this is.
29859         * config/rs6000/vector.md (UNSPEC_*): Ditto.
29860         * config/rs6000/paired.md (UNSPEC_*): Ditto.
29861         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
29862         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
29863         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
29864
29865         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
29866         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
29867         UNSPECV_LWSYNC, since these are used as unspec_volatile.
29868         * config/rs6000/sync.md (isync, lwsync): Ditto.
29869
29870 2011-03-21  Richard Guenther  <rguenther@suse.de>
29871
29872         * params.def (lto-min-partition): Fix typo.
29873
29874 2011-03-21  Richard Guenther  <rguenther@suse.de>
29875
29876         PR c/47939
29877         * c-decl.c (grokdeclarator): Drop to the main variant only
29878         for array types.  Drop flag_gen_aux_info check.
29879
29880 2011-03-21  Richard Guenther  <rguenther@suse.de>
29881
29882         PR translation/47911
29883         * params.def (lto-partitions): Fix typo.
29884         (lto-min-partition): Fix wording.
29885
29886 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
29887
29888         * config/rs6000/t-freebsd: Remove duplication from file.
29889
29890 2011-03-21  Richard Guenther  <rguenther@suse.de>
29891
29892         PR middle-end/47661
29893         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
29894
29895 2011-03-21  Richard Guenther  <rguenther@suse.de>
29896
29897         PR lto/48210
29898         * params.def (lto-partitions): Require at least 1 partition.
29899
29900 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29901
29902         * gthr-solaris.h: Remove.
29903         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
29904         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
29905         (LIB_SPEC): Likewise.
29906         * config/sol2.opt (threads): Remove.
29907         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
29908         (sparc*-*-solaris2*): Likewise.
29909         * configure.ac (enable_threads): Enable solaris support.
29910         * configure: Regenerate.
29911         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
29912         * doc/install.texi (Configuration, --enable-threads=lib): Remove
29913         solaris.
29914
29915 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29916
29917         * config.gcc: Obsolete *-*-solaris2.8*.
29918         * doc/install.texi (Specific, *-*-solaris2*): Document it.
29919
29920 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29921
29922         PR bootstrap/48135
29923         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
29924         reference.  Solaris 8 perl works.
29925
29926 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29927
29928         PR bootstrap/48135
29929         * doc/install.texi (Prerequisites): Move jar etc. up.
29930         Explain support library version requirements.
29931
29932 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29933
29934         PR bootstrap/48135
29935         * doc/install.texi (Prerequisites): Move Perl to build
29936         requirements.  Always necessary on Solaris 2 with Sun ld.
29937
29938 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29939
29940         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
29941         binutils 2.21.
29942         (Specific, i?86-*-solaris2.[89]): Likewise.
29943         (Specific, i?86-*-solaris2.10): Likewise.
29944         (Specific, mips-sgi-irix6): Likewise.
29945         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
29946         Update for binutils 2.21.
29947
29948 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29949
29950         * configure.ac (gcc_cv_lto_plugin): Fix typo.
29951         Allow -fuse-linker-plugin for non-default plugin linker.
29952         * configure: Regenerate.
29953
29954 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
29955
29956         PR bootstrap/48167
29957         * gengtype.c (files_rules): Added rule for cp/parser.h.
29958
29959 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
29960
29961         PR target/48213
29962         * config/s390/s390.c (s390_delegitimize_address): Don't call
29963         lowpart_subreg if orig_x has BLKmode.
29964
29965 2011-03-21  Kai Tietz  <ktietz@redhat.com>
29966
29967         PR target/12171
29968         * doc/plugins.texi: Adjust documentation for plugin register_callback.
29969         * tree.h (attribute_spec): Add new member affects_type_identity.
29970         * attribs.c (empty_attribute_table): Adjust attribute_spec
29971         initializers.
29972         * config/alpha/alpha.c: Likewise.
29973         * config/arc/arc.c: Likewise.
29974         * config/arm/arm.c: Likewise.
29975         * config/avr/avr.c: Likewise.
29976         * config/bfin/bfin.c: Likewise.
29977         * config/crx/crx.c: Likewise.
29978         * config/darwin.h: Likewise.
29979         * config/h8300/h8300.c: Likewise.
29980         * config/i386/cygming.h: Likewise.
29981         * config/i386/i386.c: Likewise.
29982         * config/ia64/ia64.c: Likewise.
29983         * config/m32c/m32c.c: Likewise.
29984         * config/m32r/m32r.c: Likewise.
29985         * config/m68hc11/m68hc11.c: Likewise.
29986         * config/m68k/m68k.c: Likewise.
29987         * config/mcore/mcore.c: Likewise.
29988         * config/mep/mep.c: Likewise.
29989         * config/microblaze/microblaze.c: Likewise.
29990         * config/mips/mips.c: Likewise.
29991         * config/rs6000/rs6000.c: Likewise.
29992         * config/rx/rx.c: Likewise.
29993         * config/sh/sh.c: Likewise.
29994         * config/sol2.h: Likewise.
29995         * config/sparc/sparc.c: Likewise.
29996         * config/spu/spu.c: Likewise.
29997         * config/stormy16/stormy16.c: Likewise.
29998         * config/v850/v850.c: Likewise.
29999
30000 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
30001
30002         * simplify-rtx.c (simplify_binary_operation_1): Handle
30003         (xor (and A B) C) case when B and C are both constants.
30004
30005 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
30006
30007         * tree-dfa.c (add_referenced_var): Fix typo in comment.
30008
30009 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
30010
30011         PR bootstrap/48168
30012         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
30013
30014 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
30015
30016         PR rtl-optimization/48156
30017         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
30018         assume df and df_lr are not NULL.
30019
30020 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
30021
30022         PR debug/48023
30023         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
30024         between a call and its CALL_ARG_LOCATION note.
30025
30026 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
30027
30028         PR debug/48178
30029         * config/sh/sh.c (find_barrier): Don't emit a constant pool
30030         between a call and its corresponding CALL_ARG_LOCATION note.
30031
30032 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
30033
30034         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
30035         instead of loop. Use HARD_REGISTER_NUM_P predicate.
30036         * haifa-sched.c (setup_ref_regs): Ditto.
30037         * caller-save.c (add_used_regs_1): Ditto.
30038         * dse.c (look_for_hardregs): Ditto.
30039         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
30040         * sched-rgn.c (check_live_1): Ditto.
30041
30042 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
30043
30044         * c-decl.c (diagnose_mismatched_decls): Give an error for
30045         redefining a typedef with variably modified type.
30046
30047 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
30048
30049         * c-decl.c (grokfield): Don't allow typedefs for structures or
30050         unions with no tag by default.
30051         * doc/extend.texi (Unnamed Fields): Update.
30052
30053 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
30054
30055         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
30056         Rewrite using indirect functions.
30057         (lwp_slwpcb): Ditto.
30058         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
30059         (avx_vinsertf128<mode>): Ditto.
30060
30061 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30062
30063         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
30064         unspecs.
30065
30066 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30067
30068         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
30069         splitting between a call and its corresponding CALL_ARG_LOCATION note.
30070
30071 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
30072
30073         PR rtl-optimization/48170
30074         * gcse.c (hoist_code): Remove bogus asserts.
30075
30076 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
30077
30078         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
30079         computation for prologue/epilogue.
30080
30081 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30082
30083         * Makefile.in (check-consistency): Remove.
30084
30085 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
30086
30087         PR debug/48176
30088         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
30089         arange_table_in_use is 0, but either text_section_used or
30090         cold_text_section_used is true.  Don't call it if
30091         !info_section_emitted.
30092
30093 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
30094
30095         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
30096         FUNCTION_VALUE_REGNO_P): Remove.
30097         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
30098         Remove.
30099         * config/avr/avr.c (avr_ret_register): Make static inline.
30100         (avr_function_value_regno_p): New function.
30101         (avr_libcall_value): Make static. Add 'func' argument.
30102         (avr_function_value): Make static. Rename 'func' argument to
30103         'fn_decl_or_type', forward it to avr_libcall_value. Call
30104         avr_ret_register function instead of RET_REGISTER macro.
30105         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
30106
30107 2011-03-18  Jason Merrill  <jason@redhat.com>
30108
30109         PR c++/23372
30110         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
30111
30112 2011-03-18  Richard Guenther  <rguenther@suse.de>
30113
30114         * doc/install.texi (--enable-gold): Remove.
30115         (--with-plugin-ld): Document.
30116         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
30117
30118 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
30119
30120         PR middle-end/47790
30121         * expr.c (optimize_bitfield_assignment_op): Revamp to work
30122         again after expansion changes.
30123
30124 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
30125
30126         * combine.c (try_combine): Do simplification only call of
30127         subst() on i2 even when i1 is present. Update comments.
30128
30129 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
30130
30131         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
30132         and UNSPEC_PCREL_SYMOFF.
30133
30134 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30135
30136         * config/s390/s390.md: Use define_c_enum for the unspec constant
30137         definitions.
30138
30139 2011-03-18  Richard Henderson  <rth@redhat.com>
30140             Jakub Jelinek  <jakub@redhat.com>
30141
30142         PR bootstrap/48161
30143         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
30144         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
30145
30146 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
30147
30148         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
30149         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
30150         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
30151         Change return type to bool.
30152         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
30153
30154 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
30155
30156         PR debug/48163
30157         * var-tracking.c (prepare_call_arguments): If CALL target
30158         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
30159         pc instead of looking it up using cselib_lookup and use
30160         Pmode for it if x has VOIDmode.
30161         * dwarf2out.c (gen_subprogram_die): If also both first and
30162         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
30163
30164         PR debug/48163
30165         * function.c (assign_parms): For data.passed_pointer parms
30166         use MEM of data.entry_parm instead of data.entry_parm itself
30167         as DECL_INCOMING_RTL.
30168         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
30169         also when passed and declared mode is the same, DECL_RTL
30170         is a MEM with pseudo as address and DECL_INCOMING_RTL is
30171         a MEM too.
30172
30173 2011-03-16  Jeff Law  <law@redhat.com>
30174
30175         PR rtl-optimization/37273
30176         * ira-costs.c (scan_one_insn): Detect constants living in memory and
30177         handle them like argument loads from stack slots.  Do not double
30178         count memory for memory constants and argument loads from stack slots.
30179
30180 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30181
30182         PR debug/48160
30183         * var-tracking.c (prepare_call_arguments): Check SUBREG.
30184
30185 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30186
30187         PR target/48171
30188         * config/i386/i386.opt: Add Save to -mavx and -mfma.
30189
30190 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
30191
30192         PR bootstrap/48153
30193         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
30194         if dwarf_strict.
30195         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
30196         Clear call_arg_locations and call_arg_loc_last always.
30197
30198         PR middle-end/48152
30199         * var-tracking.c (prepare_call_arguments): If argument needs to be
30200         passed by reference, adjust argtype and mode.
30201
30202 2011-03-17  Richard Guenther  <rguenther@suse.de>
30203
30204         PR middle-end/48134
30205         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
30206         a value make sure to fold the statement.
30207
30208 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
30209
30210         PR target/43872
30211         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
30212         return condition with !cfun->calls_alloca.
30213
30214 2011-03-17  Richard Guenther  <rguenther@suse.de>
30215
30216         PR bootstrap/48148
30217         * lto-cgraph.c (input_overwrite_node): Clear the abstract
30218         origin for decls in other ltrans units.
30219         (input_varpool_node): Likewise.
30220
30221 2011-03-17  Richard Guenther  <rguenther@suse.de>
30222
30223         PR middle-end/48165
30224         * tree-object-size.c (compute_object_offset): Properly return
30225         the offset operand of MEM_REFs as sizetype.
30226
30227 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
30228
30229         PR rtl-optimization/48141
30230         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
30231         * dse.c: Include params.h.
30232         (active_local_stores_len): New variable.
30233         (add_wild_read, dse_step1): Clear it when setting active_local_stores
30234         to NULL.
30235         (record_store, check_mem_read_rtx): Decrease it when removing
30236         from the chain.
30237         (scan_insn): Likewise.  Increase it when adding to chain, if it
30238         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
30239         set active_local_stores to NULL before the addition.
30240         * Makefile.in (dse.o): Depend on $(PARAMS_H).
30241
30242         PR rtl-optimization/48141
30243         * dse.c (record_store): If no positions are needed in an insn
30244         that cannot be deleted, at least unchain it from active_local_stores.
30245
30246 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
30247
30248         PR debug/47510
30249         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
30250         (lookup_type_die_strip_naming_typedef): ... here.
30251         (get_context_die): Use it.
30252         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
30253         the anonymous struct named by the naming typedef.
30254
30255 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
30256
30257         PR target/48154
30258         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
30259         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
30260
30261 2011-03-16  Jeff Law  <law@redhat.com>
30262
30263         * tree-vrp.c (identify_jump_threads): Slightly simplify type
30264         check for operands of conditional.  Allow type to be a pointer.
30265
30266 2011-03-16  Richard Guenther  <rguenther@suse.de>
30267
30268         PR tree-optimization/48149
30269         * fold-const.c (fold_binary_loc): Fold
30270         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
30271
30272 2011-03-16  Richard Guenther  <rguenther@suse.de>
30273
30274         PR tree-optimization/26134
30275         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
30276         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
30277         (non_rewritable_mem_ref_base): Handle complex type component
30278         accesses, constrain offsets for vector and complex extracts
30279         more properly.
30280
30281 2011-03-16  Richard Guenther  <rguenther@suse.de>
30282
30283         PR tree-optimization/48146
30284         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
30285         operands avoiding the need for renaming.
30286
30287 2011-03-16  Richard Guenther  <rguenther@suse.de>
30288
30289         * gimple-fold.c (maybe_fold_reference): Open-code relevant
30290         constant folding.  Move MEM_REF canonicalization first.
30291         Rely on fold_const_aggregate_ref for initializer folding.
30292         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
30293
30294 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
30295
30296         PR middle-end/48136
30297         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
30298         arg0/arg1 or their arguments are always fold converted to matching
30299         types.
30300
30301         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
30302         to nargs.
30303
30304 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30305
30306         PR lto/46944
30307         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
30308         Handle in-tree gold.
30309         (ld_vers): Extract binutils version for gold.
30310         (gcc_cv_ld_hidden): Handle gold here.
30311         (gcc_cv_lto_plugin): Determine level of linker plugin support.
30312         * configure: Regenerate.
30313         * config.in: Regenerate.
30314         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
30315         -fuse-linker-plugin otherwise.
30316         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
30317         (LINK_COMMAND_SPEC): Use it.
30318         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
30319
30320 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
30321
30322         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
30323         * calls.c: Remove debug.h include.
30324         (emit_call_1): Don't call virtual_call_token debug hook.
30325         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
30326         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
30327         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
30328         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
30329         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
30330         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
30331         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
30332         dwarf2out_virtual_call): Remove.
30333         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
30334         copy_call_info and virtual_call hooks.
30335         (dwarf2out_init): Don't initialize vcall_insn_table,
30336         debug_dcall_section and debug_vcall_section.
30337         (prune_unused_types): Don't mark nodes from dcall_table.
30338         (dwarf2out_finish): Don't output dcall or vcall tables.
30339         * final.c (final_scan_insn): Don't call direct_call or
30340         virtual_call debug hooks.
30341         * debug.h (struct gcc_debug_hooks): Remove direct_call,
30342         virtual_call_token, copy_call_info and virtual_call hooks.
30343         (debug_nothing_uid): Remove prototype.
30344         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
30345         copy_call_info and virtual_call hooks.
30346         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
30347         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
30348         * debug.c (do_nothing_debug_hooks): Likewise.
30349         (debug_nothing_uid): Remove.
30350         * doc/invoke.texi (-fenable-icf-debug): Remove.
30351         * common.opt (-fenable-icf-debug): Likewise.
30352
30353         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
30354         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
30355         call's MEM.  Handle functions returning aggregate through a hidden
30356         first pointer.  For virtual calls add clobbered pc to call arguments
30357         chain.
30358         * dwarf2out.c (gen_subprogram_die): Emit
30359         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
30360         can't be emitted.
30361
30362         PR debug/45882
30363         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
30364         * rtl.h (ENTRY_VALUE_EXP): Define.
30365         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
30366         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
30367         * print-rtl.c (print_rtx): Likewise.
30368         * gengtype.c (adjust_field_rtx_def): Likewise.
30369         * var-tracking.c (vt_add_function_parameter): Adjust
30370         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
30371         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
30372         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
30373         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
30374         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
30375
30376         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
30377         Call var_location debug hook even on CALL_INSNs.
30378         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
30379         * rtl.def (ENTRY_VALUE): New.
30380         * dwarf2out.c: Include cfglayout.h.
30381         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
30382         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
30383         (struct call_arg_loc_node): New type.
30384         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
30385         tail_call_site_count): New variables.
30386         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
30387         DW_TAG_GNU_call_site_parameter.
30388         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
30389         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
30390         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
30391         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
30392         and DW_AT_GNU_all_source_call_sites.
30393         (mem_loc_descriptor): Handle ENTRY_VALUE.
30394         (add_src_coords_attributes): Don't add enything if
30395         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
30396         (dwarf2out_abstract_function): Save and clear call_arg_location,
30397         call_site_count and tail_call_site_count around dwarf2out_decl call.
30398         (gen_call_site_die): New function.
30399         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
30400         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
30401         (dwarf2out_function_decl): Clear call_arg_locations,
30402         call_arg_loc_last, set call_site_count and tail_call_site_count
30403         to -1 and free block_map.
30404         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
30405         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
30406         followed by any real instructions.
30407         (dwarf2out_begin_function): Set call_site_count and
30408         tail_call_site_count to 0.
30409         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
30410         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
30411         attempt to force a DIE for it and worst case remove the attribute.
30412         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
30413         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
30414         the decl itself.
30415         * var-tracking.c: Include tm_p.h.
30416         (vt_stack_adjustments): For calls call note_register_arguments.
30417         (argument_reg_set): New variable.
30418         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
30419         ensure the VALUE is resolved.
30420         (call_arguments): New variable.
30421         (prepare_call_arguments): New function.
30422         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
30423         (struct expand_loc_callback_data): Add ignore_cur_loc field.
30424         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
30425         always use the best expression.
30426         (vt_expand_loc): Add ignore_cur_loc argument.
30427         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
30428         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
30429         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
30430         note for all calls.
30431         (vt_add_function_parameter): Use cselib_lookup_from_insn.
30432         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
30433         argument.  Don't call cselib_preserve_only_values and
30434         cselib_reset_table.
30435         (note_register_arguments): New function.
30436         (vt_initialize): Compute argument_reg_set.  Call
30437         vt_add_function_parameters before processing basic blocks instead of
30438         afterwards.  For calls call prepare_call_arguments before calling
30439         cselib_process_insn.
30440         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
30441         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
30442         (var-tracking.o): Depend on $(TM_P_H).
30443         * cfglayout.h (insn_scope): New prototype.
30444         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
30445         * cfglayout.c (insn_scope): No longer static.
30446         * insn-notes.def (CALL_ARG_LOCATION): New.
30447         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
30448         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
30449         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
30450         nothing for DECL_EXTERNAL BLOCK_VARS.
30451
30452 2011-03-16  Alan Modra  <amodra@gmail.com>
30453
30454         PR target/45844
30455         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
30456         create invalid offset address for vsx splat insn.
30457         * config/rs6000/predicates.md (splat_input_operand): New.
30458         * config/rs6000/vsx.md (vsx_splat_*): Use it.
30459
30460 2011-03-15  Xinliang David Li  <davidxl@google.com>
30461
30462         PR c/47837
30463         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
30464         (normalize_preds): New function.
30465         (is_use_properly_guarded): Normalize def predicates.
30466
30467 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
30468
30469         PR target/46788
30470         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
30471         in the output template.
30472
30473 2011-03-15  Richard Guenther  <rguenther@suse.de>
30474
30475         PR middle-end/47650
30476         * tree-pretty-print.c (dump_function_declaration): Properly
30477         dump unprototyped and varargs function types.
30478
30479 2011-03-15  Richard Guenther  <rguenther@suse.de>
30480
30481         PR tree-optimization/13954
30482         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
30483         and friends.
30484
30485 2011-03-15  Richard Guenther  <rguenther@suse.de>
30486
30487         PR tree-optimization/48037
30488         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
30489         selects into BIT_FIELD_REFs.
30490         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
30491         vector select.
30492
30493 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
30494
30495         PR tree-optimization/48129
30496         * builtins.c (fold_builtin_snprintf): Convert to type of
30497         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
30498         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
30499
30500 2011-03-15  Richard Guenther  <rguenther@suse.de>
30501
30502         PR tree-optimization/41490
30503         * tree-ssa-dce.c (propagate_necessity): Handle returns without
30504         value but with VUSE.
30505         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
30506         return statements.
30507         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
30508         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
30509         * tree-tailcall.c (find_tail_calls): Ignore returns.
30510
30511 2011-03-15  Richard Guenther  <rguenther@suse.de>
30512
30513         PR middle-end/48031
30514         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
30515         or variable-indexed array accesses when in gimple form.
30516
30517 2011-03-15  Richard Guenther  <rguenther@suse.de>
30518
30519         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
30520
30521 2011-03-15  Alan Modra  <amodra@gmail.com>
30522
30523         PR target/48032
30524         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
30525         presume symbol_refs without a symbol_ref_decl are suitably
30526         aligned, nor other trees we may see here.  Handle anchor symbols.
30527         (legitimate_constant_pool_address_p): Comment.  Add mode param.
30528         Check cmodel=medium addresses.  Adjust all calls.
30529         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
30530         creating cmodel=medium optimized access to locals.
30531         * config/rs6000/constraints.md (R): Pass QImode to
30532         legitimate_constant_pool_address_p.
30533         * config/rs6000/predicates.md (input_operand): Pass mode to
30534         legitimate_constant_pool_address_p.
30535         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
30536         Update prototype.
30537
30538 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
30539
30540         PR target/48053
30541         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
30542         64-bit constants being loaded into registers other than GPRs such
30543         as loading 0 into a VSX register.
30544
30545 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30546
30547         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
30548
30549 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
30550
30551         PR middle-end/47917
30552         * builtins.c (fold_builtin_snprintf): New function.
30553         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
30554         (fold_builtin_4): Likewise.
30555
30556         PR middle-end/38878
30557         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
30558         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
30559         and C - X == X also strip nops from +/-/p+ operand.
30560         When optimizing -X == C, fold C to arg0's type.
30561
30562         PR debug/47946
30563         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
30564         emit it as add_AT_int instead of add_AT_unsigned.
30565
30566 2011-03-14  Tom Tromey  <tromey@redhat.com>
30567
30568         * unwind-dw2.c: Include sys/sdt.h if it exists.
30569         (_Unwind_DebugHook): Use STAP_PROBE2.
30570         * config.in, configure: Rebuild.
30571         * configure.ac: Check for sys/sdt.h.
30572
30573 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
30574
30575         * config/i386/i386.md (ROUND_FLOOR): New constant.
30576         (ROUND_CEIL): Ditto.
30577         (ROUND_TRUNC): Ditto.
30578         (ROUND_MXCSR): Ditto.
30579         (ROUND_NO_EXC): Ditto.
30580         (rint<mode>2): Use new defines instead of numerical constants.
30581         (floor<mode>2): Ditto.
30582         (ceil<mode>2): Ditto.
30583         (btrunc<mode>2): Ditto.
30584         * config/i386/i386-builtin-types.def: Define ROUND function type
30585         aliases.
30586         * config/i386/i386.c (enum ix86_builtins): Add
30587         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
30588         (struct builtin_description): Add
30589         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
30590         (ix86_expand_sse_round): New static function.
30591         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
30592         function types.
30593         (ix86_builtin_vectorized_function): Handle
30594         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
30595
30596 2011-03-14  Tom Tromey  <tromey@redhat.com>
30597
30598         * c-parser.c (c_parser_asm_string_literal): Clear
30599         warn_overlength_strings.
30600
30601 2011-03-14  Tom Tromey  <tromey@redhat.com>
30602
30603         * c-parser.c (disable_extension_diagnostics): Save
30604         warn_overlength_strings.
30605         (restore_extension_diagnostics): Restore warn_overlength_strings.
30606
30607 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
30608
30609         * BASE-VER: Change to 4.7.0.
30610
30611 2011-03-14  Richard Guenther  <rguenther@suse.de>
30612
30613         PR middle-end/48098
30614         * tree.c (build_vector_from_val): Adjust assert to requirements
30615         and reality.
30616
30617 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
30618
30619         PR bootstrap/48102
30620         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
30621
30622 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
30623
30624         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
30625         terms of target_flags_explicit. Adjust copyright year.
30626
30627         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
30628         * config/rs6000/t-freebsd: New file. Add override for
30629         LIB2FUNCS_EXTRA.
30630
30631 2011-03-13  Chris Demetriou  <cgd@google.com>
30632
30633         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
30634         (-fno-diagnostics-show-option): this, to reflect current default.
30635         (-Werror=): Update text about -fno-diagnostics-show-option.
30636
30637 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
30638
30639         PR target/48053
30640         * config/rs6000/predicates.md (easy_vector_constant_add_self,
30641         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
30642         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
30643         mode is not V2DImode or V2DFmode.
30644         (vspltis_constant): Do not handle V2DImode and V2DFmode.
30645         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
30646         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
30647         registers to 0.
30648         (movdi_internal64): Likewise.
30649
30650 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
30651
30652         PR tree-optimization/47127
30653         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
30654         parameter.
30655         (set_cloog_options): Same.
30656         (scop_to_clast): Same.
30657         (print_clast_stmt): Do not call cloog_state_malloc and
30658         cloog_state_free.
30659         (print_generated_program): Same.
30660         (gloog): Same.
30661         * graphite-clast-to-gimple.h (cloog_state): Declared.
30662         (scop_to_clast): Adjust declaration.
30663         * graphite.c (cloog_state): Defined here.
30664         (graphite_initialize): Call cloog_state_malloc.
30665         (graphite_finalize): Call cloog_state_free.
30666
30667 2011-03-11  Jason Merrill  <jason@redhat.com>
30668
30669         * attribs.c (lookup_attribute_spec): Take const_tree.
30670         * tree.h: Adjust.
30671
30672 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
30673
30674         * config/sparc/sparc.c (sparc_option_override): Use
30675         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
30676
30677 2011-03-11  Richard Guenther  <rguenther@suse.de>
30678
30679         PR tree-optimization/48067
30680         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
30681         multiplication result will be only used once on the target
30682         stmt.
30683
30684 2011-03-11  Richard Guenther  <rguenther@suse.de>
30685
30686         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
30687
30688 2011-03-11  Richard Guenther  <rguenther@suse.de>
30689
30690         PR lto/48073
30691         * tree.c (find_decls_types_r): Do not walk types only reachable
30692         from IDENTIFIER_NODEs.
30693
30694 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
30695
30696         PR middle-end/48044
30697         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
30698         all vnode->force_output nodes as needed.
30699
30700 2011-03-11  Jason Merrill  <jason@redhat.com>
30701
30702         PR c++/48069
30703         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
30704         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
30705
30706 2011-03-11  Martin Jambor  <mjambor@suse.cz>
30707
30708         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
30709         cgraph_node.
30710
30711 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
30712
30713         PR tree-optimization/48063
30714         * ipa-inline.c (cgraph_decide_inlining): Don't try to
30715         inline functions called once if !tree_can_inline_p (node->callers).
30716
30717 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
30718
30719         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
30720         extra_objs.
30721         * config/score/score3.c: Delete.
30722         * config/score/score3.h: Delete.
30723         * config/score/mul-div.S: Delete.
30724         * config/score/sfp-machine.h: Add new file.
30725         * config/score/constraints.md: Add new file.
30726         * config/score/t-score-softfp: Add new file.
30727         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
30728         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
30729         (score7_extra_constraint): Delete.
30730         (score7_option_override): Remove unused code.
30731         * config/score/score.c: Remove score3 and score5 define and code.
30732         * config/score/score.h: Remove score3 and score5 define and code.
30733         * config/score/score.md: Remove score3 template and unusual insn.
30734         * config/score/score.opt: Remove score3 and score5 options.
30735
30736 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30737
30738         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
30739         when _HPUX_SOURCE is defined.
30740         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
30741
30742 2011-03-10  Jason Merrill  <jason@redhat.com>
30743
30744         PR c++/48029
30745         * stor-layout.c (layout_type): Don't set structural equality
30746         on arrays of incomplete type.
30747         * tree.c (type_hash_eq): Handle comparing them properly.
30748
30749 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
30750
30751         PR debug/48043
30752         * config/s390/s390.c (s390_delegitimize_address): Make sure the
30753         result mode matches original rtl mode.
30754
30755 2011-03-10  Nick Clifton  <nickc@redhat.com>
30756
30757         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
30758         (andsi3, andsi3_flags): Fix timings for three operand alternative.
30759
30760 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
30761
30762         PR rtl-optimization/47866
30763         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
30764         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
30765         if target wasn't scalar.
30766         * function.c (assign_stack_temp_for_type): Assert that neither
30767         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
30768         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
30769         macro.
30770         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
30771
30772 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30773
30774         * config/s390/s390-protos.h (s390_label_align): New prototype.
30775         * config/s390/s390.c (s390_label_align): New function.
30776         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
30777
30778 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
30779
30780         PR target/47755
30781         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
30782         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
30783         (output_vec_const_move): Ditto.
30784
30785 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
30786
30787         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
30788         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
30789         * config/mips/mips.c (mips_preferred_reload_class): Make static.
30790         Change 'rclass' argument and result type to reg_class_t.
30791         (TARGET_PREFERRED_RELOAD_CLASS): Define.
30792
30793 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
30794
30795         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
30796         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
30797         (TARGET_MEMORY_MOVE_COST): Define.
30798         (avr_register_move_cost, avr_memory_move_cost): New Functions.
30799
30800 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
30801
30802         PR debug/47881
30803         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
30804         removed anything.
30805
30806         PR tree-optimization/48022
30807         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
30808         for EQ/NE_EXPR.
30809
30810 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
30811
30812         PR debug/47991
30813         * var-tracking.c (find_use_val): Return NULL for
30814         cui->sets && cui->store_p BLKmode MEMs.
30815
30816 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
30817
30818         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
30819         Remove.
30820         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
30821         xstormy16_print_operand_address): Remove.
30822         * config/stormy16/stormy16.c (xstormy16_print_operand,
30823         xstormy16_print_operand_address): Make static.
30824         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
30825
30826 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
30827
30828         PR target/47862
30829         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
30830         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
30831         before definition.
30832
30833 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
30834
30835         PR bootstrap/48000
30836         * cfgloopmanip.c (fix_bb_placements): Return immediately
30837         if FROM is BASE_LOOP's header.
30838
30839 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
30840
30841         * gimplify.c (gimplify_function_tree): Fix building calls
30842         to __builtin_return_address.
30843
30844 2011-03-07  Alan Modra  <amodra@gmail.com>
30845
30846         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
30847         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
30848         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
30849         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
30850         return_mode args.
30851         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
30852         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
30853         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
30854         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
30855         * config/rs6000/rs6000.c
30856         (rs6000_elf_end_indicate_exec_stack): Rename to..
30857         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
30858         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
30859         (rs6000_file_start): ..here.
30860         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
30861         file scope variables.
30862         (call_ABI_of_interest): New function.
30863         (init_cumulative_args): Set above vars when function return value
30864         is a float, vector, or small struct.
30865         (rs6000_function_arg_advance_1): Likewise for function args.
30866         (rs6000_va_start): Set rs6000_passes_float if variable arg function
30867         references float args.
30868
30869 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
30870
30871         * doc/cfg.texi: Remove "See" before @ref.
30872         * doc/invoke.texi: Likewise.
30873
30874 2011-03-05  Jason Merrill  <jason@redhat.com>
30875
30876         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
30877
30878 2011-03-05  Anthony Green  <green@moxielogic.com>
30879
30880         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
30881
30882 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
30883
30884         PR rtl-optimization/47899
30885         * cfgloopmanip.c (fix_bb_placements): Fix first argument
30886         to flow_loop_nested_p when moving the loop upward.
30887
30888 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
30889
30890         PR target/47719
30891         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
30892
30893 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
30894
30895         PR tree-optimization/47967
30896         * ipa-cp.c (build_const_val): Return NULL instead of creating
30897         VIEW_CONVERT_EXPR for mismatching sizes.
30898         (ipcp_create_replace_map): Return NULL if build_const_val failed.
30899         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
30900         give up on versioning.
30901
30902 2011-03-05  Alan Modra  <amodra@gmail.com>
30903
30904         PR target/47986
30905         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
30906         full cmodel medium/large lo_sum + high addresses.
30907
30908 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30909
30910         * config/s390/s390.c (s390_decompose_address): Reject non-literal
30911         pool references in UNSPEC_LTREL_OFFSET.
30912
30913 2011-03-04  Jan Hubicka  <jh@suse.cz>
30914
30915         PR lto/47497
30916         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
30917         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
30918         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
30919         Add node pointers.
30920         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
30921         cgraph_add_thunk): Add node pointers.
30922         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
30923         associated to right node.
30924         (input_node): Update use of cgraph_same_body_alias
30925         and cgraph_add_thunk.
30926
30927 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
30928
30929         * config/i386/i386.opt (mprefer-avx128): New flag.
30930         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
30931         modes when the flag -mprefer-avx128 is on.
30932
30933 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
30934
30935         * dwarf2out.c (compare_loc_operands): Fix address handling.
30936
30937 2011-03-04  Alan Modra  <amodra@gmail.com>
30938
30939         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
30940
30941 2011-03-04  Richard Guenther  <rguenther@suse.de>
30942
30943         PR middle-end/47968
30944         * expmed.c (extract_bit_field_1): Prefer vector modes that
30945         vec_extract patterns can handle.
30946
30947 2011-03-04  Richard Guenther  <rguenther@suse.de>
30948
30949         PR middle-end/47975
30950         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
30951
30952 2011-03-04  Richard Henderson  <rth@redhat.com>
30953
30954         * explow.c (emit_stack_save): Remove 'after' parameter.
30955         (emit_stack_restore): Likewise.
30956         * expr.h: Update to match.
30957         * builtins.c, calls.c, stmt.c: Likewise.
30958         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
30959         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
30960         * function.c (expand_function_end): Insert the emit_stack_save
30961         sequence before parm_birth_insn instead of after.
30962
30963 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
30964
30965         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
30966         (ssse3_pmaddubsw128): Ditto.
30967         (ssse3_pmaddubsw): Ditto.
30968
30969 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
30970
30971         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
30972
30973 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
30974
30975         PR c/47963
30976         * gimplify.c (omp_add_variable): Only call omp_notice_variable
30977         on TYPE_SIZE_UNIT if it is a DECL.
30978
30979         PR debug/47283
30980         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
30981         first operand is not is_gimple_mem_ref_addr, try to fold it.
30982         If the operand still isn't is_gimple_mem_ref_addr, clear
30983         MEM_EXPR on op0.
30984
30985 2011-03-03  Richard Guenther  <rguenther@suse.de>
30986
30987         PR middle-end/47283
30988         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
30989         match comment.
30990         (refs_may_alias_p_1): For release branches return true if
30991         we are confused by our input.
30992
30993 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30994
30995         * config/s390/s390.c (s390_function_value): Rename to ...
30996         (s390_function_and_libcall_value): ... this.
30997         (s390_function_value): New function.
30998         (s390_libcall_value): New function.
30999         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
31000         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
31001         target macro definitions.
31002         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
31003
31004 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
31005
31006         * config/i386/freebsd64.h (CC1_SPEC): Define.
31007         * config/i386/linux64.h (CC1_SPEC): Define.
31008         * config/i386/x86-64.h (CC1_SPEC): Don't define.
31009
31010 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
31011
31012         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
31013         Remove.
31014         * config/stormy16/stormy16.c: Include reload.h.
31015         (xstormy16_memory_move_cost): New function.
31016         (TARGET_MEMORY_MOVE_COST): Define.
31017
31018 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
31019
31020         PR rtl-optimization/47925
31021         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
31022         with side effects.  Remove the more-specific check for volatile asms.
31023
31024 2011-03-02  Alan Modra  <amodra@gmail.com>
31025
31026         PR target/47935
31027         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
31028         toc relative addresses for valid offsets.
31029
31030 2011-03-01  Richard Guenther  <rguenther@suse.de>
31031
31032         PR tree-optimization/47890
31033         * tree-vect-loop.c (get_initial_def_for_induction): Set
31034         related stmt properly.
31035
31036 2011-03-01  Richard Guenther  <rguenther@suse.de>
31037
31038         PR lto/47924
31039         * lto-streamer.c (lto_record_common_node): Also register
31040         the canonical type.
31041
31042 2011-03-01  Richard Guenther  <rguenther@suse.de>
31043
31044         PR lto/46911
31045         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
31046         Do not stream DECL_ABSTRACT_ORIGIN.
31047         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
31048         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
31049         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
31050         Do not stream DECL_ABSTRACT_ORIGIN.
31051         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
31052         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
31053
31054 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
31055
31056         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
31057         FUNCTION_VALUE_REGNO_P): Remove.
31058         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
31059         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
31060         Add 'outgoing' argument.
31061         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
31062         function.
31063         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
31064         TARGET_FUNCTION_VALUE_REGNO_P): Define.
31065
31066 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
31067
31068         PR debug/28047
31069         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
31070         (lookup_filename): Likewise.
31071         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
31072
31073 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
31074             Jakub Jelinek  <jakub@redhat.com>
31075
31076         PR middle-end/47893
31077         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
31078         (assign_stack_local_1): Change last argument type to int.
31079         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
31080         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
31081         don't record padding space into frame_space_list nor use those areas.
31082         (assign_stack_local): Adjust caller.
31083         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
31084         of assign_stack_local, pass 0 as last argument.
31085         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
31086         callers.
31087
31088 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
31089
31090         PR debug/47283
31091         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
31092         Use target address_mode and pointer_mode hooks instead of hardcoded
31093         Pmode and ptr_mode.  Handle some simple cases of extending if
31094         POINTERS_EXTEND_UNSIGNED < 0.
31095         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
31096         Call convert_debug_memory_address.
31097         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
31098         convert_debug_memory_address.
31099
31100         PR middle-end/46790
31101         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
31102         * configure: Regenerated.
31103         * config.in: Regenerated.
31104         * varasm.c (default_function_section): Return NULL
31105         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
31106
31107 2011-02-28  Martin Jambor  <mjambor@suse.cz>
31108
31109         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
31110         the description to match the printed values.
31111
31112 2011-02-28  Richard Guenther  <rguenther@suse.de>
31113
31114         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
31115         of the copied scope tree.
31116
31117 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31118
31119         * doc/extend.texi (Function Attributes): Avoid deeply (and
31120         wrongly) nested tables.
31121
31122 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
31123
31124         PR middle-end/47903
31125         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
31126         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
31127         r isn't op0 nor op1.
31128
31129 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
31130
31131         * config/avr/avr.md: Remove magic comment for emacs.
31132
31133 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
31134
31135         PR target/45261
31136         * config/avr/avr.c (avr_option_override): Use error on bad options.
31137         (avr_help): New function.
31138         (TARGET_HELP): Define.
31139
31140 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
31141
31142         PR target/42240
31143         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
31144         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
31145
31146 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
31147
31148         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
31149         (ARM Options): Ditto.
31150         (i386 and x86-64 Options): Ditto.
31151         (RX Options): Ditto.
31152         (SPARC Options): Ditto.
31153
31154 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
31155
31156         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
31157         FreeBSD 6 and later.  Generally use cpu generic.
31158
31159 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
31160
31161         * doc/cpp.texi: Update copyright years.
31162
31163 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
31164
31165         PR target/46898
31166         * config/lm32/lm32.md (ashrsi3): Added needed variable.
31167
31168 2011-02-25  Jon Beniston  <jon@beniston.com>
31169
31170         PR target/46898
31171         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
31172         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
31173         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
31174         (lm32_block_move_inline): Add type cast to remove warning.
31175         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
31176         (gen_int_relational): Move declarations to start of function.
31177
31178 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
31179
31180         PR tree-optimization/45470
31181         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
31182         can throw internally only.
31183         * tree-vect-stmts.c (vectorizable_call): Likewise.
31184
31185 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
31186
31187         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
31188         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
31189         * config/stormy16/stormy16-protos.h
31190         (xstormy16_preferred_reload_class): Remove.
31191         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
31192         static. Change 'rclass' argument and return type to reg_class_t.
31193         (TARGET_PREFERRED_RELOAD_CLASS,
31194         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
31195
31196 2011-02-24  Richard Guenther  <rguenther@suse.de>
31197
31198         * lto-streamer-in.c (input_bb): Do not find referenced vars
31199         in debug statements.
31200
31201 2011-02-23  Jason Merrill  <jason@redhat.com>
31202
31203         * common.opt (fabi-version): Document v5 and v6.
31204
31205 2011-02-23  Richard Guenther  <rguenther@suse.de>
31206
31207         PR tree-optimization/47849
31208         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
31209
31210 2011-02-23  Jie Zhang  <jie@codesourcery.com>
31211
31212         * opts-common.c (decode_cmdline_option): Print empty string
31213         argument as "" in decoded->orig_option_with_args_text.
31214         * gcc.c (execute): Print empty string argument as ""
31215         in the verbose output.
31216         (do_spec_1): Keep empty string argument.
31217
31218 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
31219
31220         * config.gcc: Declare score-* and crx-* obsolete.
31221
31222 2011-02-23  Jie Zhang  <jie@codesourcery.com>
31223
31224         PR rtl-optimization/47763
31225         * web.c (web_main): Ignore naked clobber when replacing register.
31226
31227 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
31228
31229         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
31230         Remove.
31231
31232 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
31233
31234         PR doc/47848
31235         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
31236
31237 2011-02-22  Mike Stump  <mikestump@comcast.net>
31238
31239         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
31240         assembler.
31241         * configure: Regenerate.
31242
31243 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
31244
31245         PR rtl-optimization/46002
31246         * ira-color.c (update_copy_costs): Change class intersection
31247         test to reg_class_contents[] test of 'hard_regno'.
31248
31249 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
31250
31251         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
31252         than Driver option.
31253         * config/hpux11.opt (mt): Likewise.
31254         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
31255         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
31256         * config/vax/elf.opt (mno-asm-pic): Likewise.
31257         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
31258
31259 2011-02-21  Mike Stump  <mikestump@comcast.net>
31260
31261         PR target/47822
31262         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
31263         tree so we can get save the type.
31264         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
31265         for CFString instead of trying to use past the end of the builtins.
31266         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
31267         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
31268         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
31269         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
31270         Rename to darwin_builtin_cfstring.
31271         (darwin_init_cfstring_builtins): Return the built type.
31272
31273 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
31274
31275         PR target/47840
31276         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
31277         (_mm256_insert_epi64): Use _mm_insert_epi64.
31278
31279 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
31280
31281         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
31282         * config/stormy16/stormy16-protos.h
31283         (xstormy16_mode_dependent_address_p): Remove.
31284         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
31285         Make static. Change return type to bool. Change argument type to
31286         const_rtx. Remove dead code.
31287         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
31288
31289 2011-02-21  Richard Guenther  <rguenther@suse.de>
31290
31291         PR lto/47820
31292         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
31293         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
31294         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
31295         TUs context.
31296         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
31297         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
31298
31299 2011-02-20  Richard Guenther  <rguenther@suse.de>
31300
31301         PR lto/47822
31302         * tree.c (free_lang_data_in_decl): Clean builtins from
31303         the TU decl BLOCK_VARS.
31304
31305 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
31306
31307         PR debug/47620
31308         PR debug/47630
31309         * haifa-sched.c (fix_tick_ready): Skip tick computation
31310         for debug insns.
31311
31312 2011-02-19  Richard Guenther  <rguenther@suse.de>
31313
31314         PR lto/47647
31315         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
31316         Remove lazy BLOCK_VARS streaming.
31317         (lto_input_ts_block_tree_pointers): Likewise.
31318         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
31319
31320 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
31321
31322         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
31323
31324 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
31325
31326         * config/i386/biarch32.h, config/i386/mach.h,
31327         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
31328
31329 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
31330
31331         PR target/47800
31332         * config/i386/i386.md (peephole2 for shift and plus): Use
31333         operands[1] original mode in the first insn.
31334
31335 2011-02-18  Mike Stump  <mikestump@comcast.net>
31336
31337         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
31338
31339 2011-02-18  Jan Hubicka  <jh@suse.cz>
31340
31341         PR middle-end/47788
31342         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
31343         to zero when the function is not inlinable at all.
31344
31345 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31346
31347         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
31348         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
31349         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
31350         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
31351         * config/pa/t-pa64: Likewise.
31352         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
31353
31354 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
31355
31356         PR driver/47787
31357         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
31358
31359 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31360
31361         PR target/47792
31362         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
31363
31364 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
31365
31366         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
31367         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
31368         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
31369         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
31370         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
31371         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
31372         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
31373         m32r_load_postinc_p, m32r_store_preinc_predec_p,
31374         m32r_legitimate_address_p): New functions.
31375         * config/m32r/constraints.md (constraint "S"): Don't use
31376         STORE_PREINC_PREDEC_P.
31377         (constraint "U"): Don't use LOAD_POSTINC_P.
31378
31379 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
31380
31381         PR rtl-optimization/46178
31382         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
31383         compute ira_hard_regno_cover_class[].
31384
31385 2011-02-18  Richard Guenther  <rguenther@suse.de>
31386
31387         PR lto/47798
31388         * lto-streamer.h (lto_global_var_decls): Declare.
31389         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
31390         statics for global var processing.
31391
31392 2011-02-18  Richard Guenther  <rguenther@suse.de>
31393
31394         PR tree-optimization/47737
31395         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
31396         edge dominance check.
31397
31398 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
31399
31400         PR debug/47780
31401         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
31402         avoid invalid rtx sharing.
31403
31404 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
31405
31406         * doc/cpp.texi (Obsolete Features): Add background on the
31407         origin of assertions.
31408
31409 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
31410
31411         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
31412         objc_abi == 2.
31413         * config/darwin.c (output_objc_section_asm_op): Added support for
31414         ABI v1 and v2.
31415         (is_objc_metadata): New.
31416         (darwin_objc2_section): New.
31417         (darwin_objc1_section): New.
31418         (machopic_select_section): Added support for ABI v1 and v2.
31419         (darwin_emit_objc_zeroed): New.
31420         (darwin_output_aligned_bss): Detect objc metadata and treat it
31421         appropriately.
31422         (darwin_asm_output_aligned_decl_common): Same.
31423         (darwin_asm_output_aligned_decl_local): Same.
31424         * config/darwin-sections.def: Updated for ABI v1 and v2.
31425         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
31426         compiling Objective-C code for the NeXT runtime, default to using
31427         ABI version 0 for 32-bit, and version 2 for 64-bit.
31428
31429 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
31430
31431         * common.opt (optimize_fast): New Variable.
31432         * opts.c (default_options_optimization): Use opts->x_optimize_fast
31433         instead of local variable ofast.
31434
31435 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
31436
31437         * doc/invoke.texi (fobjc-abi-version): Documented.
31438         (fobjc-nilcheck): Documented.
31439         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
31440         version.
31441
31442 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
31443
31444         PR driver/47390
31445         * common.opt (export-dynamic): New Driver option.
31446         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
31447
31448 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
31449
31450         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
31451
31452 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
31453             Jan Hubicka  <jh@suse.cz>
31454
31455         PR debug/47106
31456         PR debug/47402
31457         * cfgexpand.c (account_used_vars_for_block): Remove.
31458         (estimated_stack_frame_size): Use referenced vars.
31459         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
31460         that were referenced in the original function.  Test src_fn
31461         rather than cfun.  Drop redundant get_var_ann.
31462         (setup_one_parameter): Drop redundant get_var_ann.
31463         (declare_return_variable): Likewise.
31464         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
31465         (copy_arguments_for_versioning): Drop redundant get_var_ann.
31466         * ipa-inline.c (compute_inline_parameters): Do not compute
31467         disregard_inline_limits here.
31468         (compute_inlinable_for_current, pass_inlinable): New.
31469         (pass_inline_parameters): Require PROP_referenced_vars.
31470         * cgraphunit.c (cgraph_process_new_functions): Don't run
31471         compute_inline_parameters explicitly unless function is in SSA form.
31472         (cgraph_analyze_function): Set .disregard_inline_limits.
31473         * tree-sra.c (convert_callers): Compute inliner parameters
31474         only for functions already in SSA form.
31475
31476 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
31477
31478         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
31479         -mlittle-endian-data.
31480
31481 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
31482
31483         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
31484         -mno-fpu, not -fpu and -no-fpu.
31485         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
31486         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
31487
31488 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
31489
31490         PR target/43653
31491         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
31492         input reload with PLUS RTX.
31493
31494 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31495
31496         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
31497         of InverseVar(MDMX).
31498
31499 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31500
31501         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
31502         --m4-340.
31503
31504 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31505
31506         * config/mn10300/mn10300.opt (mno-crt0): New.
31507
31508 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31509
31510         * config/m68k/uclinux.opt (static-libc): New Driver option.
31511
31512 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31513
31514         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
31515
31516 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31517
31518         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
31519         %{muser-extend-enabled}.
31520
31521 2011-02-16  Richard Guenther  <rguenther@suse.de>
31522
31523         PR tree-optimization/47738
31524         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
31525         the TODO from tree_predictive_commoning.
31526
31527 2011-02-15  Jeff Law  <law@redhat.com>
31528
31529         Revert
31530         2011-01-25  Jeff Law  <law@redhat.com>
31531
31532         PR rtl-optimization/37273
31533         * ira-costs.c (scan_one_insn): Detect constants living in memory and
31534         handle them like argument loads from stack slots.  Do not double
31535         count memory for memory constants and argument loads from stack slots.
31536
31537 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
31538
31539         PR target/47755
31540         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
31541         mode for vector constants.  Remove code that checks for TImode.
31542
31543 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
31544
31545         PR debug/47106
31546         PR debug/47402
31547         * cgraph.h (compute_inline_parameters): Return void.
31548         * ipa-inline.c (compute_inline_parameters): Adjust.
31549
31550 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
31551
31552         PR debug/47106
31553         PR debug/47402
31554         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
31555         rather than decl.
31556         * cfgexpand.c (estimated_stack_frame_size): Likewise.
31557         * ipa-inline.c (compute_inline_parameters): Adjust.
31558
31559 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
31560
31561         PR debug/47106
31562         PR debug/47402
31563         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
31564         Adjust all users.  Pass FN to...
31565         * tree-flow-inline.h (first_referenced_var): ... this.  Add
31566         fn argument.
31567         * ipa-struct-reorg.c: Adjust.
31568         * tree-dfa.c: Adjust.
31569         * tree-into-ssa.c: Adjust.
31570         * tree-sra.c: Adjust.
31571         * tree-ssa-alias.c: Adjust.
31572         * tree-ssa-live.c: Adjust.
31573         * tree-ssa.c: Adjust.
31574         * tree-ssanames.c: Adjust.
31575         * tree-tailcall.c: Adjust.
31576
31577 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
31578
31579         PR debug/47106
31580         PR debug/47402
31581         * tree-flow.h (referenced_var_lookup): Add fn parameter.
31582         Adjust all callers.
31583         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
31584         * tree-flow-inline.h: Adjust.
31585         * gimple-pretty-print.c: Adjust.
31586         * tree-into-ssa.c: Adjust.
31587         * tree-ssa.c: Adjust.
31588         * cfgexpand.c: Adjust.
31589
31590 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
31591
31592         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
31593         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31594         (EXTRA_CONSTRAINT): Delete.
31595         * config/iq2000/constraints.md: New file.
31596         * config/iq2000/iq2000.md: Include it.
31597         (define_insn ""): Delete.
31598         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
31599         unsupported constraint letters from patterns.
31600         (call_value, call_value_internal1): Likewise.
31601         (call_value_multiple_internal1): Likewise.
31602
31603 2011-02-15  Nick Clifton  <nickc@redhat.com>
31604
31605         * config/mn10300/mn10300.c: Include tm-constrs.h.
31606         (struct liw_data): New data structure describing an LIW candidate
31607         instruction.
31608         (extract_bundle): Use struct liw_data.  Allow small integer
31609         operands for some instructions.
31610         (check_liw_constraints): Use struct liw_data.  Remove swapped
31611         parameter.  Add comments describing the checks.  Fix bug when
31612         assigning the source of liw1 to the source of liw2.
31613         (liw_candidate): Delete.  Code moved into extract_bundle.
31614         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
31615         before swapping.
31616         * config/mn10300/predicates.md (liw_operand): New predicate.
31617         Allows registers and small integer constants.
31618         * config/mn10300/constraints.md (O): New constraint.  Accetps
31619         integers in the range -8 to +7 inclusive.
31620         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
31621         for moving a small integer into a register.  Give this alternative
31622         LIW attributes.
31623         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
31624         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
31625         using the J,K,L and M constraints,
31626         (liw): Remove SI mode on second operands to allow for HI and QI
31627         mode values.
31628         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
31629         instruction.
31630
31631 2011-02-15  Richard Guenther  <rguenther@suse.de>
31632
31633         PR tree-optimization/47743
31634         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
31635         for a non-type-compatible VN lookup bail out.
31636
31637 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
31638
31639         * config/fr30/constraints.md: New file.
31640         * config/fr30/fr30.md: Include it.
31641         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
31642         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31643         (EXTRA_CONSTRAINT): Delete.
31644
31645 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
31646
31647         * config/frv/constraints.md: New file.
31648         * config/frv/predicates.md: Include it.
31649         * config/frv/frv.c (reg_class_from_letter): Delete.
31650         (frv_option_override): Don't initialize it.
31651         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
31652         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
31653         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
31654         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
31655         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
31656         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31657         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
31658         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
31659         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
31660         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
31661         (REG_CLASS_FROM_CONSTRAINT): Delete.
31662
31663 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
31664
31665         PR middle-end/47581
31666         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
31667         if frame size is 0 in a leaf function.
31668
31669 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31670
31671         PR pch/14940
31672         * config/alpha/host-osf.c: New file.
31673         * config/alpha/x-osf: New file.
31674         * config.host (alpha*-dec-osf*): Use it.
31675
31676 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
31677
31678         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
31679         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
31680         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
31681         (rx_mode_dependent_address_p): ...this. Make static. Change argument
31682         type to const_rtx.
31683         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
31684
31685 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
31686
31687         * config/stormy16/constraints.md: New file.
31688         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
31689         Use satisfies_constraint_Q and satisfies_constraint_R.
31690         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
31691         Delete.
31692         (xstormy16_legitiamte_address_p): Declare.
31693         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
31694         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31695         (EXTRA_CONSTRAINT): Delete.
31696         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
31697         Un-staticize.
31698         (xstormy16_extra_constraint_p): Delete.
31699
31700 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
31701
31702         PR tree-optimization/46494
31703         * loop-unroll.c (split_edge_and_insert): Adjust comment.
31704         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
31705         (pass_rtl_loop_done): Add TODO_verify_flow.
31706         * fwprop.c (pass_rtl_fwprop): Likewise.
31707         * modulo-sched.c (pass_sms): Likewise.
31708         * tree-ssa-dom.c (pass_dominator): Likewise.
31709         * tree-ssa-loop-ch.c (pass_ch): Likewise.
31710         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
31711         (pass_tree_loop_done): Likewise.
31712         * tree-ssa-pre.c (execute_pre): Likewise.
31713         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
31714         * tree-ssa-sink.c (pass_sink_code): Likewise.
31715         * tree-vrp.c (pass_vrp): Likewise.
31716
31717 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
31718
31719         * config/v850/constraints.md: New file.
31720         * config/v850/v850.md: Include it.
31721         * config/v850/predicates.md (reg_or_0_operand): Use
31722         satisfies_constraint_G.
31723         (special_symbolref_operand): Use satisfies_constraint_K.
31724         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
31725         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
31726         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
31727         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
31728         (EXTRA_CONSTRAINT): Delete.
31729         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
31730         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
31731         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
31732
31733 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
31734
31735         PR target/47696
31736         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
31737         description.
31738
31739 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
31740
31741         * config/mcore/constraints.md: New file.
31742         * config/mcore/mcore.md: Include it.
31743         * config/mcore/mcore.c (reg_class_from_letter): Delete.
31744         * config/mcore/mcore.h (reg_class_from_letter): Delete.
31745         (REG_CLASS_FROM_LETTER): Delete.
31746         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
31747         insn_const_int_ok_for_constraint.
31748         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
31749         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
31750         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31751         (EXTRA_CONSTRAINT): Delete.
31752
31753 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31754
31755         PR ada/41929
31756         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
31757         (IS_SIGHANDLER): Define.
31758         (sparc64_is_sighandler): New function, split off from
31759         sparc64_fallback_frame_state.
31760         (sparc_is_sighandler): New function, split off from
31761         sparc_fallback_frame_state.
31762         (sparc64_fallback_frame_state): Merge with ...
31763         (sparc_fallback_frame_state): ... this into ...
31764         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
31765         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
31766         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
31767         stack instead of hardcoded offsets.
31768
31769 2011-02-14  Andriy Gapon  <avg@freebsd.org>
31770
31771         PR target/45808
31772         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
31773
31774 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31775
31776         * configure: Regenerate.
31777
31778 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
31779
31780         PR driver/45731
31781         * gcc.c (asm_options): Correct spec matching --target-help.
31782
31783 2011-02-12  Martin Jambor  <mjambor@suse.cz>
31784
31785         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
31786         to gimple call error.
31787
31788 2011-02-12  Mike Stump  <mikestump@comcast.net>
31789
31790         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
31791         comments in backslash regions.
31792
31793 2011-02-12  Mike Stump  <mikestump@comcast.net>
31794             Jakub Jelinek  <jakub@redhat.com>
31795             Iain Sandoe  <iains@gcc.gnu.org>
31796
31797         PR target/47324
31798         * dwarf2out.c (output_cfa_loc): When required, apply the
31799         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
31800         (output_loc_sequence): Likewise.
31801         (output_loc_operands_raw): Likewise.
31802         (output_loc_sequence_raw): Likewise.
31803         (output_cfa_loc): Likewise.
31804         (output_loc_list): Suppress register number adjustment when
31805         calling output_loc_sequence()
31806         (output_die): Likewise.
31807
31808 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
31809
31810         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
31811         Remove macros.
31812         * config/xtensa/xtensa.c (xtensa_register_move_cost,
31813         xtensa_memory_move_cost): New functions.
31814         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
31815
31816 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
31817
31818         PR lto/47225
31819         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
31820         in the current directory.
31821         * configure: Rebuilt.
31822
31823 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
31824
31825         * config/darwin.c (darwin_override_options): Add a hunk missed
31826         from the commit of r168571.  Trim comment line lengths and
31827         correct indents of the preceding block.
31828
31829 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
31830
31831         * gcc.c (driver_handle_option): Concatenate the argument to -F with
31832         the switch.
31833
31834 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
31835
31836         * common.opt (nostartfiles): New Driver option.
31837
31838 2011-02-11  Xinliang David Li  <davidxl@google.com>
31839
31840         PR tree-optimization/47707
31841         * tree-chrec.c (convert_affine_scev): Keep type precision.
31842
31843 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
31844
31845         PR tree-optimization/47420
31846         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
31847
31848 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
31849
31850         PR rtl-optimization/47614
31851         * rtl.h (check_for_inc_dec): Declare.
31852         * dse.c (check_for_inc_dec): Externalize...
31853         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
31854         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
31855
31856 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
31857
31858         PR driver/47678
31859         * gcc.c (main): Do not compile inputs if there were errors in
31860         option handling.
31861         * opts-common.c (read_cmdline_option): Check for wrong language
31862         after other error checks.
31863
31864 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
31865
31866         * cgraph.c: Fix comment typos.
31867         * cgraph.h: Likewise.
31868         * cgraphunit.c: Likewise.
31869         * ipa-cp.c: Likewise.
31870         * ipa-inline.c: Likewise.
31871         * ipa-prop.c: Likewise.
31872         * ipa-pure-const.c: Likewise.
31873         * ipa-ref.c: Likewise.
31874         * ipa-reference.c: Likewise.
31875
31876 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
31877
31878         PR debug/47684
31879         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
31880
31881 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31882
31883         PR testsuite/47400
31884         * doc/sourcebuild.texi (Require Support): Document
31885         dg-require-ascii-locale.
31886
31887 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
31888
31889         * doc/lto.texi (Write summary): Fix missing parentheses.
31890
31891 2011-02-10  DJ Delorie  <dj@redhat.com>
31892
31893         * config/m32c/m32c.c (m32c_option_override): Disable
31894         -fcombine-stack-adjustments until flag value tracking and compare
31895         optimization can be rewritten.
31896
31897 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
31898
31899         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
31900         PROCESSOR_POWER7.
31901         (PROCESSOR_DEFAULT64): Likewise.
31902
31903 2011-02-10  Richard Henderson  <rth@redhat.com>
31904
31905         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
31906         change from 2011-02-03.
31907         * config/rx/rx.c (flags_from_code): Likewise.
31908         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
31909         is valid, n/pz otherwise.
31910         (rx_select_cc_mode): Return CCmode if Y is not zero.
31911
31912 2011-02-10  Richard Guenther  <rguenther@suse.de>
31913
31914         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
31915
31916 2011-02-10  Richard Guenther  <rguenther@suse.de>
31917
31918         PR tree-optimization/47677
31919         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
31920
31921 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
31922
31923         PR target/47665
31924         * combine.c (make_compound_operation): Only change shifts into
31925         multiplication for SCALAR_INT_MODE_P.
31926
31927 2011-02-10  Jie Zhang  <jie@codesourcery.com>
31928
31929         PR testsuite/47622
31930         Revert
31931         2011-02-05  Jie Zhang  <jie@codesourcery.com>
31932         PR debug/42631
31933         * web.c (entry_register): Don't clobber the number of the
31934         first uninitialized reference in used[].
31935
31936 2011-02-09  Richard Guenther  <rguenther@suse.de>
31937
31938         PR tree-optimization/47664
31939         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
31940         all edges again.
31941
31942 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
31943
31944         PR target/46481
31945         PR target/47032
31946         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
31947         PROCESSOR_POWER7.
31948         (PROCESSOR_DEFAULT64): Same.
31949         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
31950
31951 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31952
31953         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
31954
31955 2011-02-09  Martin Jambor  <mjambor@suse.cz>
31956
31957         PR middle-end/45505
31958         * tree-sra.c (struct access): New flags grp_scalar_read and
31959         grp_scalar_write.  Changed description of assignment read and write
31960         flags.
31961         (dump_access): Dump new flags, reorder all of them.
31962         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
31963         to detect multiple scalar reads.
31964         (analyze_access_subtree): Use the new scalar read write flags instead
31965         of the old flags.  Adjusted comments.
31966
31967 2011-02-08  DJ Delorie  <dj@redhat.com>
31968
31969         PR target/47548
31970         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
31971         patterns.
31972
31973 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
31974
31975         * config/m68k/uclinux.opt: New.
31976         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
31977
31978 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
31979
31980         * config/cris/elf.opt (sim): New Driver option.
31981
31982 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
31983
31984         * config/xtensa/elf.opt: New.
31985         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
31986
31987 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
31988
31989         * config/vax/elf.opt: New.
31990         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
31991
31992 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
31993
31994         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
31995
31996 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
31997
31998         * config/gnu-user.opt: New.
31999         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
32000         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
32001         *-*-uclinux*): Use gnu-user.opt.
32002
32003 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
32004
32005         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
32006         * config/i386/gnu.h (CPP_SPEC): Likewise.
32007
32008 2011-02-08  Ian Lance Taylor  <iant@google.com>
32009
32010         * common.opt (fcx-limited-range): Add SetByCombined flag.
32011         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
32012         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
32013         (fassociative-math, freciprocal-math): Likewise.
32014         (funsafe-math-optimizations): Likewise.
32015         * opth-gen.awk: Handle SetByCombined.
32016         * optc-gen.awk: Likewise.
32017         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
32018         (set_unsafe_math_optimizations_flags): Likewise.
32019         * doc/options.texi (Option properties): Document SetByCombined.
32020
32021 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
32022
32023         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
32024         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
32025         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
32026         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
32027         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
32028
32029 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
32030
32031         PR tree-optimization/46834
32032         PR tree-optimization/46994
32033         PR tree-optimization/46995
32034         * graphite-sese-to-poly.c (used_outside_reduction): New.
32035         (detect_commutative_reduction): Call used_outside_reduction.
32036         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
32037         translate_scalar_reduction_to_array only when at least one
32038         loop-phi/close-phi tuple has been detected.
32039
32040 2011-02-08  Richard Guenther  <rguenther@suse.de>
32041
32042         PR middle-end/47639
32043         * tree-vect-generic.c (expand_vector_operations_1): Update
32044         stmts here ...
32045         (expand_vector_operations): ... not here.  Cleanup EH info
32046         and the CFG if required.
32047
32048 2011-02-08  Richard Guenther  <rguenther@suse.de>
32049
32050         PR tree-optimization/47641
32051         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
32052         require type compatibility.
32053
32054 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32055
32056         * gimple-low.c (lower_function_body): Don't remove the location of
32057         the return statement here.
32058         (lower_gimple_return): Do it here instead but only if the return
32059         statement is actually used twice.
32060
32061 2011-02-08  Richard Guenther  <rguenther@suse.de>
32062
32063         PR tree-optimization/47632
32064         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
32065         unused up_to_stmt parameter, return whether cfg-cleanup is
32066         necessary, remove EH info properly.
32067         (forward_propagate_into_gimple_cond): Adjust caller.
32068         (forward_propagate_into_cond): Likewise.
32069         (forward_propagate_comparison): Likewise.
32070         (tree_ssa_forward_propagate_single_use_vars): Make
32071         forward_propagate_comparison case similar to the two others.
32072
32073 2011-02-08  Nick Clifton  <nickc@redhat.com>
32074
32075         * config/mn10300/mn10300.opt (mliw): New command line option.
32076         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
32077         (liw_bundling): New automaton.
32078         (liw): New attribute.
32079         (liw_op): New attribute.
32080         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
32081         (movsi_internal): Add LIW attributes.
32082         (andsi3): Likewise.
32083         (iorsi3): Likewise.
32084         (xorsi3): Likewise.
32085         (addsi3): Separate register and immediate alternatives.
32086         Add LIW attributes.
32087         (subsi3): Likewise.
32088         (cmpsi): Likewise.
32089         (aslsi3): Likewise.
32090         (lshrsi3): Likewise.
32091         (ashrsi3): Likewise.
32092         (liw): New pattern.
32093         * config/mn10300/mn10300.c (liw_op_names): New
32094         (mn10300_print_operand): Handle 'W' operand descriptor.
32095         (extract_bundle): New function.
32096         (check_liw_constraints): New function.
32097         (liw_candidate): New function.
32098         (mn10300_bundle_liw): New function.
32099         (mn10300_reorg): New function.
32100         (TARGET_MACHINE_DEPENDENT_REORG): Define.
32101         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
32102         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
32103         __LIW__ or __NO_LIW__.
32104         * doc/invoke.texi: Describe the -mliw command line option.
32105
32106 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32107
32108         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
32109         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
32110         pthread_mutex_unlock): Remove.
32111         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
32112         * config/pa/t-pa64: Likewise.
32113         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
32114         shared libc if not linking against libpthread.
32115         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
32116
32117 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
32118
32119         PR target/47558
32120         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
32121         on 10.6 and later to ensure that we always use the unwinder from
32122         the system.  Only add -no_compact_unwind when tarteting darwin
32123         10.6 or later.
32124
32125 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
32126
32127         PR target/46997
32128         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
32129         (vec_interleave_lowv2sf): Ditto.
32130         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
32131         (vec_extract_oddv2sf): Ditto.
32132
32133 2011-02-07  Mike Stump  <mikestump@comcast.net>
32134
32135         PR target/42333
32136         Add __ieee_divdc3 entry point.
32137         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
32138         entry point.
32139         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
32140         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
32141         * config/darwin.c (darwin_rename_builtins): Add.
32142         * config/darwin-protos.h (darwin_rename_builtins): Add.
32143
32144 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
32145
32146         PR target/47636
32147         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
32148         for the condition.
32149
32150 2011-02-07  Mike Stump  <mikestump@comcast.net>
32151
32152         * config/darwin.opt (mmacosx-version-min): Update default OS version.
32153
32154 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
32155
32156         PR target/47534
32157         * config/avr/libgcc.S (exit): Move .endfunc
32158
32159 2011-02-07  Richard Guenther  <rguenther@suse.de>
32160
32161         PR tree-optimization/47615
32162         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
32163         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
32164         (run_scc_vn): Initialize it.
32165         (visit_reference_op_load): Use it.
32166         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
32167
32168 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32169
32170         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
32171         DImode trapping arithmetic libfuncs.
32172
32173 2011-02-07  Richard Guenther  <rguenther@suse.de>
32174
32175         PR tree-optimization/47621
32176         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
32177         two duplicates ...
32178         (execute_update_addresses_taken): ... here.  Make it more
32179         conservative in what we accept.
32180
32181 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
32182
32183         * config/sparc/freebsd.h (ASM_SPEC): Define.
32184         * config/sparc/vxworks.h (ASM_SPEC): Define.
32185
32186 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
32187
32188         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
32189
32190 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
32191
32192         * doc/invoke.texi: Remove reference to compiler internals from
32193         user documentation.
32194
32195         * reg-notes.def: Remove REG_VALUE_PROFILE.
32196         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
32197
32198 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
32199
32200         PR middle-end/47610
32201         * varasm.c (default_section_type_flags): If decl is NULL,
32202         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
32203
32204 2011-02-05  Jie Zhang  <jie@codesourcery.com>
32205
32206         PR debug/42631
32207         * web.c (entry_register): Don't clobber the number of the
32208         first uninitialized reference in used[].
32209
32210 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
32211
32212         PR tree-optimization/46194
32213         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
32214         (build_classic_dist_vector_1): Do not represent classic distance
32215         vectors when the access functions are variating in different loops.
32216
32217 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
32218
32219         * config/mips/iris6.opt: New.
32220         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
32221
32222 2011-02-04  Richard Henderson  <rth@redhat.com>
32223             Steve Ellcey  <sje@cup.hp.com>
32224
32225         PR target/46997
32226         * config/ia64/predicates.md (mux1_brcst_element): New.
32227         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
32228         * config/ia64/ia64.c (ia64_unpack_assemble): New.
32229         (ia64_unpack_sign): New.
32230         (ia64_expand_unpack): Rewrite using new routines.
32231         (ia64_expand_widen_sum): Ditto.
32232         (ia64_expand_dot_prod_v8qi): Ditto.
32233         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
32234         routines, add endian check.
32235         (pmpy2_even): Rename from pmpy2_r, add endian check.
32236         (pmpy2_odd): Rename from pmpy2_l, add endian check.
32237         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
32238         (vec_widen_smult_hi_v4hi): Ditto.
32239         (vec_widen_umult_lo_v4hi): Ditto.
32240         (vec_widen_umult_hi_v4hi): Ditto.
32241         (mulv2si3): Change endian checks.
32242         (sdot_prodv4hi): Rewrite with new calls.
32243         (udot_prodv4hi): New.
32244         (vec_pack_ssat_v4hi): Add endian check.
32245         (vec_pack_usat_v4hi): Ditto.
32246         (vec_pack_ssat_v2si): Ditto.
32247         (max1_even): Rename from max1_r, add endian check.
32248         (max1_odd): Rename from max1_l, add endian check.
32249         (*mux1_rev): Format change.
32250         (*mux1_mix): Ditto.
32251         (*mux1_shuf): Ditto.
32252         (*mux1_alt): Ditto.
32253         (*mux1_brcst_v8qi): Use new predicate.
32254         (vec_extract_evenv8qi): Remove endian check.
32255         (vec_extract_oddv8qi): Ditto.
32256         (vec_interleave_lowv4hi): Format change.
32257         (vec_interleave_highv4hi): Ditto.
32258         (mix2_even): Rename from mix2_r, add endian check.
32259         (mix2_odd): Rename from mux2_l, add endian check.
32260         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
32261         (vec_extract_evenodd_helper): Format change.
32262         (vec_extract_evenv4hi): Remove endian check.
32263         (vec_extract_oddv4hi): Remove endian check.
32264         (vec_interleave_lowv2si): Format change.
32265         (vec_interleave_highv2si): Format change.
32266         (vec_initv2si): Remove endian check.
32267         (vecinit_v2si): Add endian check.
32268         (reduc_splus_v2sf): Add endian check.
32269         (reduc_smax_v2sf): Ditto.
32270         (reduc_smin_v2sf): Ditto.
32271         (vec_initv2sf): Remove endian check.
32272         (fpack): Add endian check.
32273         (fswap): Add endian check.
32274         (vec_interleave_highv2sf): Add endian check.
32275         (vec_interleave_lowv2sf): Add endian check.
32276         (fmix_lr): Add endian check.
32277         (vec_setv2sf): Format change.
32278         (*vec_extractv2sf_0_be): Use shift to extract operand.
32279         (*vec_extractv2sf_1_be): New.
32280         (vec_pack_trunc_v4hi): Add endian check.
32281         (vec_pack_trunc_v2si): Format change.
32282
32283 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
32284
32285         PR inline-asm/23200
32286         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
32287         do bb, locus and block comparison and disallow loads if it is not set.
32288         (stmt_is_replaceable_p): New function.
32289         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
32290         callers.
32291         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
32292         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
32293         SSA_NAME_DEF_STMT.
32294         * tree-flow.h (stmt_is_replaceable_p): New prototype.
32295
32296 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
32297
32298         * config/rs6000/xilinx.opt: New.
32299         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
32300
32301 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
32302
32303         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
32304
32305 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
32306
32307         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
32308         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
32309         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
32310         secondary_reload_info, xtensa_secondary_reload): Remove.
32311         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
32312         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
32313         (xtensa_preferred_reload_class): Make static. Change return and
32314         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
32315         Use CONST_DOUBLE_P predicate.
32316         (xtensa_preferred_output_reload_class): New function.
32317         (xtensa_secondary_reload): Make static.
32318
32319 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
32320
32321         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
32322         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
32323         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
32324
32325 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
32326
32327         PR middle-end/31490
32328         * output.h (SECTION_RELRO): Define.
32329         (SECTION_MACH_DEP): Adjust.
32330         (get_variable_section): New prototype.
32331         * varpool.c (varpool_finalize_named_section_flags): New function.
32332         (varpool_assemble_pending_decls): Call it.
32333         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
32334         * cgraphunit.c (cgraph_output_in_order): Call
32335         varpool_finalize_named_section_flags.
32336         * varasm.c (get_section): Allow section flags conflicts between
32337         relro and read-only sections if the section hasn't been declared yet.
32338         Set SECTION_OVERRIDE after diagnosing section type conflict.
32339         (get_variable_section): No longer static.
32340         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
32341         readonly sections that need relocations.
32342         (decl_readonly_section_1): New function.
32343         (decl_readonly_section): Use it.
32344
32345         Revert:
32346         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
32347                     Steve Ellcey  <sje@cup.hp.com>
32348
32349         PR middle-end/31490
32350         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
32351         if section attribute used.
32352
32353 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
32354
32355         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
32356         * config/darwin.c (SECTION_NO_ANCHOR): Define.
32357         (darwin_init_sections): Remove assertion.
32358
32359 2011-02-03  Nick Clifton  <nickc@redhat.com>
32360
32361         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
32362         lt and ge.
32363         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
32364         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
32365         instead of "n" and "pz".
32366         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
32367         CC_FLAG_S.
32368
32369 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
32370
32371         PR target/47312
32372         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
32373         fma, expand FMA_EXPR as fma{,f,l} call.
32374
32375         PR lto/47274
32376         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
32377         copy them into a unsigned char variable and pass address of it to
32378         lto_output_data_stream.
32379
32380         PR target/47564
32381         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
32382         around backend_init_target and lang_dependent_init_target calls.
32383         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
32384         (verify_cgraph_node): Don't call set_cfun here.  Use
32385         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
32386         Set error_found for incorrectly represented calls to thunks.
32387
32388 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
32389
32390         PR debug/43092
32391         PR rtl-optimization/43494
32392         * rtl.h (for_each_inc_dec_fn): New type.
32393         (for_each_inc_dec): Declare.
32394         * rtlanal.c (struct for_each_inc_dec_ops): New type.
32395         (for_each_inc_dec_find_inc_dec): New fn.
32396         (for_each_inc_dec_find_mem): New fn.
32397         (for_each_inc_dec): New fn.
32398         * dse.c (struct insn_size): Remove.
32399         (replace_inc_dec, replace_inc_dec_mem): Remove.
32400         (emit_inc_dec_insn_before): New fn.
32401         (check_for_inc_dec): Use it, along with for_each_inc_dec.
32402         (canon_address): Pass mem modes to cselib_lookup.
32403         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
32404         (cselib_lookup_from_insn): Likewise.
32405         (cselib_subst_to_values): Likewise.
32406         * cselib.c (find_slot_memmode): New var.
32407         (cselib_find_slot): New fn.  Use it instead of
32408         htab_find_slot_with_hash everywhere.
32409         (entry_and_rtx_equal_p): Use find_slot_memmode.
32410         (autoinc_split): New fn.
32411         (rtx_equal_for_cselib_p): Rename and implement in terms of...
32412         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
32413         Deal with autoinc.  Special-case recursion into MEMs.
32414         (cselib_hash_rtx): Likewise.
32415         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
32416         address and MEM modes.
32417         (cselib_subst_to_values): Add memmode, pass it on.
32418         Deal with autoinc.
32419         (cselib_lookup): Add memmode argument, pass it on.
32420         (cselib_lookup_from_insn): Add memmode.
32421         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
32422         (struct cselib_record_autoinc_data): New.
32423         (cselib_record_autoinc_cb): New fn.
32424         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
32425         mode to cselib_lookup.  Reset autoinced REGs here instead of...
32426         (cselib_process_insn): ... here.
32427         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
32428         to cselib_lookup.
32429         (add_uses): Likewise, also to cselib_subst_to_values.
32430         (add_stores): Likewise.
32431         * sched-deps.c (add_insn_mem_dependence): Pass mode to
32432         cselib_subst_to_values.
32433         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
32434         * gcse.c (do_local_cprop): Adjusted.
32435         * postreload.c (reload_cse_simplify_set): Adjusted.
32436         (reload_cse_simplify_operands): Adjusted.
32437         * sel-sched-dump (debug_mem_addr_value): Pass mode.
32438
32439 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
32440
32441         PR tree-optimization/45122
32442         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
32443         unsafe assumptions when there's more than one loop exit.
32444
32445 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
32446
32447         PR target/47272
32448         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
32449         Document using vector double with the load/store builtins, and
32450         that the load/store builtins always use Altivec instructions.
32451
32452         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
32453         to use altivec memory instructions, even on VSX.
32454         (vector_altivec_store_<mode>): Ditto.
32455
32456         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
32457         function.
32458
32459         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
32460         V2DF, V2DI support to load/store overloaded builtins.
32461
32462         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
32463         altivec load/store builtins for V2DF/V2DI types.
32464
32465         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
32466         set avoid indexed addresses on power6 if -maltivec.
32467         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
32468         vector_altivec_load/vector_altivec_store builtins.
32469         (altivec_expand_st_builtin): Ditto.
32470         (altivec_expand_builtin): Add VSX memory builtins.
32471         (rs6000_init_builtins): Add V2DI types to internal types.
32472         (altivec_init_builtins): Add support for V2DF/V2DI altivec
32473         load/store builtins.
32474         (rs6000_address_for_altivec): Insure memory address is appropriate
32475         for Altivec.
32476
32477         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
32478         vec_vsx_ld and vec_vsx_st.
32479         (vsx_store_<mode>): Ditto.
32480
32481         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
32482         variables to hold long long types for VSX vector memory builtins.
32483         (RS6000_BTI_unsigned_long_long): Ditto.
32484         (long_long_integer_type_internal_node): Ditti.
32485         (long_long_unsigned_type_internal_node): Ditti.
32486
32487         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
32488         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
32489         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
32490
32491         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
32492         short cuts.
32493         (vec_vsx_st): Ditto.
32494
32495 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
32496
32497         * config/pa/pa-hpux10.opt: New.
32498         * config/hpux11.opt (pthread): New Driver option.
32499         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
32500         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
32501
32502 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
32503
32504         * config/ia64/vms.opt: New.
32505         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
32506
32507 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
32508
32509         PR target/47580
32510         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
32511         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
32512         generator functions.
32513         (vsx_floatuns<VSi><mode>2): Ditto.
32514         (vsx_fix_trunc<mode><VSi>2): Ditto.
32515         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
32516
32517 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
32518
32519         * config/i386/djgpp.opt (posix): New Driver option.
32520
32521 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
32522
32523         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
32524         Move to the unsupported targets list.
32525
32526 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
32527
32528         PR rtl-optimization/47525
32529         * df-scan.c: Update copyright years.
32530         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
32531         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
32532
32533 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32534
32535         * config/i386/sysv4.h (TARGET_VERSION): Remove.
32536         (SUBTARGET_RETURN_IN_MEMORY): Remove.
32537         (ASM_OUTPUT_ASCII): Remove.
32538         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
32539
32540 2011-02-02  Jeff Law  <law@redhat.com>
32541
32542         PR middle-end/47543
32543         * reload.c (find_reloads_address): Handle reg+d address where both
32544         components are invalid by reloading the entire address.
32545
32546 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
32547             Richard Guenther  <rguenther@suse.de>
32548
32549         PR tree-optimization/40979
32550         PR bootstrap/47044
32551         * passes.c (init_optimization_passes): After LIM call copy_prop
32552         and DCE to clean up.
32553         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
32554
32555 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
32556
32557         PR tree-optimization/47576
32558         PR tree-optimization/47555
32559         * doc/invoke.texi (scev-max-expr-complexity): Documented.
32560         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
32561         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
32562         * tree-scalar-evolution.c (follow_ssa_edge): Use
32563         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
32564
32565 2011-02-02  Richard Guenther  <rguenther@suse.de>
32566
32567         PR tree-optimization/47566
32568         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
32569
32570 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
32571
32572         PR debug/47106
32573         PR debug/47402
32574         * tree-inline.c (declare_return_variable): Remove unused caller
32575         variable.
32576
32577         PR debug/47106
32578         PR debug/47402
32579         * tree-flow-inline.h (clear_is_used, is_used_p): New.
32580         * cfgexpand.c (account_used_vars_for_block): Use them.
32581         * tree-nrv.c (tree_nrv): Likewise.
32582         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
32583         (dump_scope_block): Likewise.
32584         (remove_unused_locals): Likewise.
32585
32586         PR debug/47106
32587         PR debug/47402
32588         * tree-inline.c (declare_return_variable): Add result decl to
32589         local decls only once.
32590         * gimple-low.c (record_vars_into): Mark newly-created variables
32591         as referenced.
32592
32593 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
32594
32595         PR debug/47498
32596         PR debug/47501
32597         PR debug/45136
32598         PR debug/45130
32599         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
32600         debug insns.
32601         (no_real_insns_p, schedule_block, set_priorities): Drop special
32602         treatment of boundary debug insns.
32603         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
32604         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
32605         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
32606         (BOUNDARY_DEBUG_INSN_P): Likewise.
32607         (SCHEDULE_DEBUG_INSN_P): Likewise.
32608         * sched-rgn.c (init_ready_list): Drop special treatment of
32609         boundary debug insns.
32610         * final.c (rest_of_clean_state): Clear notes' BB.
32611
32612 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32613
32614         * config/openbsd.opt (assert=): New Driver option.
32615
32616 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32617
32618         * config/i386/nto.opt: New.
32619         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
32620
32621 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32622
32623         * config/i386/netware.opt: New.
32624         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
32625
32626 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32627
32628         * config/interix.opt (posix): New Driver option.
32629
32630 2011-02-01  DJ Delorie  <dj@redhat.com>
32631
32632         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
32633
32634         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
32635         class for A0/A1.
32636
32637 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
32638
32639         PR tree-optimization/47561
32640         * toplev.c (process_options): Print the Graphite flags.  Add
32641         flag_loop_flatten to the list of options requiring Graphite.
32642
32643 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32644
32645         * config/i386/cygming.opt (posix): New Driver option.
32646
32647 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32648
32649         * config/arm/vxworks.opt: New.
32650         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
32651
32652 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32653
32654         * config/alpha/elf.opt: New.
32655         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
32656         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
32657
32658 2011-02-01  Richard Guenther  <rguenther@suse.de>
32659
32660         PR tree-optimization/47559
32661         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
32662         store-motion on references that can throw.
32663
32664 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
32665
32666         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
32667         * tree-pass.h (TDF_CSELIB): New macro.
32668         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
32669         cselib_lookup): Check for it rather than for TDF_DETAILS.
32670
32671 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
32672
32673         PR driver/47547
32674         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
32675         is HOST_BIT_BUCKET.
32676
32677         * opts.c (finish_options): Don't add x_aux_base_name if it is
32678         HOST_BIT_BUCKET.
32679
32680 2011-02-01  Richard Guenther  <rguenther@suse.de>
32681
32682         PR tree-optimization/47555
32683         Revert
32684         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
32685
32686         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
32687
32688 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
32689
32690         PR gcc/46692
32691         * config/lm32/t-lm32: Add multilib for all CPU options.
32692
32693 2011-02-01  Richard Guenther  <rguenther@suse.de>
32694
32695         PR tree-optimization/47541
32696         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
32697         sure to have a field at offset zero.
32698
32699 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
32700
32701         * config/arc/arc.opt (EB, EL): New Driver options.
32702
32703 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
32704
32705         * config/alpha/osf5.opt: New.
32706         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
32707
32708 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
32709
32710         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
32711
32712 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
32713
32714         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
32715         -floop-interchange.
32716         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
32717         is an alias of -floop-interchange and that it requires the
32718         Graphite infrastructure.
32719         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
32720         flag_loop_interchange based on the value of flag_tree_loop_linear.
32721
32722 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
32723             Richard Guenther  <rguenther@suse.de>
32724
32725         PR tree-optimization/47538
32726         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
32727         type instead of r1type, except for comparisons.  For right
32728         shifts and comparisons punt if there are mismatches in
32729         sizetype vs. non-sizetype types.
32730
32731 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32732
32733         * doc/sourcebuild.texi (Effective-Target Keywords): Document
32734         avx_runtime.
32735
32736 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32737
32738         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
32739         version number.
32740         * configure: Regenerate.
32741
32742 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32743
32744         * configure.ac (gcc_cv_ld_static_option): Define.
32745         (gcc_cv_ld_dynamic_option): Define.
32746         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
32747         instead.
32748         (HAVE_LD_STATIC_DYNAMIC): Update message.
32749         (LD_STATIC_OPTION): Define.
32750         (LD_DYNAMIC_OPTION): Define.
32751         * configure: Regenerate.
32752         * config.in: Regenerate.
32753         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
32754         HAVE_LD_STATIC_DYNAMIC]: Use them.
32755
32756 2011-01-31  Nick Clifton  <nickc@redhat.com>
32757
32758         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
32759         registers inside interrupt handlers if the handler is not a leaf
32760         function.
32761
32762 2011-01-31  Nick Clifton  <nickc@redhat.com>
32763
32764         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
32765         reg_renumber returning an INVALID_REGNUM.
32766
32767 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
32768
32769         PR libgcj/44341
32770         * doc/install.texi: Document host options discarded when cross
32771         configuring target libraries.
32772
32773 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
32774
32775         Reverted:
32776         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
32777         PR debug/45136
32778         PR debug/45130
32779         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
32780         debug insns.
32781         (no_real_insns_p, schedule_block, set_priorities): Drop special
32782         treatment of boundary debug insns.
32783         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
32784         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
32785         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
32786         (BOUNDARY_DEBUG_INSN_P): Likewise.
32787         (SCHEDULE_DEBUG_INSN_P): Likewise.
32788         * sched-rgn.c (init_ready_list): Drop special treatment of
32789         boundary debug insns.
32790         * final.c (rest_of_clean-state): Clear notes' BB.
32791
32792 2011-01-31  Alan Modra  <amodra@gmail.com>
32793
32794         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
32795         toc relative expressions as we do in print_operand_address.
32796
32797 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
32798
32799         * doc/extend.texi: Follow spelling conventions.
32800         * doc/invoke.texi: Fix a typo.
32801
32802 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
32803
32804         * config/hpux11.opt: New.
32805         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
32806         ia64*-*-hpux*): Use hpux11.opt.
32807
32808 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
32809
32810         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
32811         to tmake_file.
32812
32813 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
32814
32815         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
32816         support sites.
32817
32818 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
32819
32820         * doc/install.texi (Binaries): Remove outdated reference for
32821         Motorola 68HC11/68HC12 downloads.
32822
32823 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
32824
32825         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
32826         Drepper's paper.
32827
32828 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
32829
32830         PR bootstrap/47147
32831         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
32832         used by NetBSD.
32833
32834 2011-01-28  Ahmad Sharif  <asharif@google.com>
32835
32836         * value-prof.c (check_counter): Corrected error message.
32837
32838 2011-01-29  Jie Zhang  <jie@codesourcery.com>
32839
32840         * config/arm/arm.c (arm_legitimize_reload_address): New.
32841         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
32842         arm_legitimize_reload_address.
32843         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
32844
32845 2011-01-28  Ian Lance Taylor  <iant@google.com>
32846
32847         * godump.c (go_define): Ignore macros whose definitions include
32848         two adjacent operands.
32849
32850 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
32851
32852         PR target/42894
32853         * varasm.c (force_const_mem): Store copy of x in desc->constant
32854         instead of x itself.
32855         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
32856         itself into REG_EQUAL note.
32857
32858 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
32859
32860         * config/freebsd.opt (posix, rdynamic): New Driver options.
32861
32862 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32863
32864         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
32865         -Bstatic/-Bdynamic.
32866         * configure: Regenerate.
32867
32868 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
32869
32870         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
32871         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
32872
32873 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
32874
32875         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
32876         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
32877         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
32878         (s390_preferred_reload_class): Make static. Change return and
32879         'rclass' argument type to reg_class_t.
32880
32881 2011-01-27  Jan Hubicka  <jh@suse.cz>
32882
32883         PR middle-end/46949
32884         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
32885         (process_function_and_variable_attributes): Check defined weakrefs.
32886
32887 2011-01-27  Martin Jambor  <mjambor@suse.cz>
32888
32889         PR tree-optimization/47228
32890         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
32891         build_ref_for_offset.
32892
32893 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32894
32895         * config/spu/spu-elf.h (ASM_SPEC): Remove.
32896
32897 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
32898
32899         PR rtl-optimization/46856
32900         * postreload.c (reload_combine_recognize_const_pattern): Do not
32901         separate cc0 setter and user on cc0 targets.
32902
32903 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
32904
32905         PR c/43082
32906         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
32907         passed a VOID_TYPE expression, immediately emit an error and
32908         return error_mark_node.
32909
32910 2011-01-26  Jeff Law  <law@redhat.com>
32911
32912         PR rtl-optimization/47464
32913         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
32914         rather than may_trap_p as needed.
32915
32916 2011-01-26  DJ Delorie  <dj@redhat.com>
32917
32918         PR rtl-optimization/46878
32919         * combine.c (insn_a_feeds_b): Check for the implicit cc0
32920         setter/user dependency as well.
32921
32922 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
32923
32924         PR rtl-optimization/44469
32925         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
32926         after removing trivially dead basic blocks.
32927
32928 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
32929
32930         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
32931         * config/frv/frv.h (LINK_SPEC): Likewise.
32932         * config/i386/netware.h (LINK_SPEC): Likewise.
32933         * config/m68k/linux.h (ASM_SPEC): Likewise.
32934         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
32935         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
32936         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
32937         * config/sparc/linux.h (ASM_SPEC): Likewise.
32938         * config/sparc/linux64.h (ASM_SPEC): Likewise.
32939         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
32940
32941 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
32942
32943         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
32944         * config/frv/frv.h (ASM_SPEC): Likewise.
32945         * config/m68k/linux.h (ASM_SPEC): Likewise.
32946         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
32947         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
32948         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
32949         * config/sparc/linux.h (ASM_SPEC): Likewise.
32950         * config/sparc/linux64.h (ASM_SPEC): Likewise.
32951         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
32952
32953 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
32954
32955         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
32956         * config/frv/frv.h (LINK_SPEC): Likewise.
32957         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
32958
32959 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
32960
32961         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
32962         * config/frv/frv.h (ASM_SPEC): Likewise.
32963         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
32964         * config/m68k/linux.h (ASM_SPEC): Likewise.
32965         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
32966         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
32967         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
32968         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
32969         * config/sparc/linux.h (ASM_SPEC): Likewise.
32970         * config/sparc/linux64.h (ASM_SPEC): Likewise.
32971         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
32972         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
32973
32974 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
32975
32976         PR target/46997
32977         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
32978         (*mux2): Ditto.
32979         (vec_extract_evenodd_help): Ditto.
32980         (vec_extract_evenv4hi): Ditto.
32981         (vec_extract_oddv4hi): Ditto.
32982         (vec_interleave_lowv2si): Ditto.
32983         (vec_interleave_highv2si): Ditto.
32984         (vec_extract_evenv2si): Ditto.
32985         (vec_extract_oddv2si: Ditto.
32986         (vec_pack_trunc_v2si): Ditto.
32987
32988 2011-01-22  Jan Hubicka  <jh@suse.cz>
32989
32990         PR target/47237
32991         * cgraph.h (cgraph_local_info): New field can_change_signature.
32992         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
32993         signature can change.
32994         (ipcp_estimate_growth): Call sequence simplify only if calle signature
32995         can change.
32996         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
32997         (cgraph_function_versioning): We can not change signature of functions
32998         that don't allow that.
32999         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
33000         (lto_input_node): Likewise.
33001         * ipa-inline.c (compute_inline_parameters): Compute
33002         local.can_change_signature.
33003         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
33004         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
33005         functions that can not change signature.
33006         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
33007         init_cumulative_args): Do not use local calling conventions
33008         for functions that can not change signature.
33009
33010 2011-01-22  Jan Hubicka  <jh@suse.cz>
33011
33012         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
33013
33014 2011-01-26  Richard Guenther  <rguenther@suse.de>
33015
33016         PR tree-optimization/47190
33017         * cgraphunit.c (process_common_attributes): New function.
33018         (process_function_and_variable_attributes): Use it.
33019
33020 2011-01-26  Richard Guenther  <rguenther@suse.de>
33021
33022         PR lto/47423
33023         * cgraphbuild.c (record_eh_tables): Record reference to personality
33024         function.
33025
33026 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
33027
33028         PR debug/45454
33029         * sel-sched.c (moveup_expr): Don't let debug insns prevent
33030         non-debug insns from moving up.
33031
33032 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
33033
33034         PR target/40125
33035         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
33036         t-dlldir{,-x} fragment for build and add it to tmake_file.
33037         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
33038         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
33039         * config/i386/t-dlldir: New file.
33040         (SHLIB_DLLDIR): Define.
33041         * config/i386/t-dlldir-x: New file.
33042         (SHLIB_DLLDIR): Define.
33043         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
33044         (SHLIB_INSTALL): Use it.
33045
33046 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
33047
33048         PR target/47246
33049         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
33050         lower bound of the allowed Thumb-2 coprocessor load/store
33051         index range to -256. Add explaining comment.
33052
33053 2011-01-25  Ian Lance Taylor  <iant@google.com>
33054
33055         * godump.c (go_define): Improve lexing of macro expansion to only
33056         accept expressions which match Go spec.
33057
33058 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
33059
33060         PR c++/43601
33061         * tree.c (handle_dll_attribute): Handle it.
33062         * doc/extend.texi (@item dllexport): Mention it.
33063         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
33064
33065 2011-01-25  Ian Lance Taylor  <iant@google.com>
33066
33067         PR tree-optimization/26854
33068         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
33069         (decl_jump_unsafe): Move higher in file, with no other change.
33070         (bind): Set has_jump_unsafe_decl if appropriate.
33071         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
33072         (check_earlier_gotos): Likewise.
33073         (c_check_switch_jump_warnings): Likewise.
33074
33075 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
33076
33077         * doc/invoke.texi (Warning Options): Add missing hyphen.
33078         (-fprofile-dir): Minor grammatical fixes.
33079         (-fbranch-probabilities): Likewise.
33080
33081 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
33082
33083         PR debug/45136
33084         PR debug/45130
33085         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
33086         debug insns.
33087         (no_real_insns_p, schedule_block, set_priorities): Drop special
33088         treatment of boundary debug insns.
33089         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
33090         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
33091         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
33092         (BOUNDARY_DEBUG_INSN_P): Likewise.
33093         (SCHEDULE_DEBUG_INSN_P): Likewise.
33094         * sched-rgn.c (init_ready_list): Drop special treatment of
33095         boundary debug insns.
33096         * final.c (rest_of_clean-state): Clear notes' BB.
33097
33098 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33099
33100         * Makefile.in (LAMBDA_H): Removed.
33101         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
33102         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
33103         lambda-trans.o, and tree-loop-linear.o.
33104         (lto-symtab.o): Remove dependence on LAMBDA_H.
33105         (tree-loop-linear.o): Remove rule.
33106         (lambda-mat.o): Same.
33107         (lambda-trans.o): Same.
33108         (lambda-code.o): Same.
33109         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
33110         (tree-vect-slp.o): Same.
33111         * hwint.h (gcd): Moved here.
33112         (least_common_multiple): Same.
33113         * lambda-code.c: Removed.
33114         * lambda-mat.c: Removed.
33115         * lambda-trans.c: Removed.
33116         * lambda.h: Removed.
33117         * tree-loop-linear.c: Removed.
33118         * lto-symtab.c: Do not include lambda.h.
33119         * omega.c (gcd): Removed.
33120         * passes.c (init_optimization_passes): Remove pass_linear_transform.
33121         * tree-data-ref.c (print_lambda_vector): Moved here.
33122         (lambda_vector_copy): Same.
33123         (lambda_matrix_copy): Same.
33124         (lambda_matrix_id): Same.
33125         (lambda_vector_first_nz): Same.
33126         (lambda_matrix_row_add): Same.
33127         (lambda_matrix_row_exchange): Same.
33128         (lambda_vector_mult_const): Same.
33129         (lambda_vector_negate): Same.
33130         (lambda_matrix_row_negate): Same.
33131         (lambda_vector_equal): Same.
33132         (lambda_matrix_right_hermite): Same.
33133         * tree-data-ref.h: Do not include lambda.h.
33134         (lambda_vector): Moved here.
33135         (lambda_matrix): Same.
33136         (dependence_level): Same.
33137         (lambda_transform_legal_p): Removed declaration.
33138         (lambda_collect_parameters): Same.
33139         (lambda_compute_access_matrices): Same.
33140         (lambda_vector_gcd): Same.
33141         (lambda_vector_new): Same.
33142         (lambda_vector_clear): Same.
33143         (lambda_vector_lexico_pos): Same.
33144         (lambda_vector_zerop): Same.
33145         (lambda_matrix_new): Same.
33146         * tree-flow.h (least_common_multiple): Removed declaration.
33147         * tree-parloops.c (lambda_trans_matrix): Moved here.
33148         (LTM_MATRIX): Same.
33149         (LTM_ROWSIZE): Same.
33150         (LTM_COLSIZE): Same.
33151         (LTM_DENOMINATOR): Same.
33152         (lambda_trans_matrix_new): Same.
33153         (lambda_matrix_vector_mult): Same.
33154         (lambda_transform_legal_p): Same.
33155         * tree-pass.h (pass_linear_transform): Removed declaration.
33156         * tree-ssa-loop.c (tree_linear_transform): Removed.
33157         (gate_tree_linear_transform): Removed.
33158         (pass_linear_transform): Removed.
33159         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
33160         flag_loop_interchange.
33161
33162 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
33163
33164         PR tree-optimization/47265
33165         PR tree-optimization/47443
33166         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
33167         if name still has some uses.
33168
33169 2011-01-25  Martin Jambor  <mjambor@suse.cz>
33170
33171         PR tree-optimization/47382
33172         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
33173         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
33174
33175 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
33176
33177         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
33178         sjlj_except_unwind_info.
33179
33180 2011-01-25  Richard Guenther  <rguenther@suse.de>
33181
33182         PR tree-optimization/47426
33183         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
33184         visible functions results escape.
33185
33186 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
33187
33188         PR target/45701
33189         * config/arm/arm.c (any_sibcall_uses_r3): New function.
33190         (arm_get_frame_offsets): Use it.
33191
33192 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33193             Jakub Jelinek  <jakub@redhat.com>
33194
33195         PR tree-optimization/47271
33196         * tree-if-conv.c (bb_postdominates_preds): New.
33197         (if_convertible_bb_p): Call bb_postdominates_preds.
33198         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
33199         (predicate_scalar_phi): Call bb_postdominates_preds.
33200
33201 2011-01-25  Nick Clifton  <nickc@redhat.com>
33202
33203         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
33204         * config/rx/rx.c (rx_function_value): Likewise.
33205         (rx_promote_function_mode): Likewise.
33206         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
33207         in order to make it legitimate.
33208         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
33209         make sure that the first operand is the same as the result register.
33210         (addsi3_unspec): Delete.
33211         (subdi3): Do not accept immediate operands.
33212         (subdi3_internal): Likewise.
33213
33214 2011-01-25  Jeff Law  <law@redhat.com>
33215
33216         PR rtl-optimization/37273
33217         * ira-costs.c (scan_one_insn): Detect constants living in memory and
33218         handle them like argument loads from stack slots.  Do not double
33219         count memory for memory constants and argument loads from stack slots.
33220
33221 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
33222
33223         PR tree-optimization/47427
33224         PR tree-optimization/47428
33225         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
33226         coalesce if the new root var would be TREE_READONLY.
33227
33228 2011-01-25  Richard Guenther  <rguenther@suse.de>
33229
33230         PR middle-end/47414
33231         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
33232         correct type for TBAA.
33233
33234 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33235
33236         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
33237         (close_phi_written_to_memory): Call for_each_index with
33238         dr_indices_valid_in_loop.
33239
33240 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33241
33242         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
33243         when it is initialized.
33244
33245 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33246
33247         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
33248         call to graphite_find_data_references_in_stmt.
33249         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
33250         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
33251         call to graphite_find_data_references_in_stmt.
33252         (analyze_drs_in_stmts): Same.
33253         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
33254         in which the scalar analysis of indices is performed.
33255         (create_data_ref): Same.  Update call to dr_analyze_indices.
33256         (find_data_references_in_stmt): Update call to create_data_ref.
33257         (graphite_find_data_references_in_stmt): Same.
33258         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
33259         declaration.
33260         (create_data_ref): Same.
33261         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
33262         call to create_data_ref.
33263
33264 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33265
33266         * graphite-sese-to-poly.c (build_poly_scop): Move
33267         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
33268
33269 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33270
33271         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
33272         VAR_DECL, PARM_DECL, and RESULT_DECL.
33273
33274 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33275
33276         * graphite-dependences.c (reduction_dr_1): Allow several reductions
33277         in a reduction PBB.
33278         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
33279         that have already been marked as PBB_IS_REDUCTION.
33280
33281 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33282
33283         * graphite-scop-detection.c (same_close_phi_node): New.
33284         (remove_duplicate_close_phi): New.
33285         (make_close_phi_nodes_unique): New.
33286         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
33287
33288 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33289
33290         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
33291         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
33292         of both data references to be the same.
33293
33294 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33295
33296         * graphite-dependences.c (build_lexicographical_constraint): Remove
33297         the gdim parameter.
33298         (build_lexicographical_constraint): Adjust call to
33299         ppl_powerset_is_empty.
33300         (dependence_polyhedron): Same.
33301         (graphite_legal_transform_dr): Same.
33302         (graphite_carried_dependence_level_k): Same.
33303         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
33304         parameter.
33305         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
33306
33307 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33308
33309         * graphite-sese-to-poly.c
33310         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
33311         (close_phi_written_to_memory): New.
33312         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
33313         and unshare_expr.
33314
33315 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33316
33317         * doc/install.texi: Update the expected version number of PPL to 0.11.
33318         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
33319         #if PPL_VERSION_MINOR < 11.
33320
33321 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33322
33323         * graphite-dependences.c: Include graphite-cloog-util.h.
33324         (new_poly_ddr): Inlined into dependence_polyhedron.
33325         (free_poly_ddr): Moved close by new_poly_ddr.
33326         (dependence_polyhedron_1): Renamed dependence_polyhedron.
33327         Early return NULL when ppl_powerset_is_empty returns true.
33328         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
33329         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
33330         (graphite_legal_transform_dr): Call new_poly_ddr.
33331         (graphite_carried_dependence_level_k): Same.
33332         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
33333         (dot_transformed_deps_stmt_1): Removed.
33334         (dot_deps_stmt_1): Call dot_deps_stmt_2.
33335         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
33336         (dot_deps_1): Call dot_deps_2.
33337         * Makefile.in (graphite-dependences.o): Add missing dependence on
33338         graphite-cloog-util.h.
33339
33340 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33341
33342         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
33343         (build_lexicographical_constraint): Same.
33344         (dependence_polyhedron_1): Same.
33345         (graphite_legal_transform_dr): Same.
33346         (graphite_carried_dependence_level_k): Same.
33347         * graphite-ppl.c (ppl_powerset_is_empty): New.
33348         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
33349         * tree-data-ref.c (dump_data_reference): Print the basic block index.
33350
33351 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33352
33353         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
33354         the "a followed by b" relation and document it.
33355
33356 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33357
33358         * graphite-dependences.c (build_lexicographical_constraint): Stop the
33359         iteration when the bag of constraints is empty.
33360
33361 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33362
33363         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
33364
33365 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33366
33367         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
33368         nest and two loop depths as parameters.
33369         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
33370         lst_perfect_nestify.
33371
33372 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33373
33374         * graphite-dependences.c (print_pddr): Call
33375         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
33376
33377 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33378
33379         * graphite-ppl.c (debug_gmp_value): New.
33380         * graphite-ppl.h (debug_gmp_value): Declared.
33381
33382 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
33383
33384         * doc/install.texi: Document availability of cloog-0.16.
33385
33386 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
33387
33388         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
33389         invalid postdominance info.
33390
33391 2011-01-24  Jan Hubicka  <jh@suse.cz>
33392
33393         PR c/21659
33394         * doc/extend.texi (weak pragma): Drop claim that it must
33395         appear before definition.
33396         * varasm.c (merge_weak, declare_weak): Only sanity check
33397         that DECL is not output at a time it is declared weak.
33398
33399 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
33400
33401         * machmode.def: Fixed comments.
33402
33403 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
33404
33405         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
33406
33407 2011-01-24  Paul Koning  <ni1d@arrl.net>
33408
33409         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
33410         WORDS_BIG_ENDIAN.
33411
33412 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
33413
33414         PR target/46519
33415         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
33416         (block_info): Add scanned and prev.
33417         (move_or_delete_vzeroupper_2): Return if the basic block
33418         has been scanned and the upper 128bit state is unchanged
33419         from the last scan.
33420         (move_or_delete_vzeroupper_1): Return true if the exit
33421         state is changed.
33422         (move_or_delete_vzeroupper): Visit basic blocks using the
33423         work-list based algorithm based on vt_find_locations in
33424         var-tracking.c.
33425
33426         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
33427
33428 2011-01-24  Nick Clifton  <nickc@redhat.com>
33429
33430         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
33431         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
33432         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
33433         then define __v850e1__.
33434         * doc/invoke.texi: Document -mv850es.
33435
33436 2011-01-24  Richard Henderson  <rth@redhat.com>
33437
33438         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
33439         compound unordered comparisons.
33440         * config/rx/rx.c (rx_split_fp_compare): Remove.
33441         * config/rx/rx-protos.h: Update.
33442         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
33443         (cbranchsf4): Don't call rx_split_fp_compare.
33444         (*cbranchsf4): Use rx_split_cbranch.
33445         (*cmpsf): Don't accept "i" constraint.
33446         (*conditional_branch): Only valid after reload.
33447         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
33448
33449 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
33450
33451         PR target/47385
33452         * config/rs6000/altivec.md (vector constant splitters): Add
33453         support for creating vector single precision constants if -mvsx is
33454         used and we would create the constant using Altivec primitives.
33455
33456 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
33457             Richard Sandiford  <rdsandiford@googlemail.com>
33458
33459         PR rtl-optimization/47166
33460         * reload1.c (emit_reload_insns): Disable the spill_reg_store
33461         mechanism for PRE_MODIFY and POST_MODIFY.
33462         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
33463         reloadreg.
33464
33465 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
33466
33467         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
33468
33469 2011-01-22  Jan Hubicka  <jh@suse.cz>
33470
33471         PR lto/47333
33472         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
33473
33474 2011-01-22  Jan Hubicka  <jh@suse.cz>
33475
33476         PR tree-optimization/43884
33477         PR lto/44334
33478         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
33479         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
33480
33481 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
33482
33483         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
33484         * config/s390/s390.c (s390_register_move_cost,
33485         s390_memory_move_cost): New.
33486         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
33487
33488 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33489
33490         PR middle-end/47401
33491         * except.c (sjlj_assign_call_site_values): Move setting the
33492         crtl->uses_eh_lsda flag to ...
33493         (sjlj_mark_call_sites): ... here.
33494         (sjlj_emit_function_enter): Support NULL dispatch label.
33495         (sjlj_build_landing_pads): In a function with no landing pads
33496         that still has must-not-throw regions, generate code to register
33497         a personality function with empty LSDA.
33498
33499 2011-01-21  Richard Henderson  <rth@redhat.com>
33500
33501         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
33502
33503         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
33504
33505         * compare-elim.c: New file.
33506         * Makefile.in (OBJS-common): Add it.
33507         (compare-elim.o): New.
33508         * common.opt (fcompare-elim): New.
33509         * opts.c (default_options_table): Add OPT_fcompare_elim.
33510         * tree-pass.h (pass_compare_elim_after_reload): New.
33511         * passes.c (init_optimization_passes): Add it.
33512         * recog.h: Protect against re-inclusion.
33513         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
33514         * doc/invoke.texi (-fcompare-elim): Document it.
33515         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
33516         * doc/tm.texi: Rebuild.
33517
33518 2011-01-22  Nick Clifton  <nickc@redhat.com>
33519
33520         * config/rx/rx.md (cstoresf4): Pass comparison operator to
33521         rx_split_fp_compare.
33522
33523 2011-01-22  Nick Clifton  <nickc@redhat.com>
33524
33525         * config/rx/rx.md (UNSPEC_CONST): New.
33526         (deallocate_and_return): Wrap the amount popped off the stack in
33527         an UNSPEC_CONST in order to stop it being rejected by
33528         -mmax-constant-size.
33529         (pop_and_return): Add a "(return)" rtx.
33530         (call): Drop the immediate operand.
33531         (call_internal): Likewise.
33532         (call_value): Likewise.
33533         (call_value_internal): Likewise.
33534         (sibcall_internal): Likewise.
33535         (sibcall_value_internal): Likewise.
33536         (sibcall): Likewise.  Generate an explicit call using
33537         sibcall_internal.
33538         (sibcall_value): Likewise.
33539         (mov<>): FAIL if a constant operand is not legitimate.
33540         (addsi3_unpsec): New pattern.
33541
33542         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
33543         (ok_for_max_constant): New function.
33544         (gen_safe_add): New function.
33545         (rx_expand_prologue): Use gen_safe_add.
33546         (rx_expand_epilogue): Likewise.
33547         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
33548         UNSPEC CONSTs.
33549
33550 2011-01-21  Jeff Law  <law@redhat.com>
33551
33552         PR tree-optimization/47053
33553         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
33554         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
33555         statements are deleted.
33556         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
33557         is nonempty, then purge dead edges and cleanup the CFG.
33558
33559 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
33560
33561         PR debug/47402
33562         Temporarily revert:
33563         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
33564         PR debug/47106
33565         * tree-dfa.c (create_var_ann): Mark variable as used.
33566
33567 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
33568
33569         PR middle-end/45566
33570         * except.c (convert_to_eh_region_ranges): Emit queued no-region
33571         notes from other section in hot/cold partitioning even if
33572         last_action is -3.  Increment call_site_base.
33573
33574         PR rtl-optimization/47366
33575         * fwprop.c (forward_propagate_into): Return bool.  If
33576         any changes are made, -fnon-call-exceptions is used and
33577         REG_EH_REGION note is present, call purge_dead_edges
33578         and return true if it purged anything.
33579         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
33580         any EH edges were purged.
33581
33582 2011-01-21  Jeff Law  <law@redhat.com>
33583
33584         PR rtl-optimization/41619
33585         * caller-save.c (setup_save_areas): Break out code to determine
33586         which hard regs are live across calls by examining the reload chains
33587         so that it is always used.
33588         Eliminate code which checked REG_N_CALLS_CROSSED.
33589
33590 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
33591
33592         PR tree-optimization/47355
33593         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
33594         NOP has non-debug uses beyond PHIs in new_bb.
33595
33596 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
33597
33598         PR debug/47106
33599         * cfgexpand.c (account_used_vars_for_block): Only account vars
33600         that are annotated as used.
33601         (estimated_stack_frame_size): Don't set TREE_USED.
33602         * tree-dfa.c (create_var_ann): Mark variable as used.
33603
33604 2011-01-21  Richard Guenther  <rguenther@suse.de>
33605
33606         PR middle-end/47395
33607         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
33608
33609 2011-01-21  Richard Guenther  <rguenther@suse.de>
33610
33611         PR tree-optimization/47365
33612         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
33613         (vn_reference_lookup_pieces): Adjust.
33614         (vn_reference_lookup): Likewise.
33615         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
33616         (vn_reference_lookup_3): Only look through kills if in
33617         VN_WALKREWRITE mode.
33618         (vn_reference_lookup_pieces): Adjust.
33619         (vn_reference_lookup): Likewise.
33620         (visit_reference_op_load): Likewise.
33621         (visit_reference_op_store): Likewise.
33622         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
33623         (compute_avail): Likewise.
33624         (eliminate): Likewise.
33625
33626 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
33627
33628         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
33629         DECL_IGNORED_P non-reg vars if they are used.
33630
33631         PR tree-optimization/47391
33632         * varpool.c (const_value_known_p): Return false if
33633         decl is volatile.
33634
33635 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
33636
33637         PR bootstrap/47215
33638         * config/i386/i386.c (ix86_local_alignment): Handle
33639         case for va_list_type_node is nil.
33640         (ix86_canonical_va_list_type): Likewise.
33641
33642 2011-01-21  Alan Modra  <amodra@gmail.com>
33643
33644         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
33645         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
33646
33647 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33648
33649         * config/arm/arm.md (define_attr type): Rename f_load
33650         and f_store to f_fpa_load and f_fpa_store. Update.
33651         (write_conflict): Deal with rename fallout.
33652         (*push_fp_multi): Likewise.
33653         * config/arm/fpa.md (f_load): Use f_fpa_load.
33654         (f_store): Use f_fpa_store.
33655         (*movsf_fpa): Likewise.
33656         (*movdf_fpa): Likewise.
33657         (*movxf_fpa): Likewise.
33658         (*thumb2_movsf_fpa): Likewise.
33659         (*thumb2_movdf_fpa): Likewise.
33660         (*thumb2_movxf_fpa): Likewise.
33661         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
33662         f_loadd and f_stored.
33663         (*thumb2_movdi_vfp): Likewise.
33664         (*thumb2_movsf_vfp): Fix attribute to f_loads.
33665         (*thumb2_movsi_vfp): Likewise.
33666         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
33667         Use f_loads instead of f_load.
33668         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
33669
33670 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
33671
33672         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
33673         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
33674         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
33675         (xtensa_mode_dependent_address_p): New function.
33676         (constantpool_address_p): Make static. Change return type to bool.
33677         Change argument type to const_rtx. Use CONST_INT_P predicate.
33678
33679 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
33680
33681         PR debug/46583
33682         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
33683
33684 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
33685
33686         PR debug/47283
33687         * cfgexpand.c (expand_debug_expr): Instead of generating
33688         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
33689         etc. handling.
33690
33691 2011-01-20  Richard Guenther  <rguenther@suse.de>
33692
33693         PR middle-end/47370
33694         * tree-inline.c (remap_gimple_op_r): Recurse manually for
33695         the pointer operand of MEM_REFs.
33696
33697 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
33698
33699         PR tree-optimization/46130
33700         * ipa-split.c (consider_split): If return_bb contains non-virtual
33701         PHIs other than for retval or if split_function would not adjust it,
33702         refuse to split.
33703
33704 2011-01-20  Richard Guenther  <rguenther@suse.de>
33705
33706         PR tree-optimization/47167
33707         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
33708         Revert previous change, only avoid enumeral type changes.
33709
33710 2011-01-19  Mike Stump  <mikestump@comcast.net>
33711
33712         * doc/tm.texi.in (BRANCH_COST): Englishify.
33713         * doc/tm.texi (BRANCH_COST): Likewise.
33714
33715 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
33716
33717         PR c++/47291
33718         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
33719         (gen_scheduled_generic_parms_dies): New functions.
33720         (gen_struct_or_union_type_die): Schedule template parameters DIEs
33721         generation for the end of CU compilation.
33722         (dwarf2out_finish): Generate template parameters DIEs here.
33723
33724 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
33725
33726         PR debug/46240
33727         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
33728         debug bind stmt on merge edges.
33729
33730 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
33731
33732         PR debug/47079
33733         PR debug/46724
33734         * function.c (instantiate_expr): Instantiate incoming rtl of
33735         implicit arguments, and recurse on VALUE_EXPRs.
33736         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
33737         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
33738
33739 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
33740
33741         * c-parser.c (c_parser_for_statement): Initialize
33742         collection_expression.
33743
33744 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
33745
33746         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
33747
33748 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
33749
33750         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
33751         (LINK_SHLIB_SPEC): Don't use %(link_path).
33752         (SUBTARGET_EXTRA_SPECS): Remove link_path.
33753
33754 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
33755
33756         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
33757         (NO_SHARED_LIB_SUPPORT): Remove.
33758         (LINK_SHLIB_SPEC): Remove one conditional definition.
33759
33760 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
33761
33762         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
33763         %{call_shared}.
33764         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
33765         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
33766         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
33767         %{call_shared} and conditionals on these options not being passed.
33768         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
33769         %{call_shared}.
33770
33771 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
33772
33773         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
33774         simplify.
33775
33776         * ipa-split.c: Spelling fixes.
33777
33778 2011-01-19  Richard Henderson  <rth@redhat.com>
33779
33780         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
33781         (*mulsi3): Likewise.
33782
33783         * longlong.h [__mn10300__] (count_leading_zeros): New.
33784         [__mn10300__] (umul_ppmm, smul_ppmm): New.
33785         [__mn10300__] (add_ssaaaa, subddmmss): New.
33786         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
33787         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
33788
33789 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33790
33791         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
33792
33793 2011-01-19  Richard Henderson  <rth@redhat.com>
33794
33795         * config/mn10300/mn10300.md (addsi3_flags): New.
33796         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
33797         (subsi3_flags, subc_internal, subdi3): New.
33798         (subdi3_internal, *subdi3_degenerate): New.
33799         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
33800
33801         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
33802         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
33803         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
33804         * config/mn10300/mn10300-protos.h: Update.
33805         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
33806         (return_ret): Likewise.  Rename from return_internal_regs.
33807         (return_internal): Remove.
33808
33809         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
33810         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
33811         (mn10300_legitimate_constant_p): Likewise.
33812         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
33813         (mn10300_frame_size): New.
33814         (mn10300_expand_prologue): Use it.
33815         (mn10300_expand_epilogue): Likewise.
33816         (mn10300_initial_offset): Likewise.
33817         * config/mn10300/mn10300-protos.h: Update.
33818         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
33819         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
33820         (prologue, epilogue, return_internal): Tidy output code.
33821         (mn10300_store_multiple_operation, return): Likewise.
33822         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
33823         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
33824         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
33825         (load_pic, am33_load_pic): New.
33826         (mn10300_load_pic0, mn10300_load_pic1): New.
33827
33828         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
33829         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
33830         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
33831         (cc_flags_for_mode, cc_flags_for_code): New.
33832         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
33833         overflow flag is not valid.  Validate that the flags we need
33834         for the comparison are valid.
33835         (mn10300_output_cmp): Remove.
33836         (mn10300_output_add): New.
33837         (mn10300_select_cc_mode): Use cc_flags_for_code.
33838         (mn10300_split_cbranch): New.
33839         (mn10300_match_ccmode): New.
33840         (mn10300_split_and_operand_count): New.
33841         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
33842         to the function.
33843         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
33844         (addsi3): ... here.  Use mn10300_output_add.
33845         (*addsi3_flags): New.
33846         (*am33_subsi3, *mn10300_subsi3): Merge...
33847         (subsi3): ... here.  Use attribute isa.
33848         (*subsi3_flags): New.
33849         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
33850         when possible.
33851         (*am33_andsi3, *mn10300_andsi3): Merge...
33852         (andsi3): ... here.
33853         (*andsi3_flags): New.
33854         (andsi3 splitters): New.
33855         (*am33_iorsi3, *mn10300_iorsi3): Merge...
33856         (iorsi3): ... here.
33857         (*iorsi3_flags): New.
33858         (*am33_xorsi3, *mn10300_xorsi3): Merge...
33859         (xorsi3): ... here.
33860         (*xorsi3_flags): New.
33861         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
33862         (one_cmplsi2): ... here.
33863         (*one_cmplsi2_flags): New.
33864         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
33865         instead of "dax" in constraints.  Use mn10300_split_cbranch.
33866         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
33867         use matching constraints to eliminate a self-comparison.
33868         (*integer_conditional_branch): Rename from integer_conditional_branch.
33869         Use int_mode_flags to match CC_REG.
33870         (*cbranchsi4_btst, *btstsi): New.
33871         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
33872         mn10300_split_cbranch.
33873         (*am33_cmpsf): Rename from am33_cmpsf.
33874         (*float_conditional_branch): Rename from float_conditional_branch.
33875         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
33876         (zero_extendqisi2): ... here.
33877         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
33878         (zero_extendhisi2): ... here.
33879         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
33880         (extendqisi2): ... here.
33881         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
33882         (extendhisi2): ... here.
33883         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
33884         (ashlsi3): ... here.
33885         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
33886         (lshrsi3): ... here.
33887         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
33888         (ashrsi3): ... here.
33889         (consecutive add peephole): Remove.
33890         * config/mn10300/predicates.md (label_ref_operand): New.
33891         (int_mode_flags): New.
33892         (CCZN_comparison_operator): New.
33893
33894         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
33895         (throughput_42_latency_43): New reservation.
33896         (mulsidi3, umulsidi3): New expanders.
33897         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
33898         the MDR register to allocation; separately allocate the low and
33899         high parts of the DImode result.
33900         (umulsidi3_internal): Similarly.
33901         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
33902         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
33903         (udivsi3, umodsi3): Remove.
33904         (udivmodsi4, divmodsi4): New expanders.
33905         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
33906         (*divmodsi4): Simiarly.
33907         (ext_internal): New.
33908
33909         * config/mn10300/constraints.md ("z"): New constraint.
33910         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
33911         (FIXED_REGISTERS): Don't fix MDR.
33912         (CALL_USED_REGSITERS): Reformat nicely.
33913         (REG_ALLOC_ORDER): Add MDR.
33914         (enum regclass): Add MDR_REGS.
33915         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
33916         (IRA_COVER_CLASSES): Add MDR_REGS.
33917         (REGNO_REG_CLASS): Handle MDR_REG.
33918         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
33919         (mn10300_register_move_cost): Likewise.
33920         * config/mn10300/mn10300.md (MDR_REG): New.
33921         (*movsi_internal): Handle moves to/from MDR_REGS.
33922
33923         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
33924         POST_MODIFY.
33925         (mn10300_secondary_reload): Tidy combination reload classes.
33926         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
33927         addresses for AM33.  Allow symbolic offsets for reg+imm.
33928         (mn10300_regno_in_class_p): New.
33929         (mn10300_legitimize_reload_address): New.
33930         * config/mn10300/mn10300.h (enum reg_class): Remove
33931         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
33932         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
33933         SP_OR_GENERAL_REGS.
33934         (REG_CLASS_NAMES): Update to match.
33935         (REG_CLASS_CONTENTS): Likewise.
33936         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
33937         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
33938         (REGNO_IN_RANGE_P): Remove.
33939         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
33940         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
33941         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
33942         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
33943         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
33944         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
33945         (REGNO_GENERAL_P): New.
33946         (HAVE_POST_MODIFY_DISP): New.
33947         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
33948         (LEGITIMIZE_RELOAD_ADDRESS): New.
33949         * config/mn10300/mn10300-protos.h: Update.
33950
33951         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
33952         DATA_REGS for AM33 stack-pointer destination.
33953         (mn10300_preferred_output_reload_class): Likewise.
33954         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
33955         into a form appropriate for ...
33956         (TARGET_SECONDARY_RELOAD): New.
33957         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
33958         * config/mn10300/mn10300-protos.h: Update.
33959         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
33960         reload_insi; use the "A" constraint for the scratch; handle AM33
33961         moves of sp to non-address registers.
33962
33963         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
33964         (*movqi_internal): ... here.
33965         (*am33_movhi, *mn10300_movhi): Merge into...
33966         (*movhi_internal): ... here.
33967         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
33968         as the source/destination of moves from/to SP.
33969         (movsf): Only allow for AM33-2.
33970         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
33971         any integer constant constraint.  Only allow for AM33-2.  Tidy
33972         all of the alternative outputs.
33973         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
33974         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
33975         for MN103.
33976         (udivsi3, umodsi3): New patterns for MN103 only.
33977
33978 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
33979
33980         * doc/tm.texi.in: Spell out that a lack of register class unions
33981         can lead to ICEs.
33982         * doc/tm.texi: Regenerate.
33983
33984 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
33985
33986         PR rtl-optimization/47337
33987         * dce.c (check_argument_store): New function.
33988         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
33989
33990         PR tree-optimization/47290
33991         * tree-eh.c (infinite_empty_loop_p): New function.
33992         (cleanup_empty_eh): Use it.
33993
33994 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
33995
33996         PR target/46997
33997         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
33998         (a64_expand_widen_sum): Ditto.
33999         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
34000         (vec_extract_evenodd_help): Ditto.
34001         (vec_extract_evenv4hi): Ditto.
34002         (vec_extract_oddv4hi): Ditto.
34003         (vec_extract_evenv2si): Ditto.
34004         (vec_extract_oddv2si): Ditto.
34005         (vec_extract_evenv2sf): Ditto.
34006         (vec_extract_oddv2sf): Ditto.
34007         (vec_pack_trunc_v4hi: Ditto.
34008         (vec_pack_trunc_v2si): Ditto.
34009         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
34010         (vec_interleave_highv8qi): Ditto.
34011         (mix1_r): Ditto.
34012         (vec_extract_oddv8qi): Ditto.
34013         (vec_interleave_lowv4hi): Ditto.
34014         (vec_interleave_highv4hi): Ditto.
34015         (vec_interleave_lowv2si): Ditto.
34016         (vec_interleave_highv2si): Ditto.
34017
34018 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34019
34020         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
34021         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
34022         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
34023         (pa_c_mode_for_suffix): New.
34024         (TARGET_EXPAND_BUILTIN): Define.
34025         (TARGET_C_MODE_FOR_SUFFIX): Define.
34026         (pa_builtins): Define.
34027         (pa_init_builtins): Register __float128 type and init new support
34028         builtins.
34029         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
34030         * config/pa/quadlib.c (_U_Qfcopysign): New.
34031
34032 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
34033
34034         PR middle-end/46894
34035         * explow.c (allocate_dynamic_stack_space): Do not assume more than
34036         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
34037         are defined.
34038
34039 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34040
34041         PR tree-optimization/47179
34042         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
34043         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
34044
34045 2011-01-18  Richard Guenther  <rguenther@suse.de>
34046
34047         PR rtl-optimization/47216
34048         * emit-rtl.c: Include tree-flow.h.
34049         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
34050         of replicating it with different semantics.
34051         * Makefile.in (emit-rtl.o): Adjust.
34052
34053 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34054
34055         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
34056         (cortex_a9_dp): Handle neon types correctly.
34057
34058 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
34059
34060         PR rtl-optimization/47299
34061         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
34062         subtarget.  Use normal multiplication if both operands are constants.
34063         * expmed.c (expand_widening_mult): Don't try to optimize constant
34064         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
34065         before using it.
34066
34067 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34068
34069         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
34070         spacing after 'e.g.', typos, comma, hyphenation.
34071
34072 2011-01-17  Richard Henderson  <rth@redhat.com>
34073
34074         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
34075         (rx_restricted_mem_operand): New.
34076         (rx_shift_operand): Use register_operand.
34077         (rx_source_operand, rx_compare_operand): Likewise.
34078         * config/rx/rx.md (addsi3_flags): New expander.
34079         (adddi3): Rewrite as expander.
34080         (adc_internal, *adc_flags, adddi3_internal): New patterns.
34081         (subsi3_flags): New expander.
34082         (subdi3): Rewrite as expander.
34083         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
34084
34085         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
34086         (rx_init_builtins): Remove sat builtin.
34087         (rx_expand_builtin): Likewise.
34088         * config/rx/rx.md (ssaddsi3): New.
34089         (*sat): Rename from sat.  Represent the CC_REG input.
34090
34091         * config/rx/predicates.md (rshift_operator): New.
34092         * config/rx/rx.c (rx_expand_insv): Remove.
34093         * config/rx/rx-protos.h: Update.
34094         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
34095         operand to the canonical position.
34096         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
34097         (*bitclr, *bitclr_in_memory): Similarly.
34098         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
34099         (insv): Retain the zero_extract in the expansion.
34100
34101         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
34102         (bswaphi2, bitinvert, revw): Likewise.
34103
34104         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
34105         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
34106         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
34107         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
34108         (bitset, bitset_in_memory): Likewise.
34109         (bitinvert, bitinvert_in_memory): Likewise.
34110         (bitclr, bitclr_in_memory): Likewise.
34111         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
34112         (rx_strend, rx_cmpstrn): Likewise.
34113         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
34114         (bitop peep2 patterns): Remove.
34115
34116         * config/rx/rx.c (rx_match_ccmode): New.
34117         * config/rx/rx-protos.h: Update.
34118         * config/rx/rx.md (abssi2): Clobber, don't set flags.
34119         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
34120         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
34121         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
34122         (fix_truncsfsi2, floatsisf2): Likewise.
34123         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
34124         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
34125         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
34126         (*subsi3_flags, *xorsi3_flags): New.
34127
34128         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
34129
34130         * config/rx/rx.c (rx_print_operand): Remove workaround for
34131         unsplit comparison operations.
34132
34133         * config/rx/rx.md (movsicc): Split after reload.
34134         (*movsicc): Merge *movsieq and *movsine via match_operator.
34135         (*stcc): New pattern.
34136
34137         * config/rx/rx.c (rx_float_compare_mode): Remove.
34138         * config/rx/rx.h (rx_float_compare_mode): Remove.
34139         * config/rx/rx.md (cstoresi4): Split after reload.
34140         (*sccc): New pattern.
34141
34142         * config/rx/predicates.md (label_ref_operand): New.
34143         (rx_z_comparison_operator): New.
34144         (rx_zs_comparison_operator): New.
34145         (rx_fp_comparison_operator): New.
34146         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
34147         Validate that the flags are set properly for the comparison.
34148         (rx_gen_cond_branch_template): Remove.
34149         (rx_cc_modes_compatible): Remove.
34150         (mode_from_flags): New.
34151         (flags_from_code): Rename from flags_needed_for_conditional.
34152         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
34153         (rx_select_cc_mode): Likewise.
34154         (rx_split_fp_compare): New.
34155         (rx_split_cbranch): New.
34156         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
34157         (*cbranchsi4): Use match_operator and rx_split_cbranch.
34158         (*cbranchsf4): Similarly.
34159         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
34160         match_operator and rx_split_cbranch.
34161         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
34162         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
34163         (*cmpsi): Rename from cmpsi.
34164         (*tstsi): Rename from tstsi.
34165         (*cmpsf): Rename from cmpsf; use CC_Fmode.
34166         (*conditional_branch): Rename from conditional_branch.
34167         (*reveresed_conditional_branch): Remove.
34168         (b<code>): Remove expander.
34169         * config/rx/rx-protos.h: Update.
34170
34171         * config/rx/rx.c (rx_compare_redundant): Remove.
34172         * config/rx/rx.md (cmpsi): Don't use it.
34173         * config/rx/rx-protos.h: Update.
34174
34175         * config/rx/rx-modes.def (CC_F): New mode.
34176         * config/rx/rx.c (rx_select_cc_mode): New.
34177         * config/rx/rx.h (SELECT_CC_MODE): Use it.
34178         * config/rx/rx-protos.h: Update.
34179
34180 2011-01-17  Richard Henderson  <rth@redhat.com>
34181
34182         * except.c (dump_eh_tree): Fix stray ; after for statement.
34183
34184 2011-01-17  Richard Guenther  <rguenther@suse.de>
34185
34186         PR tree-optimization/47313
34187         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
34188         handling before copying the body.  Properly deal with
34189         by-reference result in SSA form.
34190
34191 2011-01-17  Ian Lance Taylor  <iant@google.com>
34192
34193         PR target/47219
34194         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
34195         (struct_value_alias_set): Don't define.
34196         (sparc_option_override): Don't set sparc_sr_alias_set and
34197         struct_value_alias_set.
34198         (save_or_restore_regs): Use gen_frame_mem rather than calling
34199         set_mem_alias_set.
34200         (sparc_struct_value_rtx): Likewise.
34201
34202 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
34203
34204         PR target/47318
34205         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
34206         (_mm_maskstore_pd): Likewise.
34207         (_mm_maskload_ps): Likewise.
34208         (_mm_maskstore_ps): Likewise.
34209         (_mm256_maskload_pd): Change mask to __m256i.
34210         (_mm256_maskstore_pd): Likewise.
34211         (_mm256_maskload_ps): Likewise.
34212         (_mm256_maskstore_ps): Likewise.
34213
34214         * config/i386/i386-builtin-types.def: Updated.
34215         (ix86_expand_special_args_builtin): Likewise.
34216
34217         * config/i386/i386.c (bdesc_special_args): Update
34218         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
34219         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
34220         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
34221         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
34222
34223         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
34224         Use <avxpermvecmode> on mask register.
34225         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
34226
34227 2011-01-17  Olivier Hainque  <hainque@adacore.com>
34228             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34229             Eric Botcazou  <ebotcazou@adacore.com>
34230
34231         PR target/46655
34232         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
34233         if <= USHRT_MAX in 32-bit mode.
34234
34235 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34236
34237         * doc/install.texi (Configuration, Specific): Wrap long
34238         lines in examples.  Allow line wrapping in long options
34239         and URLs where beneficial for PDF output.
34240
34241 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
34242
34243         * config/mips/mips.c (mips_classify_symbol): Don't return
34244         SYMBOL_PC_RELATIVE for nonlocal labels.
34245
34246 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
34247
34248         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
34249
34250 2011-01-15  Jan Hubicka  <jh@suse.cz>
34251
34252         PR tree-optimization/47276
34253         * ipa.c (function_and_variable_visibility): Do not try to mark alias
34254         declarations as needed.
34255
34256 2011-01-15  Martin Jambor  <mjambor@suse.cz>
34257
34258         * common.opt (fdevirtualize): New flag.
34259         * doc/invoke.texi (Option Summary): Document it.
34260         * opts.c (default_options_table): Add devirtualize flag.
34261         * ipa-prop.c (detect_type_change): Return immediately if
34262         devirtualize flag is not set.
34263         (detect_type_change_ssa): Likewise.
34264         (compute_known_type_jump_func): Likewise.
34265         (ipa_analyze_virtual_call_uses): Likewise.
34266
34267 2011-01-14  Martin Jambor  <mjambor@suse.cz>
34268
34269         PR tree-optimization/45934
34270         PR tree-optimization/46302
34271         * ipa-prop.c (type_change_info): New type.
34272         (stmt_may_be_vtbl_ptr_store): New function.
34273         (check_stmt_for_type_change): Likewise.
34274         (detect_type_change): Likewise.
34275         (detect_type_change_ssa): Likewise.
34276         (compute_complex_assign_jump_func): Check for dynamic type change.
34277         (compute_complex_ancestor_jump_func): Likewise.
34278         (compute_known_type_jump_func): Likewise.
34279         (compute_scalar_jump_functions): Likewise.
34280         (ipa_analyze_virtual_call_uses): Likewise.
34281         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
34282
34283 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34284
34285         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
34286         * config/i386/i386.opt (msse5): New Alias.
34287
34288 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34289
34290         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
34291         * config/sparc/linux64.h (CC1_SPEC): Likewise.
34292         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
34293         * config/sparc/sparc.h (CC1_SPEC): Likewise.
34294
34295 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34296
34297         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
34298         -mcpu options.
34299         * config/sparc/linux64.h (CC1_SPEC): Likewise.
34300         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
34301         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
34302         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
34303         Likewise.
34304         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
34305
34306 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34307
34308         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
34309
34310 2011-01-14  Mike Stump  <mikestump@comcast.net>
34311
34312         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
34313         * config/fr30/fr30.md: Likweise
34314         (movsi_push): Likewise.
34315         (movsi_pop): Likewise.
34316         (enter_func): Likewise.
34317         * config/moxie/moxie.md (movsi_push): Likewise.
34318         (movsi_pop): Likewise.
34319
34320 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34321
34322         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
34323         %{no_archive} %{exact_version}.
34324         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
34325         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
34326         %{no_archive} %{exact_version}.
34327         * config/mips/openbsd.h (LINK_SPEC): Likewise.
34328         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
34329         * config/mips/vxworks.h: Likewise.
34330
34331 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34332
34333         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
34334
34335 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34336
34337         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
34338         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
34339
34340 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34341
34342         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
34343         -nodefaultlib.
34344
34345 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34346
34347         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
34348         for mcpu not cpu.
34349         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
34350         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
34351         not cpu.
34352         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
34353         Don't handle -shlib.
34354
34355 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34356
34357         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
34358         (CC1_SPEC): Don't handle -profile.
34359
34360 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34361
34362         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
34363         * config/mips/mips.h (CC1_SPEC): Likewise.
34364
34365 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34366
34367         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
34368         * config/mips/mips.h (CC1_SPEC): Likewise.
34369
34370 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34371
34372         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
34373         * config/m32r/linux.h (LINK_SPEC): Likewise.
34374         * config/mips/linux.h (LINK_SPEC): Likewise.
34375         * config/mips/linux64.h (LINK_SPEC): Likewise.
34376         * config/sparc/linux.h (LINK_SPEC): Likewise.
34377         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
34378         LINK_SPEC): Likewise.
34379         * config/xtensa/linux.h (LINK_SPEC): Likewise.
34380
34381 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34382
34383         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
34384         %{version:-v}.
34385         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
34386
34387 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34388
34389         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
34390         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
34391
34392 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34393
34394         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
34395
34396 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34397
34398         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
34399         supports -Bstatic/-Bdynamic.
34400         * configure: Regenerate.
34401
34402 2011-01-14  Jan Hubicka  <jh@suse.cz>
34403             Jack Howarth  <howarth@bromo.med.uc.edu>
34404
34405         PR target/46037
34406         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
34407         when checking debug_info_level. Test write_symbols instead of
34408         debug_hooks->var_location when setting flag_var_tracking_uninit.
34409
34410 2011-01-14  Richard Guenther  <rguenther@suse.de>
34411
34412         PR tree-optimization/47179
34413         * target.def (ref_may_alias_errno): New target hook.
34414         * targhooks.h (default_ref_may_alias_errno): Declare.
34415         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
34416         (default_ref_may_alias_errno): New function.
34417         * target.h (struct ao_ref_s): Declare.
34418         * tree-ssa-alias.c: Include target.h.
34419         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
34420         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
34421         (targhooks.o): Likewise.
34422         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
34423         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
34424
34425 2011-01-14  Richard Guenther  <rguenther@suse.de>
34426
34427         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
34428
34429 2011-01-14  Richard Guenther  <rguenther@suse.de>
34430
34431         PR tree-optimization/47280
34432         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
34433         return CFG changes.
34434         (tree_ssa_forward_propagate_single_use_vars): Deal with
34435         CFG changes from associate_plusminus.
34436
34437 2011-01-14  Richard Guenther  <rguenther@suse.de>
34438
34439         PR middle-end/47281
34440         Revert
34441         2011-01-11  Richard Guenther  <rguenther@suse.de>
34442
34443         PR tree-optimization/46076
34444         * tree-ssa.c (useless_type_conversion_p): Conversions from
34445         unprototyped to empty argument list function types are useless.
34446
34447 2011-01-14  Richard Guenther  <rguenther@suse.de>
34448
34449         PR tree-optimization/47286
34450         * tree-ssa-structalias.c (new_var_info): Register variables are global.
34451
34452 2011-01-14  Martin Jambor  <mjambor@suse.cz>
34453
34454         PR middle-end/46823
34455         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
34456
34457 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
34458
34459         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
34460         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
34461         * config/xtensa/xtensa.c (xtensa_libcall_value,
34462         xtensa_function_value_regno_p): New functions.
34463         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
34464
34465 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
34466
34467         PR c++/47213
34468         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
34469         PE specific hook.
34470         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
34471         New function prototype.
34472         * config/i386/winnt.c (i386_pe_assemble_visibility):
34473         Warn only if attribute was specified by user.
34474
34475 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
34476
34477         PR target/47251
34478         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
34479         floating point.
34480         (floatunsdidf2_fcfidu): Ditto.
34481
34482 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34483
34484         * config/s390/s390.c (print_operand_address): Replace 'error' with
34485         'output_operand_lossage'.
34486         (print_operand): Likewise.
34487
34488 2011-01-13  Jeff Law  <law@redhat.com>
34489
34490         PR rtl-optimization/39077
34491         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
34492         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
34493         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
34494         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
34495         * gcse.c (prune_insertions_deletions): New function.
34496         (compute_pre_data): Use it.
34497
34498 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
34499
34500         PR debug/PR46973
34501         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
34502         static function.
34503         (prune_unused_types_mark): Use it.
34504
34505 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
34506
34507         PR rtl-optimization/45352
34508         * sel-sched.c: Update copyright years.
34509         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
34510         in the advancing loop when we have issued issue_rate insns.
34511
34512 2011-01-12  Richard Henderson  <rth@redhat.com>
34513
34514         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
34515         (TARGET_MD_ASM_CLOBBERS): New.
34516
34517         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
34518         (TARGET_DELEGITIMIZE_ADDRESS): New.
34519
34520         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
34521         (clzsi2, *bsch): New patterns.
34522
34523         * config/mn10300/mn10300.md (INT): New mode iterator.
34524         (*mov<INT>_clr): New pattern, and peep2 to generate it.
34525
34526         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
34527         flag_split_wide_types.
34528
34529         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
34530         (mn10300_trampoline_init): Rewrite without a template, an immediate
34531         load and a direct branch.
34532         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
34533
34534 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
34535
34536         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
34537         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
34538         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
34539         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
34540
34541 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
34542
34543         PR debug/47209
34544         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
34545         of type.
34546
34547 2011-01-12  Jan Hubicka  <jh@suse.cz>
34548
34549         PR driver/47244
34550         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
34551         (PLUGIN_COND_CLOSE): New macro.
34552         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
34553
34554 2011-01-12  Richard Guenther  <rguenther@suse.de>
34555
34556         PR lto/47259
34557         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
34558         register variables in a MEM_REF.
34559
34560 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
34561
34562         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
34563         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
34564         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
34565         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
34566         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
34567         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
34568         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
34569         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
34570         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
34571         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
34572         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
34573         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
34574         * config/gnu-user.h: New.  Copied from linux.h.
34575         (LINUX_TARGET_STARTFILE_SPEC): Rename to
34576         GNU_USER_TARGET_STARTFILE_SPEC.
34577         (LINUX_TARGET_ENDFILE_SPEC): Rename to
34578         GNU_USER_TARGET_ENDFILE_SPEC.
34579         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
34580         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
34581         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
34582         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
34583         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
34584         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
34585         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
34586         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
34587         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
34588         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
34589         * config/arm/linux-eabi.h (CC1_SPEC): Use
34590         GNU_USER_TARGET_CC1_SPEC.
34591         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
34592         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
34593         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
34594         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
34595         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
34596         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
34597         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
34598         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
34599
34600 2011-01-12  Richard Guenther  <rguenther@suse.de>
34601
34602         PR other/46946
34603         * doc/invoke.texi (ffast-math): Document it is turned on
34604         with -Ofast.
34605
34606 2011-01-12  Jan Hubicka  <jh@suse.cz>
34607
34608         PR tree-optimization/47233
34609         * opts.c (common_handle_option): Disable ipa-reference with profile
34610         feedback.
34611
34612 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
34613
34614         * c-parser.c (c_parser_objc_at_property_declaration): Improved
34615         error message.
34616
34617 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
34618
34619         * c-parser.c (c_lex_one_token): Updated and reindented some
34620         comments.  No changes in code.
34621
34622 2011-01-11  Ian Lance Taylor  <iant@google.com>
34623
34624         * godump.c (go_output_var): Don't output the variable if there is
34625         already a type with the same name.
34626
34627 2011-01-11  Ian Lance Taylor  <iant@google.com>
34628
34629         * godump.c (go_format_type): Don't generate float80.
34630
34631 2011-01-11  Richard Henderson  <rth@redhat.com>
34632
34633         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
34634         declaration.  Rewrite for both speed and size.
34635         (mn10300_address_cost_1): Remove.
34636         (mn10300_register_move_cost): New.
34637         (mn10300_memory_move_cost): New.
34638         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
34639         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
34640         extensions, shifts, BSWAP, CLZ.
34641         (mn10300_wide_const_load_uses_clr): Remove.
34642         (TARGET_REGISTER_MOVE_COST): New.
34643         (TARGET_MEMORY_MOVE_COST): New.
34644         * config/mn10300/mn10300-protos.h: Update.
34645         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
34646
34647         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
34648         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
34649         * config/mn10300/mn10300-protos.h: Update.
34650         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
34651         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
34652         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
34653         (*test_int_bitfield, *test_byte_bitfield): Remove.
34654         (*bit_test, *subreg_bit_test): Remove.
34655         * config/mn10300/predicates.md (const_8bit_operand): Remove.
34656
34657         * config/mn10300/constraints.md ("c"): Rename from "A".
34658         ("A", "D"): New constraint letters.
34659         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
34660         (fmssf4, fnmasf4, fnmssf4): Likewise.
34661
34662         * config/mn10300/mn10300.md (isa): New attribute.
34663         (enabled): New attribute.
34664
34665         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
34666         (abssf2, negsf2): Define only for hardware fp.
34667         (sqrtsf2): Reformat.
34668         (addsf3, subsf3, mulsf3): Merge expander and insn.
34669
34670         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
34671         (DEBUGGER_AUTO_OFFSET): Remove.
34672         (DEBUGGER_ARG_OFFSET): Remove.
34673
34674         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
34675         Emit register stores with the same offsets as the hardware.
34676         (mn10300_store_multiple_operation): Don't check that the register
34677         save offsets are monotonic.
34678         * config/mn10300/mn10300-protos.h: Update.
34679
34680         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
34681
34682         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
34683         in terms of the value on the stack, not the MDR register.
34684
34685 2011-01-11  Jan Hubicka  <jh@suse.cz>
34686
34687         PR lto/45721
34688         PR lto/45375
34689         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
34690         (symbol_alias_set_destroy, symbol_alias_set_contains,
34691         propagate_aliases_backward): Declare.
34692         * lto-streamer-out.c (struct sets): New sturcture.
34693         (trivally_defined_alias): New function.
34694         (output_alias_pair_p): Rewrite.
34695         (output_unreferenced_globals): Fix output of alias pairs.
34696         (produce_symtab): Likewise.
34697         * ipa.c (function_and_variable_visibility): Set weak alias destination
34698         as needed in lto.
34699         * varasm.c (symbol_alias_set_t): Remove.
34700         (symbol_alias_set_destroy): Export.
34701         (propagate_aliases_forward, propagate_aliases_backward): New functions
34702         based on ...
34703         (compute_visible_aliases): ... this one; remove.
34704         (trivially_visible_alias): New
34705         (trivially_defined_alias): New.
34706         (remove_unreachable_alias_pairs): Rewrite.
34707         (finish_aliases_1): Reorganize code checking if alias is defined.
34708         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
34709         in LTO mode.
34710
34711 2011-01-11  Richard Guenther  <rguenther@suse.de>
34712
34713         PR tree-optimization/46076
34714         * tree-ssa.c (useless_type_conversion_p): Conversions from
34715         unprototyped to empty argument list function types are useless.
34716
34717 2011-01-11  Richard Guenther  <rguenther@suse.de>
34718
34719         PR middle-end/45235
34720         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
34721         volatile MEMs as MEM_READONLY_P.
34722
34723 2011-01-11  Richard Guenther  <rguenther@suse.de>
34724
34725         PR tree-optimization/47239
34726         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
34727
34728 2011-01-11  Jeff Law  <law@redhat.com>
34729
34730         PR tree-optimization/47086
34731         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
34732         IVs from statements that might throw.
34733
34734 2011-01-10  Jan Hubicka  <jh@suse.cz>
34735
34736         PR lto/45375
34737         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
34738
34739 2011-01-10  Jan Hubicka  <jh@suse.cz>
34740
34741         PR lto/45375
34742         * profile.c (read_profile_edge_counts): Ignore profile inconistency
34743         when correcting profile.
34744
34745 2011-01-10  Jan Hubicka  <jh@suse.cz>
34746
34747         PR lto/46083
34748         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
34749         DECL_FINI_PRIORITY.
34750         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
34751         Restore DECL_FINI_PRIORITY.
34752
34753 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34754
34755         * doc/gimple.texi: Fix quoting of multi-word return values in
34756         @deftypefn statements.  Ensure presence of return value.  Wrap
34757         overlong @deftypefn lines.
34758         (is_gimple_operand, is_gimple_min_invariant_address): Remove
34759         descriptions of removed functions.
34760         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
34761         of multi-word return value in @deftypefn statement.
34762
34763 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34764
34765         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
34766         (Conditional Expressions, Logical Operators)
34767         (Statement and operand traversals): Do not indent smallexample
34768         code.  Fix duplicate function argument in example.
34769
34770 2011-01-10  Jeff Law  <law@redhat.com>
34771
34772         PR tree-optimization/47141
34773         * ipa-split.c (split_function): Handle case where we are
34774         returning a value and the return block has a virtual operand phi.
34775
34776 2011-01-10  Jan Hubicka  <jh@suse.cz>
34777
34778         PR tree-optimization/47234
34779         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
34780         (pass_feedback_split_functions): Declare.
34781         * passes.c (init_optimization_passes): Add ipa-split as subpass of
34782         tree-profile.
34783         * ipa-split.c (gate_split_functions): Update comments; disable
34784         split-functions for profile_arc_flag and branch_probabilities.
34785         (gate_feedback_split_functions): New function.
34786         (execute_feedback_split_functions): New function.
34787         (pass_feedback_split_functions): New global var.
34788
34789 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
34790
34791         PR lto/46760
34792         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
34793         calling gimple_call_set_cannot_inline.
34794
34795 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
34796
34797         * config/darwin-sections.def: Remove unused section.
34798
34799 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
34800
34801         PR c++/47218
34802         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
34803
34804 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
34805
34806         PR objc/47232
34807         * c-parser.c (c_parser_declaration_or_fndef): Improved
34808         error message.
34809
34810 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
34811
34812         * config/i386/winnt.c (i386_pe_start_function): Make sure
34813         to switch back to function's section.
34814
34815 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
34816
34817         PR gcc/46902
34818         PR testsuite/46912
34819         * plugin.c: Move include of dlfcn.h from here...
34820         * system.h: ... to here.
34821
34822 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34823
34824         * doc/cpp.texi (C++ Named Operators): Fix markup for header
34825         file name.
34826         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
34827         two extra empty pages in PDF output.
34828
34829 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
34830
34831         PR objc/47078
34832         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
34833         for error recovery purposes behave as if it was not specified so
34834         that the default type is usd.
34835
34836 2011-01-07  Jan Hubicka  <jh@suse.cz>
34837
34838         PR tree-optmization/46469
34839         * ipa.c (function_and_variable_visibility): Clear needed flags on
34840         nodes with external decls; handle weakrefs merging correctly.
34841
34842 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
34843
34844         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
34845         not false.
34846
34847 2011-01-07  Jan Hubicka  <jh@suse.cz>
34848
34849         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
34850         and no longer claim that gold is required for linker plugin.
34851         * configure: Regenerate.
34852         * gcc.c (PLUGIN_COND): New macro.
34853         (LINK_COMMAND_SPEC): Use it.
34854         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
34855         * config.in (HAVE_LTO_PLUGIN): New.
34856         * configure.ac (--with-lto-plugin): New parameter; autodetect
34857         HAVE_LTO_PLUGIN.
34858
34859 2011-01-07  Jan Hubicka  <jh@suse.cz>
34860
34861         PR tree-optimization/46367
34862         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
34863         when we can update original.
34864         (cgraph_mark_inline_edge): Sanity check.
34865         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
34866
34867 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34868
34869         * config/spu/spu.h (ASM_COMMENT_START): Define.
34870
34871 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
34872
34873         PR driver/42445
34874         * gcc.c (%>S): New.
34875         (SWITCH_KEEP_FOR_GCC): Likewise.
34876         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
34877         (do_spec_1): Handle "%>".
34878
34879         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
34880
34881 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
34882
34883         PR target/47201
34884         * config/i386/i386.c (ix86_delegitimize_address): If
34885         simplify_gen_subreg fails, return orig_x.
34886
34887         PR bootstrap/47187
34888         * value-prof.c (gimple_stringop_fixed_value): Handle
34889         lhs of the call properly.
34890
34891 2011-01-07  Jan Hubicka  <jh@suse.cz>
34892
34893         PR lto/45375
34894         * lto-opt.c (lto_reissue_options): Set flag_shlib.
34895
34896 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
34897
34898         * target.def (function_switched_text_sections): New hook.
34899         * doc/tm.texi: Regenerated.
34900         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
34901         * final.c (default_function_switched_text_sections): New.
34902         (final_scan_insn): Call function_switched_text_sections when a
34903         mid-function section change occurs.
34904         * output.h (default_function_switched_text_sections): Declare.
34905         * config/darwin-protos.h (darwin_function_switched_text_sections):
34906         Likewise.
34907         * config/darwin.c (darwin_function_switched_text_sections): New.
34908         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
34909
34910 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
34911
34912         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
34913         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
34914         the secondary code fragment when outputting for DWARF == 2.
34915
34916 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
34917
34918         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
34919         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
34920         Remove.
34921         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
34922         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
34923
34924 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
34925
34926         PR debug/46704
34927         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
34928         when it is not empty.
34929
34930 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
34931
34932         Bobcat Enablement
34933         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
34934         (case ${target}): Add btver1.
34935         * config/i386/driver-i386.c (host_detect_local_cpu): Let
34936         -march=native recognize btver1 processors.
34937         * config/i386/i386-c.c (ix86_target_macros_internal): Add
34938         btver1 def_and_undef
34939         * config/i386/i386.c (struct processor_costs btver1_cost): New
34940         btver1 cost table.
34941         (m_BTVER1): New definition.
34942         (m_AMD_MULTIPLE): Includes m_BTVER1.
34943         (initial_ix86_tune_features): Add btver1 tune.
34944         (processor_target_table): Add btver1 entry.
34945         (static const char *const cpu_names): Add btver1 entry.
34946         (software_prefetching_beneficial_p): Add btver1.
34947         (ix86_option_override_internal): Add btver1 instruction sets.
34948         (ix86_issue_rate): Add btver1.
34949         (ix86_adjust_cost): Add btver1.
34950         * config/i386/i386.h (TARGET_BTVER1): New definition.
34951         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
34952         (enum processor_type): Add PROCESSOR_BTVER1.
34953         * config/i386/i386.md (define_attr "cpu"): Add btver1.
34954
34955 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34956
34957         PR target/43309
34958         * config/i386/i386.c (legitimize_tls_address)
34959         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
34960         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
34961         (tls_initial_exec_64_sun): New pattern.
34962
34963 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
34964
34965         * doc/invoke.texi (Overall Options): Improve wording and markup
34966         of the description of -wrapper.
34967
34968 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
34969
34970         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
34971         rdynamic, threads): New Driver options.
34972
34973 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34974
34975         PR target/38118
34976         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
34977         if coming from .tdata.
34978         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
34979
34980 2011-01-06  Jan Hubicka  <jh@suse.cz>
34981
34982         PR lto/47188
34983         * collect2.c (main): Do not enable LTOmode when plugin is active.
34984
34985 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34986
34987         PR other/45915
34988         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
34989         --version output if supported.
34990         * configure: Regenerate.
34991
34992 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
34993
34994         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
34995         Driver options.
34996
34997 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
34998
34999         PR c/47150
35000         * c-convert.c (convert): When converting a complex expression
35001         other than COMPLEX_EXPR to a different complex type, ensure
35002         c_save_expr is called instead of save_expr, unless in_late_binary_op.
35003         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
35004         when converting COMPLEX_TYPE.
35005
35006 2011-01-06  Ira Rosen  <irar@il.ibm.com>
35007
35008         PR tree-optimization/47139
35009         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
35010         only the last reduction value is used outside the loop.  Update
35011         documentation.
35012
35013 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
35014
35015         * config/rtems.opt: New.
35016         * config.gcc (*-*-rtems*): Use rtems.opt.
35017
35018 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
35019
35020         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
35021         processors do not support 3DNow instructions.
35022
35023 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35024
35025         * config/spu/spu.c (spu_option_override): Set parameter
35026         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
35027
35028 2011-01-05  Jan Hubicka  <jh@suse.cz>
35029
35030         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
35031         at the command line.
35032
35033 2011-01-05  Martin Jambor  <mjambor@suse.cz>
35034
35035         PR lto/47162
35036         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
35037         deltas on streamed outgoing edges.
35038         (output_node_opt_summary): Output info for outgoing edges only when
35039         the node is in new parameter set.
35040         (output_cgraph_opt_summary): New parameter set, passed to the two
35041         aforementioned functions.  Update its forward declaration and its
35042         callee too.
35043
35044 2011-01-05  Tom Tromey  <tromey@redhat.com>
35045
35046         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
35047         operator to c_finish_omp_atomic.
35048         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
35049         (build_unary_op): Update.
35050         (build_modify_expr): Update.
35051         (build_asm_expr): Update.
35052
35053 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35054
35055         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
35056         newly inserted insns.
35057         (pad_bb): Likewise.
35058         (spu_emit_branch_hint): Likewise.
35059         (insert_hbrp_for_ilb_runout): Likewise.
35060         (spu_machine_dependent_reorg): Call df_finish_pass after
35061         schedule_insns returns.
35062
35063 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35064
35065         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
35066
35067 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
35068
35069         PR tree-optimization/47005
35070         * tree-sra.c (struct access): Add 'non_addressable' bit.
35071         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
35072         (decide_one_param_reduction): Return 0 if the parameter is passed by
35073         reference and one of the accesses in the group is non_addressable.
35074
35075 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
35076
35077         PR tree-optimization/47056
35078         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
35079         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
35080         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
35081
35082 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
35083
35084         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
35085         initializer.  Skip view conversions from aggregate types.
35086
35087 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
35088
35089         PR bootstrap/47055
35090         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
35091
35092 2011-01-04  Philipp Thomas  <pth@suse.de>
35093
35094         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
35095         obvious typo.
35096
35097 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35098
35099         * function.c (thread_prologue_and_epilogue_insns): Do not crash
35100         on empty epilogue sequences.
35101
35102 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
35103
35104         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
35105         non-static): New Driver options.
35106
35107 2011-01-04  Jie Zhang  <jie@codesourcery.com>
35108
35109         PR driver/47137
35110         * gcc.c (default_compilers[]): Set combinable field to 0
35111         for all assembly languages.
35112
35113 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
35114
35115         * config/mips/loongson3a.md: New file.
35116         * config/mips/mips.md: Include loongson3a.md.
35117         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
35118         TUNE_LOONGSON_3A.
35119
35120 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
35121
35122         PR middle-end/47017
35123         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
35124         instead of convert_memory_address_addr_space on the base expression.
35125
35126 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35127
35128         * config/spu/spu.c (spu_option_override): Update error text
35129         for bad -march= / -mtune= values.
35130
35131 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35132
35133         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
35134         if branch-hint optimization will be performed.
35135
35136 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
35137
35138         PR tree-optimization/47148
35139         * ipa-split.c (split_function): Convert arguments to
35140         DECL_ARG_TYPE if possible.
35141
35142         PR tree-optimization/47155
35143         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
35144         when computing uns.
35145
35146         PR rtl-optimization/47157
35147         * combine.c (try_combine): If undobuf.other_insn becomes
35148         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
35149         and set *new_direct_jump_p too.
35150
35151 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
35152
35153         PR tree-optimization/47021
35154         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
35155
35156 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
35157
35158         * gcc.c (process_command): Update copyright notice dates.
35159         * gcov.c (print_version): Likewise.
35160         * gcov-dump.c (print_version): Likewise.
35161         * mips-tfile.c (main): Likewise.
35162         * mips-tdump.c (main): Likewise.
35163
35164 2011-01-03  Martin Jambor  <mjambor@suse.cz>
35165
35166         PR tree-optimization/46801
35167         * tree-sra.c (type_internals_preclude_sra_p): Check whether
35168         aggregate fields start at byte boundary instead of the bit-field flag.
35169
35170 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
35171
35172         PR driver/47137
35173         * gcc.c (main): Revert revision 168407.
35174
35175 2011-01-03  Martin Jambor  <mjambor@suse.cz>
35176
35177         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
35178
35179 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35180
35181         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
35182         vector optab to expand vector/scalar shift, update gimple to vector.
35183
35184 2011-01-03  Martin Jambor  <mjambor@suse.cz>
35185
35186         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
35187         a thunk.
35188
35189 2011-01-03  Martin Jambor  <mjambor@suse.cz>
35190
35191         PR tree-optimization/46984
35192         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
35193         HOST_WIDE_INT.
35194         (cgraph_create_indirect_edge): Fixed line length.
35195         (cgraph_indirect_call_info): Declare.
35196         (cgraph_make_edge_direct) Update declaration.
35197         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
35198         (cgraph_create_indirect_edge): Use it.
35199         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
35200         callees.
35201         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
35202         the new thunk_delta representation.
35203         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
35204         HOST_WIDE_INT.
35205         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
35206         (ipa_read_indirect_edge_info): Likewise.
35207         * lto-cgraph.c (output_edge_opt_summary): New function.
35208         (output_node_opt_summary): Call it on all outgoing edges.
35209         (input_edge_opt_summary): New function.
35210         (input_node_opt_summary): Call it on all outgoing edges.
35211
35212 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
35213
35214         PR driver/47137
35215         * gcc.c (main): Don't check have_o when settting combine_inputs.
35216
35217 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
35218
35219         * regrename.c: Add general comment describing the pass.
35220         (struct du_head): Remove 'length' field.
35221         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
35222         (regrename_optimize): Do not sort chains.  Rework comments, add others.
35223         Force renaming to the preferred class (if any) in the first pass and do
35224         not consider registers that belong to it in the second pass.
35225         (create_new_chain): Do not set 'length' field.
35226         (scan_rtx_reg): Likewise.
35227
35228 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
35229
35230         PR tree-optimization/47140
35231         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
35232         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
35233         to bit_value_binop.
35234
35235         PR rtl-optimization/47028
35236         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
35237         parm_birth_insn instead of at the beginning of first bb.
35238
35239 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
35240
35241         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
35242         Remove the word "see" before "@pxref".
35243         * doc/rtl.texi: Remove the word "see" before "@pxref".
35244
35245 2011-01-01  Jan Hubicka  <jh@suse.cz>
35246
35247         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
35248         memory.
35249
35250 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
35251
35252         PR target/38662
35253         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
35254
35255 \f
35256 Copyright (C) 2011 Free Software Foundation, Inc.
35257
35258 Copying and distribution of this file, with or without modification,
35259 are permitted in any medium without royalty provided the copyright
35260 notice and this notice are preserved.