OSDN Git Service

2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2
3         PR c++/50608
4         * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
5         to fold_offsetof.
6         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
7
8 2011-11-04  Alan Modra  <amodra@gmail.com>
9
10         * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
11         * print-rtl.c (print_rtx): Don't segfault on negative regno.
12
13 2011-11-04  David S. Miller  <davem@davemloft.net>
14
15         PR target/49965
16         * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
17         fact that sparc_emit_float_lib_cmp modifies the comparison in
18         operands[1].
19
20 2011-11-04  Ralf Corsépius <ralf.corsepius@rtems.org>
21
22         * config/lm32/t-rtems: New.
23         * config.gcc (lm32-*-rtems*): Add t-rtems.
24
25 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
26
27         PR target/50979
28         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
29
30 2011-11-04  Jiangning Liu  <jiangning.liu@arm.com>
31
32         PR rtl-optimization/38644
33         * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
34         for epilogue having stack adjustment.
35
36 2011-11-04  Georg-Johann Lay  <avr@gjlay.de>
37
38         PR target/50931
39         * config/avr/avr-modes.def: New file defining PSImode.
40         * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
41         __UINT24_MAX__): New built-in defines.
42         * config/avr/avr.md (adjust_len): Add tstpsi, mov24,  reload_in24,
43         ashlpsi, ashrpsi, lshrpsi.
44         (QISO, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
45         (MOVMODE): New mode iterator.
46         (movpsi): New expander.
47         (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
48         (*reload_inpsi, *movpsi): New insns.
49         (*reload_inpsi): New RTL peephole.
50         (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
51         *addpsi3_sign_extend.hi): New insns.
52         (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
53         *subpsi3_sign_extend.hi): New insns.
54         (divmodpsi4, udivmodpsi4): New define insn-and-split.
55         (*divmodpsi4_call, *udivmodpsi4_call): New insns.
56         (andpsi3, iorpsi3, xorpsi3): New insns.
57         (*rotlpsi2.1, *rotlpsi2.23): New insns.
58         (*rotw<mode>): Insn condition only allow even-sized modes.
59         (*rotb<mode>): Insn condition allows odd-sized modes.
60         (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
61         (negpsi2, one_cmplpsi2): New insns.
62         (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
63         (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
64         insn-and-splits.
65         (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
66         (cbranchpsi4): New expander.
67         * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
68         * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
69         avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
70         avr_out_reload_inpsi): New prototypes.
71
72         * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
73         (avr_scalar_mode_supported_p): ...this new static function.
74         (avr_asm_len): Always return "".
75         (avr_out_load_psi, avr_out_store_psi): New static functions.
76         (avr_out_movpsi, avr_out_reload_inpsi): New functions.
77         (avr_out_tstpsi): New function.
78         (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
79         (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
80         (avr_simplify_comparison_p): Ditto.
81         (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
82         ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
83         ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
84         (avr_rtx_costs_1): Report PSI costs.
85         (avr_libcall_value): Handle odd-sized parameters.
86         (avr_init_builtin_int24): New static function to define built-in
87         24-bit types __int24 and __uint24.
88         (avr_init_builtins): Use it.
89
90 2011-11-04  Thomas Doerfler <thomas.doerfler@embedded-brains.de>
91
92         PR target/50989
93         * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
94         support for VFP floating point model.
95
96 2011-11-04  Tristan Gingold  <gingold@adacore.com>
97
98         * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
99
100 2011-11-04  Ira Rosen  <ira.rosen@linaro.org>
101
102         Unrevert:
103         2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
104
105         PR tree-optimization/50730
106         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
107         analysis if encountered unsupported data-ref.
108
109 2011-11-04  Jakub Jelinek  <jakub@redhat.com>
110
111         * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
112         function.
113         * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
114         New prototype.
115         * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
116         For floatunsv8siv8sf2 require TARGET_AVX2.
117
118         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
119         XORP argument.  Subtract 0x1p31 instead of 0x1p32.  Use normal
120         signalling comparison instead of non-signalling.  Store into
121         *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
122         subtracted and 0 otherwise.
123         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
124         Adjust prototype.
125         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
126         already for TARGET_SSE2.  Xor in vector initialized by
127         ix86_expand_adjust_ufix_to_sfix_si at the end.
128         (vec_pack_ufix_trunc_<mode>): Likewise.
129
130         * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
131         not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
132         WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
133         vectorizable_type_demotion and vectorizable_type_promotion did.
134         Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
135         is {,un}signed {char,short}.
136         (vect_create_vectorized_demotion_stmts): Fix comment typo.  For
137         recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
138         Push vec_dest back to the vec_dsts vector at the end.
139         (vect_create_vectorized_promotion_stmts): Don't recurse, do just
140         one step.  Removed multi_step_cvt, vec_dsts, slp_node and
141         prev_stmt_info arguments, add vec_dest argument.  Push always
142         into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
143         with vec_tmp at the end after freeing old *vec_oprnd0 vector.
144         (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
145         (vect_analyze_stmt): Don't call vectorizable_type_demotion and
146         vectorizable_type_promotion.  Call vectorizable_conversion even
147         for SLP bb vectorization.
148         (vect_transform_stmt): Call vectorizable_conversion instead of
149         vectorizable_type_demotion and vectorizable_type_promotion.
150         (supportable_widening_operation): Clear *multi_step_cvt first,
151         simplify c1/c2 computation, free *interm_types vector on failure.
152         (supportable_narrowing_operation): Clear *multi_step_cvt first,
153         free *interm_types vector on failure, handle multi-step
154         FIX_TRUNC_EXPR.
155
156 2011-11-04  Tristan Gingold  <gingold@adacore.com>
157
158         * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
159         argument.  Conditionally generate crash debug info.  Adjust
160         for alpha_funcs_tree removal.
161         (machine_function): Add links field.
162         (alpha_start_function): Conditionally generate crash debug info.
163         (alpha_end_function): Adjust call to alpha_write_linkage.
164         (alpha_funcs): Remove.
165         (links_kind): Remove.
166         (alpha_links): Remove num, target and lkind field.  Add func field.
167         (alpha_links_tree): Remove.
168         (alpha_funcs_tree): Remove.
169         (alpha_need_linkage): Remove.
170         (alpha_use_linkage): Change prototype.  Adjust.
171         (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
172         Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
173         * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
174         (alpha_need_linkage): Remove.
175         * config/alpha/alpha.md: Update calls to alpha_use_linkage.
176         Adjust calls to alpha_need_linkage.
177
178 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
179
180         * sched-vis.c (print_value): Handle STRICT_LOW_PART.
181
182 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
183
184         * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
185         rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
186         btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
187
188 2011-11-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
189
190         PR target/50978
191         * config/arm/t-bpabi: New file.
192         * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
193         arm*-*-linux-*eabi.
194         (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
195         arm*-*-uclinux*eabi.
196         (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
197         for arm*-*-eabi*.
198
199 2011-11-03  Michael Matz  <matz@suse.de>
200
201         PR bootstrap/50857
202         * configure.ac: Check for -fno-exceptions -fno-rtti.
203         * configure: Regenerate.
204         * Makefile.in (NOEXCEPTION_FLAGS): New flag.
205         (ALL_CXXFLAGS): Use it.
206
207 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
208
209         * config/i386/i386.md: Use {} for multi-line preparation statements.
210
211 2011-11-03  Eric Botcazou  <ebotcazou@adacore.com>
212
213         * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
214         (movtf_insn_sp32): ...this.
215         (movtf_insn_sp64_no_fpu): Consolidate into...
216         (movtf_insn_sp64): ...this.
217         (movtf_insn_sp64_hq): Do not test TARGET_FPU.
218         * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
219
220 2011-11-03  Tristan Gingold  <gingold@adacore.com>
221
222         * config/vms/vms.c (vms_patch_builtins): Fix typo.
223
224 2011-11-03  Richard Guenther  <rguenther@suse.de>
225
226         PR lto/44965
227         * lto-opts.c: Re-implement.
228         * lto-streamer.h (lto_register_user_option): Remove.
229         (lto_read_file_options): Likewise.
230         (lto_reissue_options): Likewise.
231         (lto_clear_user_options): Likewise.
232         (lto_clear_file_options): Likewise.
233         * opts-global.c (post_handling_callback): Remove.
234         (set_default_handlers): Do not set post_handling_callback.
235         (decode_options): Remove LTO specific code.
236         * lto-wrapper.c (merge_and_complain): New function.
237         (run_gcc): Read all input file options and
238         prepend a merged set before the linker driver options.
239         * gcc.c (driver_post_handling_callback): Remove.
240         (set_option_handlers): Do not set post_handling_callback.
241         * opts-common.c (handle_option): Do not call post_handling_callback.
242         * opts.h (struct cl_option_handlers): Remove post_handling_callback.
243
244 2011-11-03  Richard Guenther  <rguenther@suse.de>
245
246         * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
247
248 2011-11-03  Martin Jambor  <mjambor@suse.cz>
249
250         * ipa-prop.c (type_change_info): New fields offset, object,
251         known_current_type and multiple_types_encountered.
252         (extr_type_from_vtbl_ptr_store): New function.
253         (check_stmt_for_type_change): Use it, set multiple_types_encountered if
254         the result is different from the previous one.
255         (detect_type_change): Renamed to detect_type_change_1. New parameter
256         comp_type.  Set up new fields in tci, build known type jump
257         functions if the new type can be identified.
258         (detect_type_change): New function.
259         * tree.h (DECL_CONTEXT): Comment new use.
260
261 2011-11-03  Richard Guenther  <rguenther@suse.de>
262
263         PR lto/48217
264         * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
265         decode an encoded literal '.
266
267 2011-11-03  Tristan Gingold  <gingold@adacore.com>
268
269         * collect2.c (main): Add support of -f (response file) on AIX.
270
271 2011-11-03  Ira Rosen  <ira.rosen@linaro.org>
272
273         PR tree-optimization/50912
274         * tree-vectorizer.h (slp_void_p): New.
275         (struct _slp_tree): Replace left and right with children.  Update
276         documentation.
277         (struct _slp_oprnd_info): New.
278         (vect_get_vec_defs): Declare.
279         (vect_get_slp_defs): Update arguments.
280         * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
281         vect_get_vec_defs instead of vect_get_slp_defs.
282         (vectorizable_reduction): Likewise.
283         * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
284         Update call to vect_get_slp_defs.
285         (vectorizable_conversion): Update call to vect_get_vec_defs.
286         (vectorizable_assignment, vectorizable_shift,
287         vectorizable_operation): Likewise.
288         (vectorizable_type_demotion): Call vect_get_vec_defs instead of
289         vect_get_slp_defs.
290         (vectorizable_type_promotion, vectorizable_store): Likewise.
291         (vect_analyze_stmt): Fix typo.
292         * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
293         (vect_print_slp_tree, vect_mark_slp_stmts,
294         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
295         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
296         vect_schedule_slp_instance): Likewise.
297         (vect_create_new_slp_node): New.
298         (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
299         (vect_get_and_check_slp_defs): Pass information about defs using
300         oprnds_info, allow any number of operands.
301         (vect_build_slp_tree): Likewise.  Update calls to
302         vect_get_and_check_slp_defs.  Fix comments.
303         (vect_analyze_slp_instance): Move node creation to
304         vect_create_new_slp_node.
305         (vect_get_slp_defs): Allow any number of operands.
306
307 2011-11-02  Peter Bergner  <bergner@vnet.ibm.com>
308             Iain Sandoe  <iains@gcc.gnu.org>
309
310         * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
311         (get_ppc476_thunk_name): Use it.
312         (rs6000_code_end): Likewise.
313         (macho_branch_islands): Fix typo.
314
315 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
316             Jason Merrill  <jason@redhat.com>
317
318         PR c++/50810
319         * configure.ac: Add -Wno-narrowing to warning options.
320         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
321
322 2011-11-02  Eric Botcazou  <ebotcazou@adacore.com>
323
324         PR target/50945
325         * config/sparc/sparc.md (movsf_insn): Reindent constraints.
326         (movdf_insn_sp32): Likewise.  Remove redundant G constraint.
327         (movdf_insn_sp64): Likewise.
328         (DFmode splitter): Do not test TARGET_FPU.
329         (movtf_insn_sp32): Reindent constraints.
330         (movtf_insn_sp32_no_fpu): Likewise.
331         (movtf_insn_sp64): Likewise.
332         (movtf_insn_sp64_hq): Likewise.
333         (movtf_insn_sp64_no_fpu): Likewise.
334
335 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
336
337         PR c++/50956
338         * builtins.c (fold_builtin_memchr): Fix cast.
339
340 2011-11-02  Teresa Johnson  <tejohnson@google.com>
341
342         * config/i386/predicates.md (promotable_binary_operator): Add minus
343         to the list of promotable operators.
344
345 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
346
347         * gthr-single.h, gthr.h: Move to ../libgcc.
348         * gthr-aix.h: Move to ../libgcc/config/rs6000.
349         * gthr-dce.h: Move to ../libgcc/config/pa.
350         * gthr-lynx.h: Move to ../libgcc/config.
351         * gthr-mipssde.h: Move to ../libgcc/config/mips.
352         * gthr-posix.h: Move to ../libgcc/config.
353         * gthr-rtems.h: Likewise.
354         * gthr-tpf.h: Move to ../libgcc/config/s390.
355         * gthr-vxworks.h: Move to ../libgcc/config.
356         * gthr-win32.h: Move to ../libgcc/config/i386.
357         * configure.ac (gthread_flags): Remove
358         (gthr-default.h): Don't create.
359         (thread_file): Don't substitute.
360         * configure: Regenerate.
361         * Makefile.in (GCC_THREAD_FILE): Remove.
362         (GTHREAD_FLAGS): Remove.
363         (libgcc.mvars): Remove GTHREAD_FLAGS.
364         * config/t-vxworks (EXTRA_HEADERS): Remove.
365
366 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
367             Paolo Bonzini  <bonzini@gnu.org>
368
369         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
370         * configure: Regenerate.
371         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
372         (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
373         (libgcc_tm.h, cs-libgcc_tm.h): Remove.
374         (clean): Remove libgcc_tm.h
375         * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
376         * config.gcc (libgcc_tm_file): Remove.
377         (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
378         (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
379         (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
380         (avr-*-rtems*): Likewise.
381         (avr-*-*): Likewise.
382         (frv-*-elf): Likewise.
383         (frv-*-*linux*): Likewise.
384         (h8300-*-rtems*): Likewise.
385         (h8300-*-elf*): Likewise.
386         (i[34567]86-*-darwin*): Likewise.
387         (x86_64-*-darwin*): Likewise.
388         (rx-*-elf*): Likewise.
389         (tic6x-*-elf): Likewise.
390         (tic6x-*-uclinux): Likewise.
391         (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
392
393 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
394
395         * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
396         (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
397         (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
398         (INCLUDES_FOR_TARGET): Remove.
399         (LIBGCC2_CFLAGS): Don't export.
400         (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
401         Remove.
402         (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
403         (libgcc.mvars): Likewise.
404         Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
405         LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
406         TARGET_LIBGCC2_CFLAGS.
407         Emit GTHREAD_FLAGS.
408         * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
409         * config/darwin-64.c: Move to ../libgcc/config.
410         * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
411         config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
412         config/udivmodsi4.c: Move to ../libgcc/config.
413         * config/gthr-posix.c: Move to ../libgcc/config/alpha.
414         * config/memcmp.c, config/memcpy.c, config/memmove.c,
415         config/memset.c: Move to ../libgcc/config.
416         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
417         * config/t-freebsd: Remove.
418         * config/t-freebsd-thread: Move to ../libgcc/config.
419         * config/t-libgcc-pic: Move to ../libgcc/config.
420         * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
421         * config/t-linux: Remove.
422         * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
423         Remove.
424         * config/t-openbsd-thread: Move to ../libgcc/config.
425         * config/t-rtems (LIBGCC2_INCLUDES): Remove.
426         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
427         * config/t-svr4: Remove.
428         * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
429         (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
430         * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
431         * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
432         * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
433         * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
434         * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
435         * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
436         config/arm/fp16.c, config/arm/linux-atomic.c,
437         config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
438         * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
439         (TARGET_LIBGCC2_CFLAGS): Remove.
440         * config/arm/t-bpabi, config/arm/t-linux: Remove.
441         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
442         (LIB2FUNCS_STATIC_EXTRA): Remove.
443         * config/arm/t-netbsd: Remove.
444         * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
445         (TARGET_LIBGCC2_CFLAGS): Remove.
446         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
447         * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
448         (TARGET_LIBGCC2_CFLAGS): Remove.
449         * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
450         (LIBGCC, INSTALL_LIBGCC): Remove.
451         * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
452         * config/bfin/t-bfin-linux: Likewise.
453         * config/bfin/t-bfin-uclinux: Likewise.
454         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
455         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
456         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
457         config/c6x/ltf.c: Move to ../libgcc/config/c6x.
458         * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
459         * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
460         * config/cris/arit.c: Move to ../libgcc/config/cris.
461         * config/cris/cris_abi_symbol.c: Remove.
462         * config/cris/cris.h: Remove obsolete comment.
463         * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
464         * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
465         ($(LIB2FUNCS_EXTRA)): Remove.
466         * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
467         (LIBGCC): Remove.
468         * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
469         * config/fr30/t-fr30: Remove.
470         * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
471         config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
472         config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
473         to ../libgcc/config/frv.
474         * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
475         (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
476         (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
477         * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
478         * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
479         config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
480         config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
481         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
482         (LIBGCC, INSTALL_LIBGCC): Remove.
483         * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
484         * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
485         * config/i386/t-cygwin: Remove.
486         * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
487         (LIB2FUNCS_EXCLUDE): Remove.
488         * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
489         (LIBGCC, INSTALL_LIBGCC): Remove.
490         * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
491         * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
492         * config/i386/t-mingw-w32: Likewise.
493         * config/i386/t-mingw-w64: Likewise.
494         * config/i386/t-openbsd: Likewise.
495         * config/i386/t-nto: Remove.
496         * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
497         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
498         (quadlib.c): Remove.
499         * config/ia64/t-ia64: Remove comment.
500         * config/iq2000/lib2extra-funcs.c: Move to
501         ../libgcc/config/iq2000/lib2funcs.c.
502         * config/iq2000/t-iq2000: Remove.
503         * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
504         * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
505         * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
506         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
507         * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
508         (INSTALL_LIBGCC): Remove.
509         * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
510         * config/m68k/t-floatlib: Remove.
511         * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
512         * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
513         Fix typo.
514         (LIBGCC, INSTALL_LIBGCC): Remove.
515         * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
516         * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
517         * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
518         * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
519         (INSTALL_LIBGCC): Remove.
520         * config/mips/t-isa3264: Likewise.
521         * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
522         * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
523         (INSTALL_LIBGCC): Remove.
524         * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
525         * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
526         (INSTALL_LIBGCC): Remove.
527         * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
528         (LIB2FUNCS_STATIC_EXTRA): Remove.
529         * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
530         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
531         * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
532         * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
533         ../libgcc/config/pa.
534         * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
535         * config/pa/quadlib.c: Move to ../libgcc/config/pa.
536         * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
537         * config/pa/t-linux, config/pa/t-linux64: Remove.
538         * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
539         config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
540         * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
541         Remove.
542         * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
543         * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
544         (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
545         * config/rs6000/crtresfpr.asm: Move to
546         ../libgcc/config/rs6000/crtresfpr.S.
547         * config/rs6000/crtresgpr.asm: Move to
548         ../libgcc/config/rs6000/crtresgpr.S.
549         * config/rs6000/crtresxfpr.asm: Move to
550         ../libgcc/config/rs6000/crtresxfpr.S.
551         * config/rs6000/crtresxgpr.asm: Move to
552         ../libgcc/config/rs6000/crtresxgpr.S.
553         * config/rs6000/crtsavfpr.asm: Move to
554         ../libgcc/config/rs6000/crtsavfpr.S.
555         * config/rs6000/crtsavgpr.asm: Move to
556         ../libgcc/config/rs6000/crtsavgpr.S.
557         * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
558         * config/rs6000/darwin-fpsave.asm: Move to
559         ../libgcc/config/rs6000/darwin-fpsave.S.
560         * config/rs6000/darwin-gpsave.asm: Move to
561         ../libgcc/config/rs6000/darwin-gpsave.S.
562         * config/rs6000/darwin-tramp.asm: Move to
563         ../libgcc/config/rs6000/darwin-tramp.S.
564         * config/rs6000/darwin-vecsave.asm: Move to
565         ../libgcc/config/rs6000/darwin-vecsave.S.
566         * config/rs6000/darwin-world.asm: Move to
567         ../libgcc/config/rs6000/darwin-world.S.
568         * config/rs6000/e500crtres32gpr.asm: Move to
569         ../libgcc/config/rs6000/e500crtres32gpr.S.
570         * config/rs6000/e500crtres64gpr.asm: Move to
571         ../libgcc/config/rs6000/e500crtres64gpr.S.
572         * config/rs6000/e500crtres64gprctr.asm: Move to
573         ../libgcc/config/rs6000/e500crtres64gprctr.S.
574         * config/rs6000/e500crtrest32gpr.asm: Move to
575         ../libgcc/config/rs6000/e500crtrest32gpr.S.
576         * config/rs6000/e500crtrest64gpr.asm: Move to
577         ../libgcc/config/rs6000/e500crtrest64gpr.S.
578         * config/rs6000/e500crtresx32gpr.asm: Move to
579         ../libgcc/config/rs6000/e500crtresx32gpr.S.
580         * config/rs6000/e500crtresx64gpr.asm: Move to
581         ../libgcc/config/rs6000/e500crtresx64gpr.S.
582         * config/rs6000/e500crtsav32gpr.asm: Move to
583         ../libgcc/config/rs6000/e500crtsav32gpr.S.
584         * config/rs6000/e500crtsav64gpr.asm: Move to
585         ../libgcc/config/rs6000/e500crtsav64gpr.S.
586         * config/rs6000/e500crtsav64gprctr.asm: Move to
587         ../libgcc/config/rs6000/e500crtsav64gprctr.S.
588         * config/rs6000/e500crtsavg32gpr.asm: Move to
589         ../libgcc/config/rs6000/e500crtsavg32gpr.S.
590         * config/rs6000/e500crtsavg64gpr.asm: Move to
591         ../libgcc/config/rs6000/e500crtsavg64gpr.S.
592         * config/rs6000/e500crtsavg64gprctr.asm: Move to
593         ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
594         * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
595         * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
596         (TARGET_LIBGCC2_CFLAGS): Remove.
597         * config/rs6000/t-aix52: Likewise.
598         * config/rs6000/t-darwin: Remove.
599         * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
600         (LIB2FUNCS_EXTRA): Remove.
601         * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
602         * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
603         * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
604         (INSTALL_LIBGCC): Remove.
605         * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
606         (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
607         (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
608         (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
609         ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
610         ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
611         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
612         (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
613         * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
614         * config/rs6000/t-vxworks: Remove comment.
615         * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
616         * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
617         * config/sh/linux-atomic.asm: Move to
618         ../libgcc/config/sh/linux-atomic.S.
619         * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
620         * config/sh/t-netbsd: Remove.
621         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
622         Remove.
623         * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
624         * config/sparc/t-leon: Likewise.
625         * config/sparc/t-leon3: Likewise.
626         * config/sparc/t-linux64: Likewise.
627         * config/sparc/t-netbsd64: Fix typo.
628         Remove comment.
629         * config/spu/divmodti4.c, config/spu/divv2df3.c,
630         config/spu/float_disf.c, config/spu/float_unsdidf.c,
631         config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
632         config/spu/mfc_multi_tag_release.c,
633         config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
634         config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
635         config/spu/multi3.c: Move to ../libgcc/config/spu.
636         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
637         (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
638         (INSTALL_LIBGCC): Remove.
639         * config/stormy16/stormy16-lib2.c: Move to
640         ../libgcc/config/stormy16/lib2.c.
641         * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
642         ../libgcc/config/stormy16/ashlsi3.c.
643         * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
644         ../libgcc/config/stormy16/ashrsi3.c.
645         * config/stormy16/stormy16-lib2-clzhi2.c: Move to
646         ../libgcc/config/stormy16/clzhi2.c.
647         * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
648         ../libgcc/config/stormy16/cmpsi2.c.
649         * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
650         ../libgcc/config/stormy16/ctzhi2.c.
651         * config/stormy16/stormy16-lib2-divsi3.c: Move to
652         ../libgcc/config/stormy16/divsi3.c.
653         * config/stormy16/stormy16-lib2-ffshi2.c: Move to
654         ../libgcc/config/stormy16/ffshi2.c.
655         * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
656         ../libgcc/config/stormy16/lshrsi3.c.
657         * config/stormy16/stormy16-lib2-modsi3.c: Move to
658         ../libgcc/config/stormy16/modsi3.c.
659         * config/stormy16/stormy16-lib2-parityhi2.c: Move to
660         ../libgcc/config/stormy16/parityhi2.c.
661         * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
662         ../libgcc/config/stormy16/popcounthi2.c.
663         * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
664         ../libgcc/config/stormy16/ucmpsi2.c.
665         * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
666         ../libgcc/config/stormy16/udivmodsi4.c.
667         * config/stormy16/stormy16-lib2-udivsi3.c: Move to
668         ../libgcc/config/stormy16/udivsi3.c.
669         * config/stormy16/stormy16-lib2-umodsi3.c: Move to
670         ../libgcc/config/stormy16/umodsi3.c.
671         * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
672         * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
673         * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
674         * config/xtensa/t-elf: Remove.
675         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
676         * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
677         from tmake_file.
678         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
679         *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
680         (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
681         (*-*-openbsd*): Likewise.
682         Remove t-openbsd-thread for posix threads.
683         (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
684         (alpha*-*-freebsd*): Likewise.
685         (alpha*-*-netbsd*): Likewise.
686         (alpha*-*-openbsd*): Likewise.
687         (alpha64-dec-*vms*): Likewise.
688         (alpha*-dec-*vms*): Likewise.
689         (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
690         (arm*-*-linux*): Remove t-linux from tmake_file.
691         Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
692         (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
693         arm*-*-uclinux*eabi.
694         (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
695         tmake_file for arm*-*-eabi*.
696         (fr30-*-elf): Remove tmake_file.
697         (hppa*64*-*-linux*): Remove tmake_file.
698         (hppa*-*-linux*): Likewise.
699         (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
700         tmake_file.
701         (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
702         (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
703         tmake_file.
704         (i[34567]86-*-elf*): Remove tmake_file.
705         (x86_64-*-elf*): Likewise.
706         (i[34567]86-*-nto-qnx*): Likewise.
707         (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
708         (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
709         from tmake_file if using win32 threads.
710         (iq2000*-*-elf*): Remove tmake-file.
711         (microblaze*-linux*): Likewise.
712         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
713         (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
714         (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
715         (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
716         sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
717         (xtensa*-*-elf*): Remove tmake_file.
718
719 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
720
721         * Makefile.in (LIB1ASMSRC): Don't export.
722         (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
723         * config/arm/arm.c: Update lib1funcs.asm filename.
724         * config/arm/linux-eabi.h: Likewise.
725         * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
726         config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
727         ../libgcc/config/arm.
728         * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
729         * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
730         * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
731         * config/arm/t-bpabi: Likewise.
732         * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
733         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
734         * config/arm/t-strongarm-elf: Likewise.
735         * config/arm/t-symbian: Likewise.
736         * config/arm/t-vxworks: Likewise.
737         * config/arm/t-wince-pe: Likewise.
738         * config/avr/libgcc.S: Move to ../libgcc/config/avr.
739         * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
740         * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
741         * config/bfin/t-bfin: Remove.
742         * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
743         * config/bfin/t-bfin-linux: Likewise.
744         * config/bfin/t-bfin-uclinux: Likewise.
745         * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
746         * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
747         * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
748         * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
749         * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
750         * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
751         * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
752         * config/h8300/lib1funcs.asm: Move to
753         ../libgcc/config/h8300/lib1funcs.S.
754         * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
755         * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
756         * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
757         * config/i386/t-interix: Likewise.
758         * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
759         * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
760         * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
761         * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
762         * config/m32c/m32c.c: Update m32c-lib1.S filename.
763         * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
764         * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
765         * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
766         * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
767         * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
768         * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
769         * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
770         * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
771         * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
772         * config/mips/mips16.S: Move to ../libgcc/config/mips.
773         * config/mips/t-libgcc-mips16: Remove.
774         * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
775         * config/pa/milli64.S: Move to ../libgcc/config/pa.
776         * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
777         * config/pa/t-linux64: Likewise.
778         * config/picochip/libgccExtras/fake_libgcc.asm: Move to
779         ../libgcc/config/picochip/lib1funcs.S.
780         * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
781         * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
782         * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
783         * config/sh/sh.h: Update lib1funcs.asm filename.
784         * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
785         * config/sh/t-netbsd: Likewise.
786         * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
787         Remove.
788         * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
789         * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
790         * config/sparc/lb1spl.asm: Remove.
791         * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
792         * config/sparc/t-leon: Likewise.
793         * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
794         * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
795         * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
796         * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
797         * config/vax/t-linux: Remove.
798         * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
799         ../libgcc/config/xtensa.
800         * config/xtensa/lib1funcs.asm: Move to
801         ../libgcc/config/xtensa/lib1funcs.S.
802         * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
803         * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
804         (bfin*-*): Likewise.
805         (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
806         mips/t-libgcc-mips16 from tmake_file.
807         (mips*-*-linux*): Likewise.
808         (mips*-sde-elf*): Likewise.
809         (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
810         (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
811         (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
812         (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
813         (mips-*-elf*, mipsel-*-elf*): Likewise.
814         (mips64-*-elf*, mips64el-*-elf*): Likewise.
815         (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
816         (mips*-*-rtems*): Likewise.
817         (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
818         (vax-*-linux*): Remove vax/t-linux from tmake_file.
819
820 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
821
822         * config.gcc (extra_parts): Remove.
823         (*-*-freebsd*): Remove extra_parts.
824         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
825         *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
826         (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
827         Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
828         *-*-netbsdelf[2-9]*.
829         (*-*-openbsd*): Remove t-libc-ok from tmake_file.
830         (alpha*-*-linux*): Remove extra_parts.
831         (alpha*-*-freebsd*): Likewise.
832         (bfin*-linux-uclibc*): Likewise.
833         (fr30-*-elf): Likewise.
834         (moxie-*-elf): Likewise.
835         (moxie-*-uclinux*): Likewise.
836         (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
837         (h8300-*-elf*): Likewise.
838         (hppa*64*-*-hpux11*): Remove extra_parts.
839         (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
840         tmake_file.
841         (x86_64-*-elf*): Likewise.
842         (i[34567]86-*-freebsd*): Remove tmake_file.
843         (x86_64-*-freebsd*): Likewise.
844         (x86_64-*-netbsd*): Likewise.
845         (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
846         t-libc-ok from tmake_file.
847         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
848         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
849         i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
850         tmake_file.
851         Remove extra_parts.
852         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
853         Remove i386/t-crtstuff from tmake_file.
854         (i[34567]86-*-lynxos*): Likewise.
855         Remove extra_parts.
856         (ia64*-*-elf*): Remove extra_parts.
857         (ia64*-*-freebsd*): Likewise.
858         (ia64*-*-linux*): Likewise.
859         (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
860         (m32r-*-elf*): Remove extra_parts.
861         (m32rle-*-elf*): Likewise.
862         (m32r-*-rtems*): Likewise.
863         (m68k-*-elf*, fido-*-elf*): Likewise.
864         (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
865         (m68k-*-rtems*): Remove extra_parts.
866         (mep-*-*): Likewise.
867         (microblaze*-linux*): Likewise.
868         (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
869         (mips*-*-linux*): Likewise.
870         (powerpc-*-lynxos*): Likewise.
871         (s390x-ibm-tpf*): Likewise.
872         (score-*-elf): Likewise.
873         Remove tmake_file.
874         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
875         sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
876         sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
877         Remove sh/t-superh from tmake_file for sh*-superh-elf.
878         Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
879         (sh-*-rtems*): Remove sh/t-elf from tmake_file.
880         (sh-wrs-vxworks): Likewise.
881         (sparc-*-linux*): Remove extra_parts.
882         (sparc64-*-linux*): Likewise.
883         (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
884         (xstormy16-*-elf): Likewise.
885         (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
886         (am33_2.0-*-linux*): Remove extra_parts.
887         * configure.ac (extra_parts): Don't substitute.
888         * configure: Regenerate.
889         * crtstuff.c: Move to ../libgcc.
890         * Makefile.in (CRTSTUFF_CFLAGS): Remove.
891         (EXTRA_PARTS): Remove.
892         (CRTSTUFF_T_CFLAGS): Remove.
893         (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
894         (GCC_EXTRA_PARTS): Remove.
895         (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
896         CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
897         Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
898         ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
899         ($(T)crtbeginT.o): Remove.
900         * config/alpha/t-vms (EXTRA_PARTS): Remove.
901         ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
902         * config/alpha/vms-dwarf2.asm: Move to
903         ../libgcc/config/alpha/vms-dwarf2.S.
904         * config/alpha/vms-dwarf2eh.asm: Move to
905         ../libgcc/config/alpha/vms-dwarf2eh.S.
906         * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
907         * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
908         * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
909         ($(T)crti.o, $(T)crtn.o): Remove.
910         * config/arm/t-linux: Remove comment.
911         * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
912         * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
913         ($(T)crti.o, $(T)crtn.o): Remove.
914         * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
915         * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
916         * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
917         * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
918         * config/bfin/t-bfin (EXTRA_PARTS): Remove.
919         ($(T)crti.o, $(T)crtn.o): Remove.
920         * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
921         ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
922         (EXTRA_MULTILIB_PARTS): Remove.
923         * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
924         EXTRA_MULTILIB_PARTS): Remove.
925         * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
926         ($(T)crtlibid.o): Remove.
927         (EXTRA_MULTILIB_PARTS): Remove.
928         * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
929         * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
930         * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
931         (EXTRA_MULTILIB_PARTS): Remove.
932         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
933         * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
934         CRTSTUFF_T_CFLAGS_S): Remove.
935         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
936         * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
937         * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
938         * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
939         * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
940         * config/frv/frvbegin.c, config/frv/frvend.c: Move to
941         ../libgcc/config/frv.
942         * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
943         (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
944         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
945         (CRTSTUFF_T_CFLAGS): Remove.
946         * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
947         * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
948         * config/h8300/t-elf: Remove.
949         * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
950         Move to ../libgcc/config/i386.
951         * config/i386/t-crtstuff: Remove.
952         * config/i386/t-i386elf: Remove.
953         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
954         * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
955         * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
956         * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
957         * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
958         * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
959         * config/ia64/t-vms: Remove.
960         * config/ia64/vms-crtinit.asm: Move to
961         ../libgcc/config/ia64/vms-crtinit.S.
962         * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
963         * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
964         * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
965         * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
966         ($(T)crtinit.o, $(T)crtfini.o): Remove.
967         (m32rx, m32r2): Remove.
968         (EXTRA_MULTILIB_PARTS): Remove.
969         * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
970         * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
971         * config/m68k/t-crtstuff: Remove.
972         * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
973         * config/m68k/t-m68kelf: Remove.
974         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
975         * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
976         * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
977         * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
978         (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
979         * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
980         (EXTRA_MULTILIB_PARTS): Remove.
981         * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
982         * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
983         * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
984         EXTRA_PARTS): Remove.
985         ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
986         * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
987         * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
988         * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
989         ($(T)crti.o, $(T)crtn.o): Remove.
990         (EXTRA_MULTILIB_PARTS): Remove.
991         * config/mips/t-isa3264: Likewise.
992         * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
993         * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
994         (CRTSTUFF_T_CFLAGS): Remove.
995         * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
996         ($(T)crti.o, $(T)crtn.o): Remove.
997         (EXTRA_MULTILIB_PARTS): Remove.
998         * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
999         Remove.
1000         ($(T)crti.o, $(T)crtn.o): Remove.
1001         * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
1002         * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
1003         (EXTRA_MULTILIB_PARTS): Remove.
1004         ($(T)crti.o, $(T)crtn.o): Remove.
1005         * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
1006         * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
1007         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
1008         * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
1009         * config/pa/stublib.c: Move to libgcc/config/pa.
1010         * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
1011         * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
1012         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
1013         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
1014         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
1015         ($(T)libgcc_stub.a): Remove.
1016         * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
1017         (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
1018         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
1019         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
1020         ($(T)libgcc_stub.a): Remove.
1021         * config/rs6000/eabi-cn.asm: Move to
1022         ../../../libgcc/config/rs6000/eabi-cn.S.
1023         * config/rs6000/eabi-ci.asm: Move to
1024         ../../../libgcc/config/rs6000/eabi-ci.S.
1025         * config/rs6000/sol-ci.asm: Move to
1026         ../../../libgcc/config/rs6000/sol-ci.S.
1027         * config/rs6000/sol-cn.asm: Move to
1028         ../../../libgcc/config/rs6000/sol-cn.S.
1029         * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
1030         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
1031         * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
1032         Remove.
1033         (EXTRA_MULTILIB_PARTS): Remove.
1034         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
1035         (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
1036         ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
1037         ($(T)ncrtn$(objext)): Remove.
1038         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
1039         * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
1040         * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
1041         * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
1042         * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
1043         * config/score/t-score-elf: Remove.
1044         * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
1045         * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
1046         * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
1047         * config/sh/lib1funcs-4-300.asm: Move to
1048         ../../../libgcc/config/sh/lib1funcs-4-300.S.
1049         * config/sh/lib1funcs-Os-4-200.asm: Move to
1050         ../libgcc/config/sh/lib1funcs-Os-4-200.S.
1051         * config/sh/t-elf: Remove.
1052         * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
1053         * config/sh/t-linux64: Remove.
1054         * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
1055         * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
1056         (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
1057         ($(T)ic_invalidate_array_4-100.o)
1058         ($(T)libic_invalidate_array_4-100.a)
1059         ($(T)ic_invalidate_array_4-200.o)
1060         ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
1061         ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
1062         ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
1063         ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
1064         ($(T)libgcc-4-300.a): Remove.
1065         * config/sh/t-superh: Remove.
1066         * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
1067         * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
1068         * config/spu/cache.S: Move to ../libgcc/config/spu.
1069         * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
1070         * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
1071         (EXTRA_MULTILIB_PARTS): Remove.
1072         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
1073         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
1074         ($(T)cache64k.o, $(T)cache128k.o): Remove.
1075         * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
1076         * config/t-libc-ok: Remove.
1077         * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
1078         * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
1079         * config/t-netbsd: Remove.
1080         * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
1081         * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
1082         * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
1083         ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
1084         * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
1085         * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
1086         * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
1087         * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
1088         (EXTRA_MULTILIB_PARTS): Remove.
1089         * config/xtensa/t-linux: Remove.
1090         * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
1091
1092 2011-11-02  Uros Bizjak  <ubizjak@gmail.com>
1093
1094         * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
1095         CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
1096
1097 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1098
1099         PR translation/45116
1100         * Makefile.in (slibdir): Remove, don't export.
1101         (SHLIB_NM_FLAGS): Remove.
1102         (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
1103         SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
1104         SHLIB_MAPFILES, SHLIB_NM_FLAGS.
1105         (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
1106         (gcc.o): Pass SHLIB instead of SHLIB_LINK.
1107         (gccspec.o): Likewise.
1108         (installdirs): Don't create $(DESTDIR)$(slibdir).
1109         * configure.ac (slibdir): Remove.
1110         * configure: Regenerate.
1111         * libgcc-libsystem.ver: Move to ../libgcc/config.
1112         * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
1113         * config/libgcc-glibc.ver: Move to ../libgcc/config.
1114         * config/t-libunwind (SHLIB_LC): Remove.
1115         * config/t-linux (SHLIB_MAPFILES): Remove.
1116         * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
1117         * config/t-slibgcc-elf-ver: Remove.
1118         * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
1119         ../libgcc/config.
1120         * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
1121         to ../libgcc/config/alpha.
1122         * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
1123         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
1124         SHLIB_SYMVECX2, SHLIB_LINK): Remove.
1125         * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
1126         * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
1127         * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
1128         SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
1129         * config/arm/t-symbian (SHLIB_LC): Remove.
1130         * config/bfin/libgcc-bfin.ver: Move to
1131         ../libgcc/config/bfin/libgcc-glibc.ver.
1132         * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
1133         * config/c6x/libgcc-c6xeabi.ver: Move to
1134         ../libgcc/config/c6x/libgcc-eabi.ver.
1135         * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
1136         * config/cris/libgcc.ver: Move to
1137         ../libgcc/config/cris/libgcc-glibc.ver.
1138         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
1139         * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
1140         * config/frv/t-linux (SHLIB_MAPFILES): Remove.
1141         * config/i386/darwin-libgcc.10.4.ver: Move to
1142         ../libgcc/config/i386/libgcc-darwin.10.4.ver.
1143         * config/i386/darwin-libgcc.10.5.ver: Move to
1144         ../libgcc/config/i386/libgcc-darwin.10.5.ver.
1145         * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
1146         * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
1147         SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
1148         SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
1149         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
1150         * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
1151         SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
1152         * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
1153         ../libgcc/config/i386.
1154         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
1155         ../libgcc/config/i386.
1156         * config/i386/t-linux: Move to ../libgcc/config/i386.
1157         * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
1158         * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
1159         * config/i386/t-mingw-w64: Likewise.
1160         * config/i386/t-mingw32: Remove.
1161         * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
1162         to ../libgcc/config/ia64.
1163         * config/ia64/t-glibc: Remove.
1164         * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
1165         * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
1166         * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
1167         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
1168         * config/ia64/vms_symvec_libgcc_s.opt: Remove.
1169         * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
1170         * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
1171         * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
1172         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
1173         * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
1174         * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
1175         Move to ../libgcc/config/pa.
1176         * config/rs6000/darwin-libgcc.10.4.ver: Move to
1177         ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
1178         * config/rs6000/darwin-libgcc.10.5.ver: Move to
1179         ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
1180         * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
1181         SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
1182         * config/rs6000/t-aix52: Likewise.
1183         * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
1184         ../libgcc/config/sh.
1185         * config/sparc/libgcc-sparc-glibc.ver: Move to
1186         ../libgcc/config/sparc/libgcc-glibc.ver.
1187         * config/sparc/t-linux: Move to ../libgcc/config/sparc.
1188         * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
1189         * config/xtensa/libgcc-xtensa.ver: Move to
1190         ../libgcc/config/xtensa/libgcc-glibc.ver.
1191         * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
1192         t-slibgcc in tmake_file.
1193         Remove t-slibgcc-nolc-override for *-*-freebsd[34],
1194         *-*-freebsd[34].* with pthreads.
1195         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
1196         *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
1197         t-slibgcc-elf-ver with t-slibgcc in tmake_file.
1198         (*-*-netbsd*): Likewise.
1199         (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
1200         (*-*-*vms*): Add t-slibgcc to tmake_file.
1201         (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
1202         (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
1203         tmake_file.
1204         (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
1205         arm*-*-linux-*eabi.
1206         (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
1207         tmake_file.
1208         (crisv32-*-linux*, cris-*-linux*): Likewise.
1209         (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
1210         pa/t-slibgcc-dwarf-ver from tmake_file.
1211         (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
1212         tmake_file.
1213         Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
1214         (hppa*64*-*-hpux11*): Likewise.
1215         (hppa[12]*-*-hpux11*): Likewise.
1216         (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
1217         tmake_file.
1218         (x86_64-*-darwin*): Likewise.
1219         (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
1220         Add t-slibgcc to tmake_file.
1221         (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
1222         Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
1223         i[34567]86-w64-*.
1224         Remove i386/t-mingw-pthread from tmake_file.
1225         (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
1226         (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
1227         (ia64-hp-*vms*): Likewise.
1228         (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
1229         tmake_file.
1230         (m32rle-*-linux*): Likewise.
1231         (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
1232         (microblaze*-linux*): Remove t-slibgcc-elf-ver,
1233         t-slibgcc-nolc-override from tmake_file.
1234         (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
1235         tmake_file.
1236         (powerpc-*-darwin*): Likewise.
1237         (powerpc64-*-darwin*): Likewise.
1238         (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
1239         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1240         (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
1241         t-slibgcc to tmake_file.
1242         (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
1243         (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
1244         (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
1245         (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
1246         (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
1247         (sparc64-*-linux*): Likewise.
1248         (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
1249         tmake_file.
1250         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1251         x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
1252         from tmake_file.
1253
1254 2011-11-02  Richard Guenther  <rguenther@suse.de>
1255
1256         PR tree-optimization/50902
1257         * tree-vect-stmts.c (vectorizable_load): Properly convert
1258         an invariant initializer element.
1259
1260 2010-11-02  Richard Guenther  <rguenther@suse.de>
1261
1262         PR tree-optimization/50890
1263         * gimple.h (gimple_fold_call): Remove.
1264         * gimple-fold.c (fold_stmt_1): Move all call related code to ...
1265         (gimple_fold_call): ... here.  Make static.  Update the
1266         cannot-inline flag on direct calls.
1267         * ipa-inline.c (early_inliner): Copy the cannot-inline flag
1268         from the statements to the edges.
1269
1270 2011-11-01  Ian Lance Taylor  <iant@google.com>
1271
1272         * godump.c (struct macro_hash_value): Define.
1273         (macro_hash_hashval): New static function.
1274         (macro_hash_eq, macro_hash_del): New static functions.
1275         (go_define): Use macro_hash_value to store values in macro_hash.
1276         Replace an old value on a redefinition.  Don't print anything to
1277         go_dump_file.
1278         (go_undef): Delete the entry from the hash table.
1279         (go_output_typedef): For an enum, use macro_hash_value, and don't
1280         print anything to go_dump_file.
1281         (go_print_macro): New static function.
1282         (go_finish): Traverse macro_hash with go_print_macro.
1283         (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
1284
1285 2011-11-02  Alan Modra  <amodra@gmail.com>
1286
1287         * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
1288
1289 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
1290
1291         PR c++/44277
1292         * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
1293
1294 2011-11-01  Andrew Stubbs  <ams@codesourcery.com>
1295
1296         * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
1297
1298 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
1299
1300         * config/i386/i386.md (splitters for int-float conversion): Use
1301         SUBREG_REG on SUBREGs in splitter constraints.
1302
1303 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
1304
1305         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
1306         prototype.
1307         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
1308         function.
1309         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
1310         (ssepackfltmode): New mode attr.
1311         (vec_pack_ufix_trunc_<mode>): New expander.
1312
1313 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
1314
1315         PR target/50940
1316         * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
1317         Compare <ssevecmode>mode to V4SFmode, not V4SImode.
1318
1319 2011-11-01  Peter Bergner  <bergner@vnet.ibm.com>
1320
1321         * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
1322         * config/rs6000/476.h: New file.
1323         * config/rs6000/476.opt: Likewise.
1324         * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
1325         (SET_TARGET_LINK_STACK): Likewise.
1326         (TARGET_ASM_CODE_END): Define.
1327         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
1328         TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
1329         (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
1330         code if TARGET_LINK_STACK.
1331         (rs6000_emit_load_toc_table): Likewise.
1332         (output_function_profiler): Likewise
1333         (macho_branch_islands): Likewise
1334         (machopic_output_stub): Likewise
1335         (get_ppc476_thunk_name): New function.
1336         (rs6000_code_end): Likewise.
1337         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
1338         Convert to a define_expand.
1339         (load_toc_v4_PIC_1_normal): New define_insn.
1340         (load_toc_v4_PIC_1_476): Likewise.
1341         (load_toc_v4_PIC_1b_normal): Likewise.
1342         (load_toc_v4_PIC_1b_476): Likewise.
1343
1344 2011-11-01  Georg-Johann Lay  <avr@gjlay.de>
1345
1346         PR target/50910
1347         * config/avr/avr.opt (-mbranch-cost=): New option.
1348         * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
1349         * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
1350         * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
1351         (*addhi3_zero_extend1): Remove % in constraint of operand 1.
1352         (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
1353
1354 2011-11-01  Tom de Vries  <tom@codesourcery.com>
1355
1356         PR tree-optimization/50908
1357         * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
1358         before update_vuses, test for 1 predecessor rather than two.
1359         (delete_block_update_dominator_info): New function, part of it factored
1360         out of ...
1361         (replace_block_by): Use delete_block_update_dominator_info.  Call
1362         update_vuses after deleting bb1 and updating dominator info, instead of
1363         before.
1364
1365 2011-11-01  David S. Miller  <davem@davemloft.net>
1366
1367         * config/sparc/sparc.c (vector_init_faligndata): New function.
1368         (sparc_expand_vector_init): Use it for V4HImode on VIS1.
1369
1370         * config/sparc/sparc.c (sparc_expand_vcond): New function.
1371         * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
1372         * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
1373         (vconduv8qiv8qi): Likewise.
1374
1375 2011-11-01  Alexandre Oliva  <aoliva@redhat.com>
1376
1377         PR debug/50869
1378         * cselib.c (cfa_base_preserved_regno): Initialize.
1379         (cselib_expand_value_rtx_1): Don't expand it.
1380         * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
1381         Check it's only zero if result is NULL.
1382
1383 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
1384
1385         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
1386         expander.
1387
1388         * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
1389         (sseintvecmodelower): New mode iterator.
1390         (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
1391         (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
1392         (floatunsv4siv4sf2): Macroize into...
1393         (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
1394
1395 2011-10-31  David S. Miller  <davem@davemloft.net>
1396
1397         * config/sparc/sparc.md (cmask patterns): Allow zero operand.
1398
1399         * dwarf2out.c (cached_next_real_insn): New.
1400         (dwarf2out_end_epilogue): Set it to NULL_RTX.
1401         (dwarf2out_var_location): Remove cached_next_real_insn local static.
1402
1403 2011-10-31  Richard Henderson  <rth@redhat.com>
1404
1405         * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
1406         (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
1407         (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
1408         (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
1409         (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
1410         (floatv4siv4df2): Rename from avx_cvtdq2pd256.
1411         (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
1412         (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
1413         * config/i386/i386.md (splitters for int-float conversion): Likewise.
1414         * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
1415         (bdesc_args): Likewise.
1416         (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
1417         (ix86_vectorize_builtin_conversion): Remove.
1418         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1419
1420 2011-10-31  Martin Jambor  <mjambor@suse.cz>
1421
1422         * ipa-prop.c (mark_modified): Moved up in the file.
1423         (is_parm_modified_before_call): Renamed to
1424         is_parm_modified_before_stmt, moved up in the file.
1425         (load_from_unmodified_param): New function.
1426         (compute_complex_assign_jump_func): Also attempt to create pass
1427         through jump functions for values loaded from (addressable)
1428         parameters.
1429
1430 2011-10-31  Jakub Jelinek  <jakub@redhat.com>
1431
1432         * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
1433         in a loop and has different type from op0, cast it to op0's type
1434         before the loop first.  For slp give up.  Don't crash if op1_vectype
1435         is NULL.
1436
1437 2011-10-31  Paul Brook  <paul@codesourcery.com>
1438
1439         * cgraphunit.c: Don't mark clones as static constructors.
1440
1441 2011-10-31  David Edelsohn  <dje.gcc@gmail.com>
1442
1443         * gcc-ar: Do not include stdio.h.
1444
1445 2011-10-31  Diego Novillo  <dnovillo@google.com>
1446
1447         * tree-streamer-out.c (pack_ts_base_value_fields): Emit
1448         TYPE_ADDR_SPACE.
1449         * tree-streamer-in.c (unpack_ts_base_value_fields): Read
1450         TYPE_ADDR_SPACE.
1451
1452 2011-10-30  David S. Miller  <davem@davemloft.net>
1453
1454         * config/sparc/sparc.c (vector_init_bshuffle): New function.
1455         (vector_init_fpmerge): New function.
1456         (sparc_expand_vector_init): Use them to improve non-const cases.
1457
1458         * dwarf2out.c (dwarf2out_var_location): When processing several
1459         consecutive location notes, cache the result of next_real_insn().
1460
1461 2011-10-30  Uros Bizjak  <ubizjak@gmail.com>
1462
1463         * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
1464         avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
1465         (vec_dupv4sf): Remove expander.
1466         (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
1467         (vec_dupv2df): Remove expander.
1468         (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
1469         (*vec_concatv2df): Merge *vec_concatv2df_sse3.
1470         (*vec_dupv4si): Merge *vec_dupv4si_avx.
1471         (*vec_dupv2di): Merge *vec_dupv2di_sse3.
1472
1473 2011-10-30  Dmitry Plotnikov  <dplotnikov@ispras.ru>
1474
1475         * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
1476         * optabs.c (supportable_convert_operation): New function.
1477         * optabs.h (supportable_convert_operation): New prototype.
1478         * tree-vect-stmts.c (vectorizable_conversion): Change condition and
1479         behavior for NONE modifier case.
1480         * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
1481
1482 2011-10-30  Jakub Jelinek  <jakub@redhat.com>
1483
1484         * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
1485         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
1486         function.
1487         (vect_vect_recog_func_ptrs): Add it.
1488
1489 2011-10-30  David S. Miller  <davem@davemloft.net>
1490
1491         * reorg.c (label_before_next_insn): New function.
1492         (relax_delay_slots): Use it instead of prev_label.
1493         * rtl.h (prev_label): Delete declaration.
1494         * emit-rtl.c (prev_label): Remove.
1495
1496 2011-10-30  Revital Eres  <revital.eres@linaro.org>
1497
1498         * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
1499         as BB_DISABLE_SCHEDULE.
1500         (mark_loop_unsched): New function.
1501         (sms_schedule): Call it.
1502
1503 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1504
1505         PR target/50617
1506         * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
1507         (cmpib_comparison_operator): Likewise.
1508         (following_cal, output_and, output_ior, output_move_double,
1509         output_fp_move_double, output_block_move, output_block_clear,
1510         output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
1511         output_movb, output_parallel_movb, output_parallel_addb, output_call,
1512         output_indirect_call, output_millicode_call, output_mul_insn,
1513         output_div_insn, output_mod_insn, singlemove_string,
1514         output_arg_descriptor, output_global_address, print_operand,
1515         legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
1516         fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
1517         emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
1518         hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
1519         attr_length_indirect_call, return_addr_rtx, function_arg_padding,
1520         insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
1521         output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
1522         hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
1523         compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
1524         reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
1525         exported functions and variables with "pa_".
1526         * config/pa/predicates.md: Likewise.
1527         * config/pa/pa64-hpux.h: likewise.
1528         * config/pa/som.h: Likewise.
1529         * config/pa/elf.h: Likewise.
1530         * config/pa/pa64-linux.h: Likewise.
1531         * config/pa/pa.md: Likewise.
1532         * config/pa/pa.c: Likewise.
1533         * config/pa/pa-linux.h: Likewise.
1534         * config/pa/pa.h: Likewise.
1535         * config/pa/constraints.md: Likewise.
1536
1537 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
1538
1539         * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
1540         Update all uses.
1541         (xop_shl<mode>3): Rename from xop_lshl<mode>3.  Update all uses.
1542         * config/i386/i386.c: Update all uses.
1543
1544 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
1545
1546         * config/i386/i386.md (lshlv16qi3): Remove expander.
1547         (lshrv16qi3): New expander.
1548         (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
1549         using any_shiftrt code iterator. Cleanup.
1550         (ashlv16qi3): Cleanup.
1551         (ashrv2di3): Ditto.
1552
1553 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1554
1555         PR target/50691
1556         * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
1557         references.
1558         (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
1559         and TLS_MODEL_LOCAL_DYNAMIC symbol references.
1560
1561 2011-10-29  Georg-Johann Lay  <avr@gjlay.de>
1562
1563         PR target/50887
1564         * config/avr/avr.opt (-maccumulate-args): New option.
1565         * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
1566         avr_starting_frame_offset.
1567         (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
1568         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
1569         (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
1570         (UNSPECV_WRITE_SP): New constant.
1571         (*addhi3_sp_R): Rewrite to...
1572         (*addhi3_sp): ...this new insn.
1573         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
1574         (movhi_sp_r): ...this new insn.
1575         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
1576         (avr_starting_frame_offset): New.
1577         * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
1578         (avr_starting_frame_offset): New function.
1579         (avr_outgoing_args_size): New static function.
1580         (avr_initial_elimination_offset): Use it.
1581         (avr_simple_epilogue): Use it.
1582         (avr_asm_function_end_prologue): Use it.
1583         (expand_epilogue): Use it.
1584         (expand_prologue): Use it.  Break out code to...
1585         (avr_prologue_setup_frame): ...this new static function.
1586         (avr_can_eliminate): Allow eliminating to frame pointer if there
1587         is one.
1588         (avr_frame_pointer_required_p): Use frame pointer if target has a
1589         nonlocal label.
1590         * config/avr/constraints.md (R): Remove.
1591         (Csp): New constraint.
1592         * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
1593
1594 2011-10-29  Andi Kleen  <ak@linux.intel.com>
1595
1596         * gcc-ar.c (target_machine): Add.
1597
1598 2011-10-29  Anatoly Sokolov  <aesok@post.ru>
1599
1600         * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
1601         cris_constant_index_p, cris_base_p, cris_index_p,
1602         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
1603         cris_legitimate_address_p): New functions.
1604         (TARGET_LEGITIMATE_ADDRESS_P): Define.
1605         (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
1606         from rtx to const_rtx.
1607         (cris_print_operand_address, cris_address_cost,
1608         cris_side_effect_mode_ok):  Use
1609         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
1610         cris_biap_index_p and cris_bdap_index_p.
1611         * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
1612         BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
1613         REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
1614         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
1615         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
1616         cris_biap_index_p and cris_bdap_index_p.
1617         * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
1618         cris_base_p.
1619         * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
1620         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
1621         prototype.
1622         (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
1623
1624 2011-10-21  Andi Kleen  <ak@linux.intel.com>
1625
1626         * ggc-page (PAGE_ALIGN): Add.
1627         (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
1628         Replace ROUND_UP with PAGE_ALIGN.
1629
1630 2011-10-20  Andi Kleen  <ak@linux.intel.com>
1631
1632         * ggc-page (alloc_anon): Add check argument.
1633         (alloc_page): Add fallback to 1 page allocation.
1634         Adjust alloc_anon calls to new argument.
1635
1636 2011-10-18  Andi Kleen  <ak@linux.intel.com>
1637
1638         * ggc-page (release_pages): First free large continuous
1639         chunks in the madvise path.
1640
1641 2011-10-18  Andi Kleen  <ak@linux.intel.com>
1642
1643         * ggc-page.c (alloc_pages): Always round up entry_size.
1644
1645 2011-10-19  Andi Kleen  <ak@linux.intel.com>
1646
1647         * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
1648         (native): Add gcc-ar, gcc-nm, gcc-ranlib.
1649         (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
1650         gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
1651         (install): Depend on install-gcc-ar.
1652         (install-gcc-ar): Add.
1653         (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
1654         * gcc-ar.c: Add new file.
1655
1656 2011-10-28  Pat Haugen <pthaugen@us.ibm.com>
1657
1658         * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
1659         * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
1660         type for V2DF.
1661         (VStype_div): Use vector types for V2DF/V4SF.
1662         (VStype_sqrt): Use *sqrt types.
1663         (VS_spdp_type): Change type to vecdouble.
1664         (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
1665         vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
1666         vsx_xvcvspuxds): Likewise.
1667         (*vsx_fms<mode>4): Set type via <VStype_mul>.
1668         (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
1669         <VStype_simple>.
1670         * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
1671         (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
1672         power7-dsqrt): Correct insn latency.
1673         (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
1674         (power7-veccmp): Delete.
1675         (power7-vecfloat): Correct latency/dispatch/VSU values.
1676         (define_bypass "power7-vecfloat"): Correct latency and types.
1677         (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
1678         (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
1679
1680 2011-10-28  Uros Bizjak  <ubizjak@gmail.com>
1681
1682         * config/i386/i386.md (shift_insn): Rename code attribute from
1683         shiftrt_insn.  Also handle ashift RTX.
1684         (shift): Rename code attribute from shiftrt.  Also handle ashift RTX.
1685         (vshift): New code attribute.
1686         (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
1687         (any_lshift): Move and rename code iterator from ...
1688         * config/i386/sse.md (lshift): ... here.
1689         (lshift_insn): Remove code attribute.
1690         (lshift): Remove code attribute.
1691         (vlshr<mode>3): Use lshiftrt RTX.
1692         (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
1693         (vashl<mode>3, ashlv16qi3): Use ashift RTX.
1694         (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>.  Use
1695         any_lshift code iterator.  Update asm template.
1696         (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
1697         usign any_lshift code iterator.
1698         * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
1699         mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
1700         * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
1701
1702 2011-10-28  Georg-Johann Lay  <avr@gjlay.de>
1703
1704         PR target/49313
1705         * config/avr/avr.md (parityhi2): Expand allowing pseudos.
1706         (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
1707         to the libgcc insn.
1708         (*parityqihi2): Same for 8-bit parity.
1709
1710 2011-10-28  Julian Brown  <julian@codesourcery.com>
1711
1712         PR rtl-optimization/47918
1713         * reload1.c (set_initial_label_offsets): Use initial offsets
1714         for labels on the nonlocal_goto_handler_labels chain.
1715
1716 2011-10-28  Iain Sandoe  <iains@gcc.gnu.org>
1717
1718         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
1719         Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
1720         (LIB2FUNCS_EXTRA):  Add darwin-gpsave.asm.
1721         (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
1722         config/t-darwin.
1723         * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
1724         (GP_SAVE_INLINE): Likewise.
1725         (SAVE_FP_PREFIX,  SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
1726         RESTORE_FP_SUFFIX): Set to empty strings.
1727         * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
1728         (debug_stack_info): Print savres_strategy.
1729         (rs6000_savres_routine_name): Implement for Darwin.
1730         (rs6000_make_savres_rtx): Adjust used register for Darwin.
1731         (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
1732         (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
1733         (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
1734         * config/rs6000/darwin-gpsave.asm: New file.
1735
1736 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
1737
1738         * config/i386/sse.md (VI4SD_AVX2): Removed.
1739         (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
1740         (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
1741         Add another expander using VI48_128 iterator for
1742         TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
1743         for TARGET_AVX2.
1744         (vlshr<mode>3): Likewise.  Change register_operand predicate to
1745         nonimmediate_operand on last operand in the VI12_128 expander.
1746         (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
1747         (vashrv4si3, vashrv8si3): New expanders.
1748         (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
1749         avx2_<lshift>vv2di): Removed.
1750         (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
1751         (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
1752         iterator.  Simplify pattern.
1753
1754 2010-10-28  Richard Guenther  <rguenther@suse.de>
1755
1756         PR driver/50876
1757         * lto-wrapper.c (get_options_from_collect_gcc_options):
1758         Properly count arguments.
1759         (run_gcc): Use an obstack to collect argv, properly separate
1760         switches and their arguments.
1761
1762 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
1763
1764         * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
1765         vector mode from vectype's mode.
1766
1767 2011-10-28  Chung-Lin Tang  <cltang@codesourcery.com>
1768
1769         PR rtl-optimization/49720
1770         * simplify-rtx.c (simplify_relational_operation_1): Detect
1771         infinite recursion condition in "(eq/ne (plus x cst1) cst2)
1772         simplifies to (eq/ne x (cst2 - cst1))" case.
1773
1774 2011-10-27  David S. Miller  <davem@davemloft.net>
1775
1776         * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
1777         (*snedi_zero): Likewise.
1778         (*snedi_zero_trunc): Likewise.
1779         (snedi_special_vis3): New expander.
1780         (*snedi_zero_vis3): New insn.
1781         (*snedi_zero_trunc_vis3): Likewise.
1782         (*sltu_insn_vis3): Likewise.
1783         (*sltu_insn_vis3_trunc): Likewise.
1784         (addxc): Likewise.
1785         (*addxc_trunc_sp64_vis3): Likewise.
1786         * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
1787         gen_snedi_special_vis3 expander, and try GTU/LTU addx based
1788         sequences on DImode values.
1789
1790         * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
1791         constraint.
1792
1793         * regcprop.c (copyprop_hardreg_forward_1): Reject the
1794         transformation when we narrow the mode on big endian.
1795
1796 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
1797
1798         * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
1799         vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
1800         (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
1801
1802         * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
1803         overrides for -masm=intel memory.
1804         * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
1805         sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
1806         sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
1807         sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
1808         (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
1809         sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
1810         (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
1811
1812 2011-10-27  Martin Jambor  <mjambor@suse.cz>
1813
1814         * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
1815         to parm_ainfo.
1816         (ipa_compute_jump_functions_for_edge): Likewise.
1817         (ipa_compute_jump_functions): Likewise.
1818         (ipa_analyze_indirect_call_uses): Likewise.
1819         (ipa_analyze_call_uses): Likewise.
1820         (ipa_analyze_params_uses): Likewise.
1821         (ipa_analyze_node): Likewise.
1822
1823 2011-10-27  Uros Bizjak  <ubizjak@gmail.com>
1824
1825         PR target/50875
1826         * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
1827         constraints.  Change alternative 1 to "x,m,1".
1828
1829 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
1830
1831         * Makefile.in (build/gencheck.o): Depend on tree.def and
1832         c-family/c-common.def.
1833
1834         * tree-ssa-strlen.c: Include expr.h.
1835         (get_stridx): Don't use c_strlen, instead use string_constant
1836         and compute string length from it.
1837         * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
1838
1839 2011-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1840
1841         PR rtl-optimization/46603
1842         PR bootstrap/50879
1843         * reload.c (push_reload): In the out case, restore previous behavior
1844         for subregs that don't have word mode.
1845
1846 2011-10-27  Ian Lance Taylor  <iant@google.com>
1847
1848         * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
1849         CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
1850         (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
1851         defined.
1852
1853 2011-10-27  Richard Henderson  <rth@redhat.com>
1854
1855         * optabs.c (expand_vec_perm): Use the correct mode for scaling the
1856         selector.  Save the qimode constant selector for later use by the
1857         qimode vec_perm pattern.
1858
1859 2011-10-27  Bernd Schmidt  <bernds@codesourcery.com>
1860
1861         * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
1862         to unit_req_factor to the right enum type.
1863         (get_unit_operand_masks, reshuffle_units, try_rename_operands,
1864         hwloop_optimize): Remove unused variables.
1865
1866 2010-10-27  Richard Guenther  <rguenther@suse.de>
1867
1868         PR middle-end/50731
1869         * tree-vect-generic.c (do_binop): Handle scalar operands.
1870
1871 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1872
1873         PR target/37191
1874         * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
1875         from different units in a single alternative.
1876
1877 2011-10-26  David S. Miller  <davem@davemloft.net>
1878
1879         * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
1880         if we're comparing DImode and comparison is other than EQ or NE.
1881
1882         * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
1883         LEU/LTU/GEU/GTU is attempted.
1884         * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
1885         and split.
1886         (*neg_seqsi_sign_extend): Likewise.
1887         (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
1888         *neg_sgeu_extend_sp64): New insns.
1889
1890         * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
1891         * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
1892         (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
1893         (*mov<I:mode>_cc_reg_sp64): Likewise.
1894         (*movsf_cc_v9): Likewise.
1895         (*movsf_cc_reg_sp64): Likewise.
1896         (*movdf_cc_v9): Likewise.
1897         (*movdf_cc_reg_sp64): Likewise.
1898         (*movtf_cc_hq_v9): Likewise.
1899         (*movtf_cc_reg_hq_sp64): Likewise.
1900         (*movtf_cc_v9): Likewise.
1901         (*movtf_cc_reg_sp64): Likewise.
1902         * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
1903         (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
1904
1905 2011-10-26  Eric Botcazou  <ebotcazou@adacore.com>
1906
1907         * reload.c (reload_inner_reg_of_subreg): Change type of return value
1908         and type of OUTPUT parameter to bool and adjust.  Document MODE and
1909         OUTPUT parameters.  Use HARD_REGISTER_P.  Reorder final condition
1910         and improve associated comment.
1911         (push_reload): Clarify and update comments about reloading of subregs.
1912         Adjust calls to reload_inner_reg_of_subreg.  Compute the class upfront
1913         for the reloading of subregs in the out case as well.
1914
1915 2011-10-26  Alexandre Oliva  <aoliva@redhat.com>
1916
1917         PR debug/50826
1918         * var-tracking.c (rtx_debug_expr_p): New.
1919         (use_type): Don't use debug exprs to track non-VTA variables.
1920
1921 2011-10-26  Jeff Law  <law@redhat.com>
1922
1923         * doc/invoke.texi (sink-frequency-threshold): Document.
1924         * tree-ssa-sink.c: Include params.h.
1925         (select_best_block): New function.
1926         (statement_sink_location): Use it.
1927         * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
1928
1929 2011-10-26  Iain Sandoe  <iains@gcc.gnu.org>
1930
1931         PR target/48108
1932         * config/darwin.c (top level): Amend comments concerning LTO output.
1933         (lto_section_num): New variable.  (darwin_lto_section_e): New GTY.
1934         (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
1935         (LTO_NAMES_SECTION): Rename.
1936         (darwin_asm_named_section): Record LTO section counts and switches
1937         in a vec of darwin_lto_section_e.
1938         (darwin_file_start): Remove unused code.
1939         (darwin_file_end): Put an LTO section termination label.  Handle
1940         output of the wrapped LTO sections, index and names table.
1941
1942 2011-10-26  Alan Modra  <amodra@gmail.com>
1943
1944         * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
1945         declaration.
1946         (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
1947         (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx.  Use
1948         simple_return in pattern, emit instruction, and set jump_label.
1949         (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx.  Use
1950         simple_return rather than return.
1951         (emit_cfa_restores): New function.
1952         (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
1953         Add missing cfa_restores for SAVE_WORLD.  Add missing LR cfa_restore
1954         when using out-of-line gpr restore.  Add missing LR and FP regs
1955         cfa_restores for out-of-line fpr restore.  Consolidate code setting
1956         up cfa_restores.  Formatting.  Use LR_REGNO define.
1957         (rs6000_output_mi_thunk): Use simple_return rather than return.
1958         * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
1959         (return_internal*): Likewise.
1960         (any_return, return_pred, return_str): New iterators.
1961         (return, conditional return insns): Provide both return and
1962         simple_return variants.
1963         * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
1964         (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
1965         Move r11 and r0 later to suit shrink-wrapping.
1966
1967 2011-10-26  Richard Guenther  <rguenther@suse.de>
1968
1969         * lto-wrapper.c (run_gcc): Properly init/free obstack.
1970
1971 2011-10-26  Jakub Jelinek  <jakub@redhat.com>
1972
1973         * config/i386/i386.md (UNSPEC_VSIBADDR): New.
1974         * config/i386/predicates.md (vsib_address_operand,
1975         vsib_mem_operator): New predicates.
1976         * config/i386/i386.c (ix86_print_operand_address): Handle
1977         UNSPEC_VSIBADDR addresses.
1978         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
1979         avx2_gatherdi<mode>256): Adjust expanders to use MEM with
1980         UNSPEC_VSIBADDR address.
1981         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
1982         Adjust insns to use MEM with UNSPEC_VSIBADDR address.
1983
1984 2011-10-26  Tom de Vries  <tom@codesourcery.com>
1985
1986         PR tree-optimization/50763
1987         * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
1988         phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
1989
1990 2011-10-26  Richard Guenther  <rguenther@suse.de>
1991
1992         PR lto/41844
1993         * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
1994         (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
1995         * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
1996         (run_gcc): Use it.  Filter out language specific options.
1997
1998 2011-10-26  Andreas Tobler  <andreast@fgznet.ch>
1999
2000         * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
2001         32-bit target does.
2002
2003 2011-10-25  Paolo Carlini  <paolo.carlini@oracle.com>
2004
2005         PR driver/46617
2006         * gcc.c (main): Fix fatal_error string for translation.
2007
2008 2011-10-25  Ian Lance Taylor  <iant@google.com>
2009
2010         * tree-eh.c (do_return_redirection): Remove return_value_p
2011         parameter.  Change all callers.
2012         (lower_try_finally_nofallthru): Remove local return_val.
2013         (lower_try_finally_onedest): Likewise.
2014         (lower_try_finally_copy): Likewise.
2015         (lower_try_finally_switch): Likewise.
2016
2017 2011-10-25  H.J. Lu  <hongjiu.lu@intel.com>
2018
2019         * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
2020         remove "&& !TARGET_64BIT"
2021         (*mmx_maskmovq_rex): Removed.
2022
2023 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
2024
2025         PR rtl-optimization/46603
2026         * reload.c (push_reload): In the out case, reload the subreg as well
2027         as the reg if it has word mode.
2028
2029 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
2030
2031         * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
2032         suppress debug info for the parent type.
2033
2034 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
2035
2036         * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
2037
2038 2011-10-25  Richard Henderson  <rth@redhat.com>
2039
2040         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
2041         (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
2042
2043         * config/rs6000/altivec.md (vec_extract_evenv8hi,
2044         vec_extract_evenv16qi, vec_extract_oddv4si,
2045         vec_extract_oddv4sf): Remove.
2046
2047         * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
2048         vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
2049         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
2050         vec_interleave_highv4sf, vec_interleave_lowv4sf,
2051         vec_interleave_highv4si, vec_interleave_lowv4si,
2052         vec_interleave_highv8hi, vec_interleave_lowv8hi,
2053         vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
2054
2055         * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
2056         [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
2057         [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
2058         * optabs.c (expand_binop): Implement vec_interleave_high_optab,
2059         vec_interleave_low_optab, vec_extract_even_optab,
2060         vec_extract_odd_optab with expand_vec_perm.
2061         (can_vec_perm_for_code_p): New.
2062         * optabs.h: Update.
2063         * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
2064         fallback via can_vec_perm_for_code_p.
2065         (vect_strided_load_supported): Likewise.
2066         * tree-vect-generic.c (expand_vector_operations_1): Never lower
2067         VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
2068         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
2069
2070         * target.def (vec_perm_const_ok): Change parameters to mode and
2071         array of indicies.
2072         * doc/tm.texi: Rebuild.
2073         * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
2074         parameters to mode and array of indicies.
2075         * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
2076         * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
2077         Change parameters to mode and array of indicies.
2078         (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
2079         (expand_vec_perm): Rename from expand_vec_perm_expr.  Change
2080         parameters to mode and rtx inputs.  Try lowering to QImode
2081         vec_perm_const before trying fully variable permutation.
2082         * optabs.h: Update decls.
2083         * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
2084         VECTOR_CST to pass to can_vec_perm_p.
2085         * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
2086         from int pointer to unsigned char pointer.
2087         (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
2088         * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
2089
2090         * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
2091         (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
2092         VEC_INTERLEAVE_LOW_EXPR): Likewise.
2093
2094 2011-10-25  Mike Stump  <mikestump@comcast.net>
2095
2096         * reload.c (regno_clobbered_p): Fix typo.
2097
2098 2011-10-25  Dodji Seketeli  <dodji@redhat.com>
2099
2100         * input.c (expand_location): Rewrite using linemap_resolve_location
2101         and linemap_expand_location.  Add a comment.
2102
2103 2011-10-25  Jakub Jelinek  <jakub@redhat.com>
2104
2105         PR tree-optimization/50596
2106         * tree-vect-stmts.c (vect_mark_relevant): Only use
2107         FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
2108         (vectorizable_store): If is_pattern_stmt_p look through
2109         VIEW_CONVERT_EXPR on lhs.
2110         * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
2111         Use unsigned type instead of signed.
2112         (vect_recog_bool_pattern): Optimize also stores into bool memory in
2113         addition to casts from bool to integral types.
2114         (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
2115         created, don't create it again.
2116
2117 2011-10-25  Kai Tietz  <ktietz@redhat.com>
2118
2119         * config/i386/i386.c (ix86_frame_pointer_required): Require
2120         frame-pointer, if setjmp is used for 32-bit ms-abi.
2121
2122 2011-10-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2123
2124         * builtins.c (set_builtin_user_assembler_name): Remove extra
2125         newline added in October 11th, 2011 change.
2126
2127 2011-10-24  David S. Miller  <davem@davemloft.net>
2128
2129         * config/sparc/little-endian.opt: Delete.
2130         * config.gcc: Remove references to config/sparc/little-endian.opt
2131         * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
2132         * config/sparc/linux64.h: Delete references to -mlittle-endian.
2133         * config/sparc/netbsd-elf.h: Likewise.
2134         * config/sparc/openbsd64.h: Likewise.
2135         * config/sparc/sparc.h: Likewise.
2136         * config/sparc/sp64-elf.h: Likewise and delete overrides for
2137         BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
2138         * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
2139         to MASK_LITTLE_ENDIAN.
2140         * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
2141
2142         * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
2143         Only use D, Y, and Z constraints in vector insns.
2144
2145         * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
2146         (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
2147         called *movsi_insn.
2148         (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
2149         into *movdi_insn_sp32.
2150         (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
2151         one pattern called *movdi_insn_sp64.
2152         (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
2153         Consolidate into one pattern called *movsf_insn.
2154         (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
2155         *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
2156         into *movdf_insn_sp32.
2157         (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
2158         *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
2159         *movdf_insn_sp64.
2160         (*zero_extendsidi2_insn_sp64_novis3,
2161         *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
2162         called *zero_extendsidi2_insn_sp64.
2163         (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
2164         Consolidate into one pattern named *sign_extendsidi2_insn.
2165         (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
2166         Consolidate into one pattern named *mov<VM32:mode>_insn.
2167         (*mov<VM64:mode>_insn_sp64_novis3,
2168         *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
2169         named *mov<VM64:mode>_insn_sp64.
2170         (*mov<VM64:mode>_insn_sp32_novis3,
2171         *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
2172         named *mov<VM64:mode>_insn_sp32.
2173
2174 2011-10-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2175
2176         * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
2177         (zero_length_string): Change assertion to accept strinfo without
2178         length but with stmt instead.
2179         Set the endptr pointer also if starting a new chain.
2180         (adjust_related_strinfos): Ignore strinfos marked for delayed
2181         length computation.
2182         (handle_builtin_strcpy): Mark earlier strinfo elements also for
2183         delayed length computation.
2184
2185 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
2186
2187         PR target/50820
2188         Port from 4.6 branch r180379
2189         * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
2190         handling and indirect jump/calls on devices > 128k.
2191
2192 2011-10-24  Anatoly Sokolov  <aesok@post.ru>
2193             Georg-Johann Lay  <avr@gjlay.de>
2194
2195         PR target/49824
2196         * doc/extend.texi (Declaring Attributes of Functions):
2197         Document OS_main and OS_task attributes.
2198         (Specifying Attributes of Variables): Move up
2199         subsection "AVR Variable Attributes" as of alphabetical order.
2200
2201 2011-10-24  Richard Guenther  <rguenther@suse.de>
2202
2203         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
2204         to vector element type.
2205         (vectorizable_assignment): Bail out for non-mode-precision operations.
2206         (vectorizable_shift): Likewise.
2207         (vectorizable_operation): Likewise.
2208         (vectorizable_type_demotion): Likewise.
2209         (vectorizable_type_promotion): Likewise.
2210         (vectorizable_store): Handle non-mode-precision stores.
2211         (vectorizable_load): Handle non-mode-precision loads.
2212         (get_vectype_for_scalar_type_and_size): Return a vector type
2213         for non-mode-precision integers.
2214         * tree-vect-loop.c (vectorizable_reduction): Bail out for
2215         non-mode-precision reductions.
2216
2217 2011-10-24  Julian Brown  <julian@codesourcery.com>
2218
2219         * config/m68k/m68k.c (notice_update_cc): Tighten condition for
2220         setting CC_REVERSED for FP comparisons.
2221
2222 2011-10-24  Richard Guenther  <rguenther@suse.de>
2223
2224         PR tree-optimization/50838
2225         * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
2226         a MEM_REF base if we change it.
2227
2228 2011-10-24  Bernd Schmidt  <bernds@codesourcery.com>
2229
2230         PR bootstrap/50836
2231         * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
2232
2233         PR rtl-optimization/50833
2234         * function.c (thread_prologue_and_epilogue_insns): Expect the
2235         return insn optimization only if optimize.
2236
2237 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
2238
2239         * config/avr/avr.c: Break long lines.
2240         Define target hooks on the fly if applicable.
2241         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
2242         overridden later.
2243         (targetm): Move definition to end of file.
2244         (avr_can_eliminate): Make static on the fly.
2245         (avr_frame_pointer_required_p): Ditto.
2246         (avr_hard_regno_scratch_ok): Ditto.
2247         (avr_builtin_setjmp_frame_value): Make static on the fly.
2248         Indent according to coding rules.
2249         (avr_case_values_threshold): Ditto.
2250         (avr_attribute_table): Move down.
2251
2252 2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
2253
2254         PR tree-optimization/50730
2255         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
2256         analysis if encountered unsupported data-ref.
2257
2258 2011-10-23  David S. Miller  <davem@davemloft.net>
2259
2260         * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
2261         cpu adjustment.
2262         * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
2263         append -mcpu=v9 when -mv8plus is given.
2264
2265         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
2266         between float and non-float regs when VIS3.
2267         * config/sparc/sparc.c (eligible_for_restore_insn): We can't
2268         use a restore when the source is a float register.
2269         (sparc_split_regreg_legitimate): When VIS3 allow moves between
2270         float and integer regs.
2271         (sparc_register_move_cost): Adjust to account for VIS3 moves.
2272         (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
2273         integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
2274         (sparc_secondary_reload): On 32-bit with VIS3 when moving between
2275         float and integer regs we sometimes need a FP_REGS class
2276         intermediate move to satisfy the reload.  When this happens
2277         specify an extra cost of 2.
2278         (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
2279         (*movdi_insn_sp32_v9): Likewise.
2280         (*movdi_insn_sp64): Likewise.
2281         (*movsf_insn): Likewise.
2282         (*movdf_insn_sp32_v9): Likewise.
2283         (*movdf_insn_sp64): Likewise.
2284         (*zero_extendsidi2_insn_sp64): Likewise.
2285         (*sign_extendsidi2_insn): Likewise.
2286         (*movsi_insn_vis3): New insn.
2287         (*movdi_insn_sp32_v9_vis3): New insn.
2288         (*movdi_insn_sp64_vis3): New insn.
2289         (*movsf_insn_vis3): New insn.
2290         (*movdf_insn_sp32_v9_vis3): New insn.
2291         (*movdf_insn_sp64_vis3): New insn.
2292         (*zero_extendsidi2_insn_sp64_vis3): New insn.
2293         (*sign_extendsidi2_insn_vis3): New insn.
2294         (TFmode reg/reg split): Make sure both REG operands are float.
2295         (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
2296         easy constant to integer reg alternatives.
2297         (*mov<VM64:mode>_insn_sp64): Likewise.
2298         (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
2299         (*mov<VM32:mode>_insn_vis3): New insn.
2300         (*mov<VM64:mode>_insn_sp64_vis3): New insn.
2301         (*mov<VM64:mode>_insn_sp32_vis3): New insn.
2302         (VM64 reg<-->reg split): New splitter for 32-bit.
2303
2304         * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
2305         * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
2306         Declare it.
2307         * config/sparc/sparc.md (DImode reg/reg split): Use it.
2308         (DFmode reg/reg split): Likewise.
2309
2310         * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
2311         generating fzero and fone instructions.
2312         (DImode const_int --> reg splitter): Only trigger for integer regs.
2313
2314         * config/sparc/predicates.md (input_operand): Disallow vector
2315         constants other than 0 and -1.
2316         * config/sparc/sparc.c (sparc_preferred_reload_class): Return
2317         NO_REGS for vector constants other than 0 and -1.
2318
2319         * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
2320         SPARC_INT_REG_P): Define.
2321         (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
2322         (REGNO_OK_FOR_INDEX_P): Likewise.
2323         * config/sparc/sparc.c (gen_df_reg): Likewise.
2324         (eligible_for_return_delay): Likewise.
2325         (eligible_for_sibcall_delay): Likewise.
2326         (sparc_legitimate_address_p): Likewise.
2327         (emit_save_or_restore_regs): Likewise.
2328         (registers_ok_for_ldd_peep): Likewise.
2329         * config/spac/sparc.md (DI mode splitters): Likewise.
2330         (SF mode const splitters): Likewise.
2331         (DF mode splitters): Likewise.
2332         (32-bit DI mode logical op splitters): Likewise.
2333
2334 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2335
2336         PR c++/50841
2337         Revert:
2338         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2339
2340         PR c++/50810
2341         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
2342
2343 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
2344
2345         * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
2346         (VI248_256): Remove mode iterator.
2347         * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
2348         instead of gen_avx2_lshlv4di3.
2349         (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
2350         CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
2351
2352 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
2353
2354         * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
2355         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
2356         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
2357         pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
2358         *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
2359         iterator.  Use sseintprefix mode attribute.
2360         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
2361         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
2362         pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
2363         *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
2364         iterator.  Use sseintprefix mode attribute.
2365         (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
2366         attributes.
2367         (*avx2_gatherdi<mode>): Ditto.
2368         (*avx2_gatherdi<mode>256): Ditto.
2369         (VI48_AVX2): Remove mode iterator.
2370         (gthrlastfp): Remove mode attribute.
2371
2372 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2373
2374         PR c++/50810
2375         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
2376
2377 2011-10-23  Tom de Vries  <tom@codesourcery.com>
2378
2379         PR tree-optimization/50763
2380         * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
2381         out of ...
2382         (same_succ_flush_bbs): Use same_succ_flush_bb.
2383         (purge_bbs): Remove argument.  Remove calls to same_succ_flush_bbs,
2384         release_last_vdef and delete_basic_block.
2385         (unlink_virtual_phi): New function.
2386         (update_vuses): Add and use vuse1_phi_args argument.  Set var to
2387         SSA_NAME_VAR of vuse1 or vuse2, and use var.  Handle case that
2388         def_stmt2 is NULL.  Use phi result as phi arg in case vuse1 or vuse2
2389         is NULL_TREE.  Replace uses of vuse1 if vuse2 is NULL_TREE.  Fix code
2390         to limit replacement of uses.  Propagate phi argument for phis with a
2391         single argument.
2392         (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
2393         Set vuse1_phi_args if vuse1 is a phi defined in bb1.  Add
2394         vuse1_phi_args as argument to call to update_vuses.  Call
2395         release_last_vdef, same_succ_flush_bb, delete_basic_block.  Update
2396         CDI_DOMINATORS info.
2397         (tail_merge_optimize): Remove argument in call to purge_bbs.  Remove
2398         call to free_dominance_info.  Only call calculate_dominance_info once.
2399
2400 2011-10-23  Eric Botcazou  <ebotcazou@adacore.com>
2401
2402         * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
2403
2404         PR tree-optimization/44683
2405         * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
2406         we can be sure that there are no signed zeros involved.
2407
2408 2011-10-23  Jan Hubicka  <jh@suse.cz>
2409
2410         * ipa-inline.c (estimate_badness): Scale up and handle overflows.
2411
2412 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
2413
2414         PR target/50788
2415         * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
2416         Remove (match_dup 0).
2417         (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
2418         (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
2419         (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
2420         (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
2421         (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
2422         (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
2423
2424 2011-10-23  Ira Rosen  <ira.rosen@linaro.org>
2425
2426         PR tree-optimization/50819
2427         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
2428         the last argument.
2429         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
2430         vect_analyze_data_ref_dependences.
2431         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
2432         the last argument.  Check load-after-store dependence for unknown
2433         dependencies in basic blocks.
2434         (vect_analyze_data_ref_dependences): Update call to
2435         vect_analyze_data_ref_dependences.
2436         * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
2437         * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
2438         (vect_slp_analyze_bb_1): Update call to
2439         vect_analyze_data_ref_dependences.  Don't call
2440         vect_bb_vectorizable_with_dependencies.
2441
2442 2011-10-22  David S. Miller  <davem@davemloft.net>
2443
2444         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
2445         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
2446         * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
2447         (sparc_secondary_reload): New function.
2448
2449         * config/sparc/sparc.h (sparc_costs): Remove extern decl.
2450         (struct processor_costs): Move from here..
2451         * config/sparc/sparc.c (struct processor_costs): To here.
2452         (sparc_costs): Mark static.
2453
2454         * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
2455         * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
2456         Get rid of declarations.
2457
2458 2011-10-21  Paul Brook  <paul@codesourcery.com>
2459
2460         * config/c6x/c6x.c (c6x_asm_emit_except_personality,
2461         c6x_asm_init_sections): New functions.
2462         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
2463
2464 2011-10-21  Jakub Jelinek  <jakub@redhat.com>
2465
2466         PR target/50813
2467         * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
2468         V4DImode and V8SImode for !TARGET_AVX2.
2469
2470 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
2471
2472         PR bootstrap/50825
2473         * sched-deps.c (add_dependence): If not doing predication, promote
2474         REG_DEP_CONTROL to REG_DEP_ANTI.
2475
2476 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
2477
2478         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
2479         instead of X to avr_legitimize_reload_address.
2480         * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
2481         first argument's type from rtx to rtx*.
2482         * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
2483         Pass PX to push_reload instead of &X.  Change log messages for
2484         better distinction.
2485
2486 2011-10-21  Roland Stigge  <stigge@antcom.de>
2487
2488         PR translation/47064
2489         * params.def: Fix typo "compilatoin" -> "compilation".
2490
2491 2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>
2492             Kirill Yukhin  <kirill.yukhin@intel.com>
2493
2494         PR target/50740
2495         * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
2496         if max_level allows that.
2497
2498 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
2499
2500         * reg-notes.def (DEP_CONTROL): New.
2501         * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
2502         not doing speculation.
2503         * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
2504         record_hard_reg_uses_1, record_hard_reg_uses): New functions.
2505         * function.c (record_hard_reg_sets, record_hard_reg_uses,
2506         record_hard_reg_uses_1): Remove; move to rtlanal.c.
2507         * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
2508         * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
2509         (MUST_RECOMPUTE_SPEC_P): New macro.
2510         (real_insn_for_shadow): New function.
2511         (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
2512         toggle_cancelled_flags): New static functions.
2513         (schedule_insn): Relax an assert to only check for empty hard back
2514         dependencies.  Skip cancelled dependencies.  Call
2515         check_clobbered_conditions.
2516         (copy_insn_list): Remove function, renamed moved to lists.c.
2517         (save_backtrack_point): Use new spelling copy_INSN_LIST.
2518         (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
2519         (restore_last_backtrack_point): Likewise.  Call toggle_cancelled_flags.
2520         (estimate_insn_tick): Ignore cancelled dependencies.
2521         (haifa_speculate_insn): Move declaration.
2522         (try_ready): Move code into recompute_todo_spec and call it.  Tweak
2523         some asserts.  Ensure predicated patterns are restored if necessary.
2524         Dump DEP_CONTROL flag.
2525         (haifa_change_pattern): Merge with sched_change_pattern.
2526         (sched_change_pattern): Remove function.
2527         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove.  All
2528         uses changed to simply not test NON_FLUSH_JUMP_P.
2529         (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
2530         REG_DEP_CONTROL.
2531         (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
2532         (reg_pending_control_uses, control_dependency_cache): New static
2533         variables.
2534         (sched_get_reverse_condition_uncached): New function.
2535         (sd_find_dep_between): Remove pointless assert.  Look in
2536         control_dependency_cache.
2537         (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
2538         extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
2539         and control_dependency_cache.
2540         (sd_unresolve_dep): Use dep_spec_p.
2541         (add_dependence): Now a wrapper around add_dependence_1, handling
2542         REG_DEP_CONTROL specially.
2543         (flush_pending_lists): Clear pending_jump_insns.
2544         (sched_analyze_1): Handle pending_jump_insns like a memory flush.
2545         (sched_analyze_2): Unconditionally add to pending memory flushes,
2546         keep previous behaviour but apply it to pending_jump_insns instead.
2547         (sched_analyze_insn): Defer adding jump reg dependencies using
2548         reg_pending_control_uses; add them to the control_uses list.  Handle
2549         pending_jump_insns and control_uses when adding dependence lists.
2550         (deps_analyze_insn): Update INSN_COND_DEPS.
2551         (deps_analyze_insn): Add jumps to pending_jump_insns rather than
2552         last_pending_memory_flush.
2553         (init_deps): Initialize pending_jump_insns.
2554         (free_deps): Free control_uses.
2555         (remove_from_deps): Remove from pending_jump_insns.
2556         (init_deps_global): Allocate reg_pending_control_uses).
2557         (finish_deps_global): Free it.
2558         (add_dependence_1): Renamed from add_dependence.  Handle
2559         REG_DEP_CONTROL.
2560         * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
2561         (copy_INSN_LIST, concat_INSN_LIST): Declare.
2562         * sched-int.h (struct deps_reg): Add control_uses.
2563         (struct deps_desc): Add pending_jump_insns.
2564         (struct _haifa_deps_insn_data): Add cond_deps.
2565         (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
2566         (INSN_COND_DEPS, PREDICATED_PAT): New macros.
2567         (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
2568         (DEP_CONTROL): New macro.
2569         (DEP_TYPES): Include it.
2570         (HARD_DEP): Adjust definition.
2571         (DEP_CANCELLED): New macro.
2572         (enum SCHED_FLAGS): Add DO_PREDICATION.
2573         (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
2574         * sched-rgn.c (concat_INSN_LIST): Remove function.
2575         (deps_join): Handle pending_jump_insns.
2576         (free_pending_lists): Likewise.
2577         * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
2578         schedule.
2579
2580 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
2581
2582         PR target/50820
2583         * config/avr/libgcc.S (__EIND__): New define to 0x3C.
2584         (__tablejump__): Consistently use EIND for indirect jump/call.
2585         (__tablejump_elpm__): Ditto.
2586
2587 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
2588
2589         * config/c6x/c6x.md (attr "op_pattern"): New.
2590         (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
2591         * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
2592         Likewise.
2593         * config/c6x/c6x-mult.md: Regenerate.
2594         * config/c6x/c6x.c: Include "regrename.h".
2595         (unit_req_table): New typedef.
2596         (unit_reqs): Use it for the declaration.
2597         (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
2598         get_unit_operand_masks, try_rename_operands, reshuffle_units): New
2599         static functions.
2600         (count_unit_reqs): New arg reqs.  All callers changed.  Use
2601         get_unit_reqs, and don't merge here.
2602         (res_mii): New arg reqs.  All callers changed.  Rewrite to use a loop
2603         using unit_req_factor.
2604         (hwloop_optimize): Call reshuffle_units.  Call merge_unit_reqs after
2605         count_unit_reqs.
2606         (c6x_reorg): Add reg notes problem, and call df_analyze.
2607         * Makefile.in ($(out_object_file)): Depend on regrename.h.
2608
2609 2011-10-21  Kai Tietz  <ktietz@redhat.com>
2610
2611         * fold-const.c (simple_operand_p_2): Handle integral
2612         casts from boolean-operands.
2613
2614 2011-10-21  Jan Hubicka  <jh@suse.cz>
2615
2616         * cgraph.c (dump_cgraph_node): Dump alias flag.
2617         * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
2618         no destination.
2619         (get_alias_symbol): New function.
2620         (output_weakrefs): Output also weakrefs with no destinatoin.
2621         (lto_output_node): Output weakref alias flag when at function boundary.
2622
2623 2011-10-21  Andrew Stubbs  <ams@codesourcery.com>
2624
2625         PR target/50809
2626         * config/arm/driver-arm.c (vendors): Make static.
2627
2628 2011-10-21  Uros Bizjak  <ubizjak@gmail.com>
2629
2630         * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
2631         (ix86_emit_swsqrtsf): Force a into register.
2632
2633 2011-10-20  Mike Stump  <mikestump@comcast.net>
2634
2635         * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
2636         after validate_change wipes it out.
2637
2638 2011-10-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2639
2640         * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
2641         before using the shufb instruction.
2642
2643 2011-10-20  Kirill Yukhin  <kirill.yukhin@intel.com>
2644
2645         PR target/50766
2646         * config/i386/i386.md (bmi_bextr_<mode>): Update register/
2647         memory operand order.
2648         (bmi2_bzhi_<mode>3): Ditto.
2649         (bmi2_pdep_<mode>3): Ditto.
2650         (bmi2_pext_<mode>3): Ditto.
2651
2652 2011-10-20  Richard Henderson  <rth@redhat.com>
2653
2654         * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
2655         * optabs.c (can_vec_perm_expr_p): Update to match.
2656         (expand_vec_perm_expr): Likewise.
2657         * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
2658         from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
2659         * doc/tm.texi.in: Likewise.
2660
2661 2011-10-20  Sergey Ostanevich  <sergos.gnu@gmail.com>
2662
2663         PR target/50572
2664         * config/i386/i386.c (processor_target_table): Change Atom
2665         align_loops_max_skip to 15.
2666
2667 2011-10-20  Richard Henderson  <rth@redhat.com>
2668
2669         * target.def (builtin_vec_perm): Remove.
2670         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
2671
2672         * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
2673         (IX86_BUILTIN_VEC_PERM_*): Remove.
2674         (bdesc_args): Remove vec_perm builtins
2675         (ix86_expand_builtin): Likewise.
2676         (ix86_expand_vec_perm_const_1): Rename from
2677         ix86_expand_vec_perm_builtin_1.
2678         (extract_vec_perm_cst): Merge into...
2679         (ix86_vectorize_vec_perm_const_ok): ... here.  Rename from
2680         ix86_vectorize_builtin_vec_perm_ok.
2681         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
2682
2683         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
2684         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
2685
2686         * config/spu/spu.c (spu_builtin_vec_perm): Remove.
2687         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
2688
2689 2011-10-20  Uros Bizjak  <ubizjak@gmail.com>
2690
2691         PR target/47989
2692         * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
2693         * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
2694         * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
2695         implements vectorized single float division and vectorized sqrtf(x)
2696         with reciprocal sequence with additional Newton-Raphson step with
2697         -ffast-math.
2698
2699 2011-10-20  Dodji Seketeli  <dodji@redhat.com>
2700
2701         * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
2702         ggc_alloced_size_order_for_request into ggc_round_alloc_size like
2703         it was done in ggc-page.c.
2704
2705         PR other/50659
2706         * doc/cppopts.texi: Use @smallexample/@end smallexample in
2707         documentation for -fdebug-cpp instead of @quotation/@end quotation
2708         that is not supported by contrib/texi2pod.pl.
2709
2710 2011-10-19  Jan Hubicka  <jh@suse.cz>
2711
2712         * ipa-inline.c (inline_small_functions): Always update all calles after
2713         inlining.
2714
2715 2011-10-19  Jan Hubicka  <jh@suse.cz>
2716
2717         PR bootstrap/50709
2718         * ipa-inline.c (inline_small_functions): Fix checking code to not make
2719         effect on fibheap stability.
2720
2721 2011-10-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
2722
2723         * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
2724
2725 2011-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2726
2727         PR target/50106
2728         * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
2729         reg size from 1-3.
2730
2731 2011-10-20  Richard Guenther  <rguenther@suse.de>
2732
2733         * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
2734         and rotates to the set of expensive operations.
2735
2736 2011-10-19  David S. Miller  <davem@davemloft.net>
2737
2738         * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
2739         (sparc_emit_set_const32): Likewise.
2740         (sparc_emit_set_const64_longway): Likewise.
2741         (sparc_emit_set_const64): Likewise.
2742         (sparc_legitimize_pic_address): Likewise.
2743         (memory_ok_for_ldd): Likewise.
2744
2745 2011-10-20  Dehao Chen  <dehao@google.com>
2746
2747         * profile.c (compute_branch_probabilities): Compute and dump the
2748         overlap between the static estimation and the instrumentation profile.
2749         (OVERLAP_BASE): New macro.
2750         (compute_frequency_overlap): New function
2751
2752 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
2753
2754         * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
2755         d->op1 instead of d->op0 for the second vpshufb.
2756         (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
2757         (ix86_expand_vec_perm_const): If mask indicates two operands are
2758         needed, but both are the same and expanding them as d.op0 == d.op1
2759         failed, retry with d.op0 != d.op1.
2760         (ix86_expand_vec_perm_builtin): Likewise.  Handle sorry printing
2761         also for d.nelt == 32.
2762
2763         PR middle-end/50754
2764         * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
2765         VEC_PERM_EXPR.
2766
2767 2011-10-19  Bernd Schmidt  <bernds@codesourcery.com>
2768
2769         * regrename.h: New file.
2770         * regrename.c: Include it.  Also include "emit-rtl.h".
2771         (struct du_head, struct du_chain, du_head_p DEF_VEC and
2772         DEF_VEC_ALLOC_P): Move to regrename.h.
2773         (do_replace): Remove declaration.
2774         (insn_rr): New variable.
2775         (cur_operand): New static variable.
2776         (regrename_chain_from_id): Renamed from chain_from_id and no longer
2777         static.  All callers changed.
2778         (record_operand_use): New static function.
2779         (scan_rtx_reg): Use it.
2780         (find_best_rename_reg): New function, broken out of rename_chains.
2781         (rename_chains): Use it.  Don't update chain regno and nregs here, ...
2782         (regrename_do_replace): ... do it here instead.  Renamed from
2783         do_replace, and no longer static.  All callers changed.
2784         (regrename_analyze): No longer static.  New arg bb_mask.
2785         All callers changed.  If bb_mask is nonzero, use it to limit the
2786         number of basic blocks we analyze.  If we failed to analyze a block,
2787         clear insn operand data.
2788         (record_out_operands): New arg insn_info.  Update cur_operand if it is
2789         nonnull.
2790         (build_def_use): If insn_rr is nonnull, pass an insn_info to
2791         record_out_operands, and update cur_operand here as well.
2792         (regrename_init, regrename_finish): New functions.
2793         (regrename_optimize): Use them.
2794         * Makefile.in (regrename.o): Adjust dependencies.
2795
2796 2011-10-19  Tom de Vries  <tom@codesourcery.com>
2797
2798         PR tree-optimization/50769
2799         * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
2800         unconditionally.  Handle case that phi_vuse2 is not an SSA_NAME.  Add
2801         dummy argument .MEM to phi when increasing number of arguments of phi by
2802         redirecting edges to the block with phi.
2803
2804 2011-10-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2805
2806         PR bootstrap/50777
2807         * configure.ac: Save and restore CXXFLAGS around
2808         gcc_AC_CHECK_DECLS uses.
2809         Check for madvise() declaration with g++ if --enable-build-with-cxx.
2810         * configure: Regenerate.
2811         * config.in: Regenerate.
2812         * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
2813
2814 2011-10-19  Alexandre Oliva  <aoliva@redhat.com>
2815
2816         PR debug/49310
2817         * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
2818         (variable_part): Replace offset with union.
2819         (enum onepart_enum, onepart_enum_t): New.
2820         (variable_def): Drop cur_loc_changed, add onepart.
2821         (value_chain_def, const_value_chain): Remove.
2822         (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
2823         (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
2824         (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
2825         (value_chain_pool, value_chains): Remove.
2826         (dropped_values): New.
2827         (struct parm_reg): Only if HAVE_window_save.
2828         (vt_stack_adjustments): Don't record register arguments.
2829         (dv_as_rtx): New.
2830         (dv_onepart_p): Return a onepart_enum_t.
2831         (onepart_pool): New.
2832         (dv_pool): Remove.
2833         (dv_from_rtx): New.
2834         (variable_htab_free): Release onepart aux data.  Reset flags.
2835         (value_chain_htab_hash, value_chain_htab_eq): Remove.
2836         (unshare_variable): Use onepart field.  Propagate onepart aux
2837         data or offset.  Drop cur_loc_changed.
2838         (val_store): Cope with NULL insn.  Rephrase dump output.  Check
2839         for unsuitable locs.  Add FIXME on using cselib locs.
2840         (val_reset): Remove FIXME of unfounded concerns.
2841         (val_resolve): Check for unsuitable locs.  Add FIXME on using
2842         cselib locs.
2843         (variable_union): Use onepart field, adjust access to offset.
2844         (NO_LOC_P): New.
2845         (VALUE_CHANGED, DECL_CHANGED): Update doc.
2846         (set_dv_changed): Clear NO_LOC_P when changed.
2847         (find_loc_in_1pdv): Use onepart field.
2848         (intersect_loc_chains): Likewise.
2849         (unsuitable_loc): New.
2850         (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
2851         (add_value_chain, add_value_chains): Remove.
2852         (add_cselib_value_chains, remove_value_chain): Likewise.
2853         (remove_value_chains, remove_cselib_value_chains): Likewise.
2854         (canonicalize_loc_order_check): Use onepart.  Drop cur_loc_changed.
2855         (canonicalize_values_star, canonicalize_vars_star): Use onepart.
2856         (variable_merge_over_cur): Likewise.  Adjust access to offset.
2857         Drop cur_loc_changed.
2858         (variable_merge_over_src): Use onepart field.
2859         (remove_duplicate_values): Likewise.
2860         (variable_post_merge_new_vals): Likewise.
2861         (find_mem_expr_in_1pdv): Likewise.
2862         (dataflow_set_preserve_mem_locs): Likewise.  Drop cur_loc_changed
2863         and value chains.
2864         (dataflow_set_remove_mem_locs): Likewise.  Use VAR_LOC_FROM.
2865         (variable_different_p): Use onepart field.  Move onepart test out
2866         of the loop.
2867         (argument_reg_set): Drop.
2868         (add_uses, add_stores): Preserve but do not record in dynamic
2869         tables equivalences for ENTRY_VALUEs and CFA_based addresses.
2870         Avoid unsuitable address expressions.
2871         (EXPR_DEPTH): Unlimit.
2872         (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
2873         (prepare_call_arguments): Use DECL_RTL_IF_SET.
2874         (dump_var): Adjust access to offset.
2875         (variable_from_dropped, recover_dropped_1paux): New.
2876         (variable_was_changed): Drop cur_loc_changed.  Use onepart.
2877         Preserve onepart aux in empty_var.  Recover empty_var and onepart
2878         aux from dropped_values.
2879         (find_variable_location_part): Special-case onepart.  Adjust
2880         access to offset.
2881         (set_slot_part): Use onepart.  Drop cur_loc_changed.  Adjust
2882         access to offset.  Initialize onepaux.  Drop value chains.
2883         (delete_slot_part): Drop value chains.  Use VAR_LOC_FROM.
2884         (VEC (variable, heap), VEC (rtx, stack)): Define.
2885         (expand_loc_callback_data): Drop dummy, cur_loc_changed,
2886         ignore_cur_loc.  Add expanding, pending, depth.
2887         (loc_exp_dep_alloc, loc_exp_dep_clear): New.
2888         (loc_exp_dep_insert, loc_exp_dep_set): New.
2889         (notify_dependents_of_resolved_value): New.
2890         (update_depth, vt_expand_var_loc_chain): New.
2891         (vt_expand_loc_callback): Revamped.
2892         (resolve_expansions_pending_recursion): New.
2893         (INIT_ELCD, FINI_ELCD): New.
2894         (vt_expand_loc): Use the new macros above.  Drop ignore_cur_loc
2895         parameter, adjust all callers.
2896         (vt_expand_loc_dummy): Drop.
2897         (vt_expand_1pvar): New.
2898         (emit_note_insn_var_location): Operate on non-debug decls only.
2899         Revamp multi-part cur_loc recomputation and one-part expansion.
2900         Drop cur_loc_changed.  Adjust access to offset.
2901         (VEC (variable, heap)): Drop.
2902         (changed_variables_stack, changed_values_stack): Drop.
2903         (check_changed_vars_0, check_changed_vars_1): Remove.
2904         (check_changed_vars_2, check_changed_vars_3): Remove.
2905         (values_to_stack, remove_value_from_changed_variables): New.
2906         (notify_dependents_of_changed_value, process_changed_values): New.
2907         (emit_notes_for_changes): Revamp onepart updates.
2908         (emit_notes_for_differences_1): Use onepart.  Drop cur_loc_changed
2909         and value chains.  Propagate onepaux.  Recover empty_var and onepaux
2910         from dropped_values.
2911         (emit_notes_for_differences_2): Drop value chains.
2912         (emit_notes_in_bb): Adjust.
2913         (vt_emit_notes): Drop value chains, changed_variables_stack.
2914         Initialize and release dropped_values.
2915         (create_entry_value): Revamp.
2916         (vt_add_function_parameter): Use new interface.
2917         (note_register_arguments): Remove.
2918         (vt_initialize): Drop value chains and register arguments.
2919         (vt_finalize): Drop value chains.  Release windowed_parm_regs only
2920         if HAVE_window_save.
2921         * rtl.h: Document various pass-local uses of RTL flags.
2922         * tree.h (DECL_RTL_KNOWN_SET): New.
2923         * doc/invoke.texi (param max-vartrack-expr-depth): Update
2924         description and default.
2925
2926 2011-10-19  Georg-Johann Lay  <avr@gjlay.de>
2927
2928         PR target/50447
2929         * config/avr/avr.md (cc): New alternative out_plus_noclobber.
2930         (adjust_len): Ditto.
2931         (addhi3): Don't pipe through short; use gen_int_mode instead.
2932         Prior to reload, expand to gen_addhi3_clobber.
2933         (*addhi3): Use avr_out_plus_noclobber if applicable, use
2934         out_plus_noclobber in cc and adjust_len attribute.
2935         (addhi3_clobber): 2 new RTL peepholes.
2936         (addhi3_clobber): New insn.
2937         * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
2938         * config/avr/avr.c (avr_out_plus_noclobber): New function.
2939         (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
2940         (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
2941         Set cc0 to set_zn for adiw on 16-bit values.
2942         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
2943         (expand_epilogue): No need to add 0 to frame_pointer_rtx.
2944
2945 2011-10-19  Richard Guenther  <rguenther@suse.de>
2946
2947         PR middle-end/50780
2948         * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
2949         the condition is properly gimple before using it.
2950         * tree-eh (stmt_could_throw_1_p): Properly extract the
2951         operation type from comparisons.
2952
2953 2011-10-19  Roland Stigge  <stigge@antcom.de>
2954
2955         PR translation/48638
2956         * plugin.c (add_new_plugin): Fix typo in fatal_error message.
2957
2958 2011-10-19  Roland Stigge  <stigge@antcom.de>
2959
2960         PR translation/49517
2961         * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
2962
2963 2011-10-19  Richard Guenther  <rguenther@suse.de>
2964
2965         PR middle-end/50768
2966         * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
2967
2968 2011-10-19  Andrey Belevantsev  <abel@ispras.ru>
2969
2970         PR rtl-optimization/50340
2971         * sel-sched-ir.c (update_target_availability): LHS register
2972         availability is not known if the unavailable LHS of the other
2973         expression is a different register.
2974
2975 2011-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2976
2977         PR target/50310
2978         * config/spu/spu.c (spu_emit_vector_compare): Support unordered
2979         floating-point comparisons.
2980
2981 2011-10-19  Jan Hubicka  <jh@suse.cz>
2982
2983         * cgraphunit.c (handle_alias_pairs): Also handle wekref with
2984         destination declared.
2985         (output_weakrefs): New function.
2986         * varpool.c (varpool_create_variable_alias): Handle external aliases.
2987
2988 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
2989
2990         * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
2991         second argument instead of mode.
2992
2993 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
2994
2995         * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
2996         mode SUBREG of operands[0] as target.
2997         (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
2998         (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
2999         (expand_vec_perm_1): Handle identity and some broadcast
3000         permutations.
3001         (expand_vec_perm_interleave2): Handle also 32-byte modes, using
3002         vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
3003         For d->testing_p return true earlier to avoid creating more GC
3004         garbage.
3005         (expand_vec_perm_vpermq_perm_1): New function.
3006         (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
3007         earlier to avoid creating more GC garbage.  Fix handling of
3008         V16HImode.  Avoid some SUBREGs in SET_DEST.
3009         (expand_vec_perm_broadcast_1): Return false for 32-byte integer
3010         vector modes.
3011         (expand_vec_perm_vpshufb4_vpermq2): New function.
3012         (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
3013         and expand_vec_perm_vpshufb4_vpermq2.
3014
3015 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
3016
3017         * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
3018         before exiting.
3019
3020 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
3021
3022         PR tree-optimization/50717
3023         * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
3024         parameter.  Calculate 'type' from stmt.
3025         (convert_mult_to_widen): Update call the is_widening_mult_p.
3026         (convert_plusminus_to_widen): Likewise.
3027
3028 2011-10-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3029
3030         * config/spu/spu.c (struct machine_function): New data structure.
3031         (spu_init_machine_status): New function.
3032         (spu_option_override): Install it.
3033         (get_pic_reg): Set and use cfun->machine->pic_reg.
3034         (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
3035         (need_to_save_reg): Use cfun->machine->pic_reg instead of
3036         checking crtl->uses_pic_offset_table.
3037         (spu_expand_prologue): Likewise.
3038
3039 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
3040
3041         PR tree-optimization/50735
3042         * function.c (gimplify_parameters): Use create_tmp_var instead of
3043         create_tmp_reg.  If parm is not TREE_ADDRESSABLE and type is complex
3044         or vector type, set DECL_GIMPLE_REG_P.
3045
3046 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
3047
3048         * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
3049         * config/arm/arm.opt: Add 'native' processor_type and
3050         arm_arch enum values.
3051         * config/arm/arm.h (host_detect_local_cpu): New prototype.
3052         (EXTRA_SPEC_FUNCTIONS): New define.
3053         (MCPU_MTUNE_NATIVE_SPECS): New define.
3054         (DRIVER_SELF_SPECS): New define.
3055         * config/arm/driver-arm.c: New file.
3056         * config/arm/x-arm: New file.
3057         * doc/invoke.texi (ARM Options): Document -mcpu=native,
3058         -mtune=native and -march=native.
3059
3060 2011-10-18  Alexander Monakov  <amonakov@ispras.ru>
3061
3062         PR rtl-optimization/50205
3063         * sel-sched.c (count_occurrences_1): Simplify on the assumption that
3064         p->x is a register.  Forbid substitution when the same register is
3065         found in a different mode.
3066         (count_occurrences_equiv): Assert that 'what' is a register.
3067
3068 2011-10-18  Richard Guenther  <rguenther@suse.de>
3069
3070         PR tree-optimization/50767
3071         * tree-ssa-pre.c (create_expression_by_pieces): Update the
3072         folded statement.
3073
3074 2011-10-18  Julian Brown  <julian@codesourcery.com>
3075
3076         * config/arm/arm.c (arm_block_move_unaligned_straight)
3077         (arm_adjust_block_mem, arm_block_move_unaligned_loop)
3078         (arm_movmemqi_unaligned): New.
3079         (arm_gen_movmemqi): Support unaligned block copies.
3080
3081 2011-10-18  Ira Rosen  <ira.rosen@linaro.org>
3082
3083         * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
3084         vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
3085         * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
3086         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
3087         (op_code_prio): Likewise.
3088         (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
3089         * optabs.c (optab_for_tree_code): Handle
3090         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
3091         (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
3092         * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
3093         * genopinit.c (optabs): Initialize the new optabs.
3094         * expr.c (expand_expr_real_2): Handle
3095         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
3096         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
3097         * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
3098         * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
3099         VEC_WIDEN_LSHIFT_LO_EXPR): New.
3100         * cfgexpand.c (expand_debug_expr): Handle new tree codes.
3101         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3102         vect_recog_widen_shift_pattern.
3103         (vect_handle_widen_mult_by_const): Rename...
3104         (vect_handle_widen_op_by_const): ...to this.  Handle shifts.
3105         Add a new argument, update documentation.
3106         (vect_recog_widen_mult_pattern): Assume that only second
3107         operand can be constant.  Update call to
3108         vect_handle_widen_op_by_const.
3109         (vect_recog_over_widening_pattern): Fix typo.
3110         (vect_recog_widen_shift_pattern): New.
3111         * tree-vect-stmts.c (vectorizable_type_promotion): Handle
3112         widening shifts.
3113         (supportable_widening_operation): Likewise.
3114         * tree-inline.c (estimate_operator_cost): Handle new tree codes.
3115         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
3116         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
3117         * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
3118         (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
3119         vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
3120         Likewise.
3121         * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
3122         New.
3123         * config/arm/iterators.md (V_innermode): New.
3124         * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
3125         for widening shift.
3126
3127 2011-10-18  Richard Guenther  <rguenther@suse.de>
3128
3129         * tree-ssa-alias.h (struct pt_solution): Remove
3130         vars_contains_restrict member.
3131         (pt_solutions_same_restrict_base): Remove.
3132         (pt_solution_set): Adjust.
3133         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
3134         vars_contains_restrict handling.
3135         (dump_points_to_solution): Likewise.
3136         (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
3137         * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
3138         field.
3139         (new_var_info): Do not initialize it.
3140         (ipa_escaped_pt): Adjust.
3141         (make_constraint_from_restrict): Make the tag global.
3142         (make_constraint_from_global_restrict): New function.
3143         (make_constraint_from_heapvar): Remove.
3144         (create_variable_info_for): Do not make restrict vars point
3145         to NONLOCAL.
3146         (intra_create_variable_infos): Likewise.
3147         (find_what_var_points_to): Remove vars_contains_restrict handling.
3148         (pt_solution_set): Adjust.
3149         (pt_solution_ior_into): Likewise.
3150         (pt_solutions_same_restrict_base): Remove.
3151         (compute_points_to_sets): Do not test is_restrict_var.
3152         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
3153         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
3154
3155 2011-10-18  Tom de Vries  <tom@codesourcery.com>
3156
3157         PR tree-optimization/50672
3158         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
3159         factored out of ...
3160         (mark_virtual_phi_result_for_renaming): Use
3161         mark_virtual_operand_for_renaming.
3162         * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
3163         * tree-ssa-tail-merge.c (release_last_vdef): New function.
3164         (purge_bbs): Add update_vops parameter.  Call release_last_vdef for each
3165         deleted basic block.
3166         (tail_merge_optimize): Add argument to call to purge_bbs.
3167
3168 2011-10-18  Richard Guenther  <rguenther@suse.de>
3169
3170         PR middle-end/50716
3171         * expr.c (get_object_or_type_alignment): New function.
3172         (expand_assignment): Use it.
3173         (expand_expr_real_1): Likewise.
3174
3175 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
3176
3177         PR bootstrap/50760
3178         * input.c (dump_line_table_statistics): Use long, not size_t.
3179
3180 2011-10-17  Eric Botcazou  <ebotcazou@adacore.com>
3181
3182         * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
3183
3184 2011-10-17  Simon Baldwin  <simonb@google.com>
3185             Ian Lance Taylor  <iant@google.com>
3186
3187         * configure.ac: Add --with-native-system-header-dir.  Set and
3188         substitute NATIVE_SYSTEM_HEADER_DIR.  Use native_system_header
3189         when setting target_header_dir.
3190         * config.gcc: Always set native_system_header_dir.
3191         (*-*-gnu*): Set native_system_header_dir.  Don't use t-gnu.
3192         (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir.  Don't
3193         use i386/t-djgpp.
3194         (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
3195         native_system_header_dir.
3196         (spu-*-elf*): Set native_system_header_dir.
3197         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
3198         @NATIVE_SYSTEM_HEADER_DIR@.
3199         (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
3200         * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
3201         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
3202         STANDARD_INCLUDE_COMPONENT.
3203         (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR.  Rename
3204         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
3205         * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
3206         STANDARD_INCLUDE_COMPONENT.
3207         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
3208         * config/i386/t-mingw-w32: Likewise.
3209         * config/i386/t-mingw-w64: Likewise.
3210         * config/spu/t-spu-elf: Likewise.
3211         * config/i386/t-djgpp: Remove.
3212         * config/t-gnu: Remove.
3213         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
3214         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
3215         STANDARD_INCLUDE_COMPONENT.
3216         * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
3217         * config/spu/spu-elf.h: Likewise.
3218         * config/vms/xm-vms.h: Likewise.
3219         * config/gnu.h: Likewise.
3220         * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
3221         and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
3222         NATIVE_SYSTME_HEADER_COMPONENT.
3223         * doc/install.texi (Configuration): Document
3224         --with-native-system-header-dir.  Mention it in the documentation
3225         for --with-sysroot and --with-build-sysroot.
3226         * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
3227         STANDARD_INCLUDE_DIR.  Rename STANDARD_INCLUDE_COMPONENT to
3228         NATIVE_SYSTEM_HEADER_COMPONENT.  Rename uses of
3229         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
3230         * doc/fragments.texi (Target Fragment): Don't document
3231         NATIVE_SYSTEM_HEADER_DIR.
3232         * configure, doc/tm.texi: Rebuild.
3233
3234 2011-10-17  Richard Henderson  <rth@redhat.com>
3235
3236         * config/sparc/sparc.md: Use register_or_zero_operand where rJ
3237         is the constraint.
3238
3239         * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
3240         patterns.
3241         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
3242         * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
3243
3244 2011-10-17  David S. Miller  <davem@davemloft.net>
3245
3246         * config/sparc/sparc-modes.def: Add single entry vector modes for
3247         DImode and SImode.
3248         * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
3249         mode iterators.
3250         (mov<V32:mode>): Revert back to plain SFmode pattern.
3251         (*movsf_insn): Likewise.
3252         (mov<V64:mode>): Revert back to plain DFmode pattern.
3253         (*movdf_insn_sp32): Likewise.
3254         (*movdf_insn_sp32_v9): Likewise.
3255         (*movdf_insn_sp64): Likewise.
3256         (V64 mode splitters) Likewise.
3257         (addsi3): Remove VIS alternatives.
3258         (subsi3): Likewise.
3259         (and<V64I:mode>3): Revert to DImode only pattern.
3260         (and<V64I:mode>3_sp32): Likewise.
3261         (*and<V64I:mode>3_sp64): Likewise.
3262         (and<V32I:mode>3): Likewise.
3263         (*and_not_<V64I:mode>_sp32): Likewise.
3264         (*and_not_<V64I:mode>_sp64): Likewise.
3265         (*and_not_<V32I:mode>): Likewise.
3266         (ior<V64I:mode>3): Likewise.
3267         (*ior<V64I:mode>3_sp32): Likewise.
3268         (*ior<V64I:mode>3_sp64): Likewise.
3269         (ior<V32I:mode>3): Likewise.
3270         (*or_not_<V64I:mode>_sp32): Likewise.
3271         (*or_not_<V64I:mode>_sp64): Likewise.
3272         (*or_not_<V32I:mode>): Likewise.
3273         (xor<V64I:mode>3): Likewise.
3274         (*xor<V64I:mode>3_sp32): Likewise.
3275         (*xor<V64I:mode>3_sp64): Likewise.
3276         (xor<V32I:mode>3): Likewise.
3277         (V64I mode splitters): Likewise.
3278         (*xor_not_<V64I:mode>_sp32): Likewise.
3279         (*xor_not_<V64I:mode>_sp64): Likewise.
3280         (*xor_not_<V32I:mode>): Likewise.
3281         (one_cmpl<V64I:mode>2): Likewise.
3282         (*one_cmpl<V64I:mode>2_sp32): Likewise.
3283         (*one_cmpl<V64I:mode>2_sp64): Likewise.
3284         (one_cmpl<V32I:mode>2): Likewise.
3285         (VM32, VM64, VMALL): New mode iterators.
3286         (vbits, vconstr, vfptype): New mode attributes.
3287         (mov<VMALL:mode>): New expander.
3288         (*mov<VM32:mode>_insn): New insn.
3289         (*mov<VM64:mode>_insn_sp64): New insn.
3290         (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
3291         specifically for the register to memory case.
3292         (vec_init<mode>): New expander.
3293         (VADDSUB): New mode iterator.
3294         (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
3295         with...
3296         (<plusminus_insn><mode>3): New consolidated pattern.
3297         (VL): New mode iterator for logical operations.
3298         (vlsuf): New more attribute.
3299         (vlop): New code iterator.
3300         (vlinsn, vlninsn): New code attributes.
3301         (<code><mode>3): New insn to non-negated vector logical ops.
3302         (*not_<code><mode>3): Likewise for negated variants.
3303         (*nand<mode>_vis): New insn.
3304         (vlnotop): New code iterator.
3305         (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
3306         (one_cmpl<mode>2): New insn.
3307         (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
3308         (bshuffle<VM64:mode>_vis): Likewise.
3309         (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
3310         (fp<plusminus_insn>64_vis): Use V1DI mode.
3311         (VASS mode iterator): Use V1SI not SI mode.
3312         * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
3313         single-entry vector mode changes.
3314         (sparc_expand_builtin): Likewise.
3315         (sparc_expand_vector_init): New function.
3316         * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
3317
3318 2011-10-17  Kai Tietz  <ktietz@redhat.com>
3319
3320         * fold-const.c (simple_operand_p_2): New function.
3321         (fold_truthop): Rename to
3322         (fold_truth_andor_1): function name.
3323         Additionally remove branching creation for logical and/or.
3324         (fold_truth_andor): Handle branching creation for logical and/or here.
3325
3326 2011-10-17  Andi Kleen  <ak@linux.intel.com>
3327
3328         * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
3329
3330 2011-10-17  Georg-Johann Lay  <avr@gjlay.de>
3331
3332         * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
3333         * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
3334         (adjust_len): Add alternative "call".
3335         (isa, enabled): New insn attributes.
3336         (length): Use match_test with AVR_HAVE_JMP_CALL instead of
3337         mcu_mega attribute.
3338         (*sbrx_branch<mode>): Ditto.
3339         (*sbrx_and_branch<mode>): Ditto.
3340         (*sbix_branch): Ditto.
3341         (*sbix_branch_bit7): Ditto.
3342         (*sbix_branch_tmp): Ditto.
3343         (*sbix_branch_tmp_bit7): Ditto.
3344         (jump): Ditto.
3345         (negsi2): Use attribute "isa" instead of assembler dialect.
3346         (extendhisi2): Ditto.
3347         (call_insn, call_value_insn): Set adjust_len attribute.
3348         (indirect_jump): Indent to coding rules.
3349         (call_prologue_saves): Use isa attribute instead of mcu_mega.
3350         (epilogue_restores): Ditto.  Fix setting of SP as described in the
3351         RTX pattern.
3352         (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
3353         and *indirect_jump_avr6.
3354         (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
3355         (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
3356         (*tablejump_rjmp, *tablejump_lib): Remove.
3357         * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
3358
3359 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
3360
3361         PR c++/50757
3362         * doc/invoke.texi ([Wnonnull]): Update.
3363
3364 2011-10-17  Richard Henderson  <rth@redhat.com>
3365
3366         PR 50746
3367         * optabs.c (expand_vec_perm_expr): Fix indexing error.
3368
3369 2011-10-17  Sergio Durigan Junior  <sergiodj@redhat.com>
3370
3371         * configure.ac: Display `yes' if the SystemTap header has been found.
3372         * configure: Regenerate.
3373
3374 2011-10-08  Andi Kleen  <ak@linux.intel.com>
3375
3376         PR other/50636
3377         * config.in, configure: Regenerate.
3378         * configure.ac (madvise): Add to AC_CHECK_FUNCS.
3379         * ggc-page.c (USING_MADVISE): Add.
3380         (page_entry): Add discarded field.
3381         (alloc_page): Check for discarded pages.
3382         (release_pages): Add USING_MADVISE branch.
3383
3384 2011-10-17  Richard Guenther  <rguenther@suse.de>
3385
3386         PR tree-optimization/50729
3387         * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
3388         (simplify_conversion_using_ranges): Properly test the
3389         intermediate result.
3390
3391 2011-10-15  Tom Tromey  <tromey@redhat.com>
3392             Dodji Seketeli  <dodji@redhat.com>
3393
3394         * ggc.h (ggc_round_alloc_size): Declare new public entry point.
3395         * ggc-none.c (ggc_round_alloc_size): New public stub function.
3396         * ggc-page.c (ggc_alloced_size_order_for_request): New static
3397         function.  Factorized from ggc_internal_alloc_stat.
3398         (ggc_round_alloc_size): New public function.  Uses
3399         ggc_alloced_size_order_for_request.
3400         (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
3401         * ggc-zone.c (ggc_round_alloc_size): New public function extracted
3402         from ggc_internal_alloc_zone_stat.
3403         (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
3404         * toplev.c (general_init): Initialize
3405         line_table->alloced_size_for_request.
3406
3407 2011-10-15  Tom Tromey  <tromey@redhat.com>
3408             Dodji Seketeli  <dodji@redhat.com>
3409
3410         * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
3411         (num_expanded_macros_counter, num_macro_tokens_counter): Declare
3412         new counters.
3413         (dump_line_table_statistics): Define new function.
3414         * input.h (dump_line_table_statistics): Declare new function.
3415         * toplev.c (dump_memory_report): Call dump_line_table_statistics.
3416
3417 2011-10-15  Tom Tromey  <tromey@redhat.com>
3418             Dodji Seketeli  <dodji@redhat.com>
3419
3420         * doc/cppopts.texi: Document -fdebug-cpp.
3421         * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
3422
3423 2011-10-15  Tom Tromey  <tromey@redhat.com>
3424             Dodji Seketeli  <dodji@redhat.com>
3425
3426         * gcc/diagnostic.h (diagnostic_report_current_module): Add a
3427         location parameter.
3428         * diagnostic.c (diagnostic_report_current_module): Add a location
3429         parameter to the function definition.  Use it instead of
3430         input_location.  Resolve the virtual location rather than just
3431         looking up its map and risking to touch a resulting macro map.
3432         (default_diagnostic_starter): Pass the relevant diagnostic
3433         location to diagnostic_report_current_module.
3434         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
3435         (virt_loc_aware_diagnostic_finalizer): Likewise.
3436         (diagnostic_report_current_function): Pass the
3437         relevant location to diagnostic_report_current_module.
3438         * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
3439         new function.
3440         * toplev.c (general_init): By default, use the new
3441         virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
3442         * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
3443
3444 2011-10-15  Tom Tromey  <tromey@redhat.com>
3445             Dodji Seketeli  <dodji@redhat.com>
3446
3447         * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
3448         * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
3449         preprocessor related options.
3450
3451 2011-10-15  Tom Tromey  <tromey@redhat>
3452             Dodji Seketeli  <dodji@redhat.com>
3453
3454         * input.h (struct expanded_location): Move to libcpp/line-map.h.
3455         (LOCATION_COLUMN): New accessor
3456         (in_system_header_at): Use linemap_location_in_system_header_p.
3457         * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
3458         touching the internals of struct line_map.  Use the public API instead.
3459         (diagnostic_report_diagnostic): Don't use relational operator '<'
3460         on virtual locations.  Use linemap_location_before_p instead.
3461         * input.c (expand_location): Adjust to expand to the tokens'
3462         spelling location when macro location tracking is on.
3463
3464
3465 2011-10-08  Andi Kleen  <ak@linux.intel.com>
3466
3467         * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
3468
3469 2011-10-13  Andi Kleen  <ak@linux.intel.com>
3470
3471         * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
3472
3473 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
3474
3475         PR tree-optimization/50727
3476         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
3477         DEF_STMT to the list of statements to be replaced by the
3478         pattern statements.
3479
3480 2011-10-16  Eric Botcazou  <ebotcazou@adacore.com>
3481
3482         PR rtl-optimization/50615
3483         * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
3484
3485 2011-10-16  Jakub Jelinek  <jakub@redhat.com>
3486
3487         PR tree-optimization/50596
3488         * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
3489         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3490         vect_recog_bool_pattern.
3491         (check_bool_pattern, adjust_bool_pattern_cast,
3492         adjust_bool_pattern, vect_recog_bool_pattern): New functions.
3493
3494 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
3495
3496         * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
3497         treat the first load of the node as the first element in its
3498         interleaving chain.
3499         * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
3500         necessary and possible.
3501         (vect_build_slp_tree): Add new argument.  Allow load groups of any size
3502         in basic blocks.  Keep all the loads for further permutation check.
3503         Use the new argument to determine if there is a permutation.  Update
3504         the recursive calls.
3505         (vect_supported_load_permutation_p): Allow subchains of interleaving
3506         chains in basic block vectorization.
3507         (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
3508         Check load permutation based on the new parameter.
3509         (vect_schedule_slp_instance): Don't start from the first element in
3510         interleaving chain unless the loads are permuted.
3511
3512 2011-10-15  Jan Hubicka  <jh@suse.cz>
3513
3514         PR target/48668
3515         PR target/50689
3516         * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
3517         after function body.
3518
3519 2011-10-15  Richard Henderson  <rth@redhat.com>
3520
3521         * tree-vect-slp.c: Include langhooks.h.
3522         (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
3523         (vect_transform_slp_perm_load): Use can_vec_perm_expr_p.  Simplify
3524         mask creation for VEC_PERM_EXPR.
3525         * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
3526         not the builtin.
3527         (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
3528         * Makefile.in (tree-vect-slp.o): Update dependency.
3529         * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
3530
3531 2011-10-15  Alan Modra  <amodra@gmail.com>
3532
3533         PR bootstrap/50738
3534         * ifcvt.c (dead_or_predicable): Revert accidental commit with
3535         HAVE_simple_return test.
3536
3537 2011-10-15  Alan Modra  <amodra@gmail.com>
3538
3539         * ifcvt.c (dead_or_predicable): Disable if-conversion when
3540         doing so is likely to kill a shrink-wrapping opportunity.
3541
3542         PR rtl-optimization/49941
3543         * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
3544
3545         * rtl.h (set_return_jump_label): Declare.
3546         * function.c (set_return_jump_label): New function, extracted..
3547         (thread_prologue_and_epilogue_insns): ..from here.  Use it in
3548         another instance to set return jump_label.
3549         * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
3550         * reorg.c (find_end_label): Likewise.
3551
3552 2011-10-14  David S. Miller  <davem@davemloft.net>
3553
3554         * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
3555         with a more complete cpp test.
3556         * config/sparc/linux64.h: Likewise.
3557         * config/sparc/linux.h: Likewise.
3558         * config/sparc/sparc.opt (sparc_debug): New target variable.
3559         (mdebug): New target option.
3560         * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
3561         TARGET_DEBUG_OPTIONS): New defines.
3562         * config/sparc/sparc.c (debug_target_flag_bits,
3563         debug_target_flags): New functions.
3564         (sparc_option_override): Add name strings back to cpu_table[].
3565         Parse -mdebug string.  When TARGET_DEBUG_OPTIONS is true, print
3566         out the target flags before and after override processing as well
3567         as the selected cpu.  If MASK_V8PLUS, make sure that the selected
3568         cpu is at least v9.
3569
3570 2011-10-15  Oleg Endo  <oleg.endo@t-online.de>
3571
3572         PR target/49263
3573         * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
3574         * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
3575         * config/sh/sh.md (tstsi_t): Name existing insn.  Make inner
3576         and instruction commutative.
3577         (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
3578         tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
3579         tstsi_t_zero_extract_subreg_xor_little,
3580         tstsi_t_zero_extract_subreg_xor_big): New insns.
3581         (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
3582         asm output.
3583         (*andsi_compact): Reorder alternatives so that K08 is considered first.
3584
3585 2011-10-14  Eric Botcazou  <ebotcazou@adacore.com>
3586
3587         PR target/50354
3588         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
3589         processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
3590
3591 2011-10-14  Gerald Pfeifer  <gerald@pfeifer.com>
3592
3593         * invoke.texi (AVR Options): Avoid \leq{}.
3594
3595 2011-10-14  Kai Tietz  <ktietz@redhat.com>
3596
3597         * gimplify.c (gimplify_expr): Take care that for bitwise-binary
3598         transformation the operands have compatible types.
3599
3600 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
3601
3602         * config/i386/sse.md (vec_widen_smult_hi_v8hi,
3603         vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
3604         vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
3605         mode iterator and any_extend code iterator.
3606         (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
3607         (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
3608         also for TARGET_SSE4_1 using pmuldq insn.
3609         (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
3610         (sse2_sse4_1): New code attr.
3611         (udot_prodv4si): Macroize using any_extend code iterator.
3612         (<s>dot_prodv8si): New expander.
3613
3614 2011-10-14  Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
3615
3616         * config/i386/i386.c (atom_cost): Changed cost for loading
3617         QImode using movzbl.
3618
3619 2011-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3620
3621         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
3622         change on October 11th, 2011.
3623
3624 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
3625
3626         * config/i386/sse.md (vec_interleave_high<mode>,
3627         vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
3628         * config/i386/i386.c (expand_vec_perm_interleave3): New function.
3629         (ix86_expand_vec_perm_builtin_1): Call it.
3630
3631 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
3632
3633         Fix thinko from r179765
3634         * config/avr/avr.c (avr_option_override): Don't override
3635         flag_omit_frame_pointer if not actually needed.
3636
3637 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
3638
3639         PR target/46278
3640         * doc/invoke.texi (AVR Options): Document -mstrict-X.
3641
3642         * config/avr/avr.opt (-mstrict-X): New option.
3643         (avr_strict_X): New variable reflecting -mstrict-X.
3644         * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
3645         outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
3646         (avr_legitimate_address_p): Pass outer_code to
3647         avr_reg_ok_for_addr_p and use that function in case PLUS.
3648         (avr_mode_code_base_reg_class): Depend on avr_strict_X.
3649         (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
3650         (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
3651
3652 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
3653
3654         * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
3655         of VI_128.
3656
3657         * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
3658         (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
3659         Use <sseinsnmode> instead of TI in mode attr.
3660
3661 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
3662
3663         * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
3664         * config/arm/linux-atomic.c: Change comment to point to 64bit version.
3665         (SYNC_LOCK_RELEASE): Instantiate 64bit version.
3666         * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
3667
3668 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
3669
3670         * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
3671         (arm_output_strex): Support strexd.
3672         (arm_output_it): New helper to output it in Thumb2 mode only.
3673         (arm_output_sync_loop): Support DI mode.  Change comment to
3674         not support const_int.
3675         (arm_expand_sync): Support DI mode.
3676         * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
3677         and LDREXD.
3678         * config/arm/iterators.md (NARROW): move from sync.md.
3679         (QHSD): New iterator for all current ARM integer modes.
3680         (SIDI): New iterator for SI and DI modes only.
3681         * config/arm/sync.md (sync_predtab): New mode_attr.
3682         (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
3683         (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
3684         (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
3685         (sync_nandsi): Fold into sync_nand<mode>.
3686         (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
3687         (sync_new_nandsi): Fold into sync_new_nand<mode>.
3688         (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
3689         (sync_old_nandsi): Fold into sync_old_nand<mode>.
3690         (sync_compare_and_swap<mode>): Support SI & DI.
3691         (sync_lock_test_and_set<mode>): Likewise.
3692         (sync_<sync_optab><mode>): Likewise.
3693         (sync_nand<mode>): Likewise.
3694         (sync_new_<sync_optab><mode>): Likewise.
3695         (sync_new_nand<mode>): Likewise.
3696         (sync_old_<sync_optab><mode>): Likewise.
3697         (sync_old_nand<mode>): Likewise.
3698         (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
3699         (arm_sync_lock_test_and_setsi): Likewise.
3700         (arm_sync_new_<sync_optab>si): Likewise.
3701         (arm_sync_new_nandsi): Likewise.
3702         (arm_sync_old_<sync_optab>si): Likewise.
3703         (arm_sync_old_nandsi): Likewise.
3704         (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
3705         (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
3706         (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
3707         (arm_sync_new_nand<mode> NARROW): Likewise.
3708         (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
3709         (arm_sync_old_nand<mode> NARROW): Likewise.
3710
3711 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
3712
3713         PR target/48126
3714         * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
3715
3716 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
3717
3718         * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
3719
3720 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
3721
3722         * doc/invoke.texi ([Wformat-zero-length]): Tidy.
3723
3724 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
3725
3726         * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
3727         on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
3728
3729 2011-10-14  Richard Guenther  <rguenther@suse.de>
3730
3731         PR tree-optimization/50723
3732         * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
3733
3734 2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3735
3736         * gengtype.c (files_rules): Added rules for objc/objc-map.h and
3737         objc/objc-map.c.
3738
3739 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
3740
3741         PR c++/17212
3742         * doc/invoke.texi ([Wformat-zero-length]): Update.
3743
3744 2011-10-14  Iain Sandoe  <iains@gcc.gnu.org>
3745
3746         PR bootstrap/50699
3747         * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
3748         build for powerpc targets.  (darwin_patch_builtins): Only build for
3749         powerpc targets.
3750
3751 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
3752
3753         * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
3754         (avx_cvtdq2pd256_2): ... this.
3755         (sseunpackfltmode): New mode attr.
3756         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
3757         vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
3758         using VI2_AVX2 iterator.
3759         (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
3760
3761 2011-10-13  David S. Miller  <davem@davemloft.net>
3762
3763         * config/sparc/sparc.md (plusminus): New code iterator.
3764         (plusminus_insn): New code attr.
3765         (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
3766         using plusminus and plusminus_insn.
3767         (fpadd64_vis, fpsub64_vis): Likewise.
3768
3769 2011-10-13  Richard Henderson  <rth@redhat.com>
3770
3771         * doc/md.texi (vec_perm): Document fallback to byte permutation.
3772         * genopinit.c (optabs): Add vec_perm_const.
3773         * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
3774         Reject non-vector modes.  Allow fallback to byte permutation.
3775         (expand_vec_perm_expr_1): Split out from ...
3776         (expand_vec_perm_expr): ... here.  Allow fallback to byte permutation.
3777         * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
3778         * tree-vect-generic.c (lower_vec_perm): Update for name change.
3779
3780 2011-10-13  Richard Henderson  <rth@redhat.com>
3781
3782         * config/rs6000/altivec.md (vec_permv16qi): New pattern.
3783
3784         * config/rs6000/spu.md (vec_permv16qi): New pattern.
3785
3786         * config/i386/i386.c (ix86_expand_vec_perm_const): New.
3787         * config/i386/i386-protos.h: Update.
3788         * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
3789         (vec_perm_const<VEC_PERM_CONST>): New expander.
3790
3791         * optabs.c (expand_vector_broadcast): New.
3792         (expand_binop): Expand scalar shifts of vectors to vector shifts
3793         of vectors, if the former isn't supported.
3794         * tree-vect-generic.c (expand_vector_operations_1): Don't do that
3795         here; always simplify to scalar shift of vector if possible.
3796
3797         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
3798         test for vector splat.
3799
3800 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
3801
3802         * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
3803
3804 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
3805             Richard Guenther  <rguenther@suse.de>
3806
3807         * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
3808         or complex vars even if their DECL_UID is in not_reg_needs bitmap.
3809
3810 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
3811
3812         * config/i386/sse.md (reduc_umin_v8hi): New pattern.
3813         * config/i386/i386.c (ix86_build_const_vector): Handle
3814         also V32QI, V16QI, V16HI and V8HI modes.
3815         (emit_reduc_half): New function.
3816         (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
3817         Use emit_reduc_half helper function.
3818
3819 2011-10-13  Lawrence Crowl  <crowl@google.com>
3820             Diego Novillo  <dnovillo@google.com>
3821
3822         * lto-streamer-in.c (input_struct_function_base): Factor out of ...
3823         (input_function): ... here.
3824         * lto-streamer-out.c (output_struct_function_base): Factor out of ...
3825         (output_function): ... here.
3826
3827 2011-10-13  Gabriel Charette  <gchare@google.com>
3828             Diego Novillo  <dnovillo@google.com>
3829
3830         * streamer-hooks.h (struct streamer_hooks): Add hooks
3831         input_location and output_location.
3832         * lto-streamer-in.c (lto_input_location): Use
3833         streamer_hooks.input_location, if set.
3834         * lto-streamer-out.c (lto_output_location): Use
3835         streamer_hooks.output_location, if set.
3836
3837 2011-10-13  Eric Botcazou  <ebotcazou@adacore.com>
3838
3839         * doc/invoke.texi (SPARC options): Document -mfix-at697f.
3840         * config/sparc/sparc.opt (mfix-at697f): New option.
3841         * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3842         (sparc_reorg): New function.
3843
3844 2011-10-13  Richard Guenther  <rguenther@suse.de>
3845
3846         PR tree-optimization/50712
3847         * ipa-split.c (split_function): Always re-gimplify parameters
3848         when they are not gimple vals before passing them.  Properly
3849         check for type compatibility.
3850
3851 2011-10-13  Tom de Vries  <tom@codesourcery.com>
3852
3853         * function.c (gimplify_parameters): Set number of arguments of call to
3854         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
3855
3856 2011-10-13  Tom de Vries  <tom@codesourcery.com>
3857
3858         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
3859         for static const strings.
3860         * varasm.c (build_constant_desc): Generate the memory location of the
3861         constant using gen_const_mem.
3862
3863 2011-10-13  Richard Guenther  <rguenther@suse.de>
3864
3865         PR tree-optimization/50698
3866         * tree-data-ref.c (split_constant_offset_1): Also process
3867         offsets of &MEM.
3868
3869 2011-10-12  David S. Miller  <davem@davemloft.net>
3870
3871         * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
3872         (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
3873         unspecs.
3874         (fpmerge_vis): Remove inaccurate comment, represent using vec_select
3875         of a vec_concat.
3876         (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
3877         (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
3878         Reimplement as unspecs and remove inaccurate comments.
3879         (vis3_shift_patname): New code attr.
3880         (<vis3_shift_insn><vbits>_vis): Rename to
3881         "v<vis3_shift_patname><mode>3".
3882         (vis3_addsub_ss_patname): New code attr.
3883         (<vis3_addsub_ss_insn><vbits>_vis): Rename to
3884         "<vis3_addsub_ss_patname><mode>3".
3885         * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
3886         accommodate pattern name changes.
3887
3888         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
3889         to zero when assembler lacks support for such instructions.
3890         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
3891         and MASK_FMAF in defaults when assembler lacks necessary support.
3892
3893 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
3894
3895         * config/i386/sse.md (vec_unpacks_lo_<mode>,
3896         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
3897         vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
3898         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
3899         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
3900
3901         * config/i386/sse.md (vec_avx2): New mode_attr.
3902         (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
3903         (mul<mode>3): ... this.
3904
3905         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
3906         * config/i386/i386.c (ix86_expand_vec_perm): Handle
3907         V16QImode and V32QImode for TARGET_AVX2.
3908         (MAX_VECT_LEN): Increase to 32.
3909         (expand_vec_perm_blend): Add support for 32-byte integer
3910         vectors with TARGET_AVX2.
3911         (valid_perm_using_mode_p): New function.
3912         (expand_vec_perm_pshufb): Add support for 32-byte integer
3913         vectors with TARGET_AVX2.
3914         (expand_vec_perm_vpshufb2_vpermq): New function.
3915         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
3916         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
3917         with TARGET_AVX2.
3918         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
3919         and expand_vec_perm_vpshufb2_vpermq_even_odd.
3920         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
3921         32-byte integer vector modes.
3922         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
3923         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
3924         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
3925         4 new operands.
3926         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
3927         match_dup, instead add 4 new operands and require they have
3928         right cross-lane values.
3929         (avx2_permv4di): Change into define_expand.
3930         (avx2_permv4di_1): New instruction.
3931         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
3932         for "xm" constrained operand.
3933         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
3934
3935         * config/i386/sse.md (avx2_gathersi<mode>,
3936         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
3937         match_scratch, change memory_operand to register_operand,
3938         add (mem:BLK (scratch)) use.
3939         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
3940         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
3941         add earlyclobber to the output operand and match_scratch,
3942         add (mem:BLK (scratch)) use, change the other mem to match_operand.
3943         Use %p6 instead of %c6 in the pattern.
3944         * config/i386/i386.c (ix86_expand_builtin): Adjust for
3945         operand 2 being a Pmode register_operand instead of memory_operand.
3946
3947 2011-10-12  Kai Tietz  <ktietz@redhat.com>
3948
3949         * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
3950
3951 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
3952
3953         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
3954
3955 2011-10-12  Richard Guenther  <rguenther@suse.de>
3956
3957         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
3958         of the first store we visit in a basic-block.
3959         (get_continuation_for_phi): Search for a candidate VUSE that
3960         might dominates all others.  Do pairwise disambiguation against
3961         that candidate.
3962
3963 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
3964
3965         PR tree-optimization/50189
3966         * tree-vrp.c (extract_range_from_assert): Use the type of
3967         the variable, not the limit.
3968
3969 2011-10-12  Richard Guenther  <rguenther@suse.de>
3970
3971         PR tree-optimization/50700
3972         * tree-object-size.c (addr_object_size): Simplify and treat
3973         MEM_REF bases consistently.
3974
3975 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
3976
3977         * function.c (prepare_shrink_wrap, bb_active_p): New function.
3978         (thread_prologue_and_epilogue_insns): Use bb_active_p.  Call
3979         prepare_shrink_wrap, then recompute bb_active_p for the last block.
3980
3981 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
3982
3983         PR c/50565
3984         * convert.c (convert_to_integer): Do not narrow operands of
3985         pointer subtraction.
3986
3987 2011-10-12  Nick Clifton  <nickc@redhat.com>
3988
3989         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
3990         emit a .eabi_attribute assembler directive, possibly with a
3991         comment attached.
3992         * config/arm/arm.c (arm_file_start): Use the new macro.
3993         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
3994
3995 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
3996
3997         PR target/49939
3998         * config/avr/avr.md (*movqi): Rename to movqi_insn.
3999         (*call_insn): Rename to call_insn.
4000         (*call_value_insn): Rename to call_value_insn.
4001         * config/avr/avr.c (avr_2word_insn_p): New static function.
4002         (jump_over_one_insn_p): Use it.
4003
4004 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
4005
4006         * expr.h (copy_blkmode_to_reg): Declare.
4007         * expr.c (copy_blkmode_to_reg): New function.
4008         (expand_assignment): Don't expand register RESULT_DECLs before
4009         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
4010         RESULT_DECL register.
4011         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
4012         * stmt.c (expand_return): Move BLKmode-to-register code into
4013         copy_blkmode_to_reg.
4014
4015 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
4016
4017         PR target/49965
4018         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
4019         (mov<F:mode>cc): Likewise.
4020
4021 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4022
4023         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
4024
4025 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4026
4027         * tree.h (built_in_decls): Delete old interface with two parallel
4028         arrays to hold standard builtin declarations, and replace it with
4029         a function based interface that can support creating builtins on
4030         the fly in the future.  Change all uses, and poison the old
4031         names.  Make sure 0 is not a legitimate builtin index.
4032         (implicit_built_in_decls): Ditto.
4033         (built_in_info): Ditto.
4034         (BUILTIN_VALID_P): Ditto.
4035         (builtin_decl_explicit): Ditto.
4036         (builtin_decl_implicit): Ditto.
4037         (set_builtin_decl): Ditto.
4038         (set_builtin_decl_implicit_p): Ditto.
4039         (builtin_decl_explicit_p): Ditto.
4040         (builtin_decl_implicit_p): Ditto.
4041         * tree-complex.c (expand_complex_libcall): Ditto.
4042         * tree-loop-distribution.c (generate_memset_zero): Ditto.
4043         * tree-ssa-strlen.c (get_string_length): Ditto.
4044         (handle_builtin_strcpy): Ditto.
4045         (handle_builtin_strcat): Ditto.
4046         * tree.c (iterative_hash_expr): Ditto.
4047         (local_define_builtin): Ditto.
4048         (build_common_builtin_nodes): Ditto.
4049         * builtins.c (built_in_decls): Ditto.
4050         (implicit_built_in_decls): Ditto.
4051         (built_in_info): Ditto
4052         (expand_builtin_classify_type): Ditto.
4053         (mathfn_built_in_1): Ditto.
4054         (expand_builtin_cexpi): Ditto.
4055         (expand_builtin_mempcpy_args): Ditto.
4056         (expand_builtin_stpcpy): Ditto.
4057         (gimplify_va_arg_expr): Ditto.
4058         (expand_builtin_sync_operation): Ditto.
4059         (build_builtin_expect_predicate): Ditto.
4060         (fold_builtin_memory_op): Ditto.
4061         (fold_builtin_strcpy): Ditto.
4062         (fold_builtin_stpcpy): Ditto.
4063         (fold_builtin_strncpy): Ditto.
4064         (fold_builtin_interclass_mathfn): Ditto.
4065         (fold_builtin_classify): Ditto.
4066         (fold_builtin_2): Ditto.
4067         (fold_builtin_strstr): Ditto.
4068         (fold_builtin_strrchr): Ditto.
4069         (fold_builtin_strpbrk): Ditto.
4070         (fold_builtin_strcat): Ditto.
4071         (fold_builtin_strncat): Ditto.
4072         (fold_builtin_strcspn): Ditto.
4073         (fold_builtin_fputs): Ditto.
4074         (fold_builtin_sprintf): Ditto.
4075         (fold_builtin_snprintf): Ditto.
4076         (expand_builtin_memory_chk): Ditto.
4077         (fold_builtin_memory_chk): Ditto.
4078         (fold_builtin_stxcpy_chk): Ditto.
4079         (fold_builtin_strncpy_chk): Ditto.
4080         (fold_builtin_strcat_chk): Ditto.
4081         (fold_builtin_strncat_chk): Ditto.
4082         (fold_builtin_sprintf_chk_1): Ditto.
4083         (fold_builtin_snprintf_chk_1): Ditto.
4084         (fold_builtin_printf): Ditto.
4085         (fold_builtin_fprintf): Ditto.
4086         (fold_call_stmt): Ditto.
4087         (set_builtin_user_assembler_name): Ditto.
4088         * tree-emutls.c (emutls_common_1): Ditto.
4089         * omp-low.c (scan_omp): Ditto.
4090         (lower_rec_input_clauses): Ditto.
4091         (lower_reduction_clauses): Ditto.
4092         (expand_parallel_call): Ditto.
4093         (expand_task_call): Ditto.
4094         (maybe_catch_exception): Ditto.
4095         (optimize_omp_library_calls): Ditto.
4096         (expand_omp_for_generic): Ditto.
4097         (expand_omp_for_static_nochunk): Ditto.
4098         (expand_omp_for_static_chunk): Ditto.
4099         (expand_omp_sections): Ditto.
4100         (expand_omp_atomic_fetch_op): Ditto.
4101         (expand_omp_atomic_pipeline): Ditto.
4102         (expand_omp_atomic_mutex): Ditto.
4103         (lower_omp_single_simple): Ditto.
4104         (lower_omp_single_copy): Ditto.
4105         (lower_omp_master): Ditto.
4106         (lower_omp_ordered): Ditto.
4107         (lower_omp_critical): Ditto.
4108         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
4109         * builtins.c (DEF_BUILTIN_STUB): Ditto.
4110         (BUILT_IN_NONE): Ditto.
4111         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
4112         * gimple-low.c (lower_function_body): Ditto.
4113         (lower_builtin_setjmp): Ditto.
4114         * c-decl.c (merge_decls): Ditto.
4115         * tree-eh.c (lower_resx): Ditto.
4116         (lower_resx): Ditto.
4117         (lower_eh_dispatch): Ditto.
4118         * function (gimplify_parameters): Ditto.
4119         * c-typeck.c (build_function_call_vec): Ditto.
4120         * gimplify.c (build_stack_save_restore): Ditto.
4121         (gimplify_vla_decl): Ditto.
4122         (gimplify_modify_expr_to_memcpy): Ditto.
4123         (gimplify_modify_expr_to_memset): Ditto.
4124         (gimplify_variable_sized_compare): Ditto.
4125         (gimplify_function_tree): Ditto.
4126         * calls.c (emit_call_1): Ditto.
4127         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
4128         * tree-nested.c (convert_nl_goto_reference): Ditto.
4129         (convert_tramp_reference_op): Ditto.
4130         (finalize_nesting_tree_1): Ditto.
4131         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
4132         (tree_ssa_prefetch_arrays): Ditto.
4133         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
4134         * system.h (built_in_decls): Ditto.
4135         (implicit_built_in_decls): Ditto.
4136         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
4137         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
4138         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
4139         (ix86_veclibabi_svml): Ditto.
4140         (ix86_veclibabi_acml): Ditto.
4141         * config/vms/vms.c (vms_patch_builtins): Ditto.
4142         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
4143         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
4144         (rs6000_builtin_vectorized_libmass): Ditto.
4145         (rs6000_init_builtins): Ditto.
4146         * config/darwin.c (darwin_override_options): Ditto.
4147         (darwin_patch_builtin): Ditto.
4148         (darwin_rename_builtins): Ditto.
4149         * config/pa/pa.c (pa_init_builtins): Ditto.
4150
4151 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4152
4153         * tree.h (copy_ref_info): Expose existing function.
4154         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
4155         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
4156
4157 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
4158
4159         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
4160         prototype.
4161         (avr_regno_mode_code_ok_for_base_p): New prototype.
4162         * config/avr/avr.h (BASE_REG_CLASS): Remove.
4163         (REGNO_OK_FOR_BASE_P): Remove.
4164         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
4165         (REG_OK_FOR_BASE_STRICT_P): Remove.
4166         (MODE_CODE_BASE_REG_CLASS): New define.
4167         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
4168         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
4169         (avr_regno_mode_code_ok_for_base_p): New function.
4170         (avr_reg_ok_for_addr_p): New static function.
4171         (avr_legitimate_address_p): Use it.  Beautify.
4172
4173 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
4174
4175         PR target/50447
4176         * config/avr/avr.md (cc): Add out_plus attribute alternative.
4177         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
4178         avr_out_plus for all CONST_INT addends.
4179         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
4180         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
4181         CC_OUT_PLUS.
4182         (avr_out_plus_1): Change prototype and report effect on cc0.
4183         (avr_out_plus): Ditto.
4184         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
4185
4186 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
4187
4188         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
4189         the extra break.
4190
4191 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
4192
4193         * doc/invoke.texi: Document new warning.
4194         * common.opt (Wvector-operation-performance): Define new warning.
4195         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
4196         vector operation.
4197         (exapnd_vector_parallel): Warn about expanded vector operation.
4198         (lower_vec_shuffle): Warn about expanded vector operation.
4199         * c-typeck.c (c_build_vec_perm_expr): Store correct location
4200         when creating VEC_PERM_EXPR.
4201
4202 2011-10-11  Richard Guenther  <rguenther@suse.de>
4203
4204         PR tree-optimization/50204
4205         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
4206         two argument handling from ...
4207         (get_continuation_for_phi): ... here.  Handle arbitrary number
4208         of PHI args.
4209
4210 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
4211
4212         * modulo-sched.c: Fix comment typo.  Mention the possibility
4213         of using scheduling windows of II+1 cycles.
4214
4215 2011-10-11  Tristan Gingold  <gingold@adacore.com>
4216
4217         * doc/invoke.texi (C Dialect Options): Document
4218         -fallow-parameterless-variadic-functions.
4219         * c-parser.c (c_parser_parms_list_declarator): Handle it.
4220
4221 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
4222
4223         * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
4224         to 0 if frame pointer is needed for unwinding.
4225
4226 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
4227
4228         PR bootstrap/50665
4229         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
4230         optab_index to enum direct_optab_index.
4231         (vec_perm_optab): Update.
4232
4233 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
4234
4235         * config/cris/cris.c (cris_preferred_reload_class): New function.
4236         (TARGET_PREFERRED_RELOAD_CLASS): Define.
4237         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
4238
4239 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
4240
4241         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
4242         !AVR_HAVE_JMP_CALL.
4243         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
4244         (*tablejump_enh, *tablejump): Remove insns.
4245         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
4246         EIJMP for indirect jump.  Use LPM Z+ where available.
4247
4248 2011-10-10  Richard Henderson  <rth@redhat.com>
4249
4250         * doc/md.texi (vec_perm_const): Fix typo in cindex.
4251
4252 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
4253             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
4254
4255         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
4256
4257 2011-10-10  Richard Guenther  <rguenther@suse.de>
4258
4259         PR middle-end/50389
4260         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
4261         mark symbols for renaming.  Append the VUSE to all statements
4262         that possibly can have one.
4263
4264 2011-10-10  Richard Guenther  <rguenther@suse.de>
4265
4266         * ipa-split.c (pass_split_functions): Add verification TODOs.
4267         (pass_feedback_split_functions): Likewise.
4268
4269 2011-10-10  Richard Guenther  <rguenther@suse.de>
4270
4271         PR middle-end/50195
4272         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
4273         only when optimizing.
4274
4275 2011-10-10  Nick Clifton  <nickc@redhat.com>
4276
4277         PR middle-end/49801
4278         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
4279         df_get_live_out instead of accessing the bitmaps directly.
4280         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
4281         df_live_add_problem and df_analyze.
4282
4283 2011-10-10  Michael Matz  <matz@suse.de>
4284
4285         PR middle-end/50638
4286         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
4287
4288 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
4289
4290         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
4291         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
4292         (node_sched_params): Remove first_reg_move and nreg_moves.
4293         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
4294         (update_node_sched_params): Move up file.
4295         (print_node_sched_params): Print the stage.  Don't dump info related
4296         to first_reg_move and nreg_moves.
4297         (set_columns_for_row): New function.
4298         (set_columns_for_ps): Move up file and use set_columns_for_row.
4299         (schedule_reg_move): New function.
4300         (schedule_reg_moves): Call extend_node_sched_params and
4301         schedule_reg_move.  Extend size of uses bitmap.  Initialize
4302         num_consecutive_stages.  Return false if a move could not be
4303         scheduled.
4304         (apply_reg_moves): Don't emit moves here.
4305         (permute_partial_schedule): Handle register moves.
4306         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
4307         to the same stage-count test as ddg nodes.
4308         (generate_prolog_epilog): Update calls accordingly.
4309         (sms_schedule): Allow move-scheduling to add a new first stage.
4310
4311 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
4312
4313         * modulo-sched.c (ps_insn): Adjust comment.
4314         (ps_reg_move_info): New structure.
4315         (partial_schedule): Add reg_moves field.
4316         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
4317         (node_sched_params): Turn first_reg_move into an identifier.
4318         (ps_reg_move): New function.
4319         (ps_rtl_insn): Cope with register moves.
4320         (ps_first_note): Adjust comment and assert that the instruction
4321         isn't a register move.
4322         (node_sched_params): Replace with...
4323         (node_sched_param_vec): ...this vector.
4324         (set_node_sched_params): Adjust accordingly.
4325         (print_node_sched_params): Take a partial schedule instead of a ddg.
4326         Use ps_rtl_insn and ps_reg_move.
4327         (generate_reg_moves): Rename to...
4328         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
4329         move in the partial schedule, but don't emit it here.  Don't perform
4330         register substitutions here either.
4331         (apply_reg_moves): New function.
4332         (duplicate_insns_of_cycles): Use register indices directly,
4333         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
4334         (sms_schedule): Call schedule_reg_moves before committing to
4335         a partial schedule.   Try the next ii if the schedule fails.
4336         Use apply_reg_moves instead of generate_reg_moves.  Adjust
4337         call to print_node_sched_params.  Free node_sched_param_vec
4338         instead of node_sched_params.
4339         (create_partial_schedule): Initialize reg_moves.
4340         (free_partial_schedule): Free reg_moves.
4341
4342 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
4343
4344         * modulo-sched.c (ps_insn): Replace node field with an identifier.
4345         (SCHED_ASAP): Replace with..
4346         (NODE_ASAP): ...this macro.
4347         (SCHED_PARAMS): New macro.
4348         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
4349         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
4350         (node_sched_params): Remove asap.
4351         (ps_rtl_insn, ps_first_note): New functions.
4352         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
4353         asap values.
4354         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
4355         (generate_reg_moves): Pass ids to the SCHED_* macros.
4356         (update_node_sched_params): Take a ps insn identifier rather than
4357         a node as parameter.  Use ps_rtl_insn.
4358         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
4359         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
4360         (optimize_sc): Update for above field and SCHED_* macro changes.
4361         Update calls to try_scheduling_node_in_cycle and
4362         update_node_sched_params.
4363         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
4364         macro changes.  Use ps_rtl_insn and ps_first_note.
4365         (sms_schedule): Pass ids to the SCHED_* macros.
4366         (get_sched_window): Adjust for above field and SCHED_* macro changes.
4367         Use NODE_ASAP instead of SCHED_ASAP.
4368         (try_scheduling_node_in_cycle): Remove node parameter.  Update
4369         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_* macros.
4370         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
4371         (ps_insert_empty_row): Adjust for above field changes.
4372         (compute_split_row): Use ids rather than nodes.
4373         (verify_partial_schedule): Adjust for above field changes.
4374         (print_partial_schedule): Use ps_rtl_insn.
4375         (create_ps_insn): Take an id rather than a node.
4376         (ps_insn_find_column): Adjust for above field changes.
4377         Use ps_rtl_insn.
4378         (ps_insn_advance_column): Adjust for above field changes.
4379         (add_node_to_ps): Remove node parameter.  Update call to
4380         create_ps_insn.
4381         (ps_has_conflicts): Use ps_rtl_insn.
4382         (ps_add_node_check_conflicts): Replace node parameter than an id.
4383
4384 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
4385
4386         * modulo-sched.c (undo_replace_buff_elem): Delete.
4387         (generate_reg_moves): Don't build and return an undo list.
4388         (free_undo_replace_buff): Delete.
4389         (sms_schedule): Adjust call to generate_reg_moves.
4390         Don't call free_undo_replace_buff.
4391
4392 2011-10-10  Matthias Klose <doko@ubuntu.com>
4393
4394         * common/config/m32c: Remove empty directory.
4395
4396 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
4397
4398         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
4399
4400 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
4401
4402         PR target/50652
4403         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
4404         atmega164a to 0x100.
4405
4406 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
4407
4408         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
4409         the replacement if the conversion to the LHS type is not useless.
4410
4411 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
4412
4413         PR tree-optimization/50635
4414         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
4415         DEF_STMT to the list of statements to be replaced by the
4416         pattern statements.
4417         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
4418
4419 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
4420
4421         * system.h: Commit forgotten hunk in previous patch.
4422         (OUTPUT_ADDR_CONST_EXTRA): Poison.
4423
4424 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
4425
4426         PR libobjc/50428
4427         * doc/objc.texi (Garbage Collection): Updated example to protect
4428         +initialize against execution in subclasses.
4429
4430 2011-10-07  Richard Henderson  <rth@redhat.com>
4431
4432         * doc/extend.texi (__builtin_shuffle): Improve the description to
4433         include the modulus of the selector.  Mention OpenCL.
4434         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
4435
4436         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
4437         * genopinit.c (optabs): Rename vshuffle to vec_perm.
4438         * c-typeck.c (c_build_vec_perm_expr): Rename from
4439         c_build_vec_shuffle_expr.  Update for name changes.
4440         * optabs.c (expand_vec_perm_expr_p): Rename from
4441         expand_vec_shuffle_expr_p.
4442         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
4443         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
4444         (vec_perm_optab): Rename from vshuffle_optab.
4445         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
4446         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
4447         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
4448
4449         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
4450         ix86_expand_vshuffle.
4451         * config/i386/i386-protos.h: Update.
4452         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
4453         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
4454
4455 2011-10-07  Richard Henderson  <rth@redhat.com>
4456
4457         * config/i386/predicates.md (avx2_pblendw_operand): New.
4458         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
4459         (avx2_pblendw, *avx2_pblendw): New expander and insn.
4460
4461 2011-10-07  Richard Henderson  <rth@redhat.com>
4462
4463         * config/i386/i386.c (bdesc_args): Update code for
4464         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
4465         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
4466         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
4467         * config/i386/sse.md (mode iterator V16): Add V2TI.
4468         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
4469         (mode attr ssse3_avx2): Add V2TI.
4470         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
4471
4472 2011-10-07  David S. Miller  <davem@davemloft.net>
4473
4474         PR 50655
4475         * configure.ac: Add .register directives to VIS3 test.
4476         * configure: Regenerate.
4477
4478 2011-10-07  Richard Henderson  <rth@redhat.com>
4479
4480         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
4481
4482 2011-10-07  Richard Henderson  <rth@redhat.com>
4483
4484         PR 49752
4485         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
4486
4487 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
4488
4489         * config/arm/predicates.md (shift_amount_operand): Remove constant
4490         range check.
4491         (shift_operator): Check range of constants for all shift operators.
4492
4493 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4494
4495         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
4496         Load GOT pointer for non-pic builds.
4497         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
4498         (s390_emit_call): Likewise.
4499
4500 2011-10-07  Tom de Vries  <tom@codesourcery.com>
4501
4502         PR middle-end/50527
4503         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
4504         BUILT_IN_ALLOCA_WITH_ALIGN.  Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
4505         throw.
4506         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
4507         arglist.  Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
4508         (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4509         (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4510         * tree-ssa-ccp.c (evaluate_stmt): Set align for
4511         BUILT_IN_ALLOCA_WITH_ALIGN.
4512         (fold_builtin_alloca_for_var): Rename to ...
4513         (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
4514         BUILT_IN_ALLOCA_WITH_ALIGN argument.
4515         (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
4516         fold_builtin_alloca_with_align.
4517         (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4518         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
4519         DEF_BUILTIN_STUB.
4520         * ipa-pure-const.c (special_builtin_state): Handle
4521         BUILT_IN_ALLOCA_WITH_ALIGN.
4522         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
4523         (call_may_clobber_ref_p_1): Same.
4524         * function.c (gimplify_parameters): Lower vla to
4525         BUILT_IN_ALLOCA_WITH_ALIGN.
4526         * gimplify.c (gimplify_vla_decl): Same.
4527         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4528         * tree-mudflap.c (mf_xform_statements): Same.
4529         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
4530         (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
4531         * varasm.c (incorporeal_function_p): Same.
4532         * tree-object-size.c (alloc_object_size): Same.
4533         * gimple.c (gimple_build_call_from_tree): Same.
4534
4535 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
4536
4537         * function.c (frame_required_for_rtx): Remove function.
4538         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
4539         changed.  Compute a set of mentioned registers and compare against
4540         the new arg rather than calling frame_required_for_rtx.
4541         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
4542         reg set.  Convert the unconverted_simple_returns mechanism to store
4543         jump insns rather than their basic blocks.  Also check the
4544         orig_entry_edge destination for new blocks.
4545
4546 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
4547
4548         PR tree-optimization/50650
4549         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
4550         call vect_is_simple_cond here, instead fail if cond_expr isn't
4551         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
4552         for cond_expr's first operand.
4553         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
4554         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
4555
4556 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4557
4558         * config/s390/s390.md (DWH, dwh): New mode macros.
4559         ("umulsidi3"): Extend to support "umulditi3" as well.
4560
4561 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
4562             H.J. Lu  <hongjiu.lu@intel.com>
4563
4564         PR target/50603
4565         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
4566         integer PLUS RTX to a register to improve address combine.
4567
4568 2011-10-06  Richard Henderson  <rth@redhat.com>
4569
4570         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
4571         parameter; use it to decide whether to merge two notes.
4572         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
4573         for the deallocation case as well.
4574
4575 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
4576
4577         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
4578         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
4579         * doc/tm.texi: Regenerate.
4580         * target.def (output_addr_const_extra): Use
4581         hook_bool_FILEptr_rtx_false.
4582         * targhooks.c (default_asm_output_addr_const_extra): Remove.
4583         * targhooks.h (default_asm_output_addr_const_extra): Remove.
4584         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
4585         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
4586
4587 2011-10-06  David S. Miller  <davem@davemloft.net>
4588
4589         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
4590         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
4591         SI mode 64-bit code gen case explicitly zero-extend and truncate.
4592         (*popcount<mode>_sp64): Split up into...
4593         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
4594         SImode case use truncate.
4595         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
4596         subtract so the compiler can optimize it.
4597         (SIDI): Remove unused mode iterator.
4598
4599 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
4600
4601         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
4602         on the orig_entry_edge. Don't account for it in prologue_clobbered.
4603
4604 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
4605
4606         PR tree-optimization/50596
4607         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
4608         (NUM_PATTERNS): Change to 6.
4609         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
4610         function.
4611         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
4612         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
4613         if it already has one, and don't set STMT_VINFO_VECTYPE in it
4614         if it is already set.
4615         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
4616         COND_EXPR in pattern stmts.
4617         (vect_is_simple_cond): No longer static.
4618
4619 2001-10-06  Richard Henderson  <rth@redhat.com>
4620
4621         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
4622         * config/i386/sse.md (sseshuffint): Remove.
4623         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
4624         (VSHUFFLE_AVX2): New mode iterator.
4625         (vshuffle<mode>): Use it.
4626         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
4627
4628         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
4629         for vector_all_ones_operand.
4630         (ix86_expand_int_vcond): Distinguish between comparison mode
4631         and data mode.  Allow them to differ.
4632         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
4633
4634 2001-10-06  Richard Henderson  <rth@redhat.com>
4635
4636         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
4637         mask operand.  Tidy the code.
4638
4639 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
4640
4641         * tree-vect-patterns.c (vect_pattern_recog_1): Use
4642         vect_recog_func_ptr typedef for the first argument.
4643         (vect_pattern_recog): Rename vect_recog_func_ptr variable
4644         to vect_recog_func, use vect_recog_func_ptr typedef for it.
4645
4646         PR tree-optimization/49279
4647         * tree-ssa-structalias.c (find_func_aliases): Don't handle
4648         CAST_RESTRICT.
4649         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
4650         restrict propagation.
4651         * tree-ssa.c (useless_type_conversion_p): Don't return false
4652         if TYPE_RESTRICT differs.
4653
4654 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
4655
4656         * function.c (thread_prologue_and_epilogue_insns): Build a vector
4657         of unconverted simple return blocks rather than trying to
4658         recompute them later based on bb_flags bitmap tests.
4659
4660 2011-10-06  Michael Matz  <matz@suse.de>
4661
4662         * tree-flow.h (get_var_ann): Don't declare.
4663         * tree-flow-inline.h (get_var_ann): Remove.
4664         (set_is_used): Use var_ann, not get_var_ann.
4665         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
4666         * tree-profile.c (gimple_gen_edge_profiler): Call
4667         find_referenced_var_in.
4668         (gimple_gen_interval_profiler): Ditto.
4669         (gimple_gen_pow2_profiler): Ditto.
4670         (gimple_gen_one_value_profiler): Ditto.
4671         (gimple_gen_average_profiler): Ditto.
4672         (gimple_gen_ior_profiler): Ditto.
4673         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
4674         (gimple_gen_ic_func_profiler): Call add_referenced_var.
4675         * tree-mudflap.c (execute_mudflap_function_ops): Call
4676         add_referenced_var.
4677
4678 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
4679
4680         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
4681         don't set SSA_NAME_DEF_STMT that has been already set by
4682         gimple_build_assign_with_ops.
4683         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
4684         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
4685         Likewise.
4686
4687         * tree.h (avoid_folding_inline_builtin): New prototype.
4688         * builtins.c (avoid_folding_inline_builtin): No longer static.
4689         * gimple-fold.c (gimple_fold_builtin): Give up if
4690         avoid_folding_inline_builtin returns true.
4691
4692 2011-10-06  Richard Guenther  <rguenther@suse.de>
4693
4694         * tree-vect-generic.c (vector_element): Look at previous
4695         generated results.
4696
4697 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
4698
4699         PR target/39950
4700         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
4701         __powerpc__, __PPC__, __unix__.
4702
4703 2011-10-06  Michael Matz  <matz@suse.de>
4704
4705         * i386/i386.opt (recip_mask, recip_mask_explicit,
4706         x_recip_mask_explicit): New variables and cl_target member.
4707         (mrecip=): New option.
4708         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
4709         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
4710         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
4711         TARGET_RECIP_VEC_SQRT): New tests.
4712         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
4713         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
4714         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
4715         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
4716         * i386/i386.c (ix86_option_override_internal): Set recip_mask
4717         for -mrecip and -mrecip=options.
4718         (ix86_function_specific_save): Save recip_mask_explicit.
4719         (ix86_function_specific_restore): Restore recip_mask_explicit.
4720
4721         * doc/invoke.texi (ix86 Options): Document the new option.
4722
4723 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
4724
4725         PR target/49049
4726         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
4727
4728 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
4729
4730         PR target/50305
4731         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
4732         output of a previous pass through legitimize_reload_address.
4733         Do not attempt to optimize addresses if the base register is
4734         equivalent to a constant.
4735
4736 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4737
4738         * function.c (thread_prologue_and_epilogue_insns): Mark
4739         last_bb_active as possibly unused.  It is unused for targets which
4740         do neither have "return" nor "simple_return" expanders.
4741
4742 2011-10-06  Richard Guenther  <rguenther@suse.de>
4743
4744         * fold-const.c (fold_ternary_loc): Also fold non-constant
4745         vector CONSTRUCTORs.  Make more efficient.
4746         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
4747         (cprop_into_stmt): Don't propagate into virtual operands.
4748         (optimize_stmt): Really dump original statement.
4749
4750 2011-10-06  Nick Clifton  <nickc@redhat.com>
4751
4752         * config/rx/rx.md (smin3): Revert previous delta.
4753
4754 2011-10-06  Richard Guenther  <rguenther@suse.de>
4755
4756         PR tree-optimization/38884
4757         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
4758         reads from aggregate SSA names.
4759
4760 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
4761
4762         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
4763         argument, truncate it at the beginning instead of allocating there
4764         and freeing at the end.
4765         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
4766         pass its address to vect_pattern_recog_1.
4767
4768 2011-10-05  David S. Miller  <davem@davemloft.net>
4769
4770         * config/sparc/sparc.opt (POPC): New option.
4771         * doc/invoke.texi: Document it.
4772         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
4773         default on Niagara-2 and later.
4774         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
4775         * config/sparc/sparc.md (SIDI): New mode iterator.
4776         (ffsdi2): Delete commented out pattern and comments.
4777         (popcount<mode>2, clz<mode>2): New expanders.
4778         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
4779         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
4780
4781 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
4782
4783         PR middle-end/50607
4784         * c-tree.h (c_expr_t): New typedef for struct c_expr.
4785         (C_EXPR_APPEND): New macro.
4786         * c-parser.c (c_parser_get_builtin_args): Preserve
4787         original_tree_code of c_expr structure.
4788         (c_parser_postfix_expression): Adjust to the new function.
4789
4790 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
4791
4792         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
4793         if profiling after the prologue.
4794
4795 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
4796
4797         PR tree-optimization/50613
4798         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
4799         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
4800         and if it is neither that not SSA_NAME, give up.
4801
4802 2011-10-05  Richard Henderson  <rth@redhat.com>
4803
4804         * tree-vect-generic.c (vector_element): Never fail.  Use
4805         build_zero_cst.  Tidy up type references.
4806         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
4807         code duplication.  Do update_stmt here ...
4808         (expand_vector_operations_1): ... not here.
4809
4810         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
4811         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
4812         duplication.  Handle V2DI without SSE4.1.
4813         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
4814         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
4815
4816 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
4817
4818         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
4819         of "found".  Simplify return value calculation.
4820         (distance_agu_use): Ditto.
4821
4822 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
4823
4824         PR bootstrap/50621
4825         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
4826         if the function was not shrink-wrapped.
4827         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
4828         to an insn.
4829         * function.c (thread_prologue_and_epilogue_insns): Make sure the
4830         shrink_wrapped flag is set even if there is no dump file.
4831
4832 2011-10-05  DJ Delorie  <dj@redhat.com>
4833             Nick Clifton  <nickc@redhat.com>
4834
4835         * config/rx/rx.opt (mpid): Define.
4836         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
4837         (MULTILIB_DIRNAMES): Add pid.
4838         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
4839         (rx_num_interrupt_regs): New variable.
4840         (rx_gp_base_regnum): New function.  Returns the number of the
4841         small data area register.
4842         (rx_pid_base_regnum): New function.  Returns the number of the pid
4843         base register.
4844         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
4845         (rx_pid_data_operand): New function.  Returns whether an object is
4846         in the position independent data area.
4847         (rx_legitimize_address): New function.  Puts undecided PID
4848         objects in the PID data area.
4849         (rx_is_legitimate_address): Add support for PID operands.
4850         (rx_print_operand_address): Likewise.
4851         (rx_print_operand): Likewise.
4852         (rx_maybe_pidify_operand): New function.  Determine if an operand
4853         is suitable for PID addressing.
4854         (rx_gen_move_template): Add PID support.
4855         (rx_conditional_register_usage): Likewise.
4856         (rx_option_override): Initialise rx_num_interrupt_regs.
4857         (rx_is_legitimate_constant): Add support for PID constants.
4858         (TARGET_LEGITIMIZE_ADDRESS): Define.
4859         * config/rx/constraints.md (Rpid): Define.
4860         (Rpda): Define.
4861         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
4862         (tablejump): Add PID support.
4863         (mov<>): Likewise.
4864         (mov<>_internal): Likewise.
4865         (addsi3): Convert to an expander.  Add PID support.
4866         (pid_addr): New pattern.
4867         * config/rx/rx.h (CPP_SPEC): Define.
4868         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
4869         (CASE_VECTOR_PC_RELATIVE): Define.
4870         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
4871         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
4872         * doc/invoke.texi (RX Options): Document -mpid command line option.
4873
4874 2011-10-05  Richard Guenther  <rguenther@suse.de>
4875
4876         PR tree-optimization/38885
4877         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
4878         from constants.
4879
4880 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
4881
4882         * doc/invoke.texi (-fshrink-wrap): Document.
4883         * opts.c (default_options_table): Add it.
4884         * common.opt (fshrink-wrap): Add.
4885         * function.c (emit_return_into_block): Remove useless declaration.
4886         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
4887         requires_stack_frame_p, gen_return_pattern): New static functions.
4888         (emit_return_into_block): New arg simple_p.  All callers changed.
4889         Use gen_return_pattern.
4890         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
4891         * config/i386/i386.md (return): Expand into a simple_return.
4892         (simple_return): New expander):
4893         (simple_return_internal, simple_return_internal_long,
4894         simple_return_pop_internal_long, simple_return_indirect_internal):
4895         Renamed from return_internal, return_internal_long,
4896         return_pop_internal_long and return_indirect_internal; changed to use
4897         simple_return.
4898         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
4899         simple returns.
4900         (ix86_pad_returns): Likewise.
4901         * function.h (struct rtl_data): Add member shrink_wrapped.
4902         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
4903         are not jumps or sibcalls can't be compared.
4904
4905 2011-10-05  Richard Guenther  <rguenther@suse.de>
4906
4907         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
4908         vector type.
4909         (simplify_unary_expression): Handle BIT_FIELD_REFs.
4910         (try_to_simplify): Handle BIT_FIELD_REFs.
4911
4912 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
4913
4914         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
4915         * config/avr/avr.c (avr_out_addto_sp): New function.
4916         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
4917         * config/avr/avr.md (adjust_len): Add "addto_sp".
4918         (*movhi_sp): Remove insn.
4919         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
4920
4921 2011-10-05  Richard Guenther  <rguenther@suse.de>
4922
4923         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
4924         with an embedded expression valueize and fold that as well.
4925         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
4926         results from gimple_fold_stmt_to_constant_1.
4927
4928 2011-10-05  Nick Clifton  <nickc@redhat.com>
4929
4930         * config/rx/rx.md (tablejump): Add missing label.
4931         (adddi3_internal): Mark operand 0 as early-clobbered.
4932         (smaxsi3): Revert previous delta.
4933         (adc_internal): Fix whitespace in generated asm.
4934         (adc_flags): Likewise.
4935
4936 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4937
4938         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
4939         with the new widening_optab_handler.
4940
4941 2011-10-05  Richard Guenther  <rguenther@suse.de>
4942
4943         PR tree-optimization/50609
4944         * gimple-fold.c (fold_array_ctor_reference): Also handle
4945         vector typed constructors.
4946         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
4947         for vector typed constructors.
4948
4949 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
4950
4951         * config/i386/i386.c (ix86_emit_binop): New static function.
4952         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
4953         instructions.
4954         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
4955
4956 2011-10-04  David S. Miller  <davem@davemloft.net>
4957
4958         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
4959         UNSPEC_XMUL): New unspecs.
4960         (muldi3_v8plus): Use output_v8plus_mult.
4961         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
4962         New VIS 3.0 combiner patterns.
4963         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
4964         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
4965         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
4966         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
4967         builtins patterns.
4968         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
4969         (output_v8plus_mult): New function.
4970         * config/sparc/sparc-protos.h: Declare it.
4971         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
4972         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
4973         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
4974         * doc/extend.texi: Document new builtins.
4975
4976 2011-10-04  Richard Henderson  <rth@redhat.com>
4977
4978         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
4979         Avoid save_expr unless two_arguments.
4980
4981 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
4982
4983         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
4984         * config/i386/mingw32.h (CPP_SPEC): Likewise.
4985
4986 2011-10-04  David S. Miller  <davem@davemloft.net>
4987
4988         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
4989         under Linux.
4990
4991 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
4992
4993         PR tree-optimization/50604
4994         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
4995         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
4996         last argument to memcpy has size_type_node type instead of ssizetype.
4997         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
4998         instead of TREE_TYPE (len) as type for newlen.
4999
5000         PR tree-optimization/50522
5001         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
5002         TYPE_RESTRICT.
5003         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
5004         unconditionally.
5005
5006         * fold-const.c (fold_unary_loc): Don't optimize
5007         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
5008         casting the inner pointer if it isn't TYPE_RESTRICT.
5009         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
5010         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
5011
5012 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
5013
5014         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
5015
5016 2011-10-04  Jan Hubicka  <jh@suse.cz>
5017
5018         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
5019         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
5020         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
5021         * lto-cgraph.c (order_base): New static var.
5022         (lto_output_node): Stream in order.
5023         (lto_output_varpool_node): Stream out order.
5024         (input_node): Stream in order.
5025         (input_varpool_node): Stream out order.
5026         (input_cgraph_1): Initialize order base; update call of
5027         lto_input_toplevel_asms.
5028
5029 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
5030
5031         PR target/50566
5032         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
5033         prototype.
5034         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
5035         from here...
5036         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
5037         function.  Log if avr_log.legitimize_reload_address.
5038
5039 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
5040
5041         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
5042
5043 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5044
5045         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
5046         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
5047
5048 2011-10-03  David S. Miller  <davem@davemloft.net>
5049
5050         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
5051         GSR_REG an input operand to UNSPEC instead of a parallel USE.
5052         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
5053         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
5054         Reference GSR_REG in DI mode, simplify convoluted expressions by using
5055         zero_extract.
5056         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
5057
5058 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
5059
5060         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
5061
5062 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
5063             Ian Lance Taylor  <iant@google.com>
5064
5065         * godump.c (go_output_typedef): Support printing enum values that
5066         don't fit in a signed HOST_WIDE_INT.
5067
5068 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
5069
5070         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
5071         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5072         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5073         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
5074
5075 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
5076
5077         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
5078         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5079         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5080         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
5081
5082 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
5083
5084         PR target/49967
5085         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
5086         (gcc_cv_ld_static_option): Ditto.
5087         (gcc_cv_ld_dynamic_option): Ditto.
5088         * configure: Regenerate.
5089
5090 2011-10-03  David S. Miller  <davem@davemloft.net>
5091
5092         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
5093         and 'si' patterns which describe the GSR changes explicitly in the
5094         RTL using zero_extract.
5095         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
5096
5097         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
5098         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
5099
5100 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
5101
5102         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
5103         if given expression can be expanded by the target.
5104         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
5105         using target vector instructions.
5106         * optabs.h: New optab vshuffle.
5107         (expand_vec_shuffle_expr_p): New prototype.
5108         (expand_vec_shuffle_expr): New prototype.
5109         (vshuffle_optab): New optab.
5110         * genopinit.c: Adjust to support vecshuffle.
5111         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
5112         * expr.c (expand_expr_real_2): Adjust.
5113         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
5114         recognizing the cases of two and three arguments.
5115         (convert_arguments) (build_binary_op)
5116         (scalar_to_vector) (build_array_ref): Spurious whitespace.
5117         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
5118         * tree.def: New tree code VEC_SHUFFLE_EXPR.
5119         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
5120         * tree-vect-generic.c (vector_element): New function. Returns an
5121         element of the vector at the given position.
5122         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
5123         by the backend or expand an expression piecewise.
5124         (expand_vector_operations_1): Adjusted.
5125         (gate_expand_vector_operations_noop): New gate function.
5126         * Makefile.in (tree-vect-generic.o): New include.
5127         * gimple.c (get_gimple_rhs_num_ops): Adjust.
5128         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
5129         * passes.c: Move veclower down.
5130         * tree-pretty-print.c (dump_generic_node): Recognize
5131         VEC_SHUFFLE_EXPR as valid expression.
5132         * c-parser.c (c_parser_get_builtin_args): Helper function for the
5133         builtins with variable number of arguments.
5134         (c_parser_postfix_expression): Use a new helper function for
5135         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
5136         * tree-ssa-operands: Adjust.
5137         * c-family/c-common.c: New __builtin_shuffle keyword.
5138         * c-family/c-common.h: New __builtin_shuffle keyword.
5139         * gcc/doc/extend.texi: Adjust.
5140
5141         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
5142         between the vector and the type of the mask when shuffling.
5143         (vecshuffle<mode>): New expansion.
5144         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
5145         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
5146         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
5147
5148 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
5149
5150         PR tree-optimization/50587
5151         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
5152         arg0 is not a SSA_NAME.
5153
5154 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
5155
5156         * ipa-inline-analysis.c (MAX_TIME): Update comment.
5157
5158 2011-10-02  Richard Henderson  <rth@redhat.com>
5159             David S. Miller  <davem@davemloft.net>
5160
5161         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
5162         conditional insn type setting, we always emit a shift.
5163         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
5164         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
5165         * config/sparc/predicates.md (const_one_operand): Delete.
5166
5167 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
5168
5169         * invoke.texi (SPARC Options): Refer to GNU/Linux.
5170
5171 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
5172
5173         * config/mips/mips.c (mips_frame_barrier): New function.
5174         (mips_expand_prologue): Call it after allocating stack space.
5175         (mips_deallocate_stack): New function.
5176         (mips_expand_epilogue): Call mips_frame_barrier and
5177         mips_deallocate_stack.
5178
5179 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
5180
5181         PR target/49696
5182         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
5183         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
5184         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
5185
5186 2011-10-02  Jan Hubicka  <jh@suse.cz>
5187
5188         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
5189
5190         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
5191         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
5192         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
5193         functions are reachable when address is taken.
5194         * tree-sra.c (modify_function): Free dominance info.
5195
5196 2011-10-02  Jan Hubicka  <jh@suse.cz>
5197
5198         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
5199
5200         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
5201         (reset_inline_summary): New function.
5202         (compute_inline_parameters, inline_node_removal_hook,
5203         inline_edge_removal_hook): Use it.
5204         (inline_free_summary): Reset holders correctly.
5205         (inline_generate_summary): Free summary before computing it.
5206
5207 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
5208
5209         PR preprocessor/36819
5210         * incpath.c (merge_include_chains): Call free_path on
5211         heads[QUOTE] and tails[QUOTE].
5212
5213 2011-10-02  Jan Hubicka  <jh@suse.cz>
5214
5215         PR lto/47247
5216         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
5217         when resolution is already availbale from plugin.
5218         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
5219         * cgraph.c (ld_plugin_symbol_resolution): Add
5220         prevailing_def_ironly_exp.
5221         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
5222         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
5223         externally visible.
5224         * varasm.c (resolution_to_local_definition_p): Add
5225         LDPR_PREVAILING_DEF_IRONLY_EXP.
5226         (resolution_local_p): Likewise.
5227
5228 2011-10-01  David S. Miller  <davem@davemloft.net>
5229
5230         * config/sparc/sparc.opt (VIS3): New option.
5231         * doc/invoke.texi: Document it.
5232         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
5233         not capable of such instructions.
5234         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
5235         to 0x300 when TARGET_VIS3.
5236         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
5237         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
5238         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
5239         (V64N8, VASS): New mode iterators.
5240         (vis3_shift, vis3_addsub_ss): New code iterators.
5241         (vbits, vconstr): New mode attributes.
5242         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
5243         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
5244         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
5245         fmean16_vis, fpadd64_vis, fpsub64_vis,
5246         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
5247         VIS 3.0 instruction patterns.
5248         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
5249         default when targetting capable cpus.  TARGET_VIS3 implies
5250         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
5251         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
5252         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
5253         is ignored.
5254         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
5255         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
5256         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
5257         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
5258         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
5259         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
5260         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
5261         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
5262         * doc/extend.texi: Document new VIS 3.0 builtins.
5263
5264 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
5265
5266         * ira-color.c (assign_hard_reg): Fix typo.
5267
5268 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
5269
5270         * doc/extend.texi: Add missing ','.
5271
5272 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
5273
5274         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
5275         Enable -fmodulo-sched at -O2 and above.
5276         * config/c6x/c6x.md (doloop_end): New expander.
5277         (mvilc, sploop, spkernel, loop_end): New patterns.
5278         (loop_end with memory destination splitter): New.
5279         * config/c6x/c6x.c: Include "hw-doloop.h".
5280         (enum unitreqs): New.
5281         (unit_req_table): New typedef.
5282         (unit_reqs): New static variable.
5283         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
5284         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
5285         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
5286         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
5287         (struct c6x_sched_context): New member last_scheduled_iter0.
5288         (init_sched_state): Initialize it.
5289         (c6x_variable_issue): Update it.
5290         (sploop_max_uid_iter0): New static variable.
5291         (c6x_sched_reorder_1): Be careful about issuing sploop.
5292         (c6x_reorg): Call c6x_hwlooops before the final schedule.
5293
5294 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
5295
5296         PR target/50566
5297         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
5298         * config/avr/avr.c (avr_address_cost): Use it.
5299         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
5300         (avr_log_vadump): Unknown %-codes finish printing.
5301
5302 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
5303
5304         PR inline-asm/50571
5305         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
5306         input constraints allow mem and not reg, pass true instead of
5307         false as second argument to maybe_fold_reference.
5308
5309         PR tree-optimization/46309
5310         * fold-const.c (make_range, merge_ranges): Remove prototypes.
5311         (make_range_step): New function.
5312         (make_range): Use it.
5313         * tree.h (make_range_step): New prototypes.
5314         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
5315         * tree-ssa-reassoc.c: Include diagnostic-core.h.
5316         (struct range_entry): New type.
5317         (init_range_entry, range_entry_cmp, update_range_test,
5318         optimize_range_tests): New functions.
5319         (reassociate_bb): Call optimize_range_tests.
5320
5321 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
5322             Richard Guenther  <rguenther@suse.de>
5323
5324         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
5325         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
5326         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
5327         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
5328         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
5329         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
5330
5331 2011-09-30  Jan Beulich  <jbeulich@suse.com>
5332
5333         * lto-cgraph.c (output_cgraph): Remove processing of
5334         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
5335         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
5336         lto_input_toplevel_asms() instead.
5337         * lto-section-in.c (lto_section_name): Add "asm" entry.
5338         * lto-streamer-in.c (lto_input_toplevel_asms): New.
5339         * lto-streamer-out.c (lto_output_toplevel_asms): New.
5340         * lto-streamer.h (LTO_minor_version): Bump.
5341         (enum lto_section_type): Add LTO_section_asm.
5342         (struct lto_asm_header): New.
5343         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
5344         * tree-streamer.h (streamer_write_string_cst): Declare.
5345         * tree-streamer-out.c (write_string_cst): Rename to
5346         streamer_write_string_cst and make global. Handle incoming string
5347         being NULL.
5348         (streamer_write_tree_header): Adjust call to renamed function.
5349
5350 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
5351
5352         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
5353         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
5354         modulo_last_stage): New static variables.
5355         (set_modulo_params, discard_delay_pairs_above): New functions.
5356         (struct delay_pair): New member stages.
5357         (htab_i2_traverse, htab_i1_traverse): New static functions.
5358         (record_delay_slot_pair): New arg stages.  All callers changed.
5359         Record it.
5360         (pair_delay): Take stages into account.
5361         (add_delay_dependencies): Don't do so for stage pairs.
5362         (struct sched_block_state): New member modulo_epilogue.
5363         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
5364         (unschedule_insns_until): Decrease modulo_insns_scheduled.
5365         Set HARD_DEP without using or.
5366         (resolve_dependencies): New static function.
5367         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
5368         If it is true, allow only insns with INSN_EXACT_TICK set.
5369         (schedule_block): Return bool, always true for normal scheduling,
5370         true or false depending on modulo scheduling success otherwise.
5371         Add bookkeeping for modulo scheduling, and call resolve_dependencies
5372         on everything left over after a modulo schedule.
5373         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
5374         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
5375         declarations.
5376         (set_modulo_params, discard_delay_pairs_above): Declare.
5377         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
5378         * doc/invoke.texi (--param): Document it.
5379
5380         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
5381         New arg modulo_scheduling.  All callers changed.  Move note handling
5382         code here from schedule_ebbs.
5383         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
5384         out of schedule_ebbs.
5385         (schedule_ebbs): Call them.  Remove note handling code moved to
5386         schedule_ebb.
5387         * sched-int.h (schedule_ebb, schedule_ebbs_init,
5388         schedule_ebbs_finish): Declare.
5389
5390 2011-09-30  Richard Guenther  <rguenther@suse.de>
5391
5392         PR middle-end/50574
5393         * tree-cfg.c (verify_gimple_comparison): Compare component
5394         mode sizes for vector comparisons.
5395
5396 2011-09-30  Revital Eres  <revital.eres@linaro.org>
5397
5398         * ddg.c (autoinc_var_is_used_p): New function.
5399         (create_ddg_dep_from_intra_loop_link,
5400         add_cross_iteration_register_deps): Call it.
5401         * ddg.h (autoinc_var_is_used_p): Declare.
5402         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
5403         (sms_schedule): Handle instructions with REG_INC.
5404
5405 2011-09-30  Revital Eres  <revital.eres@linaro.org>
5406
5407         * modulo-sched.c (generate_reg_moves): Skip instructions that
5408         do not set a register and verify no regmoves are created for
5409         !single_set instructions.
5410
5411 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
5412
5413         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
5414         insns.
5415
5416 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5417
5418         PR target/50099
5419         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
5420         (qhs_zextenddi_op): New.
5421         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
5422         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
5423         Distinguish between ARM and Thumb2 states.
5424
5425 2011-09-30  David S. Miller  <davem@davemloft.net>
5426
5427         * config/sparc/sparc.opt (VIS2): New option.
5428         * doc/invoke.texi: Document it.
5429         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
5430         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
5431         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
5432         (define_attr type): New insn type 'edgen'.
5433         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
5434         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
5435         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
5436         patterns.
5437         * niagara.md: Handle edgen.
5438         * niagara2.md: Likewise.
5439         * ultra1_2.md: Likewise.
5440         * ultra3.md: Likewise.
5441         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
5442         to 0x200 when TARGET_VIS2.
5443         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
5444         default when targetting capable cpus.  TARGET_VIS2 implies
5445         TARGET_VIS, clear and it when TARGET_FPU is disabled.
5446         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
5447         (sparc_expand_builtin): Fix predicate indexing when builtin returns
5448         void.
5449         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
5450         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
5451         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
5452         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
5453         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
5454         * doc/extend.texi: Document new VIS 2.0 builtins.
5455
5456 2011-09-29  Nick Clifton  <nickc@redhat.com>
5457             Bernd Schmidt  <bernds@codesourcery.com>
5458
5459         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
5460         * config/frv/frvend.c: Likewise.
5461         * config/frv/frv.c (frv_function_prologue): Move misplaced
5462         CALL_ARG_LOCATION notes back to their proper locations.
5463
5464 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
5465
5466         PR target/50566
5467         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
5468         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
5469         from avr_rtx_costs.
5470         (avr_legitimate_address_p): Use avr_edump to print log information
5471         filtered by avr_log.
5472         (extra_constraint_Q): Ditto.
5473         (avr_legitimize_address): Ditto.
5474         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
5475         (final_prescan_insn): Use avr_log.rtx_costs as filter.
5476
5477 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
5478
5479         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
5480         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
5481         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
5482         NEON vector and structure modes to be tied.
5483
5484 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5485
5486         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
5487         forward declaration.
5488         (remove_duplicate_close_phi): Detect and repair creation of
5489         duplicate close-phis for a containing loop.
5490
5491 2011-09-27   Andi Kleen <ak@linux.intel.com>
5492
5493         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
5494         /dev/urandom.  Add getpid call.
5495         (compare_debug_dump_opt_spec_function): Drop getpid call.
5496
5497 2011-09-26   Andi Kleen <ak@linux.intel.com>
5498
5499         * toplev.c (init_local_tick): Try reading random seed
5500         from /dev/urandom.
5501
5502 2011-09-26   Andi Kleen <ak@linux.intel.com>
5503
5504         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
5505         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
5506         Handle numerical random seed.
5507         * lto-streamer.h (lto_file_decl_data): Change id to
5508         unsigned HOST_WIDE_INT.
5509         * toplev.c (random_seed): Add.
5510         (init_random_seed): Change for numerical random seed.
5511         (get_random_seed): Return as HOST_WIDE_INT.
5512         (set_random_seed): Crc32 existing string.
5513         * toplev.h (get_random_seed): Change to numercal return.
5514         * tree.c (get_file_function_name): Remove CRC. Handle
5515         numerical random seed.
5516
5517 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
5518
5519         PR target/50566
5520         * config.gcc (extra_objs): Add avr-log.o for $target in:
5521         avr-*-rtems*, avr-*-*.
5522         * config/avr/t-avr (avr-log.o): New rule to compile...
5523         * config/avr/avr-log.c: ...this new file.
5524         * config/avr/avr.opt (mlog=): New option.
5525         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
5526         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
5527         (avr_log_set_avr_log): New prototype.
5528         (avr_log_t): New typedef.
5529         (avr_log): New declaration.
5530         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
5531
5532 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
5533
5534         * expr.c (do_store_flag): Expand vector comparison by
5535         building an appropriate VEC_COND_EXPR.
5536         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
5537         (c_objc_common_truthvalue_conversion): Adjust.
5538         * tree-vect-generic.c (do_compare): Helper function.
5539         (expand_vector_comparison): Check if hardware supports
5540         vector comparison of the given type or expand vector piecewise.
5541         (expand_vector_operation): Treat comparison as binary
5542         operation of vector type.
5543         (expand_vector_operations_1): Adjust.
5544
5545 2011-09-29  Richard Guenther  <rguenther@suse.de>
5546
5547         * tree.c (build_opaque_vector_type): Make opaque vectors
5548         variant types of the corresponding non-opaque type.  Make
5549         sure to share opaque vector types properly.
5550
5551 2011-09-29  David S. Miller  <davem@davemloft.net>
5552
5553         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
5554         UNSPEC_ARRAY32): New unspec.
5555         (define_attr type): New type 'array'.
5556         (array{8,16,32}<P:mode>_vis): New patterns.
5557         * config/sparc/ultra1_2.md: Add reservations for 'array'.
5558         * config/sparc/ultra3.md: Likewise.
5559         * config/sparc/niagara.md: Likewise.
5560         * config/sparc/niagara2.md: Likewise.
5561         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
5562         array builtins.
5563         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
5564         __vis_array32): New.
5565         * doc/extend.texi: Document new VIS builtins.
5566
5567         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
5568         (VIS pixel-compare insn): Just use <gcond:name>.
5569
5570         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
5571         code iterator used, so just use <code>.  There are two mode iterators
5572         so explicitly use <GCM:gcm_name>.
5573
5574 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
5575
5576         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
5577         Darwin >= 9.
5578
5579 2011-09-28  David S. Miller  <davem@davemloft.net>
5580
5581         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
5582         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
5583         (UNSPEC_FCMP): New unspec.
5584         (gcond): New code iterator.
5585         (gcond_name): New code attr.
5586         (GCM): New mode iterator.
5587         (gcm_name): New mode attr.
5588         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
5589
5590 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
5591
5592         PR target/49486
5593         * config/sh/sh.md (negdi2): Move expansion into split to
5594         allow more combination options.  Add T_REG clobber.
5595         (abssi2): New expander.
5596         (*negdi2, *abssi2, *negabssi2): New insns.
5597         (cneg): Change from insn to insn_and_split.  Rename to
5598         negsi_cond.  Add alternative for non-SH4.
5599
5600 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
5601
5602         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
5603         (neon_move_hi_quad_<mode>): Likewise.
5604         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
5605
5606 2011-09-28  Nick Clifton  <nickc@redhat.com>
5607
5608         * config/rx/predicates.md (rx_minmax_operand): New predicate.
5609         Accepts immediates and a restricted subset of MEMs.
5610         * config/rx/rx.md (int_modes): New iterator.
5611         (smaxsi3, sminsi3): Delete and replace with...
5612         (smax<int_mode>3, smin<int_mode>3): New patterns.
5613         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
5614
5615 2011-09-28  Richard Guenther  <rguenther@suse.de>
5616
5617         PR middle-end/50460
5618         * fold-const.c (try_move_mult_to_index): Handle &a.array the
5619         same as &a.array[0].
5620
5621 2011-09-28  Kai Tietz  <ktietz@redhat.com>
5622
5623         * configure.ac: Add test for new section attribute
5624         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
5625         * config.in: Regenerated.
5626         * configure: Regenerated.
5627         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
5628         new section flag "e" for excluded sections, if supported.
5629         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
5630
5631 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
5632
5633         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
5634         throughout file.
5635
5636 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
5637
5638         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
5639         throughout file.
5640
5641 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
5642
5643         * output.h (SECTION_EXCLUDE): New macro.
5644         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
5645
5646 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
5647
5648         * fwprop.c (forward_propagate_and_simplify): After checking
5649         reg/subreg combinations, check whether the modes are the same.
5650
5651 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
5652             Richard Sandiford  <rdsandiford@googlemail.com>
5653
5654         * config/mips/mips.c (mips_add_cfa_restore): New function.
5655         (mips16e_save_restore_reg): Use it.
5656         (mips_restore_reg): Likewise.  Split double FPRs for
5657         REG_CFA_RESTORE notes.
5658
5659 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
5660
5661         PR middle-end/50386
5662         PR middle-end/50326
5663         * tree-sra.c (build_ref_for_model): Use the type of the field as
5664         the type of the COMPONENT_REF.
5665
5666 2011-09-27  Jeff Law  <law@redhat.com>
5667
5668         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
5669         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
5670         (find_if_case_1): Use the probability of the THEN clause when
5671         determining if speculation is profitable.
5672         (find_if_case_2): Similarly for the ELSE clause.
5673
5674 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
5675
5676         * common.opt: Add -foptimize-strlen option.
5677         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
5678         (tree-sssa-strlen.o): Add dependencies.
5679         * opts.c (default_options_table): Enable -foptimize-strlen
5680         by default at -O2 if not -Os.
5681         * passes.c (init_optimization_passes): Add pass_strlen
5682         after pass_object_sizes.
5683         * timevar.def (TV_TREE_STRLEN): New timevar.
5684         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
5685         * tree-pass.h (pass_strlen): Declare.
5686         * tree-ssa-strlen.c: New file.
5687         * c-decl.c (merge_decls): If compatible stpcpy prototype
5688         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
5689
5690 2011-09-27  Tom de Vries  <tom@codesourcery.com>
5691
5692         PR middle-end/43864
5693         * tree-ssa-tail-merge.c: New file.
5694         (struct same_succ_def): Define.
5695         (same_succ, const_same_succ): New typedef.
5696         (struct bb_cluster_def): Define.
5697         (bb_cluster, const_bb_cluster): New typedef.
5698         (struct aux_bb_info): Define.
5699         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
5700         (gvn_uses_equal): New function.
5701         (same_succ_print, same_succ_print_traverse, update_dep_bb)
5702         (stmt_update_dep_bb, local_def, same_succ_hash)
5703         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
5704         (same_succ_reset): New function.
5705         (same_succ_htab, same_succ_edge_flags)
5706         (deleted_bbs, deleted_bb_preds): New var.
5707         (debug_same_succ): New function.
5708         (worklist): New var.
5709         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
5710         (init_worklist, delete_worklist, delete_basic_block_same_succ)
5711         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
5712         (print_cluster, debug_cluster, update_rep_bb)
5713         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
5714         (all_clusters): New var.
5715         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
5716         (merge_clusters, set_cluster): New function.
5717         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
5718         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
5719         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
5720         (find_clusters_1, find_clusters): New function.
5721         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
5722         (update_bbs): New var.
5723         (apply_clusters): New function.
5724         (update_debug_stmt, update_debug_stmts): New function.
5725         (tail_merge_optimize): New function.
5726         tree-pass.h (tail_merge_optimize): Declare.
5727         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
5728         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
5729         (tree-ssa-tail-merge.o): New rule.
5730         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
5731         default at OPT_LEVELS_2_PLUS.
5732         * tree-ssa-sccvn.c (vn_valueize): Move to ...
5733         * tree-ssa-sccvn.h (vn_valueize): Here.
5734         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
5735         * common.opt (ftree-tail-merge): New switch.
5736         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
5737         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
5738         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
5739         (-ftree-tail-merge, max-tail-merge-comparisons)
5740         (max-tail-merge-iterations): New item.
5741
5742 2011-09-27  Jan Hubicka  <jh@suse.cz>
5743
5744         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
5745
5746 2011-09-27  Jan Hubicka  <jh@suse.cz>
5747
5748         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
5749         parameters passed by reference; handle loads from non-SSA scalars
5750         and update comments.
5751
5752 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
5753
5754         PR rtl-optimization/50249
5755         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
5756         instead of opnum and type.  All callers changed.  Remove useless
5757         declaration.
5758         Search forward for other reloads of the same type for the same operand
5759         using the same register; if any are found, return false.
5760         (reload_regs_reach_end_p): Same argument changes; all callers changed.
5761
5762 2011-09-27  Andi Kleen  <ak@linux.intel.com>
5763             Jan Hubicka  <jh@suse.cz>
5764
5765         * doc/invoke.texi (ffat-lto-objects): Document.
5766         * toplev.c (compile_file): Do not output assembly when doing slim lto;
5767         Output __gnu_slim_lto when doing slim lto.
5768         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
5769         (cgraph_optimize): Return early when doing slim lto.
5770         * opts.c (finish_options): Complain about lack of linker plugin
5771         when doing slim lto.
5772         * common.opt (ffat-lto-objects): New.
5773
5774 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
5775
5776         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
5777         between signed and unsigned.
5778
5779 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
5780
5781         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
5782         vectorization.
5783         (vectorizable_type_promotion): Likewise.
5784         (vect_analyze_stmt): Call vectorizable_type_demotion and
5785         vectorizable_type_promotion for basic blocks.
5786         (supportable_widening_operation): Don't assume loop vectorization.
5787         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
5788         basic blocks.  Update vectorization factor for basic block
5789         vectorization.
5790         (vect_analyze_slp_instance): Allow multiple types for basic block
5791         vectorization.  Recheck unrolling factor after construction of SLP
5792         instance.
5793
5794 2011-09-27  Richard Guenther  <rguenther@suse.de>
5795
5796         * tree-object-size.c (compute_object_sizes): Fix dumping of
5797         folded statement.
5798
5799 2011-09-27  Richard Guenther  <rguenther@suse.de>
5800
5801         PR tree-optimization/50363
5802         * tree-ssa-pre.c (create_expression_by_pieces): Handle
5803         pointer conversions in POINTER_PLUS_EXPRs properly.
5804
5805 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
5806
5807         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
5808         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
5809         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
5810         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
5811         that produce subreg moves.  Define using VQX iterators.
5812
5813 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
5814
5815         * config/avr/avr.md (ashrqi3): Split alternative "n"
5816         into its remaining parts C03, C04, C05, C06, C07 and describe
5817         impact in CC by attribute "cc" appropriately.
5818         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
5819         by digging RTX.
5820
5821 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
5822
5823         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
5824         from 3 x MAX_MACHINE_MODE.
5825         (CONSTM1_RTX): Define.
5826         * emit-rtl.c (const_tiny_rtx): Change into array of
5827         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
5828         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
5829         CONSTM1_RTX.
5830         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
5831         MODE_VECTOR_INT modes.
5832         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
5833         Optimize if one operand is CONSTM1_RTX.
5834         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
5835         into mask | x.
5836
5837 2011-09-26  David S. Miller  <davem@davemloft.net>
5838
5839         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
5840         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
5841         * config/sparc/visintrin.h: Update edge and pixel-compare
5842         intrinsics to return 'long' instead of 'int'.
5843         * doc/extend.texi: Update documentation to match.
5844         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
5845         flat, allow any instruction.  Otherwise, when V9 allow parallels
5846         which consist only of sets to registers outside of %o0 to %o5.
5847         (sparc_vis_init_builtins): Update VIS builtin types for edge
5848         and pixel-compare.
5849
5850         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
5851         is enabled, mark %gsr as global.
5852         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
5853         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
5854
5855         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
5856         which will now define __VIS and __VIS__ when -mvis is enabled.
5857         * config/sparc/t-sparc: Likewise.
5858         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
5859         and add t-sparc to tmake_file for all sparc targets.
5860         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
5861         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
5862
5863         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
5864         builtins for VIS vector addition and subtraction.
5865         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
5866         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
5867         __vis_fpsub32, __vis_fpsub32s): New.
5868         * doc/extend.texi: Document new VIS intrinsics.
5869
5870 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
5871
5872         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
5873         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
5874         EQ/NE comparisons against +/-1 in the case of unused-after,
5875         non-ld-regs target.
5876
5877 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
5878
5879         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
5880         gctx.into_ssa after push_gimplify_context.
5881
5882         * gimple.c (gimple_build_call_valist): New function.
5883         * gimple.h (gimple_build_call_valist): New prototype.
5884         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
5885         (update_gimple_call): Likewise.
5886         (update_call_from_tree): Use finish_update_gimple_call.
5887         * tree-ssa-propagate.h (update_gimple_call): New prototype.
5888
5889 2011-09-26  Richard Guenther  <rguenther@suse.de>
5890
5891         PR tree-optimization/50472
5892         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
5893         volatile references.
5894
5895 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
5896
5897         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
5898         * target.def: (addr_space_subset_p): Likewise.
5899
5900 2011-09-26  Tom de Vries  <tom@codesourcery.com>
5901
5902         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
5903         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
5904         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
5905         of new var.
5906
5907 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
5908
5909         PR target/50465
5910         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
5911         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
5912         output_reload_insisf.
5913         (adjust_len): Set default to "no".
5914         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
5915         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
5916         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
5917         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
5918         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
5919         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
5920         *lshrsi3_const): Set attribute "adjust_len".
5921         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
5922         (output_movsisf): Don't pass insn to output_reload_insisf.
5923         (adjust_insn_length): Handle new alternatives to adjust_len.
5924         Remove handling of ADJUST_LEN_YES.  Clean-up code.
5925
5926 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
5927
5928         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
5929         may_trap_p to detect loads that may trap of fault.
5930
5931 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
5932
5933         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
5934         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
5935         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
5936         prototype.
5937         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
5938         * config/avr/avr.c: Rename output_reload_insisf_1 to
5939         output_reload_in_const.
5940         (avr_popcount_each_byte): Handle SFmode, too.
5941         (output_reload_in_const): Change so it can handle HI loads, too.
5942         Use avr_popcount_each_byte to work out if scratch register must be
5943         created on the fly.
5944         (output_reload_inhi): Rewrite using output_reload_in_const and...
5945         (output_movhi): ...use it to print constants' loads.
5946         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
5947
5948 2011-09-25  David S. Miller  <davem@davemloft.net>
5949
5950         * config/sparc/constraints.md (C, P, Z): New constraints for
5951         const_doube, const_int, and const_vector "all ones" values.
5952         Make unused constraint letters comment match reality.
5953         * config/sparc/predicates.md (const_all_ones_operand,
5954         register_or_zero_or_all_ones_operand): New predicates.
5955         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
5956         as well as zero constants when VIS.
5957         (sparc_legitimate_constant_p): Likewise.
5958         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
5959         (movsf_insn): Likewise
5960         (movdi_insn_sp64): Add fone alternative.
5961         (movdf_insn_sp32_v9): Likewise.
5962         (movdf_insn_sp64): Likewise.
5963
5964         * configure.ac: Add feature check to make sure the assembler
5965         supports the FMAF, HPC, and VIS 3.0 instructions found on
5966         Niagara-3 and later cpus.
5967         * configure: Rebuild.
5968         * config.in: Likewise.
5969         * config/sparc/sparc.opt: New option '-mfmaf'.
5970         * config/sparc/sparc.md: Add float fused multiply-add patterns.
5971         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
5972         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
5973         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
5974         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
5975         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
5976         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
5977         disabled.
5978         (sparc_rtx_costs): Handle 'FMA'.
5979         * doc/invoke.texi: Document -mfmaf.
5980
5981 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
5982
5983         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
5984         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
5985         DECL_BY_REFERENCE parameters.
5986
5987 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
5988
5989         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
5990         if there is no outgoing edge.
5991
5992         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
5993         integral types.
5994
5995 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
5996
5997         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
5998         of vect_analyze_bb here.
5999         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
6000
6001 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
6002
6003         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
6004         Allow not simple iv if analyzing basic block.
6005         (create_data_ref): Update call to dr_analyze_innermost.
6006         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
6007         * tree-loop-distribution.c (generate_memset_zero): Likewise.
6008         * tree-predcom.c (find_looparound_phi): Likewise.
6009         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
6010
6011 2011-09-24  David S. Miller  <davem@davemloft.net>
6012
6013         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
6014         (SPARC_GSR_REG): Define.
6015         (FIXED_REGISTERS): Mark GSR as fixed.
6016         (CALL_USED_REGISTERS): Mark GSR as call used.
6017         (HARD_REGNO_NREGS): GSR is always 1 register.
6018         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
6019         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
6020         (REGISTER_NAMES): Add "%gsr".
6021         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
6022         (UNSPEC_WRGSR): New unspec.
6023         (GSR_REG): New constant.
6024         (type): Add new insn type 'gsr'.
6025         (fpack16_vis, fpackfix_vis, fpack32_vis,
6026         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
6027         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
6028         rdgsr_v8plus): New expanders and insns.
6029         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
6030         using patterns which show that this is a plus in addition to a
6031         modification of GSR_REG, instead of an unspec.
6032         * config/sparc/ultra1_2.md: Handle 'gsr'.
6033         * config/sparc/ultra3.md: Likewise.
6034         * config/sparc/niagara.md: Likewise.
6035         * config/sparc/niagara2.md: Likewise.
6036         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
6037         end of table.
6038         (sparc_option_override): Make -mvis imply -mv8plus.
6039         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
6040         for %gsr.
6041         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
6042         __builtin_vis_read_gsr.
6043         (sparc_expand_buildin): Handle builtins that take one argument and
6044         return void.
6045         (sparc_fold_builtin): Never fold writes to %gsr.
6046         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
6047         * doc/extend.texi: Document new VIS intrinsics.
6048
6049 2011-09-23  Jan Hubicka  <jh@suse.cz>
6050
6051         * ipa-inline-transform.c (inline_call): Add comment.
6052         * ipa-inline.h (inline_param_summary): New structure and vector.
6053         (struct inline_edge_summary): Add param field.
6054         * ipa-inline-analysis.c (CHANGED): New constant.
6055         (add_clause): Handle CHANGED and NOT_CONSTANT.
6056         (predicate_probability): New function.
6057         (dump_condition): Dump CHANGED predicate.
6058         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
6059         of unknown function wide invariant.
6060         (evaluate_conditions_for_edge): Handle change probabilities.
6061         (inline_edge_duplication_hook): Copy param summaries.
6062         (inline_edge_removal_hook): Free param summaries.
6063         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
6064         sizes; dump param summaries.
6065         (will_be_nonconstant_predicate): Use CHANGED predicate.
6066         (record_modified_bb_info): New structure.
6067         (record_modified): New function.
6068         (param_change_prob): New function.
6069         (estimate_function_body_sizes): Compute param summaries.
6070         (estimate_edge_size_and_time): Add probability argument.
6071         (estimate_node_size_and_time): Add inline_param_summary argument;
6072         handle predicate probabilities.
6073         (remap_predicate): Fix formating.
6074         (remap_edge_change_prob): New function.
6075         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
6076         (remap_edge_predicates): ... this one.
6077         (inline_merge_summary): Remap edge summaries; handle predicate
6078         probabilities; remove param summaries after we are done.
6079         (do_estimate_edge_time): Update.
6080         (do_estimate_edge_growth): Update.
6081         (read_inline_edge_summary): Read param info.
6082         (inline_read_summary): Fix formating.
6083         (write_inline_edge_summary): Write param summaries.
6084
6085 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
6086
6087         * config/i386/i386.c (ix86_print_operand): Handle %~.
6088         (ix86_print_operand_punct_valid_p): Return true also for '~'.
6089         * config/i386/sse.md (i128): New mode_attr.
6090         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
6091         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
6092         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
6093         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
6094         patterns, use "<sseinsnmode>" for "mode" attribute.
6095         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
6096         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
6097         %~128 in the patterns, use "OI" for "mode" attribute.
6098
6099 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
6100
6101         PR target/50447
6102         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
6103         "tstsi", "compare".
6104         (*cmpqi_sign_extend): Use s8_operand.
6105         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
6106         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
6107         prototypes.
6108         (out_tsthi, out_tstsi): Remove prototypes.
6109         (avr_out_tsthi, avr_out_tstsi): New prototypes.
6110         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
6111         (avr_asm_len): Negative length now sets *plen to -length.
6112         (compare_sign_p): Return bool instead of int.
6113         (compare_diff_p, compare_eq_p): Ditto and make static.
6114         (avr_out_tsthi): New function.
6115         (avr_out_tstsi): New function.
6116         (avr_out_compare): New function.
6117         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
6118         ADJUST_LEN_COMPARE.
6119
6120 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
6121
6122         PR target/50447
6123         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
6124         (addsi3): Rewrite using QI scratch register.  Adjust text
6125         peepholes using plus:SI.
6126         (*addsi3_zero_extend.hi): New insn.
6127         (*subsi3_zero_extend.hi): New insn.
6128         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
6129         (*subsi3_zero_extend): Ditto.
6130         (subsi3): Change predicate #2 to register_operand.
6131         * config/avr/avr-protos.h (avr_out_plus): New prototype.
6132         (avr_out_plus_1): New static function.
6133         (avr_out_plus): New function.
6134         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
6135
6136 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
6137
6138         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
6139         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
6140
6141 2011-09-23  Ian Lance Taylor  <iant@google.com>
6142
6143         * godump.c (go_define): Treat a single character in single quotes,
6144         or a string, as an operand.
6145
6146 2011-09-23  Martin Jambor  <mjambor@suse.cz>
6147
6148         * ipa-prop.h (jump_func_type): Updated comments.
6149         (ipa_known_type_data): New type.
6150         (ipa_jump_func): Use it to describe known type jump functions.
6151         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
6152         reflect the new known type jump function contents.
6153         (compute_known_type_jump_func): Likewise.
6154         (combine_known_type_and_ancestor_jfs): Likewise.
6155         (try_make_edge_direct_virtual_call): Likewise.
6156         (ipa_write_jump_function): Likewise.
6157         (ipa_read_jump_function): Likewise.
6158         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
6159         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
6160         (propagate_accross_jump_function): Likewise.
6161
6162 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
6163
6164         PR target/50446
6165         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
6166         (rotlqi3_4): Turn insn into expander.
6167         (*rotlqi3): New insn.
6168         (rotlhi3, rotlsi3): Support rotate left/right by 1.
6169         (*rotlhi2.1, *rotlhi2.15): New insns.
6170         (*rotlsi2.1, *rotlsi2.31): New insns.
6171         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
6172
6173 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
6174
6175         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
6176
6177 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
6178
6179         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
6180
6181 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6182
6183         * reload.c (find_reloads): Set operand_mode to Pmode for address
6184         operands consisting of just a CONST_INT.
6185
6186 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
6187
6188         PR target/50482
6189         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
6190         blendv, force op_true to register if it doesn't satisfy
6191         nonimmediate_operand predicate.
6192
6193 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
6194
6195         PR middle-end/50113
6196         PR middle-end/50061
6197         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
6198         get the locate.where_pad value for register-only arguments.
6199         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
6200         (arm_pad_reg_upward): Handle null types.
6201
6202 2011-09-22  Jan Hubicka  <jh@suse.cz>
6203
6204         * ipa-inline-analysis.c: Fix overly long lines.
6205
6206 2011-09-22  Jan Hubicka  <jh@suse.cz>
6207
6208         * ipa-inline-transform.c (inline_call): Always update jump functions
6209         after inlining.
6210         * ipa-inline.c (ipa_inline): Likewise; do not call
6211         ipa_create_all_structures_for_iinln.
6212         (ipa_inline): Always free jump functions.
6213         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
6214         (remap_edge_predicates): Fix pasto.
6215         (inline_merge_summary): Remove nlined edge predicate; remove hack.
6216         (inline_analyze_function): Always initialize jump functions.
6217         (inline_generate_summary): Likewise.
6218         (inline_write_summary): Always write jump functions when ipa-cp
6219         is not doing that.
6220         (inline_read_summary): Always read jump functions when ipa-cp
6221         is not doing that.
6222         * ipa-prop.c (iinlining_processed_edges): Remove.
6223         (update_indirect_edges_after_inlining): Do not use
6224         iinlining_processed_edges; instead set param_index to -1.
6225         (propagate_info_to_inlined_callees): Only try to indirect inlining
6226         when asked to do so; update jump functions of indirect calls, too;
6227         remove jump functions of the inlined edge.
6228         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
6229         (ipa_create_all_structures_for_iinln): Remove.
6230         (ipa_free_all_structures_after_iinln): Do not free
6231         iinlining_processed_edges.
6232         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
6233
6234 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
6235
6236         * config/arm/predicates.md (expandable_comparison_operator): New
6237         predicate, extracted from...
6238         (arm_comparison_operator): ...here.
6239         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
6240         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
6241         (movdfcc): Use expandable_comparison_operator.
6242
6243 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
6244
6245         PR target/50447
6246         PR target/50465
6247         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
6248         (avr_popcount_each_byte): New prototype.
6249         * config/avr/avr.c (avr_popcount): New static function.
6250         (avr_popcount_each_byte): New function.
6251         (avr_out_bitop): New function.
6252         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
6253         avr_out_bitop.  Cleanup code.
6254         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
6255         (Ca4, Co4, Cx4): New constraints.
6256         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
6257         alternative.
6258         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
6259         (andsi3, iorsi3, xorsi3): Ditto.
6260         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
6261
6262 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
6263
6264         PR tree-optimization/50451
6265         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
6266         constant operands in reduction.
6267         (vect_get_slp_defs): Don't create vector operand for NULL scalar
6268         operand.
6269
6270 2011-09-22  David S. Miller  <davem@davemloft.net>
6271
6272         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
6273         fpack16, fpack32, fpackfix as const.
6274
6275         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
6276         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
6277         constants.  Use them everywhere.
6278
6279 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
6280
6281         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
6282         Added AND special case.  Adapted comments.
6283         (sh_rtx_costs): Added XOR and IOR case.
6284
6285 2011-09-21  Jan Hubicka  <jh@suse.cz>
6286
6287         * ipa-inline-analsis.c (compute_inline_parameters): Set
6288         cfun and current_function_decl.
6289
6290 2011-09-21  Jan Hubicka  <jh@suse.cz>
6291
6292         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
6293         handled components in parameter of builtin_constant_p.
6294         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
6295
6296 2011-09-21  Jan Hubicka  <jh@suse.cz>
6297
6298         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
6299         * ipa-inline.h (estimate_edge_time): Fix pasto.
6300         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
6301
6302 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
6303
6304         * config/i386/i386.c (ix86_expand_sse_movcc): Use
6305         blendvps, blendvpd and pblendvb if possible.
6306
6307 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
6308
6309         PR target/50464
6310         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
6311         operand 1 predicate to register_operand and operand 2 predicate
6312         to nonimmediate_operand.
6313         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
6314         xop_pcmov, force op_true to register.  Also, force op_false to
6315         register if it doesn't satisfy nonimmediate_operand predicate.
6316
6317 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
6318
6319         * config/i386/bmi2intrin.h (_mulx_u64): New.
6320         (_mulx_u32): Ditto.
6321
6322 2011-09-21  Jan Hubicka  <jh@suse.cz>
6323
6324         PR tree-optimization/50433
6325         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
6326         Use get_base_address.
6327
6328 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
6329
6330         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
6331         nonimmediate_operand instead of register_operand predicate for operands
6332         1 and 2, force them into registers if expanding them as comparison.
6333         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
6334         V8HImode force into register just operand 1.
6335
6336 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
6337
6338         PR target/45099
6339         * config/avr/avr.c (avr_function_arg_advance): Change error to
6340         warning if a fixed register is needed as function argument.
6341
6342 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
6343
6344         PR target/50449
6345         PR target/50465
6346         * config/avr/avr.md (adjust_len): New insn attribute.
6347         (*reload_insi, *reload_insf): Use it.
6348         (*movsi, *movsf): Use new interface of output_movsisf.
6349         * config/avr/avr-protos.h (output_movsisf): Change prototype.
6350         * config/avr/avr.c (output_movsisf): Ditto.
6351         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
6352         lengths of insns *reload_insi, *reload_insf.
6353         (output_reload_insisf_1): New static function.
6354         (output_reload_insisf): Use it.
6355
6356 2011-09-21  David S. Miller  <davem@davemloft.net>
6357
6358         * config/sparc/sparc.c (def_builtin): Change from macro into function.
6359         (def_builtin_const): New.
6360         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
6361         other than alignaddr and falignaddr.
6362
6363         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
6364         UNSPEC_FCMPEQ): New unspec codes.
6365         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
6366         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
6367         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
6368         new pixel compare VIS patterns.
6369         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
6370         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
6371         __vis_fcmpeq16, __vis_fcmpeq32): New.
6372         * doc/extend.texi: Document new pixel compare VIS intrinsics.
6373
6374 2011-09-21  Tom de Vries  <tom@codesourcery.com>
6375
6376         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
6377
6378 2011-09-20  David S. Miller  <davem@davemloft.net>
6379
6380         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
6381         (aligneddrl<P:mode>_vis): New pattern.
6382         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
6383         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
6384         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
6385         alignaddrl insn, and adjust edge operations for updated types.
6386         * config/sparc/visintrin.h: Likewise.
6387         * doc/extend.texi: Make typing in VIS documentation match reality.
6388
6389 2011-09-20  Terry Guo  <terry.guo@arm.com>
6390
6391         * config/arm/arm-arches.def: Add armv6s-m.
6392         * config/arm/arm-tables.opt: Regenerate.
6393
6394 2011-09-20  Wei Guozhi  <carrot@google.com>
6395
6396         PR rtl-optimization/49452
6397         * postreload.c (reload_combine): Invalidate use information when across
6398         volatile insn.
6399
6400 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
6401
6402         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
6403         Remove maintenance overhead.
6404         (haifa_sched_init, sched_finish): Update.
6405
6406 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
6407
6408         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
6409         to calculate unit, prefix_rep and prefix_data16 attributes.
6410         (*mov<mode>_internal): Ditto for unit attribute.
6411         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
6412         (*movv2sf_internal): Ditto.
6413         * config/i386/sse.md (VI1248_256): Remove mode iterator.
6414         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
6415         (*avx2_eq<mode>3): Ditto.
6416         (avx2_gt<mode>3): Ditto.
6417
6418 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
6419
6420         * config/i386/i386.md (maxmin): New code iterator.
6421         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
6422         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
6423         code iterator.
6424         (*avx2_<maxmin:code><mode>3): Macroize isn from
6425         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
6426         maxmin code iterator.
6427         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
6428         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
6429         <umaxmin:code>v16qi3.
6430
6431 2011-09-19  Alan Modra  <amodra@gmail.com>
6432             Michael Meissner  <meissner@linux.vnet.ibm.com>
6433
6434         PR target/50341
6435         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
6436         split the load of the indirect function's TOC from the call to
6437         prevent the compiler from moving the load of the new TOC above
6438         code that references the current function's TOC.
6439         (call_indirect_aix<ptrsize>_internal): Ditto.
6440         (call_indirect_aix<ptrsize>_nor11): Ditto.
6441         (call_indirect_aix<ptrsize>_internal2): Ditto.
6442         (call_value_indirect_aix<ptrsize>): Ditto.
6443         (call_value_indirect_aix<ptrsize>_internal): Ditto.
6444         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6445         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6446
6447 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
6448
6449         * config/i386/sse.md (*sse4_1_extractps): Change into
6450         define_insn_and_split, add =x 0 n and =x x n alternatives
6451         and split them after reload.
6452
6453 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
6454
6455         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
6456
6457 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
6458
6459         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
6460
6461 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
6462
6463         PR tree-optimization/50413
6464         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
6465         a basic block if one of its data-refs can't be analyzed.
6466
6467 2011-09-19  Paul Brook  <paul@codesourcery.com>
6468
6469         * config/arm/predicates.md (shift_amount_operand): Check constant
6470         shift count is in range.
6471         (const_shift_operand): Remove.
6472
6473 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
6474             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
6475
6476         PR target/50091
6477         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
6478         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
6479
6480 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
6481
6482         * config/i386/bmiintrin.h: Remove tmp.
6483         * config/i386/tbmintrin.h: Likewise.
6484
6485 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
6486
6487         PR tree-optimization/50414
6488         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
6489         MIN_EXPR.
6490
6491 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
6492
6493         PR tree-optimization/50412
6494         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
6495         acceses that require epilogue loop if vectorizing outer loop.
6496
6497 2011-09-17  David S. Miller  <davem@davemloft.net>
6498
6499         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
6500         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
6501         New unspecs.
6502         (define_attr type): New type 'edge'.
6503         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
6504         edge32l_vis): New patterns.
6505         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
6506         * config/sparc/ultra3.md: Likewise.
6507         * config/sparc/niagara.md: Likewise.
6508         * config/sparc/niagara2.md: Likewise.
6509         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
6510         builtins for VIS edge instructions.
6511         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
6512         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
6513         intrinsics.
6514         (__v8qi, __v4qi): Make unsigned.
6515         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
6516         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
6517         __vis_fpack32): Fix types.
6518         * doc/extend.texi: Document new 'edge' VIS intrinsics.
6519
6520         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
6521         divide costs.
6522         (niagara3_costs): New.
6523         (sparc_option_override): Use it.
6524         * gcc/config/sparc/niagara2.md: Adjust with more accurate
6525         Niagara-3 reservations.
6526
6527 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
6528
6529         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
6530         (sse2_avx, sseinsnmode): Add V2TI.
6531         (REDUC_SMINMAX_MODE): New mode iterator.
6532         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
6533         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
6534         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
6535         (sse2_lshrv1ti3): Rename to...
6536         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
6537         iterator.  Move before umaxmin expanders.
6538         * config/i386/i386.h (VALID_AVX256_REG_MODE,
6539         SSE_REG_MODE_P): Accept V2TImode.
6540         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
6541         V16HImode, V8SImode and V4DImode.
6542
6543         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
6544         and V4DImode.
6545         (ix86_build_signbit_mask): Likewise.
6546         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
6547         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
6548         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
6549         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
6550         (<code><mode>3) ... this.
6551         (avx2_<code><mode>3 smaxmin expand): Rename to...
6552         (<code><mode>3) ... this.
6553         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
6554         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
6555         VI8_AVX2 mode iterator.
6556         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
6557         VI8_AVX2 mode iterator.
6558         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
6559         New expanders.
6560
6561 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
6562
6563         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
6564         throughout file.
6565
6566 2011-09-16  David S. Miller  <davem@davemloft.net>
6567
6568         * config/sparc/visintrin.h: New file.
6569         * config.gcc: Add it to extra_headers on sparc.
6570
6571 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
6572
6573         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
6574         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
6575         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
6576         reduc_smin_v4sf): Adjust callers.
6577         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
6578         New expanders.
6579
6580         * config/i386/sse.md (vec_extract_hi_<mode>,
6581         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
6582         vextracti128 instead of vextractf128 for -mavx2 and
6583         integer vectors.  For V4DFmode fix up mode attribute.
6584         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
6585         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
6586         instead of V8SF mode attribute.
6587         (avx2_extracti128): Change into define_expand.
6588         * config/i386/i386.c (ix86_expand_vector_extract): Handle
6589         32-byte vector modes if TARGET_AVX.
6590
6591 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
6592
6593         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
6594         (umulqi3_highpart, smulqi3_highpart): Ditto.
6595         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
6596         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
6597         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
6598
6599 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
6600
6601         PR target/50358
6602         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
6603         (*maddqi4, *maddqi4.const): New insns.
6604         (*msubqi4, *msubqi4.const): New insns.
6605         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
6606         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
6607         HImode by 1 in the case of multiplying with a CONST_INT.
6608         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
6609
6610 2011-09-15   Jan Hubicka  <jh@suse.cz>
6611
6612         PR lto/50430
6613         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
6614         error_mark_node in the DECL_INITIAL of vtable.
6615
6616 2011-09-15   Diego Novillo  <dnovillo@google.com>
6617
6618         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
6619         @SYSROOT_CFLAGS_FOR_TARGET@.
6620         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
6621         * configure: Regenerate.
6622         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
6623         Remove setting of GCC_UNDER_TEST.
6624
6625 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
6626
6627         * config/i386/i386.c (output_fp_compare): Return %v prefixed
6628         instruction mnemonics for TARGET_AVX.
6629
6630         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
6631         "type" attribute calculation.
6632         (*movdf_internal): Ditto.
6633         (*movsf_internal): Ditto.
6634
6635 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
6636
6637         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
6638
6639 2011-09-15  Jason Merrill  <jason@redhat.com>
6640
6641         PR c++/50361
6642         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
6643
6644 2011-09-15  Jan Hubicka  <jh@suse.cz>
6645
6646         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
6647         simplify obviously true clauses.
6648         (and_predicates, or_predicates): Add conditions parameter.
6649         (inline_duplication_hoook): Update.
6650         (mark_modified): New function.
6651         (unmodified_parm): New function.
6652         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
6653         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
6654         Use unmodified_parm.
6655         (estimate_function_body_sizes): Update.
6656         (remap_predicate): Update.
6657
6658 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
6659
6660         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
6661         read-after-read dependencies in basic block SLP.
6662
6663 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
6664
6665         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
6666         throughout file.
6667
6668 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
6669
6670         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
6671         throughout file.
6672
6673 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
6674
6675         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
6676         throughout file.
6677
6678 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
6679
6680         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
6681         throughout file.
6682         * config/rs6000/constraints.md: Likewise.
6683
6684 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
6685
6686         * config/microblaze/microblaze.md: Use match_test rather than
6687         eq/ne symbol_ref throughout file.
6688
6689 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
6690
6691         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
6692         throughout file.
6693
6694 2011-09-14  Tom de Vries  <tom@codesourcery.com>
6695
6696         PR middle-end/50251
6697         * explow.c (emit_stack_restore): Set crtl->need_drap if
6698         stack_restore is emitted.
6699
6700 2011-09-14  Julian Brown  <julian@codesourcery.com>
6701
6702         * config/arm/arm.c (arm_override_options): Add unaligned_access
6703         support.
6704         (arm_file_start): Emit attribute for unaligned access as appropriate.
6705         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
6706         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
6707         (insv, extzv): Add unaligned-access support.
6708         (extv): Change to expander. Likewise.
6709         (extzv_t1, extv_regsi): Add helpers.
6710         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
6711         (unaligned_storesi, unaligned_storehi): New.
6712         (*extv_reg): New (previous extv implementation).
6713         * config/arm/arm.opt (munaligned_access): Add option.
6714         * config/arm/constraints.md (Uw): New constraint.
6715         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
6716         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
6717         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
6718         volatile accesses when -fstrict-volatile-bitfields is in effect.
6719         (extract_bit_field_1): Likewise.
6720
6721 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
6722
6723         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
6724         a scalar integer before applying integer-only optimisations to
6725         inner arithmetic.
6726
6727 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
6728
6729         * config/mips/mips.c (mips_expand_epilogue): Generate a
6730         simple_return only if the return address is in r31.
6731
6732 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
6733
6734         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
6735         NULL for a jump that is a cc0 insn, pick the previous insn for
6736         move_before.
6737
6738 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
6739
6740         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
6741         throughout file.
6742
6743 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
6744
6745         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
6746         throughout file.
6747
6748 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
6749
6750         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
6751         symbol_ref throughout file.
6752
6753 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
6754
6755         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
6756         throughout file.
6757
6758 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
6759
6760         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
6761         throughout file.
6762
6763 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
6764
6765         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
6766         throughout file.
6767         * config/arm/neon.md: Likewise.
6768         * config/arm/vfp.md: Likewise.
6769         * config/arm/thumb2.md: Likewise.
6770         * config/arm/cortex-m4.md: Likewise.
6771
6772 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
6773
6774         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
6775         define_insn patterns for combine.
6776
6777 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
6778
6779         * reorg.c: Always define make_return_insns.
6780
6781 2011-09-13  Jan Hubicka  <jh@suse.cz>
6782
6783         PR other/49533
6784         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
6785
6786 2011-09-13  Jan Hubicka  <jh@suse.cz>
6787
6788         PR other/49533
6789         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
6790
6791 2011-09-13  Paul Brook  <paul@codesourcery.com>
6792
6793         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6794         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
6795         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
6796         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
6797         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
6798         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
6799         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
6800         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
6801         enabling unwind tables.
6802         (c6x_debug_unwind_info): New function.
6803         (TARGET_ARM_EABI_UNWINDER): Define.
6804         (TARGET_DEBUG_UNWIND_INFO): Define.
6805         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
6806         (TARGET_EXTRA_CFI_SECTION): Remove.
6807         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
6808         * ginclude/unwind-arm-common.h: New file.
6809
6810 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
6811
6812         PR target/50358
6813         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
6814         * config/avr/avr.md: (extend_s): New code attribute.
6815         (mul_r_d): New code attribute.
6816         (*maddqihi4, *umaddqihi4): New insns.
6817         (*msubqihi4, *umsubqihi4): New insns.
6818         (*usmaddqihi4, *sumaddqihi4): New insns.
6819         (*usmsubqihi4, *susubdqihi4): New insns.
6820         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
6821         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
6822         (*umsubqihi4.uconst.ashift): New insn-and-split.
6823         (*msubqihi4.sconst.ashift): New insn-and-split.
6824         (*sumaddqihi4.uconst): New insn-and-split.
6825         (*sumsubqihi4.uconst): New insn-and-split.
6826         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
6827         PLUS:HI and MINUS:HI.
6828
6829 2011-09-13  Revital Eres  <revital.eres@linaro.org>
6830
6831         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
6832         (optimize_sc): Adjust call to remove_node_from_ps.
6833         (sms_schedule): Add print info.
6834
6835 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
6836
6837         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
6838         flags specially.
6839
6840 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
6841
6842         PR bootstrap/50010
6843         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
6844         NOTE_INSN_CFI notes, with the exception of
6845         NOTE_INSN_SWITCH_TEXT_SECTIONS.
6846
6847 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
6848             Richard Sandiford  <rdsandiford@googlemail.com>
6849
6850         * config/mips/mips.c (mips_epilogue): New structure.
6851         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
6852         restoring registers.
6853         (mips_epilogue_emit_cfa_restores): New function.
6854         (mips_epilogue_set_cfa): Likewise.
6855         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
6856         the current CFA register from the stack, redefine the CFA in terms
6857         of the stack pointer.
6858         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
6859         to the epilogue instructions.
6860
6861 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
6862
6863         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
6864         argument.
6865         (mips16e_build_save_restore): Update accordingly.
6866
6867 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
6868
6869         PR rtl-optimization/50212
6870         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6871         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
6872
6873         PR debug/50299
6874         * calls.c (load_register_parameters): Use use_reg_mode instead
6875         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
6876         entry.
6877         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
6878         for stack CALL_INSN_FUNCTION_USAGE uses.
6879         * expr.h (use_reg_mode): New prototype.
6880         (use_reg): Changed into inline around use_reg_mode.
6881         * expr.c (use_reg): Renamed to...
6882         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
6883         mode to that mode instead of VOIDmode.
6884         * var-tracking.c (prepare_call_arguments): Don't track parameters
6885         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
6886         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
6887         EXPR_LIST mode.
6888
6889 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
6890
6891         PR target/43746
6892         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
6893         (progmem_section): New Variable.
6894         (avr_asm_init_sections): Initialize it.
6895         (TARGET_ASM_SELECT_SECTION): Define to...
6896         (avr_asm_select_section): ... this new Function.
6897         (avr_replace_prefix): New Function.
6898         (avr_asm_function_rodata_section): Use it.
6899         (avr_insert_attributes): Don't add section attribute for PROGMEM.
6900         (avr_section_type_flags): Use avr_progmem_p instead of section
6901         name to detect if object is in PROGMEM.
6902         (avr_asm_named_section): Set section name prefix for objects in
6903         PROGMEM.
6904
6905 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
6906
6907         PR bootstrap/50352
6908         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
6909         sprintf format string.
6910
6911 2011-09-12  Richard Guenther  <rguenther@suse.de>
6912
6913         PR tree-optimization/50343
6914         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
6915         that the reduction is over an SSA name before checking its definition.
6916
6917 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
6918
6919         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
6920         throughout file.
6921
6922 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
6923
6924         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
6925         throughout file.
6926         * config/mips/sb1.md: Likewise.
6927         * config/mips/predicates.md: Replace (match_test "!...")
6928         with (not (match_test "..."))
6929         * config/mips/constraints.md: Likewise.
6930
6931 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
6932
6933         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
6934         * config/arm/arm-tables.opt: Regenerate.
6935         * config/arm/arm-tune.md: Regenerate.
6936         * config/arm/arm.c (arm_file_start): Output .arch directive when
6937         user passes -mcpu=generic-*.
6938         (arm_issue_rate): Add genericv7a support.
6939         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
6940         (ASM_CPU_SPEC): New define.
6941         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
6942         * config/arm/semi.h (ASM_SPEC): Likewise.
6943         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
6944         and -mtune=generic-*.
6945
6946 2011-09-09  Richard Guenther  <rguenther@suse.de>
6947
6948         PR tree-optimization/50328
6949         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
6950         constant or default-def operand.
6951
6952 2011-09-09  Richard Guenther  <rguenther@suse.de>
6953
6954         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
6955         last statement.
6956
6957 2011-09-09  Richard Guenther  <rguenther@suse.de>
6958
6959         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
6960         instead of a statement.
6961         * gimple-fold.c (fold_stmt_inplace): Likewise.
6962         * sese.c (graphite_copy_stmts_from_block): Adjust.
6963         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
6964         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
6965         fold_stmt.
6966         (forward_propagate_addr_into_variable_array_index): Likewise.
6967         (forward_propagate_addr_expr_1): adjust.
6968         (associate_plusminus): Likewise.
6969         (ssa_forward_propagate_and_combine): Likewise.
6970         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
6971         (execute_cse_reciprocals): Likewise.
6972         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
6973
6974 2011-09-09  Nick Clifton  <nickc@redhat.com>
6975
6976         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
6977         Return a positive value to indicate that the bits at the
6978         bottom of the register should be cleared.
6979
6980 2011-09-09  Richard Guenther  <rguenther@suse.de>
6981
6982         * tree-ssa-operands.c (swap_tree_operands): Always adjust
6983         existing operand positions.
6984
6985 2011-09-09  Richard Guenther  <rguenther@suse.de>
6986
6987         PR middle-end/50333
6988         * tree-data-ref.c (split_constant_offset): Do not try to handle
6989         ternary ops.
6990
6991 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
6992
6993         PR tree-optimization/50318
6994         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
6995         typo in use of mult_rhs1 and mult_rhs2.
6996
6997 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
6998
6999         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
7000         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
7001
7002 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
7003
7004         * config/arm/arm.md (push_multi): Emit predicates.
7005         (push_fp_multi): Likewise.
7006         * config/arm/arm.c (vfp_output_fstmd): Likewise.
7007
7008 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
7009
7010         PR c++/33255 - Support -Wunused-local-typedefs warning
7011         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
7012         (pushdecl): Use the new record_locally_defined_typedef.
7013         (store_parm_decls): Allocate cfun->language.
7014         (finish_function): Use the new maybe_warn_unused_local_typedefs,
7015         and free cfun->language.
7016         (c_push_function_context): Allocate cfun->language here only if needed.
7017         (c_pop_function_context): Likewise, mark cfun->language
7018         for collection only when it should be done.
7019         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
7020         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
7021         maybe_record_local_typedef_use.
7022         * doc/invoke.texi: Update documentation for
7023         -Wunused-local-typedefs.
7024
7025 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
7026
7027         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
7028         (ix86_avoid_lea_for_add): Likewise.
7029         (ix86_avoid_lea_for_addr): Likewise.
7030         (ix86_split_lea_for_addr): Likewise.
7031
7032         * config/i386/i386.c (LEA_MAX_STALL): New.
7033         (increase_distance): Likewise.
7034         (insn_defines_reg): Likewise.
7035         (insn_uses_reg_mem): Likewise.
7036         (distance_non_agu_define_in_bb): Likewise.
7037         (distance_agu_use_in_bb): Likewise.
7038         (ix86_lea_outperforms): Likewise.
7039         (ix86_ok_to_clobber_flags): Likewise.
7040         (ix86_avoid_lea_for_add): Likewise.
7041         (ix86_avoid_lea_for_addr): Likewise.
7042         (ix86_split_lea_for_addr): Likewise.
7043         (distance_non_agu_define): Search in pred BBs added.
7044         (distance_agu_use): Search in succ BBs added.
7045         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
7046         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
7047         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
7048
7049         * config/i386/i386.md: Split added to transform non destructive
7050         add into move and add.
7051         (lea_1): transformed into insn_and_split to avoid AGU stalls.
7052         (lea<mode>_2): Likewise.
7053
7054 2011-09-08  Martin Jambor  <mjambor@suse.cz>
7055
7056         PR tree-optimization/50287
7057         * ipa-split.c (split_function): Do not create SSA names for
7058         non-gimple-registers.
7059
7060 2011-09-08  Richard Guenther  <rguenther@suse.de>
7061
7062         PR tree-optimization/19831
7063         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
7064         skip builtins with vdefs that do not really store something.
7065         (propagate_necessity): For calls to free that we can associate
7066         with an allocation function do not mark the freed pointer
7067         definition necessary.
7068         (eliminate_unnecessary_stmts): Remove a call to free if
7069         the associated call to an allocation function is not necessary.
7070
7071 2011-09-08  Richard Guenther  <rguenther@suse.de>
7072
7073         PR tree-optimization/19831
7074         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
7075         allocation functions as necessary.
7076
7077 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
7078
7079         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
7080         cut from ...
7081         (darwin_default_min_version): Amended to provide defaults
7082         for the cross directory case.
7083         (darwin_driver_init): call darwin_default_min_version unconditionally.
7084         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
7085         * config/darwin9.h: Likewise.
7086         * config/darwin10.h: Likewise.
7087         * config/rs6000/darwin7.h: Likewise.
7088
7089 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
7090
7091         PR target/50310
7092         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
7093         code early if TARGET_AVX.
7094         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
7095
7096 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
7097
7098         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
7099         duplicates.
7100
7101         PR target/50310
7102         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
7103         "mode" attribute computation.
7104
7105 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
7106
7107         * regrename.c (struct du_head): Make nregs signed.
7108         (closed_chains): Remove.
7109         (create_new_chain): Return the new chain.
7110         (chain_from_id): New static function.
7111         (dump_def_use_chain): Change argument to be an int, indicating
7112         the first ID to print.  All callers changed.
7113         (merge_overlapping_regs): Use chain_from_id.  Assert that
7114         chains don't conflict with themselves.
7115         (rename_chains): Take no argument.  Iterate over id_to_chain
7116         rather to find chains to rename.  Clear tick before the main loop.
7117         (struct incoming_reg_info): New struct.
7118         (struct bb_rename_info): New struct.
7119         (init_rename_info, set_incoming_from_chain, merge_chains): New
7120         static functions.
7121         (regrename_analyze): New static function, broken out of
7122         regrename_optimize.  Record and make use of open chain information
7123         at basic block boundaries, and merge chains where possible.
7124         (scan_rtx_reg): Make this_nregs signed.  Don't update
7125         closed_chains.
7126         (build_def_use): Return a bool to indicate success.  All callers
7127         changed.  Don't initialize global data here.
7128         (regrename_optimize): Move most code out of here into
7129         regrename_analyze.
7130         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
7131         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
7132         static inline functions.
7133         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
7134
7135         * bb-reorder.c (insert_section_boundary_note): Don't check
7136         optimize_function_for_speed_p.
7137         (gate_handle_partition_blocks): Do it here instead.
7138         (gate_handle_reorder_blocks): Move preliminary checks here ...
7139         (rest_of_handle_reorder_blocks): ... from here.
7140
7141 2011-09-07  Martin Jambor  <mjambor@suse.cz>
7142
7143         PR middle-end/50301
7144         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
7145         function index bounds.
7146         (perhaps_add_new_callers): Likewise.
7147
7148 2011-09-07  Martin Jambor  <mjambor@suse.cz>
7149
7150         PR tree-optimization/49911
7151         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
7152         enumerations to the corresponding plain integer type.
7153
7154 2011-09-07  Richard Guenther  <rguenther@suse.de>
7155
7156         PR tree-optimization/50319
7157         * tree-if-conv.c (set_bb_predicate): Assert we only set
7158         canonical predicates.
7159         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
7160         around canonical predicates.
7161         (predicate_bbs): Do not re-gimplify already canonical
7162         predicates.  Properly unshare them though.
7163         (find_phi_replacement_condition): Simplify.
7164
7165 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
7166
7167         PR target/49030
7168         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
7169         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
7170         reusing the old code from get_arm_condition_code.  Return ARM_NV
7171         for invalid comparison codes.
7172         (get_arm_condition_code): Redefine in terms of
7173         maybe_get_arm_condition_code.
7174         * config/arm/predicates.md (arm_comparison_operator): Use
7175         maybe_get_arm_condition_code.
7176
7177 2011-09-07  Richard Guenther  <rguenther@suse.de>
7178
7179         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
7180         Canonicalize negated predicates by swapping edges.
7181         (forward_propagate_into_cond): Likewise.
7182
7183 2011-09-07  Richard Guenther  <rguenther@suse.de>
7184
7185         PR tree-optimization/50213
7186         * tree-flow.h (simple_iv_increment_p): Declare.
7187         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
7188         POINTER_PLUS_EXPR.
7189         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
7190         not propagate simple IV counter increments.
7191
7192 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
7193             Iain Sandoe  <iains@gcc.gnu.org>
7194
7195         * config/rs6000/rs6000.c (compute_save_world_info): Test
7196         cfun->has_nonlocal_label to determine if the out-of-line save
7197         world call may be used.
7198
7199 2011-09-07  Nick Clifton  <nickc@redhat.com>
7200
7201         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
7202         label on the parallel part of the insn.
7203
7204 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
7205
7206         PR debug/50191
7207         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
7208         avoid_constant_pool_reference first instead of last.
7209
7210 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
7211
7212         * doc/configfiles.texi (Configuration Files): Update documentation
7213         about tm_p.h and remove FIXME comment.
7214
7215 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
7216
7217         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
7218         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
7219
7220 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
7221
7222         * config/darwin10.h Remove duplicate LIB_SPEC.
7223
7224 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
7225
7226         PR middle-end/44382
7227         * target.def (reassociation_width): New hook.
7228
7229         * doc/tm.texi.in (reassociation_width): Likewise.
7230
7231         * doc/tm.texi (reassociation_width): Likewise.
7232
7233         * doc/invoke.texi (tree-reassoc-width): New param documented.
7234
7235         * hooks.h (hook_int_uint_mode_1): New default hook.
7236
7237         * hooks.c (hook_int_uint_mode_1): Likewise.
7238
7239         * config/i386/i386.h (ix86_tune_indices): Add
7240         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
7241
7242         (TARGET_REASSOC_INT_TO_PARALLEL): New.
7243         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
7244
7245         * config/i386/i386.c (initial_ix86_tune_features): Add
7246         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
7247
7248         (ix86_reassociation_width): New function.
7249
7250         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
7251
7252         * tree-ssa-reassoc.c (get_required_cycles): New function.
7253         (get_reassociation_width): Likewise.
7254         (swap_ops_for_binary_stmt): Likewise.
7255         (rewrite_expr_tree_parallel): Likewise.
7256
7257         (rewrite_expr_tree): Refactored.  Part of code moved into
7258         swap_ops_for_binary_stmt.
7259
7260         (reassociate_bb): Now checks reassociation width to be used and
7261         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
7262
7263 2011-09-06  Richard Guenther  <rguenther@suse.de>
7264
7265         PR tree-optimization/47025
7266         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
7267         uses nothing.
7268         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
7269         BUILT_IN_FREE.
7270         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
7271         definitely points to.
7272         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7273         BUILT_IN_VA_START doesn't let its va_list argument escape.
7274         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
7275         not make any previous stores necessary.
7276
7277 2011-09-06  Martin Jambor  <mjambor@suse.cz>
7278
7279         * ipa-inline.h (struct inline_summary): Move versionable flag...
7280         * cgraph.h (struct cgraph_local_info): ...here
7281         * ipa-cp.c (determine_versionability): Use the new versionable flag.
7282         (determine_versionability): Likewise.
7283         (ipcp_versionable_function_p): Likewise.
7284         (ipcp_generate_summary): Likewise.
7285         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
7286         versionable flag.
7287         (compute_inline_parameters): Do not clear the versionable flag.
7288         (inline_read_section): Do not stream the versionable flag.
7289         (inline_write_summary): Likewise.
7290         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
7291         (input_overwrite_node): Likewise.
7292
7293 2011-09-06  Richard Guenther  <rguenther@suse.de>
7294
7295         PR tree-optimization/48149
7296         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
7297         (vn_valueize): Move earlier.
7298         (valueize_expr): Use vn_valueize.
7299         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
7300         operands.
7301         (simplify_unary_expression): Simplify.
7302
7303 2011-09-06  Richard Guenther  <rguenther@suse.de>
7304
7305         PR tree-optimization/48317
7306         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
7307         trailing array.
7308         (sizeof_vn_nary_op): New inline function.
7309         (vn_nary_op_lookup_pieces): Adjust.
7310         (vn_nary_op_insert_pieces): Likewise.
7311         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
7312         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
7313         any number of operands.
7314         (vn_nary_length_from_stmt): New function.
7315         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
7316         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
7317         sized temporary.
7318         (vn_nary_op_lookup): Likewise.
7319         (vn_nary_op_lookup_stmt): Likewise.
7320         (vn_nary_op_insert_into): Likewise.
7321         (vn_nary_op_insert_stmt): Likewise.
7322         (visit_use): Handle CONSTRUCTOR as nary.
7323         * tree-ssa-pre.c (phi_translate_1): Adjust.
7324         (create_expression_by_pieces): Likewise.
7325         (compute_avail): Likewise.
7326
7327 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
7328
7329          * config/arm/arm.c (arm_preferred_simd_mode): Check
7330         TARGET_NEON_VECTORIZE_DOUBLE instead of
7331         TARGET_NEON_VECTORIZE_QUAD.
7332         (arm_autovectorize_vector_sizes): Likewise.
7333         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
7334         mask of mvectorize-with-neon-double.  Add RejectNegative.
7335         (mvectorize-with-neon-double): New.
7336
7337 2011-09-06  Richard Guenther  <rguenther@suse.de>
7338
7339         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
7340
7341 2011-09-06  Tom de Vries  <tom@codesourcery.com>
7342
7343         * recog.c (asm_labels_ok): New function.
7344         (check_asm_operands): Use asm_labels_ok.
7345
7346 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
7347
7348         PR target/49606
7349         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
7350         (PMODE_INSN): New macro.
7351         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
7352         (mips_got_load, mips_expand_synci_loop): Likewise.
7353         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
7354         cprestore patterns.
7355         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
7356         copygp_mips16 patterns.
7357         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
7358         and use_cprestore patterns.
7359         (mips_override_options): Check for incompatible -mabi and -mlong
7360         combinations.
7361         * config/mips/mips.md (unspec_got<mode>): Rename to...
7362         (unspec_got_<mode>): ...this.
7363         (copygp_mips16): Use the Pmode iterator.
7364         (potential_cprestore, cprestore, use_cprestore): Likewise.
7365         (clear_cache, indirect_jump): Use PMODE_INSN.
7366         (indirect_jump<mode>): Rename to...
7367         (indirect_jump_<mode>): ...this.
7368         (tablejump): Use PMODE_INSN.
7369         (tablejump<mode>): Rename to...
7370         (tablejump_<mode>): ...this.
7371         (exception_receiver): Handle restore_gp_si and restore_gp_di.
7372         (restore_gp): Use the Pmode iterator.
7373         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
7374         PMODE_INSN.
7375
7376 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
7377
7378         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
7379         Fix the type of the BIT_AND_EXPR.
7380
7381 2011-09-05  David S. Miller  <davem@davemloft.net>
7382
7383         * config.host: Add driver-sparc.o and sparc/x-sparc on
7384         native sparc*-*-linux* builds.
7385         * config/sparc/driver-sparc.c: Correct Linux strings.
7386         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
7387         * config/sparc/linux64.h: Likewise.
7388         * doc/invoke.texi: Document that Linux also supports
7389         -mcpu=native and -mtune=native on sparc.
7390
7391         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
7392         PROCESSOR_NIAGARA4): New.
7393         * config/sparc/sparc.opt: Handle new processor types.
7394         * config/sparc/sparc.md: Add to "cpu" attribute.
7395         * config/sparc/sparc.h (TARGET_CPU_niagara3,
7396         TARGET_CPU_niagara4): New, treat as niagara2.
7397         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
7398         * config/sparc/sol2.h: Likewise.
7399         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
7400         * config/sparc/sparc.c (sparc_option_override): Add
7401         niagara3 and niagara4 handling.
7402         (sparc32_initialize_trampoline): Likewise.
7403         (sparc64_initialize_trampoline): Likewise.
7404         (sparc_use_sched_lookahead): Likewise.
7405         (sparc_issue_rate): Likewise.
7406         (sparc_register_move_cost): Likewise.
7407         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
7408         and niagara4 as appropriate.
7409         * doc/invoke.texi: Document new processor types.
7410         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
7411         and --with-tune options.
7412
7413         * config/sparc/sol2-64.h: Move ...
7414         * config/sparc/default-64.h: ... to here.  Update comment.
7415         * config.gcc: Update Solaris sparc to use default-64.h, also
7416         prefix this header into the list on sparc64-*-linux.
7417         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
7418         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
7419         to MASK_HARD_QUAD.
7420
7421 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
7422
7423         PR target/50289
7424         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
7425         that contain global register variable.
7426
7427 2011-09-05  Richard Guenther  <rguenther@suse.de>
7428
7429         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
7430
7431 2011-09-05  Richard Guenther  <rguenther@suse.de>
7432
7433         * stor-layout.c (layout_type): Use size_binop for array size
7434         calculations.
7435
7436 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
7437
7438         * config/avr/avr.h (progmem_section): Remove Declaration.
7439         * config/avr/avr.c (progmem_section): Make static and rename to
7440         progmem_swtable_section.
7441         (avr_output_addr_vec_elt): No need to switch sections.
7442         (avr_asm_init_sections): Use output_section_asm_op as section
7443         callback for progmem_swtable_section.
7444         (avr_output_progmem_section_asm_op): Remove Function.
7445         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
7446         (avr_asm_function_rodata_section): New static Function.
7447         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
7448         alignment 2**1 for jump tables.
7449
7450 2011-09-04  Jan Hubicka  <jh@suse.cz>
7451
7452         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
7453         parameter is SSA name.
7454
7455 2011-09-04  Richard Guenther  <rguenther@suse.de>
7456
7457         Revert
7458         2011-08-31  Richard Guenther  <rguenther@suse.de>
7459
7460         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
7461         special-casing.
7462
7463 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
7464
7465         PR debug/49901
7466         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
7467
7468 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
7469             Ira Rosen  <ira.rosen@linaro.org>
7470
7471         PR tree-optimization/50208
7472         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
7473         argument.  Check that def_stmt is inside the loop.
7474         (vect_recog_widen_mult_pattern): Update calls to
7475         vect_handle_widen_mult_by_cons.
7476         (vect_operation_fits_smaller_type): Check that def_stmt is
7477         inside the loop.
7478
7479 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
7480
7481         * tree-vectorizer.c (vect_print_dump_info): Print line
7482         number when dumping to a file.
7483         (vectorize_loops): Add new messages to dump file.
7484
7485 2011-09-03  Martin Jambor  <mjambor@suse.cz>
7486
7487         * ipa-prop.h (ipa_jump_func_t): New typedef.
7488         (struct ipa_edge_args): Removed field argument_count, field
7489         jump_functions turned into a vector.
7490         (ipa_set_cs_argument_count): Removed.
7491         (ipa_get_cs_argument_count): Updated to work on vectors.
7492         (ipa_get_ith_jump_func): Likewise.
7493         * ipa-prop.c (ipa_count_arguments): Removed.
7494         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
7495         jump functions.  Update caller.
7496         (compute_pass_through_member_ptrs): Likewise.
7497         (compute_cst_member_ptr_arguments): Likewise.
7498         (ipa_compute_jump_functions_for_edge): Get number of arguments from
7499         the statement, allocate vector.
7500         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
7501         (duplicate_ipa_jump_func_array): Removed.
7502         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
7503         (ipa_read_node_info): Allocate vector.
7504
7505 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7506
7507         PR middle-end/50232
7508         * config/pa/pa.md (return): Define "return" insn pattern.
7509         (epilogue): Use it when no epilogue is needed.
7510         * config/pa/pa.c (pa_can_use_return_insn): New function.
7511         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
7512
7513 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
7514
7515         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
7516         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
7517         Force at least BITS_PER_UNIT alignment on the new variable.
7518
7519 2011-09-02  Gary Funck <gary@intrepid.com>
7520
7521         * opts.c (print_specific_help): Fix off-by-one compare in
7522         assertion check.
7523         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7524         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
7525         Increase by +5 to allow for more languages.
7526         * optc-gen.awk: Generate #if that ensures that the number of
7527         languages is within the implementation-defined limit.
7528
7529 2011-09-02  Michael Matz  <matz@suse.de>
7530
7531         PR middle-end/50260
7532         * ipa-split.c (split_function): Call add_referenced_var.
7533
7534         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
7535         (cond_if_else_store_replacement_1): Ditto.
7536         * tree-ssa-pre.c (get_representative_for): Ditto.
7537         (create_expression_by_pieces): Ditto.
7538         (insert_into_preds_of_block): Ditto.
7539         * tree-sra.c (create_access_replacement): Ditto.
7540         (get_replaced_param_substitute): Ditto.
7541
7542 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
7543
7544         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
7545         automata_options.
7546         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
7547         (l1w, s1w, l2w, s2w): Define in the main automaton.
7548         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
7549         units.
7550         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
7551         (c6x_unit_names): Add the new units.
7552         (c6x_unit_codes): New static array.
7553         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
7554         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
7555         UNIT_QID_SIDE_OFFSET): New macros.
7556         (RESERVATION_S2): Adjust value.
7557         (c6x_option_override): Compute c6x_unit_codes.
7558         (assign_reservations): Take the unit_mask of the last instruction
7559         into account.  Detect floating point reservations by looking for
7560         the new units.  Don't assign reservations if the field is already
7561         nonzero.
7562         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
7563         (init_sched_state): Initialize it.
7564         (c6x_clear_sched_context): Free it.
7565         (insn_set_clock): Clear reservation.
7566         (prev_cycle_state): New static variable.
7567         (c6x_init_sched_context): Save it.
7568         (c6x_sched_init): Allocate space for it and clear it.
7569         (c6x_sched_dfa_pre_cycle_insn): New static function.
7570         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
7571         (c6x_variable_issue): Only record units in the unit_mask that
7572         were not set at the start of the cycle.
7573         (c6x_variable_issue): Compute and store the unit_mask from the
7574         current state.
7575         (reorg_split_calls): Ensure the new information remains correct.
7576         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
7577         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
7578         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
7579         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
7580         Add special reservations.
7581         * config/c6x/c6x-sched.md: Regenerate.
7582
7583 2011-09-02  Martin Jambor  <mjambor@suse.cz>
7584
7585         * ipa-prop.h (ipa_node_params): Removed fields
7586         called_with_var_arguments and node_versionable.
7587         (ipa_set_called_with_variable_arg): Removed.
7588         (ipa_is_called_with_var_arguments): Likewise.
7589         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
7590         (determine_versionability): Do not check for type attributes and va
7591         builtins.  Record versionability into inline summary.
7592         (initialize_node_lattices): Do not check
7593         ipa_is_called_with_var_arguments.
7594         (propagate_constants_accross_call): Likewise, ignore arguments we do
7595         not have PARM_DECLs for, set variable flag for parameters that were
7596         not passed a value.
7597         (create_specialized_node): Dump info that we cannot change signature.
7598         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
7599         number of arguments.
7600         (ipa_make_edge_direct_to_target): Likewise.
7601         (ipa_update_after_lto_read): Likewise.
7602         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
7603         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
7604         they were remapped.
7605
7606 2011-09-02  Richard Guenther  <rguenther@suse.de>
7607
7608         PR tree-optimization/27460
7609         PR middle-end/29269
7610         * doc/md.texi (vcond): Document.
7611         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
7612         optab with two modes.
7613         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
7614         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
7615         (vcond_optab): Adjust.
7616         (vcondu_optab): Likewise.
7617         (expand_vec_cond_expr_p): Adjust prototype.
7618         * optabs.c (get_vcond_icode): Adjust.
7619         (expand_vec_cond_expr_p): Likewise.
7620         (expand_vec_cond_expr): Likewise.
7621         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
7622         vector type.
7623         (vectorizable_condition): Allow differing types for comparison
7624         and result.
7625         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
7626         for the comparison.
7627         * config/i386/sse.md (vcond<mode>): Split to
7628         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
7629         vcond<V_128:mode><VI124_128:mode> and
7630         vcondu<V_128:mode><VI124_128:mode>.
7631         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
7632         (vconduv2di): Likewise.
7633         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
7634         (vcondu<mode>): Likewise.
7635         * config/ia64/vect.md (vcond<mode>): Likewise.
7636         (vcondu<mode>): Likewise.
7637         (vcondv2sf): Likewise.
7638         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
7639         * config/rs6000/paired.md (vcondv2sf): Likewise.
7640         * config/rs6000/vector.md (vcond<mode>): Likewise.
7641         (vcondu<mode>): Likewise.
7642         * config/spu/spu.md (vcond<mode>): Likewise.
7643         (vcondu<mode>): Likewise.
7644
7645 2011-09-02  Richard Guenther  <rguenther@suse.de>
7646
7647         * pretty-print.h (pp_unsigned_wide_integer): New.
7648         * tree-pretty-print.c (dump_generic_node): Print unsigned
7649         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
7650
7651 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
7652
7653         PR target/49987
7654         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
7655         valid CONST_VECTOR operands.
7656         (rs6000_expand_vector_init): Likewise.
7657
7658 2011-09-02  Martin Jambor  <mjambor@suse.cz>
7659
7660         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
7661         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
7662         BINFO_VTABLE.  Parameter delta removed, all callers updated.
7663         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
7664         BINFO_VTABLE.
7665         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
7666         all calls.
7667         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
7668         handling of thunk_delta.
7669         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
7670         (devirtualization_time_bonus): Do not handle thunk deltas.
7671         (ipcp_discover_new_direct_edges): Likewise.
7672         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7673         (try_make_edge_direct_simple_call): Likewise.
7674         (try_make_edge_direct_virtual_call): Likewise.
7675         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
7676         parameter set as unused.
7677         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
7678         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
7679         parameter set as unused.
7680         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
7681         (input_edge_opt_summary): Likewise.
7682         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
7683         BINFO_VIRTUALS at all.
7684         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
7685
7686 2011-09-02  Richard Guenther  <rguenther@suse.de>
7687
7688         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
7689         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
7690
7691 2011-08-31  Richard Guenther  <rguenther@suse.de>
7692
7693         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
7694         handling here, from ...
7695         (expand_expr_real_1): ... here.
7696         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
7697         and VEC_COND_EXPR.
7698         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
7699         a GIMPLE_TERNARY_RHS.
7700         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
7701         and VEC_COND_EXPR here ...
7702         (verify_gimple_assign_single): ... not here.
7703         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
7704         * tree-object-size.c (cond_expr_object_size): Adjust.
7705         (collect_object_sizes_for): Likewise.
7706         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
7707         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
7708         (ssa_forward_propagate_and_combine): Adjust.
7709         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
7710         as ternary.
7711         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
7712         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
7713         * tree-vect-stmt.c (vectorizable_condition): Likewise.
7714         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
7715         (extract_range_from_assignment): Likewise.
7716
7717 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
7718
7719         * config/i386/i386.md: Use (match_test ...) for attribute tests.
7720         * config/i386/mmx.md: Likewise.
7721         * config/i386/sse.md: Likewise.
7722         * config/i386/predicates.md (call_insn_operand): Use
7723         (not (match_test "...")) instead of (match_test "!...")
7724         * config/i386/constraints.md (w): Likewise.
7725
7726 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
7727
7728         * doc/md.texi: Describe the use of match_tests in attribute tests.
7729         * rtl.def (MATCH_TEST): Update commentary.
7730         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
7731         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
7732
7733 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
7734
7735         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
7736         (attr_string): Use copy_md_ptr_loc.
7737
7738 2011-08-31  Martin Jambor  <mjambor@suse.cz>
7739
7740         PR middle-end/49886
7741         * ipa-inline-analysis.c (compute_inline_parameters): Set
7742         can_change_signature of noes with typde attributes.
7743         * ipa-split.c (split_function): Do not skip any arguments if
7744         can_change_signature is set.
7745
7746 2011-08-31  Martin Jambor  <mjambor@suse.cz>
7747
7748         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
7749         check removed.
7750
7751 2011-08-31  Richard Guenther  <rguenther@suse.de>
7752
7753         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
7754         special-casing.
7755
7756 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
7757
7758         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
7759
7760 2011-08-31  Tom de Vries  <tom@codesourcery.com>
7761
7762         PR middle-end/43513
7763         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
7764         * tree-ssa-ccp.c (params.h): Include.
7765         (fold_builtin_alloca_for_var): New function.
7766         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
7767
7768 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
7769
7770         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
7771         Handle FMA option.
7772
7773 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
7774
7775         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
7776         b3 and b4 unsigned.
7777
7778 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
7779
7780         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
7781         when code is SET.
7782
7783 2011-08-30  Richard Guenther  <rguenther@suse.de>
7784
7785         PR middle-end/48571
7786         * gimple.h (maybe_fold_offset_to_address): Remove.
7787         (maybe_fold_offset_to_reference): Likewise.
7788         (maybe_fold_stmt_addition): Likewise.
7789         (may_propagate_address_into_dereference): Likewise.
7790         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
7791         array references.
7792         * gimple-fold.c (canonicalize_constructor_val): Likewise.
7793         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
7794         addresses instead.
7795         (may_propagate_address_into_dereference): Remove.
7796         (maybe_fold_offset_to_array_ref): Likewise.
7797         (maybe_fold_offset_to_reference): Likewise.
7798         (maybe_fold_offset_to_address): Likewise.
7799         (maybe_fold_stmt_addition): Likewise.
7800         (fold_gimple_assign): Do not reconstruct array references but
7801         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
7802         MEM_REF addresses.
7803         (gimple_fold_stmt_to_constant_1): Likewise.
7804         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7805         * gimplify.c (gimplify_conversion): Likewise.
7806         (gimplify_expr): Likewise.
7807
7808 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
7809
7810         * config/i386/fmaintrin.h: New.
7811         * config.gcc: Add fmaintrin.h.
7812         * config/i386/i386.c
7813         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
7814         <IX86_BUILTIN_VFMADDSD3>: Likewise.
7815         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
7816         (*fmai_fmadd_<mode>): Likewise.
7817         (*fmai_fmsub_<mode>): Likewise.
7818         (*fmai_fnmadd_<mode>): Likewise.
7819         (*fmai_fnmsub_<mode>): Likewise.
7820         * config/i386/immintrin.h: Add fmaintrin.h.
7821
7822 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
7823
7824         * genautomata.c (NO_COMB_OPTION): New macro.
7825         (no_comb_flag): New static variable.
7826         (gen_automata_option): Handle NO_COMB_OPTION.
7827         (comb_vect_p): False if no_comb_flag.
7828         (add_vect): Move computation of min/max values.  Return early if
7829         no_comb_flag.
7830         * doc/md.texi (automata_option): Document no-comb-vect.
7831
7832         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
7833         "__x86.get_pc_thunk".
7834
7835         * bb-reorder.c (insert_section_boundary_note): Only do it if
7836         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
7837
7838 2011-08-30  Christian Bruel  <christian.bruel@st.com>
7839
7840         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
7841         flag_profile_use.
7842
7843 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
7844
7845         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
7846         to off.  Document switch.
7847         * doc/invoke.texi (-msave-toc-indirect): Ditto.
7848
7849 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
7850
7851         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
7852         conditionals and comments inside macro arguments.
7853
7854 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
7855             Richard Guenther  <rguenther@suse.de>
7856
7857         * tree.h (constant_boolean_node): Adjust prototype.
7858         * fold-const.c (fold_convert_loc): Move aggregate conversion
7859         leeway down.
7860         (constant_boolean_node): Make value parameter boolean, add
7861         vector type handling.
7862         (fold_unary_loc): Use constant_boolean_node.
7863         (fold_binary_loc): Preserve types properly when folding
7864         COMPLEX_EXPR <__real x, __imag x>.
7865         * gimplify.c (gimplify_expr): Handle vector comparison.
7866         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
7867         comparison.
7868         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
7869         comparisons.
7870
7871 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
7872
7873         PR middle-end/48722
7874         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
7875         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
7876         (verify_rtl_sharing): Likewise and verify_rtx_sharing
7877         in there too.
7878         (unshare_all_rtl_in_chain): For CALL_INSNs
7879         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
7880
7881 2011-08-29  Richard Guenther  <rguenther@suse.de>
7882
7883         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
7884         on the built ADDR_EXPR.
7885
7886 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
7887
7888         PR debug/50215
7889         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
7890         before adding ENTRY_VALUE to val->locs.
7891
7892 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
7893
7894         PR bootstrap/50218
7895         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
7896         comp.
7897
7898 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
7899
7900         * doc/rtl.texi (simple_return): Document.
7901         (parallel, PATTERN): Here too.
7902         * doc/md.texi (return): Mention it's allowed to expand to simple_return
7903         in some cases.
7904         (simple_return): Document standard pattern.
7905         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
7906         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
7907         * reorg.c (function_return_label, function_simple_return_label):
7908         New static variables, replacing...
7909         (end_of_function_label): ... this.
7910         (simplejump_or_return_p): New static function.
7911         (optimize_skip, steal_delay_list_from_fallthrough,
7912         fill_slots_from_thread): Use it.
7913         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
7914         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
7915         (find_end_label): Take a new arg which is one of the two return
7916         rtxs.  Depending on which, set either function_return_label or
7917         function_simple_return_label.  All callers changed.
7918         (make_return_insns): Make both kinds.
7919         (dbr_schedule): Adjust for two kinds of end labels.
7920         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
7921         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
7922         (gen_expand, gen_split): Use ANY_RETURN_P.
7923         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
7924         * rtl.def (SIMPLE_RETURN): New code.
7925         * ifcvt.c (find_if_case_1): Be more careful about
7926         redirecting jumps to the EXIT_BLOCK.
7927         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
7928         returnjump_p_1): Handle SIMPLE_RETURNs.
7929         * print-rtl.c (print_rtx): Likewise.
7930         * rtl.c (copy_rtx): Likewise.
7931         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
7932         * combine.c (simplify_set): Likewise.
7933         * resource.c (find_dead_or_set_registers, mark_set_resources):
7934         Likewise.
7935         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
7936         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
7937         (init_emit_regs): Initialize simple_return_rtx.
7938         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
7939         force_nonfallthru_and_redirect.
7940         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
7941         (GR_SIMPLE_RETURN): New enum value.
7942         (simple_return_rtx): New macro.
7943         * basic-block.h (force_nonfallthru_and_redirect): Adjust
7944         declaration.
7945         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
7946         argument.  All callers changed.  Be careful about what kinds of
7947         returnjumps to generate.
7948         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
7949         ix86_pad_short_function): Likewise.
7950         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
7951         of return.
7952         * config/mips/mips.md (any_return): New code_iterator.
7953         (optab): Add cases for return and simple_return.
7954         (return): Expand to a simple_return.
7955         (simple_return): New pattern.
7956         (*<optab>, *<optab>_internal for any_return): New patterns.
7957         (return_internal): Remove.
7958         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
7959         a simple_return_internal.
7960
7961 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
7962
7963         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
7964         (vec_extract_lo_<mode>): Prevent both operands in memory.
7965         (vec_extract_lo_v16hi): Ditto.
7966         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
7967
7968 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
7969
7970         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
7971         (*sse2_mulv4si3): Ditto.
7972         (mulv2di3): Ditto.
7973         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
7974         notes to REG_EQUAL.
7975
7976 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
7977
7978         PR target/50202
7979         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
7980         when all outputs are unused.
7981         (sse4_2_pcmpistr): Ditto.
7982
7983 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
7984
7985         * config/i386/i386.md (round<mode>2): New expander.
7986         * config/i386/i386.c (enum ix86_builtins): Add
7987         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
7988         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
7989         descriptions.
7990         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
7991         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
7992
7993 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
7994
7995         PR middle-end/50083
7996         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
7997         only when TARGET_C99_FUNCTIONS.
7998         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
7999         <BUILT_IN_RINT{,F,L}>: Ditto.
8000
8001 2011-08-26  Michael Matz  <matz@suse.de>
8002             Jakub Jelinek  <jakub@redhat.com>
8003
8004         PR lto/50165
8005         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
8006         don't call strlen twice, use memcpy.
8007
8008 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
8009
8010         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
8011         * config/i386/bmiintrin.h: Likewise.
8012         * config/i386/lzcntintrin.h: Likewise.
8013
8014         * config/i386/immintrin.h: Include <lzcntintrin.h>,
8015         <bmiintrin.h> and <bmi2intrin.h>.
8016
8017 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8018
8019         PR target/50166
8020         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
8021         * configure: Regenerate.
8022
8023 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
8024
8025         PR c/50179
8026         * c-typeck.c (c_process_expr_stmt): Skip over nops and
8027         call mark_exp_read even if exprv is ADDR_EXPR.
8028
8029 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
8030
8031         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
8032         to df_set_dead_notes_for_mw.
8033
8034 2011-08-26  Richard Guenther  <rguenther@suse.de>
8035
8036         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
8037
8038 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
8039             Tom de Vries  <tom@codesourcery.com>
8040
8041         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
8042         (struct ivopts_data): Add loop_single_exit_p field.
8043         (niter_for_exit): Change parameter desc_p into return value.  Return
8044         desc if desc->may_be_zero.  Free desc if unused.
8045         (niter_for_single_dom_exit): Change return type.
8046         (find_induction_variables): Handle changed return type of
8047         niter_for_single_dom_exit.  Dump may_be_zero.
8048         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
8049         (set_use_iv_cost): Add and handle comp parameter.
8050         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
8051         comp argument to set_use_iv_cost.
8052         (strip_wrap_conserving_type_conversions, expr_equal_p)
8053         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
8054         (may_eliminate_iv): Add comp parameter.  Handle new return type of
8055         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
8056         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
8057         and may_eliminate_iv.
8058         (rewrite_use_compare): Move call to iv_elimination_compare to ...
8059         (may_eliminate_iv): Here.
8060         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
8061
8062 2011-08-26  Tom de Vries  <tom@codesourcery.com>
8063
8064         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
8065         accessing TREE_TYPE.
8066
8067 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
8068
8069         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
8070         (*ior_scc_scc_cmp): Likewise
8071         (*and_scc_scc): Likewise.
8072         (*and_scc_scc_cmp): Likewise.
8073         (*and_scc_scc_nodom): Likewise.
8074         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
8075
8076 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
8077
8078         * rtlanal.c (nonzero_bits1): Handle CLRSB.
8079
8080 2011-08-26  Richard Guenther  <rguenther@suse.de>
8081
8082         * expr.c (string_constant): Handle &MEM_REF.
8083
8084 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
8085
8086         * config/arm/arm.c (struct four_ints): New type.
8087         (count_insns_for_constant): Delete function.
8088         (find_best_start): Delete function.
8089         (optimal_immediate_sequence): New function.
8090         (optimal_immediate_sequence_1): New function.
8091         (arm_gen_constant): Move constant splitting code to
8092         optimal_immediate_sequence.
8093         Rewrite constant negation/invertion code.
8094
8095 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
8096
8097         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
8098         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
8099         Remove prototype. Remove static function type.
8100         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
8101         Add arch attribute.
8102         * config/arm/constraints.md (Pj, PJ): New constraints.
8103
8104 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8105
8106         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
8107         ("cortex_a9_multiply_long"): New and use above.  Handle all
8108         long multiply cases.
8109         ("cortex_a9_multiply"): Handle smmul and smmulr.
8110         ("cortex_a9_mac"): Handle smmla.
8111
8112 2011-08-25  Richard Henderson  <rth@redhat.com>
8113
8114         PR 50132
8115         PR 49864
8116         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
8117         non-constant stack adjutment.
8118         * expr.c (find_args_size_adjust): Break out from ...
8119         (fixup_args_size_notes): ... here.
8120         * rtl.h (find_args_size_adjust): Declare.
8121
8122 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
8123
8124         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
8125         sse4 and sse4_noavx.
8126         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
8127         (*pushdf_rex64): Change Y2 register constraint to x.
8128         (*movdf_internal_rex64): Ditto.
8129         (*zero_extendsidi2_rex64): Ditto.
8130         (*movdi_internal): Change Y2 register constraint to x
8131         and update "isa" attribute.
8132         (*pushdf): Ditto.
8133         (*movdf internal): Ditto.
8134         (zero_extendsidi2_1): Ditto.
8135         (*truncdfdf_mixed): Ditto.
8136         (*truncxfdf2_mixed): Ditto.
8137         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
8138         register constraint to x.
8139         (*movv2sf_internal_rex64): Ditto.
8140         (*mov<mode>_internal): Change Y2 register constraint to x
8141         and add "isa" attribute.
8142         (*movv2sf_internal): Ditto.
8143         (*vec_extractv2si_1): Ditto.
8144         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
8145         constraints to x and update "isa" attribute.
8146         (*vec_interleave_highv2df): Change Y3 registerconstraint
8147         to x and update "isa" attribute.
8148         (*vec_interleave_lowv2df): Ditto.
8149         (*vec_concatv2df): Change Y2 register constraint to x and
8150         update "isa" attribute.
8151         (sse2_loadld): Ditto.
8152         (*vec_extractv2di_1): Ditto.
8153         (*vec_dupv4si): Ditto.
8154         (*vec_dupv2di): Ditto.
8155         (*vec_concatv4si): Ditto.
8156         (vec_concatv2di): Ditto.
8157         * config/i386/constraints.md (Y2): Remove.
8158         (Y3): Ditto.
8159         (Y4): Ditto.
8160
8161 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
8162
8163         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
8164         dump_def_use_chain): Don't declare.
8165         (mark_conflict, create_new_chain): Move before users.
8166         (regrename_optimize): Move to near end of file.
8167
8168 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
8169
8170         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
8171         (secondary_input_reload_class): Remove Prototype.
8172         * config/avr/avr.c (byte_immediate_operand): Remove Function.
8173         * config/avr/avr.md (setmemhi): Use u8_operand.
8174         (strlenhi): Use const0_rtx for comparison.
8175         * config/avr/avr.h (avr_reg_order): Remove Declaration.
8176
8177 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
8178
8179         * config/avr/avr.c (reg_class_tab): Make local to
8180         avr_regno_reg_class.  Return smallest register class available.
8181
8182 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
8183
8184         * config/avr/avr.c (STR_PREFIX_P): New Define.
8185         (avr_asm_declare_function_name): Use it.
8186         (avr_asm_named_section): Use it.
8187         (avr_section_type_flags): Use it.
8188
8189 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
8190
8191         * doc/md.texi (automata_option): Document collapse-ndfa.
8192         * genautomata.c (COLLAPSE_OPTION): New macro.
8193         (collapse_flag): New static variable.
8194         (struct description): New member normal_decls_num.
8195         (struct automaton): New members advance_ainsn and collapse_ainsn.
8196         (gen_automata_option): Check for COLLAPSE_OPTION.
8197         (collapse_ndfa_insn_decl): New static variable.
8198         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
8199         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
8200         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
8201         necessary.  Use normal_decls_num rather than decls_num, remove
8202         test for special decls.
8203         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
8204         (make_automaton); Likewise.  Use the new advance_cycle_insn member
8205         of struct automaton.
8206         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
8207         is set.
8208         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
8209         transition.  Create the necessary transitions for it.
8210         (create_ainsns): Return void.  Take an automaton_t argument, and
8211         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
8212         callers changed.
8213         (COLLAPSE_NDFA_VALUE_NAME): New macro.
8214         (output_tables): Output code to define it.
8215         (output_internal_insn_code_evaluation): Output code to accept
8216         const0_rtx as collapse-ndfa transition.
8217         (output_default_latencies, output_print_reservation_func,
8218         output_print_description): Reorganize loops to use normal_decls_num
8219         as loop bound; remove special case for advance_cycle_insn_decl.
8220         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
8221         (check_automata_insn_issues): Check for collapse_ainsn.
8222         (expand_automate): Allocate sufficient space.  Initialize
8223         normal_decls_num.
8224
8225 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
8226
8227         * config/avr/avr.md: Fix indentation from r177991.
8228
8229 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
8230
8231         * regrename.c (struct du_head): Remove member terminated.
8232         (create_new_chain): Don't initialize it.
8233         (scan_rtx_reg): Don't set or test it, test the open_chains_set
8234         bitmap instead.
8235         (tick, this_tick): New global variables, moved out of
8236         regrename_optimize.
8237         (current_id, open_chains, closed_chains, open_chains_set,
8238         live_in_chains, live_hard_regs): Reorder declarations.
8239         (dump_def_use_chain): Move function earlier in the file.
8240         (rename_chains): New static function, broken out of
8241         regrename_optimize.
8242         (regrename_optimize): Use it.  Remove #if 0'ed code.
8243
8244 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8245
8246         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
8247
8248 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
8249
8250         PR target/50172
8251         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
8252
8253 2011-08-24  Richard Guenther  <rguenther@suse.de>
8254
8255         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
8256         ref in the basic-block case.  Move stripping array-refs
8257         to the place we create an access-function for it.  Remove
8258         bogus stripping down a MEM_REF to its base.
8259
8260 2011-08-24  Richard Guenther  <rguenther@suse.de>
8261
8262         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
8263         with -fno-strict-overflow.
8264
8265 2011-08-24  Richard Guenther  <rguenther@suse.de>
8266
8267         * tree-vectorizer.c (vect_print_dump_info): Avoid the
8268         file and location clutter when dumping to dump files.
8269
8270 2011-08-24  Simon Baldwin  <simonb@google.com>
8271
8272         * gengtype-state.c (write_state): Remove timestamped header line.
8273
8274 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
8275
8276         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
8277         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
8278         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
8279         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
8280         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
8281         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
8282         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
8283         rules.
8284         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
8285
8286 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
8287
8288         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
8289
8290 2011-08-24  Richard Guenther  <rguenther@suse.de>
8291
8292         PR tree-optimization/50067
8293         * tree-data-ref.c (dr_analyze_indices): Do not add an access
8294         function for a MEM_REF base that has no evolution in the loop
8295         nest or that is not analyzable.
8296
8297 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
8298
8299         * ira.c (ira_init_register_move_cost): Check small subclasses
8300         through ira_reg_class_max_nregs and ira_available_class_regs.
8301
8302 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
8303
8304         * config/i386/constraints.md (Yp): New register constraint.
8305         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
8306         Yp register constraint.
8307         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
8308         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
8309         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
8310
8311 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
8312
8313         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
8314
8315 2011-08-23  Mark Heffernan  <meheff@google.com>
8316
8317         PR middle-end/38509
8318         * common.opt (Wfree-nonheap-object): New option.
8319         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
8320         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
8321         to warning.
8322         (expand_builtin): Make warning conditional.
8323
8324 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
8325
8326         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
8327         (length_immediate): Handle imulx, ishiftx and rotatex.
8328         (imm_disp): Ditto.
8329         (isa): Add bmi2.
8330         (enabled): Handle bmi2.
8331         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
8332         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
8333         (*bmi2_umulditi3_1): New insn pattern.
8334         (*bmi2_umulsidi3_1): Ditto.
8335         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
8336         (*bmi2_ashl<mode>3_1): New insn pattern.
8337         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
8338         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
8339         (*bmi2_ashlsi3_1_zext): New insn pattern.
8340         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
8341         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
8342         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
8343         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
8344         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
8345         flags dependency.
8346         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
8347         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
8348         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
8349         flags dependency.
8350         (*bmi2_rorx<mode>3_1): New insn pattern.
8351         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
8352         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
8353         (*rotatert<mode>3_1 splitter): Ditto.
8354         (*bmi2_rorxsi3_1_zext): New insn pattern.
8355         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
8356         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
8357         (*rotatertsi3_1_zext splitter): Ditto.
8358
8359 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
8360
8361         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
8362         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
8363         (ix86_handle_option): Handle OPT_mbmi2 case.
8364         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
8365         (x86_64-*-*): Likewise.
8366         * config/i386/bmi2intrin.h: New file.
8367         * config/i386/cpuid.h (bit_BMI2): New.
8368         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8369         BMI2 feature.
8370         * config/i386/i386-c.c (ix86_target_macros_internal):
8371         Conditionally define __BMI2__.
8372         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
8373         Handle BMI2 option.
8374         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
8375         (print_reg): New code.
8376         (ix86_print_operand): Likewise.
8377         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
8378         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
8379         IX86_BUILTIN_PEXT64.
8380         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
8381         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
8382         IX86_BUILTIN_PEXT64.
8383         * config/i386/i386.h (TARGET_BMI2): New.
8384         * config/i386/i386.md (UNSPEC_PDEP): New.
8385         (UNSPEC_PEXT): Likewise.
8386         (*bmi2_bzhi_<mode>3): Likewise.
8387         (*bmi2_pdep_<mode>3): Likewise.
8388         (*bmi2_pext_<mode>3): Likewise.
8389         * config/i386/i386.opt (mbmi2): New.
8390         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
8391         is defined.
8392         * doc/extend.texi: Document BMI2 built-in functions.
8393         * doc/invoke.texi: Document -mbmi2.
8394
8395 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
8396
8397         PR middle-end/50161
8398         * simplify-rtx.c (simplify_const_unary_operation): If
8399         op is CONST_INT, don't look at op_mode, but use instead mode.
8400         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
8401         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
8402         operation and TRUNCATE/ZERO_EXTEND if needed.
8403         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
8404         Document that operand mode must be same as operation mode,
8405         or VOIDmode.
8406         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
8407         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
8408         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
8409         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
8410         use the mode of operand for the operation and add truncate
8411         or zero_extend around if needed.
8412         * config/c6x/c6x.md (ctzdi2): Likewise.
8413         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
8414
8415 2011-08-12  Michael Matz  <matz@suse.de>
8416
8417         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
8418         (gimple_expand_cfg): Merge alignment info for coalesced pointer
8419         SSA names.
8420
8421 2011-08-23  Richard Guenther  <rguenther@suse.de>
8422
8423         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
8424         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
8425         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
8426         from ...
8427         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
8428         (mem_refs_may_alias_p): Adjust.
8429         * tree-data-ref.h (dr_may_alias_p): Adjust.
8430         * tree-data-ref.c: Include tree-affine.h.
8431         (dr_analyze_indices): Do nothing for the non-loop case.
8432         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
8433         more cases in the non-loop case.
8434         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
8435         calls to dr_may_alias_p.
8436         (write_alias_graph_to_ascii_ecc): Likewise.
8437         (write_alias_graph_to_ascii_dot): Likewise.
8438         (build_alias_set_optimal_p): Likewise.
8439
8440 2011-08-23  Richard Guenther  <rguenther@suse.de>
8441
8442         PR tree-optimization/50162
8443         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
8444
8445 2011-08-23  Richard Guenther  <rguenther@suse.de>
8446
8447         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
8448         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
8449         (create_data_ref): Also dump access functions for the created data-ref.
8450
8451 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
8452             Kirill Yukhin  <kirill.yukhin@intel.com>
8453
8454         PR target/50155
8455         * config/i386/sse.md (VI_AVX2): New.
8456         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
8457         (*<plusminus_insn><mode>3): Ditto.
8458         (<sse2_avx2>_andnot<mode>3): Ditto.
8459         (*andnot<mode>3): Fix order of cond operands.
8460         Add asserts for correct TARGET_xxx.
8461         (*<any_logic:code><mode>3): Ditto.
8462
8463 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
8464
8465         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
8466         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
8467         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
8468         regclass argument type to reg_class_t. Change 'max' and 'v' vars
8469         and return types to unsigned char. Use reg_class_contents instead
8470         of class_contents.
8471         (TARGET_CLASS_MAX_NREGS): Define.
8472
8473 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
8474
8475         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
8476         to make computed_jump_p return true.
8477
8478 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8479
8480         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
8481         (PICFLAG_FOR_TARGET): Substitute.
8482         * aclocal.m4: Regenerate.
8483         * configure: Regenerate.
8484
8485 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
8486
8487         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
8488         after reading in the pch.
8489
8490 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8491
8492         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
8493         * configure: Regenerated.
8494
8495 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
8496
8497         PR tree-optimization/50133
8498         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
8499         from stmt instead of some statement around gsi.
8500
8501         PR middle-end/50141
8502         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
8503         innerdecl is a VAR_DECL.
8504
8505 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8506
8507         * config/i386/avx2intrin.h: New file.
8508         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
8509         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
8510         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
8511         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
8512         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
8513         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
8514         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
8515         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
8516         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
8517         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
8518         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
8519         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
8520         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
8521         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
8522         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
8523         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
8524         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
8525         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
8526         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
8527         VOID_FTYPE_PV8SI_V8SI_V8SI,
8528         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
8529         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
8530         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
8531         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
8532         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
8533         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
8534         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
8535         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
8536         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
8537         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
8538         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
8539         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
8540         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
8541         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
8542         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
8543         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
8544         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
8545         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
8546         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
8547         V4DI_FTYPE_V4DI_INT_CONVERT,
8548         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
8549         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
8550         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
8551         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
8552         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
8553         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
8554         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
8555         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
8556         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
8557         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
8558         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
8559         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
8560         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
8561         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
8562         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
8563         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
8564         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
8565         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
8566         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
8567         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
8568         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
8569         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
8570         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
8571         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
8572         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
8573         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
8574         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
8575         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
8576         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
8577         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
8578         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
8579         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
8580         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
8581         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
8582         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
8583         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
8584         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
8585         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
8586         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
8587         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
8588         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
8589         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
8590         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
8591         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
8592         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
8593         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
8594         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
8595         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
8596         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
8597         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
8598         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
8599         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
8600         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
8601         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
8602         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
8603         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
8604         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
8605         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
8606         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
8607         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
8608         IX86_BUILTIN_VBROADCASTSS_PS256,
8609         IX86_BUILTIN_VBROADCASTSD_PD256,
8610         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
8611         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
8612         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
8613         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
8614         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
8615         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
8616         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
8617         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
8618         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
8619         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
8620         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
8621         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
8622         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
8623         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
8624         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
8625         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
8626         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
8627         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
8628         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
8629         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
8630         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
8631         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
8632         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
8633         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
8634         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
8635         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
8636         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
8637         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
8638         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
8639         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
8640         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
8641         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
8642         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
8643         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
8644         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
8645         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
8646         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
8647         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
8648         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
8649         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
8650         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
8651         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
8652         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
8653         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
8654         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
8655         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
8656         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
8657         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
8658         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
8659         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
8660         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
8661         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
8662         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
8663         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
8664         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
8665         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
8666         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
8667         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
8668         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
8669         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
8670         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
8671         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
8672         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
8673         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
8674         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
8675         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
8676         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
8677         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
8678         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
8679         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
8680         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
8681         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
8682         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
8683         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
8684         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
8685         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
8686         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
8687         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
8688         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
8689         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
8690         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
8691         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
8692         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
8693         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
8694         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
8695         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
8696         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
8697         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
8698         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
8699         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
8700         IX86_BUILTIN_VBROADCASTSD_PD256,
8701         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
8702         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
8703         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
8704         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
8705         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
8706         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
8707         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
8708         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
8709         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
8710         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
8711         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
8712         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
8713         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
8714         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
8715         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
8716         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
8717         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
8718         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
8719         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
8720         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
8721         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
8722         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
8723         IX86_BUILTIN_GATHERDIV8SI.
8724         (ix86_preferred_simd_mode): Support AVX2 modes.
8725         (ix86_expand_args_builtin): Support AVX2 builtins.
8726         (ix86_expand_special_args_builtin): Likewise.
8727         (ix86_expand_builtin): Likewise.
8728         * config/i386/i386.md (UNSPEC_VPERMSI): New.
8729         (UNSPEC_VPERMDF): Likewise.
8730         (UNSPEC_VPERMSF): Likewise.
8731         (UNSPEC_VPERMDI): Likewise.
8732         (UNSPEC_VPERMTI): Likewise.
8733         (UNSPEC_GATHER): Likewise.
8734         (ssemodesuffix): Extend.
8735         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
8736         is defined.
8737         * config/i386/predicates.md (const1248_operand): New.
8738         * config/i386/sse.md (VI1_AVX2): New mode iterator.
8739         (VI2_AVX2): Likewise.
8740         (VI4_AVX2): Likewise.
8741         (VI8_AVX2): Likewise.
8742         (VIMAX_AVX2): Likewise.
8743         (SSESCALARMODE): Likewise.
8744         (VI12_AVX2): Likewise.
8745         (VI24_AVX2): Likewise.
8746         (VI124_AVX2): Likewise.
8747         (VI248_AVX2): Likewise.
8748         (VI48_AVX2): Likewise.
8749         (VI4SD_AVX2): Likewise.
8750         (V48_AVX2): Likewise.
8751         (AVX256MODE2P): Likewise.
8752         (AVXMODE48P_DI): Likewise.
8753         (sse2_avx2): New mode attribute.
8754         (ssse3_avx2): Likewise.
8755         (sse4_1_avx2): Likewise.
8756         (avx_avx2): Likewise.
8757         (ssebytemode): Likewise.
8758         (AVXTOSSEMODE): Likewise.
8759         (AVXMODE48P_DI): Likewise.
8760         (gthrfirstp): Likewise.
8761         (gthrlastp): Likewise.
8762         (lshift): New code_iterator
8763         (lshift): New code attribute.
8764         (lshift): Likewise.
8765         (ssescalarmodesuffix): Update.
8766         (sseunpackmode): Likewise.
8767         (ssepackmode): Likewise.
8768         (avx2_vec_dupv4sf): New insn pattern.
8769         (avx2_vec_dupv8sf): Likewise.
8770         (avx2_interleave_highv4di): Likewise.
8771         (avx2_interleave_lowv4di): Likewise.
8772         (avx2_umulv4siv4di3): Likewise
8773         (*avx2_umulv4siv4di3): Likewise
8774         (avx2_pmaddwd): Likewise.
8775         (*avx2_pmaddwd): Likewise.
8776         (avx2_lshrqv4di3): Likewise.
8777         (avx2_lshlqv4di3): Likewise.
8778         (avx2_lshl<mode>3): Likewise.
8779         (avx2_<umaxmin:code><mode>3): Likewise.
8780         (*avx2_<umaxmin:code><mode>3): Likewise.
8781         (avx2_<smaxmin:code><mode>3): Likewise.
8782         (*avx2_<smaxmin:code><mode>3): Likewise.
8783         (avx2_eq<mode>3): Likewise.
8784         (*avx2_eq<mode>3): Likewise.
8785         (avx2_gt<mode>3): Likewise.
8786         (avx2_interleave_highv32qi): New.
8787         (avx2_interleave_lowv32qi): Likewise.
8788         (avx2_interleave_highv16hi): Likewise.
8789         (avx2_interleave_lowv16hi): Likewise.
8790         (avx2_interleave_highv8si): Likewise.
8791         (avx2_interleave_lowv8si): Likewise.
8792         (avx2_pshufd): Likewise.
8793         (avx2_pshufd_1): Likewise.
8794         (avx2_pshuflwv3): Likewise.
8795         (avx2_pshuflw_1): Likewise.
8796         (avx2_pshufhwv3): Likewise.
8797         (avx2_pshufhw_1): Likewise.
8798         (avx2_uavgv32qi3): Likewise.
8799         (*avx2_uavgv32qi3): Likewise.
8800         (avx2_uavgv16hi3): Likewise.
8801         (*avx2_uavgv16hi3): Likewise.
8802         (avx2_pmovmskb): Likewise.
8803         (avx2_phaddwv16hi3): Likewise.
8804         (avx2_phadddv8si3): Likewise.
8805         (avx2_phaddswv16hi3): Likewise.
8806         (avx2_phsubwv16hi3): Likewise.
8807         (avx2_phsubdv8si3): Likewise.
8808         (avx2_phsubswv16hi3): Likewise.
8809         (avx2_pmaddubsw256): Likewise.
8810         (avx2_umulhrswv16hi3): Likewise.
8811         (*avx2_umulhrswv16hi3): Likewise.
8812         (avx2_packusdw): Likewise.
8813         (avx2_pblendd<mode>): Likewise.
8814         (avx2_<code>v16qiv16hi2): Likewise.
8815         (avx2_<code>v8qiv8si2): Likewise.
8816         (avx2_<code>v8hiv8si2): Likewise.
8817         (avx2_<code>v4qiv4di2): Likewise.
8818         (avx2_<code>v4hiv4di2): Likewise.
8819         (avx2_<code>v4siv4di2): Likewise.
8820         (avx2_pbroadcast<mode>): Likewise.
8821         (avx2_permvarv8si): Likewise.
8822         (avx2_permv4df): Likewise.
8823         (avx2_permvarv8sf): Likewise.
8824         (avx2_permv4di): Likewise.
8825         (avx2_permv2ti): Likewise.
8826         (avx2_vec_dupv4df): Likewise.
8827         (avx2_vbroadcasti128_<mode>): Likewise.
8828         (avx2_vec_set_lo_v4di): Likewise.
8829         (avx2_vec_set_hi_v4di): Likewise.
8830         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
8831         (avx2_extracti128): Likewise.
8832         (avx2_inserti128): Likewise.
8833         (avx2_ashrvv8si): Likewise.
8834         (avx2_ashrvv4si): Likewise.
8835         (avx2_<lshift>vv8si): Likewise.
8836         (avx2_<lshift>v<mode>): Likewise.
8837         (avx2_<lshift>vv2di): Likewise.
8838         (avx2_gathersi<mode>): Likewise.
8839         (*avx2_gathersi<mode>): Likewise.
8840         (avx2_gatherdi<mode>): Likewise.
8841         (*avx2_gatherdi<mode>): Likewise.
8842         (avx2_gatherdi<mode>256): Likewise.
8843         (*avx2_gatherdi<mode>256): Likewise.
8844         (<plusminus_insn><mode>3): Use VI mode iterator.
8845         (*<plusminus_insn><mode>3): Use VI mode iterator.
8846         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
8847         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
8848         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
8849         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
8850         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
8851         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
8852         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
8853         Use VI2_AVX2 mode iterator.
8854         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
8855         Use VI2_AVX2 mode iterator.
8856         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
8857         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
8858         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
8859         Use VI4_AVX2 mode iterator.
8860         (ashr<mode>3): Use VI24_AVX2 mode iterator.
8861         (lshr<mode>3): Use VI248_AVX2 mode iterator.
8862         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
8863         Use VIMAX_AVX2 mode iterator.
8864         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
8865         Use VI mode iterator.
8866         (*andnot<mode>3): Update for AVX2.
8867         (*<any_logic:code><mode>3): Likewise.
8868         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
8869         Use VI1_AVX mode iterator.
8870         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
8871         Use VI2_AVX mode iterator.
8872         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
8873         Use VI1_AVX mode iterator.
8874         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
8875         Use VI8_AVX2 mode iterator.
8876         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
8877         Use VI1_AVX2 mode iterator.
8878         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
8879         Use VI124_AVX2 mode iterator.
8880         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
8881         Use SSESCALARMODE mode iterator.
8882         (abs<mode>2): Use VI124_AVX2 mode iterator.
8883         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
8884         Use VI8_AVX2 mode iterator.
8885         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
8886         Use VI1_AVX2 mode iterator.
8887         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
8888         Use VI1_AVX2 mode iterator.
8889         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
8890         Use VI2_AVX2 mode iterator.
8891         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
8892         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
8893         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
8894         avx_maskstore<ssemodesuffix><avxsizesuffix>.
8895         Use V48_AVX2 mode iterator.
8896         * doc/extend.texi: Document AVX2 built-in functions.
8897         * doc/invoke.texi: Document -mavx2.
8898
8899 2011-08-22  Matthias Klose <doko@debian.org>
8900
8901         Revert:
8902         2011-07-11  Arthur Loiret  <aloiret@debian.org>
8903                     Matthias Klose <doko@debian.org>
8904         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
8905         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
8906         convention.
8907         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
8908
8909 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
8910
8911         PR bootstrap/50146
8912         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
8913         to #ifndef HONOR_REG_ALLOC_ORDER block.
8914
8915 2011-08-21  Richard Henderson  <rth@redhat.com>
8916
8917         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
8918         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
8919         * resource.c (next_insn_no_annul): Likewise.
8920         (mark_set_resources): Likewise.
8921         * reorg.c (delete_from_delay_slot): Likewise.
8922         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
8923         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
8924
8925 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
8926
8927         * config/i386/i386.md (any_div): Remove.
8928         (sgnprefix): Update for removal.
8929         (u): Ditto.
8930
8931 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
8932
8933         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
8934         for ira_reg_class_max_nregs.  Increase pressure by 1.
8935         (mark_pseudo_regno_subword_dead): Use allocno class
8936         for ira_reg_class_max_nregs.
8937
8938 2011-08-20  Richard Henderson  <rth@redhat.com>
8939
8940         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
8941         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
8942         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
8943         config/c6x/ltf.c: Adjust include path for soft-fp.
8944
8945 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8946
8947         PR other/46770
8948         * config.gcc (tm_file): Add initfini-array.h if
8949         .init_arrary/.fini_array are supported.
8950
8951         * crtstuff.c: Don't generate .ctors nor .dtors sections if
8952         USE_INITFINI_ARRAY is defined.
8953
8954         * output.h (default_elf_init_array_asm_out_constructor): New.
8955         (default_elf_fini_array_asm_out_destructor): Likewise.
8956         * varasm.c (elf_init_array_section): Likewise.
8957         (elf_fini_array_section): Likewise.
8958         (get_elf_initfini_array_priority_section): Likewise.
8959         (default_elf_init_array_asm_out_constructor): Likewise.
8960         (default_elf_fini_array_asm_out_destructor): Likewise.
8961
8962         * config/initfini-array.h: New.
8963
8964 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
8965
8966         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
8967         OK for ST_REGS and FP_REGS before taking those classes into account.
8968
8969 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
8970
8971         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
8972         before checking for annulled branches.
8973
8974 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
8975
8976         * config/i386/i386.c (ix86_binary_operator_ok): Use
8977         satisfies_constraint_L.
8978
8979 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
8980             Michael Matz  <matz@suse.de>
8981
8982         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
8983         trunc (a + copysign (nextafter (0.5, 0.0), a)).
8984
8985 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
8986
8987         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8988         * doc/tm.texi: Regenerate.
8989         * targhooks.c (default_preferred_output_reload_class): Don't use
8990         PREFERRED_OUTPUT_RELOAD_CLASS macro.
8991         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
8992
8993 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
8994
8995         PR tree-optimization/48739
8996         * tree-ssa.c: Include cfgloop.h.
8997         (execute_update_addresses_taken): When updating ssa, if in loop closed
8998         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
8999         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
9000
9001 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
9002
9003         PR rtl-optimization/49936
9004         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
9005         for calculation of max register move costs.
9006
9007 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
9008
9009         * c-parser.c (c_parser_postfix_expression): Convert operands of
9010         __builtin_complex to their semantic types.
9011
9012 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
9013
9014         PR middle-end/49721
9015         * explow.c (convert_memory_address_addr_space): Also permute the
9016         conversion and addition of constant for zero-extend.
9017
9018 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
9019
9020         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
9021         * doc/extend.texi (__builtin_complex): Document.
9022
9023 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9024
9025         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
9026         beyond conversions.
9027         (convert_mult_to_widen): Convert constant inputs to the right type.
9028         (convert_plusminus_to_widen): Don't automatically reject inputs that
9029         are not an SSA_NAME.
9030         Convert constant inputs to the right type.
9031
9032 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9033
9034         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
9035         to the correct type.
9036
9037 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9038
9039         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
9040         unsigned inputs of different modes.
9041         (convert_plusminus_to_widen): Likewise.
9042
9043 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9044
9045         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
9046         'type'.
9047         Use 'type' from caller, not inferred from 'rhs'.
9048         Don't reject non-conversion statements. Do return lhs in this case.
9049         (is_widening_mult_p): Add new argument 'type'.
9050         Use 'type' from caller, not inferred from 'stmt'.
9051         Pass type to is_widening_mult_rhs_p.
9052         (convert_mult_to_widen): Pass type to is_widening_mult_p.
9053         (convert_plusminus_to_widen): Likewise.
9054
9055 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9056
9057         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
9058         Ensure the the larger type is the first operand.
9059
9060 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9061
9062         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
9063         unsupported unsigned multiplies to signed.
9064         (convert_plusminus_to_widen): Likewise.
9065
9066 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9067
9068         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
9069         conversion statement separating multiply-and-accumulate.
9070
9071 2011-08-19  Richard Guenther  <rguenther@suse.de>
9072
9073         PR tree-optimization/50067
9074         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
9075         offset only if we accounted for it.
9076
9077 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9078
9079         * config/arm/arm.md (maddhidi4): Remove '*' from name.
9080         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
9081         * optabs.c (find_widening_optab_handler_and_mode): New function.
9082         (expand_widen_pattern_expr): Use find_widening_optab_handler.
9083         (expand_binop_directly): Likewise.
9084         (expand_binop): Likewise.
9085         * optabs.h (find_widening_optab_handler): New macro define.
9086         (find_widening_optab_handler_and_mode): New prototype.
9087         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
9088         type precision rules.
9089         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
9090         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
9091         (is_widening_mult_rhs_p): Allow widening by more than one mode.
9092         Explicitly disallow mis-matched input types.
9093         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
9094         input types to fit the new handler.
9095         (convert_plusminus_to_widen): Likewise.
9096
9097 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
9098
9099         * expr.c (expand_expr_real_2): Use widening_optab_handler.
9100         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
9101         (gen_insn): $N now means $a must be wider than $b, not consecutive.
9102         * optabs.c (widened_mode): New function.
9103         (expand_widen_pattern_expr): Use widening_optab_handler.
9104         (expand_binop_directly): Likewise.
9105         (expand_binop): Likewise.
9106         * optabs.h (widening_optab_handlers): New struct.
9107         (optab_d): New member, 'widening'.
9108         (widening_optab_handler): New function.
9109         (set_widening_optab_handler): New function.
9110         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
9111         widening_optab_handler.
9112         (convert_plusminus_to_widen): Likewise.
9113
9114 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
9115
9116         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
9117         pedantic.
9118         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
9119         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
9120
9121 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
9122
9123         * opth-gen.awk: Do not declare target save/restore structures and
9124         functions if IN_RTS defined.
9125
9126 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
9127
9128         PR target/49437
9129         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
9130         when stack was realigned in interrupt handler prologue.
9131
9132 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
9133
9134         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
9135         (quals_from_declspecs): Assert _Noreturn not present.
9136         (grokdeclarator): Handle _Noreturn.
9137         (build_null_declspecs): Initialize noreturn_p.
9138         (declspecs_add_scspec): Handle RID_NORETURN.
9139         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
9140         (c_parser_attributes): Handle RID_NORETURN.
9141         * c-tree.h (struct c_declspecs): Add noreturn_p.
9142         * ginclude/stdnoreturn.h: New.
9143         * Makefile.in (USER_H): Add stdnoreturn.h.
9144
9145 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
9146
9147         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
9148         (OPTION_MASK_ISA_AVX_UNSET): Update.
9149         (OPTION_MASK_ISA_AVX2_UNSET): New.
9150         (ix86_handle_option): Handle OPT_mavx2 case.
9151         * config/i386/cpuid.h (bit_AVX2): New.
9152         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
9153         AVX2 feature.
9154         * config/i386/i386-c.c (ix86_target_macros_internal):
9155         Conditionally define __AVX2__.
9156         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
9157         Define "core-avx2" processor alias.  Handle avx2 option.
9158         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
9159         * config/i386/i386.h (TARGET_AVX2): New.
9160         * config/i386/i386.opt (mavx2): New.
9161         * doc/invoke.texi: Document -mavx2.
9162
9163 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
9164
9165         PR rtl-optimization/49890
9166         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
9167         subclasses of class which is superset of a pressure class.
9168
9169 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9170             Igor Zamyatin <igor.zamyatin@intel.com>
9171
9172         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
9173         with HOST_WIDE_INT for isa_flag.
9174         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
9175         isa variables.
9176
9177         * config/i386/i386.c (ix86_target_string): Replace int with
9178         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
9179         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
9180         (pta_flags): Removed.
9181         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
9182         (pta): Use HOST_WIDE_INT on flags.
9183         (builtin_isa): Use HOST_WIDE_INT on isa.
9184         (ix86_add_new_builtins): Likewise.
9185         (def_builtin): Use HOST_WIDE_INT on mask.
9186         (def_builtin_const): Likewise.
9187         (builtin_description): Likewise.
9188
9189         * config/i386/i386.opt (ix86_isa_flags): Replace int with
9190         HOST_WIDE_INT.
9191         (ix86_isa_flags_explicit): Likewise.
9192         (x_ix86_isa_flags_explicit): Likewise.
9193
9194 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
9195
9196         PR rtl-optimization/50107
9197         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
9198         (ira_hard_reg_in_set_p): New.
9199
9200         * ira-color.c (calculate_saved_nregs): New.
9201         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
9202         hard regs.
9203         (allocno_reload_assign, fast_allocation): Use
9204         ira_hard_reg_set_intersection_p instead of
9205         ira_hard_reg_not_in_set_p.
9206
9207         * ira.c (setup_reg_renumber): Use
9208         ira_hard_reg_set_intersection_p instead of
9209         ira_hard_reg_not_in_set_p.
9210         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
9211         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
9212
9213         * ira-costs.c (ira_tune_allocno_costs): Use
9214         ira_hard_reg_set_intersection_p instead of
9215         ira_hard_reg_not_in_set_p.
9216
9217 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9218             Igor Zamyatin <igor.zamyatin@intel.com>
9219
9220         * hwint.h (HOST_WIDE_INT_1): New.
9221
9222         * opt-functions.awk (switch_bit_fields): Initialize the
9223         host_wide_int field.
9224         (host_wide_int_var_name): New.
9225         (var_type_struct): Check and return HOST_WIDE_INT.
9226
9227         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
9228
9229         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
9230
9231         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
9232         check masks for HOST_WIDE_INT.
9233
9234         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
9235         (option_enabled): Likewise.
9236         (get_option_state): Likewise.
9237
9238         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
9239         to HOST_WIDE_INT.
9240
9241 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9242             Marc Glisse  <marc.glisse@normalesup.org>
9243
9244         PR libstdc++-v3/1773
9245         * target.def (decl_mangling_context): New C++ hook.
9246         * doc/tm.texi: Regenerate.
9247         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
9248         * config/sol2-protos.h: Group by source file.
9249         (solaris_cxx_decl_mangling_context): Declare.
9250         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
9251         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
9252         Use $<.
9253         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
9254         Add sol2-stubs.o to extra_objs.
9255
9256 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
9257
9258         PR target/50009
9259         * stor-layout.c (update_alignment_for_field): Don't ICE on
9260         packed flexible array members if ms_bitfield_layout_p.
9261
9262         PR target/50092
9263         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
9264         on the result before returning it.
9265
9266         PR debug/50017
9267         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
9268         is a debug stmt, use location of the first non-debug stmt after it.
9269
9270 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
9271
9272         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
9273         (arm_size_rtx_costs): Likewise.
9274
9275 2011-08-18  Richard Guenther  <rguenther@suse.de>
9276
9277         * tree.h (tree_int_cst_msb): Remove.
9278         * tree.c (tree_int_cst_msb): Likewise.
9279         (tree_int_cst_sign_bit): Move from ...
9280         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
9281
9282 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
9283
9284         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
9285         * doc/tm.texi: Regenerate.
9286         * target.def (rtx_costs): Add an opno parameter.
9287         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
9288         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
9289         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
9290         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
9291         * cse.c (COST_IN): Add an opno parameter.
9292         (notreg_cost): Likewise.  Update call to rtx_cost.
9293         (COST, fold_rtx): Update accordingly.
9294         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
9295         * expmed.c (emit_store_flag): Likewise.
9296         * optabs.c (avoid_expensive_constant): Add an opno parameter.
9297         Update call to rtx_cost.
9298         (expand_binop_directly, expand_binop): Likewise.
9299         (expand_twoval_binop, prepare_cmp_insn): Likewise.
9300         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
9301         (set_src_cost, get_full_set_src_cost): Update accordingly.
9302         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
9303         to target hook.
9304         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
9305         (default_adress_cost): Update calls to rtx_cost.
9306
9307         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
9308         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
9309         (arm_rtx_costs): Add an opno parameter.
9310         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
9311         adjust any recursive rtx-cost calls.
9312         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
9313         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9314         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
9315         * config/cris/cris.c (cris_rtx_costs): Likewise.
9316         * config/frv/frv.c (frv_rtx_costs): Likewise.
9317         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
9318         * config/i386/i386.c (ix86_rtx_costs): Likewise.
9319         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
9320         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
9321         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
9322         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
9323         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
9324         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
9325         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
9326         * config/mep/mep.c (mep_rtx_cost): Likewise.
9327         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
9328         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
9329         (mips_zero_extend_cost): Add an opno parameter.
9330         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
9331         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
9332         to rtx_cost.
9333         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
9334         rtx-cost calls.
9335         * config/pa/pa.c (hppa_rtx_costs): Likewise.
9336         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
9337         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
9338         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
9339         (rs6000_debug_rtx_costs): Likewise.
9340         * config/s390/s390.c (s390_rtx_costs): Likewise.
9341         * config/score/score-protos.h (score_rtx_costs): Likewise.
9342         * config/score/score.c (score_rtx_costs): Likewise.
9343         * config/sh/sh.c (andcosts): Update call to rtx_cost.
9344         (sh_rtx_costs): Add an opno parameter.
9345         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
9346         * config/spu/spu.c (spu_rtx_costs): Likewise.
9347         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
9348         * config/v850/v850.c (v850_rtx_costs): Likewise.
9349         * config/vax/vax.c (vax_rtx_costs): Likewise.
9350         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
9351
9352 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
9353
9354         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
9355         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
9356         rtx_cost.
9357         * calls.c (precompute_register_parameters): Likewise.
9358         * combine.c (expand_compound_operation, make_extraction): Likewise.
9359         (force_to_mode, distribute_and_simplify_rtx): Likewise.
9360         * dse.c (find_shift_sequence): Likewise.
9361         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
9362         * expr.c (compress_float_constant): Likewise.
9363         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
9364         * gcse.c (want_to_gcse_p): Likewise.
9365         * ifcvt.c (noce_try_sign_mask): Likewise.
9366         * loop-doloop.c (doloop_optimize): Likewise.
9367         * loop-invariant.c (create_new_invariant): Likewise.
9368         * optabs.c (avoid_expensive_constant): Likewise.
9369         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
9370         (try_replace_in_use, reload_cse_move2add): Likewise.
9371         * reload1.c (calculate_elim_costs_all_insns): Likewise.
9372         (note_reg_elim_costly): Likewise.
9373         * rtlanal.c (insn_rtx_cost): Likewise.
9374         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9375         * stmt.c (lshift_cheap_p): Likewise.
9376         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
9377         * config/avr/avr.c (final_prescan_insn): Likewise.
9378         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9379         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
9380
9381 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
9382
9383         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
9384         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
9385         * cfgloopanal.c (seq_cost): Likewise.
9386         * loop-invariant.c (create_new_invariant): Likewise.
9387         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
9388         (reload_cse_move2add): Use get_full_set_rtx_cost.
9389
9390 2011-08-18  Richard Guenther  <rguenther@suse.de>
9391
9392         * expr.c (get_inner_reference): Fix typo in last change.
9393
9394 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
9395             Joseph Myers  <joseph@codesourcery.com>
9396
9397         PR tree-optimization/49963
9398         * hwint.c (absu_hwi): Define.
9399         * hwint.h (absu_hwi): Declare.
9400         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
9401         of abs_hwi.
9402         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
9403         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
9404
9405 2011-08-18  Richard Guenther  <rguenther@suse.de>
9406
9407         * expr.c (get_inner_reference): Sign-extend the constant
9408         twos-complement offset before doing arbitrary precision
9409         arithmetic on it.
9410         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
9411         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
9412         to get_constraint_for_ptr_offset.
9413
9414 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
9415
9416         PR target/50068
9417         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
9418
9419 2011-08-17  Richard Guenther  <rguenther@suse.de>
9420
9421         * tree.h (convert_to_ptrofftype_loc): New function.
9422         (convert_to_ptrofftype): Define.
9423         * builtins.c (expand_builtin_bzero): Use size_type_node.
9424         (fold_builtin_bzero): Likewise.
9425         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
9426         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
9427         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
9428         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
9429         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
9430         * fold-const.c (build_range_check): Negate using the original type.
9431         (fold_unary_loc): Use fold_build_pointer_plus_loc.
9432         * gimple-fold.c (gimple_adjust_this_by_delta): Use
9433         convert_to_ptrofftype.
9434         * gimplify.c (gimplify_self_mod_expr): Likewise.
9435         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
9436         (graphite_create_new_loop_guard): Likewise.
9437         * graphite-sese-to-poly.c (my_long_long): Remove.
9438         (scop_ivs_can_be_represented): Adjust.
9439         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
9440         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
9441         * tree-loop-distribution.c (build_size_arg_loc): Use
9442         size_type_node.
9443         (generate_memset_zero): Simplify.
9444         * tree-mudflap.c: Use fold_convert, not convert.
9445         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
9446         its own type.
9447         (determine_offset): Likewise for DR_STEP.
9448         (valid_initializer_p): Likewise.
9449         * tree-profile.c (prepare_instrumented_value): Convert the pointer
9450         to an integer type of same size.
9451         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
9452         to sizetype without need.
9453         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
9454         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
9455         * tree-ssa-loop-manip.c (create_iv): Likewise.
9456         (determine_exit_conditions): Adjust comment.
9457         * tree-ssa-pre.c (create_expression_by_pieces): Use
9458         convert_to_ptrofftype.
9459         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
9460         * varasm.c (array_size_for_constructor): Compute using double_ints.
9461
9462 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9463
9464         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
9465         when generating an integer result where possible.  Short-cut
9466         comparison against 0 also for QImode.
9467
9468 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9469
9470         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
9471         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
9472         prototype.
9473         * config/spu/spu.c (spu_legitimize_reload_address): New function.
9474         (spu_legitimate_address_p): Do not check displacement if the base
9475         is an eliminable stack register.
9476
9477 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
9478
9479         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
9480         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
9481         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
9482         m32c_preferred_output_reload_class): Remove.
9483         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
9484         Change rclass argument and return types to reg_class_t. Use
9485         reg_class_subset_p instead of class_sizes.
9486         (m32c_preferred_output_reload_class): Make static. Change rclass
9487         argument and return types to reg_class_t.
9488         (TARGET_PREFERRED_RELOAD_CLASS,
9489         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9490
9491 2011-08-16  Kai Tietz  <ktietz@redhat.com>
9492
9493         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
9494
9495 2011-08-16  Richard GUenther  <rguenther@suse.de>
9496
9497         PR tree-optimization/50082
9498         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
9499         warnings here, instead of ...
9500         (ssa_forward_propagate_and_combine): ... here.
9501         (forward_propagate_into_comparison_1): Adjust.
9502         (forward_propagate_into_comparison): Likewise.
9503         (forward_propagate_into_gimple_cond): Likewise.
9504         (forward_propagate_into_cond): Likewise.
9505
9506 2011-08-16  Andreas Schwab  <schwab@redhat.com>
9507
9508         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
9509         instead of ggc_alloc_zone_vec_rtvec_def.
9510
9511 2011-08-16  Richard Guenther  <rguenther@suse.de>
9512
9513         * tree.h (ptrofftype_p): New helper function.
9514         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
9515         offset verification.
9516         (verify_gimple_assign_binary): Likewise.
9517         * tree.c (build2_stat): Likewise.
9518         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
9519         (reset_evolution_in_loop): Likewise.
9520         * tree-chrec.h (build_polynomial_chrec): Likewise.
9521
9522 2011-08-16  Liang Wang  <lwang1@marvell.com>
9523
9524         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
9525         ggc_alloc_zone_vec_rtvec_def.
9526
9527 2011-08-16  Richard Guenther  <rguenther@suse.de>
9528
9529         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
9530         helper factored out from ...
9531         (extract_range_from_binary_expr_1): ... here.  Re-structure
9532         to not glob handling too different tree codes.
9533
9534 2011-08-15  Richard Henderson  <rth@redhat.com>
9535
9536         PR middle-end/50006
9537         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
9538         setting out to include allocate_stack named pattern as well.
9539         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
9540         * stmt.c (expand_stack_restore): Likewise.
9541
9542 2011-08-15  Richard Guenther  <rguenther@suse.de>
9543
9544         PR middle-end/50082
9545         * fold-const.c (maybe_canonicalize_comparison_1): Properly
9546         convert the modified operand to the other operand type.
9547         (fold_comparison): Call maybe_canonicalize_comparison_1 with
9548         useless conversions stripped from comparison operands.
9549
9550 2011-08-15  Richard Guenther  <rguenther@suse.de>
9551
9552         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
9553         (extract_range_from_unary_expr_1): Restructure.
9554
9555 2011-08-15  Richard Guenther  <rguenther@suse.de>
9556
9557         PR tree-optimization/50058
9558         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
9559         copy matching.
9560
9561 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9562
9563         PR target/50022
9564         * config/arm/arm.c (output_move_double): Add 2 parameters
9565         to count the number of insns emitted and whether to emit or not.
9566         Use the flag to decide when to emit and count number of instructions
9567         that will be emitted.
9568         Handle case where output_move_double might be called for calculating
9569         lengths with an invalid constant.
9570         (arm_count_output_move_double_insns): Define.
9571         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
9572         (output_move_double): Adjust prototype.
9573         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
9574         output_move_double.
9575         ("*movdi_vfp_cortexa8"): Likewise and add attribute
9576         for ce_count.
9577         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
9578         ("*movdf_soft_insn"): Likewise.
9579         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
9580         ("*cirrus_thumb2_movdi"): Likewise.
9581         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
9582         ("*cirrus_movdf_hard_insn"): Likewise.
9583         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
9584         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
9585         ("mov<mode>_internal VMMX"): Likewise.
9586         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
9587
9588 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
9589
9590         * config/i386/i386.c (ix86_expand_round_sse4): New function.
9591         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
9592         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
9593         for TARGET_ROUND.
9594
9595         (rint<mode>2): Simplify TARGET_ROUND check.
9596         (floor<mode>2): Ditto.
9597         (ceil<mode>2): Ditto.
9598         (btrunc<mode>2): Ditto.
9599
9600 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
9601
9602         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
9603         as mmix_preferred_output_reload_class.
9604
9605 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
9606
9607         * PR target/49903
9608         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
9609         (branch_unspec): New insn.
9610         (branch): Beauty farm.
9611         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
9612         to be IF_THEN_ELSE.
9613         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
9614         New static functions.
9615         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
9616         Use CONST_INT_P.  Beauty.
9617
9618 2011-08-12  Richard Henderson  <rth@redhat.com>
9619
9620         PR rtl-opt/49994
9621         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
9622         * sched-deps.c (init_deps): Clear it.
9623         (deps_analyze_insn): Consume it.
9624         (sched_analyze_insn): Fill it.
9625
9626 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9627
9628         PR target/48328
9629         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
9630         for tbh instructions.
9631
9632 2011-08-12  Diego Novillo  <dnovillo@google.com>
9633
9634         * data-streamer.h (streamer_write_zero): Rename from output_zero.
9635         (streamer_write_uhwi): Rename from lto_output_uleb128.
9636         (streamer_write_hwi): Rename from output_sleb128.
9637         (streamer_write_string): Rename from lto_output_string.
9638         (streamer_string_index): Rename from lto_string_index.
9639         (streamer_write_string_with_length): Rename from
9640         lto_output_string_with_length.
9641         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
9642         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
9643         (streamer_read_string): Rename from lto_input_string.
9644         (streamer_read_indexed_string): Rename from input_string_internal.
9645         (streamer_read_uhwi): Rename from lto_input_uleb128.
9646         (streamer_read_hwi): Rename from lto_input_sleb128.
9647         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
9648         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
9649         (streamer_write_enum): Rename from lto_output_enum.
9650         (streamer_read_enum): Rename from lto_input_enum.
9651         (streamer_write_record_start): Rename from output_record_start.
9652         (streamer_read_record_start): Rename from input_record_start.
9653         (streamer_write_bitpack): Rename from lto_output_bitpack.
9654         (streamer_read_bitpack): Rename from lto_input_bitpack.
9655         (streamer_write_char_stream): Rename from lto_output_1_stream.
9656         (streamer_read_uchar): Rename from lto_input_1_unsigned.
9657         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
9658         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
9659         (streamer_read_string_cst): Rename from input_string_cst.
9660         (streamer_read_chain): Rename from lto_input_chain.
9661         (streamer_alloc_tree): Rename from lto_materialize_tree.
9662         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
9663         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
9664         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
9665         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
9666         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
9667         (streamer_write_chain): Rename from lto_output_chain.
9668         (streamer_write_tree_header): Rename from lto_output_tree_header.
9669         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
9670         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
9671         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
9672         (streamer_write_builtin): Rename from lto_output_builtin_tree.
9673         (streamer_check_handled_ts_structures): Rename from
9674         check_handled_ts_structures.
9675         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
9676         (streamer_tree_cache_insert_at): Rename from
9677         lto_streamer_cache_insert_at.
9678         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
9679         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
9680         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
9681         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
9682         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
9683         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
9684         (write_identifier): Rename from output_identifier.
9685         (write_ts_common_tree_pointers): Rename from
9686         lto_output_ts_common_tree_pointers.
9687         (write_ts_vector_tree_pointers): Rename from
9688         lto_output_ts_vector_tree_pointers.
9689         (write_ts_complex_tree_pointers): Rename from
9690         lto_output_ts_complex_tree_pointers.
9691         (write_ts_decl_minimal_tree_pointers): Rename from
9692         lto_output_ts_decl_minimal_tree_pointers.
9693         (write_ts_decl_common_tree_pointers): Rename from
9694         lto_output_ts_decl_common_tree_pointers.
9695         (write_ts_decl_non_common_tree_pointers): Rename from
9696         lto_output_ts_decl_non_common_tree_pointers.
9697         (write_ts_decl_with_vis_tree_pointers): Rename from
9698         lto_output_ts_decl_with_vis_tree_pointers.
9699         (write_ts_field_decl_tree_pointers): Rename from
9700         lto_output_ts_field_decl_tree_pointers.
9701         (write_ts_function_decl_tree_pointers): Rename from
9702         lto_output_ts_function_decl_tree_pointers.
9703         (write_ts_type_common_tree_pointers): Rename from
9704         lto_output_ts_type_common_tree_pointers.
9705         (write_ts_type_non_common_tree_pointers): Rename from
9706         lto_output_ts_type_non_common_tree_pointers.
9707         (write_ts_list_tree_pointers): Rename from
9708         lto_output_ts_list_tree_pointers.
9709         (write_ts_vec_tree_pointers): Rename from
9710         lto_output_ts_vec_tree_pointers.
9711         (write_ts_exp_tree_pointers): Rename from
9712         lto_output_ts_exp_tree_pointers.
9713         (write_ts_block_tree_pointers): Rename from
9714         lto_output_ts_block_tree_pointers.
9715         (write_ts_binfo_tree_pointers): Rename from
9716         lto_output_ts_binfo_tree_pointers.
9717         (write_ts_constructor_tree_pointers): Rename from
9718         lto_output_ts_constructor_tree_pointers.
9719         (write_ts_target_option): Rename from lto_output_ts_target_option.
9720         (write_ts_translation_unit_decl_tree_pointers): Rename from
9721         lto_output_ts_translation_unit_decl_tree_pointers.
9722         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
9723         Rename from lto_streamer_cache_add_to_node_array.
9724         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
9725         (record_common_node): Rename from lto_record_common_node.
9726
9727         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
9728         declarations.
9729         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
9730         function.
9731         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
9732         unused function.
9733         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
9734         (ipa-reference.o): Likewise.
9735         * lto-section-out.c: Include data-streamer.h.
9736         * ipa-reference.c: Include data-streamer.h.
9737
9738 2011-08-12  Nick Clifton  <nickc@redhat.com>
9739
9740         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
9741         * doc/md.texi (cmpstrn): Note that the comparison stops if both
9742         fetched bytes are zero.
9743         (cmpstr): Likewise.
9744         (cmpmem): Note that the comparison does not stop if both of the
9745         fetched bytes are zero.
9746
9747 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
9748
9749         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
9750         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
9751         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
9752         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
9753         to integer_type_node.
9754         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
9755         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
9756         * builtins.c (expand_builtin_in): Ditto.
9757         (mathfn_built_in_1): Ditto.
9758         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
9759         BUILT_IN_IFLOOR.
9760         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
9761         BUILT_IN_IROUND.
9762         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
9763         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
9764         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
9765
9766 2011-08-12  Richard Guenther  <rguenther@suse.de>
9767
9768         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
9769
9770 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
9771
9772         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
9773
9774 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
9775
9776         * config/arm/arm.c (get_label_padding): New function.
9777         (create_fix_barrier, arm_reorg): Use it.
9778
9779 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
9780
9781         PR target/49781
9782         * config/i386/i386.md (*lea_5_zext): New.
9783         (*lea_6_zext): Ditto.
9784         * config/i386/predicates.md (const_32bit_mask): New predicate.
9785         (lea_address_operand): Reject AND.
9786         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
9787         const_32bit_mask immediate.
9788         (ix86_print_operand_address): Handle AND.
9789         (memory_address_length): Ditto.
9790
9791 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
9792             Brian Hackett  <bhackett1024@gmail.com>
9793
9794         * plugin.def: Add event for finish_decl.
9795         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
9796         * c-decl.c (finish_decl): Invoke callbacks on above event.
9797         * doc/plugins.texi: Document above event.
9798
9799 2011-08-11  Richard Guenther  <rguenther@suse.de>
9800
9801         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
9802         lookups, make looking through aggregate copies stronger.
9803
9804 2011-08-11  Richard Henderson  <rth@redhat.com>
9805
9806         PR bootstrap/50018
9807         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
9808
9809 2011-08-11  Richard Guenther  <rguenther@suse.de>
9810
9811         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
9812         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
9813         (vrp_visit_stmt): Likewise.
9814
9815 2011-08-11  Richard Guenther  <rguenther@suse.de>
9816
9817         PR middle-end/50040
9818         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
9819         load of the other piece with TREE_NO_WARNING.
9820         * tree-flow.h (warn_uninit): Adjust prototype.
9821         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
9822         the base variable and the expression that is used separately.
9823         Properly query all TREE_NO_WARNING flags.
9824         (struct walk_data): Remove.
9825         (warn_uninitialized_var): Likewise.
9826         (warn_uninitialized_vars): Do not walk gimple pieces but simply
9827         look at all SSA uses of the statement.  Handle unused memory
9828         separately.
9829         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
9830
9831 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
9832
9833         * config/rx/rx.md (movsicc): Allow register to register transfers.
9834         (*movsicc): Likewise.
9835         (*stcc): Restrict this pattern to EQ and NE compares.
9836         (*stcc_reg): New pattern.  Works for any comparison but only for
9837         register transfers.
9838
9839 2011-08-11   Diego Novillo  <dnovillo@google.com>
9840
9841         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
9842         Call stream_write_tree instead of output_record_start.
9843         (lto_output_ts_binfo_tree_pointers): Likewise.
9844
9845         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
9846         Convert it to a macro.
9847         (stream_read_tree): Likewise.
9848
9849         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
9850         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
9851
9852         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
9853         and tree_read_bitfields.
9854         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
9855         (lto_write_tree): Call it.
9856         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
9857         * streamer-hooks.h (struct streamer_hooks): Remove fields
9858         name, is_streamable and alloc_tree. Update all users.
9859         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
9860         (lto_materialize_tree): ... here.
9861         Handle CALL_EXPR codes.
9862         Remove call to lto_streamer_cache_append.
9863         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
9864         * tree-streamer.h (tree_read_bitfields): Declare.
9865
9866         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
9867         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
9868         * tree-streamer.h (stream_read_tree): New.  Replace all calls
9869         to lto_input_tree with it.
9870         (stream_write_tree): New.  Replace all calls to lto_output_tree,
9871         lto_output_tree_ref and lto_output_tree_or_ref with it.
9872         * lto-streamer-in.c (lto_read_tree): Inline code from
9873         lto_streamer_read_tree.
9874         (lto_input_tree): Move from tree-streamer-in.c.
9875         * lto-streamer-out.c (lto_output_tree_ref): Make static.
9876         Remove handling of NULL values for EXPR.
9877         Do not handle EXPRs that are not indexable.
9878         (lto_write_tree): Move from tree-streamer-out.c.
9879         Inline lto_streamer_write_tree.
9880         (lto_output_tree): Move from tree-streamer-out.c.
9881         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
9882         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
9883         (lto_preload_common_nodes): Likewise.
9884         Remove assertions and adjustments for nodes
9885         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
9886         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
9887         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
9888         * lto-streamer.h (lto_input_tree): Declare.
9889         (lto_output_tree_ref): Remove.
9890         * streamer-hooks.h (struct streamer_hooks): Remove fields
9891         preload_common_nodes, indexable_with_decls_p,
9892         pack_value_fields, unpack_value_fields and output_tree_header.
9893         Update all users.
9894         * tree-streamer-in.c (lto_materialize_tree): Make extern.
9895         (lto_input_tree_pointers): Likewise.
9896         (lto_read_tree): Move to lto-streamer-in.c.
9897         (lto_input_integer_cst): Make extern.
9898         (lto_get_pickled_tree): Likewise.
9899         (lto_get_builtin_tree): Likewise.
9900         (lto_input_tree): Move to lto-streamer-in.c.
9901         * tree-streamer-out.c (pack_value_fields): Make extern.
9902         (lto_output_tree_or_ref): Remove.  Replace all callers with
9903         calls to stream_write_tree.
9904         (lto_output_builtin_tree): Make extern.
9905         (lto_streamer_write_tree): Inline into lto_write_tree.
9906         (lto_output_tree_pointers): Make extern.
9907         (lto_output_tree_header): Likewise.
9908         (lto_output_integer_cst): Likewise.
9909         (lto_write_tree): Move to lto-streamer-out.c.
9910         (lto_output_tree): Likewise.
9911         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
9912         (preload_common_nodes): Likewise.
9913         (lto_streamer_cache_create): Call it.
9914         * tree-streamer.h: Include streamer-hooks.h.
9915         (stream_write_tree): New.
9916         (stream_read_tree): New.
9917         (lto_input_tree): Remove.
9918         (lto_materialize_tree): Declare.
9919         (lto_input_tree_pointers): Declare.
9920         (lto_get_pickled_tree): Declare.
9921         (lto_get_builtin_tree): Declare.
9922         (lto_input_integer_cst): Declare.
9923         (lto_output_tree_header): Declare.
9924         (pack_value_fields): Declare.
9925         (lto_output_tree_pointers): Declare.
9926         (lto_output_integer_cst): Declare.
9927         (lto_output_builtin_tree): Declare.
9928
9929 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
9930
9931         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
9932         only if producer writes to the register given by regno.
9933
9934 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
9935             Alexander Monakov  <amonakov@ispras.ru>
9936
9937         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
9938         (sched_get_condition_with_rev_uncached): ... this.  Factor out
9939         condition caching logic into ...
9940         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
9941         attempt to use cache for instructions with zero luid.
9942         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
9943         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
9944
9945 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
9946
9947         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
9948         get_seqno_for_a_jump.  Update the caller.
9949         (get_seqno_by_succs): New.  Use it ...
9950         (get_seqno_for_a_jump): ... here to find a seqno if looking at
9951         predecessors was not sufficient.
9952         (get_seqno_by_preds): Include head in iteration range, exclude insn.
9953
9954 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
9955
9956         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
9957
9958 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
9959
9960         * sel-sched-ir.h (register_unavailable_p): Declare.
9961         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
9962         (set_unavailable_target_for_expr): ... here to properly test
9963         availability of a register.
9964         (speculate_expr): Ditto.
9965         * sel-sched.c (substitute_reg_in_expr): Ditto.
9966         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
9967
9968 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
9969
9970         * sel-sched.c (verify_target_availability): Fix usage of
9971         hard_regno_nregs.
9972
9973 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
9974
9975         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
9976         recognized by cannot_copy_insn_p hook and volatile instructions.
9977
9978 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
9979
9980         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
9981
9982 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
9983
9984         * doc/md.texi (define_bypass): Say that the instruction names can
9985         be filename-style globs.
9986         * Makefile.in (FNMATCH_H): Define.
9987         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
9988         * genattrtab.c: Include fnmatch.h.
9989         (bypass_list): Change field name from "insn" to "pattern".
9990         (gen_bypass_1): Update accordingly.
9991         (process_bypasses): Use fnmatch to check for matches between
9992         insn reservations and define_bypasses.
9993         * genautomata.c: Include fnmatch.h.
9994         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
9995         and out_pattern respectively.
9996         (gen_bypass, insert_bypass): Update accordingly.
9997         (for_each_matching_insn, process_bypass_2, process_bypass_1)
9998         (process_bypass): New functions.
9999         (process_decls): Use process_bypass.  Update after field name changes.
10000
10001 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
10002
10003         PR target/49687
10004         * config/avr/avr.md (smulqi3_highpart): New insn.
10005         (umulqi3_highpart): New insn.
10006         (*subqi3.ashiftrt7): New insn.
10007         (smulhi3_highpart): New expander.
10008         (umulhi3_highpart): Nex expander.
10009         (*smulhi3_highpart_call): New insn.
10010         (*umulhi3_highpart_call): New insn.
10011         (extend_u): New code attribute.
10012         (extend_prefix): Rename code attribute to extend_su.
10013         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
10014         widening QI/HI multiply.
10015
10016 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
10017
10018         PR tree-optimization/50039
10019         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
10020         that DEF_STMT has a stmt_vec_info.
10021
10022 2011-08-10  Richard Guenther  <rguenther@suse.de>
10023
10024         * tree.h (can_trust_pointer_alignment): Remove.
10025         * builtins.c (can_trust_pointer_alignment): Remove.
10026
10027 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
10028
10029         * c-typeck.c (scalar_to_vector): New function. Try scalar to
10030         vector conversion.
10031         (stv_conv): New enum for scalar_to_vector return type.
10032         (build_binary_op): Adjust.
10033         * doc/extend.texi: Description of scalar to vector expansion.
10034
10035 2011-08-10  Richard Guenther  <rguenther@suse.de>
10036
10037         * tree.h (get_pointer_alignment): Remove max-align argument.
10038         (get_object_alignment): Likewise.
10039         * builtins.c (get_object_alignment_1): Adjust.
10040         (get_object_alignment): Remove max-align argument.
10041         (get_pointer_alignment): Likewise.
10042         (expand_builtin_strlen): Adjust.
10043         (expand_builtin_memcpy): Likewise.
10044         (expand_builtin_mempcpy_args): Likewise.
10045         (expand_builtin_strncpy): Likewise.
10046         (expand_builtin_memset_args): Likewise.
10047         (expand_builtin_memcmp): Likewise.
10048         (expand_builtin_strcmp): Likewise.
10049         (expand_builtin_strncmp): Likewise.
10050         (get_builtin_sync_mem): Likewise.
10051         (fold_builtin_memset): Likewise.
10052         (fold_builtin_memory_op): Likewise.
10053         (expand_builtin_memory_chk): Likewise.
10054         * emit-rtl.c (get_mem_align_offset): Likewise.
10055         (set_mem_attributes_minus_bitpos): Likewise.
10056         * expr.c (expand_assignment): Likewise.
10057         (expand_expr_real_1): Likewise.
10058         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
10059         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
10060         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
10061         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
10062         * value-prof.c (gimple_stringops_transform): Likewise.
10063
10064 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
10065
10066         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
10067         * doc/tm.texi: Regenerate.
10068
10069 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
10070
10071         PR target/29560
10072         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
10073         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
10074         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
10075         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
10076         shift target is unused.
10077
10078 2011-08-10  Richard Guenther  <rguenther@suse.de>
10079
10080         PR tree-optimization/49937
10081         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
10082         using get_object_alignment_1.
10083
10084 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
10085
10086         * config/i386/i386.c (ix86_emit_i387_round): New function.
10087         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
10088         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
10089         Use ix86_emit_i387_round to expand round function for i387 math.
10090         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
10091         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
10092
10093 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10094
10095         * config/sync.c: Move to ../libgcc.
10096         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
10097         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
10098         Remove.
10099
10100 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
10101
10102         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
10103         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
10104         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
10105         Change 'from' and 'to' arguments type to reg_class_t.
10106         (TARGET_REGISTER_MOVE_COST): Define.
10107
10108 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
10109
10110         PR target/50026
10111         Revert:
10112         PR rtl-optimization/49990
10113         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
10114         ignore classes which can not change mode.
10115         (find_costs_and_classes): Ditto.
10116
10117 2011-08-09  Richard Guenther  <rguenther@suse.de>
10118
10119         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
10120         information for ranges with only negative values.
10121         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
10122         BIT_AND_EXPR handling to handle ranges with negative values.
10123
10124 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
10125
10126         * config/i386/i386.c: Remove traling spaces.
10127         * config/i386/sse.md: Likewise.
10128         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
10129         (*fma_fmsub_<mode>): Likewise.
10130         (*fma_fnmadd_<mode>): Likewise.
10131         (*fma_fnmsub_<mode>): Likewise.
10132
10133 2011-08-09  Nick Clifton  <nickc@redhat.com>
10134
10135         * config/rx/rx.md: Disable extender peepholes at -O3.
10136
10137 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
10138
10139         PR target/49781
10140         * config/i386/i386.md (reload_noff_load): New.
10141         (reload_noff_store): Ditto.
10142         * config/i386/i386.c (ix86_secondary_reload): Use
10143         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
10144         double-word moves from/to non-offsetable addresses instead of
10145         generating XMM temporary.
10146
10147 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
10148
10149         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
10150
10151 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
10152
10153         PR tree-optimization/50014
10154         * tree-vect-loop.c (vectorizable_reduction): Get def type before
10155         calling vect_get_vec_def_for_stmt_copy ().
10156
10157 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
10158
10159         PR rtl-optimization/49990
10160         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
10161         ignore classes which can not change mode.
10162         (find_costs_and_classes): Ditto.
10163
10164 2011-08-08  Richard Henderson  <rth@redhat.com>
10165
10166         PR middle-end/49990
10167         * config/i386/i386.c (ix86_expand_prologue): Call
10168         for SEH target gen_prologue_use instead of gen_blockage
10169         at prologue's end.
10170
10171 2011-08-08  Martin Jambor  <mjambor@suse.cz>
10172
10173         PR middle-end/49923
10174         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
10175         memory alignment.
10176
10177 2011-08-08   Diego Novillo  <dnovillo@google.com>
10178
10179         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
10180         (DATA_STREAMER_H): New.
10181         (GIMPLE_STREAMER_H): New.
10182         (TREE_STREAMER_H): New.
10183         (STREAMER_HOOKS_H): New.
10184         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
10185         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
10186         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
10187         (data-streamer.o): New.
10188         (data-streamer-in.o): New.
10189         (data-streamer-out.o): New.
10190         (gimple-streamer-in.o): New.
10191         (gimple-streamer-out.o): New.
10192         (streamer-hooks.o): New.
10193         (tree-streamer.o): New.
10194         (tree-streamer-in.o): New.
10195         (tree-streamer-out.o): New.
10196         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
10197         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
10198         GIMPLE_STREAMER_H and TREE_STREAMER_H.
10199         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
10200         GIMPLE_STREAMER_H and TREE_STREAMER_H.
10201         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
10202         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
10203         (ipa-inline-analysis.o): Likewise.
10204         (ipa-pure-const.o): Likewise.
10205         * data-streamer-in.c: New.
10206         * data-streamer-out.c: New.
10207         * data-streamer.c: New.
10208         * data-streamer.h: New.
10209         * gimple-streamer-in.c: New.
10210         * gimple-streamer-out.c: New.
10211         * gimple-streamer.h: New.
10212         * ipa-inline-analysis.c: Include data-streamer.h.
10213         * ipa-prop.c: Include data-streamer.h.
10214         * ipa-pure-const.c: Include data-streamer.h.
10215         * lto-cgraph.c: Include data-streamer.h.
10216         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
10217         (lto_input_widest_uint_uleb128): Likewise.
10218         (lto_input_sleb128): Likewise.
10219         (bp_unpack_var_len_unsigned): Likewise.
10220         (bp_unpack_var_len_int): Likewise.
10221         * lto-section-out.c (lto_output_uleb128_stream): Move to
10222         data-streamer-out.c.
10223         (lto_output_widest_uint_uleb128_stream): Likewise.
10224         (lto_output_sleb128_stream): Likewise.
10225         (bp_pack_var_len_unsigned): Likewise.
10226         (bp_pack_var_len_int): Likewise.
10227         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
10228         (struct string_slot): Remove.  Update all users.
10229         (lto_tag_check_set): Make extern.
10230         (lto_tag_check_range): Move to lto-streamer.h.
10231         (lto_tag_check): Likewise.
10232         (hash_string_slot_node): Remove.  Update all users.
10233         (eq_string_slot_node): Remove.  Update all users.
10234         (string_for_index): Move to data-streamer-in.c
10235         (input_string_internal): Likewise.
10236         (input_string_cst): Move to tree-streamer-in.c.
10237         (input_identifier): Likewise.
10238         (lto_input_string): Move to data-streamer-in.c
10239         (input_record_start): Move to data-streamer.h
10240         (canon_file_name): Use new definition of struct string_slot
10241         from data-streamer.h.  Set S_SLOT.LEN.
10242         (lto_input_location): Make extern.
10243         (lto_input_chain): Move to tree-streamer-in.c.
10244         (lto_init_eh): Make extern.
10245         (input_phi): Move to gimple-streamer-in.c.
10246         (input_gimple_stmt): Likewise.
10247         (input_bb): Likewise.
10248         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
10249         (unpack_ts_real_cst_value_fields): Likewise.
10250         (unpack_ts_fixed_cst_value_fields): Likewise.
10251         (unpack_ts_decl_common_value_fields): Likewise.
10252         (unpack_ts_decl_wrtl_value_fields): Likewise.
10253         (unpack_ts_decl_with_vis_value_fields): Likewise.
10254         (unpack_ts_function_decl_value_fields): Likewise.
10255         (unpack_ts_type_common_value_fields): Likewise.
10256         (unpack_ts_block_value_fields): Likewise.
10257         (unpack_ts_translation_unit_decl_value_fields): Likewise.
10258         (unpack_value_fields): Likewise.
10259         (lto_materialize_tree): Likewise.
10260         (lto_input_ts_common_tree_pointers): Likewise.
10261         (lto_input_ts_vector_tree_pointers): Likewise.
10262         (lto_input_ts_complex_tree_pointers): Likewise.
10263         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
10264         (lto_input_ts_decl_common_tree_pointers): Likewise.
10265         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
10266         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
10267         (lto_input_ts_field_decl_tree_pointers): Likewise.
10268         (lto_input_ts_function_decl_tree_pointers): Likewise.
10269         (lto_input_ts_type_common_tree_pointers): Likewise.
10270         (lto_input_ts_type_non_common_tree_pointers): Likewise.
10271         (lto_input_ts_list_tree_pointers): Likewise.
10272         (lto_input_ts_vec_tree_pointers): Likewise.
10273         (lto_input_ts_exp_tree_pointers): Likewise.
10274         (lto_input_ts_block_tree_pointers): Likewise.
10275         (lto_input_ts_binfo_tree_pointers): Likewise.
10276         (lto_input_ts_constructor_tree_pointers): Likewise.
10277         (lto_input_ts_target_option): Likewise.
10278         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
10279         (lto_input_tree_pointers): Likewise.
10280         (lto_get_pickled_tree): Likewise.
10281         (lto_get_builtin_tree): Likewise.
10282         (lto_read_tree): Likewise.
10283         (lto_input_integer_cst): Likewise.
10284         (lto_input_tree): Likewise.
10285         * lto-streamer-out.c: Include data-streamer.h,
10286         gimple-streamer.h and streamer-hooks.h.
10287         (struct string_slot): Move to data-streamer.h.
10288         (hash_string_slot_node): Likewise.
10289         (eq_string_slot_node): Likewise.
10290         (lto_string_index): Move to data-streamer-out.c.
10291         (lto_output_string_with_length): Likewise.
10292         (lto_output_string): Likewise.
10293         (output_string_cst): Move to tree-streamer-out.c.
10294         (output_identifier): Likewise.
10295         (output_zero): Move to data-streamer-out.c
10296         (output_uleb128): Likewise.
10297         (output_sleb128): Likewise.
10298         (output_record_start): Move to data-streamer.h
10299         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
10300         (pack_ts_real_cst_value_fields): Likewise.
10301         (pack_ts_fixed_cst_value_fields): Likewise.
10302         (pack_ts_decl_common_value_fields): Likewise.
10303         (pack_ts_decl_wrtl_value_fields): Likewise.
10304         (pack_ts_decl_with_vis_value_fields): Likewise.
10305         (pack_ts_function_decl_value_fields): Likewise.
10306         (pack_ts_type_common_value_fields): Likewise.
10307         (pack_ts_block_value_fields): Likewise.
10308         (pack_ts_translation_unit_decl_value_fields): Likewise.
10309         (pack_value_fields): Likewise.
10310         (lto_output_chain): Likewise.
10311         (lto_output_ts_common_tree_pointers): Likewise.
10312         (lto_output_ts_vector_tree_pointers): Likewise.
10313         (lto_output_ts_complex_tree_pointers): Likewise.
10314         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
10315         (lto_output_ts_decl_common_tree_pointers): Likewise.
10316         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
10317         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
10318         (lto_output_ts_field_decl_tree_pointers): Likewise.
10319         (lto_output_ts_function_decl_tree_pointers): Likewise.
10320         (lto_output_ts_type_common_tree_pointers): Likewise.
10321         (lto_output_ts_type_non_common_tree_pointers): Likewise.
10322         (lto_output_ts_list_tree_pointers): Likewise.
10323         (lto_output_ts_vec_tree_pointers): Likewise.
10324         (lto_output_ts_exp_tree_pointers): Likewise.
10325         (lto_output_ts_block_tree_pointers): Likewise.
10326         (lto_output_ts_binfo_tree_pointers): Likewise.
10327         (lto_output_ts_constructor_tree_pointers): Likewise.
10328         (lto_output_ts_target_option): Likewise.
10329         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
10330         (lto_output_tree_pointers): Likewise.
10331         (lto_output_tree_header): Likewise.
10332         (lto_output_builtin_tree): Likewise.
10333         (lto_write_tree): Likewise.
10334         (lto_output_integer_cst): Likewise.
10335         (lto_output_tree): Likewise.
10336         (output_phi): Move to gimple-streamer-out.c.
10337         (output_gimple_stmt): Likewise.
10338         (output_bb): Likewise.
10339         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
10340         (streamer_hooks): Move to streamer-hooks.c.
10341         (check_handled_ts_structures): Move to tree-streamer.c
10342         (lto_streamer_cache_add_to_node_array): Likewise.
10343         (lto_streamer_cache_insert_1): Likewise.
10344         (lto_streamer_cache_insert): Likewise.
10345         (lto_streamer_cache_insert_at): Likewise.
10346         (lto_streamer_cache_append): Likewise.
10347         (lto_streamer_cache_lookup): Likewise.
10348         (lto_streamer_cache_get): Likewise.
10349         (lto_record_common_node): Likewise.
10350         (lto_preload_common_nodes): Likewise.
10351         (lto_streamer_cache_create): Likewise.
10352         (lto_streamer_cache_delete): Likewise.
10353         (streamer_hooks_init): Move to streamer-hooks.c.
10354         * lto-streamer.h: Include diagnostic.h
10355         (struct output_block, struct lto_input_block,
10356         struct data_in, struct bitpack_d): Remove forward declarations.
10357         (struct bitpack_d): Move to data-streamer.h.
10358         (struct lto_streamer_cache_d): Move to tree-streamer.h.
10359         (struct streamer_hooks): Move to streamer-hooks.h.
10360         (bp_pack_var_len_unsigned): Move to data-streamer.h.
10361         (bp_pack_var_len_int): Likewise.
10362         (bp_unpack_var_len_unsigned): Likewise.
10363         (bp_unpack_var_len_int): Likewise.
10364         (lto_input_location): Declare.
10365         (lto_tag_check_set): Declare.
10366         (lto_init_eh): Declare.
10367         (lto_output_tree_ref): Declare.
10368         (lto_output_location): Declare.
10369         (bitpack_create): Move to data-streamer.h.
10370         (bp_pack_value): Likewise.
10371         (lto_output_bitpack): Likewise.
10372         (lto_input_bitpack): Likewise.
10373         (bp_unpack_value): Likewise.
10374         (lto_output_1_stream): Likewise.
10375         (lto_input_1_unsigned): Likewise.
10376         (lto_output_int_in_range): Likewise.
10377         (lto_input_int_in_range): Likewise.
10378         (bp_pack_int_in_range): Likewise.
10379         (bp_unpack_int_in_range): Likewise.
10380         (lto_output_enum): Likewise.
10381         (lto_input_enum): Likewise.
10382         (bp_pack_enum): Likewise.
10383         (bp_unpack_enum): Likewise.
10384         * streamer-hooks.c: New.
10385         * streamer-hooks.h: New.
10386         * tree-streamer-in.c: New.
10387         * tree-streamer-out.c: New.
10388         * tree-streamer.c: New.
10389         * tree-streamer.h: New.
10390
10391 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10392
10393         * gthr-posix95.h: Remove.
10394         * gthr.h [_PTHREADS95]: Remove.
10395         * configure.ac (enable_threads): Remove posix95.
10396         * configure: Regenerate.
10397         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
10398
10399 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
10400
10401         PR target/49781
10402         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
10403         SImode addresses.
10404         (ix86_print_operand_address): Handle zero-extended addresses.
10405         (memory_address_length): Add length of addr32 prefix for
10406         zero-extended addresses.
10407         (ix86_secondary_reload): Handle moves to/from double-word general
10408         registers from/to zero-extended addresses.
10409         * config/i386/predicates.md (lea_address_operand): Reject
10410         zero-extended operands.
10411
10412 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
10413
10414         PR other/48007
10415         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
10416
10417         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
10418         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
10419
10420         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
10421         (_Unwind_Context_Reg_Val): Likewise.
10422         (_Unwind_Get_Unwind_Word): Likewise.
10423         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
10424         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
10425         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
10426         for EXTENDED_CONTEXT_BIT.
10427         (__frame_state_for): Likewise.
10428         (uw_init_context_1): Likewise.
10429         (_Unwind_GetGR): Updated.
10430         (_Unwind_SetGR): Likewise.
10431         (_Unwind_GetGRPtr): Likewise.
10432         (_Unwind_SetGRPtr): Likewise.
10433         (_Unwind_SetGRValue): Likewise.
10434         (_Unwind_GRByValue): Likewise.
10435         (uw_install_context_1): Likewise.
10436
10437         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
10438         ASSUME_EXTENDED_UNWIND_CONTEXT.
10439         * doc/tm.texi: Regenerated.
10440
10441 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10442
10443         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
10444
10445 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10446
10447         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
10448         Linux/GNU-specific.
10449         (DEC Alpha Options, -mtune): Likewise.
10450         (MIPS Options, -march): native is supported on IRIX.
10451
10452 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10453
10454         * config/sparc/driver-sparc.c: New file.
10455         * config/sparc/x-sparc: New file.
10456         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
10457         * config/sparc/sparc.opt (native): New value for enum processor_type.
10458         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
10459         * config/sparc/sparc.c (sparc_option_override): Abort if
10460         PROCESSOR_NATIVE gets here.
10461         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
10462         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
10463         DRIVER_SELF_SPECS): Define.
10464         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
10465         (SPARC Options, -mtune): Likewise.
10466         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
10467         Substitute result.
10468         * configure: Regenerate.
10469         * Makefile.in (EXTRA_GCC_LIBS): Set.
10470         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
10471         (cpp$(exeext)): Likewise.
10472
10473 2011-08-08  Richard Guenther  <rguenther@suse.de>
10474
10475         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
10476         split out from ...
10477         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
10478         by composition.
10479
10480 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
10481
10482         PR tree-optimization/50005
10483         * ipa-inline-analysis (remap_predicate): Add cast to
10484         silence signed/unsigned comparison warning.
10485
10486 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
10487
10488         * modulo-sched.c (get_sched_window): Use a table for the debug output.
10489         Print the current ii.
10490         (sms_schedule_by_order): Reduce whitespace in dump line.
10491
10492 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
10493
10494         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
10495         and one loop for successors.  Fix upper bound of memory range.
10496
10497 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
10498
10499         PR target/50001
10500         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
10501         (TARGET_INSTANTIATE_DECLS): New define.
10502
10503 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
10504             Mikael Morin   <mikael.morin@sfr.fr>
10505
10506         * Makefile.in (INCLUDES_FOR_TARGET): New.
10507         (LIBGCC2_CFLAGS): Use it.
10508         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
10509
10510 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
10511
10512         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
10513         frame->save_regs_using_mov calculation.
10514
10515 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
10516
10517         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
10518         * config/i386/sse.md (castmode): New mode attribute.
10519         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
10520         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
10521
10522 2011-08-05  Jan Hubicka  <jh@suse.cz>
10523
10524         PR middle-end/49494
10525         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
10526
10527 2011-08-05  Jan Hubicka  <jh@suse.cz>
10528
10529         PR middle-end/49500
10530         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
10531         handle aliases.
10532         (create_emultls_var):New function.
10533         (ipa_lower_emutls): Handle aliases correctly.
10534
10535 2011-08-05  Jan Hubicka  <jh@suse.cz>
10536
10537         PR middle-end/49735
10538         * ipa-inline.c (recursive_inlining): Look through aliases.
10539
10540 2011-08-05  Jason Merrill  <jason@redhat.com>
10541
10542         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
10543         declarations to beginning of function.
10544
10545 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
10546
10547         PR rtl-optimization/49900
10548         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
10549         ensure basic blocks stay in the same order.
10550
10551 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
10552
10553         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
10554         store_bit_field.
10555         (s390_expand_atomic): Same.
10556
10557 2011-08-05  Richard Henderson  <rth@redhat.com>
10558
10559         PR rtl-opt/49977
10560         * dwarf2cfi.c (scan_insn_after): Split out of ...
10561         (scan_trace): ... here.  Correctly place notes wrt sequences.
10562
10563 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
10564             Richard Henderson  <rth@redhat.com>
10565
10566         PR rtl-opt/49982
10567         * expr.c (fixup_args_size_notes): Look through no-op moves.
10568
10569 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
10570
10571         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
10572         of "m" for operand 0.  Add type and mode attribute.
10573         (*pushxf_nointeger"): Use "<" constraint for operand 0.
10574         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
10575         constraint instead of "o" for opreand 1.
10576         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
10577         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
10578         operand 0, alternative 4.
10579         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
10580
10581 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
10582
10583         * config/i386/predicates.md (lea_address_operand): Rename from
10584         no_seg_address_operand.
10585         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
10586         (*lea_1_zext): Ditto.
10587         (*lea_2): Ditto.
10588         (*lea_2_zext): Ditto.
10589
10590 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
10591
10592         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
10593         parts.base and parts.index.
10594         * config/i386/predicates.md (aligned_operand): Ditto.
10595         (cmpxchg8b_pic_memory_operand): Ditto.
10596
10597 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10598
10599         * config/soft-fp: Move to ../libgcc.
10600         * Makefile.in (SFP_MACHINE): Remove.
10601         (libgcc-support): Remove $(SFP_MACHINE) dependency.
10602         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
10603         * config/arm/t-arm-softfp: Move to
10604         ../libgcc/config/arm/t-softfp.
10605         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
10606         * config/c6x/t-c6x-softfp: Remove.
10607         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
10608         * config/i386/t-fprules-softfp: Move to
10609         ../libgcc/config/t-softfp-tf.
10610         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
10611         * config/ia64/t-fprules-softfp: Remove.
10612         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
10613         * config/lm32/t-fprules-softfp: Remove.
10614         * config/moxie/sfp-machine.h: Remove.
10615         * config/moxie/t-moxie-softfp: Remove.
10616         * config/rs6000/darwin-ldouble-format: Move to
10617         ../libgcc/config/rs6000/ibm-ldouble-format.
10618         * config/rs6000/darwin-ldouble.c: Move to
10619         ../libgcc/config/rs6000/ibm-ldouble.c
10620         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
10621         * config/rs6000/libgcc-ppc64.ver: Likewise.
10622         * config/rs6000/sfp-machine.h: Likewise.
10623         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
10624         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
10625         (LIB2FUNCS_EXTRA): Remove.
10626         (TARGET_LIBGCC2_CFLAGS): Remove.
10627         * config/rs6000/t-aix52: Likewise
10628         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
10629         $(srcdir)/config/rs6000/darwin-ldouble.c.
10630         (SHLIB_MAPFILES): Remove.
10631         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
10632         $(srcdir)/config/rs6000/darwin-ldouble.c.
10633         * config/rs6000/t-fprules-softfp: Move to
10634         ../libgcc/config/t-softfp-sfdf.
10635         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
10636         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
10637         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
10638         $(srcdir)/config/rs6000/darwin-ldouble.c.
10639         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
10640         * config/score/t-score-softfp: Remove.
10641         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
10642         soft-fp/t-softfp from tmake_file.
10643         (arm*-*-uclinux*): Likewise.
10644         (arm*-*-ecos-elf): Likewise.
10645         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
10646         (arm*-*-rtems*): Likewise.
10647         (arm*-*-elf): Likewise.
10648         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
10649         tmake_file.
10650         (moxie-*-uclinux*): Likewise.
10651         (moxie-*-rtems*): Likewise.
10652         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
10653         tmake_file.
10654         (lm32-*-rtems*): Likewise.
10655         (lm32-*-uclinux*): Likewise.
10656         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
10657         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
10658         (powerpc-*-linux*, powerpc64-*-linux*): Remove
10659         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
10660         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
10661         tmake_file.
10662         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
10663         tmake_file.
10664         (tic6x-*-uclinux): Likewise.
10665         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
10666         soft-fp/t-softfp from tmake_file.
10667         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
10668         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
10669         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
10670         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
10671         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
10672
10673 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10674
10675         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
10676         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
10677         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
10678         TPBIT, TPBIT_FUNCS.
10679         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
10680         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
10681         Remove.
10682         * config/arm/t-vxworks: Likewise.
10683         * config/arm/t-wince-pe: Likewise.
10684         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
10685         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10686         * config/bfin/t-bfin-elf: Likewise.
10687         * config/bfin/t-bfin-linux: Likewise.
10688         * config/bfin/t-bfin-uclinux: Likewise.
10689         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
10690         Remove.
10691         * config/fr30/t-fr30: Likewise.
10692         * config/frv/t-frv: Likewise.
10693         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
10694         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10695         * config/m32c/t-m32c: Likewise.
10696         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
10697         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10698         * config/mcore/t-mcore: Likewise.
10699         * config/mep/t-mep: Likewise.
10700         * config/microblaze/t-microblaze: Likewise.
10701         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
10702         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10703         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
10704         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10705         * config/mn10300/t-linux: Remove.
10706         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10707         * config/pdp11/t-pdp11: Likewise.
10708         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
10709         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
10710         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10711         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
10712         * config/rs6000/t-aix52: Likewise.
10713         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
10714         $(srcdir)/config/rs6000/ppc64-fp.c.
10715         * config/rs6000/t-fprules-fpbit: Remove.
10716         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
10717         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10718         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
10719         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10720         * config/sparc/t-elf: Likewise.
10721         * config/sparc/t-leon: Likewise.
10722         * config/sparc/t-leon3: Likewise.
10723         * config/spu/t-spu-elf: Likewise.
10724         (DPBIT_FUNCS): Remove.
10725         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10726         * config/v850/t-v850: Likewise.
10727         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
10728         (avr-*-*): Likewise.
10729         (h8300-*-rtems*): Set libgcc_tm_file.
10730         (h8300-*-elf*): Likewise.
10731         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
10732         tmake_file.
10733         (powerpc-*-eabisim*): Likewise.
10734         (powerpc-*-elf*): Likewise.
10735         (powerpc-*-eabialtivec*): Likewise.
10736         (powerpc-xilinx-eabi*): Likewise.
10737         (powerpc-*-eabi*): Likewise.
10738         (powerpc-*-rtems*): Likewise.
10739         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
10740         (powerpcle-*-elf*): Likewise.
10741         (powerpcle-*-eabisim*): Likewise.
10742         (powerpcle-*-eabi*): Likewise.
10743         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
10744         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
10745         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
10746         Remove.
10747
10748 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10749
10750         * Makefile.in (UNWIND_H): Remove.
10751         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
10752         ../libgcc/Makefile.in.
10753         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
10754         (LIBUNWINDDEP): Remove.
10755         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
10756         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
10757         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
10758         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
10759         Don't copy $(UNWIND_H).
10760         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
10761         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
10762         * aclocal.m4: Regenerate.
10763         * configure: Regenerate.
10764         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
10765         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
10766         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
10767         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
10768         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
10769         * config/arm/libunwind.S, config/arm/pr-support.c,
10770         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
10771         ../libgcc/config/arm.
10772         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
10773         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
10774         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
10775         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
10776         ($(T)frvend$(objext)): Likewise.
10777         * config/ia64/t-glibc (LIB2ADDEH): Remove.
10778         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
10779         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
10780         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
10781         ../libgcc/config/ia64.
10782         * config/ia64/t-hpux (LIB2ADDEH): Remove.
10783         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
10784         * config/ia64/t-vms (LIB2ADDEH): Remove.
10785         * config/ia64/vms.h (UNW_IVMS_MODE,
10786         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
10787         * config/picochip/t-picochip (LIB2ADDEH): Remove.
10788         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
10789         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
10790         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
10791         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
10792         $(srcdir)/../libgcc to refer to unwinder sources.
10793         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
10794         * config/t-darwin (LIB2ADDEH): Remove.
10795         * config/t-freebsd (LIB2ADDEH): Remove.
10796         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
10797         * config/t-libunwind-elf: Move to ../libgcc/config.
10798         * config/t-linux (LIB2ADDEH): Remove.
10799         * config/t-sol2 (LIB2ADDEH): Remove.
10800         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
10801         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
10802
10803 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
10804
10805         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
10806
10807         * doc/invoke.texi: Document core-avx-i.
10808
10809 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10810
10811         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
10812
10813 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
10814
10815         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
10816         result of multiple results reduction when extracting the final
10817         value using scalar code.
10818
10819 2011-08-05  Richard Guenther  <rguenther@suse.de>
10820
10821         PR tree-optimization/49984
10822         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
10823
10824 2011-08-05  Richard Guenther  <rguenther@suse.de>
10825
10826         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
10827         return true for constant integer ranges.
10828         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
10829         BIT_IOR_EXPR handling.
10830
10831 2011-08-04  Kai Tietz  <ktietz@redhat.com>
10832
10833         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
10834         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
10835
10836 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
10837
10838         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
10839         pattern def statement, and its access macro.
10840         (NUM_PATTERNS): Set to 5.
10841         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
10842         pattern def statement.
10843         (vect_transform_loop): Likewise.
10844         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
10845         function vect_recog_over_widening_pattern ().
10846         (vect_operation_fits_smaller_type): New function.
10847         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
10848         Likewise.
10849         (vect_pattern_recog_1): Move the code that marks pattern
10850         statements to vect_mark_pattern_stmts (), and call it.  Update
10851         documentation.
10852         * tree-vect-stmts.c (vect_supportable_shift): New function.
10853         (vect_analyze_stmt): Handle pattern def statement.
10854         (new_stmt_vec_info): Initialize pattern def statement.
10855
10856 2011-08-04  Richard Henderson  <rth@redhat.com>
10857
10858         PR target/49964
10859         * config/i386/i386.c (ix86_expand_call): Don't create nested
10860         PARALLELs for TARGET_VZEROUPPER.
10861         (ix86_split_call_vzeroupper): Fix extraction of the original call.
10862         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
10863         recognize nested PARALLELs.
10864         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
10865         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
10866         *sibcall_value_pop_vzeroupper): Likewise.
10867
10868 2011-08-04  Richard Henderson  <rth@redhat.com>
10869
10870         PR middle-end/49968
10871         * calls.c (expand_call): Use fixup_args_size_notes for
10872         emit_stack_restore.
10873         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
10874         in non-standard modes.
10875
10876 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
10877
10878         * gcc.c (self_spec): New variable.
10879         (static_specs): Add self_spec.
10880         (main): Call do_self_spec on "self_spec" specs after reading
10881         user specs files.  Move compare_debug handling right after that.
10882
10883 2011-08-04  Richard Guenther  <rguenther@suse.de>
10884
10885         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
10886         (value_range_nonnegative_p): New function.
10887         (ssa_name_nonnegative_p): Use it.
10888         (value_range_constant_singleton): New function.
10889         (op_with_constant_singleton_value_range): Use it.
10890         (extract_range_from_binary_expr_1): New function, split out from ...
10891         (extract_range_from_binary_expr): ... this.  Remove fallback
10892         constant folding done here.
10893
10894 2011-08-04  Richard Guenther  <rguenther@suse.de>
10895
10896         PR tree-optimization/49806
10897         * tree-vrp.c (op_with_boolean_value_range_p): New function.
10898         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
10899         a new statement for a final conversion to bool.
10900
10901 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
10902
10903         * gengtype-state.c: Include "bconfig.h" if
10904         GENERATOR_FILE is defined, "config.h" otherwise.
10905         * gengtype.c: Likewise.
10906         * gengtype-lex.l: Likewise.
10907         * gengtype-parse.c: Likewise.
10908         * Makefile.in (gengtype-lex.o-warn): New variable.
10909         (plugin_resourcesdir): Likewise.
10910         (plugin_bindir): Likewise.
10911         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
10912         (MOSTLYCLEANFILES): Add gengtype$(exeext).
10913         (native): Depend on gengtype$(exeext) is $enable_plugin
10914         is set to "yes".
10915         (gtype.state): Depend on s-gtype. Use temporary file.
10916         (gengtype-lex.o): New rule.
10917         (gengtype-parse.o): Likewise.
10918         (gengtype-state.o): Likewise.
10919         (gengtype$(exeext)): Likewise.
10920         (install-gengtype): Likewise.
10921         (gengtype.o): Likewise.
10922         (build/gengtype.o): Depend on version.h.
10923         (build/gengtype-state): Depend on double-int.h, version.h,
10924         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
10925         (install-plugin): Depend on install-gengtype.
10926
10927 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
10928
10929         PR middle-end/49905
10930         * tree.h (init_attributes): New prototype.
10931         * attribs.c (init_attributes): No longer static.
10932
10933 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10934
10935         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
10936         maybe_suffix.
10937
10938 2011-08-03   David Li  <davidxl@google.com>
10939
10940         * tree-optimize.c (execute_fixup_cfg): Fix up entry
10941         outgoing edge counts after inlining.
10942
10943 2011-08-03   David Li  <davidxl@google.com>
10944
10945         * profile.c (compute_branch_probabilities): Compute
10946         function frequency after profile annotation.
10947
10948 2011-08-04  Alan Modra  <amodra@gmail.com>
10949
10950         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
10951         use_backchain_to_restore_sp initialisation.
10952         (rs6000_legitimate_offset_address_p): Simplify offset test.
10953
10954 2011-08-03  Richard Henderson  <rth@redhat.com>
10955
10956         * config/spu/spu.md: Use define_c_enum instead of define_constants.
10957         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
10958         (UNSPECV_NOP): New.
10959
10960 2011-08-03  Richard Henderson  <rth@redhat.com>
10961
10962         PR target/34888
10963         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
10964
10965 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
10966
10967         PR tree-optimization/49948
10968         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
10969
10970 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
10971
10972         * config/m32c/m32c.c (class_sizes): Remove.
10973         (reduce_class): Change arguments and return type to reg_class_t.
10974         Change type cc var to HARD_REG_SET. Change type best var to
10975         reg_class_t. Change type best_size var to unsigned int. Remove
10976         initialization class_sizes var. Use reg_class_size array instead
10977         of class_sizes. Use reg_class_contents array instead
10978         of class_contents.
10979
10980 2011-08-03  Richard Guenther  <rguenther@suse.de>
10981
10982         PR middle-end/49958
10983         * fold-const.c (fold_binary_loc): Only associate
10984         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
10985         overflow wraps.
10986
10987 2011-08-03  Alan Modra  <amodra@gmail.com>
10988
10989         PR rtl-optimization/49941
10990         * jump.c (mark_jump_label): Comment.
10991         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
10992         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
10993         (mark_used_flags): Don't mark RETURN.
10994
10995 2011-08-03  Richard Guenther  <rguenther@suse.de>
10996
10997         PR tree-optimization/49938
10998         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
10999         deal with a POLYNOMIAL_CHREC.
11000
11001 2011-08-03  Revital Eres  <revital.eres@linaro.org>
11002
11003         * modulo-sched.c (calculate_stage_count,
11004         calculate_must_precede_follow, get_sched_window,
11005         try_scheduling_node_in_cycle, remove_node_from_ps): Add
11006         declaration.
11007         (update_node_sched_params, set_must_precede_follow, optimize_sc):
11008         New functions.
11009         (reset_sched_times): Call update_node_sched_params.
11010         (sms_schedule): Call optimize_sc.
11011         (get_sched_window): Change function arguments.
11012         (sms_schedule_by_order): Update call to get_sched_window.
11013         Call set_must_precede_follow.
11014         (calculate_stage_count): Add function argument.
11015
11016 2011-08-02  Richard Henderson  <rth@redhat.com>
11017
11018         PR target/49864
11019         PR target/49879
11020         * reg-notes.def (REG_ARGS_SIZE): New.
11021         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
11022         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
11023         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
11024         different stack levels.
11025         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
11026         (maybe_move_args_size_note): New.
11027         (combine_stack_adjustments_for_block): Use it.
11028         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
11029         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
11030         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
11031         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
11032         (cur_cfa): New.
11033         (queued_args_size): Remove.
11034         (add_cfi_args_size): Assert size is non-negative.
11035         (stack_adjust_offset, dwarf2out_args_size): Remove.
11036         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
11037         (notice_args_size, notice_eh_throw): New.
11038         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
11039         (dwarf2out_frame_debug_adjust_cfa): Likewise.
11040         (dwarf2out_frame_debug_cfa_offset): Likewise.
11041         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
11042         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
11043         (change_cfi_row): Don't emit args_size.
11044         (maybe_record_trace_start_abnormal): Split out from ...
11045         (maybe_record_trace_start): Here.  Set args_size_undefined.
11046         (create_trace_edges): Update to match.
11047         (scan_trace): Handle REG_ARGS_SIZE.
11048         (connect_traces): Connect args_size between EH insns.
11049         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
11050         * explow.c (suppress_reg_args_size): New.
11051         (adjust_stack_1): Split out from ...
11052         (adjust_stack): ... here.
11053         (anti_adjust_stack): Use it.
11054         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
11055         * expr.c (mem_autoinc_base): New.
11056         (fixup_args_size_notes): New.
11057         (emit_single_push_insn_1): Rename from emit_single_push_insn.
11058         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
11059         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
11060         * reload1.c (reload_as_needed): Likewise.
11061         * rtl.h (fixup_args_size_notes): Declare.
11062
11063 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
11064
11065         PR bootstrap/49914
11066         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
11067         of abs.
11068         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
11069         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
11070
11071 2011-08-02  Richard Henderson  <rth@redhat.com>
11072
11073         * config/h8300/h8300.c (push, pop): Return the insn.
11074         (h8300_swap_into_er6): Generate correct unwind info.
11075         (h8300_swap_out_of_er6): Likewise.
11076         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
11077         complex cfa expression.
11078         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
11079
11080 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11081
11082         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
11083
11084 2011-08-02  Richard Henderson  <rth@redhat.com>
11085
11086         PR target/49878
11087         * config/h8300/h8300.c (h8300_move_ok): New.
11088         * config/h8300/h8300-protos.h: Declare it.
11089         * config/h8300/h8300.md (P): New mode iterator.
11090         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
11091         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
11092         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
11093         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
11094         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
11095         and pushqi1_h8300hs_normal; use PRE_MODIFY and
11096         register_no_sp_elim_operand.
11097         (*pushhi1_h8300hs_<P>): Similarly.
11098         (pushqi1, pushhi1, pushhi1_h8300): Remove.
11099         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
11100
11101 2011-08-02  Richard Henderson  <rth@redhat.com>
11102
11103         PR target/49881
11104         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
11105
11106 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
11107
11108         * c-parser.c (enum c_parser_prec): New enum, moved from within
11109         c_parser_binary_expression.
11110         (c_parser_binary_expression): Add PREC argument.  Stop parsing
11111         if operator has lower or equal precedence than PREC.
11112         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
11113         callers.
11114         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
11115         Adjust c_finish_omp_atomic caller.
11116         (c_parser_omp_taskyield): New function.
11117         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
11118         (c_parser_omp_clause_name): Handle final and mergeable clauses.
11119         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
11120         functions.
11121         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
11122         and PRAGMA_OMP_CLAUSE_MERGEABLE.
11123         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
11124         (c_parser_omp_clause_reduction): Handle min and max.
11125         * c-typeck.c (c_finish_omp_clauses): Don't complain about
11126         const qualified predetermined vars in firstprivate clause.
11127         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11128         Handle MIN_EXPR and MAX_EXPR.
11129         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
11130         and OMP_CLAUSE_MERGEABLE.
11131         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
11132         and OMP_ATOMIC_CAPTURE_NEW.
11133         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
11134         OMP_CLAUSE_MERGEABLE.
11135         (omp_clause_code_name): Likewise.
11136         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11137         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
11138         and OMP_CLAUSE_MERGEABLE.
11139         (OMP_CLAUSE_FINAL_EXPR): Define.
11140         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
11141         OMP_CLAUSE_MERGEABLE.
11142         (expand_task_call): Likewise.
11143         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
11144         (expand_omp_atomic_fetch_op): Handle cases where old or new
11145         value is needed afterwards.
11146         (expand_omp_atomic): Call expand_omp_atomic_load resp.
11147         expand_omp_atomic_store.
11148         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
11149         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
11150         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
11151         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11152         * tree-nested.c (convert_nonlocal_omp_clauses,
11153         convert_local_omp_clauses): Likewise.
11154         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
11155         OMP_ATOMIC_CAPTURE_NEW): New.
11156         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
11157         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
11158         New inlines.
11159         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
11160         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
11161         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11162
11163 2011-08-02  Kai Tietz  <ktietz@redhat.com>
11164
11165         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
11166         boolean-type.
11167         (ssa_forward_propagate_and_combine): Interprete result of
11168         forward_propagate_comparison.
11169         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
11170         boolean-typed operands for comparisons.
11171
11172 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
11173
11174         * config/avr/libgcc.S: Gather related function in the
11175         same input section.
11176         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
11177         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
11178         references.
11179         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
11180         __udivmodsi4, __divmodsi4, __prologue_saves__,
11181         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
11182         __do_copy_data, __do_clear_bss, __do_global_ctors,
11183         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
11184
11185 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
11186
11187         PR target/47766
11188         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
11189         (stack_protect_test): The pattern compares ptr_mode value.
11190
11191 2011-08-02  Alan Modra  <amodra@gmail.com>
11192
11193         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
11194         note for save_LR_around_toc_setup sequence.
11195
11196 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
11197
11198         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
11199
11200 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
11201             Joseph Myers  <joseph@codesourcery.com>
11202
11203         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
11204         * hwint.c: Include diagnostic-core.h.
11205         (abs_hwi): New.
11206         (gcd): Moved here...
11207         (pos_mul_hwi): New.
11208         (mul_hwi): New.
11209         (least_common_multiple): Moved here...
11210         * hwint.h (gcd): ... from here.
11211         (least_common_multiple): ... from here.
11212         (HOST_WIDE_INT_MIN): New.
11213         (HOST_WIDE_INT_MAX): New.
11214         (abs_hwi): Declared.
11215         (gcd): Declared.
11216         (pos_mul_hwi): Declared.
11217         (mul_hwi): Declared.
11218         (least_common_multiple): Declared.
11219         * omega.c (check_pos_mul): Removed.
11220         (check_mul): Removed.
11221         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
11222         mul_hwi instead of check_mul.
11223
11224 2011-08-01  Richard Henderson  <rth@redhat.com>
11225
11226         PR target/49881
11227         * config/avr/avr.h (PUSH_ROUNDING): New.
11228         * config/avr/avr.md (pushqi1): Rename from *pushqi.
11229         (*pushhi, *pushsi, *pushsf): Remove.
11230         (MPUSH): New mode iterator.
11231         (push<MPUSH>1): New expander.
11232
11233 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
11234
11235         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
11236         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
11237         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
11238         mmix_preferred_output_reload_class): Remove.
11239         * config/mmix/mmix.c (mmix_preferred_reload_class,
11240         mmix_preferred_output_reload_class): Make static. Change rclass
11241         argument and return type to reg_class_t.
11242         (TARGET_PREFERRED_RELOAD_CLASS,
11243         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11244
11245 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11246
11247         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
11248         handling.
11249
11250 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
11251
11252         PR target/47766
11253         * config/i386/i386.md (PTR): New.
11254         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
11255         (stack_protect_test): Likewise.
11256         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
11257         (stack_tls_protect_set_<mode>): Likewise.
11258         (stack_tls_protect_test_<mode>): Likewise.
11259
11260 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
11261
11262         PR target/49927
11263         * config/i386/i386.c (ix86_address_subreg_operand): New.
11264         (ix86_decompose_address): Use ix86_address_subreg_operand.
11265         (ix86_legitimate_address_p): Do not assert that subregs satisfy
11266         register_no_elim_operand in DImode.
11267
11268 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
11269
11270         PR tree-optimization/49926
11271         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
11272         in a chain doesn't have uses both inside and outside the loop.
11273
11274 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
11275
11276         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
11277         * config/avr/avr-devices.c (avr_mcu_types): Use it.
11278         * config/avr/avr-mcus.def (AVR_MCU): Use it.
11279         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
11280         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
11281         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
11282         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
11283         to detect if XJMP must not be skipped.
11284
11285 2011-08-02  Alan Modra  <amodra@gmail.com>
11286
11287         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
11288         Delete.
11289         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
11290         (rs6000_emit_prologue): Don't prematurely return when
11291         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
11292         save_toc_in_prologue case.
11293         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
11294         calls_alloca.
11295
11296 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
11297
11298         * config/avr/avr-devices.c: Delete SVN property svn:executable.
11299         * config/avr/predicates.md: Ditto.
11300         * config/avr/driver-avr.c: Ditto.
11301         * config/avr/genopt.sh: Set SVN property svn:executable to *.
11302
11303 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
11304
11305         * calls.c (emit_library_call_value_1): Declare size only if
11306         BLOCK_REG_PADDING is defined.
11307
11308 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
11309
11310         PR target/49547
11311         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
11312         (x86_64-*-*): Likewise.
11313         * config/i386/i386.opt (mlzcnt): New.
11314         * config/i386/abmintrin.h: File removed.
11315         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
11316         * config/i386/lzcntintrin.h: ... here.  New file.
11317         (__lzcnt): Rename to ...
11318         (__lzcnt32): ... this.
11319         * config/i386/bmiintrin.h (head): Update copyright year.
11320         (__lzcnt_u16): Removed.
11321         (__lzcnt_u32): Likewise.
11322         (__lzcnt_u64): Likewise.
11323         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
11324         is defined, remove abmintrin.h.
11325         * config/i386/cpuid.h (bit_LZCNT): New.
11326         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
11327         LZCNT feature.
11328         * config/i386/i386-c.c (ix86_target_macros_internal): Define
11329         __LZCNT__ if needed.
11330         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
11331         (ix86_option_override_internal): Handle LZCNT option.
11332         (ix86_valid_target_attribute_inner_p): Likewise.
11333         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
11334         * config/i386/i386.h (TARGET_LZCNT): New.
11335         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
11336         * config/i386/i386.md (clz<mode>2): Update insn constraint.
11337         (clz<mode>2_lzcnt): Likewise.
11338         * doc/invoke.texi: Mention -mlzcnt option.
11339         * doc/extend.texi: Likewise.
11340
11341 2011-08-01  Julian Brown  <julian@codesourcery.com>
11342
11343         * configure.ac (fixed-point): Add ARM support.
11344         * configure: Regenerate.
11345         * config/arm/arm.c (arm_fixed_mode_set): New struct.
11346         (arm_set_fixed_optab_libfunc): New.
11347         (arm_set_fixed_conv_libfunc): New.
11348         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
11349         ARM-specific names.
11350         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
11351         return values in SImode.
11352         (arm_return_in_msb): Return fixed-point types in the msb.
11353         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
11354         upwards.
11355         (arm_scalar_mode_supported_p): Support fixed-point modes.
11356         (arm_vector_mode_supported_p): Support vector fixed-point modes.
11357         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
11358         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
11359         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
11360         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
11361         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
11362         New mode iterators.
11363         (qaddsub_suf): New mode attribute.
11364         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
11365         vector modes.
11366         * config/arm/predicates.md (sat_shift_operator): New predicate.
11367         * config/arm/arm-fixed.md: New.
11368         * config/arm/arm.md: Include arm-fixed.md.
11369         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
11370
11371 2011-08-01  Julian Brown  <julian@codesourcery.com>
11372
11373         * calls.c (emit_library_call_value_1): Support padding for libcall
11374         arguments and return values.
11375         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
11376         downwards in big-endian mode.
11377
11378 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11379
11380         PR debug/49887
11381         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
11382         * config/sol2-protos.h: Likewise.
11383         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
11384         solaris_code_end.
11385         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
11386         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
11387         solaris_file_end.
11388         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
11389
11390 2011-08-01  Julian Brown  <julian@codesourcery.com>
11391
11392         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
11393
11394 2011-08-01  Julian Brown  <julian@codesourcery.com>
11395
11396         * final.c (output_addr_const): Print fixed-point constants as
11397         decimal not hex.
11398
11399 2011-08-01  Richard Guenther  <rguenther@suse.de>
11400
11401         * stor-layout.c (initialize_sizetypes): Properly sign-extend
11402         bitsiztype TYPE_MAX_VALUE.
11403
11404 2011-08-01  Julian Brown  <julian@codesourcery.com>
11405
11406         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
11407         comparison helpers.
11408
11409 2011-07-31  Richard Henderson  <rth@redhat.com>
11410
11411         * config/h8300/crti.asm: Add flags to .section directive.
11412         * config/h8300/crtn.asm: Likewise.
11413
11414 2011-07-31  Richard Henderson  <rth@redhat.com>
11415
11416         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
11417         * tree.c (build_common_tree_nodes): Likewise.
11418
11419 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
11420
11421         PR target/49880
11422         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
11423         (divsi3_i1): Likewise.
11424
11425 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11426
11427         PR tree-optimization/49749
11428         * tree-ssa-reassoc.c (get_rank): New forward declaration.
11429         (PHI_LOOP_BIAS): New macro.
11430         (phi_rank): New function.
11431         (loop_carried_phi): Likewise.
11432         (propagate_rank): Likewise.
11433         (get_rank): Add calls to phi_rank and propagate_rank.
11434
11435 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
11436
11437         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
11438         of TARGET_64BIT.
11439         (PTRDIFF_TYPE): Likewise.
11440
11441 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
11442
11443         PR target/49920
11444         * config/i386/i386.md (strset): Do not expand strset_singleop
11445         when %eax or $edi are fixed.
11446         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
11447         (*strsetsi_1): Ditto.
11448         (*strsethi_1): Ditto.
11449         (*strsetqi_1): Ditto.
11450         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
11451         (*rep_stossi): Ditto.
11452         (*rep_stosqi): Ditto.
11453         (*strlenqi_1): Ditto.
11454         (cmpstrnsi): Also fail when %ecx is fixed.
11455         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
11456         (*cmpstrnqi_1): Ditto.
11457         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
11458         (*strmovsi_1): Ditto.
11459         (*strmovhi_1): Ditto.
11460         (*strmovqi_1): Ditto.
11461         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
11462         (*rep_movsi): Ditto.
11463         (*rep_movqi): Ditto.
11464
11465 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
11466
11467         PR target/47908
11468         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
11469         Disable instruction scheduling for non-ColdFire targets.
11470         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
11471
11472 2011-07-31  Revital Eres  <revital.eres@linaro.org>
11473
11474         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
11475         of anti-dep edge from a branch.
11476         (add_cross_iteration_register_deps): Create anti-dep edge from
11477         a branch.
11478
11479 2011-07-31  Revital Eres  <revital.eres@linaro.org>
11480
11481         * modulo-sched.c: Change comment.
11482         (reset_sched_times): Fix print message.
11483         (print_partial_schedule): Add print info.
11484
11485 2011-07-31  Tom de Vries  <tom@codesourcery.com>
11486
11487         PR middle-end/43513
11488         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
11489         get_object_alignment and TYPE_ALIGN.
11490
11491 2011-07-30  Tom de Vries  <tom@codesourcery.com>
11492
11493         PR middle-end/43513
11494         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
11495         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
11496
11497 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11498
11499         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
11500         <sys/sbd.h>.
11501         (cpu_types): New array.
11502         (cputype): New function.
11503         (host_detect_local_cpu): Only define buf, f if !__sgi__.
11504         Use scaninvent instead of /proc/cpuinfo if __sgi__.
11505         * config.host: Also use driver-native.o, mips/x-native on
11506         mips-sgi-irix*.
11507         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
11508         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
11509         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
11510
11511 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
11512
11513         PR middle-end/49897
11514         PR middle-end/49898
11515         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
11516         in nested parallel and outer is a gimple_reg, mark it as addressable
11517         and set its bit in task_shared_vars bitmap too.
11518
11519 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
11520
11521         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
11522
11523 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11524
11525         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
11526         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
11527         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
11528         AMASK_LOCKPFTCHOK): Define.
11529         (host_detect_local_cpu): Remove buf, f, cpu_names.
11530         Define cpu_types, implver, amask.
11531         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
11532         native CPU.
11533         * config.host: Also use driver-alpha.o, alpha/x-alpha on
11534         alpha*-dec-osf*.
11535         * config/alpha/osf5.h [__alpha__ || __alpha]
11536         (host_detect_local_cpu): Declare.
11537         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
11538         (DRIVER_SELF_SPECS): Define.
11539
11540 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
11541
11542         PR target/47715
11543         * config/i386/i386.md (*load_tp_x32): New.
11544         (*load_tp_x32_zext): Ditto.
11545         (*add_tp_x32): Ditto.
11546         (*add_tp_x32_zext): Ditto.
11547         (*load_tp_<mode>): Disable for TARGET_X32 targets.
11548         (*add_tp_<mode>): Ditto.
11549         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
11550         ptr_mode and convert to Pmode if needed.
11551
11552 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
11553
11554         PR target/49687
11555         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
11556         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
11557         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
11558         Add X to register footprint: Clobber r26/r27.
11559
11560 2011-07-29  Richard Guenther  <rguenther@suse.de>
11561
11562         * builtins.c (fold_builtin_signbit): Build the comparison
11563         with a proper type.
11564
11565 2011-07-29  Richard Guenther  <rguenther@suse.de>
11566
11567         PR tree-optimization/49893
11568         * tree-predcom.c (suitable_reference_p): Volatile references
11569         are not suitable.
11570
11571 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
11572
11573         PR target/49313
11574         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
11575         (__ctzsi2): Result for 0 may be undefined.
11576         (__ctzhi2): Result for 0 may be undefined.
11577         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
11578         (__popcountsi2): Ditto. And don't clobber r26.
11579         (__popcountdi2): Ditto. And don't clobber r27.
11580         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
11581         (parityhi2): New expand.
11582         (paritysi2): New expand.
11583         (popcounthi2): New expand.
11584         (popcountsi2): New expand.
11585         (clzhi2): New expand.
11586         (clzsi2): New expand.
11587         (ctzhi2): New expand.
11588         (ctzsi2): New expand.
11589         (ffshi2): New expand.
11590         (ffssi2): New expand.
11591         (copysignsf3): New insn.
11592         (bswapsi2): New expand.
11593         (*parityhi2.libgcc): New insn.
11594         (*parityqihi2.libgcc): New insn.
11595         (*paritysihi2.libgcc): New insn.
11596         (*popcounthi2.libgcc): New insn.
11597         (*popcountsi2.libgcc): New insn.
11598         (*popcountqi2.libgcc): New insn.
11599         (*popcountqihi2.libgcc): New insn-and-split.
11600         (*clzhi2.libgcc): New insn.
11601         (*clzsihi2.libgcc): New insn.
11602         (*ctzhi2.libgcc): New insn.
11603         (*ctzsihi2.libgcc): New insn.
11604         (*ffshi2.libgcc): New insn.
11605         (*ffssihi2.libgcc): New insn.
11606         (*bswapsi2.libgcc): New insn.
11607
11608 2011-07-29  Richard Guenther  <rguenther@suse.de>
11609
11610         * tree-vrp.c (get_value_range): Only set parameter default
11611         definitions to varying, leave others at undefined.
11612         (extract_range_from_binary_expr): Fix undefined handling.
11613         (vrp_visit_phi_node): Handle merged undefined state.
11614
11615 2011-07-29  Wei Guozhi  <carrot@google.com>
11616
11617         PR rtl-optimization/49799
11618         * combine.c (make_compound_operation): Check if the bit field is valid
11619         before change it to bit field extraction.
11620
11621 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
11622
11623         PR rtl-optimization/49891
11624         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
11625         newly created returnjumps.
11626
11627 2011-07-28  DJ Delorie  <dj@redhat.com>
11628
11629         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
11630         local frame in a naked function, and produce a suitable error for
11631         that specific case.
11632
11633         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
11634         registers to be reloaded in HI classes when the target is HI.
11635
11636 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
11637
11638         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
11639         bound_one, bound_two.
11640
11641 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
11642
11643         PR middle-end/48648
11644         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
11645         CLAST assignments.
11646         (translate_clast): Same.
11647         (translate_clast_assignment): New.
11648
11649 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
11650
11651         PR tree-optimization/49876
11652         * sese.c (rename_uses): Do not return false on gloog_error: set
11653         the new_expr to integer_zero_node and continue code generation.
11654         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
11655
11656 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
11657
11658         PR debug/49846
11659         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
11660         arguments also check if they aren't initialized with a MODE_INT
11661         mode of the same size.
11662
11663 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
11664
11665         * expr.c (get_bit_range): Handle *MEM_REF's.
11666
11667 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
11668
11669         * rtlanal.c (tablejump_p): False for returns.
11670         * reorg.c (first_active_target_insn): New static function.
11671         (find_end_label): Set JUMP_LABEL for a new returnjump.
11672         (optimize_skip, get_jump_flags, rare_destination,
11673         mostly_true_jump, get_branch_condition,
11674         steal_delay_list_from_target, own_thread_p,
11675         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
11676         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
11677         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
11678         * jump.c (delete_related_insns): Likewise.
11679         (jump_to_label_p): New function.
11680         (redirect_target): New static function.
11681         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
11682         (redirect_jump_1): Assert that the new label is nonnull.
11683         (redirect_jump): Likewise.
11684         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
11685         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
11686         exit block.
11687         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
11688         changed.  Ensure that the right label is passed to redirect_jump.
11689         * function.c (emit_return_into_block,
11690         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
11691         ret_rtx in their JUMP_LABEL.
11692         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
11693         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
11694         pass ret_rtx as label.
11695         * cfglayout.c (fixup_reorder_chain): Use
11696         force_nonfallthru_and_redirect rather than force_nonfallthru.
11697         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
11698         * rtl.h (ANY_RETURN_P): New macro.
11699         (jump_to_label_p): Declare.
11700         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
11701         JUMP_LABELs.
11702         (mark_target_live_regs): Likewise.
11703         * basic-block.h (force_nonfallthru_and_redirect): Declare.
11704         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
11705         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
11706         alpha_tablejump_best_label): Remove functions.
11707         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
11708         alpha_tablejump_best_label): Remove declarations.
11709         * config/sh/sh.c (barrier_align, split_branches): Adjust for
11710         ret_rtx in JUMP_LABELs.
11711         * config/arm/arm.c (is_jump_table): Likewise.
11712
11713 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
11714
11715         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
11716         special predicate.  Remove explicit mode checks.
11717
11718 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
11719
11720         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
11721         DW_AT_data_member_location containing just DW_OP_plus_uconst.
11722
11723         PR debug/49871
11724         * dwarf2out.c (size_of_die, value_format, output_die): Use
11725         DW_FORM_udata instead of DW_FORM_data[48] for
11726         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
11727
11728 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
11729
11730         * config/i386/i386.md (*tls_global_dynamic_64): Update
11731         length attribute.
11732
11733 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
11734
11735         PR target/47715
11736         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
11737         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
11738         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
11739         (tls_dynamic_gnu2_64): Ditto.
11740         (*tls_dynamic_gnu2_lea_64): Ditto.
11741         (*tls_dynamic_gnu2_call_64): Ditto.
11742         (*tls_dynamic_gnu2_combine_64): Ditto.
11743
11744 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
11745
11746         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
11747
11748 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
11749
11750         PR target/47364
11751         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
11752
11753 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11754
11755         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
11756         before the core constraints. Adjust attributes.
11757         ("*thumb2_movdf_vfp"): Likewise.
11758
11759 2011-07-28  Kai Tietz  <ktietz@redhat.com>
11760
11761         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
11762         (simplify_truth_ops_using_ranges): Likewise.
11763         (build_assert_expr_for): Likewise.
11764         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
11765         and handle BIT_NOT_EXPR for truth-operation.
11766
11767 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
11768
11769         PR target/49313
11770         Undo r176835 from trunk
11771         2011-07-27  Georg-Johann Lay
11772
11773 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
11774
11775         PR target/49687
11776         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
11777         Add _muluhisi3, _mulshisi3, _usmulhisi3.
11778         * config/avr/libgcc.S (__mulsi3): Rewrite.
11779         (__mulhisi3): Rewrite.
11780         (__umulhisi3): Rewrite.
11781         (__usmulhisi3): New.
11782         (__muluhisi3): New.
11783         (__mulshisi3): New.
11784         (__mulohisi3): New.
11785         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
11786         declare.
11787         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
11788         (pseudo_register_or_const_int_operand): New.
11789         (combine_pseudo_register_operand): New.
11790         (u16_operand): New.
11791         (s16_operand): New.
11792         (o16_operand): New.
11793         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
11794         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
11795         (any_extend, any_extend2): New code iterators.
11796         (extend_prefix): New code attribute.
11797         (mulsi3): Rewrite. Turn insn to expander.
11798         (mulhisi3): Ditto.
11799         (umulhisi3): Ditto.
11800         (usmulhisi3): New expander.
11801         (*mulsi3): New insn-and-split.
11802         (mulu<mode>si3): New insn-and-split.
11803         (muls<mode>si3): New insn-and-split.
11804         (mulohisi3): New insn-and-split.
11805         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
11806         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
11807         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
11808         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
11809         insn-and-split.
11810         (*mulsi3_call): Rewrite.
11811         (*mulhisi3_call): Rewrite.
11812         (*umulhisi3_call): Rewrite.
11813         (*usmulhisi3_call): New insn.
11814         (*muluhisi3_call): New insn.
11815         (*mulshisi3_call): New insn.
11816         (*mulohisi3_call): New insn.
11817         (extendqihi2): Use combine_pseudo_register_operand as predicate
11818         for operand 1.
11819         (extendqisi2): Ditto.
11820         (zero_extendqihi2): Ditto.
11821         (zero_extendqisi2): Ditto.
11822         (zero_extendhisi2): Ditto.
11823         (extendhisi2): Ditto. Don't early-clobber operand 0.
11824
11825 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
11826
11827         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
11828
11829 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
11830
11831         PR tree-optimization/49471
11832         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
11833         iv only when the largest type is unsigned.  Do not call
11834         lang_hooks.types.type_for_size.
11835
11836 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
11837
11838         PR middle-end/45450
11839         * graphite-poly.c (apply_poly_transforms): Disable legality check
11840         after an openscop read.
11841
11842 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
11843
11844         PR middle-end/47691
11845         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
11846         copy_bb_and_scalar_dependences.
11847         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
11848         (graphite_copy_stmts_from_block): Update call to rename_uses.
11849         (copy_bb_and_scalar_dependences): Update call to
11850         graphite_copy_stmts_from_block.
11851         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
11852
11853 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
11854
11855         PR target/49313
11856         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
11857         (__ctzsi2): Result for 0 may be undefined.
11858         (__ctzhi2): Result for 0 may be undefined.
11859         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
11860         (__popcountsi2): Ditto. And don't clobber r26.
11861         (__popcountdi2): Ditto. And don't clobber r27.
11862         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
11863         (parityhi2): New expand.
11864         (paritysi2): New expand.
11865         (popcounthi2): New expand.
11866         (popcountsi2): New expand.
11867         (clzhi2): New expand.
11868         (clzsi2): New expand.
11869         (ctzhi2): New expand.
11870         (ctzsi2): New expand.
11871         (ffshi2): New expand.
11872         (ffssi2): New expand.
11873         (copysignsf3): New insn.
11874         (bswapsi2): New expand.
11875         (*parityhi2.libgcc): New insn.
11876         (*parityqihi2.libgcc): New insn.
11877         (*paritysihi2.libgcc): New insn.
11878         (*popcounthi2.libgcc): New insn.
11879         (*popcountsi2.libgcc): New insn.
11880         (*popcountqi2.libgcc): New insn.
11881         (*popcountqihi2.libgcc): New insn-and-split.
11882         (*clzhi2.libgcc): New insn.
11883         (*clzsihi2.libgcc): New insn.
11884         (*ctzhi2.libgcc): New insn.
11885         (*ctzsihi2.libgcc): New insn.
11886         (*ffshi2.libgcc): New insn.
11887         (*ffssihi2.libgcc): New insn.
11888         (*bswapsi2.libgcc): New insn.
11889
11890 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
11891
11892         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
11893         the mode of symbolic_opreand RTXes.
11894
11895 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
11896
11897         * config/i386/predicates.md (x86_64_movabs_operand): Return false
11898         for pic_32bit_operand RTXes.
11899         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
11900         in DImode.
11901
11902 2011-07-27  Kai Tietz  <ktietz@redhat.com>
11903
11904         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
11905         for 32-bit, too.
11906         (ix86_handle_abi_attribute): Allow function attributes
11907         ms_abi/sysv_abi in 32-bit mode, too.
11908         * doc/extend.texi: Adjust attribute documentation.
11909
11910         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
11911         expression handling.
11912         (and_var_with_comparison_1): Likewise.
11913
11914 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
11915
11916         * params.h (ALLOW_STORE_DATA_RACES): New.
11917         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
11918         * Makefile.in (expr.o): Depend on PARAMS_H.
11919         * machmode.h (get_best_mode): Add argument.
11920         * fold-const.c (optimize_bit_field_compare): Add argument to
11921         get_best_mode.
11922         (fold_truthop): Same.
11923         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
11924         * expr.c (emit_group_store): Same.
11925         (copy_blkmode_from_reg): Same.
11926         (write_complex_part): Same.
11927         (optimize_bitfield_assignment_op): Add argument.
11928         Add argument to get_best_mode.
11929         (get_bit_range): New.
11930         (expand_assignment): Calculate maxbits and pass it down accordingly.
11931         (store_field): New argument.
11932         (expand_expr_real_2): New argument to store_field.  Include params.h.
11933         * expr.h (store_bit_field): New argument.
11934         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
11935         into account maxbits.
11936         * calls.c (store_unaligned_arguments_into_pseudos): New argument
11937         to store_bit_field.
11938         * expmed.c (store_bit_field_1): New argument.  Use it.
11939         (store_bit_field): Same.
11940         (store_fixed_bit_field): Same.
11941         (store_split_bit_field): Same.
11942         (extract_bit_field_1): Pass new argument to get_best_mode.
11943         (extract_bit_field): Same.
11944         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
11945         * doc/invoke.texi: Document parameter allow-store-data-races.
11946
11947 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
11948
11949         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
11950
11951 2011-07-27  Kai Tietz  <ktietz@redhat.com>
11952
11953         * tree-vrp.c (extract_range_from_binary_expr): Remove
11954         TRUTH-binary cases and add new bitwise-cases.
11955         (extract_range_from_assignment): Likewise.
11956         (register_edge_assert_for_1): Likeiwise.
11957         (register_edge_assert_for): Likewise.
11958         (simplify_truth_ops_using_ranges): Likewise.
11959         (simplify_stmt_using_ranges): Likewise.
11960
11961 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
11962
11963         PR target/47372
11964         * config/i386/i386.c (ix86_delegitimize_address): Call
11965         simplify_gen_subreg for PIC with mode of x only if modes of
11966         x and orig_x are different.
11967
11968 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
11969
11970         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
11971         to GC allocated copy of the string.
11972         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
11973         before .debug_line, not after it.
11974
11975 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
11976
11977         PR middle-end/47046
11978         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
11979         evolution_function_is_affine_p on CHREC_RIGHT.
11980
11981 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
11982
11983         * tree-data-ref.c (max_stmt_executions_tree): Do not call
11984         lang_hooks.types.type_for_size.
11985
11986 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
11987
11988         PR middle-end/47653
11989         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
11990         loops using wrapping semantics.
11991
11992 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
11993
11994         PR middle-end/48805
11995         * tree-scalar-evolution.c (instantiate_scev_r): Return
11996         chrec_dont_know for ADDR_EXPR.
11997
11998 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
11999             H.J. Lu  <hongjiu.lu@intel.com>
12000
12001         PR target/47369
12002         PR target/49853
12003         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
12004         if legitimize_tls_address returned operand in wrong mode. Allow
12005         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
12006         if legitimize_pic_address returned operand in wrong mode.
12007
12008 2011-07-26  Martin Jambor  <mjambor@suse.cz>
12009
12010         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
12011         return false for invariants.
12012
12013 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
12014
12015         * config/i386/i386.md (add->lea splitter): Implement using SWI
12016         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
12017         (add->lea zext splitter): Change operand 2 predicate to
12018         x86_64_nonmemory_operand.
12019
12020 2011-07-26  Richard Guenther  <rguenther@suse.de>
12021
12022         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
12023         frequency makes everything hot.
12024
12025 2011-07-26  Richard Guenther  <rguenther@suse.de>
12026
12027         PR tree-optimization/49840
12028         * tree-vrp.c (range_fits_type_p): Properly handle full
12029         double-int precision.
12030
12031 2011-07-26  Martin Jambor  <mjambor@suse.cz>
12032
12033         PR bootstrap/49786
12034         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
12035         counts.
12036         (update_specialized_profile): Likewise.
12037
12038 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
12039             H.J. Lu  <hongjiu.lu@intel.com>
12040
12041         PR target/47381
12042         PR target/49832
12043         PR target/49833
12044         * config/i386/i386.md (i): Change SImode attribute to "e".
12045         (g): Change SImode attribute to "rme".
12046         (di): Change SImode attribute to "nF".
12047         (general_operand): Change SImode attribute to x86_64_general_operand.
12048         (general_szext_operand): Change SImode attribute to
12049         x86_64_szext_general_operand.
12050         (immediate_operand): Change SImode attribute to
12051         x86_64_immediate_operand.
12052         (nonmemory_operand): Change SImode attribute to
12053         x86_64_nonmemory_operand.
12054         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
12055         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
12056         (*lea_1): Use SWI48 mode iterator.
12057         (*lea_1_zext): New insn pattern.
12058         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
12059         (*bt<mode>): Ditto.
12060         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
12061         Update operand constraints.
12062         (addsi_1_zext): Ditto.
12063         (*add<mode>2): Ditto.
12064         (*addsi_3_zext): Ditto.
12065         (*subsi_1_zext): Ditto.
12066         (*subsi_2_zext): Ditto.
12067         (*subsi_3_zext): Ditto.
12068         (*addsi3_carry_zext): Ditto.
12069         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
12070         (*mulsi3_1_zext): Ditto.
12071         (*andsi_1): Ditto.
12072         (*andsi_1_zext): Ditto.
12073         (*andsi_2_zext): Ditto.
12074         (*<any_or:code>si_1_zext): Ditto.
12075         (*<any_or:code>si_2_zext): Ditto.
12076         (*test<mode>_1): Use <general_operand> predicate for operand 1.
12077         (*and<mode>_2): Ditto.
12078         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
12079         (add->lea splitter): Check operand modes in insn constraint.  Extend
12080         operands less than SImode wide to SImode.
12081         (add->lea zext splitter): Do not extend input operands to DImode.
12082         (*lea_general_1): Handle only QImode and HImode operands.
12083         (*lea_general_2): Ditto.
12084         (*lea_general_3): Ditto.
12085         (*lea_general_1_zext): Remove.
12086         (*lea_general_2_zext): Ditto.
12087         (*lea_general_3_zext): Ditto.
12088         (*lea_general_4): Check operand modes in insn constraint.  Extend
12089         operands less than SImode wide to SImode.
12090         (ashift->lea splitter): Ditto.
12091         * config/i386/i386.c (ix86_print_operand_address): Print address
12092         registers with 'q' modifier on 64bit targets.
12093         * config/i386/predicates.md (pic_32bit_opreand): Define as special
12094         predicate.  Reject non-SI and non-DI modes.
12095
12096 2011-07-25  Andrew Pinski  <apinski@cavium.com>
12097
12098         PR tree-opt/49671
12099         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
12100         TREE_THIS_NOTRAP into the inner most MEM_REF.
12101         Always copy TREE_THIS_VOLATILE.
12102         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
12103         arguments are not volatile references.
12104
12105 2011-07-25  Richard Henderson  <rth@redhat.com>
12106
12107         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
12108         * final.c (final_scan_insn): Don't test for it.
12109         (rest_of_clean_state): Likewise.
12110
12111 2011-07-25  Richard Henderson  <rth@redhat.com>
12112
12113         PR debug/49841
12114         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
12115         (emit_frame_save): Likewise.
12116         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
12117         insn onto a dummy blockage insn after the join label.
12118
12119 2011-07-25  Richard Henderson  <rth@redhat.com>
12120
12121         * dwarf2cfi.c (dw_trace_info): Add ID member.
12122         (get_trace_index): Remove.  Change users to use ID member.
12123         (before_next_cfi_note): New.
12124         (connect_traces): Remove unreachable traces before the main loop.
12125         Look across one trace and generate remember/restore_state if needed.
12126
12127 2011-07-25  Richard Henderson  <rth@redhat.com>
12128
12129         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
12130
12131 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
12132
12133         * genattr.c (write_upcase, gen_attr <enum definition writing>):
12134         Move to ...
12135         * genattr-common.c ... here.
12136         (main): Call gen_attr.
12137         * optc-gen.awk: Make generated program include insn-attr-common.h .
12138         * Makefile.in (oprions.o): Depend on insn-attr-common.h
12139
12140 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
12141
12142         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
12143         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
12144         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
12145         m32c_print_operand, m32c_print_operand_address): Remove.
12146         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
12147         Change return type to bool. Change argument type to bool.
12148         (m32c_print_operand, m32c_print_operand_address): Make static.
12149         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
12150         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12151
12152 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12153
12154         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
12155         attributes): Document mmap.
12156
12157 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
12158
12159         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
12160         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
12161         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
12162         mmix_print_operand, mmix_print_operand_address): Remove.
12163         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
12164         Change return type to bool. Change argument type to bool.
12165         (mmix_print_operand, mmix_print_operand_address): Make static.
12166         (mmix_intval, mmix_output_condition): Change 'x' argument type
12167         to const_rtx.
12168         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
12169         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12170
12171 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
12172
12173         PR target/39386
12174         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
12175         shift counter for x << x and x >> x shifts.
12176
12177 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12178
12179         PR target/47124
12180         * config.gcc: Reject *-*-solaris2 configuration.
12181
12182 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
12183
12184         PR tree-optimization/49809
12185         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
12186         gimple_get_lhs instead of gimple_assign_lhs.
12187
12188 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12189
12190         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
12191
12192 2011-07-25  Richard Guenther  <rguenther@suse.de>
12193
12194         PR tree-optimization/49822
12195         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
12196         more.  Make sure to preserve stmts with side-effects.  Properly
12197         handle virtual defs, follow a longer def chain.
12198
12199 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
12200
12201         PR plugins/45348
12202         PR plugins/48425
12203         PR plugins/46577
12204         * Makefile.in: Do not flatten c-family directory when installing
12205         plugin headers.
12206
12207 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
12208
12209         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
12210         original nodes if we are dealing with virtual clones.
12211
12212 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
12213
12214         * common/config/c6x/c6x-common.c: New file.
12215
12216 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
12217
12218         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
12219
12220 2011-07-25  Richard Guenther  <rguenther@suse.de>
12221
12222         PR tree-optimization/49715
12223         * tree-vrp.c: Include expr.h and optabs.h.
12224         (range_fits_type_): New function.
12225         (simplify_float_conversion_using_ranges): Likewise.
12226         (simplify_stmt_using_ranges): Call it.
12227         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
12228         * optabs.c (can_float_p): Export.
12229         * optabs.h (can_float_p): Declare.
12230
12231 2011-07-25  Richard Guenther  <rguenther@suse.de>
12232
12233         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
12234         (get_value_range): For out-of-range SSA names or names created
12235         after propagation return a read-only varying range.
12236         (dump_all_value_ranges): Adjust.
12237         (vrp_initialize): Likewise.
12238         (vrp_finalize): Likewise.
12239
12240 2011-07-24  Richard Henderson  <rth@redhat.com>
12241
12242         PR debug/49831
12243         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
12244         them entirely.
12245
12246 2011-07-24  Richard Henderson  <rth@redhat.com>
12247
12248         PR debug/49825
12249         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
12250         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
12251
12252 2011-07-24  Richard Henderson  <rth@redhat.com>
12253
12254         PR debug/49827
12255         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
12256
12257 2011-07-24  Richard Henderson  <rth@redhat.com>
12258
12259         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
12260         Zero args_size for abnormal edges.  Adjust all callers.
12261
12262 2011-07-24  Richard Henderson  <rth@redhat.com>
12263
12264         PR debug/49825
12265         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
12266
12267 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12268
12269         PR bootstrap/49835
12270         * collect2.c (demangle_flag): Removed.
12271
12272 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
12273
12274         * configure.ac (demangler_in_ld): Default to yes.
12275         * configure: Regenerated.
12276         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
12277         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
12278         --no-demangle options straight through to ld.  When
12279         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
12280         way that has the intended effect on Windows.
12281
12282 2011-07-23  Richard Henderson  <rth@redhat.com>
12283
12284         * dwarf2cfi.c: Include basic-block.h.
12285         (dw_label_info): Remove.
12286         (trace_work_list, trace_index): New.
12287         (remember_row, emit_cfa_remember): Remove.
12288         (dw_trace_info_hash, dw_trace_info_eq): New.
12289         (get_trace_index, get_trace_info): New.
12290         (save_point_p): New.
12291         (free_cfi_row): Remove.
12292         (add_cfi): Do not emit DW_CFA_remember_state.
12293         (cfa_row_equal_p): New.
12294         (barrier_args_size): Remove.
12295         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
12296         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
12297         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
12298         (dwarf2out_cfi_begin_epilogue): Remove.
12299         (dwarf2out_frame_debug_restore_state): Remove.
12300         (connect_traces, create_pseudo_cfg): New.
12301         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
12302         * Makefile.in (dwarf2cfi.o): Update.
12303
12304 2011-07-23  Richard Henderson  <rth@redhat.com>
12305
12306         * dwarf2cfi.c (dw_trace_info): New.
12307         (dw_label_info): New.
12308         (cie_return_save): New.
12309         (cur_trace): New.
12310         (queued_args_size): Rename from args_size.  Update all users.
12311         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
12312         (def_cfa_1): Use cur_trace instead of cfa_*.
12313         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
12314         (clobbers_queued_reg_save, reg_saved_in): Likewise.
12315         (dwarf2out_frame_debug_expr): Likewise.
12316         (create_cie_data): Split out from ...
12317         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
12318
12319 2011-07-23  Richard Henderson  <rth@redhat.com>
12320
12321         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
12322         Update all users to match.
12323         (execute_dwarf2_frame): Free reg_saved_in_data.
12324
12325 2011-07-23  Richard Henderson  <rth@redhat.com>
12326
12327         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
12328         (queued_reg_saves): Don't GTY.  Change to a VEC.
12329         (queue_reg_save): Update to match.
12330         (dwarf2out_flush_queued_reg_saves): Likewise.
12331         (clobbers_queued_reg_save): Likewise.
12332         (reg_saved_in): Likewise.
12333         (execute_dwarf2_frame): Free queued_reg_saves.
12334
12335 2011-07-23  Richard Henderson  <rth@redhat.com>
12336
12337         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
12338
12339 2011-07-23  Richard Henderson  <rth@redhat.com>
12340
12341         * dwarf2cfi.c (add_cfi_args_size): Split out from...
12342         (dwarf2out_args_size): ... here.
12343         (add_cfi_restore): Split out from ...
12344         (dwarf2out_frame_debug_cfa_restore): ... here.
12345         (def_cfa_0): Split out from ...
12346         (def_cfa_1): ... here.
12347         (cfi_oprnd_equal_p, cfi_equal_p): New.
12348         (change_cfi_row): New.
12349         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
12350         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
12351         (output_cfis): Remove.
12352         * dwarf2out.c (output_fde): Simplify output_cfi loop.
12353         (dwarf2out_switch_text_section): Don't call output_cfis.
12354         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
12355         * dwarf2out.h: Update decls.
12356         (enum dw_val_class): Add dw_val_class_none.
12357
12358 2011-07-23  Richard Henderson  <rth@redhat.com>
12359
12360         * dwarf2cfi.c (update_row_reg_save): New.
12361         (dwarf2out_frame_debug_cfa_expression): Use it.
12362         (dwarf2out_frame_debug_cfa_restore): Likewise.
12363         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
12364
12365 2011-07-23  Richard Henderson  <rth@redhat.com>
12366
12367         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
12368
12369 2011-07-23  Richard Henderson  <rth@redhat.com>
12370
12371         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
12372         (cie_cfi_row): New.
12373         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
12374         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
12375         (cur_row, remember_row): New.
12376         (def_cfa_1): Use cur_row instead of the old_* variables.
12377         (dwarf2out_frame_debug_restore_state): Similarly.
12378         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
12379         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
12380         (dwarf2out_frame_debug_adjust_cfa): Likewise.
12381         (dwarf2out_frame_debug_cfa_offset): Likewise.
12382         (dwarf2out_frame_debug_expr): Likewise.
12383         (execute_dwarf2_frame): Set up cur_row.
12384         * dwarf2out.h (struct cfa_loc): Mark for GTY.
12385
12386 2011-07-23  Richard Henderson  <rth@redhat.com>
12387
12388         * basic-block.h (EDGE_PRESERVE): New.
12389         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
12390         * bb-reorder.c: Include except.h.
12391         (fix_up_crossing_landing_pad): New.
12392         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
12393         landing pads in the right partition.  Duplicate as necessary.
12394         (partition_hot_cold_basic_blocks): Fix up DF info after
12395         duplicating landing pads.
12396         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
12397         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
12398         is set properly.  Validate that EH edges are not CROSSING.
12399         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
12400         (dw2_build_landing_pads): ... here.
12401         (convert_to_eh_region_ranges): Remove code to fixup crossing
12402         landing pads.
12403         * except.h (expand_dw2_landing_pad_for_region): Declare.
12404         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
12405
12406 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
12407
12408         PR target/49816
12409         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
12410
12411 2011-07-22  Jason Merrill  <jason@redhat.com>
12412
12413         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
12414
12415 2011-07-22  Richard Henderson  <rth@redhat.com>
12416
12417         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
12418
12419 2011-07-22  Richard Henderson  <rth@redhat.com>
12420
12421         * jump.c (maybe_propagate_label_ref): Split out of...
12422         (mark_all_labels): ... here.  Do not attempt label_ref
12423         propagation while in cfglayout mode.
12424
12425 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
12426
12427         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
12428         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
12429         (dwarf_attr_name): Handle DW_AT_GNU_macros.
12430         (dwarf2out_define): If the vector is empty and
12431         lineno is 0, emit a dummy entry first.
12432         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
12433         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
12434         optimize_macinfo_range): New functions.
12435         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
12436         mergeable, optimize longer strings using
12437         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
12438         optimize longer sequences of define/undef ops from headers
12439         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
12440         emit a section headers.
12441         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
12442         and macinfo_section_label to DEBUG_MACRO_SECTION
12443         resp. DEBUG_MACRO_SECTION_LABEL.
12444         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
12445         instead of DW_AT_macro_info.
12446
12447         PR other/32998
12448         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
12449         options.
12450         * dwarf2out.c: Include opts.h.
12451         (dchar_p): New typedef.  Define heap VEC for it.
12452         (producer_string): New variable.
12453         (gen_producer_string): New function.
12454         (gen_compile_unit_die): Use it.
12455         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
12456         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
12457         * doc/invoke.texi: Document -grecord-gcc-switches and
12458         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
12459         to -frecord-gcc-switches description.
12460
12461 2011-07-22  Jason Merrill  <jason@redhat.com>
12462
12463         PR c++/30112
12464         * c-decl.c (c_linkage_bindings): Define.
12465
12466 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
12467
12468         PR debug/49815
12469         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
12470
12471 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
12472
12473         * config/i386/i386.c (ix86_option_override_internal): Disallow
12474         MS ABI in x32 mode.
12475         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
12476         only for TARGET_LP64.
12477         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
12478
12479 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
12480
12481         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
12482         avoid warnings when GCC is built with a C++ compiler.
12483
12484 2011-07-22  Martin Jambor  <mjambor@suse.cz>
12485
12486         PR lto/49796
12487         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
12488         if decl node is in another partition, call cgraph_get_node only once.
12489
12490 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
12491
12492         * config.gcc (x86_64-*-linux*): Set
12493         default_gnu_indirect_function to yes.
12494
12495 2011-07-22  Richard Guenther  <rguenther@suse.de>
12496
12497         PR tree-optimization/45819
12498         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
12499         preserve volatile and notrap flags.
12500
12501 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12502             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12503
12504         PR bootstrap/49794
12505         * configure.ac: Test AM_ICONV with CXX.
12506         * configure: Regenerate.
12507         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
12508
12509 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12510
12511         PR bootstrap/49797
12512         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
12513         (set_cloog_options): Use it.
12514
12515 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
12516
12517         PR c++/49756
12518         * gcc.c (main): Call stack_limit_increase (64MB).
12519         * toplev.c (toplev_main): Likewise.
12520
12521 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
12522
12523         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
12524         instead of force_reg.
12525
12526 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
12527
12528         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
12529         needed and use force_reg after convert.
12530         (ix86_expand_call): Likewise.
12531         (ix86_expand_special_args_builtin): Likewise.
12532         (ix86_expand_builtin): Likewise.
12533
12534 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12535
12536         PR middle-end/47654
12537         PR middle-end/49649
12538         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
12539         in parameter.  Initialize v1 and v2 based on the values returned
12540         by clast_name_to_lb_ub.
12541         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
12542         values.
12543         (type_for_clast_bin): Same.
12544         (type_for_clast_expr): Same.
12545         (type_for_clast_eq): Update calls to type_for_clast_expr.
12546         (type_for_clast_for): Same.
12547         (build_iv_mapping): Same.
12548         * graphite-ppl.h (value_min): New.
12549
12550 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12551
12552         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
12553         types whenever possible.
12554
12555 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12556
12557         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
12558         and ub fields.
12559         (new_clast_name_index): Add lb and ub parameters.
12560         (free_clast_name_index): New.
12561         (clast_name_to_lb_ub): New.
12562         (save_clast_name_index): Add lb and ub parameters.
12563         (compute_bounds_for_param): New.
12564         (type_for_level): Removed.
12565         (type_for_clast_for): Removed level parameter.  Do not call
12566         type_for_level.
12567         (graphite_create_new_loop): Store the lb and ub for the clast_name
12568         of the iterator of the loop that has been generated.
12569         (graphite_create_new_loop_guard): Remove parameter level.
12570         (create_params_index): Store the lb and ub of each parameter.
12571         (gloog): Use free_clast_name_index.  Pass to create_params_index
12572         the current scop.
12573
12574 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12575
12576         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
12577         (max_precision_type): Inline max_signed_precision_type.
12578         (type_for_clast_red): Use max_precision_type.
12579         (type_for_clast_bin): Same.
12580         (type_for_clast_for): Same.
12581
12582 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12583
12584         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
12585         type_for_interval.
12586         (gcc_type_for_value): Renamed type_for_value.
12587         (gcc_type_for_clast_term): Renamed type_for_clast_term.
12588         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
12589         (gcc_type_for_clast_red): Renamed type_for_clast_red.
12590         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
12591         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
12592         (graphite_translate_clast_equation): Update calls.
12593         (compute_type_for_level): Renamed type_for_level.
12594         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
12595         (build_iv_mapping): Update calls.
12596         (graphite_create_new_loop_guard): Same.
12597
12598 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12599
12600         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
12601         comment.
12602
12603 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12604
12605         * graphite-clast-to-gimple.c (struct ivs_params): New.
12606         (clast_name_to_gcc): Use ivs_params to pass around parameters.
12607         (clast_to_gcc_expression): Same.
12608         (clast_to_gcc_expression_red): Same.
12609         (gcc_type_for_clast_term): Same.
12610         (gcc_type_for_clast_expr): Same.
12611         (gcc_type_for_clast_red): Same.
12612         (gcc_type_for_clast_bin): Same.
12613         (gcc_type_for_clast_eq): Same.
12614         (graphite_translate_clast_equation): Same.
12615         (graphite_create_guard_cond_expr): Same.
12616         (graphite_create_new_guard): Same.
12617         (graphite_create_new_loop): Same.
12618         (build_iv_mapping): Same.
12619         (translate_clast_user): Same.
12620         (graphite_create_new_loop_guard): Same.
12621         (translate_clast): Same.
12622         (translate_clast_for_loop): Same.
12623         (translate_clast_for): Same.
12624         (translate_clast_guard): Same.
12625         (initialize_cloog_names): Fix typo.
12626         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
12627
12628 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12629
12630         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
12631         (new_clast_name_index): Add level parameter.
12632         (clast_name_to_level): New.
12633         (save_clast_name_index): Add level parameter.
12634         (newivs_to_depth_to_newiv): Removed.
12635         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
12636         (graphite_create_new_loop): Add level parameter.  Pass level to
12637         save_clast_name_index.
12638         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
12639         (create_params_index): Pass level to save_clast_name_index.
12640
12641 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12642
12643         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
12644         recompute type, lb, and ub.  Get them from...
12645         (graphite_create_new_loop_guard): ...here.  Pass in parameter
12646         pointers to type, lb, and ub.
12647         (translate_clast_for_loop): Update function calls.
12648         (translate_clast_for): Same.
12649
12650 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
12651
12652         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
12653         psct_dynamic_dim.
12654         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
12655         (gcc_type_for_iv_of_clast_loop): Update use of level.
12656         (gloog): Start counting nesting level from 0.
12657         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
12658         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
12659         psct_dynamic_dim on level.
12660
12661 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
12662
12663         * config/i386/i386.c (ix86_legitimize_address): Convert to
12664         Pmode if needed.
12665
12666 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
12667
12668         * config/i386/i386.c (function_value_64): Always return pointers
12669         in Pmode.
12670         (ix86_promote_function_mode): New.
12671         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
12672
12673 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12674
12675         PR tree-optimization/49749
12676         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
12677         remove no-longer-used maxrank variable.
12678
12679 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
12680
12681         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
12682
12683 2011-07-21  Jason Merrill  <jason@redhat.com>
12684
12685         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
12686         * recog.h (struct insn_data_d): Check it instead of
12687         HAVE_DESIGNATED_INITIALIZERS.
12688         * genoutput.c (output_insn_data): Likewise.
12689
12690 2011-07-21  Richard Guenther  <rguenther@suse.de>
12691
12692         PR tree-optimization/49770
12693         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
12694         valueized any operand.  Renamed from ...
12695         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
12696         (valueize_shared_reference_ops_from_ref): Return whether we
12697         valueized any operand.
12698         (vn_reference_lookup): Only when we valueized any operand
12699         use the valueized reference for alias analysis.  Do not preserve
12700         the original reference tree in this case.
12701
12702 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
12703
12704         * config/i386/i386.c (ix86_decompose_address): Reject all but
12705         register operands and subregs of DImode hard registers in index.
12706
12707 2011-07-21  Kai Tietz  <ktietz@redhat.com>
12708
12709         * fold-const.c (fold_unary_loc): Preserve indirect
12710         comparison cast to none-boolean type.
12711         * tree-ssa.c (useless_type_conversion_p): Preserve cast
12712         from/to boolean-type.
12713         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
12714         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
12715         * tree-cfg.c (verify_gimple_comparison): Check result
12716         type of comparison expression.
12717         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
12718         of condition result and disallow type-cast sinking into comparison.
12719
12720 2011-07-21  Richard Guenther  <rguenther@suse.de>
12721
12722         * tree-ssa-forwprop.c (combine_conversions): Return whether
12723         we have to run cfg-cleanup.  Properly remove dead stmts.
12724         (ssa_forward_propagate_and_combine): Adjust.
12725
12726 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
12727
12728         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
12729
12730 2011-07-21  Kai Tietz  <ktietz@redhat.com>
12731
12732         * tree-ssa-propagate.c (substitute_and_fold): Use
12733         do_dce flag to deside, if BB's statements are scanned
12734         in last to first, or first to last order.
12735
12736 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
12737
12738         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
12739
12740 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
12741             Uros Bizjak  <ubizjak@gmail.com>
12742             Richard Henderson  <rth@redhat.com>
12743
12744         * config/i386/constraints.md (w): New.
12745
12746         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
12747         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
12748
12749         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
12750         instead of TARGET_64BIT.
12751
12752         * config/i386/i386.md (indirect_jump): Replace
12753         nonimmediate_operand with indirect_branch_operand.
12754         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
12755         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
12756         Convert operand 0 to Pmode for x32 if not PIC.
12757         (*tablejump_1): Replace nonimmediate_operand with
12758         indirect_branch_operand.  Replace constraint "m" with "w".
12759         (*call_vzeroupper): Replace constraint "m" with "w".
12760         (*call): Likewise.
12761         (*call_rex64_ms_sysv_vzeroupper): Likewise.
12762         (*call_rex64_ms_sysv): Likewise.
12763         (*call_value_vzeroupper): Likewise.
12764         (*call_value): Likewise.
12765         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
12766         (*call_value_rex64_ms_sysv): Likewise.
12767         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
12768
12769         * config/i386/predicates.md (indirect_branch_operand): New.
12770         (call_insn_operand): Support x32.
12771
12772 2011-07-20  Michael Eager  <eager@eagercon.com>
12773
12774         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
12775
12776 2011-07-20  Richard Henderson  <rth@redhat.com>
12777
12778         * cfg.c (dump_bb_info): Dump basic_block->flags.
12779         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
12780
12781 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
12782
12783         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
12784         of DImode hard registers in index.
12785         (ix86_legitimate_address_p): Allow subregs of base and index to span
12786         more than a word.  Assert that subregs of base and index satisfy
12787         register_no_elim_operand predicates.  Reject addresses where
12788         base and index have different modes.
12789
12790 2011-07-20  Robert Millan  <rmh@gnu.org>
12791
12792         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
12793
12794 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12795
12796         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
12797         removing now-unnecessary assignment.
12798
12799 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12800
12801         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
12802         memory address space to the type's address space.
12803
12804 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
12805
12806         PR target/36467
12807         PR target/49687
12808         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
12809         and expand appropriately if there is a CONST_INT in operand2.
12810         (usmulqihi3): New insn.
12811         (*sumulqihi3): New insn.
12812         (*osmulqihi3): New insn.
12813         (*oumulqihi3): New insn.
12814         (*muluqihi3.uconst): New insn_and_split.
12815         (*muluqihi3.sconst): New insn_and_split.
12816         (*mulsqihi3.sconst): New insn_and_split.
12817         (*mulsqihi3.uconst): New insn_and_split.
12818         (*mulsqihi3.oconst): New insn_and_split.
12819         (*ashifthi3.signx.const): New insn_and_split.
12820         (*ashifthi3.signx.const7): New insn_and_split.
12821         (*ashifthi3.zerox.const): New insn_and_split.
12822         (mulsqihi3): New insn.
12823         (muluqihi3): New insn.
12824         (muloqihi3): New insn.
12825         * config/avr/predicates.md (const_2_to_7_operand): New.
12826         (const_2_to_6_operand): New.
12827         (u8_operand): New.
12828         (s8_operand): New.
12829         (o8_operand): New.
12830         (s9_operand): New.
12831         (register_or_s9_operand): New.
12832
12833 2011-07-20  Kai Tietz  <ktietz@redhat.com>
12834
12835         * builtins.c (fold_builtin_expect): See through the cast
12836         from truthvalue_type_node to long.
12837
12838 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
12839
12840         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
12841         where we can use them from the standard and altivec instruction
12842         sets, instead of always using the 3 operand VSX forms that require
12843         the destination to overlap one of the inputs.
12844         (vsx_fms*): Ditto.
12845         (vsx_fnma*): Ditto.
12846         (vsx_fnms*): Ditto.
12847
12848         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
12849         for DF types.
12850         (fmsdf4_fpr): Ditto.
12851         (nfmadf4_fpr): Ditto.
12852         (nfmsdf4_fpr): Ditto.
12853
12854 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
12855
12856         * genrecog.c (make_insn_sequence): Correct position numbering
12857         when filtering out match_scratch and match_dup.
12858
12859 2011-07-20  Richard Guenther  <rguenther@suse.de>
12860
12861         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
12862         against already removed statements.
12863         (forward_propagate_into_comparison): Remove dead defining stmts.
12864         (forward_propagate_into_gimple_cond): Likewise.
12865         (forward_propagate_into_cond): Simplify.
12866         (ssa_forward_propagate_and_combine): Handle changed cfg from
12867         forward_propagate_into_comparison.
12868         * tree-ssa-phiopt.c (conditional_replacement): Use proper
12869         locations for newly built statements.
12870
12871 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
12872
12873         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
12874
12875 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12876
12877         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
12878         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
12879
12880 2011-07-20  Richard Guenther  <rguenther@suse.de>
12881
12882         PR middle-end/18908
12883         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
12884         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
12885         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
12886
12887 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
12888
12889         * config/frv/frv.c (frv_register_move_cost): Define explicitly
12890         costs for subclasses of GR_REGS.
12891
12892 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
12893
12894         PR target/49780
12895         * config/i386/predicates.md (no_seg_addres_operand): No more special.
12896         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
12897         of DImode hard registers in base.
12898         (ix86_legitimate_address_p): Allow SImode and DImode base and index
12899         registers.
12900
12901 2011-07-20  Richard Guenther  <rguenther@suse.de>
12902
12903         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
12904         (unify_nodes): Deal with that.
12905         (solve_graph): Likewise.
12906
12907 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
12908
12909         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
12910         canonicalize left operand from ZERO_EXTEND to AND.
12911
12912 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
12913
12914         * target.def (class_max_nregs): New hook.
12915         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
12916         * doc/tm.texi: Regenerate.
12917         * targhooks.c (default_class_max_nregs): New function.
12918         * targhooks.h (default_class_max_nregs): Declare.
12919         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
12920         x_ira_reg_class_min_nregs arrays to unsigned char.
12921         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
12922         hook instead of CLASS_MAX_NREGS macro.
12923         * reginfo.c (restore_register_info): Ditto.
12924         * ira-conflicts.c (process_regs_for_copy): Use
12925         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
12926         Change type rclass and aclass vars to reg_class_t.
12927         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
12928         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
12929         reg_class_t.
12930         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
12931         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
12932
12933         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
12934         * config/i386/i386.c (ix86_class_max_nregs): New function.
12935         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
12936         instead of CLASS_MAX_NREGS macro.
12937         (TARGET_CLASS_MAX_NREGS): Define.
12938         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
12939         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
12940         * config/avr/avr.c (class_max_nregs): Remove function.
12941         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
12942         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
12943         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
12944         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
12945         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
12946         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
12947         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
12948         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
12949         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
12950         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
12951         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
12952         * config/score/score.h (CLASS_MAX_NREGS): Remove.
12953         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
12954         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
12955         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
12956
12957 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
12958
12959         * cif-code.def (OVERWRITABLE): Fix typo and move around.
12960         (TARGET_OPTIMIZATION_MISMATCH): Delete.
12961         (EH_PERSONALITY): Fix typo.
12962         (NON_CALL_EXCEPTIONS): Fix message.
12963         (OPTIMIZATION_MISMATCH): Adjust message.
12964         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
12965
12966 2011-07-19  Ian Lance Taylor  <iant@google.com>
12967
12968         * doc/install.texi (Configuration): Document
12969         --enable-build-poststage1-with-cxx.
12970
12971 2011-07-19  Robert Millan  <rmh@gnu.org>
12972
12973         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
12974         (GLIBC_DYNAMIC_LINKER): Remove.
12975
12976         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
12977         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
12978         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
12979         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
12980         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
12981         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
12982
12983         * config/mips/linux.h: Remove everything except for ...
12984         (GLIBC_DYNAMIC_LINKER): ... this macro.
12985
12986         * config/mips/linux64.h: Remove everything except for ...
12987         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
12988         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
12989         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
12990         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
12991         (GNU_USER_LINK_EMULATIONN32): New macros.
12992
12993         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
12994         Use the new headers.
12995
12996 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
12997
12998         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
12999         Add offset_known_p and size_known_p fields.
13000         (MEM_OFFSET_KNOWN_P): Update accordingly.
13001         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
13002         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
13003         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
13004         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
13005         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
13006         (init_emit_regs): Likewise.
13007
13008 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
13009
13010         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
13011         (MEM_OFFSET): Change from returning an rtx to returning a
13012         HOST_WIDE_INT.
13013         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
13014         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
13015         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
13016         (clear_mem_offset): Declare.
13017         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
13018         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
13019         MEM_OFFSET to get a HOST_WIDE_INT offset.
13020         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
13021         (adjust_offset_for_component_ref): Take a bool "known_p"
13022         parameter and a HOST_WIDE_INT "offset" parameter.
13023         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
13024         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
13025         than an rtx.  Use clear_mem_offset to clear the offset.
13026         * cfgcleanup.c (merge_memattrs): Likewise.
13027         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
13028         * function.c (assign_parm_find_stack_rtl): Likewise.
13029         (assign_parm_setup_stack): Likewise.
13030         * print-rtl.c (print_rtx): Likewise.
13031         * reload.c (find_reloads_subreg_address): Likewise.
13032         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
13033         * var-tracking.c (INT_MEM_OFFSET): Likewise.
13034         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
13035         (get_mem_align_offset): Likewise.
13036         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
13037         (clear_mem_offset): New function.
13038         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
13039         offset rather than an rtx.  Assume both the expressio and offset
13040         are available.
13041         (r10k_needs_protection_p_1): Update accordingly, checking the
13042         expression and offset availability here instead.
13043
13044 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
13045
13046         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
13047         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
13048         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
13049         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
13050         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
13051         (clear_mem_size): Declare.
13052         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
13053         (clear_mem_size): New function.
13054         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
13055         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
13056         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
13057         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
13058         to clear the size.
13059         (nonoverlapping_memrefs_p): Likewise.
13060         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
13061         (expand_builtin_init_trampoline): Likewise.
13062         * calls.c (compute_argument_addresses): Likewise.
13063         * cfgcleanup.c (merge_memattrs): Likewise.
13064         * dce.c (find_call_stack_args): Likewise.
13065         * dse.c (record_store, scan_insn): Likewise.
13066         * dwarf2out.c (dw_sra_loc_expr): Likewise.
13067         * expr.c (emit_block_move_hints): Likewise.
13068         * function.c (assign_parm_find_stack_rtl): Likewise.
13069         * print-rtl.c (print_rtx): Likewise.
13070         * reload.c (find_reloads_subreg_address): Likewise.
13071         * rtlanal.c (may_trap_p_1): Likewise.
13072         * var-tracking.c (track_expr_p): Likewise.
13073         * varasm.c (assemble_trampoline_template): Likewise.
13074         * config/arm/arm.c (arm_print_operand): Likewise.
13075         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
13076         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
13077         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
13078         (expand_constant_setmem_prologue): Likewise.
13079         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
13080         * config/rs6000/rs6000.c (expand_block_move): Likewise.
13081         (adjacent_mem_locations): Likewise.
13082         * config/s390/s390.c (s390_expand_setmem): Likewise.
13083         (s390_expand_insv): Likewise.
13084         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
13085         (*extendqi<mode>2_short_displ): Likewise.
13086         * config/sh/sh.c (expand_block_move): Likewise.
13087         * config/sh/sh.md (extv, extzv): Likewise.
13088
13089 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
13090
13091         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
13092         (mem_attrs_htab_eq): ...here.
13093         (find_mem_attrs): Replace with...
13094         (set_mem_attrs): ...this function.  Take a mem_attrs structure
13095         rather than individual fields.
13096         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
13097         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
13098         (set_mem_size, change_address, adjust_address_1, offset_address)
13099         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
13100         Update accordingly.
13101
13102 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
13103
13104         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
13105         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
13106         Provide a dummy definition of MEM_ADDR_SPACE for generators.
13107         (target_rtl): Add x_mode_mem_attrs.
13108         (mode_mem_attrs): New macro.
13109         (get_mem_attrs): New function.
13110         * emit-rtl.c (get_mem_attrs): Rename to...
13111         (find_mem_attrs): ...this.
13112         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
13113         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
13114         (set_mem_size, change_address, adjust_address_1, offset_address)
13115         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
13116         Update accordingly.
13117         (init_emit_regs): Initialize mode_mem_attrs.
13118
13119 2011-07-19  Richard Guenther  <rguenther@suse.de>
13120
13121         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
13122         TRUTH_*_EXPR handling.
13123         * tree-ssa-operands.c (get_expr_operands): Likewise.
13124         * tree-ssa-pre.c (fully_constant_expression): Likewise.
13125         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
13126         Likewise.
13127         (is_and_or_or): Likewise.
13128         (is_norm_cond_subset_of): Likewise.
13129
13130 2011-07-19  Richard Guenther  <rguenther@suse.de>
13131
13132         * tree.h (fold_build_pointer_plus_loc): New helper function.
13133         (fold_build_pointer_plus_hwi_loc): Likewise.
13134         (fold_build_pointer_plus): Define.
13135         (fold_build_pointer_plus_hwi): Likewise.
13136         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
13137         (fold_builtin_memory_op): Likewise.
13138         (fold_builtin_stpcpy): Likewise.
13139         (fold_builtin_memchr): Likewise.
13140         (fold_builtin_strstr): Likewise.
13141         (fold_builtin_strchr): Likewise.
13142         (fold_builtin_strrchr): Likewise.
13143         (fold_builtin_strpbrk): Likewise.
13144         (fold_builtin_strcat): Likewise.
13145         (expand_builtin_memory_chk): Likewise.
13146         (fold_builtin_memory_chk): Likewise.
13147         * c-typeck.c (build_unary_op): Likewise.
13148         * cgraphunit.c (thunk_adjust): Likewise.
13149         * fold-const.c (build_range_check): Likewise.
13150         (fold_binary_loc): Likewise.
13151         * omp-low.c (extract_omp_for_data): Likewise.
13152         (expand_omp_for_generic): Likewise.
13153         (expand_omp_for_static_nochunk): Likewise.
13154         (expand_omp_for_static_chunk): Likewise.
13155         * tree-affine.c (add_elt_to_tree): Likewise.
13156         * tree-data-ref.c (split_constant_offset_1): Likewise.
13157         * tree-loop-distribution.c (generate_memset_zero): Likewise.
13158         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
13159         * tree-predcom.c (ref_at_iteration): Likewise.
13160         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
13161         (add_to_parts): Likewise.
13162         (create_mem_ref): Likewise.
13163         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
13164         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
13165         (number_of_iterations_le): Likewise.
13166         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
13167         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
13168         (vect_create_addr_base_for_vector_ref): Likewise.
13169         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
13170         (vect_create_cond_for_alias_checks): Likewise.
13171         * tree-vrp.c (extract_range_from_assert): Likewise.
13172         * config/alpha/alpha.c (alpha_va_start): Likewise.
13173         (alpha_gimplify_va_arg_1): Likewise.
13174         * config/i386/i386.c (ix86_va_start): Likewise.
13175         (ix86_gimplify_va_arg): Likewise.
13176         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
13177         * config/mep/mep.c (mep_expand_va_start): Likewise.
13178         (mep_gimplify_va_arg_expr): Likewise.
13179         * config/mips/mips.c (mips_va_start): Likewise.
13180         (mips_gimplify_va_arg_expr): Likewise.
13181         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
13182         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
13183         (rs6000_gimplify_va_arg): Likewise.
13184         * config/s390/s390.c (s390_va_start): Likewise.
13185         (s390_gimplify_va_arg): Likewise.
13186         * config/sh/sh.c (sh_va_start): Likewise.
13187         (sh_gimplify_va_arg_expr): Likewise.
13188         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
13189         * config/spu/spu.c (spu_va_start): Likewise.
13190         (spu_gimplify_va_arg_expr): Likewise.
13191         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
13192         Likewise.
13193         (xstormy16_gimplify_va_arg_expr): Likewise.
13194         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
13195         (xtensa_gimplify_va_arg_expr): Likewise.
13196
13197 2011-07-19  Richard Guenther  <rguenther@suse.de>
13198
13199         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
13200         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
13201         handling.
13202
13203         PR middle-end/18908
13204         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
13205         result of BIT_*_EXPR to bitfield precision.
13206
13207 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
13208
13209         PR tree-optimization/49742
13210         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
13211         as a potential write.
13212
13213 2011-07-19  Richard Guenther  <rguenther@suse.de>
13214
13215         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
13216         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
13217         (forward_propagate_comparison): Simplify, remove obsolete code.
13218
13219 2011-07-19  Richard Guenther  <rguenther@suse.de>
13220
13221         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
13222         BIT_XOR_EXPR, same as the RTL expander does.
13223         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
13224         (verify_gimple_assign_unary): Likewise.
13225         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
13226         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
13227         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
13228
13229 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
13230
13231         PR tree-optimization/49768
13232         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
13233         if offset is smaller than bitoffset, but offset+size is bigger
13234         than bitoffset.
13235
13236 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
13237
13238         PR tree-optimization/49771
13239         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
13240         zero step, set segment length to the size of the data-ref's type.
13241
13242 2011-07-18  Martin Jambor  <mjambor@suse.cz>
13243
13244         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
13245         comments.
13246         (ipcp_values_pool): Declare.
13247         (ipcp_sources_pool): Likewise.
13248         (ipcp_lattice): Changed to forward declaration.
13249         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
13250         cannot_devirtualize.
13251         (ipa_node_params): New fields descriptors, lattices, known_vals,
13252         clone_for_all_contexts and node dead, removed fields params and
13253         count_scale.
13254         (ipa_set_param_count): Removed.
13255         (ipa_get_param_count): Made to work with descriptors vector.
13256         (ipa_get_param): Updated.
13257         (ipa_param_cannot_devirtualize_p): Removed.
13258         (ipa_param_types_vec_empty): Likewise.
13259         (ipa_set_param_used): New function.
13260         (ipa_get_param_used): Updated to use descriptors vector.
13261         (ipa_func_list): Removed.
13262         (ipa_init_func_list): Removed declaration.
13263         (ipa_push_func_to_list_1): Likewise.
13264         (ipa_pop_func_from_list): Likewise.
13265         (ipa_push_func_to_list): Removed.
13266         (ipa_lattice_from_jfunc): Remove declaration.
13267         (ipa_get_jf_pass_through_result): Declare.
13268         (ipa_get_jf_ancestor_result): Likewise.
13269         (ipa_value_from_jfunc): Likewise.
13270         (ipa_get_lattice): Update.
13271         (ipa_lat_is_single_const): New function.
13272         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
13273         (ipa_init_func_list): Likewise.
13274         (ipa_pop_func_from_list): Likewise.
13275         (ipa_get_param_decl_index): Fix coding style.
13276         (count_formal_params): Removed.
13277         (count_formal_params_1): Renamed to count_formal_params.
13278         (ipa_populate_param_decls): Update to use descriptors vector.
13279         (ipa_initialize_node_params): Likewise.
13280         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
13281         (ipa_analyze_params_uses): Likewise.
13282         (ipa_free_node_params_substructures): Likewise and free also lattices
13283         and known values.
13284         (duplicate_array): Removed.
13285         (ipa_edge_duplication_hook): Add the new edge to the list of edge
13286         clones.
13287         (ipa_node_duplication_hook): Update to use new lattices.
13288         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
13289         (ipa_free_all_structures_after_iinln): Likewise.
13290         (ipa_write_node_info): Update to use new lattices.
13291         (ipa_read_node_info): Likewise.
13292         (ipa_get_jf_pass_through_result): New function.
13293         (ipa_get_jf_ancestor_result): Likewise.
13294         (ipa_value_from_jfunc): Likewise.
13295         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
13296         * ipa-cp.c: Reimplemented.
13297         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
13298         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
13299         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
13300         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
13301         * doc/invoke.texi (devirt-type-list-size): Removed description.
13302         (ipa-cp-value-list-size): Added description.
13303
13304 2011-07-18  Richard Henderson  <rth@redhat.com>
13305
13306         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
13307         before calling create_basic_block.
13308
13309 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
13310
13311         PR middle-end/49675
13312         * tree.c (build_common_builtin_nodes): Register
13313         __builtin_return_address, __cyg_profile_func_enter
13314         and __cyg_profile_func_exit.
13315
13316 2011-07-18  Richard Henderson  <rth@redhat.com>
13317
13318         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
13319         (add_labels_and_missing_jumps): ... here.
13320         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
13321
13322 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
13323
13324         PR target/47744
13325         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
13326         of DImode hard registers in PLUS address chains.
13327
13328 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13329
13330         PR bootstrap/49769
13331         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
13332         (alpha*-*-freebsd*): Likewise.
13333         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
13334         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
13335         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
13336         crtprec80.o, crtfastmath.o to extra_parts for all targets.
13337         (ia64*-*-elf*): Remove extra_parts.
13338         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
13339         (sparc64-*-linux*): Likewise.
13340         (sparc64-*-freebsd*): Likewise.
13341
13342         Revert:
13343         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
13344         (ia64*-*-linux*): Likewise.
13345         (mips64*-*-linux*): Likewise.
13346         (mips*-*-linux*): Likewise.
13347
13348 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
13349
13350         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
13351
13352 2011-07-18  Richard Guenther  <rguenther@suse.de>
13353
13354         * gimplify.c (gimplify_expr): Use input_location, not saved_location
13355         when building new trees.
13356
13357 2011-07-18  Richard Guenther  <rguenther@suse.de>
13358
13359         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
13360         expansion result to bitfield precision if required.
13361
13362 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13363
13364         * config.gcc (i[3456x]86-*-netware*): Remove.
13365
13366         * gthr-nks.h: Remove.
13367         * configure.ac (enable_threads): Remove nks.
13368         * configure: Regenerate.
13369
13370         * config/i386/i386.c (ix86_encode_section_info): Remove netware
13371         reference.
13372         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
13373         <netware.h> reference.
13374
13375         * config/i386/netware-libgcc.c,
13376         gcc/config/i386/netware-libgcc.def,
13377         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
13378         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
13379         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
13380         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
13381
13382         * doc/extend.texi (Function Attributes,
13383         callee_pop_aggregate_return): Remove i?86-netware reference.
13384         * doc/install.texi (Configuration, --enable-threads): Remove nks.
13385
13386 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13387
13388         PR target/49746
13389         Revert:
13390         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13391
13392         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
13393         patterns.
13394
13395 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
13396
13397         PR middle-end/49732
13398         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
13399
13400 2011-07-16  Matthias Klose  <doko@ubuntu.com>
13401
13402         * doc/install.texi: Document --enable-static-libjava.
13403
13404 2011-07-15  Richard Henderson  <rth@redhat.com>
13405
13406         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
13407         Replace all three arguments by returning a VEC of edges.
13408         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
13409         pointers and counts.
13410         (fix_edges_for_rarely_executed_code): Merge ...
13411         (rest_of_handle_partition_blocks): ... into...
13412         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
13413         any work was performed.
13414         (pass_partition_blocks): Clear todo_flags_finish.
13415
13416 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
13417             Jakub Jelinek  <jakub@redhat.com>
13418             Jonathan Wakely  <jwakely.gcc@gmail.com>
13419
13420         PR libstdc++/49745
13421         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
13422         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
13423
13424 2011-07-15  Jason Merrill  <jason@redhat.com>
13425
13426         PR testsuite/49741
13427         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
13428         rather than --tool_opts.
13429
13430 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
13431
13432         * doc/plugins.texi (Building GCC plugins): gengtype needs its
13433         corresponding gtype.state.
13434
13435 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13436
13437         PR target/49723
13438         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
13439
13440 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
13441
13442         PR target/48220
13443         * doc/md.texi (Standard Names): Document window_save.
13444         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
13445         expand_debug_expr and expand_debug_source_expr.  If the target has
13446         a window_save instruction, adjust the ENTRY_VALUE_EXP.
13447         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
13448         SSA_NAME_VAR is a parameter.
13449         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
13450         * var-tracking.c (parm_reg_t): New type and associated vector type.
13451         (windowed_parm_regs): New variable.
13452         (adjust_insn): If the target has a window_save instruction and this
13453         is the instruction, make its effect on parameter registers explicit.
13454         (next_non_note_insn_var_location): New function.
13455         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
13456         (vt_add_function_parameter): If the target has a window_save insn,
13457         adjust the incoming RTL and record that in windowed_parm_regs.
13458         (vt_finalize): Free windowed_parm_regs.
13459
13460 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
13461
13462         * doc/invoke.texi (C6X Options): New section.
13463         * doc/md.texi (TI C6X family): New section.
13464         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
13465         tic6x-*-uclinux.
13466         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
13467         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
13468         Provide C6X definitions.
13469         * config/c6x/c6x.md: New file.
13470         * config/c6x/constraints.md: New file.
13471         * config/c6x/predicates.md: New file.
13472         * config/c6x/c6x-sched.md.in: New file.
13473         * config/c6x/c6x-sched.md: New file.
13474         * config/c6x/gensched.sh: New file.
13475         * config/c6x/c6x-mult.md.in: New file.
13476         * config/c6x/genmult.sh: New file.
13477         * config/c6x/c6x-mult.md: New file.
13478         * config/c6x/sync.md: New file.
13479         * config/c6x/c6x-protos.h: New file.
13480         * config/c6x/sfp-machine.h: New file.
13481         * config/c6x/c6x.c: New file.
13482         * config/c6x/c6x.h: New file.
13483         * config/c6x/crti.s: New file.
13484         * config/c6x/crtn.s: New file.
13485         * config/c6x/lib1funcs.asm: New file.
13486         * config/c6x/c6x-modes.def: New file.
13487         * config/c6x/genopt.sh: New file.
13488         * config/c6x/c6x.opt: New file.
13489         * config/c6x/c6x-tables.opt: New file.
13490         * config/c6x/c6x-opts.h: New file.
13491         * config/c6x/c6x-isas.def: New file.
13492         * config/c6x/elf.h: New file.
13493         * config/c6x/elf-common.h: New file.
13494         * config/c6x/uclinux-elf.h: New file.
13495         * config/c6x/t-c6x: New file.
13496         * config/c6x/t-c6x-elf: New file.
13497         * config/c6x/t-c6x-uclinux: New file.
13498         * config/c6x/t-c6x-softfp: New file.
13499         * config/c6x/gtd.c: New file.
13500         * config/c6x/gtf.c: New file.
13501         * config/c6x/ltd.c: New file.
13502         * config/c6x/ltf.c: New file.
13503         * config/c6x/ged.c: New file.
13504         * config/c6x/gef.c: New file.
13505         * config/c6x/led.c: New file.
13506         * config/c6x/lef.c: New file.
13507         * config/c6x/eqd.c: New file.
13508         * config/c6x/eqf.c: New file.
13509         * config/c6x/libgcc-c6xeabi.ver: New file.
13510
13511         Revert
13512         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
13513         PR rtl-optimization/11320
13514         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
13515         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
13516         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
13517         current_sched_info->compute_jump_reg_dependencies. Record which
13518         registers are used and which registers are set by the jump.
13519         Clear deps->reg_conditional_sets after a barrier.
13520         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
13521         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
13522         (init_deps): Initialize reg_conditional_sets.
13523         (free_deps): Clear reg_conditional_sets.
13524         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
13525         Mark registers live on entry of the fallthrough block and conditionally
13526         set as set by the jump. Mark registers live on entry of non-fallthrough
13527         blocks as used by the jump.
13528         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
13529         Mark new parameters as unused.
13530
13531 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
13532
13533         PR tree-opt/49309
13534         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
13535         Use fold_build2_loc instead of build2.
13536         Use the correct type for the new tree.
13537
13538 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
13539
13540         PR rtl-optimization/11320
13541         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
13542         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
13543
13544 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
13545
13546         PR target/49487
13547         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
13548         of REG.
13549         (*rotw<mode>): Use const_int_operand for operand2.
13550         Use match_scatch for operand3.
13551         (*rotb<mode>): Ditto
13552         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
13553
13554 2011-07-14  Richard Guenther  <rguenther@suse.de>
13555
13556         PR tree-optimization/49651
13557         * tree-ssa-structalias.c (get_constraint_for_1): Properly
13558         handle dereferences with subvariables.
13559
13560 2011-07-14  Richard Guenther  <rguenther@suse.de>
13561
13562         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
13563         (fold_stmt_1): Do it here directly on gimple and as a first thing.
13564
13565 2011-07-14  Richard Guenther  <rguenther@suse.de>
13566
13567         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
13568         not bool_var when folding bool_var != 1 or bool_var == 0.
13569
13570 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
13571
13572         * haifa-sched.c (schedule_insns): Remove outdated comment.
13573         (schedule_block): When computing a known value for TODO_SPEC,
13574         just set it rather than using logical operations.
13575         (try_ready): Likewise.  Use a local variable rather than a
13576         pointer to TODO_SPEC.  Reorder an if statement to move the
13577         easy case to the then block.
13578         * sched-deps.c (dep_spec_p): New static function.
13579         (update_dep): Use it to decide whether to call
13580         change_spec_dep_to_hard.
13581         (get_back_and_forw_lists): Use it.
13582         (sd_resolve_dep): Likewise.
13583         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
13584         (haifa_note_mem_dep): Likewise.
13585         (check_dep): Likewise.
13586         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
13587         (sched_free_deps): Free in two passes.
13588
13589 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
13590
13591         PR middle-end/49736
13592         * expr.c (all_zeros_p): Undo bogus part of last change.
13593
13594 2011-07-14  Matthias Klose <doko@ubuntu.com>
13595
13596         * doc/extend.texi (optimize attribute): Fix typo.
13597
13598 2011-07-14  Richard Guenther  <rguenther@suse.de>
13599
13600         * gimplify.c (gimplify_expr): Only do required conversions.
13601
13602 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
13603
13604         PR target/43746
13605         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
13606         i.e. use default_elf_select_section.
13607         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
13608         (READONLY_DATA_SECTION_ASM_OP): Remove.
13609         (TARGET_ASM_NAMED_SECTION): Move from here...
13610         * config/avr/avr.c: ...to here.
13611         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
13612         (avr_asm_named_section): Make static.
13613
13614 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13615
13616         PR bootstrap/49739
13617         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
13618         and crtfastmath.o for Linux/x86.
13619
13620 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
13621
13622         * haifa-sched.c: Include "hashtab.h"
13623         (sched_no_dce): New global variable.
13624         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
13625         SHADOW_P): New macros.
13626         (last_clock_var, cycle_issued_insns): Move declarations.
13627         (must_backtrack): New static variable.
13628         (struct delay_pair): New structure.
13629         (delay_htab, delay_htab_i2): New static variables.
13630         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
13631         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
13632         functions.
13633         (dep_cost_1): If delay pairs exist, try to look up the insns and
13634         use the correct pair delay if we find them.
13635         (rank-for_schedule): Tweak priority for insns that must be scheduled
13636         soon to avoid backtracking.
13637         (queue_insn): Detect conditions which force backtracking.
13638         (ready_add): Likewise.
13639         (struct sched_block_state): Add member shadows_only_p.
13640         (struct haifa_save_data): New structure.
13641         (backtrack_queue): New static variable.
13642         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
13643         unschedule_insns_until, restore_last_backtrack_point,
13644         free_topmost_backtrack_point, free_backtrack_queue,
13645         estimate_insn_tick, estimate_shadow_tick): New functions.
13646         (prune_ready_list): New arg shadows_only_p.  All callers changed.
13647         If true, remove everything that isn't SHADOW_P.  Look up delay
13648         pairs and estimate ticks to avoid scheduling the first insn too early.
13649         (verify_shadows): New function.
13650         (schedule_block): Add machinery to enable backtracking.
13651         (sched_init): Take sched_no_dce into account when setting
13652         DF_LR_RUN_DCE.
13653         (free_delay_pairs): New function.
13654         (init_h_i_d): Initialize INSN_EXACT_TICK.
13655         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
13656         * sched-deps.c (sd_unresolve_dep): New function.
13657         * sched-int. (struct haifa_sched_info): New fields save_state
13658         and restore_state.
13659         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
13660         feeds_backtrack_insn and shadow_p.
13661         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
13662         (sched_no_dce): Declare variable.
13663         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
13664         sd_unresolve_dep): Declare functions.
13665         * modulo-sched.c (sms_sched_info): Clear the two new fields.
13666         * sched-rgn.c (rgn_const_sched_info): Likewise.
13667         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
13668         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
13669         (ebb_sched_info): Add them for the two new fields.
13670         (add_deps_for_risky_insns): Call add_delay_dependencies.
13671
13672 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13673
13674         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
13675         Rename -mr11.
13676         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
13677         (rs6000_call_indirect_aix): Ditto.
13678         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
13679         (call_indirect_aix<ptrsize>_internal): Ditto.
13680         (call_indirect_aix<ptrsize>_nor11): Ditto.
13681         (call_indirect_aix<ptrsize>_internal2): Ditto.
13682         (call_value_indirect_aix<ptrsize>): Ditto.
13683         (call_value_indirect_aix<ptrsize>_internal): Ditto.
13684         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
13685         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
13686         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
13687
13688 2011-07-13  Jason Merrill  <jason@redhat.com>
13689
13690         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
13691
13692 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13693
13694         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
13695         * config/spu/spu.md ("clrsb<mode>2"): New expander.
13696
13697 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
13698
13699         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
13700         * configure: Regenerate.
13701
13702 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13703
13704         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
13705         (asm_file_start): Remove.
13706         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
13707         free_bb_for_insn around code that modifies insns before
13708         restarting df analysis.
13709
13710 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13711
13712         PR target/49541
13713         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
13714         (LINK_SPEC): ... here.
13715
13716 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
13717
13718         * haifa-sched.c (struct sched_block_state): New.
13719         (schedule_block): Move some local variables into such a structure.
13720
13721 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13722
13723         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
13724         * config/i386/t-crtpc: Remove.
13725         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
13726         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
13727         tmake_file.
13728         (x86_64-*-darwin*): Likewise.
13729         (i[34567]86-*-linux*): Likewise.
13730         (x86_64-*-linux*): Likewise.
13731
13732         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
13733         Handle -mpc32, -mpc64, -mpc80.
13734
13735 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13736
13737         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
13738         * config/alpha/t-crtfm: Remove.
13739         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
13740         * config/i386/t-crtfm: Remove.
13741         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
13742         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
13743         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
13744         * config/sparc/t-crtfm: Remove.
13745
13746         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
13747         (alpha*-*-freebsd*): Likewise.
13748         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
13749         (x86_64-*-darwin*): Likewise.
13750         (i[34567]86-*-linux*): Likewise.
13751         (x86_64-*-linux*): Likewise.
13752         (x86_64-*-mingw*): Likewise.
13753         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
13754         (ia64*-*-freebsd*): Likewise.
13755         (ia64*-*-linux*): Likewise.
13756         (mips64*-*-linux*): Likewise.
13757         (mips*-*-linux*): Likewise.
13758         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
13759         (sparc64-*-linux*): Likewise.
13760         (sparc64-*-freebsd*): Likewise.
13761
13762 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13763
13764         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
13765         * config/darwin-crt3.c: Move to ../libgcc/config.
13766         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
13767         ($(T)crt3$(objext)): Remove.
13768         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
13769         ($(T)crt2$(objext)): Remove.
13770         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
13771         (powerpc64-*-darwin*): Likewise.
13772
13773 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
13774
13775         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
13776
13777         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
13778         (addsi_1_zext): This.
13779
13780 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
13781
13782         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
13783         * doc/tm.texi: Regenerate.
13784         * target.def (mergeable_rodata_prefix): New defhookpod.
13785         * varasm.c (mergeable_string_section, mergeable_constant_section):
13786         Use it. Allocate name with alloca.
13787
13788 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
13789
13790         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
13791
13792 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
13793
13794         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
13795         overlap check.
13796
13797 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
13798
13799         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
13800         (count_type_elements): Delete.
13801         (complete_ctor_at_level_p): Declare.
13802         * expr.c (flexible_array_member_p): New function, split out from...
13803         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
13804         parameter with for_ctor_p.  When for_ctor_p is true, return the
13805         number of elements that should appear in the top-level constructor,
13806         otherwise return an estimate of the number of scalars.
13807         (categorize_ctor_elements): Replace p_must_clear with p_complete.
13808         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
13809         (complete_ctor_at_level_p): New function, borrowing union logic
13810         from old categorize_ctor_elements_1.
13811         (mostly_zeros_p): Return true if the constructor is not complete.
13812         (all_zeros_p): Update call to categorize_ctor_elements.
13813         * gimplify.c (gimplify_init_constructor): Update call to
13814         categorize_ctor_elements.  Don't call count_type_elements.
13815         Unconditionally prevent clearing for variable-sized types,
13816         otherwise rely on categorize_ctor_elements to detect
13817         incomplete initializers.
13818
13819 2011-07-13  Richard Guenther  <rguenther@suse.de>
13820
13821         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
13822         the final type is integral.
13823
13824 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
13825
13826         * sched-int.h (struct _dep): Add member cost.
13827         (DEP_COST, UNKNOWN_DEP_COST): New macros.
13828         * sched-deps.c (init_dep_1): Initialize DEP_COST.
13829         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
13830         (sched_change_pattern): Reset it for dependent insns.
13831
13832 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13833
13834         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
13835         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
13836         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
13837         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
13838         (CRT0_S, MCRT0_S): Remove.
13839         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
13840         Remove.
13841         (s-crt0): Remove.
13842         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
13843
13844 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
13845
13846         * cse.c (insert_with_costs): Put semi-colon after empty loop body
13847         on the next line.
13848         * emit-rtl.c (push_to_sequence): Likewise.
13849         * haifa-sched.c (max_issue): Likewise.
13850         * matrix-reorg.c (add_allocation_site): Likewise.
13851         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
13852         * reload.c (alternative_allows_const_pool_ref): Likewise.
13853         * sched-rgn.c (rgn_add_block): Likewise.
13854         (rgn_fix_recovery_cfg): Likewise.
13855         * tree.c (attribute_list_contained): Likewise.
13856
13857 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
13858
13859         * config/i386/i386.c: Tidy processor feature bitmasks.
13860         (m_P4_NOCONA): New.
13861
13862 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
13863
13864         PR rtl-opt/49474
13865         * cprop.c (find_implicit_sets): Correct the condition.
13866
13867 2011-07-12  Richard Henderson  <rth@redhat.com>
13868
13869         PR target/49713
13870         * dwarf2out.h (dwarf_frame_regnum): Remove.
13871         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
13872         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
13873         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
13874         (execute_dwarf2_frame): Initialize them.
13875         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
13876         users of the macros with the variables.
13877         (expand_builtin_dwarf_sp_column): Revert last change.
13878         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
13879         result of DWARF_FRAME_REGNUM into a local variable.
13880
13881 2011-07-12  Richard Henderson  <rth@redhat.com>
13882
13883         PR target/49714
13884         * config/i386/i386.c (x86_output_mi_thunk): Use
13885         machopic_indirect_call_target instead of machopic_indirection_name
13886         directly.
13887
13888 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
13889             Eric Botcazou  <ebotcazou@adacore.com>
13890
13891         * prefix.h: Wrap up in extern "C" block.
13892
13893 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
13894
13895         AMD bdver2 Enablement
13896         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
13897         (case ${target}): Add bdver2.
13898         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13899         -march=native recognize bdver2 processors.
13900         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13901         bdver2 def_and_undef
13902         * config/i386/i386.c (struct processor_costs bdver2_cost): New
13903         bdver2 cost table.
13904         (m_BDVER2): New definition.
13905         (m_AMD_MULTIPLE): Includes m_BDVER2.
13906         (initial_ix86_tune_features): Add bdver2 tuning.
13907         (processor_target_table): Add bdver2 entry.
13908         (static const char *const cpu_names): Add bdver2 entry.
13909         (ix86_option_override_internal): Add bdver2 instruction sets.
13910         (ix86_issue_rate): Add bdver2.
13911         (ix86_adjust_cost): Add bdver2.
13912         (has_dispatch): Add bdver2.
13913         * config/i386/i386.h (TARGET_BDVER2): New definition.
13914         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
13915         (enum processor_type): Add PROCESSOR_BDVER2.
13916         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
13917         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
13918         description.
13919
13920 2011-07-12  Richard Henderson  <rth@redhat.com>
13921
13922         PR target/49714
13923         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
13924         destination address in memory on some paths.
13925
13926 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
13927
13928         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
13929         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
13930         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
13931         * function.c (locate_and_pad_parm): Take it into account.
13932         * target.def (function_arg_round_boundary): New hook.
13933         * targhooks.c (default_function_arg_round_boundary): New function.
13934         * targhooks.h (default_function_arg_round_boundary): Declare.
13935         * doc/tm.texi: Regenerate.
13936
13937 2011-07-12  Richard Guenther  <rguenther@suse.de>
13938
13939         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
13940         Do not perform no-op changes.
13941
13942 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
13943
13944         * config/arm/predicates.md (neon_struct_operand): Make a normal
13945         predicate.
13946         (neon_struct_or_register_operand): New predicate.
13947         * config/arm/neon.md (movmisalign<mode>): Replace predicates
13948         with neon_struct_or_register_operand.
13949         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
13950         neon_struct_operand instead of memory_operand.
13951
13952 2011-07-12  Martin Jambor  <mjambor@suse.cz>
13953
13954         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
13955         * cgraph.c (cgraph_get_node_or_alias): Removed.
13956         (change_decl_assembler_name): Changed all calls to
13957         cgraph_get_node_or_alias to a call to cgraph_get_node.
13958         (cgraph_make_decl_local): Likewise.
13959         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
13960         * varasm.c (default_binds_local_p_1): Likewise.
13961         (decl_binds_to_current_def_p): Likewise.
13962
13963 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
13964
13965         PR tree-optimization/49712
13966         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
13967
13968 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
13969
13970         * genautomata.c (add_arc): Return void.  All callers changed.
13971         (make_automaton): Remove dead code.
13972
13973 2011-07-11  Richard Henderson  <rth@redhat.com>
13974
13975         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
13976         (DW_FRAME_POINTER_REGNUM): New.
13977         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
13978         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
13979         (dwf_regno): New.
13980         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
13981         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
13982         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
13983         Use it.
13984         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
13985         * dwarf2out.h (dwarf_frame_regnum): New.
13986         (struct cfa_loc): Document the domain of the reg member.
13987
13988 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
13989
13990         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
13991         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
13992
13993 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
13994
13995         PR debug/49676
13996         * dwarf2out.c (int_shift_loc_descriptor): New function.
13997         (int_loc_descriptor): If shorter, emit i as
13998         (i >> shift), shift, DW_OP_shl for suitable shift value.
13999         Similarly, try to optimize large negative values using
14000         DW_OP_neg of a positive value if shorter.
14001         (size_of_int_shift_loc_descriptor): New function.
14002         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
14003         changes.
14004         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
14005         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
14006         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
14007         is shorter.
14008         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
14009         addend as added DW_OP_plus if it is shorter.
14010
14011 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14012
14013         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
14014         (DTORS_SECTION_ASM_OP): Define.
14015
14016 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14017
14018         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
14019         * config/t-dfprules: Move to ../libgcc/config.
14020         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
14021         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
14022         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
14023         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
14024         Likewise.
14025         (i[34567]86-*-cygwin*): Likewise.
14026         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
14027         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
14028         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
14029         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
14030         D64PBIT_FUNCS, D128PBIT_FUNCS.
14031
14032 2011-07-11  Richard Guenther  <rguenther@suse.de>
14033
14034         * tree-vrp.c (simplify_conversion_using_ranges): Manually
14035         translate the source value-range through the conversion chain.
14036
14037 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
14038
14039         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
14040
14041 2011-07-11  Arthur Loiret  <aloiret@debian.org>
14042
14043         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
14044         a bi-arch compiler defaulting to 31-bit. In this case:
14045         (tmake_file): Add s390/t-linux64.
14046         * doc/install.texi: Add s390-linux to the list of targets supporting
14047         --enable-targets=all.
14048
14049 2011-07-11  Arthur Loiret  <aloiret@debian.org>
14050             Matthias Klose <doko@debian.org>
14051
14052         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
14053         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
14054         (tm_file): Add mips/linux64.h.
14055         (tmake_file): Add mips/t-linux64.
14056         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
14057         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
14058         instead of hardcoded mabi=n32.
14059         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
14060         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
14061         convention.
14062
14063 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14064
14065         * passes.c (init_optimization_passes): Add invariant motion pass
14066         after induction variable optimization.
14067
14068 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
14069
14070         PR target/39633
14071         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
14072         offsets 1..5 set cc0 in a usable way.
14073
14074 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
14075
14076         * tree.h (call_expr_arg): Remove.
14077         (call_expr_argp): Likewise.
14078
14079 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
14080
14081         * config/sparc/sparc.md (save_register_window_1): Rename to...
14082         (window_save): ...this.
14083         * config/sparc/sparc.c (emit_save_register_window): Rename to...
14084         (emit_window_save): ...this.
14085         (sparc_expand_prologue): Adjust to above renaming.
14086
14087 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
14088
14089         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
14090         of movabs for x32.
14091
14092 2011-07-10  Richard Henderson  <rth@redhat.com>
14093
14094         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
14095         run final, instead of emitting text directly.
14096
14097 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
14098
14099         * config/i386/i386.c (ix86_option_override_internal): Turn on
14100         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
14101         small PIC models for TARGET_X32.
14102
14103 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
14104
14105         PR target/49684
14106         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
14107         $(LIBGCC2_CFLAGS).
14108
14109         PR bootstrap/49680
14110         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
14111         stray notes and debug insns by using prev_nonnote_nondebug_insn
14112         instead of PREV_INSN.
14113
14114 2011-07-09  Richard Henderson  <rth@redhat.com>
14115
14116         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
14117         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
14118         * dwarf2out.c: ... here.
14119         (output_all_cfis): Remove.
14120         (dwarf2out_switch_text_section): Use output_cfis directly.
14121         (size_of_locs): Export.
14122         (output_loc_sequence, output_loc_sequence_raw): Export.
14123         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
14124         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
14125         output_cfa_loc_raw): Move to ...
14126         * dwarfcfi.c: ... here.
14127         * dwarf2out.h: Update decls.
14128
14129 2011-07-09  Richard Henderson  <rth@redhat.com>
14130
14131         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
14132         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
14133         * dwarf2cfi.c: ... here.
14134         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
14135         (DWARF_ROUND, DWARF_CIE_ID): Remove.
14136         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
14137         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
14138         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
14139
14140 2011-07-09  Richard Henderson  <rth@redhat.com>
14141
14142         * dwarf2cfi.c (cie_return_save): New.
14143         (queue_reg_save): Use compare_reg_or_pc.
14144         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
14145         (dwarf2out_frame_debug_expr): Likewise.
14146         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
14147         (initial_return_save): Likewise.
14148         (execute_dwarf2_frame): Save and restore initial return save from
14149         the cie to the fde.
14150         * config/mips/mips.c (mips_frame_set): Remove special case for
14151         DWARF_FRAME_RETURN_COLUMN.
14152
14153 2011-07-09  Richard Henderson  <rth@redhat.com>
14154
14155         * dwarf2cfi.c (lookup_cfa): Remove.
14156         (execute_dwarf2_frame): Assert queues are empty on entry.
14157         Setup initial cfa directly, not via lookup_cfa.
14158         Don't clear args_size state here.
14159
14160 2011-07-09  Richard Henderson  <rth@redhat.com>
14161
14162         * dwarf2cfi.c (add_cfi_vec): New.
14163         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
14164         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
14165         (execute_dwarf2_frame): Set add_cfi_vec.
14166
14167 2011-07-09  Richard Henderson  <rth@redhat.com>
14168
14169         * defaults.h (ASM_COMMENT_START): Move here...
14170         * dwarf2asm.c: ... from here.
14171         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
14172         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
14173         * varasm.c: Likewise.
14174
14175 2011-07-09  Richard Henderson  <rth@redhat.com>
14176
14177         PR debug/49686
14178         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
14179         (create_cfi_notes): ... do it here instead.
14180
14181 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
14182
14183         PR debug/49676
14184         * dwarf2out.c (size_of_int_loc_descriptor): New function.
14185         (address_of_int_loc_descriptor): Use it.
14186         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
14187
14188 2011-07-09  Richard Henderson  <rth@redhat.com>
14189
14190         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
14191         (prologue, epilogue): New.
14192         (return, *rts): New.
14193         (blockage, setd, seti): New.
14194         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
14195         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
14196         (pdp11_saved_regno): New.
14197         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
14198         generate rtl instead of text.
14199         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
14200         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
14201         * config/pdp11/pdp11-protos.h: Update.
14202
14203 2011-07-09  Richard Henderson  <rth@redhat.com>
14204
14205         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
14206         try to insert an rtl prologue here.
14207         (rs6000_output_function_epilogue): Similarly.
14208         * config/rs6000/rs6000.md (prologue): Emit a barrier to
14209         satisfy !TARGET_SCHED_PROLOG.
14210         (epilogue, sibcall_epilogue): Likewise.
14211
14212 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
14213
14214         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
14215         (FP_REG_P): Delete.
14216         (IN_OR_GLOBAL_P): Likewise.
14217
14218 2011-07-08  Jason Merrill  <jason@redhat.com>
14219
14220         PR c++/45437
14221         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
14222         compound assignment.
14223
14224         * cgraph.c (cgraph_add_to_same_comdat_group): New.
14225         * cgraph.h: Declare it.
14226         * ipa.c (function_and_variable_visibility): Make sure thunks
14227         have the right visibility.
14228
14229 2011-07-08  Richard Henderson  <rth@redhat.com>
14230
14231         PR bootstrap/49680
14232         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
14233         any tablejump vector.
14234
14235         PR bootstrap/49680
14236         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
14237         end of the prologue.
14238
14239 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
14240
14241         PR target/49621
14242         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
14243         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
14244         * config/rs6000/vector.md (vector_select_<mode>,
14245         vector_select_<mode>_uns): Change second operand of NE to
14246         CONST0_RTX (<MODE>mode) instead of const0_rtx.
14247         * config/rs6000/altivec.md (*altivec_vsel<mode>,
14248         *altivec_vsel<mode>_uns): Expect second operand of NE to be
14249         zero_constant of the corresponding vector mode.
14250         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
14251         Likewise.
14252
14253 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
14254
14255         * graphite-dependences.c (build_alias_set_powerset): Remove
14256         continue from loop, add one more assert.
14257
14258 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
14259
14260         PR target/46779
14261         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
14262         In particular, allow 8-bit values in r28 and r29.
14263         (avr_hard_regno_scratch_ok): Disallow any register that might be
14264         part of the frame pointer.
14265         (avr_hard_regno_rename_ok): Same.
14266         (avr_legitimate_address_p): Don't allow SUBREGs.
14267
14268 2011-07-08  Julian Brown  <julian@codesourcery.com>
14269
14270         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
14271         big-endian mode.
14272         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
14273         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
14274         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
14275         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
14276         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
14277         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
14278         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
14279         registers in big-endian mode.
14280
14281 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
14282
14283         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
14284         in terms of another.
14285         (write_attr_value): Write a cast if necessary.
14286
14287         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
14288         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
14289         (REG_WORDS_BIG_ENDIAN): Document.
14290         * doc/tm.texi: Regenerate.
14291         * reload.c (operands_match_p): Take it into account.
14292         (reload_adjust_reg_for_mode): Likewise.
14293         * rtlanal.c (subreg_get_info): Likewise.
14294
14295 2011-07-08  Richard Guenther  <rguenther@suse.de>
14296
14297         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
14298         folding.
14299
14300 2011-07-08  Kai Tietz  <ktietz@redhat.com>
14301
14302         * fold-const.c (fold_truth_andor): Factored out truth_andor
14303         label from fold_binary as function.
14304         (fold_binary_loc): Replace truth_andor lable
14305         by function fold_truth_andor.
14306
14307 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
14308
14309         PR middle-end/49519
14310         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
14311         check if address is stored in register. If so - give up.
14312         (check_sibcall_argument_overlap_1): Do not perform check of
14313         overlapping when it is call to address.
14314
14315 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
14316
14317         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
14318         of magic '31'.
14319
14320 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
14321
14322         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
14323         GET_MODE_BITSIZE where appropriate.
14324         (widen_leading, expand_parity, expand_ctz, expand_ffs,
14325         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
14326         expand_float, expand_fix): Likewise.
14327         * expr.c (convert_move, convert_modes, expand_expr_real_2,
14328         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
14329         * stor-layout.c (get_mode_bounds): Likewise.
14330         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
14331         Likewise.
14332         * convert.c (convert_to_integer): Likewise.
14333         * expmed.c (expand_shift_1): Likewise.
14334
14335         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
14336         a bitsize.
14337
14338         * optabs.c (expand_binop): Tighten conditions for doubleword
14339         expansions.
14340         (widen_bswap): Assert that mode bitsize and precision are the same.
14341         * stor-layout.c (get_best_mode): Skip modes that have lower
14342         precision than bitsize.
14343         * recog.c (simplify_while_replacing): Assert that bitsize and
14344         precision are the same.
14345
14346 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14347
14348         * Makefile.in (LIBGCOV): Remove.
14349         (libgcc.mvars): Remove LIBGCOV.
14350         * libgov.c: Move to ../libgcc.
14351
14352 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14353
14354         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
14355
14356 2011-07-08  Martin Jambor  <mjambor@suse.cz>
14357
14358         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
14359         is too big for total scalarization.
14360
14361 2011-07-07  Richard Henderson  <rth@redhat.com>
14362
14363         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
14364         (DBX_DEBUGGING_INFO): Undef.
14365
14366 2011-07-07  Richard Henderson  <rth@redhat.com>
14367
14368         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
14369         Handle some opcodes specially for debugging.
14370         * print-rtl.c: Include dwarf2out.h
14371         (print_rtx): Handle NOTE_INSN_CFI.
14372         * Makefile.in (print-rtl.o): Update.
14373
14374 2011-07-07  Richard Henderson  <rth@redhat.com>
14375
14376         * tree-pass.h (pass_dwarf2_frame): Declare.
14377         * passes.c (init_optimization_passes): Add it.
14378         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
14379         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
14380         make static, do not call add_cfis_to_fde.
14381         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
14382         dwarf2out_frame_init): Merge into...
14383         (execute_dwarf2_frame): ... here.  New function.
14384         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
14385         saved_do_cfi_asm to a tri-state variable.
14386         (gate_dwarf2_frame, pass_dwarf2_frame): New.
14387         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
14388         if it has yet to be done.  Don't call dwarf2cfi_function_init.
14389         * dwarf2out.h, debug.h: Update decls.
14390         * final.c (final_start_function): Don't call
14391         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
14392         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
14393         * toplev.c (lang_dependent_init): Likewise.
14394
14395 2011-07-07  Richard Henderson  <rth@redhat.com>
14396
14397         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
14398         FDE_TABLE_INCREMENT): Replace with...
14399         (fde_vec): ... this, a new vector.
14400         (current_fde): Remove.  Replace all users with cfun->fde.
14401         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
14402         (size_of_aranges, dwarf2out_finish): Likewise.
14403         (dwarf2out_alloc_current_fde): Break out from ...
14404         (dwarf2out_begin_prologue): ... here.
14405         (dwarf2out_frame_init): Remove.
14406         * dwarf2cfi.c: Update all users of current_fde.
14407         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
14408         * dwarf2out.h: Update decls.
14409         (dw_fde_node): Add fde_index member.
14410         * function.h (struct function): Add fde member.
14411
14412 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
14413             Richard Henderson  <rth@redhat.com>
14414
14415         * dwarf2cfi.c (add_cfi): Remove.
14416         (dwarf2out_cfi_label): Remove force argument.  Only generate the
14417         label name.
14418         (add_fde_cfi): Simplify the different code paths.
14419         (add_cie_cfi): New.
14420         (old_cfa, old_cfa_remember): New.
14421         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
14422         (last_reg_save_label): Remove.
14423         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
14424         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
14425         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
14426         dwarf2out_frame_debug_cfa_expression,
14427         dwarf2out_frame_debug_cfa_restore,
14428         dwarf2out_frame_debug_cfa_window_save,
14429         dwarf2out_frame_debug_expr): Remove label parameter.
14430         (cfi_label_required_p, add_cfis_to_fde): New.
14431         (dwarf2out_frame_debug_after_prologue): New.
14432         (dwarf2cfi_frame_init): Initialize old_cfa.
14433         (dwarf2out_frame_debug_restore_state): Likewise.
14434         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
14435         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
14436         * final.c (final_start_function): Call
14437         dwarf2out_frame_debug_after_prologue.
14438
14439 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
14440             Richard Henderson  <rth@redhat.com>
14441
14442         * dwarf2cfi.c (cfi_insn): New.
14443         (dwarf2out_cfi_label): Don't emit cfi label here.
14444         (add_fde_cfi): Create a NOTE_INSN_CFI.
14445         (dwarf2out_frame_debug): Setup cfi_insn.
14446         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
14447         (dwarf2out_cfi_begin_epilogue): Make static.
14448         (dwarf2out_frame_debug_restore_state): Make static.
14449         * dwarf2out.c (output_cfi_directive): Make static.
14450         (dwarf2out_emit_cfi): New.
14451         * dwarf2out.h: Update.
14452         * final.c (final): Remove CFI notes.
14453         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
14454         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
14455         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
14456         * insn-notes.def (NOTE_INSN_CFI): New.
14457         (NOTE_INSN_CFI_LABEL): New.
14458         * rtl.h (union rtunion_def): Add rt_cfi member.
14459         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
14460
14461 2011-07-07  Richard Henderson  <rth@redhat.com>
14462
14463         * dwarf2cfi.c: New file.
14464         * Makefile.in (OBJS): Add it.
14465         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
14466         * gengtype.c (open_base_files): Include dwarf2out.h.
14467         * coretypes.h (enum var_init_status): Move from ...
14468         * rtl.h: ... here.
14469         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
14470         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
14471         expand_builtin_dwarf_sp_column, init_return_column_size,
14472         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
14473         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
14474         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
14475         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
14476         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
14477         compute_barrier_args_size, dwarf2out_args_size,
14478         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
14479         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
14480         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
14481         queue_reg_save, dwarf2out_flush_queued_reg_saves,
14482         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
14483         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
14484         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
14485         dwarf2out_frame_debug_cfa_expression,
14486         dwarf2out_frame_debug_cfa_restore,
14487         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
14488         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
14489         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
14490         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
14491         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
14492         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
14493         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
14494         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
14495         dw_loc_descr_node): Move to dwarf2out.h.
14496         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
14497         mem_loc_descriptor): Export.
14498         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
14499         (dwarf2out_frame_init): Extract CIE generation code to
14500         dwarf2cfi_frame_init.
14501
14502 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
14503
14504         PR target/49660
14505         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
14506         MASK_V8PLUS, remove commented out flag and reorder.
14507
14508 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
14509
14510         PR c/49644
14511         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
14512         one non-complex and one complex argument, call c_save_expr on both
14513         operands.
14514
14515 2011-07-07  Martin Jambor  <mjambor@suse.cz>
14516
14517         PR middle-end/49495
14518         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
14519         (verify_cgraph_node): Some functinality moved to
14520         verify_edge_corresponds_to_fndecl, call it.
14521
14522 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
14523
14524         * config.gcc (*local*): Remove.
14525         * doc/install-old.texi: Don't mention local configurations.
14526
14527 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
14528
14529         PR debug/49522
14530         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
14531         referencing debug insns that have been reset.
14532         (dead_debug_insert_before): Don't assert reg is non-NULL,
14533         instead return immediately if it is NULL.
14534
14535 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
14536
14537         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
14538
14539 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
14540
14541         * hw-doloop.c: New file.
14542         * hw-doloop.h: New file.
14543         * Makefile.in (OBJS): Add hw-doloop.o.
14544         (hw-doloop.o): New rule.
14545         ($(obj_out_file)): Add hw-doloop.h dependency.
14546         * config/bfin/bfin.c: Include "hw-doloop.h".
14547         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
14548         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
14549         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
14550         type changed to hwloop_info.  Return bool, true if the loop was
14551         successfully optimized.  Remove code that was moved to
14552         hw-doloop.c, and adjust other parts.
14553         (hwloop_fail): New static function, containing parts that used
14554         to be in bfin_optimize_loop.
14555         (bfin_discover_loop, bfin_discover_loops, free_loops,
14556         bfin_reorder_loops): Remove.
14557         (hwloop_pattern_reg): New static function.
14558         (bfin_doloop_hooks): New variable.
14559         (bfin_reorg_loops): Remove most code, call reorg_loops.
14560         * config/bfin/bfin.md (doloop_end splitter): Also enable if
14561         loop counter is a memory_operand.
14562
14563 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14564
14565         * config.gcc: Support --with-multilib-list for x86 Linux targets.
14566
14567         * configure.ac: Mention x86-64 for --with-multilib-list.
14568         * configure: Regenerated.
14569
14570         * config/i386/gnu-user64.h (SPEC_64): Support x32.
14571         (SPEC_32): Likewise.
14572         (ASM_SPEC): Likewise.
14573         (LINK_SPEC): Likewise.
14574         (TARGET_THREAD_SSP_OFFSET): Likewise.
14575         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
14576         (SPEC_X32): New.
14577
14578         * config/i386/i386.h (TARGET_X32): New.
14579         (TARGET_LP64): New.
14580         (LONG_TYPE_SIZE): Likewise.
14581         (POINTER_SIZE): Likewise.
14582         (POINTERS_EXTEND_UNSIGNED): Likewise.
14583         (OPT_ARCH64): Support x32.
14584         (OPT_ARCH32): Likewise.
14585
14586         * config/i386/i386.opt (mx32): New.
14587
14588         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
14589         (GLIBC_DYNAMIC_LINKERX32): Likewise.
14590         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
14591         (GLIBC_DYNAMIC_LINKERX32): Likewise.
14592
14593         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
14594         (BIONIC_DYNAMIC_LINKERX32): Likewise.
14595         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
14596
14597         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
14598
14599         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
14600
14601         * doc/invoke.texi: Document -mx32.
14602
14603 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
14604
14605         * doc/invoke.texi (mwords-little-endian): Deprecate.
14606         * config/arm/arm.opt (mwords-little-endian): Likewise.
14607         * config/arm/arm.c (arm_option_override): Warn about the deprecation
14608         of -mwords-little-endian.
14609
14610 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
14611
14612         * reload1.c (choose_reload_regs): Use mode sizes to check whether
14613         an old reload register completely defines the required value.
14614
14615 2011-07-07  Richard Guenther  <rguenther@suse.de>
14616
14617         * fold-const.c (fold_unary_loc): Do not strip sign-changes
14618         for NEGATE_EXPR.
14619
14620 2011-07-07  Richard Guenther  <rguenther@suse.de>
14621
14622         * tree-vrp.c (simplify_conversion_using_ranges): New function.
14623         (simplify_stmt_using_ranges): Call it.
14624
14625 2011-07-07  Kai Tietz  <ktietz@redhat.com>
14626
14627         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
14628         (lookup_logical_inverted_value): Likewise.
14629         (simplify_bitwise_binary_1): Likewise.
14630         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
14631
14632 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
14633
14634         * gcc.c (%[Spec]): Don't document.
14635         (struct spec_list): Update comment.
14636         (do_spec_1): Don't handle %[Spec].
14637         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
14638
14639 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
14640
14641         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
14642         default based on TARGET_ASM_NAMED_SECTION.
14643         * common/common-target.def (have_named_sections): Default to true.
14644         * common/config/default-common.c: Don't include tm.h.
14645         * common/config/picochip/picochip-common.c
14646         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
14647         * common/config/m32c/m32c-common.c: Remove.
14648         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
14649         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14650         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14651         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14652         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14653         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14654         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14655
14656 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
14657
14658         PR middle-end/49640
14659         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
14660         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
14661
14662 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14663
14664         PR libmudflap/49550
14665         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
14666
14667 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14668
14669         PR target/39150
14670         * configure.ac (gcc_cv_as_hidden): Also accept
14671         x86_64-*-solaris2.1[0-9]*.
14672         (gcc_cv_as_cfi_directive): Likewise.
14673         (gcc_cv_as_comdat_group_group): Likewise.
14674         (set_have_as_tls): Likewise.
14675         * configure: Regenerate.
14676         * config.gcc (i[34567]86-*-solaris2*): Also handle
14677         x86_64-*-solaris2.1[0-9]*.
14678         * config.host (i[34567]86-*-solaris2*): Likewise.
14679         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
14680         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
14681         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
14682         (TARGET_LD_EMULATION): Use it.
14683         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
14684         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
14685         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
14686         (ASM_CPU64_DEFAULT_SPEC): Define.
14687         (ASM_CPU_SPEC): Use %(asm_cpu_default).
14688         (ASM_SPEC): Redefine.
14689         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
14690         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
14691         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
14692         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
14693         configuration.
14694         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
14695
14696 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14697
14698         * config/sol2.h (ASM_SPEC): Split into ...
14699         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
14700         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
14701         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
14702         (ASM_SPEC): Use ASM_SPEC_BASE.
14703         * config/sparc/sol2.h (ASM_SPEC): Redefine.
14704
14705 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
14706
14707         * config/avr/avr.md (*reload_insi): Change predicate #1 to
14708         const_int_operand.  Ditto for peep2 producing this insn.
14709         Add argument to output_reload_insisf call.
14710         (*movsi,*movsf): Add argument to output_movsisf call.
14711         (*reload_insf): New insn and new peep2 to produce it.
14712         * config/avr/avr-protos.h (output_movsisf): Change prototype.
14713         (output_reload_insisf): Change prototype.
14714         * config/avr/avr.c (avr_asm_len): New function.
14715         (output_reload_insisf): Rewrite.
14716         (output_movsisf): Change prototype.  output_reload_insisf for
14717         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
14718         (adjust_insn_length): Add argument to output_movsisf and
14719         output_reload_insisf call.
14720
14721 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
14722
14723         * emit-rtl.c (paradoxical_subreg_p): New function.
14724         * rtl.h (paradoxical_subreg_p): Declare.
14725         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
14726         apply_distributive_law, simplify_comparison, simplify_set): Use it.
14727         * cse.c (record_jump_cond, cse_insn): Likewise.
14728         * expr.c (force_operand): Likewise.
14729         * rtlanal.c (num_sign_bit_copies1): Likewise.
14730         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
14731         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
14732         (push_reload): Use precision to check for paradoxical subregs.
14733         * expmed.c (extract_bit_field_1): Likewise.
14734
14735         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
14736         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
14737         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
14738         simplify_set, simplify_logical, expand_compound_operation,
14739         make_extraction, force_to_mode, if_then_else_cond, extended_count,
14740         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
14741         record_value_for_reg): Likewise.
14742         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
14743         * simplify-rtx. c (simplify_unary_operation_1,
14744         simplify_binary_operation_1, simplify_const_relational_operation):
14745         Likewise.
14746
14747         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
14748         instead of GET_MODE_BITSIZE where appropriate.
14749         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
14750         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
14751         init_num_sign_bit_copies_in_rep): Likewise.
14752         * cse.c (fold_rtx, cse_insn): Likewise.
14753         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
14754         * simplify-rtx.c (simplify_unary_operation_1,
14755         simplify_const_unary_operation, simplify_binary_operation_1,
14756         simplify_const_binary_operation, simplify_ternary_operation,
14757         simplify_const_relational_operation, simplify_subreg): Likewise.
14758         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
14759         simplify_if_then_else, simplify_set, expand_compound_operation,
14760         expand_field_assignment, make_extraction, if_then_else_cond,
14761         make_compound_operation, force_to_mode, make_field_assignment,
14762         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
14763         extended_count, try_widen_shift_mode, simplify_shift_const_1,
14764         simplify_comparison, record_promoted_value, simplify_compare_const,
14765         record_dead_and_set_regs_1): Likewise.
14766
14767         Revert:
14768         * simplify-rtx.c (simplify_const_binary_operation): Use the
14769         shift_truncation_mask hook instead of performing modulo by width.
14770         Compare against mode precision, not bitsize.
14771         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
14772         Use shift_truncation_mask instead of constructing the value manually.
14773
14774 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
14775
14776         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
14777         declaration.
14778         (rs6000_save_toc_in_prologue_p): Ditto.
14779
14780         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
14781         up the static chain (r11) during indirect function calls.
14782         (-msave-toc-indirect): New undocumented debug switch.
14783
14784         * config/rs6000/rs6000.c (struct machine_function): Add
14785         save_toc_in_prologue field to note whether the prologue needs to
14786         save the TOC value in the reserved stack location.
14787         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
14788         to save the TOC in the prologue, do so.
14789         (rs6000_trampoline_init): Don't allow creating AIX style
14790         trampolines if -mno-r11 is in effect.
14791         (rs6000_call_indirect_aix): New function to create AIX style
14792         indirect calls, adding support for -mno-r11 to suppress loading
14793         the static chain, and saving the TOC in the prologue instead of
14794         the call body.
14795         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
14796         TOC in the prologue.
14797
14798         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
14799         register numbers.
14800         (TOC_REGNUM): Ditto.
14801         (STATIC_CHAIN_REGNUM): Ditto.
14802         (ARG_POINTER_REGNUM): Ditto.
14803         (SFP_REGNO): Delete, unused.
14804         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
14805         function descriptor offsets.
14806         (TOC_SAVE_OFFSET_64BIT): Ditto.
14807         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
14808         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
14809         (AIX_FUNC_DESC_SC_32BIT): Ditto.
14810         (AIX_FUNC_DESC_SC_64BIT): Ditto.
14811         (ptrload): New mode attribute for the appropriate load of a pointer.
14812         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
14813         (call_indirect_aix64): Ditto.
14814         (call_value_indirect_aix32): Ditto.
14815         (call_value_indirect_aix64): Ditto.
14816         (call_indirect_nonlocal_aix32_internal): Ditto.
14817         (call_indirect_nonlocal_aix32): Ditto.
14818         (call_indirect_nonlocal_aix64_internal): Ditto.
14819         (call_indirect_nonlocal_aix64): Ditto.
14820         (call): Rewrite AIX indirect function calls.  Add support for
14821         eliminating the static chain, and for moving the save of the TOC
14822         to the function prologue.
14823         (call_value): Ditto.
14824         (call_indirect_aix<ptrsize>): Ditto.
14825         (call_indirect_aix<ptrsize>_internal): Ditto.
14826         (call_indirect_aix<ptrsize>_internal2): Ditto.
14827         (call_indirect_aix<ptrsize>_nor11): Ditto.
14828         (call_value_indirect_aix<ptrsize>): Ditto.
14829         (call_value_indirect_aix<ptrsize>_internal): Ditto.
14830         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
14831         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
14832         (call_nonlocal_aix32): Relocate in the rs6000.md file.
14833         (call_nonlocal_aix64): Ditto.
14834
14835         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
14836         -mno-r11 documentation.
14837
14838 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
14839
14840         PR other/49658
14841         * doc/extend.texi (Compound Literals): Fix typo.
14842
14843 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
14844
14845         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
14846
14847 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
14848
14849         * configure.ac (plugin-version.h): Generate
14850         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
14851         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
14852         macros.
14853
14854         * configure: Regenerate.
14855
14856         * doc/plugins.texi (Building GCC plugins): Mention
14857         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
14858
14859 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
14860
14861         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
14862         * combine.c (make_extraction, gen_lowpart_or_truncate,
14863         apply_distributive_law, simplify_comparison,
14864         reg_truncated_to_mode, record_truncated_value): Use it.
14865         * cse.c (notreg_cost): Likewise.
14866         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
14867         * expr.c (convert_move, convert_modes): Likewise.
14868         * optabs.c (expand_binop, expand_unop): Likewise.
14869         * postreload.c (move2add_last_label): Likewise.
14870         * regmove.c (optimize_reg_copy_3): Likewise.
14871         * rtlhooks.c (gen_lowpart_general): Likewise.
14872         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
14873
14874 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
14875
14876         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
14877
14878 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
14879
14880         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
14881         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
14882         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
14883         (simplify_const_unary_operation, simplify_binary_operation_1,
14884         simplify_const_binary_operation, simplify_const_relational_operation):
14885         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
14886         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
14887         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
14888         simplify_shift_const_1, simplify_comparison): Likewise.
14889         * expr.c (convert_modes): Likewise.
14890         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
14891         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
14892         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
14893
14894         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
14895
14896 2011-07-06  Richard Guenther  <rguenther@suse.de>
14897
14898         PR tree-optimization/49645
14899         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
14900         register variables.
14901         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
14902         in type qualification here ...
14903         (copy_reference_ops_from_ref): ... not here.
14904         (vn_reference_lookup_3): ... or here.
14905         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
14906         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
14907
14908 2011-07-06  Ian Lance Taylor  <iant@google.com>
14909
14910         * doc/install.texi (Configuration): It's
14911         --enable-gnu-indirect-function, not --enable-indirect-function.
14912
14913 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
14914
14915         * simplify-rtx.c (simplify_const_binary_operation): Use the
14916         shift_truncation_mask hook instead of performing modulo by width.
14917         Compare against mode precision, not bitsize.
14918         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
14919         Use shift_truncation_mask instead of constructing the value manually.
14920
14921 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14922
14923         PR middle-end/47383
14924         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
14925         address computation and convert to address_mode if needed.
14926
14927 2011-07-06  Richard Guenther  <rguenther@suse.de>
14928
14929         * tree.c (build_common_tree_nodes_2): Merge with
14930         build_common_tree_nodes.
14931         * tree.h (build_common_tree_nodes): Adjust prototype.
14932         (build_common_tree_nodes_2): Remove.
14933         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
14934         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
14935
14936 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
14937
14938         PR tree-optimization/49618
14939         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
14940         t recurse on the decl.
14941         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
14942         return true if expr isn't known to be defined in current
14943         TU or some other LTO partition.
14944
14945 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
14946
14947         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
14948         override CASE_VALUES_THRESHOLD.
14949
14950         * stmt.c (toplevel): Include params.h.
14951         (case_values_threshold): Use the --param case-values-threshold
14952         value if non-zero, otherwise use machine dependent value.
14953         (expand_case): Use case_values_threshold.
14954
14955         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
14956
14957         * doc/invoke.texi (--param case-values-threshold): Document.
14958
14959 2011-07-05  Richard Henderson  <rth@redhat.com>
14960
14961         * dwarf2out.c (dwarf2out_cfi_label): Make static.
14962         (dwarf2out_flush_queued_reg_saves): Make static.
14963         (dwarf2out_reg_save): Remove.
14964         (dwarf2out_return_save): Remove.
14965         (dwarf2out_return_reg): Remove.
14966         (dwarf2out_reg_save_reg): Remove.
14967         (dwarf2out_def_cfa): Merge into ...
14968         (dwarf2out_frame_init): ... here.
14969         * dwarf2out.h, tree.h: Remove declarations as necessary.
14970
14971 2011-07-05  Richard Henderson  <rth@redhat.com>
14972
14973         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
14974         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
14975         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
14976         the alloc insn.
14977
14978         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
14979         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
14980         (process_epilogue): Don't call dwarf2out_def_cfa.
14981
14982         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
14983         indicate the return address save.
14984         (process_cfa_register): Likewise.
14985
14986         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
14987         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
14988
14989         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
14990         for ar.pfs save at alloc insn.
14991
14992 2011-07-05  Richard Henderson  <rth@redhat.com>
14993
14994         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
14995         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
14996         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
14997         stack pointer save.
14998         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
14999         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
15000         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
15001         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
15002
15003 2011-07-05  Richard Henderson  <rth@redhat.com>
15004
15005         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
15006         VUNSPEC_* constants here instead of via define_constants.
15007         (VUNSPEC_PEM): New constant.
15008         (procedure_entry_mask): New insn.
15009         (prologue): New expander.
15010         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
15011         (vax_expand_prologue): Rename from vax_output_function_prologue;
15012         emit rtl instead of text.
15013         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
15014         (print_operand): Add 'x' prefix.
15015
15016 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
15017
15018         PR middle-end/47715
15019         * calls.c (precompute_register_parameters): Promote the function
15020         argument before checking non-legitimate constant.
15021
15022 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
15023
15024         PR tree-optimization/47654
15025         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
15026         (lst_do_strip_mine_loop): Return an int.
15027         (lst_do_strip_mine): Same.
15028         (scop_do_strip_mine): Same.
15029         (scop_do_block): Loop blocking should strip-mine at least two loops.
15030         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
15031         (scop_do_interchange): Same.
15032         * graphite-poly.h (scop_do_interchange): Update declaration.
15033         (scop_do_strip_mine): Same.
15034
15035 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
15036
15037         * graphite-clast-to-gimple.c (precision_for_value): Removed.
15038         (precision_for_interval): Removed.
15039         (gcc_type_for_interval): Use mpz_sizeinbase.
15040
15041 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
15042
15043         * graphite-ppl.h (value_max): Correct computation of max.
15044
15045 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
15046
15047         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
15048
15049 2011-07-05  Richard Guenther  <rguenther@suse.de>
15050
15051         * c-decl.c (c_init_decl_processing): Defer building common
15052         tree nodes to c_common_nodes_and_builtins.
15053
15054 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
15055
15056         PR tree-optimization/49580
15057         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
15058         the loop's number of iterations.
15059         * tree-parloops.c (transform_to_exit_first_loop): Add the
15060         handling of the loop's number of iterations before the call
15061         to gimple_duplicate_sese_tail.
15062         Insert the stmt caclculating the new rhs of the loop's
15063         condition stmt to the preheader instead of iters_bb.
15064
15065 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
15066
15067         PR rtl-optimization/47449
15068         * fwprop.c (forward_propagate_subreg): Don't propagate hard
15069         register nor zero/sign extended hard register.
15070
15071 2011-07-05  Richard Guenther  <rguenther@suse.de>
15072
15073         PR tree-optimization/49518
15074         PR tree-optimization/49628
15075         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
15076         irrelevant and invariant data-references.
15077         (vect_analyze_data_ref_access): For invariant loads clear the
15078         group association.
15079
15080 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
15081
15082         PR rtl-optimization/49619
15083         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
15084         pass VOIDmode as op0_mode to recursive call, and return temp even
15085         when different from tor, just if it is not IOR of the original
15086         PLUS arguments.
15087
15088         PR rtl-optimization/49472
15089         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
15090         negating MULT, negate the second operand instead of first.
15091         (simplify_binary_operation_1) <case MULT>: If one operand is
15092         a NEG and the other is MULT, don't attempt to optimize by negation
15093         of the MULT operand if it only moves the NEG operation around.
15094
15095         PR debug/49602
15096         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
15097         get_current_def return value if it can't be trusted to be
15098         the current value of the variable in the current bb.
15099
15100 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
15101
15102         PR target/49600
15103         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
15104         general register to memory for !TARGET_INTER_UNIT_MOVES.
15105
15106 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
15107
15108         PR target/44643
15109         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
15110         instead of TREE_READONLY.
15111
15112 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
15113
15114         * doc/extend.texi (AVR Built-in Functions): Update documentation
15115         of __builtin_avr_fmul*.
15116         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
15117         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
15118         * config/avr/avr.md (fmul): Rename to fmul_insn.
15119         (fmuls): Rename to fmuls_insn.
15120         (fmulsu): Rename to fmulsu_insn.
15121         (fmul,fmuls,fmulsu): New expander.
15122         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
15123         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
15124         * config/avr/libgcc.S (__fmul): New function.
15125         (__fmuls): New function.
15126         (__fmulsu,__fmulsu_exit): New function.
15127
15128 2011-07-04  Richard Guenther  <rguenther@suse.de>
15129
15130         PR tree-optimization/49615
15131         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
15132         basic-block index check.
15133
15134 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
15135
15136         * longlong.h (count_leading_zeros, count_trailing_zeros,
15137         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
15138         resp. 64.
15139
15140 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
15141
15142         PR tree-optimization/49610
15143         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
15144         a basic block.
15145
15146 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
15147             Olivier Hainque  <hainque@adacore.com>
15148             Nicolas Setton  <setton@adacore.com>
15149
15150         * tree.h (TYPE_ARTIFICIAL): New flag.
15151         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
15152         the DIE of the type if it is artificial.
15153         (gen_array_type_die): Likewise.
15154         (gen_enumeration_type_die): Likewise.
15155         (gen_struct_or_union_type_die): Likewise.
15156         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
15157         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
15158
15159 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
15160
15161         * tree-object-size.c (pass_through_call): Handle
15162         BUILT_IN_ASSUME_ALIGNED.
15163
15164 2011-07-01  Martin Jambor  <mjambor@suse.cz>
15165
15166         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
15167
15168 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
15169
15170         PR middle-end/48016
15171         * explow.c (update_nonlocal_goto_save_area): Use proper mode
15172         for stack save area.
15173         * function.c (expand_function_start): Likewise.
15174
15175 2011-07-01  Richard Guenther  <rguenther@suse.de>
15176
15177         PR middle-end/49596
15178         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
15179         may have unknown refs.
15180
15181 2011-07-01  Kai Tietz  <ktietz@redhat.com>
15182
15183         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
15184
15185 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15186
15187         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
15188         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
15189         (Specific, mips-sgi-irix6): Likewise.
15190
15191 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15192
15193         PR libmudflap/49549
15194         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
15195
15196 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
15197
15198         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
15199         [idx]= and [idx1 ... idx2]= before initializers if needed for
15200         array initializers.
15201
15202 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
15203
15204         * config.gcc (score-*-elf): Remove score7.o.
15205         * config/score/t-score-elf: Likewise.
15206         * config/score/score.c: Merge score7 to score.c and
15207         remove forwarding functions.
15208         * config/score/score7.c: Deleted.
15209         * config/score/score7.h: Deleted.
15210
15211 2011-07-01  Richard Guenther  <rguenther@suse.de>
15212
15213         PR tree-optimization/49603
15214         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
15215
15216 2011-06-30  Martin Jambor  <mjambor@suse.cz>
15217
15218         * tree-sra.c (struct access): Rename total_scalarization to
15219         grp_total_scalarization
15220         (completely_scalarize_var): New function.
15221         (sort_and_splice_var_accesses): Set total_scalarization in the
15222         representative access.
15223         (analyze_access_subtree): Propagate total scalarization accross the
15224         tree, no holes in totally scalarized trees, simplify coverage
15225         computation.
15226         (analyze_all_variable_accesses): Call completely_scalarize_var instead
15227         of completely_scalarize_record.
15228
15229 2011-06-30  Richard Henderson  <rth@redhat.com>
15230
15231         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
15232         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
15233         * config/i386/i386.c: Don't include dwarf2out.h.
15234         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
15235         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
15236         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
15237         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
15238         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
15239
15240 2011-06-30  Richard Henderson  <rth@redhat.com>
15241
15242         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
15243         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
15244         * final.c (final_scan_insn): Look for it, and invoke
15245         dwarf2out_frame_debug before the insn if found.
15246
15247 2011-06-30  Richard Henderson  <rth@redhat.com>
15248
15249         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
15250         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
15251
15252 2011-06-30  Richard Henderson  <rth@redhat.com>
15253
15254         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
15255         Define a vector of this type.
15256         (regs_saved_in_regs): Use a VEC.
15257         (num_regs_saved_in_regs): Remove.
15258         (compare_reg_or_pc): New.
15259         (record_reg_saved_in_reg): Split out from...
15260         (dwarf2out_flush_queued_reg_saves): ... here.
15261         (clobbers_queued_reg_save): Update for VEC.
15262         (reg_saved_in): Likewise.
15263         (dwarf2out_frame_debug_init): Likewise.
15264         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
15265         (dwarf2out_frame_debug_cfa_register): Likewise.
15266
15267 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
15268
15269         PR tree-optimization/49572
15270         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
15271         type of the RHS instead of that of the LHS for the expression type.
15272
15273 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
15274
15275         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
15276         unconditionally.
15277
15278 2011-06-30  Richard Guenther  <rguenther@suse.de>
15279
15280         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
15281         * tree-ssa-structalias.c (create_variable_info_for): Do not
15282         add initial constraints for non-var-decls.  Properly handle
15283         globals in other ltrans partitions.
15284         (intra_create_variable_infos): Manually create constraints for
15285         the fake no-alias parameter.
15286         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
15287         and assert there are no clones.
15288
15289 2011-06-30  Richard Guenther  <rguenther@suse.de>
15290
15291         PR tree-optimization/46787
15292         * tree-data-ref.c (dr_address_invariant_p): Remove.
15293         (find_data_references_in_stmt): Invariant accesses are ok now.
15294         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
15295         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
15296         invariant loads.
15297
15298 2011-06-30  Martin Jambor  <mjambor@suse.cz>
15299
15300         PR tree-optimization/49094
15301         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
15302         (build_accesses_from_assign): Use it.
15303
15304 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
15305
15306         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
15307         handling of BUILT_IN_ASSUME_ALIGNED.
15308
15309         PR debug/49364
15310         * dwarf2out.c (output_abbrev_section): Don't return early
15311         if abbrev_die_table_in_use is 1.
15312         (dwarf2out_finish): Instead don't call output_abbrev_section
15313         nor emit abbrev_section_label in that case.
15314
15315 2011-06-30  Nick Clifton  <nickc@redhat.com>
15316
15317         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
15318         for the V850E.
15319
15320 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
15321
15322         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
15323         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
15324
15325 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
15326
15327         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
15328         both pattern and original statements if necessary.
15329         (vect_transform_loop): Likewise.
15330         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
15331         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
15332         Mark the pattern statement only if the original statement doesn't
15333         have its own uses.
15334         (process_use): Call vect_mark_relevant with additional parameter.
15335         (vect_mark_stmts_to_be_vectorized): Likewise.
15336         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
15337         (vect_analyze_stmt): Handle both pattern and original statements
15338         if necessary.
15339         (vect_transform_stmt): Don't store vectorized pattern statement
15340         in the original statement.
15341         (vect_is_simple_use_1): Use related pattern statement only if the
15342         original statement is irrelevant.
15343         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
15344
15345 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
15346
15347         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
15348         option.
15349         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
15350         entry.
15351         (TARGET_AVX128_OPTIMAL): New definition.
15352         * config/i386/i386.c (initial_ix86_tune_features): Initialize
15353         X86_TUNE_AVX128_OPTIMAL entry.
15354         (ix86_option_override_internal): Enable the generation
15355         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
15356         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
15357         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
15358
15359 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
15360
15361         PR tree-optimization/49539
15362         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
15363         names by means of stmt_references_abnormal_ssa_name.
15364         (associate_plusminus): Call can_propagate_from before propagating
15365         from definition statements.
15366         (ssa_forward_propagate_and_combine): Remove superfluous newline.
15367
15368 2011-06-29  Richard Guenther  <rguenther@suse.de>
15369
15370         * doc/invoke.texi: Document -scev dump modifier.
15371         * tree-pass.h (TDF_SCEV): New dump flag.
15372         * tree-dump.c (dump_option_value_in): Add scev.
15373         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
15374         * tree-scalar-evolution.c: Likewise.
15375
15376 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
15377
15378         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
15379         (cxa_type_match): Correct declaration.
15380         (__gnu_unwind_pr_common): Reconstruct additional indirection
15381         when __cxa_type_match returns succeeded_with_ptr_to_base.
15382
15383 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15384
15385         PR rtl-optimization/49114
15386         * reload.c (struct replacement): Remove SUBREG_LOC member.
15387         (push_reload): Do not set it.
15388         (push_replacement): Likewise.
15389         (subst_reload): Remove dead code.
15390         (copy_replacements): Remove assertion.
15391         (copy_replacements_1): Do not handle SUBREG_LOC.
15392         (move_replacements): Likewise.
15393         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
15394         Detect subregs via recursive descent instead of via SUBREG_LOC.
15395
15396 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
15397
15398         * config/avr/avr.c (avr_encode_section_info): Dispatch to
15399         default_encode_section_info.
15400
15401 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
15402
15403         PR tree-optimization/49545
15404         * builtins.c (get_object_alignment_1): Update function comment.
15405         Do not use DECL_ALIGN for functions, but test
15406         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
15407         * fold-const.c (get_pointer_modulus_and_residue): Don't check
15408         for functions here.
15409         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
15410
15411 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
15412
15413         PR debug/49567
15414         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
15415         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
15416
15417 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
15418
15419         PR target/34734
15420         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
15421         about uninitialized data attributed 'progmem' from here...
15422         (avr_encode_section_info): ...to this new function.
15423         (TARGET_ENCODE_SECTION_INFO): New define.
15424         (avr_section_type_flags): For data in ".progmem.data", remove
15425         section flag SECTION_WRITE.
15426
15427 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
15428
15429         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
15430         _xmulhisi3_exit.
15431         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
15432         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
15433         (__umulhisi3): Ditto.
15434         * config/avr/avr.md (mulhisi3): New insn expender.
15435         (umulhisi3): New insn expender.
15436         (*mulhisi3_call): New insn.
15437         (*umulhisi3_call): New insn.
15438
15439 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
15440
15441         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
15442
15443 2011-06-28  Richard Henderson  <rth@redhat.com>
15444
15445         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
15446         all code and arguments that handled pushes.  Update all callers.
15447
15448 2011-06-28  Richard Henderson  <rth@redhat.com>
15449
15450         * config/arm/arm.c (arm_output_function_prologue): Don't call
15451         thumb1_output_function_prologue.
15452         (arm_expand_prologue): Avoid dead store.
15453         (number_of_first_bit_set): Use ctz_hwi.
15454         (thumb1_emit_multi_reg_push): New.
15455         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
15456         to emit the entire prologue as rtl.
15457         (thumb1_output_interwork): Split out from
15458         thumb1_output_function_prologue.
15459         (thumb1_output_function_prologue): Remove.
15460         (arm_attr_length_push_multi): Handle thumb1.
15461         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
15462         (prologue_thumb1_interwork): New.
15463         (*push_multi): Allow thumb1; use push_mult_memory_operand.
15464         * config/arm/predicates.md (push_mult_memory_operand): New.
15465
15466 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
15467
15468         * config/sparc/sync.md (*stbar): Delete.
15469         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
15470
15471 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
15472
15473         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
15474
15475 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15476
15477         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
15478         (TARGET_64BIT_DEFAULT): Define.
15479         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
15480         of tm_file.
15481         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
15482
15483 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
15484
15485         * common.opt (in_lto_p): New Variable entry.
15486         * flags.h (in_lto_p): Move to common.opt.
15487         * gcc.c: Include params.h.
15488         (set_option_handlers): Also use common_handle_option and
15489         target_handle_option.
15490         (main): Call global_init_params, finish_params and init_options_struct.
15491         * opts.c (debug_type_names): Move from toplev.c.
15492         (print_filtered_help): Access quiet_flag through opts pointer.
15493         (common_handle_option): Return early in the driver for some options.
15494         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
15495         opts pointer.
15496         * toplev.c (in_lto_p): Move to common.opt.
15497         (debug_type_names): Move to opts.c.
15498         * Makefile.in (OBJS): Remove opts.o.
15499         (OBJS-libcommon-target): Add opts.o.
15500         (gcc.o): Update dependencies.
15501
15502 2011-06-28  Kai Tietz  <ktietz@redhat.com>
15503
15504         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
15505
15506 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15507
15508         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
15509         with '=' constraint modifier.
15510         (*divdf3_vfp): Likewise.
15511         ("*mulsf3_vfp"): Likewise.
15512         ("*muldf3_vfp"): Likewise.
15513         ("*mulsf3negsf_vfp"): Likewise.
15514         ("*muldf3negdf_vfp"): Likewise.
15515
15516 2011-06-28  Nick Clifton  <nickc@redhat.com>
15517
15518         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
15519         relaxation when performing an incremental link.
15520
15521 2011-06-28  Kai Tietz  <ktietz@redhat.com>
15522
15523         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
15524         within BB from last to first.
15525
15526 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
15527
15528         * genattr-common.c: New.  Based on genattr.c.
15529         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
15530         (MOSTLYCLEANFILES): Add insn-attr-common.h.
15531         (opts.o): Update dependencies.
15532         (.PRECIOUS): Add insn-attr-common.h.
15533         (simple_rtl_generated_h): Add insn-attr-common.h.
15534         (build/genattr-common.o): New.
15535         (genprogrtl): Add attr-common.
15536         * genattr.c (main): Include insn-attr-common.h.  Don't generate
15537         definitions of DELAY_SLOTS or INSN_SCHEDULING.
15538         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
15539
15540 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
15541
15542         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
15543         avr-*-* and avr-*-rtems* targets.
15544
15545         * config/avr/elf.h: New file.
15546         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
15547         (TARGET_ASM_SELECT_SECTION): Define.
15548         (INIT_SECTION_ASM_OP): Undefine.
15549         (FINI_SECTION_ASM_OP): Undefine.
15550         (READONLY_DATA_SECTION_ASM_OP): Undefine.
15551         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
15552         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
15553         * config/avr/avr.h:
15554         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
15555         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
15556         (MAX_OFILE_ALIGNMENT): Move to elf.h.
15557         (STRING_LIMIT): Move to elf.h.
15558         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
15559         (ASM_DECLARE_OBJECT_NAME): Remove.
15560         (ESCAPES): Remove.
15561         (ASM_OUTPUT_SKIP): Remove.
15562         (DWARF2_DEBUGGING_INFO): Remove.
15563         (OBJECT_FORMAT_ELF): Remove.
15564         (USER_LABEL_PREFIX): Remove.
15565         (ASM_OUTPUT_EXTERNAL): Remove.
15566         (ASM_OUTPUT_ASCII): Remove.
15567         (TYPE_ASM_OP): Remove.
15568         (SIZE_ASM_OP): Remove.
15569         (WEAK_ASM_OP): Remove.
15570         (STRING_ASM_OP): Remove.
15571         (SET_ASM_OP): Remove.
15572         (ASM_WEAKEN_LABEL): Remove.
15573         (TYPE_OPERAND_FMT): Remove.
15574         (ASM_DECLARE_FUNCTION_SIZE): Remove.
15575         (ASM_FINISH_DECLARE_OBJECT): Remove.
15576         (NO_DOLLAR_IN_LABEL): Remove.
15577         (ASM_GENERATE_INTERNAL_LABEL): Remove.
15578         (ASM_OUTPUT_CASE_LABEL): Remove.
15579         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
15580         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
15581         (gas_output_ascii): Remove.
15582         (gas_output_limited_string): Remove.
15583         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
15584         * config/avr/avr-protos.h
15585         (gas_output_ascii): Remove prototye.
15586         (gas_output_limited_string): Remove prototype.
15587
15588 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
15589
15590         PR target/48637
15591         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
15592         asm operands.
15593
15594 2011-06-27  Jan Hubicka  <jh@suse.cz>
15595
15596         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
15597         node instead of references in node.
15598
15599 2011-06-27  Richard Henderson  <rth@redhat.com>
15600
15601         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
15602         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
15603         inside ifdef.
15604
15605 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
15606
15607         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
15608
15609         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
15610         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
15611         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
15612         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
15613         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
15614         (evaluate_stmt, execute_fold_all_builtins): Handle
15615         BUILT_IN_ASSUME_ALIGNED.
15616         * tree-ssa-dce.c (propagate_necessity): Likewise.
15617         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
15618         call_may_clobber_ref_p_1): Likewise.
15619         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
15620         (expand_builtin_assume_aligned): New function.
15621         * doc/extend.texi (__builtin_assume_aligned): Document.
15622
15623         PR debug/49544
15624         * cselib.c (promote_debug_loc): If cselib_preserve_constants
15625         and l has two DEBUG_INSN owned locs instead of just one, adjust
15626         the second location's setting_insn too.
15627
15628 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15629
15630         PR libmudflap/38738
15631         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
15632
15633 2011-06-27  Nick Clifton  <nickc@redhat.com>
15634
15635         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
15636         bit position of highest bit set into a count of the high zero bits.
15637
15638 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
15639
15640         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
15641
15642 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
15643
15644         PR lto/48492
15645         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
15646         to a NULL parent.
15647
15648 2011-06-27  Richard Guenther  <rguenther@suse.de>
15649
15650         PR tree-optimization/49394
15651         * passes.c (execute_one_pass): Restore current_pass after
15652         applying IPA transforms.
15653
15654 2011-06-27  Kai Tietz  <ktietz@redhat.com>
15655
15656         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
15657         out of type precision after operation.
15658         (find_bswap): Take for limit value the integer auto-promotion
15659         into account.
15660
15661 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
15662
15663         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
15664         forward scan as well.
15665
15666 2011-06-27  Tristan Gingold  <gingold@adacore.com>
15667
15668         PR target/44241
15669         * config/vms/vms-protos.h: New file.
15670         * config/vms/vms-crtlmap.map: New file.
15671         * config/vms/vms.c: New file.
15672         * config/vms/make-crtlmap.awk: New file.
15673         * config/vms/vms-crtl.h: File removed.
15674         * config/vms/vms-crtl-64.h: File removed.
15675         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
15676         * config/alpha/vms64.h: Do not include vms-crtl-64.h
15677         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
15678         clear some builtins on VMS.  Calls vms_patch_builtins.
15679         (avms_asm_output_external): Remove.
15680         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
15681         (struct crtl_name_spec): Remove
15682         (DO_CTRL_NAMES): Remove.
15683         * config/ia64/vms.h (struct crtl_name_spec): Remove
15684         (DO_CTRL_NAMES): Remove.
15685         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
15686         clear some builtins on VMS.  Calls vms_patch_builtins.
15687         (ia64_asm_output_external): Remove DO_CRTL_NAME.
15688         * config/ia64/vms64.h: Do not include vms-crtl-64.h
15689         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
15690
15691 2011-06-27  Tristan Gingold  <gingold@adacore.com>
15692
15693         * config/alpha/alpha.c (alpha_end_function): Always generate .end
15694         directive on VMS.
15695
15696 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
15697
15698         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
15699         the function receives nonlocal gotos.
15700
15701 2011-06-27  Richard Guenther  <rguenther@suse.de>
15702
15703         PR tree-optimization/49536
15704         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
15705         For non-scalar inner types use a scalar type according to
15706         the scalar inner mode.
15707
15708 2011-06-27  Richard Guenther  <rguenther@suse.de>
15709
15710         PR tree-optimization/49365
15711         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
15712
15713 2011-06-27  Richard Guenther  <rguenther@suse.de>
15714
15715         PR tree-optimization/49169
15716         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
15717         the alignment of function decls.
15718
15719 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
15720
15721         PR target/47997
15722         * config/darwin.c (darwin_mergeable_string_section): Place string
15723         constants in '.cstring' rather than '.const' when CF/NSStrings are
15724         active.
15725
15726 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
15727
15728         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
15729         (emit_save_register_window): Likewise.
15730         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
15731         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
15732         Swap back %o7/%i7 in register naming.
15733
15734 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
15735
15736         PR driver/49371
15737         * config/darwin.c (darwin_override_options): Improve warning when
15738         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
15739         is given with fpie/fPIE.
15740         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
15741         * config/darwin9.h (PIE_SPEC): New.
15742
15743 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
15744
15745         * timevar.c (timevar_print): Increase width for display of timevar
15746         name.
15747
15748 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
15749
15750         PR c++/46400
15751         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
15752         instead of TYPE_CHAIN for chain_next for types.
15753
15754 2011-06-24  Richard Henderson  <rth@redhat.com>
15755
15756         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
15757         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
15758         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
15759         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
15760         (sparc_flat_expand_prologue): Emit individual instructions
15761         instead of one of the above.
15762
15763 2011-06-24  Easwaran Raman  <eraman@google.com>
15764
15765         PR rtl-optimization/49429
15766         PR target/49454
15767         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
15768         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
15769         used to copy y into x.
15770         * calls.c (initialize_argument_information): Mark
15771         an argument addressable if it is passed by invisible reference.
15772         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
15773         if it is passed by reference.
15774
15775 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15776
15777         PR rtl-optimization/49504
15778         * rtlanal.c (nonzero_bits1): Properly handle addition or
15779         subtraction of a pointer in Pmode if pointers extend unsigned.
15780         (num_sign_bit_copies1): Likewise.
15781
15782 2011-06-24  Martin Jambor  <mjambor@suse.cz>
15783
15784         PR tree-optimizations/49516
15785         * tree-sra.c (sra_modify_assign): Choose the safe path for
15786         aggregate copies if we also did scalar replacements.
15787
15788 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15789
15790         PR target/49335
15791         * config/arm/predicates.md (add_operator): New.
15792         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
15793
15794 2011-06-24  Andi Kleen  <ak@linux.intel.com>
15795
15796         * tree-sra.c (type_internals_preclude_sra_p): Add msg
15797         parameter. Split up ifs and report reason in *msg.
15798         (reject): Add.
15799         (find_var_candiate): Add msg variable.
15800         Split up ifs and report reason to reject.
15801         (find_param_candidates): Add msg variable.
15802         Pass msg to type_internals_preclude_sra_p.
15803
15804 2011-06-23  Jeff Law  <law@redhat.com>
15805
15806         PR middle-end/48770
15807         * reload.h (reload): Change to return a bool.
15808         * ira.c (ira): If requested by reload, run a fast DCE pass after
15809         reload has completed.  Fix comment typo.
15810         * reload1.c (need_dce): New file scoped static.
15811         (reload): Set reload_completed here.  Return whether or not a DCE
15812         pass after reload is needed.
15813         (delete_dead_insn): Set need_dce as needed.
15814
15815         PR middle-end/49465
15816         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
15817         to detect threading through joiner block.  If there was already
15818         an edge to the new target, then do not change the PHI nodes.
15819
15820 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
15821
15822         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
15823         get_pointer_alignment to see if base isn't sufficiently aligned.
15824
15825 2011-06-23  Jan Hubicka  <jh@suse.cz>
15826
15827         PR tree-optimize/49373
15828         * tree-pass.h (all_late_ipa_passes): Declare.
15829         * cgraphunit.c (init_lowered_empty_function): Fix properties.
15830         (cgraph_optimize): Execute late passes; remove unreachable funcions
15831         after materialization.
15832         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
15833         LTOing.
15834         * passes.c (all_late_ipa_passes): Declare.
15835         (dump_passes, register_pass): Handle late ipa passes.
15836         (init_optimization_passes): Move ipa_pta to late passes; schedule
15837         fixup_cfg at beggining of all_passes.
15838         (apply_ipa_transforms): New function.
15839         (execute_one_pass): When doing simple ipa pass, apply all transforms.
15840
15841 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
15842
15843         * params.c: Include common/common-target.h.  Don't include tm.h.
15844         (lang_independent_params): Move from toplev.c.
15845         (global_init_params): New.
15846         * params.h (global_init_params): Declare.
15847         * target.def (default_params): Move to common-target.def.
15848         * toplev.c (lang_independent_options): Remove.
15849         (lang_independent_params): Move to params.c.
15850         (general_init): Use global_init_params.
15851         * common/common-target.def (option_default_params): Move from
15852         target.def.
15853         * common/config/ia64/ia64-common.c: Include params.h.
15854         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
15855         from ia64.c.
15856         * common/config/rs6000/rs6000-common.c: Include params.h.
15857         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
15858         from rs6000.c.
15859         * common/config/sh/sh-common.c: Include params.h.
15860         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
15861         from sh.c.
15862         * common/config/spu/spu-common.c: Include params.h.
15863         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
15864         from spu.c.
15865         * config/ia64/ia64.c (ia64_option_default_params,
15866         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
15867         * config/rs6000/rs6000.c (rs6000_option_default_params,
15868         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
15869         * config/sh/sh.c (sh_option_default_params,
15870         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
15871         * config/spu/spu.c (spu_option_default_params,
15872         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
15873         * Makefile.in (OBJS): Remove params.o.
15874         (OBJS-libcommon-target): Add params.o.
15875         (params.o, $(common_out_object_file)): Update dependencies.
15876         * doc/tm.texi: Regenerate.
15877
15878 2011-06-23  Alan Modra  <amodra@gmail.com>
15879
15880         PR bootstrap/49383
15881         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
15882         invocation for 2011-06-09 changes.
15883
15884 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
15885
15886         PR libgomp/49490
15887         * omp-low.c (expand_omp_for_static_nochunk): Only
15888         use n ceil/ nthreads size for the first n % nthreads threads in the
15889         team instead of all threads except for the last few ones which
15890         get less work or none at all.
15891
15892         PR debug/49496
15893         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
15894         uses.
15895
15896 2011-06-22  Richard Guenther  <rguenther@suse.de>
15897
15898         PR tree-optimization/49493
15899         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
15900         Refer to the alias target of variables.
15901         (associate_varinfo_to_alias_1): Remove.
15902         (ipa_pta_execute): Do not associate aliases with anything.
15903         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
15904         (cgraph_function_node): Likewise.
15905         (cgraph_function_or_thunk_node): Likewise.
15906         (varpool_variable_node): Likewise.
15907
15908 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
15909
15910         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
15911         * config.gcc (arm*-*-linux*): Default to gnu tls.
15912         (arm*-*-*): Add --with-tls option.
15913         (all_defaults): Add 'tls'.
15914
15915 2011-06-22  Richard Henderson  <rth@redhat.com>
15916
15917         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
15918         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
15919         (dwarf2out_frame_debug_cfa_window_save): Rename from
15920         dwarf2out_window_save; make static.
15921         * tree.h (dwarf2out_window_save): Don't declare.
15922
15923         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
15924         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
15925         (emit_save_register_window): Rename from gen_save_register_window;
15926         emit the insn and add REG_CFA_* notes.
15927         (sparc_expand_prologue): Update to match.
15928         * config/sparc/sparc.md (save_register_window_1): Simplify from
15929         save_register_window<P:mode>.
15930
15931 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
15932
15933         PR target/49497
15934         * config/i386/i386.md (*lea_general_2): Always allow SImode.
15935         (*lea_general_2_zext): Likewise.
15936         (imul to lea peepholes): Use const359_operand and check
15937         TARGET_PARTIAL_REG_STALL.
15938
15939         * config/i386/predicates.md (const359_operand): New.
15940
15941 2011-06-22  Michael Matz  <matz@suse.de>
15942
15943         * cgraphunit.c (assemble_thunk): Use correct return type.
15944
15945 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
15946             Dmitry Melnik  <dm@ispras.ru>
15947
15948         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
15949         (neon_output_shift_immediate): Ditto.
15950         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
15951         prototype.
15952         (neon_output_shift_immediate): Ditto.
15953         * config/arm/neon.md (vashl<mode>3): Modified constraint.
15954         (vashr<mode>3_imm): New insn pattern.
15955         (vlshr<mode>3_imm): Ditto.
15956         (vashr<mode>3): Modified constraint.
15957         (vlshr<mode>3): Ditto.
15958         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
15959         predicate.
15960         (imm_for_neon_rshift_operand): Ditto.
15961         (imm_lshift_or_reg_neon): Ditto.
15962         (imm_rshift_or_reg_neon): Ditto.
15963
15964         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
15965
15966 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
15967
15968         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
15969         builtin calls even if likelyvalue is not CONSTANT.
15970         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
15971         Return get_value_for_expr of first operand
15972         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
15973         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15974         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
15975         their non-checking counterparts.
15976         (call_may_clobber_ref_p_1): Likewise.
15977         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
15978         like their non-checking counterparts.
15979         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15980         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
15981         like their non-checking counterparts.
15982         (find_func_clobbers): Likewise.
15983         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
15984         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
15985
15986         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
15987         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
15988         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
15989         of base type reference as argument.
15990         (resolve_addr_in_expr): Likewise.  Fix keep computation.
15991         (convert_descriptor_to_signed): Renamed to...
15992         (convert_descriptor_to_mode): ... this.  For wider types convert to
15993         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
15994         (typed_binop): New function.
15995         (scompare_loc_descriptor, ucompare_loc_descriptor,
15996         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
15997         default to unsigned type instead of signed.
15998
15999         PR debug/47858
16000         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
16001         (gimple_build_debug_source_bind_stat): New prototype.
16002         (gimple_build_debug_source_bind): Define.
16003         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
16004         gimple_debug_source_bind_get_value,
16005         gimple_debug_source_bind_get_value_ptr,
16006         gimple_debug_source_bind_set_var,
16007         gimple_debug_source_bind_set_value): New inlines.
16008         * gimple.c (gimple_build_debug_source_bind_stat): New function.
16009         * gimple-pretty-print.c (dump_gimple_debug): Handle
16010         GIMPLE_DEBUG_SOURCE_BIND.
16011         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
16012         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16013         * tree-parloops.c (eliminate_local_variables,
16014         separate_decls_in_region): Likewise.
16015         (separate_decls_in_region_debug): Renamed from
16016         separate_decls_in_region_debug_bind.  Handle
16017         gimple_debug_source_bind_p.
16018         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
16019         prototypes.
16020         (DECL_HAS_DEBUG_ARGS_P): Define.
16021         (struct tree_function_decl): Add has_debug_args_flag field.
16022         * tree.c (debug_args_for_decl): New variable.
16023         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
16024         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
16025         (rewrite_debug_stmt_uses): New function.
16026         (rewrite_stmt): Use it to rewrite debug stmt uses.
16027         * rtl.def (DEBUG_PARAMETER_REF): New.
16028         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
16029         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
16030         DEBUG_PARAMETER_REF.
16031         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
16032         * print-rtl.c (print_rtx): Likewise.
16033         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
16034         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
16035         debug stmts in the first bb.
16036         * tree-inline.c (remap_ssa_name): If remapping default def
16037         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
16038         a source bind debug stmt.
16039         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
16040         (maybe_move_debug_stmts_to_successors): Likewise.
16041         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
16042         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
16043         debug args vector from old_decl to new_decl.
16044         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
16045         or modified parameters, add debug bind stmts before call
16046         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
16047         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
16048         on DECL_DEBUG_EXPRs from debug args vector.
16049         (expand_debug_source_expr): New function.
16050         (expand_debug_locations): Use it for source bind insns.
16051         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
16052         * var-tracking.c (prepare_call_arguments): Add debug args
16053         to call_arguments if any.
16054         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
16055         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
16056         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
16057         (get_ref_die_offset, parameter_ref_descriptor): New functions.
16058         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
16059         (gen_subprogram_die): Handle parameters identified by
16060         DEBUG_PARAMETER_REF.
16061
16062 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
16063
16064         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
16065         * doc/install.texi (Configuration): Document --with-tls.
16066         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
16067         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
16068         (arm_tls_descseq_addr): New.
16069         (legitimize_tls_address): Add tlsdesc support.
16070         (arm_cannot_copy_insn_p): Check for tlscall.
16071         (arm_emit_tls_decoration): Likewise.
16072         * config/arm/arm.h (TARGET_GNU2_TLS): New.
16073         (OPTION_DEFAULT_SPECS): Add with-tls support.
16074         * config/arm/arm.md (R1_REGNUM): Define.
16075         (tlscall): New.
16076         * config/arm/arm.opt (tls_type): New enumeration type and values.
16077         (mtls-dialect): New switch.
16078         * config/arm/arm-opts.h (enum tls_type): New.
16079
16080 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
16081
16082         * attribs.c (register_attribute): Added assert to check that all
16083         attribute specs are registered with a name that is not empty and
16084         does not start with '_'.
16085         (decl_attributes): Avoid the lookup of the "naked" attribute spec
16086         if the function has no attributes.
16087         * tree.c (is_attribute_with_length_p): Removed.
16088         (is_attribute_p): Removed.
16089         (private_is_attribute_p): New.
16090         (private_lookup_attribute): New.
16091         (lookup_attribute): Removed.
16092         (lookup_ident_attribute): New.
16093         (remove_attribute): Require the first argument to be in the form
16094         'text', not '__text__'.  Updated asserts.
16095         (merge_attributes): Use lookup_ident_attributes instead of
16096         lookup_attribute.
16097         (merge_dllimport_decl_attributes): Use remove_attribute.
16098         (attribute_list_contained): Likewise.
16099         (attribute_list_equal): Immediately return 1 if the arguments are
16100         identical pointers.
16101         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
16102         'int'.  Require the first argument to be in the form 'text', not
16103         '__text__'.  Require the second argument to be an identifier.
16104         (lookup_attribute): Made inline.  Require the first argument to be
16105         in the form 'text', not '__text__'.
16106         (private_is_attribute_p, private_lookup_attribute): New.
16107         Updated comments.
16108
16109 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
16110
16111         * builtins.c: Add sync_ or SYNC__ to builtin names.
16112         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
16113         * omp-low.c: Add sync_ or SYNC__ to builtin names.
16114
16115 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
16116
16117         PR target/33049
16118         * config/avr/avr.md (extzv): New expander.
16119         (*extzv): New insn.
16120         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
16121         * config/avr/constraints.md (C04): New constraint.
16122         * doc/md.texi (Machine Constraints): Document it.
16123
16124 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
16125
16126         PR middle-end/49489
16127         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
16128         unsignedp argument instead of 1 for clrsb_optab.
16129         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
16130         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
16131         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
16132         * optabs.c (widen_leading): Call widen_operand and expand_unop
16133         with 0 as unsignedp argument instead of 1 for clrsb_optab.
16134         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
16135
16136 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
16137
16138         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
16139
16140 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
16141
16142         * gensupport.c (add_define_attr): New static function.
16143         (is_predicable): Allow multi-alternative lists for the "predicable"
16144         attribute.
16145         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
16146         (process_one_cond_exec): Call alter_attrs_for_insn.
16147         * doc/md.texi (Defining Attributes): Mention some standard names.
16148         (Conditional Execution): Update documentation for "predicable".
16149
16150         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
16151         __builtin_clrsbll): Document.
16152         * doc/rtl.texi (clrsb): New entry.
16153         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
16154         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
16155         (expand_unop): Handle clrsb_optab.
16156         (init_optabs): Initialize it.
16157         * optabs.h (enum optab_index): New entry OTI_clrsb.
16158         (clrsb_optab): Define.
16159         * genopinit.c (optabs): Add an entry for it.
16160         * builtins.c (expand_builtin): Handle clrsb builtin functions.
16161         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
16162         BUILT_IN_CLRSBLL): New.
16163         * rtl.def (CLRSB): New code.
16164         * dwarf2out.c (mem_loc_descriptor): Handle it.
16165         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
16166         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
16167         and popcount.
16168         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
16169         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
16170         (__ctzDI2): Move declaration.
16171         * config/bfin/bfin.md (clrsbsi2): New expander.
16172         (signbitssi2): Use the CLRSB rtx.
16173         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
16174         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
16175
16176 2011-06-21  Richard Guenther  <rguenther@suse.de>
16177
16178         * ipa-inline-transform.c (inline_transform): Fix previous change.
16179
16180 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
16181
16182         PR tree-optimization/49478
16183         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
16184         with constant operand.
16185
16186 2011-06-21  Richard Guenther  <rguenther@suse.de>
16187
16188         * ipa-inline-transform.c (inline_transform): Fix typo.
16189
16190 2011-06-21  Richard Guenther  <rguenther@suse.de>
16191
16192         PR tree-optimization/49483
16193         * tree-vect-stmts.c (vectorizable_assignment): Also handle
16194         VIEW_CONVERT_EXPR conversions.
16195
16196 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
16197
16198         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
16199         * config/avr/avr-tables.opt: New file (generated).
16200         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
16201         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
16202         avr-mcus.def.
16203         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
16204         (avr_option_override): Don't process -mmcu= argument here.  Set
16205         avr_current_device using avr_mcu_index.
16206         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
16207         * config/avr/avr.opt (mmcu=): Use Enum.
16208         * config/avr/t-avr (avr-devices.o): Update dependencies.
16209         ($(srcdir)/config/avr/avr-tables.opt): New.
16210         * target.def (help): Remove.
16211         * doc/tm.texi.in (TARGET_HELP): Remove.
16212         * doc/tm.texi: Regenerate.
16213         * opts.c: Don't include target.h.
16214         (common_handle_option): Don't call targetm.help.
16215         * system.h (TARGET_HELP): Poison.
16216         * Makefile.in (opts.o): Update dependencies.
16217
16218 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16219
16220         * config/usegld.h: New file.
16221         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
16222         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
16223         (LIB_SPEC): Likewise.  Search /lib.
16224         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
16225         (RDYNAMIC_SPEC): Handle GNU ld.
16226         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
16227         Define.
16228         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
16229         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
16230         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
16231         (STACK_CHECK_STATIC_BUILTIN): Define.
16232         * config/sol2.opt (compat-bsd): Remove.
16233         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
16234         * config/sol2-bi.h: New file.
16235         * config/sol2-gld.h: Remove.
16236         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
16237         (NO_DBX_BNSYM_ENSYM): Remove.
16238         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
16239         (STACK_CHECK_STATIC_BUILTIN): Remove.
16240         Test USE_GLD instead of TARGET_GNU_LD.
16241         * config/i386/sol2-10.h: Rename to ...
16242         * config/i386/sol2-bi.h .. this.
16243         (SUBTARGET_EXTRA_SPECS): Redefine.
16244         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
16245         (MULTILIB_DEFAULTS): Remove.
16246         (DEFAULT_ARCH32_P): Define.
16247         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
16248         (ARCH64_SUBDIR): Define.
16249         Test USE_GLD instead of TARGET_GNU_LD.
16250         (I386_EMULATION): Rename to ...
16251         (ARCH32_EMULATION): ... this.
16252         (X86_64_EMULATION): Rename to ...
16253         (ARCH64_EMULATION): ... this.
16254         (TARGET_LD_EMULATION): Remove.
16255         (LINK_ARCH_SPEC): Remove.
16256         * config/i386/sol2-gas.h: Remove.
16257         * config/i386/t-sol2-10: Rename to ...
16258         * config/i386/t-sol2-64: ... this.
16259         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
16260         (AS_SPARC64_FLAG): Define.
16261         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
16262         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
16263         depending on TARGET_CPU_DEFAULT.
16264         (CPP_CPU_SPEC): Redefine.
16265         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
16266         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
16267         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
16268         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
16269         ASM_ARCH_DEFAULT_SPEC): Redefine.
16270         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16271         LINK_ARCH_DEFAULT_SPEC.
16272         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
16273         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
16274         (ARCH64_SUBDIR): Define.
16275         (LINK_ARCH64_SPEC): Redefine.
16276         (CC1_SPEC): Redefine.
16277         (OPTION_DEFAULT_SPECS): Redefine.
16278         (MULTILIB_DEFAULTS): Define.
16279         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
16280         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
16281         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
16282         (NO_DBX_BNSYM_ENSYM): Remove.
16283         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
16284         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
16285         (TARGET_ASM_NAMED_SECTION): Likewise.
16286         (STACK_CHECK_STATIC_BUILTIN): Remove.
16287         * config/sparc/sol2-bi.h: Remove.
16288         * config/sparc/sol2-gas-bi.h: Remove.
16289         * config/sparc/sol2-gas.h: Remove.
16290         * config/sparc/sol2-gld-bi.h: Remove.
16291         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
16292         common parts ...
16293         (*-*-solaris2*): ... here.
16294
16295 2011-06-21  Christian Bruel  <christian.bruel@st.com>
16296
16297         PR other/43564
16298         * ipa-inline.c (can_inline_edge_p): Check
16299         !DECL_DISREGARD_INLINE_LIMITS.
16300
16301 2011-06-21  Christian Bruel  <christian.bruel@st.com>
16302
16303         PR middle-end/49139
16304         * cgraphunit.c (process_function_and_variable_attributes): warn when
16305         always_inline functions that are not inline.
16306         * ipa-inline-transform.c (inline_transform): Always call
16307         optimize_inline.
16308         * tree-inline.c (tree_inlinable_function_p): Use error instead
16309         of sorry.
16310         (expand_call_inline): Likewise.
16311
16312 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
16313
16314         * Makefile.in (dg_target_exps): Set.
16315         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
16316         instead of 7, try to divide it more evenly.
16317
16318 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
16319
16320         PR target/49089
16321         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
16322         (avx256_split_unaligned_store): New definition.
16323         (ix86_option_override_internal): Enable avx256 unaligned load/store
16324         splitting only when avx256_split_unaligned_load/store is set.
16325
16326 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
16327
16328         * regrename.c (scan_rtx_reg): Handle the case where we write to an
16329         open chain in a smaller mode without failing the entire block.
16330
16331 2011-06-21  Alan Modra  <amodra@gmail.com>
16332
16333         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
16334         CONST high part large-toc address.
16335         (rs6000_tls_referenced_p): Make static.
16336         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
16337
16338 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16339
16340         PR target/49385
16341         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
16342         one of the operands is a register.
16343
16344 2011-06-20  Kai Tietz  <ktietz@redhat.com>
16345
16346         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
16347         operations in combination with binary and.
16348
16349 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
16350
16351         * regrename.c (do_replace): Don't update notes.
16352
16353 2011-06-20  Alan Modra  <amodra@gmail.com>
16354
16355         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
16356         of toc-relative address in CONST.
16357         (rs6000_delegitimize_address): Recognize changed address.
16358         (rs6000_legitimize_reload_address): Likewise.
16359         (rs6000_emit_move): Don't force these constants to memory.
16360         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
16361         toc-relative address in CONST.
16362         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
16363         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
16364
16365 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
16366
16367         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
16368         (count_trailing_zeros): Likewise.
16369
16370 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
16371
16372         PR other/49325
16373         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
16374         .init_array can be used with .ctors on targets.
16375         * configure: Regenerated.
16376
16377 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
16378
16379         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
16380         if the element type is volatile.
16381
16382 2011-06-18  Jan Hubicka  <jh@suse.cz>
16383
16384         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
16385         extra name aliases.
16386         (lto_symtab_resolve_can_prevail_p): Likewise.
16387         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
16388         * cgraphbuild.c (record_reference): Remove extra body alias code.
16389         (mark_load): Likewise.
16390         (mark_store): Likewise.
16391         * cgraph.h (varpool_node): Remove extra_name filed;
16392         add alias_of and extraname_alias.
16393         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
16394         (varpool_alias_aliased_node): New inline function.
16395         (varpool_variable_node): New function.
16396         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
16397         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
16398         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
16399         (input_varpool_node): Likewise.
16400         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
16401         (varpool_externally_visible_p): Remove extra body alias code.
16402         (function_and_variable_visibility): Likewise.
16403         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
16404         (ipa_pta_execute): Use it.
16405         * varpool.c (varpool_remove_node): Remove extra name alias code.
16406         (varpool_mark_needed_node): Likewise.
16407         (varpool_analyze_pending_decls): Analyze aliases.
16408         (assemble_aliases): New functoin.
16409         (varpool_assemble_decl): Use it.
16410         (varpool_create_variable_alias): New function.
16411         (varpool_extra_name_alias): Rewrite.
16412         (varpool_for_node_and_aliases): New function.
16413
16414 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
16415
16416         PR target/49411
16417         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
16418         last_arg_constant and last argument doesn't match its predicate,
16419         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
16420         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
16421         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
16422         spelling of error message.
16423         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
16424         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
16425         const_0_to_255_operand instead of const_int_operand.
16426
16427         Revert:
16428         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16429
16430         * config/i386/sse.md (blendbits): Remove mode attribute.
16431         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16432         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16433         Check integer value of operand 3 in insn constraint.
16434
16435 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
16436
16437         PR rtl-optimization/48542
16438         * reload.c (find_equiv_reg): Stop looking when finding a
16439         setjmp-type call.
16440         * reload1.c (reload_as_needed): Invalidate all reload
16441         registers when crossing a setjmp-type call.
16442
16443 2011-06-16  Jeff Law  <law@redhat.com>
16444
16445         * tree-ssa-threadupdate.c (struct redirection_data): New field
16446         intermediate_edge.
16447         (THREAD_TARGET2): Define.
16448         (redirection_data_eq): Also check that the intermediate edge is equal.
16449         (lookup_redirection_data): Drop useless argument.  Extract the
16450         outgoing_edge and intermediate edge from E.  Callers updated.
16451         (copy_phi_args, update_destination_phis): New functions.
16452         (fix_duplicate_block_edges): Likewise.
16453         (create_edge_and_update_destination_phis): Duplicate all the edges
16454         hung off e->aux.  Use copy_phi_args.
16455         (create_duplicates): Use fix_duplicate_block_edges.
16456         (fixup_template_block): Likewise.
16457         (redirect_edges): If necessary, redirect the joiner block's incoming
16458         edge to the duplicate of the joiner block.
16459         (thread_block): Don't muck up loops when threading through a joiner
16460         block.
16461         (thread_through_loop_header): Handle threading through a joiner block.
16462         (mark_threaded_blocks, register_jump_thread): Likewise.
16463         * tree-flow.h (register_jump_thread): Add new argument.  Callers
16464         updated.
16465         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
16466         (thread_across_edge): Handle threading through a joiner block.
16467
16468 2011-06-16  Martin Jambor  <mjambor@suse.cz>
16469
16470         PR tree-optimization/49343
16471         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
16472         calculate offset, provide 2nd operand for the new COMPONENT_REF.
16473
16474 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
16475
16476         * config/darwin-protos.h (machopic_select_rtx_section): Move to
16477         inside RTX_CODE ifdef.
16478
16479 2011-06-16  Tom de Vries  <tom@codesourcery.com>
16480
16481         PR target/45098
16482         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
16483         Disallow NULL pointer for pointer arithmetic.
16484
16485 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16486
16487         PR target/49398
16488         Revert.
16489         2011-06-10  Wei Guozhi  <carrot@google.com>
16490
16491         PR target/45335
16492         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
16493         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
16494         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
16495         related peephole2.
16496         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
16497         related peephole2.
16498         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
16499         (arm_legitimate_ldrd_p): New prototype.
16500         (arm_output_ldrd): New prototype.
16501         * config/arm/arm.c (arm_check_ldrd_operands): New function.
16502         (arm_legitimate_ldrd_p): New function.
16503         (arm_output_ldrd): New function.
16504
16505 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
16506
16507         PR middle-end/46500
16508         * doc/tm.texi.in: Update Copyright date.
16509         * doc/tm.texi: Regenerate.
16510         * targhooks.c (default_setup_incoming_varargs): Replace
16511         CUMULATIVE_ARGS* argument type with cumulative_args_t.
16512         (default_pretend_outgoing_varargs_named): Likewise.
16513         (hook_pass_by_reference_must_pass_in_stack): Likewise.
16514         (hook_callee_copies_named): Likewise.
16515         (default_function_arg_advance): Likewise.
16516         (default_function_arg): Likewise.
16517         (default_function_incoming_arg): Likewise.
16518         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
16519         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
16520         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
16521         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16522         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
16523         * targhooks.h (default_setup_incoming_varargs): Likewise.
16524         (default_pretend_outgoing_varargs_named): Likewise.
16525         (hook_pass_by_reference_must_pass_in_stack): Likewise.
16526         (hook_callee_copies_named): Likewise.
16527         (default_function_arg_advance): Likewise.
16528         (default_function_arg): Likewise.
16529         (default_function_incoming_arg): Likewise.
16530         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
16531         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
16532         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
16533         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16534         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
16535         * target.def (pass_by_reference): Likewise.
16536         (setup_incoming_varargs, strict_argument_naming): Likewise.
16537         (pretend_outgoing_varargs_named, callee_copies): Likewise.
16538         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
16539         (function_incoming_arg): Likewise.
16540         * target.h: Don't include "tm.h" .
16541         (cumulative_args_t): New typedef.
16542         [GCC_TM_H] (get_cumulative_args): New static inline function.
16543         [GCC_TM_H] (pack_cumulative_args): Likewise.
16544         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
16545         argument type with cumulative_args_t.
16546         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
16547         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
16548         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
16549         (frv_arg_partial_bytes, frv_function_arg): Likewise.
16550         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
16551         (frv_function_arg_1): Likewise.
16552         * config/s390/s390.c (s390_pass_by_reference): Likewise.
16553         (s390_function_arg_advance, s390_function_arg): Likewise.
16554         * config/m32c/m32c.c (m32c_function_arg): Likewise.
16555         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
16556         (m32c_strict_argument_naming): Likewise.
16557         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
16558         (spu_function_arg_advance): Likewise.
16559         (spu_setup_incoming_varargs): Likewise.  Make static.
16560         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
16561         Remove prototype.
16562         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
16563         CUMULATIVE_ARGS* argument type with cumulative_args_t.
16564         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
16565         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
16566         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
16567         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
16568         (mep_pass_by_reference, mep_function_arg): Likewise.
16569         (mep_function_arg_advance): Likewise.
16570         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
16571         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
16572         (m32r_function_arg, m32r_function_arg_advance): Likewise.
16573         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
16574         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
16575         (ix86_function_arg, ix86_pass_by_reference): Likewise.
16576         (ix86_setup_incoming_varargs): Likewise.
16577         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
16578         (sh_strict_argument_naming): Likewise.
16579         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
16580         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
16581         (sh_function_arg_advance, sh_function_arg): Likewise.
16582         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
16583         (pdp11_function_arg_advance): Likewise.
16584         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
16585         Likewise.
16586         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
16587         * config/avr/avr.c (avr_function_arg): Likewise.
16588         (avr_function_arg_advance): Likewise.
16589         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
16590         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
16591         (xtensa_function_arg_1): Likewise.
16592         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
16593         Likewise.
16594         (xstormy16_function_arg): Likewise.
16595         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
16596         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
16597         (fr30_function_arg_advance): Likewise.
16598         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16599         (lm32_function_arg, lm32_function_arg_advance): Likewise.
16600         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
16601         (moxie_function_arg, moxie_function_arg_advance): Likewise.
16602         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
16603         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
16604         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
16605         (cris_function_arg, cris_function_incoming_arg): Likewise.
16606         (cris_function_arg_advance, cris_function_arg_1): Likewise.
16607         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
16608         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
16609         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
16610         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
16611         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
16612         (mn10300_arg_partial_bytes): Likewise.
16613         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
16614         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
16615         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
16616         (ia64_function_arg_1): Likewise.
16617         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
16618         (m68k_function_arg): Likewise.
16619         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
16620         (rs6000_function_arg, setup_incoming_varargs): Likewise.
16621         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
16622         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
16623         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
16624         (picochip_arg_advance): Likewise.
16625         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
16626         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
16627         (mcore_function_arg_advance): Likewise.
16628         * config/score/score.c (score_pass_by_reference): Likewise.
16629         (score_function_arg_advance): Likewise.
16630         (score_arg_partial_bytes): Likewise.  Make static.
16631         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
16632         * config/arm/arm.c (arm_arg_partial_bytes): Replace
16633         CUMULATIVE_ARGS* argument type with cumulative_args_t.
16634         (arm_function_arg, arm_function_arg_advance): Likewise.
16635         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
16636         * config/pa/pa.c (pa_pass_by_reference): Likewise.
16637         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
16638         (pa_function_arg): Likewise.
16639         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
16640         (mips_function_arg, mips_function_arg_advance): Likewise.
16641         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
16642         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
16643         * config/vax/vax.c (vax_function_arg): Likewise.
16644         (vax_function_arg_advance): Likewise.
16645         * config/h8300/h8300.c (h8300_function_arg): Likewise.
16646         (h8300_function_arg_advance): Likewise.
16647         * config/v850/v850.c (v850_pass_by_reference): Likewise.
16648         (v850_strict_argument_naming, v850_function_arg): Likewise.
16649         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
16650         (v850_setup_incoming_varargs): Likewise.
16651         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
16652         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
16653         (mmix_function_arg, mmix_pass_by_reference): Likewise.
16654         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
16655         with const void *.
16656         * config/bfin/bfin.c (setup_incoming_varargs): Replace
16657         CUMULATIVE_ARGS* argument type with cumulative_args_t.
16658         (bfin_function_arg_advance, bfin_function_arg): Likewise.
16659         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
16660         * calls.c (emit_call_1): Change type of args_so_far to
16661         cumulative_args_t.  Changed all callers.
16662         (initialize_argument_information): Likewise.
16663         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
16664         * dse.c (get_call_args): Likewise.
16665         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16666         * function.c (pass_by_reference, reference_callee_copied): Likewise.
16667         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
16668         New member args_so_far_v.  Changed all users.
16669         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
16670         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16671         * config/mips/mips.c (mips_output_args_xfer): Likewise.
16672         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
16673         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16674         * config/microblaze/microblaze.c (microblaze_expand_prologue):
16675         Likewise.
16676         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
16677         m32r_pass_by_reference.
16678
16679 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
16680
16681         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
16682         argument to be a VEC of statements.
16683         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
16684         assert that pattern statements have to have their vector type set.
16685         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
16686         Change the first argument to be a VEC of statements.  Update
16687         documentation.
16688         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
16689         (vect_handle_widen_mult_by_const): New function.
16690         (vect_recog_widen_mult_pattern):  Change the first argument to be a
16691         VEC of statements.  Update documentation.  Check that the constant is
16692         INTEGER_CST.  Support multiplication by a constant that fits an
16693         intermediate type - call vect_handle_widen_mult_by_const.
16694         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
16695         call.  Handle additional pattern statements if necessary.
16696
16697 2011-06-16  Nick Clifton  <nickc@redhat.com>
16698
16699         PR target/49427
16700         * config.gcc: Set cpu_type to v850 for any V850 architecture.
16701         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
16702         md_file, extra_modes, out_file and extra_options are these are all
16703         deduced from cpu_type.
16704
16705 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
16706
16707         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
16708         truncation mask to 63.
16709
16710 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
16711
16712         PR target/49313
16713         PR target/29524
16714         * longlong.h: Add AVR support:
16715         (count_leading_zeros): New macro.
16716         (count_trailing_zeros): New macro.
16717         (COUNT_LEADING_ZEROS_0): New macro.
16718         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
16719         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
16720         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
16721         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
16722         (LIB2FUNCS_EXCLUDE): Add _clz.
16723         * config/avr/libgcc.S (XCALL): Move up in file.
16724         (XJMP): New C Macro.
16725         (DEFUN): New asm macro.
16726         (ENDF): New asm macro.
16727         (__ffssi2): New function.
16728         (__ffshi2): New function.
16729         (__loop_ffsqi2): New function.
16730         (__ctzsi2): New function.
16731         (__ctzhi2): New function.
16732         (__clzdi2): New function.
16733         (__clzsi2): New function.
16734         (__clzhi2): New function.
16735         (__paritydi2): New function.
16736         (__paritysi2): New function.
16737         (__parityhi2): New function.
16738         (__parityqi2): New function.
16739         (__popcounthi2): New function.
16740         (__popcountsi2): New function.
16741         (__popcountdi2): New function.
16742         (__popcountqi2): New function.
16743         (__bswapsi2): New function.
16744         (__bswapdi2): New function.
16745         (__ashldi3): New function.
16746         (__ashrdi3): New function.
16747         (__lshrdi3): New function.
16748         Fix suspicous lines.
16749
16750 2011-06-16  Richard Guenther  <rguenther@suse.de>
16751
16752         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
16753         the same as x != 0.
16754         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
16755         to (bool) X & 1.
16756         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
16757         equality compares against zero for the lower bit.
16758
16759 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
16760
16761         PR tree-optimization/49419
16762         * tree-vrp.c (execute_vrp): Call init_range_assertions
16763         before estimate_numbers_of_iterations, call
16764         free_number_of_iterations_estimates before calling
16765         remove_range_assertions.
16766
16767 2011-06-16  Revital Eres  <revital.eres@linaro.org>
16768
16769         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
16770         (struct partial_schedule): Add rows_length field.
16771         (verify_partial_schedule): Check rows_length.
16772         (ps_insert_empty_row): Handle rows_length.
16773         (create_partial_schedule): Likewise.
16774         (free_partial_schedule): Likewise.
16775         (reset_partial_schedule): Likewise.
16776         (create_ps_insn): Remove rest_count argument.
16777         (remove_node_from_ps): Update rows_length.
16778         (add_node_to_ps): Update rows_length and call create_ps_insn
16779         without passing row_rest_count.
16780         (rotate_partial_schedule): Update rows_length.
16781
16782 2011-06-16  Revital Eres  <revital.eres@linaro.org>
16783
16784         * ddg.c (add_intra_loop_mem_dep): New function.
16785         (build_intra_loop_deps): Call it.
16786
16787 2011-06-13  Jeff Law  <law@redhat.com>
16788
16789         * df-problems.c (df_lr_local_compute): Manually CSE
16790         PIC_OFFSET_TABLE_REGNUM.
16791         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
16792         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
16793
16794 2011-06-13  Jan Hubicka  <jh@suse.cz>
16795
16796         * cgraphunit.c (handle_alias_pairs): New function.
16797         (cgraph_finalize_compilation_unit): Use it.
16798         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
16799         as externally visible.
16800
16801 2011-06-15  Richard Guenther  <rguenther@suse.de>
16802
16803         * expr.c (expand_expr_real_2): Reduce all integral types to
16804         bitfield precision.
16805         (expand_expr_real_1): Likewise.
16806
16807 2011-06-15  Martin Jambor  <mjambor@suse.cz>
16808
16809         PR tree-optimization/48613
16810         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
16811         ipa_node_params_vector is NULL.
16812
16813 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
16814
16815         PR debug/49382
16816         * dwarf2out.c (dw_loc_list_node): Add force field.
16817         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
16818         location in the list, even if it is modified before first real insn.
16819         (output_loc_list): Emit empty ranges with force flag set.
16820         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
16821
16822 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
16823
16824         PR target/49349
16825         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
16826         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
16827         above a fence.  Update comments.
16828         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
16829         placed just above it.  Do not allow NULL place_to_insert.
16830
16831 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
16832
16833         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
16834         (slpeel_tree_peel_loop_to_edge): Don't call
16835         remove_dead_stmts_from_loop.
16836         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
16837         remove irrelevant pattern statements.  For irrelevant statements
16838         check if it is the last statement of a detected pattern, use
16839         corresponding pattern statement instead.
16840         (destroy_loop_vec_info): No need to remove pattern statements,
16841         only free stmt_vec_info.
16842         (vect_transform_loop): For irrelevant statements check if it is
16843         the last statement of a detected pattern, use corresponding
16844         pattern statement instead.
16845         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
16846         pattern statements.  Set basic block for the new statement.
16847         (vect_pattern_recog): Update documentation.
16848         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
16849         operands of pattern statements.
16850         (vectorizable_call): Fix printing.  In case of a pattern statement
16851         use the lhs of the original statement when creating a dummy
16852         statement to replace the original call.
16853         (vect_analyze_stmt): For irrelevant statements check if it is
16854         the last statement of a detected pattern, use corresponding
16855         pattern statement instead.
16856         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
16857         statements use gsi of the original statement.
16858
16859 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
16860
16861         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
16862         common/common-target-def.h.
16863         * target.def (default_target_flags, handle_option,
16864         supports_split_stack, optimization_table, init_struct,
16865         except_unwind_info, unwind_tables_default, have_named_sections):
16866         Move to common/common-target.def.
16867         * target.h (enum opt_levels, struct default_options): Move to
16868         common/common-target.h.
16869         * targhooks.c (default_except_unwind_info,
16870         dwarf2_except_unwind_info, sjlj_except_unwind_info,
16871         default_target_handle_option, empty_optimization_table): Move to
16872         common/common-targhooks.c.
16873         * targhooks.h (default_except_unwind_info,
16874         dwarf2_except_unwind_info, sjlj_except_unwind_info,
16875         default_target_handle_option, empty_optimization_table): Move to
16876         common/common-targhooks.h.
16877         * common/common-target-def.h: Include common/common-targhooks.h.
16878         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
16879         defined.
16880         * common/common-target.def (handle_option, option_init_struct,
16881         option_optimization_table, default_target_flags,
16882         except_unwind_info, supports_split_stack, unwind_tables_default,
16883         have_named_sections): Move from target.def.
16884         (HOOK_PREFIX): Undefine at end of file.
16885         * common/common-target.h: Include input.h.
16886         (enum opt_levels, struct default_options): Move from target.h.
16887         * common/common-targhooks.c, common/common-targhooks.h: New.
16888         * config.gcc (target_has_targetm_common): Default to yes.
16889         (moxie*): Set target_has_targetm_common=no.
16890         (hppa*-*-*): Don't set target_has_targetm_common=yes.
16891         * doc/tm.texi: Regenerate.
16892         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
16893         (C_TARGET_DEF_H): Add common/common-targhooks.h.
16894         (GCC_OBJS): Remove vec.o.
16895         (OBJS): Remove hooks.o and vec.o.
16896         (OBJS-libcommon-target): Add vec.o, hooks.o and
16897         common/common-targhooks.o.
16898         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
16899         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
16900         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
16901         cfglayout.o, $(out_object_file), $(common_out_object_file)):
16902         Update dependencies.
16903         (common/common-targhooks.o): New.
16904         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
16905         * common/config/pa/pa-common.c: Include more headers.  Take
16906         copyright dates from pa.c.
16907         (pa_option_optimization_table, pa_handle_option,
16908         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
16909         TARGET_HANDLE_OPTION): Move from pa.c.
16910         * common/config/alpha/alpha-common.c,
16911         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
16912         common/config/bfin/bfin-common.c,
16913         common/config/cris/cris-common.c,
16914         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
16915         common/config/h8300/h8300-common.c,
16916         common/config/i386/i386-common.c,
16917         common/config/ia64/ia64-common.c,
16918         common/config/iq2000/iq2000-common.c,
16919         common/config/lm32/lm32-common.c,
16920         common/config/m32c/m32c-common.c,
16921         common/config/m32r/m32r-common.c,
16922         common/config/m68k/m68k-common.c,
16923         common/config/mcore/mcore-common.c,
16924         common/config/mep/mep-common.c,
16925         common/config/microblaze/microblaze-common.c,
16926         common/config/mips/mips-common.c,
16927         common/config/mmix/mmix-common.c,
16928         common/config/mn10300/mn10300-common.c,
16929         common/config/pdp11/pdp11-common.c,
16930         common/config/picochip/picochip-common.c,
16931         common/config/rs6000/rs6000-common.c,
16932         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
16933         common/config/score/score-common.c, common/config/sh/sh-common.c,
16934         common/config/sparc/sparc-common.c,
16935         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
16936         common/config/vax/vax-common.c,
16937         common/config/xstormy16/xstormy16-common.c,
16938         common/config/xtensa/xtensa-common.c: New.
16939         * config/alpha/alpha.c: Include common/common-target.h.
16940         (alpha_option_optimization_table, alpha_handle_option,
16941         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
16942         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
16943         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
16944         * config/arm/arm.c (arm_option_optimization_table,
16945         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
16946         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
16947         arm-common.c.
16948         * config/avr/avr.c (avr_option_optimization_table,
16949         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
16950         to avr-common.c.
16951         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
16952         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
16953         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
16954         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
16955         * config/cris/cris.c (cris_option_optimization_table,
16956         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
16957         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
16958         cris-common.c.
16959         * config/fr30/fr30.c (fr30_option_optimization_table,
16960         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
16961         to fr30-common.c.
16962         * config/frv/frv.c (frv_option_optimization_table,
16963         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
16964         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
16965         * config/h8300/h8300.c (h8300_option_optimization_table,
16966         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
16967         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
16968         * config/i386/i386-protos.h (ix86_handle_option): Declare.
16969         * config/i386/i386.c: Include common/common-target.h.
16970         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
16971         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
16972         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
16973         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
16974         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
16975         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
16976         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
16977         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
16978         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
16979         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
16980         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
16981         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
16982         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
16983         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
16984         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
16985         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
16986         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
16987         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
16988         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
16989         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
16990         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
16991         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
16992         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
16993         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
16994         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
16995         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
16996         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
16997         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
16998         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
16999         ix86_option_optimization_table, ix86_option_init_struct,
17000         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
17001         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
17002         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
17003         i386-common.c.
17004         * config/i386/t-i386 (i386.o): Update dependencies.
17005         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
17006         * config/ia64/ia64.c (ia64_option_optimization_table,
17007         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
17008         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17009         ia64_handle_option): Move to ia64-common.c.
17010         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
17011         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
17012         * config/lm32/lm32.c (lm32_option_optimization_table,
17013         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
17014         to lm32-common.c.
17015         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
17016         m32c-common.c.
17017         * config/m32r/m32r.c (m32r_option_optimization_table,
17018         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17019         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
17020         m32r_handle_option): Move to m32r-common.c.
17021         (m32r_memory_move_cost): Remove comment referring to
17022         TARGET_HANDLE_OPTION.
17023         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
17024         Move to m68k-common.c.
17025         * config/mcore/mcore.c (mcore_option_optimization_table,
17026         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
17027         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
17028         * config/mep/mep.c (mep_option_optimization_table,
17029         mep_handle_option, TARGET_HANDLE_OPTION,
17030         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
17031         Move to mep-common.c.
17032         * config/microblaze/microblaze.c
17033         (microblaze_option_optimization_table,
17034         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
17035         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
17036         * config/mips/mips.c (mips_handle_option,
17037         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
17038         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
17039         mips-common.c.
17040         * config/mmix/mmix.c (mmix_option_optimization_table,
17041         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
17042         Move to mmix-common.c.
17043         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
17044         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
17045         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17046         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
17047         * config/pa/pa.c: Include common/common-target.h.
17048         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
17049         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17050         pa_handle_option): Move to pa-common.c.
17051         (pa_option_override): Use targetm_common.except_unwind_info.
17052         (pa_asm_output_mi_thunk, pa_function_section): Use
17053         targetm_common.have_named_sections.
17054         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
17055         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17056         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
17057         pdp11_handle_option, pdp11_option_init_struct): Move to
17058         pdp11-common.c.
17059         * config/picochip/picochip.c (picochip_option_optimization_table,
17060         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
17061         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
17062         * config/rs6000/rs6000.c: Include common/common-target.h.
17063         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
17064         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
17065         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
17066         rs6000_handle_option): Move to rs6000-common.c.
17067         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
17068         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
17069         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
17070         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
17071         * config/s390/s390.c (processor_flags_table,
17072         s390_option_optimization_table, s390_option_init_struct,
17073         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
17074         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
17075         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
17076         * config/s390/s390.h (processor_flags_table): Declare.
17077         * config/score/score.c (score_option_optimization_table,
17078         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17079         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
17080         score_handle_option): Move to score-common.c.
17081         * config/sh/sh.c (sh_option_optimization_table,
17082         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
17083         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17084         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
17085         * config/sparc/sparc.c: Include common/common-target.h.
17086         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
17087         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
17088         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
17089         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
17090         spu_option_init_struct): Move to spu-common.c.
17091         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
17092         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
17093         * config/v850/v850.c (small_memory_physical_max,
17094         v850_handle_memory_optionn v850_handle_option,
17095         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
17096         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
17097         v850-common.c.
17098         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
17099         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
17100         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
17101         Move to xtensa-common.c.
17102         * cfglayout.c: Include common/common-target.h.
17103         (fixup_reorder_chain): Use targetm_common.have_named_sections.
17104         * cfgrtl.c: Include common/common-target.h.
17105         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
17106         targetm_common.have_named_sections.
17107         * dbxout.c: Include common/common-target.h.
17108         (dbxout_function_end): Use targetm_common.have_named_sections.
17109         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
17110         targetm_common.except_unwind_info.
17111         * dwarf2out.c: Include common/common-target.h.
17112         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
17113         dwarf2out_begin_prologue, dwarf2out_frame_init,
17114         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
17115         targetm_common.except_unwind_info.
17116         * except.c: Include common/common-target.h.
17117         (init_eh, finish_eh_generation,
17118         output_one_function_exception_table): Use
17119         targetm_common.except_unwind_info.
17120         (switch_to_exception_section): Use targetm_common.have_named_sections.
17121         * explow.c: Include common/common-target.h.
17122         * expr.c: Include common/common-target.h.
17123         (build_personality_function): Use targetm_common.except_unwind_info.
17124         * function.c: Include common/common-target.h.
17125         (expand_function_end): Use targetm_common.except_unwind_info.
17126         * haifa-sched.c: Include common/common-target.h.
17127         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
17128         * lto-opts.c: Include common/common-target.h instead of target.h.
17129         (lto_reissue_options): Use targetm_common.handle_option.
17130         * opts.c: Include common/common-target.h.
17131         (target_handle_option): Use targetm_common.handle_option.
17132         (init_options_struct): Update comment referring to
17133         targetm.target_option.optimization.  Use
17134         targetm_common.default_target_flags,
17135         targetm_common.unwind_tables_default and
17136         targetm_common.option_init_struct.
17137         (default_options_optimization): Use
17138         targetm_common.option_optimization_table.
17139         (finish_options): Use targetm_common.except_unwind_info,
17140         targetm_common.unwind_tables_default,
17141         targetm_common.have_named_sections and
17142         targetm_common.supports_split_stack.
17143         * toplev.c: Include common/common-target.h.
17144         (process_options): Use targetm_common.have_named_sections.
17145         * tree-tailcall.c: Include common/common-target.h.
17146         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
17147         * tree.c: Include common/common-target.h.
17148         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
17149         * varasm.c: Include common/common-target.h.
17150         (resolve_unique_section, hot_function_section,
17151         default_function_section): Use targetm_common.have_named_sections.
17152
17153 2011-06-14  Easwaran Raman  <eraman@google.com>
17154
17155         PR rtl-optimization/44194
17156         * dse.c: Include tree-flow.h
17157         (insn_info): Add new field non_frame_wild_read.
17158         (group_info): Add new fields escaped_n and escaped_p.
17159         (kill_on_calls): New variable.
17160         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
17161         (dse_step0): Initialize kill_on_calls.
17162         (can_escape): New function.
17163         (set_usage_bits): Add additional parameter; record information
17164         about escaped locations.
17165         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
17166         (dse_step2_nospill): Set kill_on_calls based on
17167         group->escaped_n and group->escaped_n.
17168         (add_wild_read): Refactor into...
17169         (reset_active_stores): ... New function, and
17170         (free_read_records): ... New function.
17171         (add_non_frame_wild_read): New function.
17172         (scan_insn): Call add_non_frame_wild_read on non-const calls.
17173         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
17174         (dse_step5_nospill): Call scan_reads_nospill for instructions
17175         marked as non_frame_wild_read.
17176         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
17177
17178 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
17179
17180         * common/common-target-def.h, common/common-target.def,
17181         common/common-target.h, common/config/default-common.c,
17182         common/config/pa/pa-common.c: New files.
17183         * Makefile.in (common_out_file, common_out_object_file,
17184         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
17185         (OBJS-libcommon-target): Include $(common_out_object_file).
17186         (prefix.o): Update dependencies.
17187         ($(common_out_object_file), common/common-target-hooks-def.h,
17188         s-common-target-hooks-def-h): New.
17189         (s-tm-texi): Also check timestamp on common-target.def.
17190         (build/genhooks.o): Update dependencies.
17191         * config.gcc (common_out_file, target_has_targetm_common): Define.
17192         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
17193         TARGET_ALWAYS_STRIP_DOTDOT.
17194         * configure.ac (common_out_object_file): Define.
17195         (common_out_file, common_out_object_file): Substitute.
17196         (common): Create directory.
17197         * configure: Regenerate.
17198         * doc/tm.texi.in (targetm_common): Document.
17199         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
17200         * doc/tm.texi: Regenerate.
17201         * genhooks.c (hook_array): Also include common/common-target.def.
17202         * prefix.c (tm.h): Don't include.
17203         (common/common-target.h): Include.
17204         (ALWAYS_STRIP_DOTDOT): Don't define.
17205         (update_path): Use targetm_common.always_strip_dotdot instead of
17206         ALWAYS_STRIP_DOTDOT.
17207         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
17208
17209 2011-06-14  David Li  <davidxl@google.com>
17210
17211         * passes.c (execute_function_todo): Remove TODO_dump_func.
17212         (execute_one_pass): Remove TODO_dump_func.
17213         (execute_function_dump): New function.
17214         * tree-vrp.c: Remove TODO_dump_func.
17215         * regrename.c: Remove TODO_dump_func.
17216         * fwprop.c: Remove TODO_dump_func.
17217         * tree-into-ssa.c: Remove TODO_dump_func.
17218         * tree-complex.c: Remove TODO_dump_func.
17219         * tracer.c: Remove TODO_dump_func.
17220         * tree-loop-distribution.c: Remove TODO_dump_func.
17221         * postreload-gcse.c: Remove TODO_dump_func.
17222         * postreload.c: Remove TODO_dump_func.
17223         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
17224         * tree-tailcall.c: Remove TODO_dump_func.
17225         * ipa-cp.c: Remove TODO_dump_func.
17226         * final.c: Remove TODO_dump_func.
17227         * tree-emutls.c: Remove TODO_dump_func.
17228         * omp-low.c: Remove TODO_dump_func.
17229         * tree-ssa-dse.c: Remove TODO_dump_func.
17230         * tree-ssa-uncprop.c: Remove TODO_dump_func.
17231         * auto-inc-dec.c: Remove TODO_dump_func.
17232         * reorg.c: Remove TODO_dump_func.
17233         * tree-ssa-copyrename.c: Remove TODO_dump_func.
17234         * tree-ssa-ccp.c: Remove TODO_dump_func.
17235         * compare-elim.c: Remove TODO_dump_func.
17236         * mode-switching.c: Remove TODO_dump_func.
17237         * modulo-sched.c: Remove TODO_dump_func.
17238         * tree-call-cdce.c: Remove TODO_dump_func.
17239         * cse.c: Remove TODO_dump_func.
17240         * web.c: Remove TODO_dump_func.
17241         * tree-stdarg.c: Remove TODO_dump_func.
17242         * lto-streamer-out.c: Remove TODO_dump_func.
17243         * tree-ssa-math-opts.c: Remove TODO_dump_func.
17244         * tree-ssa-dom.c: Remove TODO_dump_func.
17245         * tree-nrv.c: Remove TODO_dump_func.
17246         * loop-init.c: Remove TODO_dump_func.
17247         * gimple-low.c: Remove TODO_dump_func.
17248         * ipa-inline.c: Remove TODO_dump_func.
17249         * tree-ssa-sink.c: Remove TODO_dump_func.
17250         * jump.c: Remove TODO_dump_func.
17251         * ifcvt.c: Remove TODO_dump_func.
17252         * tree-ssa-loop.c: Remove TODO_dump_func.
17253         * recog.c: Remove TODO_dump_func.
17254         * dse.c: Remove TODO_dump_func.
17255         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
17256         * matrix-reorg.c: Remove TODO_dump_func.
17257         * tree-eh.c: Remove TODO_dump_func.
17258         * regmove.c: Remove TODO_dump_func.
17259         * function.c: Remove TODO_dump_func.
17260         * tree-vectorizer.c: Remove TODO_dump_func.
17261         * ipa-split.c: Remove TODO_dump_func.
17262         * gcse.c: Remove TODO_dump_func.
17263         * tree-if-conv.c: Remove TODO_dump_func.
17264         * init-regs.c: Remove TODO_dump_func.
17265         * tree-ssa-phiopt.c: Remove TODO_dump_func.
17266         * implicit-zee.c: Remove TODO_dump_func.
17267         * lower-subreg.c: Remove TODO_dump_func.
17268         * bt-load.c: Remove TODO_dump_func.
17269         * tree-dfa.c: Remove TODO_dump_func.
17270         * except.c: Remove TODO_dump_func.
17271         * emit-rtl.c: Remove TODO_dump_func.
17272         * store-motion.c: Remove TODO_dump_func.
17273         * cfgexpand.c: Remove TODO_dump_func.
17274         * tree-cfgcleanup.c: Remove TODO_dump_func.
17275         * cfgcleanup.c: Remove TODO_dump_func.
17276         * tree-ssa-pre.c: Remove TODO_dump_func.
17277         * tree-sra.c: Remove TODO_dump_func.
17278         * tree-mudflap.c: Remove TODO_dump_func.
17279         * tree-ssa-copy.c: Remove TODO_dump_func.
17280         * cfglayout.c: Remove TODO_dump_func.
17281         * tree-ssa-forwprop.c: Remove TODO_dump_func.
17282         * tree-ssa-dce.c: Remove TODO_dump_func.
17283         * ira.c: Remove TODO_dump_func.
17284         * tree-ssa.c: Remove TODO_dump_func.
17285         * integrate.c: Remove TODO_dump_func.
17286         * tree-optimize.c: Remove TODO_dump_func.
17287         * tree-ssa-phiprop.c: Remove TODO_dump_func.
17288         * tree-object-size.c: Remove TODO_dump_func.
17289         * combine.c: Remove TODO_dump_func.
17290         * bb-reorder.c: Remove TODO_dump_func.
17291         * cprop.c: Remove TODO_dump_func.
17292         * var-tracking.c: Remove TODO_dump_func.
17293         * tree-profile.c: Remove TODO_dump_func.
17294         * tree-vect-generic.c: Remove TODO_dump_func.
17295         * reg-stack.c: Remove TODO_dump_func.
17296         * sched-rgn.c: Remove TODO_dump_func.
17297         * tree-ssa-structalias.c: Remove TODO_dump_func.
17298         * tree-switch-conversion.c: Remove TODO_dump_func.
17299         * tree-cfg.c: Remove TODO_dump_func.
17300         * tree-ssa-reassoc.c: Remove TODO_dump_func.
17301         * combine-stack-adj.c: Remove TODO_dump_func.
17302         * dce.c: Remove TODO_dump_func.
17303         * tree-ssanames.c: Remove TODO_dump_func.
17304         * regcprop.c: Remove TODO_dump_func.
17305
17306 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
17307
17308         PR middle-end/47364
17309         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
17310         and properly handle result not in Pmode.
17311
17312 2011-06-14  Robert Millan  <rmh@gnu.org>
17313
17314         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
17315         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
17316         `config/linux.h'.
17317
17318         * config/i386/kfreebsd-gnu64.h: New file.
17319         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
17320         with `i386/kfreebsd-gnu64.h'.
17321
17322         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
17323         (GNU_USER_LINK_EMULATION64): New macros.
17324         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
17325         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
17326         of hardcoding `elf_i386' and `elf_x86_64'.
17327
17328 2011-06-14  Nick Clifton  <nickc@redhat.com>
17329
17330         PR target/49403
17331         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
17332
17333         PR target/49402
17334         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
17335
17336 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
17337
17338         PR fortran/49103
17339         * tree.h (DECL_NONSHAREABLE): Define.
17340         (struct tree_decl_common): Change decl_common_unused to
17341         decl_nonshareable_flag.
17342         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
17343         Ignore vars with DECL_NONSHAREABLE bit set.
17344         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
17345         on stores to automatic aggregate vars.
17346
17347         PR rtl-optimization/49390
17348         Revert:
17349         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
17350
17351         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
17352         MEM_ALIAS_SET.
17353
17354 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
17355             Tom de Vries  <tom@codesourcery.com>
17356
17357         PR target/45098
17358         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
17359         Document changed semantics.
17360         (max_stmt_executions, max_stmt_executions_int): Declare.
17361         * tree-data-ref.c (estimated_loop_iterations)
17362         (estimated_loop_iterations_int): Move functions...
17363         * tree-ssa-loop-niter.c (estimated_loop_iterations)
17364         (estimated_loop_iterations_int): here.
17365         (record_estimate): Change nb_iterations_upper_bound and
17366         nb_iterations_estimate semantics.
17367         (max_stmt_executions, max_stmt_executions_int): New function.
17368         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
17369         (max_stmt_executions_tree): this.
17370         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
17371         estimated_loop_iterations_tree.
17372         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
17373         max_stmt_executions_int instead of estimated_loop_iterations_int.
17374         * predict.c (predict_loops): Idem.
17375         * tree-parloops.c (parallelize_loops): Idem.
17376         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
17377         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
17378         (init_omega_for_ddr_1): Idem.
17379         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
17380         (loop_prefetch_arrays): Idem
17381         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
17382         max_stmt_executions instead of estimated_loop_iterations.
17383         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
17384         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
17385         instead of nb_iterations_upper_bound.
17386
17387 2011-06-13  Jan Hubicka  <jh@suse.cz>
17388
17389         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
17390
17391 2011-06-14  Richard Henderson  <rth@redhat.com>
17392
17393         PR debug/48459
17394         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
17395         (based_loc_descr): Assert it's true.
17396         (compute_frame_pointer_to_fb_displacement): Set it, rather than
17397         aborting immediately.
17398
17399 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
17400             Mingfeng Wu  <mingfeng@faraday-tech.com>
17401
17402         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
17403
17404 2011-06-13  Jan Hubicka  <jh@suse.cz>
17405
17406         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
17407
17408 2011-06-13  Jan Hubicka  <jh@suse.cz>
17409
17410         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
17411         similarly to DECL_COMDAT.
17412         * cgraphunit.c (cgraph_analyze_function): Likewise.
17413         * ipa.c (function_and_variable_visibility): Likewise.
17414
17415 2011-06-13  Jan Hubicka  <jh@suse.cz>
17416
17417         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
17418         BINFO_VIRTUALS when streaming for ltrans unit.
17419
17420 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
17421
17422         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
17423         (movdi_internal64): Same.
17424
17425 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
17426
17427         PR target/44618
17428         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
17429         a set of similar patterns, where the MATCH_OPERAND for the function
17430         argument is replaced with individual references to hardware registers.
17431         (save_fpregs_<mode>): Ditto
17432         (restore_gpregs_<mode>): Ditto
17433         (return_and_restore_gpregs_<mode>): Ditto
17434         (return_and_restore_fpregs_<mode>): Ditto
17435         (return_and_restore_fpregs_aix_<mode>): Ditto
17436
17437 2011-06-13  Jan Hubicka  <jh@suse.cz>
17438
17439         * ipa-utils.c (postorder_stack): New structure.
17440         (ipa_reverse_postorder): Handle aliases.
17441
17442 2011-06-13  Jan Hubicka  <jh@suse.cz>
17443
17444         * ipa-inline.c (reset_edge_caches): Walk aliases.
17445         (update_caller_keys): Do not test inlinability of aliases.
17446         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
17447         (do_estimate_growth): Fix typo.
17448
17449 2011-06-13  Jan Hubicka  <jh@suse.cz>
17450
17451         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
17452         (can_remove_node_now_p): ... here; handle same comdat groups.
17453         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
17454         (inline_call): Update use of can_remove_node_now_p.
17455
17456 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
17457
17458         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
17459         condition to disallow non-identical memory locations.
17460         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
17461         preference to bit manipulation instructions.
17462
17463 2011-06-13  Jan Hubicka  <jh@suse.cz>
17464
17465         * cgraph.c (cgraph_for_node_thunks_and_aliases,
17466         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
17467         (nonremovable_p): New function.
17468         (cgraph_can_remove_if_no_direct_calls_p): New function.
17469         (used_from_object_file_p): New functoin.
17470         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
17471         references from aliases.
17472         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
17473         * ipa-inline.c (check_caller_edge): New function.
17474         (want_inline_function_called_once_p): Use it; accept aliases called
17475         once, too.
17476         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
17477
17478 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17479
17480         PR target/48454
17481         * config/arm/neon.md (vec_pack_trunc): Set the lengths
17482         correctly for the case with Quad vectors.
17483
17484 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
17485            Ira Rosen  <ira.rosen@linaro.org>
17486
17487         PR tree-optimization/49352
17488         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
17489         all, make sure loop_use_stmt after the loop is a def stmt of a used
17490         SSA_NAME that is the only one defined inside of the loop.  Don't
17491         check for COND_EXPR and GIMPLE_BINARY_RHS.
17492         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
17493         check_reduction is true.
17494
17495 2011-06-11  Jan Hubicka  <jh@suse.cz>
17496
17497         PR middle-end/49373
17498         * ipa.c (cgraph_externally_visible_p): Check resolution info.
17499
17500 2011-06-11  Jan Hubicka  <jh@suse.cz>
17501
17502         PR middle-end/48836
17503         * ipa-inline-transform.c: Include tree-pass.h
17504         (inline_transform): Set TODO_update_ssa_only_virtuals.
17505         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
17506
17507 2011-06-11  Jan Hubicka  <jh@suse.cz>
17508
17509         PR middle-end/49378
17510         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
17511         aliases and thunks.
17512
17513 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
17514
17515         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
17516         Take number of iterations to peel into account for equally frequent
17517         misalignment values.
17518
17519 2011-06-11  Jan Hubicka  <jh@suse.cz>
17520
17521         * lto-streamer-out.c (produce_symtab): Stream out the newly
17522         represented aliases.
17523
17524 2011-06-11  Jan Hubicka  <jh@suse.cz>
17525
17526         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
17527         varying args.
17528         (ipa_update_after_lto_read): Likewise.
17529         (ipa_write_node_info): Do not sream call_with_var_arguments.
17530         (ipa_read_node_info): Likewise.
17531
17532 2011-06-11  Jan Hubicka  <jh@suse.cz>
17533
17534         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
17535
17536 2011-06-11  Jan Hubicka  <jh@suse.cz>
17537
17538         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
17539         (lto_symtab_resolve_can_prevail_p): Likewise.
17540         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
17541         * cgraph.c (same_body_aliases_done): New global var.
17542         (cgraph_same_body_alias_1): Rename to ...
17543         (cgraph_create_function_alias): ... this one; reorg to new
17544         representation.
17545         (cgraph_same_body_alias): Use cgraph_create_function_alias;
17546         record references when asked to.
17547         (cgraph_add_thunk): Fix formating.
17548         (cgraph_get_node): Kill same body alias code.
17549         (cgraph_node_for_asm): Likewise.
17550         (cgraph_remove_same_body_alias): Remove.
17551         (cgraph_remove_node): Kill same body alias code.
17552         (cgraph_mark_address_taken_node): Mark also the aliased function
17553         as having address taken.
17554         (dump_cgraph_node): Dump same body aliases.
17555         (cgraph_for_node_thunks_and_aliases): Update for new alias
17556         representation.
17557         (cgraph_for_node_and_aliases): Likewise.
17558         * cgraph.h (same_body): Kll pointer.
17559         (same_body_alias): Update comment.
17560         (same_body_aliases_done): Declare.
17561         (cgraph_remove_same_body_alias): Remove declaration.
17562         (cgraph_create_function_alias): Declare.
17563         (cgraph_process_same_body_aliases): Declare.
17564         (cgraph_function_with_gimple_body_p): Check for alias.
17565         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
17566         (cgraph_alias_aliased_node): New function.
17567         (cgraph_function_node): Update for new aliases.
17568         (cgraph_function_or_thunk_node): Likewise.
17569         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
17570         (inline_call): Remove dead aliases.
17571         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
17572         name hack for same body aliases.
17573         (clone_of_p): Look through aliases.
17574         (verify_cgraph_node): Verify aliases.
17575         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
17576         (cgraph_process_same_body_aliases): New function.
17577         (process_function_and_variable_attributes): Disable weakref warning on
17578         alias.
17579         (cgraph_analyze_functions): Handle aliases.
17580         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
17581         (assemble_thunks): Rename to ...
17582         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
17583         (cgraph_expand_function): Remove alias output code.
17584         (cgraph_output_in_order): Skip aliases.
17585         (cgraph_preserve_function_body_p): Aliases don't need preserving.
17586         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
17587         (ipa_record_reference): Do not assert on alias references.
17588         (ipa_ref_has_aliases_p): New function.
17589         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
17590         (ipa_ref_has_aliases_p): Declare.
17591         * lto-cgraph.c (lto_output_node): Handle aliases.
17592         (input_node): Likewise.
17593         * lto-streamer-out.c (lto_output): Skip aliases.
17594         (produce_symtab): Kill same_body_alias code.
17595         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
17596         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
17597         * ipa-inline.c (update_caller_keys): Walk aliases.
17598         (inline_small_functions): Fix thinko in previous patch.
17599         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
17600         (function_and_variable_visibility): Do not walk same body aliases.
17601         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
17602         (ipa_pta_execute): Use it.
17603
17604 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
17605
17606         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
17607         (*vec_dupv2df): Rename from vec_dupv2df.
17608         (vec_dupv2df): New expander.
17609
17610 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
17611
17612         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
17613
17614 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
17615
17616         * config/i386/i386.md: Use default value in "isa" attribute.
17617         * config/i386/sse.md: Ditto.
17618         * config/i386/mmx.md: Ditto.
17619
17620 2011-06-10  Wei Guozhi  <carrot@google.com>
17621
17622         PR target/45335
17623         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
17624         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
17625         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
17626         related peephole2.
17627         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
17628         related peephole2.
17629         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
17630         (arm_legitimate_ldrd_p): New prototype.
17631         (arm_output_ldrd): New prototype.
17632         * config/arm/arm.c (arm_check_ldrd_operands): New function.
17633         (arm_legitimate_ldrd_p): New function.
17634         (arm_output_ldrd): New function.
17635
17636 2011-06-10  David Li  <davidxl@google.com>
17637
17638         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
17639         * passes.c (passr_eq): New function.
17640         (create_pass_tab): New function.
17641         (pass_traverse): New function.
17642         (dump_one_pass): New function.
17643         (dump_pass_list): New function.
17644         (dump_passes): New function.
17645
17646 2011-06-10  Jan Hubicka  <jh@suse.cz>
17647
17648         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
17649         setting the nothrow flag.
17650         * ipa-reference.c (propagate): Skip aliases.
17651         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
17652         (propagate_nothrow): Skip aliases; do not update cgraph.
17653         (local_pure_const): Do not update cgraph.
17654         * tree-profile.c (tree_profiling): Do fixup_cfg.
17655
17656 2011-06-10  Jan Hubicka  <jh@suse.cz>
17657
17658         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
17659         (cgraph_local_node_p): ... here; handle aliases.
17660         (has_addr_references_p): Break out from ...;
17661         (cgraph_remove_unreachable_nodes) ... here.
17662
17663 2011-06-10  Jan Hubicka  <jh@suse.cz>
17664
17665         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
17666         * common.opt (flag_inline_functions_called_once): Do not
17667         initialize to 1.
17668
17669 2011-06-10  Jan Hubicka  <jh@suse.cz>
17670
17671         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
17672         (ipcp_initialize_node_lattices): Do not deal with aliases;
17673         Do not try to propagate through thunks.
17674         (ipcp_change_tops_to_bottom): Do not deal with aliases.
17675
17676 2011-06-10  Jan Hubicka  <jh@suse.cz>
17677
17678         * ipa-prop.c (ipa_write_node_info): Stream jump functions
17679         for indirect calls.
17680         (ipa_read_node_info): Likewise.
17681
17682 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17683
17684         PR lto/49302
17685         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
17686         (build_and_insert_call): Likewise.
17687         (build_and_insert_ref): New.
17688         (gimple_expand_builtin_pow): Minor cleanup.
17689         (gimple_expand_builtin_cabs): New.
17690         (execute_cse_sincos): Add case for BUILT_IN_CABS.
17691
17692 2011-06-10  Jan Hubicka  <jh@suse.cz>
17693
17694         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
17695         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
17696         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
17697         (ipcp_propagate_stage): Skip aliases when propagating.
17698         (ipcp_need_redirect_p): Skip aliases.
17699         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
17700         collect_callers_of_node.
17701         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
17702         for aliases.
17703         (ipa_compute_jump_functions): Look through aliases.
17704
17705 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17706
17707         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
17708
17709 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
17710
17711         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
17712         Adjust comments.
17713         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
17714
17715 2011-06-10  Jan Hubicka  <jh@suse.cz>
17716
17717         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
17718         Update call of gimple_get_virt_method_for_binfo.
17719         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
17720         refuse_thunks parameter.
17721         (gimple_fold_call): Update.
17722         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
17723
17724 2011-06-10  Jan Hubicka  <jh@suse.cz>
17725
17726         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
17727         (not_all_callers_have_enough_arguments_p): ... this one; turn into
17728         worker for cgraph_for_node_and_aliases.
17729         (convert_callers_for_node): Break out from ...
17730         (convert_callers): ... here.
17731         (modify_function): Use collect_callers_of_node.
17732         (ipa_early_sra): Use cgraph_for_node_and_aliases.
17733
17734 2011-06-10  Richard Guenther  <rguenther@suse.de>
17735
17736         PR tree-optimization/49361
17737         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
17738         when not already in gimple form.
17739
17740 2011-06-10  Richard Guenther  <rguenther@suse.de>
17741
17742         PR bootstrap/49344
17743         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
17744         FOR_EACH_PHI_OR_STMT_USE.
17745
17746 2011-06-10  Jan Hubicka  <jh@suse.cz>
17747
17748         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
17749         (clone_inlined_nodes): ... here.
17750         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
17751         to real destination prior inlining.
17752         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
17753         can_early_inline_edge_p, want_early_inline_function_p,
17754         want_early_inline_function_p, want_inline_small_function_p,
17755         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
17756         edge_badness, update_all_callee_keys, lookup_recursive_calls,
17757         add_new_edges_to_heap, inline_small_functions, flatten_function,
17758         inline_always_inline_functions, early_inline_small_functions): Use
17759         cgraph_function_or_thunk_node.
17760         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
17761         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
17762         (do_estimate_edge_growth_1): Break out from ...
17763         (do_estimate_growth) ... here; walk aliases.
17764         (inline_generate_summary): Skip aliases.
17765
17766 2011-06-10  Richard Guenther  <rguenther@suse.de>
17767
17768         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
17769         forward when combining, visit inserted stmts when a stmt was changed.
17770
17771 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
17772
17773         * tree.h (error_operand_p): Add.
17774         * dbxout.c (dbxout_type_fields): Use the latter.
17775         * c-decl.c (add_stmt): Likewise.
17776         * gimplify.c (omp_add_variable, omp_notice_variable,
17777         gimplify_scan_omp_clauses): Likewise.
17778
17779 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
17780
17781         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
17782         when a value is actually passed in regs.
17783
17784 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
17785             Laurent Rougé  <laurent.rouge@menta.fr>
17786
17787         * doc/invoke.texi (SPARC options): Add -mflat.
17788         * config/sparc/sparc.opt: Likewise.
17789         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
17790         (sparc_flat_expand_prologue): Declare.
17791         (sparc_flat_expand_epilogue): Likewise.
17792         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
17793         (CPP_ENDIAN_SPEC): Replace with...
17794         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
17795         (CPP_SPEC): Adjust to above change.
17796         (EXTRA_SPECS): Likewise.
17797         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
17798         (INCOMING_REGNO): Likewise.
17799         (OUTGOING_REGNO): Likewise.
17800         (LOCAL_REGNO): Likewise.
17801         (SETUP_FRAME_ADDRESSES): Likewise.
17802         (FIXED_REGISTERS): Set 0 for %fp.
17803         (CALL_USED_REGISTERS): Likewise.
17804         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
17805         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
17806         (RETURN_ADDR_REGNUM): Define.
17807         (RETURN_ADDR_RTX): Use it.
17808         (INCOMING_RETURN_ADDR_REGNUM): Define.
17809         (INCOMING_RETURN_ADDR_RTX): Use it.
17810         (DWARF_FRAME_RETURN_COLUMN): Likewise.
17811         (EH_RETURN_REGNUM): Define.
17812         (EH_RETURN_STACKADJ_RTX): Use it.
17813         (EH_RETURN_HANDLER_RTX): Delete.
17814         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
17815         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
17816         Delete.
17817         (struct machine_function): Add frame_size, apparent_frame_size,
17818         frame_base_reg, frame_base_offset, n_global_fp_regs and
17819         save_local_in_regs_p fields.
17820         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
17821         sparc_frame_base_offset, sparc_n_global_fp_regs,
17822         sparc_save_local_in_regs_p): New macros.
17823         (sparc_option_override): Error out if -fcall-saved-REG is specified
17824         for Out registers.
17825         (eligible_for_restore_insn): Fix formatting.
17826         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
17827         (eligible_for_sibcall_delay): Likewise.
17828         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
17829         (sparc_legitimate_address_p): Adjust to above change.
17830         (save_global_or_fp_reg_p): New predicate.
17831         (return_addr_reg_needed_p): Likewise.
17832         (save_local_or_in_reg_p): Likewise.
17833         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
17834         (SORR_SAVE, SORR_RESTORE): Delete.
17835         (sorr_pred_t): New typedef.
17836         (sorr_act_t): New enum.
17837         (save_or_restore_regs): Rename to...
17838         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
17839         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
17840         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
17841         mechanism.  Add CFI information for double-word saves in 32-bit mode.
17842         (emit_adjust_base_to_offset): New function extracted from...
17843         (emit_save_or_restore_regs): ...this.  Rename the rest to...
17844         (emit_save_or_restore_regs_global_fp_regs): ...this.
17845         (emit_save_or_restore_regs_local_in_regs): New function.
17846         (gen_create_flat_frame_[123]): New functions.
17847         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
17848         (sparc_flat_expand_prologue): New function.
17849         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
17850         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
17851         (sparc_flat_expand_epilogue): New function.
17852         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
17853         (output_return): Likewise.
17854         (output_sibcall): Likewise.
17855         (sparc_output_mi_thunk): Likewise.
17856         (sparc_frame_pointer_required): Likewise.
17857         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
17858         function optimization.
17859         * config/sparc/sparc.md (flat): New attribute.
17860         (prologue): Add TARGET_FLAT handling.
17861         (save_register_window): Disable if TARGET_FLAT.
17862         (create_flat_frame_[123]): New patterns.
17863         (epilogue): Add TARGET_FLAT handling.
17864         (sibcall_epilogue): Likewise.
17865         (eh_return): New expander.
17866         (eh_return_internal): New insn and splitter.
17867         (return_internal): Add TARGET_FLAT handling.
17868         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
17869         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
17870         (nonlocal_goto): Add TARGET_FLAT handling.
17871         * config/sparc/t-elf: Add -mflat multilib.
17872         * config/sparc/t-leon: Likewise.
17873
17874 2011-06-10  Jan Hubicka  <jh@suse.cz>
17875
17876         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
17877         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
17878         (self_recursive_p): Use cgraph_function_node.
17879         (propagate_pure_const): Likewise.
17880         (propagate_nothrow): Likewise.
17881         * ipa-reference.c (ipa_reference_get_not_read_global): Use
17882         cgraph_function_node.
17883         (propagate_bits): Likewise.
17884         (propagate): Likewise.
17885
17886 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17887             Richard Earnshaw  <rearnsha@arm.com>
17888
17889         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
17890         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
17891         (*thumb2_movdi_vfp): Delete.
17892         (*arm_movdi_vfp_cortexa8): Delete.
17893         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
17894         (*movdi_vfp_cortexa8): Likewise.
17895
17896 2011-06-10  Richard Guenther  <rguenther@suse.de>
17897
17898         * stor-layout.c (initialize_sizetypes): Give names to all
17899         sizetype kinds.
17900
17901 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
17902
17903         PR tree-optimization/49318
17904         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
17905         irrelevant pattern statements.
17906
17907 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
17908
17909         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
17910
17911         PR bootstrap/49354
17912         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
17913         to last assignment.
17914
17915 2011-06-09  Jan Hubicka  <jh@suse.cz>
17916
17917         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
17918         do not recompute reachable flag.
17919         (cgraph_finalize_function, cgraph_analyze_functions): Set
17920         redefined_extern_inline here.
17921
17922 2011-06-09  Jan Hubicka  <jh@suse.cz>
17923
17924         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
17925         (cgraph_only_called_directly_p): ... this one; bring offline.
17926         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
17927         varpool_used_from_object_file_p): Drop names from the declaratoin.
17928         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
17929         collect_callers_of_node): New.
17930         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
17931         (cgraph_edge_recursive_p): Use cgraph_function_node.
17932         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
17933         (cgraph_node_cannot_be_local_p_1): Break out from ...
17934         (cgraph_node_can_be_local_p): ... here; walk aliases.
17935         (cgraph_for_node_thunks_and_aliases): New function.
17936         (cgraph_for_node_and_aliases): New function.
17937         (cgraph_make_node_local_1): Break out from ...
17938         (cgraph_make_node_local) ... here; use
17939         cgraph_for_node_thunks_and_aliases.
17940         (cgraph_set_nothrow_flag_1): Break out from ...
17941         (cgraph_set_nothrow_flag) ... here;
17942         use cgraph_for_node_thunks_and_aliases.
17943         (cgraph_set_const_flag_1): Break out from ...
17944         (cgraph_set_const_flag) ... here;
17945         use cgraph_for_node_thunks_and_aliases.
17946         (cgraph_set_pure_flag_1): Break out from ...
17947         (cgraph_set_pure_flag) ... here;
17948         use cgraph_for_node_thunks_and_aliases.
17949         (cgraph_propagate_frequency_1): Break out from ...
17950         (cgraph_propagate_frequency) ... here; use
17951         cgraph_for_node_thunks_and_aliases.
17952         (cgraph_used_from_object_file_p): Do not care about aliases.
17953         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
17954         New functions.
17955         (collect_callers_of_node_1, collect_callers_of_node): New functions.
17956
17957 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
17958
17959         PR rtl-optimization/49154
17960         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
17961         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
17962         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
17963         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
17964         * config/cris/cris.h (cris_register_move_cost): Remove
17965         !TARGET_V32 code.  Tweak comments.
17966
17967 2011-06-09  Jan Hubicka  <jh@suse.cz>
17968
17969         * cgraphbuild.c (record_eh_tables): Mark personality function as having
17970         address taken.
17971
17972 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
17973
17974         PR rtl-optimization/49154
17975         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
17976         is a matching slot in the hashtable, assign it to classes_ptr.
17977
17978         PR rtl-optimization/49154
17979         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
17980         register classes.
17981         * doc/tm.texi: Regenerate.
17982
17983 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
17984
17985         PR target/49307
17986         * config/sh/sh.md (UNSPEC_CHKADD): New.
17987         (chk_guard_add): New define_insn_and_split.
17988         (symGOT_load): Use chk_guard_add instead of blockage.
17989
17990 2011-06-09  Kai Tietz  <ktietz@redhat.com>
17991
17992         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
17993
17994 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
17995
17996         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
17997
17998 2011-06-09  Wei Guozhi  <carrot@google.com>
17999
18000         PR target/46975
18001         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
18002         (peephole2 for conditional move): Generate 16 bit instructions.
18003
18004 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
18005
18006         * config/i386/i386.md (*movdi_internal_rex64): Merge
18007         alternatives 6 and 8.
18008
18009 2011-06-09  David Li  <davidxl@google.com>
18010
18011         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
18012         * passes.c (passr_eq): New function.
18013         (create_pass_tab): New function.
18014         (pass_traverse): New function.
18015         (dump_one_pass): New function.
18016         (dump_pass_list): New function.
18017         (dump_passes): New function.
18018
18019 2011-06-09  David Li  <davidxl@google.com>
18020
18021         * tree-complex.c (tree_lower_complex): Gate cleanup.
18022         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
18023         (execute_optimize_stdarg): Ditto.
18024         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
18025         (execute_cleanup_eh_1): Ditto.
18026         (execute_cleanup_eh): Ditto.
18027         * gcse.c (gate_rtl_pre): Ditto.
18028         (execute_rtl_pre): Ditto.
18029         * except.c (finish_eh_generation): Ditto.
18030         (convert_to_eh_region_ranges): Ditto.
18031         * cprop.c (one_cprop_pass): Ditto.
18032
18033 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
18034
18035         PR target/48673
18036         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
18037         in all basic blocks.
18038
18039 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18040
18041         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
18042         (HAVE_ENABLE_EXECUTE_STACK): Define.
18043         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
18044         (HAVE_ENABLE_EXECUTE_STACK): Define.
18045         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
18046         (HAVE_ENABLE_EXECUTE_STACK): Define.
18047         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
18048         (ENABLE_EXECUTE_STACK): Remove.
18049         (HAVE_ENABLE_EXECUTE_STACK): Define.
18050         [IN_LIBGCC2]: Don't include <windows.h>.
18051         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
18052         (HAVE_ENABLE_EXECUTE_STACK): Define.
18053         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
18054         (HAVE_ENABLE_EXECUTE_STACK): Define.
18055         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
18056         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
18057         (HAVE_ENABLE_EXECUTE_STACK): Define.
18058         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
18059         (HAVE_ENABLE_EXECUTE_STACK): Define.
18060         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
18061         (HAVE_ENABLE_EXECUTE_STACK): Define.
18062         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
18063         (HAVE_ENABLE_EXECUTE_STACK): Define.
18064         * config/alpha/alpha.c (alpha_trampoline_init): Test
18065         HAVE_ENABLE_EXECUTE_STACK.
18066         * config/i386/i386.c (ix86_trampoline_init): Likewise.
18067         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
18068         (sparc64_initialize_trampoline): Likewise.
18069         * libgcc2.c [L_enable_execute_stack]: Remove.
18070         * system.h (ENABLE_EXECUTE_STACK): Poison.
18071         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
18072         * doc/tm.texi: Regenerate.
18073         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
18074
18075 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
18076
18077         PR middle-end/49308
18078         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
18079         variable.  After resetting and rescanning insn continue with previous
18080         statement.
18081
18082 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18083
18084         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
18085         (gcc_cv_ld_hidden): Likewise.
18086         * configure: Regenerate.
18087         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
18088         (ix86_stack_protect_fail): Mark unused.
18089         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
18090         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
18091         [TARGET_MACHO]: Don't define.
18092         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
18093         (TARGET_STACK_PROTECT_FAIL): Likewise.
18094         (rs6000_stack_protect_fail): Mark unused.
18095         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
18096         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
18097
18098 2011-06-08  Andi Kleen  <ak@linux.intel.com>
18099
18100         * varasm.c (get_section): Print location of other conflict
18101         for section conflicts.
18102
18103 2011-06-08  Andi Kleen  <ak@linux.intel.com>
18104
18105         * config/i386/driver-i386.c (host_detect_local_cpu):
18106         Add model 0x2d Intel CPU.
18107
18108 2011-06-08  Andi Kleen  <ak@linux.intel.com>
18109
18110         * reginfo.c (global_regs_decl): Add.
18111         (globalize_reg): Add decl parameter. Compute location.  Pass location
18112         to warnings and add inform. Store decl in global_regs_decl.
18113         * rtl.h (globalize_reg): Update prototype.
18114         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
18115
18116 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
18117
18118         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
18119
18120 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18121
18122         PR target/49305
18123         * config/sh/predicates.md (general_movsrc_operand): Check
18124         mode for memory with indexed address for QI and HImode.
18125         (general_movdst_operand): Likewise.
18126
18127 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
18128
18129         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
18130
18131 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
18132
18133         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
18134         (num_ssa_operands): Likewise.
18135         (op_iter_init_phiuse): Forward-declare.
18136         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
18137
18138 2011-06-08  Nick Clifton  <nickc@redhat.com>
18139
18140         * doc/invoke.texi (ARM Options): Update description of
18141         -mthumb-interwork.
18142
18143 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
18144
18145         * config/i386/driver-i386.c (host_detect_local_cpu): Support
18146         unknown Intel family 0x6 CPUs.
18147
18148 2011-06-08  Martin Jambor  <mjambor@suse.cz>
18149
18150         * tree-sra.c (mark_rw_status): Removed.
18151         (analyze_access_subtree): New parameter parent instead of
18152         mark_read and mark_write, propagate from that.
18153
18154 2011-06-08  Julian Brown  <julian@codesourcery.com>
18155
18156         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
18157         for double-precision helper functions in hard-float mode if only
18158         single-precision arithmetic is supported in hardware.
18159
18160 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
18161
18162         PR rtl-optimization/49303
18163         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
18164         code_motion_path_driver returned 0 or 1.
18165         (sel_region_finish): Clear h_d_i_d.
18166
18167 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18168
18169         * config/sh/sh.c (prepare_move_operands): Set pic register
18170         appropriately for global and local dynamic tls models even
18171         if flag_pic is unset.
18172
18173 2011-06-07  Jason Merrill  <jason@redhat.com>
18174
18175         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
18176
18177 2011-06-07  Xinliang David Li  <davidxl@google.com>
18178         * passes.c (enable_disable_pass): Handle assembler name.
18179         (is_pass_explicitly_enabled_or_disabled): Ditto.
18180
18181 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18182
18183         PR tree-optimization/48497
18184         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
18185
18186 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18187
18188         PR tree-optimization/46728
18189         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
18190         to use gimple_val_nonnegative_real_p.
18191         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
18192         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
18193
18194 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
18195
18196         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
18197
18198 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
18199
18200         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
18201         constant vectors.
18202
18203 2011-06-07  Richard Guenther  <rguenther@suse.de>
18204
18205         * stor-layout.c (initialize_sizetypes): Initialize all
18206         sizetypes based on target definitions.
18207         (set_sizetype): Remove.
18208         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
18209         * tree.h (set_sizetype): Remove.
18210
18211 2011-06-07  Nick Clifton  <nickc@redhat.com>
18212
18213         * config.gcc: Unify V850 architecture options and add support for
18214         newer V850 architectures.
18215         * config/v850/t-v850e: Delete.
18216
18217 2011-06-07  Richard Guenther  <rguenther@suse.de>
18218
18219         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
18220         Call set_sizetype from here.
18221
18222 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
18223
18224         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
18225         (*maddhisi4tb, *maddhisi4tt): New define_insns.
18226
18227 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
18228             Andrew Stubbs  <ams@codesourcery.com>
18229
18230         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
18231         multiplies.
18232         * doc/md.texi (Canonicalization of Instructions): Document widening
18233         multiply canonicalization.
18234
18235 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
18236
18237         PR gcov-profile/49299
18238         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
18239
18240 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
18241
18242         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
18243         a pointer.
18244         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
18245         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
18246         vect_recog_pow_pattern): Likewise.
18247         (vect_pattern_recog_1): Remove declaration.
18248         (widened_name_p): Remove declaration.  Add new argument to specify
18249         whether to check that both types are either signed or unsigned.
18250         (vect_recog_widen_mult_pattern): Update documentation.  Handle
18251         unsigned patterns and multiplication by constants.
18252         (vect_pattern_recog_1): Update vect_recog_func references.  Use
18253         statement information from the statement returned from pattern
18254         detection functions.
18255         (vect_pattern_recog): Update vect_recog_func reference.
18256         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
18257         multiplication by a constant use the type of the other operand.
18258
18259 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
18260
18261         PR rtl-optimization/49145
18262         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
18263
18264 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
18265
18266         PR debug/49262
18267         * dwarf2out.c (native_encode_initializer): Decrement count in each
18268         iteration.
18269
18270         PR debug/49294
18271         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
18272         non-MODE_INT modes.
18273
18274         PR c++/49264
18275         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
18276         if stmt folded into nothing.
18277         * tree-inline.c (fold_marked_statements): If a builtin at the end of
18278         a bb folded into nothing, just update cgraph edges and move to next bb.
18279         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
18280         to be NULL.  Don't compute count and frequency if new_call is NULL.
18281
18282 2011-06-04  Diego Novillo  <dnovillo@google.com>
18283
18284         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
18285         (cgraph.o): Likewise.
18286         (cgraphunit.o): Likewise.
18287         * cgraphunit.c: Include lto-streamer.h
18288         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
18289         if LTO is enabled.
18290         * lto-streamer-in.c (unpack_value_fields): Call
18291         streamer_hooks.unpack_value_fields if set.
18292         (lto_materialize_tree): For unhandled nodes, first try to
18293         call lto_streamer_hooks.alloc_tree, if it exists.
18294         (lto_input_ts_decl_common_tree_pointers): Move reading of
18295         DECL_INITIAL to lto_streamer_read_tree.
18296         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
18297         (lto_streamer_read_tree): New.
18298         (lto_reader_init): Rename from lto_init_reader.
18299         Move initialization code to lto/lto.c.
18300         * lto-streamer-out.c (pack_value_fields): Call
18301         streamer_hooks.pack_value_fields if set.
18302         (lto_output_tree_ref): For tree nodes that are not normally indexable,
18303         call streamer_hooks.indexable_with_decls_p before giving up.
18304         (lto_output_ts_decl_common_tree_pointers): Move handling
18305         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
18306         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
18307         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
18308         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
18309         (lto_streamer_write_tree): New.
18310         (lto_output): Call lto_streamer_init directly.
18311         (lto_writer_init): Remove.
18312         * lto-streamer.c (streamer_hooks): New.
18313         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
18314         instead of lto_preload_common_nodes.
18315         (lto_is_streamable): Move from lto-streamer.h
18316         (lto_streamer_hooks_init): New.
18317         (streamer_hooks): New.
18318         (streamer_hooks_init): New.
18319         * lto-streamer.h (struct output_block): Forward declare.
18320         (struct lto_input_block): Likewise.
18321         (struct data_in): Likewise.
18322         (struct bitpack_d): Likewise.
18323         (struct streamer_hooks): Declare.
18324         (streamer_hooks): Declare.
18325         (lto_streamer_hooks_init): Declare.
18326         (lto_streamer_write_tree): Declare.
18327         (lto_streamer_read_tree): Declare.
18328         (streamer_hooks_init): Declare.
18329         (lto_is_streamable): Move to lto-streamer.c
18330
18331 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18332
18333         * longlong.h (smul_ppmm): The resulting register pair contains the
18334         higher order word first.
18335
18336 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18337
18338         PR tree-optimization/46728
18339         * builtins.c (powi_table): Remove.
18340         (powi_lookup_cost): Remove.
18341         (powi_cost): Remove.
18342         (expand_powi_1): Remove.
18343         (expand_powi): Remove.
18344         (expand_builtin_pow_root): Remove.
18345         (expand_builtin_pow): Remove.
18346         (expand_builtin_powi): Eliminate handling of constant exponent.
18347         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
18348
18349 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
18350
18351         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
18352
18353 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
18354
18355         * dce.c (reset_unmarked_insns_debug_uses): New.
18356         (delete_unmarked_insns): Skip debug insns.
18357         (prescan_insns_for_dce): Likewise.
18358         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
18359         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
18360         active reg can be found.
18361         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
18362         (convert_regs_1): Use it.
18363
18364 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
18365
18366         * tree-pretty-print.c (dump_function_header): Add flags.
18367         Don't dump decl_uid with nouid.
18368         * tree-pretty-print.h (dump_function_header): Adjust.
18369         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
18370         * passes.c (pass_init_dump_file): Pass dump_flags on.
18371         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
18372
18373 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
18374
18375         PR bootstrap/49270
18376         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
18377
18378 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
18379
18380         PR tree-optimization/49243
18381         * calls.c (setjmp_call_p): Also check if fndecl has the
18382         returns_twice attribute.
18383
18384 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18385
18386         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
18387         -ffast-math etc.
18388
18389 2011-06-06  Richard Henderson  <rth@redhat.com>
18390             Georg-Johann Lay  <avr@gjlay.de>
18391
18392         PR target/42210
18393         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
18394         New predicates.
18395         * config/avr/avr.md ("insv"): New insn expander.
18396         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
18397         "*insv.not.io", "*insv.reg"): New insns.
18398
18399 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
18400
18401         PR target/49285
18402         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
18403         to nonimmediate_operand from memory_operand for the operand that is to
18404         be forced to memory by the expander.  Lose the constraints.
18405
18406 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
18407
18408         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
18409         EH return when delayed branches are disabled.
18410
18411 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
18412
18413         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
18414         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
18415         calculation.
18416         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
18417         Simplify MODE_V1DF and MODE_V2SF handling.
18418         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
18419         Simplify MODE_SF handling.
18420
18421 2011-06-04  Jan Hubicka  <jh@suse.cz>
18422
18423         PR tree-optimization/48893
18424         PR tree-optimization/49091
18425         PR tree-optimization/49179
18426         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
18427         Bounds check.
18428
18429 2011-06-04  Jan Hubicka  <jh@suse.cz>
18430
18431         PR lto/48954
18432         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
18433         bitmaps.
18434
18435 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
18436
18437         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
18438
18439 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18440
18441         PR target/49281
18442         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
18443         to be strictly smaller than 1 << shiftcount.
18444
18445 2011-06-04  Jan Hubicka  <jh@suse.cz>
18446
18447         PR tree-optimize/48929
18448         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
18449         of empty predicate.
18450
18451 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
18452
18453         PR debug/48333
18454         * calls.c (emit_call_1): Prefer the __builtin declaration of
18455         builtin functions.
18456
18457 2011-06-03   Diego Novillo  <dnovillo@google.com>
18458
18459         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
18460         (lto_input_tree_pointers): Likewise.
18461         * lto-streamer-out.c (pack_value_fields): Likewise.
18462         (lto_output_tree_pointers): Likewise.
18463         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
18464         and OPTIMIZATION_NODE.
18465
18466 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18467
18468         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
18469         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
18470         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
18471         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
18472         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
18473         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
18474         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
18475         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
18476         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
18477         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
18478         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
18479         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
18480         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
18481         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
18482         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
18483         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
18484         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
18485         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
18486         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
18487         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
18488         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
18489         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
18490         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
18491         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
18492         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
18493         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
18494         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
18495         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
18496         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
18497         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
18498         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
18499         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
18500         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
18501         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
18502         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
18503         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
18504         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
18505         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
18506         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
18507         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
18508         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
18509         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
18510         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
18511         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
18512         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
18513         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
18514         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
18515         * system.h (MD_UNWIND_SUPPORT): Poison.
18516         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
18517         * doc/tm.texi: Regenerate.
18518         * unwind-dw2.c: Include md-unwind-support.h instead of
18519         MD_UNWIND_SUPPORT.
18520         * config/ia64/unwind-ia64.c: Likewise.
18521         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
18522
18523 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
18524
18525         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
18526
18527 2011-06-03  Richard Henderson  <rth@redhat.com>
18528             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18529
18530         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
18531         (sigill_hdlr): Correct insn, insn size.
18532         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
18533
18534 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18535
18536         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
18537         t-slibgcc-dummy.
18538         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
18539         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
18540         * config/mips/t-iris: Remove.
18541         * config/mips/t-irix6: New file.
18542         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
18543
18544 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18545
18546         * Makefile.in (LIB2ADDEHDEP): Remove.
18547         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
18548         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
18549         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
18550         * config/t-darwin (LIB2ADDEHDEP): Remove.
18551         * config/t-freebsd (LIB2ADDEHDEP): Remove.
18552         * config/t-linux (LIB2ADDEHDEP): Remove.
18553
18554 2011-06-03  Diego Novillo  <dnovillo@google.com>
18555
18556         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
18557         (lto_register_var_decl_in_symtab): Likewise.
18558         (lto_register_function_decl_in_symtab): Likewise.
18559         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
18560         logic to uniquify_nodes.
18561
18562 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18563
18564         * config/alpha/t-osf5: Remove.
18565         * config/alpha/t-osf-pthread: Remove.
18566         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
18567         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
18568
18569 2011-06-03  Julian Brown  <julian@codesourcery.com>
18570
18571         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
18572         (strongarm1110): Use strongarm tuning.
18573         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
18574         * config/arm/arm.c (arm_strongarm_tune): New.
18575         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
18576         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
18577         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
18578         setting, using previous defaults or 1 for Cortex-A5.
18579         (arm_option_override): Set max_insns_skipped from current tuning.
18580
18581 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
18582
18583         * doc/install.texi (Options specification): Document --with-specs.
18584
18585 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18586
18587         * config/arm/neon.md (orndi3_neon): Actually split it.
18588
18589 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
18590
18591         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
18592         * var-tracking.c (reverse_op): Limite recurse depth to 5.
18593
18594 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
18595
18596         PR debug/47590
18597         * target.def (delay_sched2, delay_vartrack): New.
18598         * doc/tm.texi.in: Update.
18599         * doc/tm.texi: Rebuild.
18600         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
18601         * var-tracking.c (gate_handle_var_tracking): Likewise.
18602         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
18603         (bfin_flag_var_tracking): Drop.
18604         (output_file_start): Don't save and override flag_var_tracking.
18605         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
18606         (bfin_reorg): Test original variables.
18607         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
18608         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
18609         (ia64_flag_var_tracking): Drop.
18610         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
18611         (ia64_file_start): Don't save and override flag_var_tracking.
18612         (ia64_override_options_after_change): Ditto
18613         flag_schedule_insns_after_reload.
18614         (ia64_reorg): Test original variables.
18615         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
18616         (picochip_flag_var_tracking): Drop.
18617         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
18618         (picochip_option_override): Don't save and override
18619         flag_schedule_insns_after_reload.
18620         (picochip_asm_file_start): Ditto flag_var_tracking.
18621         (picochip_reorg): Test original variables.
18622         * config/spu/spu.c (spu_flag_var_tracking): Drop.
18623         (TARGET_DELAY_VARTRACK): Define.
18624         (spu_var_tracking): New.
18625         (spu_machine_dependent_reorg): Call it.
18626         (asm_file_start): Don't save and override flag_var_tracking.
18627
18628 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
18629
18630         PR target/49163
18631         * config/sh/predicates.md (general_movsrc_operand): Return 0
18632         for memory and memory subreg of which address is an invalid
18633         indexed address for QI and HImode.
18634         (general_movdst_operand): Likewise.
18635
18636 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
18637
18638         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
18639         edges only, when there is a non-local label in the function.
18640         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
18641
18642 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
18643
18644         * config/i386/constraints.md (Y3): New register constraint.
18645         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
18646         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
18647         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
18648         *sse2_interleave_lowv2df.
18649
18650 2011-06-02  Julian Brown  <julian@codesourcery.com>
18651
18652         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
18653         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
18654         (arm_cortex_a5_tune): New.
18655
18656 2011-06-02  Julian Brown  <julian@codesourcery.com>
18657
18658         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
18659         * config/arm/arm.c (arm_default_branch_cost): New.
18660         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
18661         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
18662         (arm_fa726_tune): Set branch_cost field using
18663         arm_default_branch_cost.
18664         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
18665         current_tune structure.
18666         * dojump.c (tm_p.h): Include file.
18667
18668 2011-06-02  Julian Brown  <julian@codesourcery.com>
18669
18670         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
18671         tuning.
18672         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
18673         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
18674         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
18675         field.
18676         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
18677         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
18678         (arm_fa726te_tune): Add prefer_constant_pool setting.
18679         (arm_v6t2_tune, arm_cortex_tune): New.
18680         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
18681         prefer_constant_pool setting.
18682
18683 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
18684
18685         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
18686         switch statement.
18687         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
18688         (*movdf_internal) <case 6,7,8>: Ditto.
18689
18690         * config/i386/constraints.md (Y4): New register constraint.
18691         * config/i386/sse.md (vec_set<mode>_0): Merge with
18692         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
18693         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
18694         *vec_extractv2di_1_sse.
18695         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
18696         and *vec_concatv2di_rex64_sse.
18697
18698 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
18699
18700         PR target/48807
18701         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
18702         of cgraph_local_info for null before attempting to use it.
18703
18704 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
18705
18706         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
18707         (current_function_dynamic_alloc_count): Delete.
18708         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
18709         (expand_builtin_nonlocal_goto): Remove obsolete comment.
18710         (expand_builtin_update_setjmp_buf): Remove dead code.
18711         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
18712         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
18713         support.
18714         * function.c (instantiate_virtual_regs): Likewise.
18715         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
18716         for a block with a single abnormal incoming edge.
18717         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
18718         (SETJMP_VIA_SAVE_AREA): Delete.
18719         * config/sparc/sparc-protos.h (load_got_register): Declare.
18720         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
18721         (load_got_register): Make global.
18722         (sparc_frame_pointer_required): Add 'static'.
18723         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
18724         (sparc_builtin_setjmp_frame_value): New function.
18725         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
18726         (save_stack_nonlocal): New expander.
18727         (restore_stack_nonlocal): Likewise.
18728         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
18729         (nonlocal_goto_internal): New insn.
18730         (goto_handler_and_restore): Delete.
18731         (builtin_setjmp_setup): Likewise.
18732         (do_builtin_setjmp_setup): Likewise.
18733         (setjmp): Likewise.
18734         (builtin_setjmp_receiver): New expander.
18735
18736 2011-06-01  David Li  <davidxl@google.com>
18737
18738         PR middle-end/49261
18739         * tree-pretty-print.c (dump_function_header): Format cleanup.
18740
18741 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
18742
18743         PR target/49238
18744         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
18745         needed when original operands are used for msw_skip comparison.
18746
18747 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
18748
18749         PR debug/49250
18750         * var-tracking.c (add_uses, add_stores): Don't call
18751         cselib_subst_to_values on ENTRY_VALUE.
18752
18753 2011-06-01  Diego Novillo  <dnovillo@google.com>
18754
18755         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
18756         output_record_start with LTO_null instead of output_zero.
18757         (lto_output_ts_binfo_tree_pointers): Likewise.
18758         (lto_output_tree): Likewise.
18759         (output_eh_try_list): Likewise.
18760         (output_eh_region): Likewise.
18761         (output_eh_lp): Likewise.
18762         (output_eh_regions): Likewise.
18763         (output_bb): Likewise.
18764         (output_function): Likewise.
18765         (output_unreferenced_globals): Likewise.
18766         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
18767         instead of NUM_TREE_CODES.
18768         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
18769         (lto_output_int_in_range): Change << to >> when shifting VAL.
18770
18771 2011-06-01  Diego Novillo  <dnovillo@google.com>
18772
18773         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
18774         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
18775
18776 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
18777
18778         PR target/45074
18779         * optabs.h (valid_multiword_target_p): Declare.
18780         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
18781         doing multi-word operations.
18782         * optabs.c (expand_binop): Likewise.
18783         (expand_doubleword_bswap): Likewise.
18784         (expand_absneg_bit): Likewise.
18785         (expand_unop): Likewise.
18786         (expand_copysign_bit): Likewise.
18787         (multiword_target_p): New function.
18788
18789 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
18790
18791         PR rtl-optimization/48830
18792         PR rtl-optimization/48808
18793         PR rtl-optimization/48792
18794         * reload.c (push_reload): Check contains_reg_of_mode.
18795         * reload1.c (strip_paradoxical_subreg): New function.
18796         (gen_reload_chain_without_interm_reg_p): Use it to handle
18797         paradoxical subregs.
18798         (emit_output_reload_insns, gen_reload): Likewise.
18799
18800 2011-06-01  David Li  <davidxl@google.com>
18801
18802         * predict.c : Change pass name
18803         * ipa.c: Ditto.
18804         * dce.c: Ditto.
18805         * tree-profile.c: Ditto.
18806         * except.c: Ditto.
18807
18808 2011-06-01  David Li  <davidxl@google.com>
18809
18810         * tree-pretty-print.c (dump_function_header): New function.
18811         * final.c (rest_of_clean_state): Use header dumper.
18812         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
18813         * passes.c (pass_init_dump_file): Use header dumper.
18814
18815 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
18816
18817         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
18818         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
18819         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
18820         New functions.
18821         (mem_loc_descriptor): Use them.
18822
18823         * var-tracking.c (create_entry_value): New function.
18824         (vt_add_function_parameter): Use it.
18825
18826 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18827
18828         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
18829         Include <signal.h>, <ucontext.h>.
18830         (sigill_caught): Define.
18831         (sigill_hdlr): New function.
18832         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
18833         insns can be executed.
18834         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
18835         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
18836
18837 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18838
18839         * config/t-slibgcc-darwin: Move to ...
18840         * config/t-slibgcc-dummy: ... this.  Clarify comments.
18841         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
18842         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
18843         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
18844         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
18845         Remove i386/t-crtstuff from tmake_file.
18846         (i[34567]86-*-solaris2*): Remove t-svr4,
18847         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
18848         t-slibgcc-dummy.
18849         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
18850         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
18851         sparc/t-crtfm from tmake_file.
18852         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
18853         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
18854         Remove extra_parts.
18855         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
18856         * config/i386/t-nwld (SHLIB_LINK): Remove.
18857         * config/i386/t-rtems-i386: Rename to ...
18858         * config/i386/t-rtems: ... this.
18859         ($(T)crti.o, $(T)crtn.o): Remove.
18860         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
18861         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
18862         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
18863         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
18864         EXTRA_MULTILIB_PARTS): Remove.
18865         * config/sparc/t-sol2-64: Likewise.
18866         * config/sparc/t-sol2: Remove.
18867         * config/sparc/t-crtin: Remove.
18868         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
18869         * config/i386/gmon-sol2.c: Remove.
18870         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
18871         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
18872         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
18873         * config/i386/sol2-gc1.asm: Remove.
18874         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
18875         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
18876         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
18877         * config/t-slibgcc-sld: Remove.
18878
18879 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
18880
18881         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
18882         base_type_for_mode with op_mode instead of mode.
18883
18884 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
18885
18886         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
18887         Cortex-A15.
18888         * config/arm/arm-tune.md: Regenerate.
18889         * config/arm/arm-tables.opt: Regenerate.
18890         * config/arm/arm.c (FL_DIV): Rename...
18891         (FL_THUMB_DIV): ... to this.
18892         (FL_ARM_DIV): Define.
18893         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
18894         (arm_arch_hwdiv): Remove.
18895         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
18896         (arm_issue_rate): Add cortexr5.
18897         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
18898         __ARM_ARCH_EXT_IDIV__.
18899         (TARGET_IDIV): Define.
18900         (arm_arch_hwdiv): Remove.
18901         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
18902         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
18903         (divsi3, udivsi3): New patterns.
18904         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
18905         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
18906
18907 2011-06-01  Martin Jambor  <mjambor@suse.cz>
18908
18909         * ipa-utils.c (ipa_dfs_info): New field scc_no.
18910         * ipa-utils.c (searchc): Set scc_no.
18911
18912 2011-06-01  Martin Jambor  <mjambor@suse.cz>
18913
18914         * ipa-utils.c (searchc_env): New field allow_overwritable.
18915         (searchc): do not ignore edges to overwritable nodes if indicated
18916         by env->allow_overwritable.
18917         (ipa_reduced_postorder): Set env.allow_overwritable.
18918
18919 2011-06-01  Richard Guenther  <rguenther@suse.de>
18920
18921         * tree.c (free_lang_data): Do not reset boolean_type_node nor
18922         char_type_node.
18923         * lto-streamer.c (lto_record_common_node): Take node pointer,
18924         do not register types.
18925         (lto_preload_common_nodes): Explicitly skip preloading nodes
18926         that differ between frontends.
18927
18928 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
18929
18930         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
18931         NON_FLOAT_REGS.
18932
18933 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
18934
18935         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
18936         parameter value for dump. Dump cost on outermost call only.
18937         (rs6000_memory_move_cost): Dump cost on outermost call only.
18938
18939 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
18940
18941         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
18942         DW_OP_GNU_convert ops.
18943
18944         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
18945         cselib_preserve_constants.
18946         (cselib_lookup_1): If cselib_preserve_constants,
18947         a new VALUE is being created for REG and there is a VALUE for the
18948         same register in wider mode, add another loc with lowpart SUBREG of
18949         the wider VALUE.
18950         (cselib_subst_to_values): Handle ENTRY_VALUE.
18951         * var-tracking.c  (replace_expr_with_values): Return NULL for
18952         ENTRY_VALUE too.
18953         * dwarf2out.c (convert_descriptor_to_signed): New function.
18954         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
18955         instead of two shifts.
18956         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
18957         the right mode if needed.
18958         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
18959         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
18960         convert_descriptor_to_signed.
18961         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
18962         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
18963
18964         PR target/48688
18965         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
18966
18967 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
18968
18969         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
18970         of X87MODEI12 and SWI48x instead of SSEMODEI24.
18971         (SWI248x): New mode iterator, rename from X87MODEI.
18972         (X87MODEI): Remove mode iterator.
18973         (X87MODEI12): Ditto.
18974         (SSEMODEI24): Ditto.
18975
18976 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
18977
18978         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
18979         * doc/invoke.texi: Document max-vartrack-expr-depth.
18980         * var-tracking.c (EXPR_DEPTH): New.
18981         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
18982
18983 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
18984
18985         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
18986         * config/i386/sse.md: Add n to negated FMA pattern names.
18987
18988 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
18989
18990         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
18991
18992 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
18993
18994         * gengtype-state.c (read_state_params_structs): Initialize previous.
18995
18996 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
18997
18998         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
18999         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
19000
19001 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
19002
19003         * config/i386/i386.md (*movtf_internal): Avoid allocating general
19004         registers.  Penalize F*r->o alternative to prevent partial memory
19005         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
19006         CONST_DOUBLE immediates when optimizing function for size.  Do not move
19007         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
19008         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
19009         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
19010         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
19011         alternatives.
19012         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
19013
19014         (fp_register_operand splitters): Use fp_register_operand
19015         constraint.  Do not use FP_REG_P in insn condition.
19016         (any_fp_register_operand splitters): Use any_fp_register_operand
19017         constraint.  Do not use ANY_FP_REG_P in insn condition.
19018
19019 2011-05-31  Jan Hubicka  <jh@suse.cz>
19020
19021         * cgraph.h (cgraph_inline_failed_t): Give enum a name
19022         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
19023         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
19024         (lto_output_edge): Use output_enum and var_len_unsigned.
19025         (lto_output_varpool_node): Likewise.
19026         (input_overwrite_node): Do not take resolution parameter;
19027         extract it from a bitpack.
19028         (input_node): Do not read resolution; use input_enum and
19029         var_len_unsigned.
19030         (input_varpool_node): Likewise.
19031         (input_edge): Likewise.
19032         (input_cgraph_1): Likewise.
19033
19034 2011-05-31  Richard Guenther  <rguenther@suse.de>
19035
19036         * gimple.c (gimple_register_canonical_type): Do not register
19037         any types via gimple_register_type.
19038
19039 2011-05-31  Jan Hubicka  <jh@suse.cz>
19040
19041         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
19042         of thunks.
19043
19044 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
19045
19046         PR rtl-optimization/49235
19047         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
19048         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
19049
19050 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
19051
19052         PR tree-optimization/49093
19053         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
19054         data references.
19055
19056 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
19057
19058         PR debug/49047
19059         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
19060         for concrete functions containing the code of cloned functions.
19061
19062 2011-05-31  Richard Guenther  <rguenther@suse.de>
19063
19064         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
19065         to ...
19066         (forward_propagate_into_comparison_1): ... this.
19067         (forward_propagate_comparison): Rename to ...
19068         (forward_propagate_into_comparison): ... this.  Split out
19069         real forward propagation code to ...
19070         (forward_propagate_comparison): ... this.
19071         (forward_propagate_into_gimple_cond): Remove looping.
19072         (forward_propagate_into_cond): Likewise.
19073         (simplify_not_neg_expr): Return whether we have done something.
19074         (simplify_gimple_switch): Likewise.
19075         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
19076         (ssa_forward_propagate_and_combine): ... this.  Re-structure
19077         to do a forward forward-propagation walk on BBs and a backward
19078         stmt combining walk on BBs.  Consistently re-scan changed statements.
19079         (pass_forwprop): Adjust.
19080
19081 2011-05-30  Ian Lance Taylor  <iant@google.com>
19082
19083         * godump.c (go_format_type): Correct length of name added to
19084         obstack for anonymous field.
19085
19086 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
19087
19088         PR target/49186
19089         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
19090         part of the second operand is 0.
19091
19092 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
19093
19094         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
19095         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
19096         to memory for !TARGET_MEMORY_MISMATCH_STALL.
19097         (*movdf_internal_rex64): Do not penalize F->r alternative.
19098         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
19099         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
19100         when optimizing function for size.  Do not move CONST_DOUBLEs
19101         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
19102         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
19103         SUBREGs.  Do not check for MEM_P operands in the insn condition,
19104         check for ANY_FP_REGNO_P instead.
19105         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
19106         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
19107         function for speed.
19108         * config/i386/i386.c (ix86_option_override_internal): Do not
19109         set TARGET_INTEGER_DFMODE_MOVES here.
19110
19111 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
19112
19113         PR target/49168
19114         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
19115
19116 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
19117
19118         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
19119         DW_TAG_rvalue_reference_type even for
19120         -gdwarf-4 -fno-debug-types-section.
19121
19122 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19123
19124         PR tree-optimization/46728
19125         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
19126         (build_and_insert_binop): New.
19127         (gimple_expand_builtin_pow): Reorder args for
19128         build_and_insert_call; use build_and_insert_binop; add more
19129         optimizations for fractional exponents.
19130
19131 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
19132
19133         PR bootstrap/49190
19134
19135         Revert:
19136         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
19137
19138         * tree.h (struct tree_identifier): Inherit from tree_typed, not
19139         tree_common.
19140         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
19141         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
19142         TS_BASE instead of TS_COMMON.
19143         * varasm.c (assemble_name): Remove assert.
19144
19145 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
19146
19147         * config.gcc: Keep obselete list sorted.
19148
19149 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
19150             Eric Botcazou  <ebotcazou@adacore.com>
19151
19152         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
19153         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
19154         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
19155         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
19156         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
19157
19158 2011-05-30  Richard Guenther  <rguenther@suse.de>
19159
19160         * gimple.c (gimple_types_compatible_p_1): Compare record
19161         and union type members properly.
19162
19163 2011-05-30  Richard Guenther  <rguenther@suse.de>
19164
19165         PR tree-optimization/49210
19166         * ipa-split.c (split_function): Care for the case where the call
19167         result is not trivially convertible to the result holding variable.
19168
19169 2011-05-30  Richard Guenther  <rguenther@suse.de>
19170
19171         PR tree-optimization/49218
19172         * tree-vrp.c (adjust_range_with_scev): Properly check whether
19173         overflow occured.
19174
19175 2011-05-30  Richard Guenther  <rguenther@suse.de>
19176
19177         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
19178         New function split out from ...
19179         (forward_propagate_into_gimple_cond): ... here.  Adjust.
19180         (forward_propagate_into_cond): Likewise.
19181         (forward_propagate_comparison): Also propagate into
19182         comparisons on assignment RHS.  Change return value to
19183         behave similar to forward_propagate_into_cond.
19184         (tree_ssa_forward_propagate_single_use_vars): Handle
19185         strict-overflow warnings properly for forward_propagate_comparison.
19186
19187 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19188
19189         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
19190         from plugin linker.
19191         * configure: Regenerate.
19192
19193 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
19194
19195         PR tree-optimization/49199
19196         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
19197         non-reduction operands are either defined in the loop or by induction.
19198
19199 2011-05-29  Xinliang David Li  <davidxl@google.com>
19200
19201         * opts-global.c (handle_common_deferred_options): Handle new options.
19202         * passes.c (register_one_dump_file): Call register_pass_name.
19203         (execute_one_pass): Check explicit enable/disable flag.
19204         (passr_hash): New function.
19205         (passr_eq): Ditto.
19206         (register_pass_name): Ditto.
19207         (get_pass_by_name): Ditto.
19208         (pass_hash): Ditto.
19209         (pass_eq): Ditto.
19210         (enable_pass): Ditto.
19211         (disable_pass): Ditto.
19212         (is_pass_explicitly_enabled_or_disabled): Ditto.
19213
19214 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
19215
19216         * config/i386/i386.md (*movoi_internal_avx): Use
19217         standard_sse_constant_opcode for alternative 0.
19218         (*movti_internal_sse): Ditto.
19219         (*movti_internal_rex64): Use standard_sse_constant_opcode for
19220         alternative 2.
19221         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
19222         sselog1 type moves.
19223         (*movsi_internal): Ditto.
19224         (*movdi_internal): Ditto.  Add ssecvt type moves.
19225
19226 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
19227
19228         PR target/48830
19229         * rtlanal.c (simplify_subreg_regno): Adjust comment.
19230
19231 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
19232
19233         PR rtl-optimization/49095
19234         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
19235         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
19236
19237 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
19238
19239         PR target/43995
19240         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
19241         recurse_p argument.  Only follow register copies if it is set,
19242         and prevent mips_find_pic_call_symbol from recursing.
19243         (mips_find_pic_call_symbol): Add a recurse_p argument.
19244         Pass it to mips_pic_call_symbol_from_set.
19245         (mips_annotate_pic_calls): Update accordingly.
19246
19247 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
19248
19249         * emit-rtl.c (try_split): Use a loop to search for
19250         NOTE_INSN_CALL_ARG_LOCATIONs.
19251
19252 2011-05-29  Richard Guenther  <rguenther@suse.de>
19253
19254         PR tree-optimization/49217
19255         * ipa-pure-const.c (propagate_pure_const): Fix typos.
19256
19257 2011-05-28  Jan Hubicka  <jh@suse.cz>
19258
19259         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
19260         length.
19261         (string_slot_free): Remove
19262         (create_output_block): Initialize obstack.
19263         (destroy_output_block): Free obstack.
19264         (lto_string_index): Add PERSISTENT parameter; do not duplicate
19265         the string unless it needs to be added into the hash.
19266         (lto_output_string_with_length): Add persistent attribute;
19267         handle NULL strings.
19268         (lto_output_string): Add PERSISTENT parameter.
19269         (output_string_cst, output_identifier): Simplify.
19270         (lto_output_location_bitpack): Update.
19271         (lto_output_builtin_tree): Update.
19272         * lto-streamer.h (struct output_block): Add obstack.
19273         (lto_output_string, lto_output_string_with_length): Remove
19274         declarations; functions are static now.
19275
19276 2011-05-28  Jan Hubicka  <jh@suse.cz>
19277
19278         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
19279         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
19280         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
19281         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
19282         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
19283         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
19284         unpack_ts_decl_with_vis_value_fields,
19285         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
19286         lto_get_builtin_tree): Use enum and variable length i/o.
19287         * basic-block.h (profile_status_d): Add PROFILE_LAST.
19288         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
19289         New functions.
19290         (bp_pack_enum, bp_unpack_enum): New macros.
19291
19292 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
19293
19294         * genrecog.c: Remove redundant forward declarations.
19295
19296 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
19297
19298         * config.gcc: Deprecate mips*-*-openbsd*.
19299
19300 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
19301
19302         PR bootstrap/49195
19303         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
19304         for match_op_dup.
19305
19306 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
19307
19308         PR middle-end/48981
19309         * gengtype.c (vec_prefix_type): New function.
19310         (note_def_vec): Use vec_prefix_type and change the length
19311         attribute to be based on the prefix.
19312         * vec.c: Include coretypes.h before vec.h.
19313         (struct vec_prefix): Remove.
19314         (vec_gc_p_reserve): Change the offsetof to sizeof.
19315         (vec_gc_p_reserve_exact): Likewise.
19316         (vec_heap_p_reserve): Likewise.
19317         (vec_heap_p_reserve_exact): Likewise.
19318         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
19319         (vec_stack_p_reserve): Change the offsetof to sizeof.
19320         (vec_stack_p_reserve_exact): Likewise.
19321         * vec.h (struct vec_prefix): New struct definition.
19322         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
19323         (VEC_T_GTY(T,B)): Likewise.
19324         (DEF_VEC_FUNC_P(T)): Use prefix field.
19325         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
19326         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
19327
19328 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19329
19330         PR tree-optimization/46728
19331         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
19332         (powi_as_mults): Add gimple_set_location.
19333         (build_and_insert_call): New.
19334         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
19335         0.5, 0.25, 0.75, 1./3., or 1./6.
19336
19337 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
19338
19339         * doc/contrib.texi: Update copyright years.
19340         (Contributors): Add Zdenek Sojka.
19341
19342 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
19343
19344         * c-decl.c (c_push_function_context): Copy the current statement
19345         list stack.
19346         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
19347         (finish_struct): Call building_stmt_list_p instead of checking
19348         cur_stmt_list.
19349         * c-parser.c (c_parser_postfix_expression): Likewise.
19350         * c-typeck.c (c_end_compound_stmt): Likewise.
19351         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
19352         * tree-iterator.c (stmt_list_cache): Change to a VEC.
19353         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
19354         (free_stmt_list): Likewise.
19355         * tree.h (struct tree_statement_list): Include typed_tree instead
19356         of tree_common.
19357         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
19358         as TS_TYPED instead of TS_COMMON.
19359
19360 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19361             Uros Bizjak  <ubizjak@gmail.com>
19362
19363         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
19364         (HAVE_AS_IX86_TLSGDPTL): Define.
19365         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
19366         (HAVE_AS_IX86_TLSLDMPLT): Define.
19367         * configure: Regenerate.
19368         * config.in: Regenerate.
19369         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
19370         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
19371         TARGET_SUN_TLS, use @tlsgdplt or @plt.
19372         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
19373         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
19374         @tlsldmplt or @plt.
19375         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
19376
19377 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
19378
19379         * sched-int.h (struct _haifa_deps_insn_data): New members cond
19380         and reverse_cond.
19381         (INSN_COND, INSN_REVERSE_COND): New macros.
19382         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
19383         once.
19384         (sched_get_condition_with_rev): Cache the results, and look them up
19385         if possible.
19386         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
19387         are clobbered by the current insn.
19388         * target.def (exposed_pipline): New sched data hook.
19389         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
19390         * doc/tm.texi: Regenerate.
19391
19392 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19393
19394         PR tree-optimization/49170
19395         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
19396         sincos or cexp.
19397
19398 2011-05-27  Richard Guenther  <rguenther@suse.de>
19399
19400         PR middle-end/49189
19401         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
19402         of comparisons.
19403
19404 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
19405
19406         * haifa-sched.c (sched_scan_info): Remove.
19407         (schedule_block): Call sched_extend_luids rather than sched_init_luids
19408         with NULL args.
19409         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
19410         Remove functions.
19411         (sched_scan): Remove.
19412         (sched_extend_luids): Renamed from luids_extend_insn and no longer
19413         static.  All callers changed.
19414         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
19415         static.  All callers changed.
19416         (sched_init_luids): Remove all arguments except the first.  All
19417         callers changed.  Don't use sched_scan.
19418         (haifa_init_h_i_d): Likewise.
19419         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
19420         manually rather than using sched_init_luids.  Likewise with
19421         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
19422         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
19423         rather than sched_init_luids with NULL args.
19424         * sel-sched-ir.c (new_insns): Remove variable.
19425         (sched_scan): New static function, previously in haifa-sched.c.  Remove
19426         all arguments but the first two; all callers changed.
19427         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
19428         rather than sched_init_luids.
19429         (sel_init_bbs): Remove second argument.  All callers changed.
19430         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
19431         with NULL arguments.
19432         (create_insn_rtx_from_pattern): Likewise.
19433         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
19434         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
19435         (sched_init_insn_luid, sched_extend_luids): Declare.
19436         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
19437         declarations.
19438
19439 2011-05-27  Richard Guenther  <rguenther@suse.de>
19440
19441         PR middle-end/49177
19442         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
19443         A CMP B ? (T) true : (T) false for non-integral types T again.
19444
19445 2011-05-27  Jan Hubicka  <jh@suse.cz>
19446
19447         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
19448         so 0 means NULL string.
19449         (lto_output_string_with_length): ... here.
19450         (lto_output_string, output_string_cst, output_identifier): Update
19451         handling of NULL strings.
19452         (lto_output_location_bitpack): New function.
19453         (lto_output_location): Use it.
19454         (lto_output_tree_ref): Use output_record_start.
19455         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
19456         len values.
19457         * lto-streamer-in.c (string_for_index): Break out from ...; offset
19458         values by 1.
19459         (input_string_internal): ... here;
19460         (input_string_cst, input_identifier, lto_input_string): Update handling
19461         of NULL strings.
19462         (lto_input_location_bitpack): New function
19463         (lto_input_location): Use it.
19464         (unpack_ts_type_common_value_fields): Pack align & alias in var len
19465         values.
19466         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
19467         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
19468         (bp_pack_value): Sanity check the value range.
19469         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
19470         New functions.
19471         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
19472         New functions.
19473
19474 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
19475
19476         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
19477         call_arg_location instructions down the floor.
19478
19479 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
19480
19481         PR rtl-optimization/49154
19482         * ira.c (setup_pressure_classes): Process class without sublcasses
19483         as a candidate for pressure classes.
19484
19485 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
19486
19487         PR rtl-optimization/48575
19488         * genrecog.c (position_type): New enum.
19489         (position): New structure.
19490         (decision): Use position structure instead of a string.
19491         (root_pos, peep2_insn_pos_list): New variables.
19492         (next_position, compare_positions): New functions.
19493         (new_decision): Use position structures instead of strings.
19494         (maybe_both_true): Likewise.
19495         (change_state): Likewise.
19496         (write_tree): Likewise.
19497         (make_insn_sequence): Likewise.
19498
19499 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
19500
19501         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
19502         TS_BASE instead of TS_COMMON.
19503         (find_decls_types_r): Check for TS_TYPED structure before looking at
19504         TREE_TYPE.
19505         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
19506         Add chain field.
19507         (BLOCK_CHAIN): Use new chain field.
19508
19509 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
19510
19511         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
19512         moves expensive on Power7 also.
19513
19514 2011-05-26  Richard Guenther  <rguenther@suse.de>
19515
19516         * fold-const.c (fold_unary_loc): Remove bogus code.
19517
19518 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
19519
19520         * tree.h (struct tree_identifier): Inherit from tree_typed, not
19521         tree_common.
19522         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
19523         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
19524         TS_BASE instead of TS_COMMON.
19525         * varasm.c (assemble_name): Remove assert.
19526
19527 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
19528
19529         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
19530         substituted first.
19531         * libgcc-std.ver: Delete file.
19532
19533 2011-05-26  Richard Guenther  <rguenther@suse.de>
19534
19535         PR tree-optimization/48702
19536         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
19537         only when we know the base address is within bounds.
19538         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
19539         assume the base address of TARGET_MEM_REFs is in bounds.
19540
19541 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19542
19543         PR target/49099
19544         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
19545         declaration in TARGET_SOLARIS.
19546
19547 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
19548
19549         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
19550         The instruction is then expanded explicitly.
19551         (supported_compare): Callable instruction.
19552         (compare): Likewise.
19553
19554 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
19555
19556         PR c++/49165
19557         * gimplify.c (shortcut_cond_r): Don't special case
19558         COND_EXPRs if they have void type on one of their arms.
19559
19560 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
19561
19562         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
19563         to reduce duplication, and to achieve a slightly more logical order
19564         of operations.
19565
19566 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
19567
19568         PR tree-optimization/49161
19569         * tree-vrp.c (struct case_info): New type.
19570         (compare_case_labels): Sort case_info structs instead of
19571         trees, and not primarily by CASE_LABEL uids but by
19572         label_for_block indexes.
19573         (find_switch_asserts): Put case labels into struct case_info
19574         array instead of TREE_VEC, adjust sorting, compare label_for_block
19575         values instead of CASE_LABELs.
19576
19577 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19578
19579         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
19580         ("orndi3_neon"): Likewise.
19581         ("bic<mode>3_neon"): Likewise.
19582
19583 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
19584
19585         PR tree-optimization/49038
19586         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
19587         Ensure at least one epilogue iteration if required by data
19588         accesses with gaps.
19589         * tree-vectorizer.h (struct _loop_vec_info): Add new field
19590         to mark loops that require peeling for gaps.
19591         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
19592         (vect_get_known_peeling_cost): Take peeling for gaps into
19593         account.
19594         (vect_transform_loop): Generate epilogue if required by data
19595         access with gaps.
19596         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
19597         loop as requiring an epilogue if there are gaps in the end of
19598         the strided group.
19599
19600 2011-05-25  Ian Lance Taylor  <iant@google.com>
19601
19602         * godump.c (go_format_type): Output the first field with a usable
19603         Go type, if any.
19604
19605 2011-05-25  Ian Lance Taylor  <iant@google.com>
19606
19607         * godump.c (go_format_type): Check for invalid type names, pointer
19608         target types, and struct field types.
19609
19610 2011-05-25  Jason Merrill  <jason@redhat.com>
19611
19612         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
19613
19614 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
19615
19616         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
19617
19618 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
19619
19620         * config/i386/i386.md (*movqi_extv_1)): Put back
19621         "register_operand" check in "type" calculation.
19622         (*movqi_extzv_2): Likewise.
19623
19624 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
19625
19626         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
19627
19628 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
19629
19630         PR bootstrap/49160
19631         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
19632         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
19633         __divxc3, __divtc3): Wrap definitions in #ifndef.
19634
19635 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
19636
19637         PR target/49142
19638         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
19639         "register_operand" check and replace q_regs_operand with
19640         QIreg_operand in "type" calculation.
19641         (*movqi_extv_1): Likewise.
19642         (*movqi_extzv_2_rex64): Likewise.
19643         (*movqi_extzv_2): Likewise.
19644
19645         * config/i386/predicates.md (QIreg_operand): New.
19646
19647 2011-05-25  Richard Guenther  <rguenther@suse.de>
19648
19649         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
19650         type-based offset disambiguation, streamline MEM_REF and
19651         TARGET_MEM_REF handling.
19652
19653 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
19654
19655         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
19656         (bdesc_special_args): Add pause intrinsic.
19657
19658         * config/i386/i386.md (UNSPEC_PAUSE): New.
19659         (pause): Likewise.
19660         (*pause): Likewise.
19661         * config/i386/ia32intrin.h (__pause): Likewise.
19662
19663         * doc/extend.texi (X86 Built-in Functions): Add documentation for
19664         pause intrinsic.
19665
19666 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19667
19668         PR tree-optimization/46728
19669         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
19670         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
19671
19672 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
19673
19674         * tree.h (struct tree_exp): Inherit from struct tree_typed.
19675         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
19676         instead of TS_COMMON.
19677
19678 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
19679
19680         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
19681         LIBGCC2_GNU_PREFIX is defined.
19682         (__N): New macro.
19683         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
19684         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
19685         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
19686         __clz_tab): Define using __N.
19687         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
19688         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
19689         * target.def (libfunc_gnu_prefix): New hook.
19690         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
19691         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
19692         * doc/tm.texi: Regenerate.
19693         * system.h (LIBGCC2_GNU_PREFIX): Poison.
19694         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
19695         account.
19696         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
19697         (init_optabs): Likewise for the bswap libfuncs.
19698         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
19699         and divide.
19700         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
19701         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
19702         * libgcc-std.ver: Remove.
19703         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
19704         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
19705         libgcc-std.ver.
19706         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
19707         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
19708         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
19709         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
19710         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
19711         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
19712         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
19713         * config/fixed-bit.h (FIXED_OP): Define differently depending on
19714         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
19715         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
19716
19717 2011-05-25  Jan Hubicka  <jh@suse.cz>
19718
19719         * lto-streamer-out.c (output_record_start): Use lto_output_enum
19720         (lto_output_tree): Use output_record_start.
19721         * lto-streamer-in.c (input_record_start): Use lto_input_enum
19722         (lto_get_pickled_tree): Use input_record_start.
19723         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
19724         (lto_value_range_error): New function.
19725         * lto-streamer.h (lto_value_range_error): Declare.
19726         (lto_output_int_in_range, lto_input_int_in_range): New functions.
19727         (lto_output_enum, lto_input_enum): New macros.
19728
19729 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
19730
19731         * common.opt (flag_stack_usage_info): New variable.
19732         (-Wstack-usage): New option.
19733         * doc/invoke.texi (Warning options): Document -Wstack-usage.
19734         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
19735         <OPT_fstack_usage>: Likewise.
19736         * toplev.c (output_stack_usage): Handle -Wstack-usage.
19737         * calls.c (expand_call): Test flag_stack_usage_info variable instead
19738         of flag_stack_usage.
19739         (emit_library_call_value_1): Likewise.
19740         * explow.c (allocate_dynamic_stack_space): Likewise.
19741         * function.c (instantiate_virtual_regs ): Likewise.
19742         (prepare_function_start): Likewise.
19743         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
19744         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
19745         * config/arm/arm.c (arm_expand_prologue): Likewise.
19746         (thumb1_expand_prologue): Likewise.
19747         * config/avr/avr.c (expand_prologue): Likewise.
19748         * config/i386/i386.c (ix86_expand_prologue): Likewise.
19749         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
19750         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
19751         * config/mips/mips.c (mips_expand_prologue): Likewise.
19752         * config/pa/pa.c (hppa_expand_prologue): Likewise.
19753         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
19754         * config/s390/s390.c (s390_emit_prologue): Likewise.
19755         * config/sh/sh.c (sh_expand_prologue): Likewise.
19756         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
19757         * config/spu/spu.c (spu_expand_prologue): Likewise.
19758
19759 2011-05-25  Richard Guenther  <rguenther@suse.de>
19760
19761         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
19762         (gimple_canonical_types_compatible_p): Likewise.
19763
19764 2011-05-25  Jan Hubicka  <jh@suse.cz>
19765
19766         PR middle-end/49062
19767         * ipa.c (function_and_variable_visibility): Only add to same
19768         comdat group list if DECL_ONE_ONLY.
19769
19770 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
19771
19772         PR rtl-optimization/49014
19773         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
19774
19775 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19776
19777         PR target/49128
19778         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
19779
19780 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
19781
19782         PR rtl-optimization/48757
19783         * ira-build.c (loop_with_eh_edge_p): Rename to
19784         loop_with_complex_edge_p, check edges on complexity, make function
19785         conditional.
19786         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
19787         conditional.
19788
19789 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
19790
19791         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
19792         force flag_ira_share_save_slots to 0.
19793
19794 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
19795
19796         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
19797         (vt_initialize): Set PROLOGUE_BB unconditionally.
19798         Add block comment about CFA_BASE_RTX machinery.
19799         Reset FP_CFA_OFFSET to -1 on all invalid paths.
19800         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
19801
19802 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
19803
19804         PR objc/48187
19805         * c-parser.c (c_parser_objc_class_instance_variables): More robust
19806         parsing of syntax error in ObjC instance variable lists.  In
19807         particular, avoid an infinite loop if there is a stray ']'.
19808         Updated error message.
19809
19810 2011-05-24  Ian Lance Taylor  <iant@google.com>
19811
19812         * godump.c (go_define): Don't accept a string immediately after
19813         another operand.
19814
19815 2011-05-24  Ian Lance Taylor  <iant@google.com>
19816
19817         * godump.c (struct godump_container): Add invalid_hash field.
19818         (go_format_type): Return false if type is found in invalid_hash.
19819         (go_output_typedef): Add invalid type to invalid_hash.
19820         (go_finish): Create and delete invalid_hash.
19821
19822 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19823
19824         PR tree-optimization/46728
19825         * tree-ssa-math-opts.c (powi_table): New.
19826         (powi_lookup_cost): New.
19827         (powi_cost): New.
19828         (powi_as_mults_1): New.
19829         (powi_as_mults): New.
19830         (gimple_expand_builtin_powi): New.
19831         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
19832         (gate_cse_sincos): Remove sincos/cexp restriction.
19833
19834 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19835
19836         PR target/3746
19837         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
19838         mips-tdump native.
19839         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
19840         * mips-tdump.c: Likewise.
19841
19842 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
19843
19844         PR target/49128
19845         * config/i386/driver-i386.c (host_detect_local_cpu): Always
19846         add -mno-XXX.  Handle FMA.
19847
19848 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
19849
19850         PR rtl-optimization/48633
19851         * ira-build.c (loop_with_eh_edge_p): New function.
19852         (mark_loops_for_removal): Use it.
19853
19854 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
19855
19856         PR rtl-optimization/48971
19857         * ira.c (setup_pressure_classes): Don't check register move cost
19858         for classes with one registers.  Don't add pressure class if there
19859         is a pressure class with the same available hard registers.
19860         Check contains_reg_of_mode.  Fix a typo in collecting
19861         temp_hard_regset.  Ignore hard registers not belonging to a class.
19862
19863 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
19864
19865         PR target/49133
19866         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
19867
19868 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
19869             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19870
19871         PR gcov-profile/48845
19872         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
19873
19874 2011-05-24  Richard Guenther  <rguenther@suse.de>
19875
19876         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
19877         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
19878         (gimple_types_compatible_p_1): Adjust.
19879         (iterative_hash_canonical_type): Do not bother about complete vs.
19880         incomplete types.
19881         (gimple_canonical_types_compatible_p): Likewise.
19882
19883 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19884
19885         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
19886
19887 2011-05-24  Richard Guenther  <rguenther@suse.de>
19888
19889         PR bootstrap/49078
19890         * gimple.c (gimple_register_canonical_type): Revert
19891         previous change.
19892         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
19893         does not for a tree for the case where it matters.  Cache
19894         pointer-type alias-sets.
19895
19896 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
19897
19898         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
19899         (OBJS): Remove options.o, opts-common.o and prefix.o.
19900         (OBJS-libcommon-target): New.
19901         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
19902         (BACKEND): Include libcommon-target.a.
19903         (MOSTLYCLEANFILES): Include libcommon-target.a.
19904         (libcommon-target.a): New.
19905         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
19906         prefix.o.
19907
19908 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
19909
19910         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
19911         parts of output shared with the driver.
19912         * optc-gen.awk: Don't generate parts of output not shared with the
19913         driver.
19914         * opth-gen.awk: Remove GCC_DRIVER conditionals.
19915         * doc/options.texi (SourcerInclude): Mention options-save.c.
19916         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
19917         (OBJS): Add options-save.o.
19918         (options-save.c, options-save.o): New.
19919         (options.o): Update dependencies.
19920         (gcc-options.o): Remove.
19921         (mostlyclean): Remove options-save.c.
19922
19923 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
19924
19925         PR debug/49032
19926         * dbxout.c: Include cgraph.h.
19927         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
19928         and without value expr, return NULL if no varpool node exists for
19929         it or if it is not needed.
19930         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
19931
19932         PR c/49120
19933         * c-decl.c (start_decl): Convert expr to void_type_node.
19934
19935 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
19936
19937         PR rtl-optimization/48826
19938         * emit-rtl.c (try_split): When splitting a call that is followed
19939         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
19940
19941 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
19942
19943         * cfgexpand.c (expand_debug_expr): For unused non-addressable
19944         parameters passed in memory prefer using DECL_INCOMING_RTL over
19945         the pseudos it will be copied into.
19946
19947 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19948
19949         PR target/47315
19950         * config/i386/i386.c (ix86_option_override_internal): Save the
19951         initial options after checking vzeroupper.
19952
19953 2011-05-23  David Li  <davidxl@google.com>
19954
19955         PR tree-optimization/48988
19956         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
19957         Initialize has_valid_pred for each pred chain.
19958
19959 2011-05-23  Richard Guenther  <rguenther@suse.de>
19960
19961         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
19962         (iterative_hash_gimple_type): Always hash type names.
19963
19964 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
19965
19966         * c-typeck.c (build_function_call_vec): Tweak call to
19967         check_function_arguments.
19968
19969 2011-05-23  Richard Guenther  <rguenther@suse.de>
19970
19971         PR tree-optimization/49115
19972         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
19973         is not necessarily carried out, do not claim it kills the ref.
19974         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
19975
19976 2011-05-23  Richard Guenther  <rguenther@suse.de>
19977
19978         PR middle-end/15419
19979         * builtins.c (fold_builtin_memory_op): Be less restrictive about
19980         what pointer types we accept for folding.
19981
19982 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19983
19984         * gthr-gnat.c: Remove.
19985         * gthr-gnat.h: Remove.
19986         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
19987         * config/t-freebsd (LIB2ADDEH): Likewise.
19988         * config/t-linux (LIB2ADDEH): Likewise.
19989         * config/t-sol2 (LIB2ADDEH): Likewise.
19990         * config/ia64/t-vms (LIB2ADDEH): Likewise.
19991         * configure.ac (target_thread_file): Remove gnat handling.
19992         * configure: Regenerate.
19993         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
19994
19995 2011-05-23  Tristan Gingold  <gingold@adacore.com>
19996             Eric Botcazou  <ebotcazou@adacore.com>
19997
19998         * gcov.c (create_file_names): If no object directory is specified,
19999         keep the directory of the file.
20000
20001 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20002
20003         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
20004         * configure: Regenerate.
20005
20006 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
20007
20008         PR middle-end/48973
20009         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
20010         failed and the comparison has a single bit signed type, use
20011         constm1_rtx instead of const1_rtx for true value.
20012         (do_store_flag): If ops->type is single bit signed type, disable
20013         signel bit test optimization and pass -1 instead of 1 as last
20014         parameter to emit_store_flag_force.
20015
20016 2011-05-23  Tom de Vries  <tom@codesourcery.com>
20017
20018         PR target/45098
20019         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
20020         function.
20021         (infer_loop_bounds_from_undefined): Use new function.
20022
20023 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
20024
20025         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
20026         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
20027         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
20028         and -O0 otherwise.
20029         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
20030
20031 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
20032
20033         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
20034         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
20035         returns true.
20036
20037 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
20038
20039         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
20040
20041 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
20042
20043         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
20044         UNSPEC_MOVE_PIC pattern.
20045
20046 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
20047
20048         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
20049         (sparc-*-rtems*): Likewise.
20050         (sparc64-*-elf*): Likewise.
20051         (sparc64-*-rtems*): Likewise.
20052         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
20053         * config/sparc/t-crtin: New file.
20054         * config/sparc/t-sol2 (crti.o): Delete rule.
20055         (crtn.o): Likewise.
20056         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
20057         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
20058         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
20059         (ENDFILE_SPEC): Add crtn.o.
20060
20061 2011-05-22  Tom de Vries  <tom@codesourcery.com>
20062
20063         PR middle-end/48689
20064         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
20065         CODE_CONTAINS_STRUCT (TS_COMMON).
20066
20067 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
20068
20069         PR middle-end/49029
20070         * expmed.c (extract_fixed_bit_field): Test whether target can be used
20071         only after deciding which mode to use.
20072
20073 2011-05-22  Tom de Vries  <tom@codesourcery.com>
20074
20075         PR target/45098
20076         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
20077         for call to get_shiftadd_cost.
20078
20079 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
20080
20081         PR target/49104
20082         * config/i386/cpuid.h (bit_MMXEXT): New define.
20083
20084 2011-05-22  Nick Clifton  <nickc@redhat.com>
20085
20086         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
20087         initialisation of non-existant args[2] element.  Use args[] array
20088         not arg[] array to pass arguments to build_function_type_list.
20089
20090 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
20091
20092         PR tree-optimization/49087
20093         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
20094
20095 2011-05-21  Jason Merrill  <jason@redhat.com>
20096
20097         PR c++/49092
20098         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
20099         static storage duration.
20100
20101 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
20102
20103         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
20104         frame pointer.
20105
20106 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
20107
20108         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
20109         false if there are call-saved registers here...
20110         (sparc_can_use_return_insn_p): ...but here instead.
20111         (save_or_restore_regs): Fix thinko.
20112         (sparc_expand_prologue): Use current_function_is_leaf.
20113         (sparc_frame_pointer_required): Likewise.
20114
20115 2011-05-21  Nick Clifton  <nickc@redhat.com>
20116
20117         PR target/49098
20118         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
20119
20120 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
20121
20122         * gengtype.c (walk_type): Implemented "atomic" GTY option.
20123         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
20124
20125 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
20126
20127         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
20128         * optc-gen.awk: Move common code to opt-read.awk.
20129         * opth-gen.awk: Likewise.
20130         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
20131
20132 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
20133
20134         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
20135
20136 2011-05-20  Tom de Vries  <tom@codesourcery.com>
20137
20138         PR target/45098
20139         * tree-ssa-loop-ivopts.c: Include expmed.h.
20140         (get_shiftadd_cost): New function.
20141         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
20142
20143 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
20144
20145         PR bootstrap/49086
20146         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
20147         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
20148
20149 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
20150
20151         * Makefile.in: Update comment referring to $(OBJS-common).
20152
20153 2011-05-20  Ian Lance Taylor  <iant@google.com>
20154
20155         * godump.c (go_output_typedef): Put enum constants in the macro
20156         hash table to avoid duplicate Go const definitions.
20157
20158 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
20159
20160         * Makefile.in (LIBDEPS): Add libcommon.a.
20161         (LIBS): Likewise.
20162         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
20163         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
20164         pretty-print.o and version.o.
20165         (OBJS-libcommon): New.
20166         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
20167         (BACKEND): Add libcommon.a.
20168         (MOSTLYCLEANFILES): Likewise.
20169         (libcommon.a): New.
20170         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
20171         (cpp$(exeext)): Likewise.
20172         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
20173         pretty-print.o and input.o.
20174         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
20175         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
20176         (errors.o): Remove.
20177         (mips-tfile): Don't explicitly use version.o.
20178         (mips-tdump): Likewise.
20179         (gcov.o): Depend on $(DIAGNOSTIC_H).
20180         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
20181         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
20182         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
20183         * gcov-dump.c: Include intl.h and diagnostic.h.
20184         (main): Initialize diagnostics.
20185         * gcov.c: Include diagnostic.h.
20186         (fnotice): Remove.
20187         (main): Initialize diagnostics.
20188         * lto-wrapper.c: Include diagnostic.h.
20189         (main): Initialize diagnostics.
20190
20191 2011-05-20  Michael Matz  <matz@suse.de>
20192
20193         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
20194
20195 2011-05-20  Michael Matz  <matz@suse.de>
20196             Richard Guenther  <rguenther@suse.de>
20197
20198         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
20199         use lto_streamer_cache_append directly instead of returning a VEC.
20200         (preload_common_node): Remove.
20201         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
20202         track seen nodes.
20203         (lto_streamer_cache_create): Call lto_preload_common_nodes.
20204
20205 2011-05-20  Richard Guenther  <rguenther@suse.de>
20206
20207         PR tree-optimization/49079
20208         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
20209         MEM_REFs correctly for the trailing array access detection.
20210         Special case constants the same way as decls for overall size
20211         constraining.
20212
20213 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
20214
20215         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
20216         argument expansion.
20217
20218 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
20219
20220         PR tree-optimization/49073
20221         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
20222         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
20223         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
20224
20225 2011-05-20  Richard Guenther  <rguenther@suse.de>
20226
20227         PR middle-end/48849
20228         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
20229         of pointer types the same way the middle-end does.
20230
20231 2011-05-20  Richard Guenther  <rguenther@suse.de>
20232
20233         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
20234         or pointer-to chains.  Delay all fixup to uniquify_nodes.
20235
20236 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
20237
20238         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
20239         (fma4_fmaddsub): Likewise
20240
20241 2011-05-19  Jan Hubicka  <jh@suse.cz>
20242
20243         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
20244         (GIMPLE_TYPE_PAIR_SIZE): New macro.
20245         (type_pair_cache): New static var.
20246         (lookup_type_pair): Use fixed sized custom hash; make inline.
20247         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
20248         calls of lookup_type_pair.
20249         (print_gimple_types_stats): Remove cache stats.
20250         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
20251         and gtc_ob.
20252
20253 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
20254
20255         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
20256         when TARGET_RDRND is active.
20257         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
20258         Generate dummy SImode target register when target is NULL.
20259
20260 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
20261
20262         * config/arm/arm-fpus.def: New.
20263         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
20264         arm-fpus.def.
20265         * config/arm/arm-tables.opt: Regenerate.
20266         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
20267         (arm_option_override): Don't decode FPU name to string here.
20268         * config/arm/arm.opt (mfpu=): Use Enum.
20269         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
20270         Update dependencies.
20271
20272 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
20273
20274         * collect2.c: Include diagnostic.h.
20275         (fatal_perror, fatal, error, fancy_abort): Remove.
20276         (main): Set progname.  Call xmalloc_set_program_name and
20277         diagnostic_initialize.
20278         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
20279         scan_libraries, resolve_lib_name): Call fatal_error instead of
20280         fatal and fatal_perror.
20281         * collect2.h (error, fatal, fatal_perror): Don't declare.
20282         * tlink.c: Include diagnostic-core.h.
20283         (recompile_files): Call fatal_error instead of fatal_perror.
20284         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
20285         pretty-print.o and input.o.
20286         (collect2.o, tlink.o): Update dependencies.
20287
20288 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20289
20290         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
20291
20292 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20293
20294         PR target/40483
20295         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
20296         COMDAT group syntax, both SPARC and x86 variants.
20297         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
20298         * configure: Regenerate.
20299         * config/sol2.h (TARGET_SOLARIS): Define.
20300         (PUSHSECTION_FORMAT): Remove.
20301         (SECTION_NAME_FORMAT): Define.
20302         * config/sol2.c: Include hashtab.h.
20303         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
20304         expansion, using SECTION_NAME_FORMAT.
20305         (solaris_comdat_htab): New variable.
20306         (struct comdat_entry): Define.
20307         (comdat_hash): New function.
20308         (comdat_eq): New function.
20309         (solaris_elf_asm_comdat_section): New function.
20310         (solaris_define_comdat_signature): New function.
20311         (solaris_code_end): New function.
20312         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
20313         (solaris_code_end): Declare.
20314         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
20315         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
20316         solaris_code_end.
20317         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
20318         Remove ATTRIBUTE_UNUSED.
20319         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
20320         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
20321         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
20322         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
20323         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
20324         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
20325         (PUSHSECTION_FORMAT): Remove.
20326         (SECTION_NAME_FORMAT): Redefine.
20327
20328 2011-05-19  Kai Tietz  <ktietz@redhat.com>
20329
20330         * tree-cfg.c (verify_gimple_assign_binary): Barf on
20331         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
20332         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
20333
20334 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
20335             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20336
20337         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
20338
20339 2011-05-19  Richard Guenther  <rguenther@suse.de>
20340
20341         PR middle-end/48985
20342         * tree-object-size.c (addr_object_size): If the pointed-to
20343         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
20344
20345 2011-05-19  Richard Guenther  <rguenther@suse.de>
20346
20347         * gimple.c (gimple_types_compatible_p_1): Compare names of
20348         the types themselves.
20349         (iterative_hash_gimple_type): And hash them that way.
20350         (gimple_register_type_1): If we register a main variant properly
20351         initialize the leader to ourselves.
20352
20353 2011-05-19  Tom de Vries  <tom@codesourcery.com>
20354
20355         PR target/45098
20356         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
20357         get_loop_invariant_expr_id.
20358         (get_loop_invariant_expr_id): Use get_expr_id.
20359         (parm_decl_cost): New function.
20360         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
20361         Improve bound cost estimation.  Use different inv_expr_id for elim and
20362         express cases.
20363
20364 2011-05-19  Tom de Vries  <tom@codesourcery.com>
20365
20366         PR target/45098
20367         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
20368         cost_base.cost == 0.
20369
20370 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
20371
20372         PR target/49002
20373         * config/i386/sse.md
20374         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
20375         load cast.
20376
20377 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
20378
20379         PR tree-optimization/49039
20380         * tree-vrp.c (extract_range_from_binary_expr): For
20381         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
20382         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
20383
20384 2011-05-18  Tom de Vries  <tom@codesourcery.com>
20385
20386         PR target/45098
20387         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
20388
20389 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
20390
20391         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
20392         (*tls_global_dynamic_64): Ditto.
20393         (*tls_local_dynamic_base_32_gnu): Ditto.
20394         (*tls_local_dynamic_base_64): Ditto.
20395         (tls_initial_exec_64_sun): Ditto.
20396
20397 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
20398
20399         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
20400         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
20401         bf592-none.
20402         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
20403         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
20404         * config/bfin/bfin.c (bfin_cpus): Add bf592.
20405         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
20406         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
20407         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
20408         * config/bfin/elf.h (LIB_SPEC): Add bf592.
20409
20410 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
20411
20412         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
20413         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
20414         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
20415         target_thread_pointer, arm_structure_size_boundary, struct
20416         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
20417         struct abi_name, arm_all_abis): Remove.
20418         (arm_option_override) Don't process most enumerated option values here.
20419         Don't process target_fpe_name here.  Work with integer not string for
20420         structure size boundary; use separate diagnostics for each case.
20421         * config/arm/arm.h (enum float_abi_type, enum
20422         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
20423         to arm-opts.h.
20424         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
20425         arm_structure_size_boundary): Remove.
20426         * config/arm/arm.opt (mabi=): Use Enum and Init.
20427         (arm_abi_type): New Enum and EnumValue entries.
20428         (mfloat-abi=): Use Enum and Init.
20429         (float_abi_type): New Enum and EnumValue entries.
20430         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
20431         (mfp16-format=): Use Enum and Init.
20432         (arm_fp16_format_type): New Enum and EnumValue entries.
20433         (mstructure-size-boundary=): Use UInteger and Init.
20434         (mtp=): Use Enum and Init.
20435         (arm_tp_type): New Enum and EnumValue entries.
20436
20437 2011-05-18  Richard Guenther  <rguenther@suse.de>
20438
20439         PR tree-optimization/49018
20440         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
20441         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
20442         gimple_has_side_effects.
20443
20444 2011-05-18  Richard Guenther  <rguenther@suse.de>
20445
20446         * gimple.c (gimple_register_type_1): New function, split out from ...
20447         (gimple_register_type): ... here.  Avoid infinite recursion.
20448
20449 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
20450
20451         PR tree-optimization/41881
20452         * tree-vectorizer.h (struct _loop_vec_info): Add new field
20453         reduction_chains along with a macro for its access.
20454         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
20455         (destroy_loop_vec_info): Free reduction chains.
20456         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
20457         (vect_is_slp_reduction): New function.
20458         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
20459         (vect_create_epilog_for_reduction): Support SLP reduction chains.
20460         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
20461         definition types for reduction chains.
20462         (vect_supported_load_permutation_p): Don't allow permutations for
20463         reduction chains.
20464         (vect_analyze_slp_instance): Support reduction chains.
20465         (vect_analyze_slp): Try to build SLP instance from reduction chains.
20466         (vect_get_constant_vectors):  Handle reduction chains.
20467         (vect_schedule_slp_instance): Mark the first statement of the
20468         reduction chain as reduction.
20469
20470 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
20471
20472         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
20473         names for group elements access.
20474         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
20475         reduction chains as well.  Remove data reference and interleaving
20476         related words from the fields names.
20477         * tree-vect-loop.c (vect_transform_loop): Use new names for group
20478         elements access.
20479         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
20480         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
20481         vect_update_interleaving_chain, vect_same_range_drs,
20482         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
20483         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
20484         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
20485         vect_analyze_group_access, vect_analyze_data_ref_access,
20486         vect_create_data_ref_ptr, vect_transform_strided_load,
20487         vect_record_strided_load_vectors): Likewise.
20488         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
20489         vect_model_load_cost, vectorizable_store, vectorizable_load,
20490         vect_remove_stores, new_stmt_vec_info): Likewise.
20491         * tree-vect-slp.c (vect_build_slp_tree,
20492         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
20493
20494 2011-05-18  Richard Guenther  <rguenther@suse.de>
20495
20496         PR middle-end/48989
20497         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
20498         operand verification.
20499         (verify_gimple_assign_binary): Likewise.
20500         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
20501         to non-1-precision BOOLEAN_TYPEs.
20502
20503 2011-05-18  Tom de Vries  <tom@codesourcery.com>
20504
20505         PR target/45098
20506         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
20507
20508 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
20509
20510         PR tree-optimization/49000
20511         * tree-ssa.c (execute_update_addresses_taken): Call
20512         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
20513         be rewritten and decl has been marked for renaming, reset
20514         the debug stmt.
20515
20516 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
20517
20518         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
20519         enum_opts_set when testing if attributes have set -mfpmath=.
20520
20521 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
20522
20523         * config/mips/mips.c (mips_handle_option): Remove unused variable.
20524
20525 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
20526
20527         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
20528         info->entry with 0
20529         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
20530         id.transform_lang_insert_block with NULL.
20531
20532 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
20533
20534         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
20535         (output_fp_compare): Change args 3 and 4 to bool.
20536         (ix86_expand_call): Change arg 6 to bool.
20537         (ix86_attr_length_immediate_default): Change arg 2 to bool.
20538         (ix86_attr_length_vex_default): Change arg 3 to bool.
20539         * config/i386/i386.md: Update all uses.
20540         * config/i386/i386.c: Ditto.
20541         (ix86_flags_dependent): Change return type to bool.
20542
20543 2011-05-17  Richard Guenther  <rguenther@suse.de>
20544
20545         * gimple.c (type_hash_pair_compare): Fix comparison.
20546
20547 2011-05-17  Richard Guenther  <rguenther@suse.de>
20548
20549         * gimple.c (iterative_hash_gimple_type): Simplify singleton
20550         case some more, fix final hash value of the non-singleton case.
20551
20552 2011-05-17  Richard Guenther  <rguenther@suse.de>
20553
20554         PR bootstrap/49013
20555         Revert
20556         2011-05-16  Richard Guenther  <rguenther@suse.de>
20557
20558         * gimple.c (gimple_types_compatible_p_1): Use names of the
20559         type itself, not its main variant.
20560         (iterative_hash_gimple_type): Likewise.
20561
20562 2011-05-17  Richard Guenther  <rguenther@suse.de>
20563
20564         * gimple.c (gimple_register_canonical_type): Use the main-variant
20565         leader for computing the canonical type.
20566
20567 2011-05-17  Nick Clifton  <nickc@redhat.com>
20568
20569         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
20570         moves.
20571
20572         * config/rx/rx.md: Add peephole to remove redundant extensions
20573         after loads.
20574         (bitset_in_memory): Use rx_restricted_mem_operand.
20575         (bitinvert_in_memory): Likewise.
20576         (bitclr_in_memory): Likewise.
20577
20578 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
20579             Nick Clifton  <nickc@redhat.com>
20580
20581         * config/rx/rx.md: Add peepholes to match a register move followed
20582         by a comparison of the moved register.  Replace these with an
20583         addition of zero that does both actions in one instruction.
20584
20585 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
20586
20587         PR target/48986
20588         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
20589         predicate to allow CONST_INT.
20590         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
20591
20592 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
20593
20594         * opts-common.c (opt_enum_arg_to_value): New.
20595         * opts.h (opt_enum_arg_to_value): Declare.
20596         * config/i386/i386.opt (fpmath): Remove.
20597         (mfpmath=): Use Enum, Init and Save.
20598         (fpmath_unit): New Enum and EnumValue entries.
20599         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
20600         name for function fpmath state.
20601         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
20602         * config/i386/i386.c: Include diagnostic.h.
20603         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
20604         (ix86_target_string): Take enum fpmath_unit value instead of string.
20605         (ix86_debug_options): Update call to ix86_target_string.
20606         (ix86_option_override_internal): Don't process fpmath strings here.
20607         (x86_function_specific_save, ix86_function_specific_restore):
20608         Don't handle fpmath state specially.
20609         (ix86_function_specific_print): Pass fpmath state to
20610         ix86_target_string instead of printing in this function.
20611         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
20612         Handle enum attributes.
20613         (IX86_ATTR_ENUM, ix86_opt_enum): New.
20614         (ix86_valid_target_attribute_tree): Update option_strings
20615         handling.  Handle fpmath as enum option.
20616         (ix86_can_inline_p): Update field names for function fpmath state.
20617         (ix86_expand_builtin): Update call to ix86_target_string.
20618         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
20619         (ix86_fpmath): Remove.
20620         * config/i386/t-i386 (i386.o): Update dependencies.
20621
20622 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
20623
20624         PR preprocessor/48677
20625         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
20626         from decoded_options[0], not from itself.
20627
20628 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
20629
20630         * config/i386/constraints.md (z): New constraint.
20631         * config/i386/i386.c (c): New mode attribute.
20632         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
20633         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
20634         constraint for operand 0.
20635         (*call_vzeroupper): Ditto.
20636         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
20637         (*call_rex64_ms_sysv_vzeroupper): Ditto.
20638         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
20639         Use "lzm" constraint for operand 0.
20640         (*call_pop_vzeroupper): Ditto.
20641         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
20642         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
20643         constraint for operand 0.
20644         (*sibcall_vzeroupper): Ditto.
20645         (*sibcall_rex64_ms_sysv): Ditto.
20646         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
20647         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
20648         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
20649         (*sibcall_pop_vzeroupper): Ditto.
20650         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
20651         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
20652         mode iterator.  Use "<c>zm" constraint for operand 1.
20653         (*call_value_vzeroupper): Ditto.
20654         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
20655         for operand 1.
20656         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
20657         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
20658         *call_value_pop_1.  Use "lzm" constraint for operand 1.
20659         (*call_value_pop_vzeroupper): Ditto.
20660         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
20661         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
20662         mode iterator.  Use "Uz" constraint for operand 1.
20663         (*sibcall_value_vzeroupper): Ditto.
20664         (*sibcall_value_rex64_ms_sysv): Ditto.
20665         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
20666         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
20667         constraint for operand 1.
20668         (*sibcall_value_pop_vzeroupper): Ditto.
20669         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
20670         and "z" constraint for operand 2.
20671         (*tls_global_dynamic_32_gnu): Ditto.
20672         (*tls_local_dynamic_base_32_gnu): Ditto.
20673         (*tls_local_dynamic_base_64): Ditto.
20674         (*tls_local_dynamic_32_once): Ditto.
20675         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
20676         Update all callers.
20677         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
20678
20679 2011-05-16  Richard Guenther  <rguenther@suse.de>
20680
20681         * gimple.c (gimple_types_compatible_p_1): Use names of the
20682         type itself, not its main variant.
20683         (iterative_hash_gimple_type): Likewise.
20684
20685 2011-05-16  Richard Guenther  <rguenther@suse.de>
20686
20687         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
20688         always visit pointer target and function result and argument types.
20689
20690 2011-05-16  Jason Merrill  <jason@redhat.com>
20691
20692         PR c++/48999
20693         * tree-inline.c (copy_statement_list): Put back recursion.
20694
20695 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
20696
20697         PR target/27663
20698         PR target/41076
20699         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
20700         * config/avr/avr.md ("*ior<mode>qi.byte0",
20701         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
20702
20703 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
20704
20705         PR target/45099
20706         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
20707         register is needed for a function argument.
20708
20709 2011-05-16  Richard Guenther  <rguenther@suse.de>
20710
20711         * gimple.c (struct type_hash_pair): New type.
20712         (type_hash_pair_compare): New function.
20713         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
20714
20715 2011-05-16  Revital Eres  <revital.eres@linaro.org>
20716
20717         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
20718
20719 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
20720
20721         * config/i386/i386.md (floating point move splitters): Fix
20722         usage of standard_80387_constant_p.
20723         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
20724
20725 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
20726
20727         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
20728
20729 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20730
20731         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
20732         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
20733         (tree_ssa_lim_finalize): Likewise.
20734
20735 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
20736
20737         * config/i386/constraint.md (Yd, Yx): New register constraints.
20738         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
20739         Yd conditional register constraint.
20740         (*movtf_internal): Use standard_sse_constant_opcode.
20741         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
20742         Yx conditional register constraint.
20743         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
20744         Yd conditional register constraint.  Use standard_sse_constant_p to
20745         check for valid SSE constants and call standard_sse_constant_opcode to
20746         output SSE insn.
20747         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
20748         constants and call standard_sse_constant_opcode to output SSE insn.
20749         * config/i386/i386.c (ix86_option_ovverride_internal): Set
20750         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
20751         optimize_size is set.
20752         (standard_sse_constant_opcode): Output conditional AVX insn templates.
20753
20754 2011-05-14  Tobias Burnus  <burnus@net-b.de>
20755
20756         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
20757
20758 2011-05-13  Martin Jambor  <mjambor@suse.cz>
20759
20760         * ipa-prop.c (ipa_cst_from_jfunc): New function.
20761         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
20762         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
20763         (evaluate_conditions_for_ipcp_clone): Removed.
20764         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
20765         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
20766         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
20767
20768 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
20769
20770         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
20771         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
20772         lieu of MAY_HAVE_DEBUG_STMTS.
20773         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
20774         debug statements if !MAY_HAVE_DEBUG_STMTS.
20775
20776 2011-05-13  Martin Thuresson  <martint@google.com>
20777
20778         PR gcov-profile/47793
20779         * libgcov.c (gcov_exit): Support relative profile paths.
20780         * doc/invoke.texi (-fprofile-dir): Update for above change.
20781
20782 2011-05-13  Richard Guenther  <rguenther@suse.de>
20783
20784         * gimple.c (gimple_canonical_types_compatible_p): Do not use
20785         type-pair caching, do not compare hashes.
20786
20787 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
20788
20789         PR middle-end/48965
20790         * tree-cfg.c (edge_to_cases_cleanup): Return true.
20791         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
20792
20793 2011-05-13  Kai Tietz  <ktietz@redhat.com>
20794
20795         * gimplify.c (gimplify_expr): Make sure operand is boolified.
20796         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
20797         compatible type for TRUTH_NOT_EXPR.
20798
20799 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
20800
20801         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
20802         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
20803         can_create_pseudo_p ().
20804
20805 2011-05-13  Richard Guenther  <rguenther@suse.de>
20806
20807         PR lto/48978
20808         * gimple.c (iterative_hash_gimple_type): Revert change in
20809         pointer target and function result and argument hashing.
20810
20811 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
20812
20813         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
20814         (*movxf_internal_nointeger): Ditto.
20815         (*movdf_internal_rex64): Ditto.
20816         (*movdf_internal): Ditto.
20817         (*movdf_internal_nointeger): Ditto.
20818         (*movsf_internal): Ditto.
20819         (sincos splitters): Use can_create_pseudo ().
20820
20821 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
20822
20823         * config/i386/i386-opts.h: New.
20824         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
20825         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
20826         ix86_section_threshold): Remove.
20827         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
20828         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
20829         OPT_mbranch_cost_.
20830         (ix86_option_override_internal): Don't decode strings for options
20831         other than -march=, -mtune= and -mfpmath=.  Don't allow for
20832         __attribute__ uses in remaining diagnostics for options with
20833         string arguments.  Don't check for integer arguments being negative.
20834         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
20835         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
20836         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
20837         ix86_branch_cost, ix86_section_threshold): Remove.
20838         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
20839         HeaderInclude.
20840         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
20841         but not Var.
20842         (masm=): Use Enum and Init.
20843         (asm_dialect): New Enum and EnumValue entries.
20844         (mbranch-cost=): Use UInteger.
20845         (mlarge-data-threshold=): Use UInteger and Init.
20846         (mcmodel=): Use Enum and Init.
20847         (cmodel): New Enum and EnumValue entries.
20848         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
20849         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
20850         mregparm=): Use UInteger.
20851         (mstringop-strategy=): Use Enum and Init.
20852         (stringop_alg): New Enum and EnumValue entries.
20853         (mtls-dialect=): Use Enum and Init.
20854         (tls_dialect): New Enum and EnumValue entries.
20855         (mabi=): Use Enum and Init.
20856         (calling_abi): New Enum and EnumValue entries.
20857         (mveclibabi=): Use Enum and Init.
20858         (ix86_veclibabi): New Enum and EnumValue entries.
20859
20860 2011-05-13  Nick Clifton  <nickc@redhat.com>
20861
20862         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
20863         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
20864
20865 2011-05-13  Kai Tietz  <ktietz@redhat.com>
20866
20867         PR middle-end/48984
20868         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
20869         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
20870         (gimple_boolify): Check for cast for boolean_type_node instead for
20871         BOOLEAN_TYPE.
20872
20873 2011-05-13  Richard Guenther  <rguenther@suse.de>
20874
20875         PR tree-optimization/48172
20876         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
20877         multiplying by number of iterations for equal step.
20878         (vect_create_cond_for_alias_checks): Likewise.
20879
20880 2011-05-13  Andreas Schwab  <schwab@redhat.com>
20881
20882         * configure.ac: Use AS_HELP_STRING throughout.
20883         * configure: Regenerate.
20884
20885 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
20886
20887         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
20888         (ix86_emit_restore_regs_using_mov): Likewise.
20889         (ix86_emit_restore_sse_regs_using_mov): Likewise.
20890
20891 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
20892
20893         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
20894         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
20895         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
20896         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
20897         RTX_OK_FOR_OLO10_P): ...here.
20898         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
20899         SYMBOLIC_CONST.
20900
20901 2011-05-12  Kai Tietz  <ktietz@redhat.com>
20902
20903         * gimplify.c (gimple_boolify): Re-boolify expression
20904         arguments even if expression type is of kind BOOLEAN_TYPE.
20905         (gimplify_boolean_expr): Removed.
20906         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
20907         and XOR. Additional take care that we keep expression's type.
20908         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
20909         of TRUTH_AND|OR|XOR_EXPR.
20910
20911 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
20912
20913         PR tree-optimization/48975
20914         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
20915         on all bbs here and free and clear ifc_bbs at the end.
20916
20917 2011-05-12  Richard Guenther  <rguenther@suse.de>
20918
20919         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
20920         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
20921         until after simple checks.
20922         (gimple_types_compatible_p): Likewise.
20923         (iterative_hash_gimple_type): Always hash pointer targets
20924         and function return and argument types.
20925         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
20926         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
20927         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
20928         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
20929         completely in the simple compare section.
20930         (gimple_register_canonical_type): Query the cache again after
20931         registering.
20932
20933 2011-05-12  Richard Guenther  <rguenther@suse.de>
20934
20935         PR tree-optimization/48172
20936         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
20937         the number of iterations from the segment size calculation.
20938         (vect_create_cond_for_alias_checks): Adjust.
20939
20940 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
20941
20942         PR debug/48967
20943         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
20944         if validate_subreg fails.
20945
20946 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
20947
20948         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
20949         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
20950         early.
20951
20952 2011-05-12  DJ Delorie  <dj@redhat.com>
20953
20954         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
20955         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
20956         created builtin into rx_builtins array.
20957         (rx_builtin_decl): New function.
20958         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
20959
20960 2011-05-12  DJ Delorie  <dj@redhat.com>
20961             Nick Clifton  <nickc@redhat.com>
20962
20963         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
20964         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
20965         (rx_is_legitimate_address): Add pre-decrement and post-increment
20966         addressing in HImode and QImode.  Fix test for out of range
20967         REG+INT addressing.
20968         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
20969         (rx_align_for_label): Test label before extracting its usage count.
20970         (rx_adjust_insn_lengths): Fix selection of insn codes.
20971         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
20972
20973 2011-05-11  Jason Merrill  <jason@redhat.com>
20974
20975         * tree.c (type_hash_canon): Use struct tree_type_non_common.
20976
20977 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
20978
20979         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
20980         reindent the subsequent block.
20981
20982 2011-05-11  Satoru Takabayashi  <satorux@google.com>
20983             Paul Pluzhnikov  <ppluzhnikov@google.com>
20984
20985         * doc/install.texi (Configuration): Document --with-linker-hash-style.
20986         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
20987         * config.in: Add LINKER_HASH_STYLE.
20988         * configure.ac: Add --with-linker-hash-style.
20989         * configure: Regenerate.
20990
20991 2011-05-11  Richard Guenther  <rguenther@suse.de>
20992
20993         PR middle-end/48964
20994         * gimple.c (iterative_hash_canonical_type): Fix typo.
20995
20996 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
20997
20998         * config/i386/i386.c (legitimize_tls_address)
20999         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
21000         expanders directly for TARGET_GNU2_TLS.  Determine pic and
21001         __tls_get_addr symbol reference here.  Update call to
21002         gen_tls_global_dynamic_{32,64} for added arguments.
21003         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
21004         expanders directly for TARGET_GNU2_TLS.  Determine
21005         __tls_get_addr symbol reference here.  Update call to
21006         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
21007         unique UNSPEC REG_EQUIV to libcall block.
21008         (ix86_tls_get_addr): Declare static.
21009         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
21010         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
21011         Do not determine pic and __tls_get_addr symbol reference here. Do not
21012         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
21013         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
21014         (tls_global_dynamic_64): Add operand 2.  Do not determine
21015         __tls_get_addr symbol reference here.  Do not call
21016         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
21017         (tls_local_dynamic_base64): Ditto for operand 1.
21018
21019 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
21020
21021         * function.c (expand_function_start): Initialize stack_check_probe_note
21022         only if the generic stack checking mechanism is used.
21023
21024 2011-05-11  Richard Guenther  <rguenther@suse.de>
21025
21026         PR tree-optimization/15256
21027         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
21028         (A & B) | C, combine (A op CST1) op CST2.
21029         (tree_ssa_forward_propagate_single_use_vars): Only bother to
21030         visit assigns that have uses.
21031
21032 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
21033
21034         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
21035         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
21036         (unpack_ts_type_common_value_fields): ...this.  Update comment.
21037         (unpack_value_fields): Adjust for renaming.
21038         (lto_input_ts_type_tree_pointers): Split into...
21039         (lto_input_ts_type_common_tree_pointer): ...this and...
21040         (lto_input_ts_type_non_common_tree_pointers): ...this.
21041         (lto_input_tree_pointers): Adjust for above split.
21042         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
21043         (pack_ts_type_common_value_fields): ...this.  Update comment.
21044         (lto_output_ts_type_tree_pointers): Split into...
21045         (lto_output_ts_type_common_tree_pointers): ...this and...
21046         (lto_output_ts_type_non_common_tree_pointers): ...this.
21047         (lto_output_tree_pointers): Adjust for above split.
21048         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
21049         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
21050         * stor-layout.c (vector_type_mode): Adjust location of mode field.
21051         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
21052         Define.
21053         (struct tree_type): Split into...
21054         (struct tree_type_common: ...this and...
21055         (struct tree_type_with_lang_specific): ...this and...
21056         (struct tree_type_non_common): ...this.  Adjust accessor macros
21057         accordingly.
21058         (TYPE_VALUES_RAW): Define.
21059         (union tree_node): Update for above changes.
21060         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
21061         TS_TYPE_NON_COMMON.
21062         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
21063         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
21064         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
21065         * treestructu.def (TS_TYPE): Remove.
21066         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
21067         Define.
21068
21069 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
21070
21071         PR debug/48159
21072         * tree-ssa.c (reset_debug_uses): New function.
21073         * tree-flow.h (reset_debug_uses): New prototype.
21074         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
21075         * tree-loop-distribution.c (generate_loops_for_partition): Call
21076         reset_debug_uses on the stmts that will be removed.  Keep around
21077         all debug stmts, don't count them as bits in partition bitmap.
21078         (generate_builtin): Don't count debug stmts or labels as bits in
21079         partition bitmap.
21080
21081 2011-05-11  Richard Guenther  <rguenther@suse.de>
21082
21083         * gimple.c (gimple_type_hash_1): Merge with ...
21084         (gimple_type_hash): ... this.
21085         (gtc_visit): Remove mode parameter and simplify accordingly.
21086         (gimple_types_compatible_p_1): Likewise.
21087         (gimple_types_compatible_p): Likewise.
21088         (iterative_hash_gimple_type): Likewise.
21089         (visit): Likewise.
21090         (gimple_type_eq): Adjust.
21091
21092 2011-05-11  Revital Eres  <revital.eres@linaro.org>
21093
21094         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
21095         enters the branch create an anti edge in the opposite direction
21096         to prevent the creation of reg-moves.
21097         * modulo-sched.c: Adjust comment to reflect the fact we are
21098         scheduling closing branch.
21099         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
21100         (stage_count): New field in struct partial_schedule.
21101         (calculate_stage_count): New function.
21102         (normalize_sched_times): Rename to reset_sched_times and handle
21103         incrementing the sched time of the nodes by a constant value
21104         passed as parameter.
21105         (duplicate_insns_of_cycles): Skip closing branch.
21106         (sms_schedule_by_order): Schedule closing branch.
21107         (ps_insn_find_column): Handle closing branch.
21108         (sms_schedule): Call reset_sched_times and adjust the code to
21109         support scheduling of the closing branch.
21110         (ps_insert_empty_row): Update calls to normalize_sched_times
21111         and rotate_partial_schedule functions.
21112
21113 2011-05-11  Richard Guenther  <rguenther@suse.de>
21114
21115         PR middle-end/48953
21116         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
21117
21118 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
21119
21120         * opts.c (finish_options): Move warning settings from process_options.
21121         * toplev.c (process_options): Move warning settings to finish_options.
21122
21123 2011-05-11  Richard Guenther  <rguenther@suse.de>
21124
21125         PR tree-optimization/18041
21126         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
21127         (simplify_bitwise_binary): ... this.  Handle operand conversions
21128         by applying them to the result instead.
21129         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
21130
21131 2011-05-11  Richard Guenther  <rguenther@suse.de>
21132
21133         * gimple.c (gimple_canonical_types_compatible_p): Split out
21134         from gimple_types_compatible_p and friends.  Do not recurse
21135         to pointed-to types.
21136         (gimple_canonical_type_eq): Use it.
21137         (iterative_hash_canonical_type): Split out from
21138         iterative_hash_gimple_type and friends.  Do not recurse
21139         to pointed-to types.
21140         (gimple_canonical_type_hash): Use it, allocate the hash here.
21141
21142 2011-05-11  Revital Eres  <revital.eres@linaro.org>
21143
21144         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
21145         recognizing doloop.
21146
21147 2011-05-11  Revital Eres  <revital.eres@linaro.org>
21148
21149         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
21150         instead of PREV_INSN.
21151
21152 2011-05-11  Revital Eres  <revital.eres@linaro.org>
21153
21154         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
21155         * loop-doloop.c (doloop_condition_get): Likewise.
21156         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
21157         (doloop_end): New.
21158         * config/arm/arm.md (*addsi3_compare0): Remove "*".
21159
21160 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
21161
21162         * tree.def (CASE_LABEL_EXPR): Add an operand.
21163         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
21164
21165 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
21166
21167         * c-decl.c (c_override_global_bindings_to_false): Remove.
21168         (global_bindings_p): Don't check
21169         c_override_global_bindings_to_false.
21170         * c-tree.h (c_override_global_bindings_to_false): Remove.
21171         * c-typeck.c (composite_type): Don't set
21172         c_override_global_bindings_to_false.
21173
21174 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
21175
21176         PR target/48857, 48495
21177         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
21178         (VSX_MODE): Ditto.
21179         (VSX_MOVE_MODE): Ditto.
21180         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
21181         VSX vector types.  Add V2DImode.
21182         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
21183         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
21184         (MODES_TIEABLE_P): Ditto.
21185
21186         * config/rs6000/rs6000.c (rs6000_emit_move): Use
21187         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
21188         VSX_VECTOR_MODE.
21189         (init_cumulative_args): Ditto.
21190         (rs6000_function_arg_boundary): Ditto.
21191         (rs6000_function_arg_advance_1): Ditto.
21192         (rs6000_function_arg): Ditto.
21193         (rs6000_function_ok_for_sibcall): Ditto.
21194         (emit_frame_save): Ditto.
21195         (rs6000_function_value): Ditto.
21196         (rs6000_libcall_value): Ditto.
21197
21198 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
21199
21200         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
21201         i386/darwin-lib.h to $libgcc_tm_file.
21202         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
21203
21204 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
21205
21206         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
21207
21208 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
21209
21210         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
21211         * config/rs6000/rs6000-tables.opt: New file (generated).
21212         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
21213         rs6000/rs6000-tables.opt to extra_options.
21214         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
21215         * config/rs6000/rs6000.c (rs6000_select): Remove.
21216         (processor_target_table): Move contents to rs6000-cpus.def.
21217         (darwin_rs6000_override_options): Check
21218         global_options_set.x_rs6000_cpu_index instead of
21219         rs6000_select[1].string.
21220         (rs6000_option_override_internal): Likewise.
21221         (rs6000_handle_option): Don't assert that global structures are in
21222         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
21223         (rs6000_default_cpu): New variable.
21224         (rs6000_file_start): Set it instead of local default_cpu.  Check
21225         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
21226         global_options_set.x_rs6000_tune_index instead of rs6000_select.
21227         (rs6000_darwin_file_start): Check rs6000_default_cpu and
21228         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
21229         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
21230         rs6000_select): Remove.
21231         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
21232         Remove.
21233         (mcpu=, mtune=): Use Var, Init, Enum and Save.
21234         * config/rs6000/t-rs6000
21235         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
21236         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
21237         global_options_set.x_rs6000_cpu_index instead of
21238         rs6000_select[1].string.
21239         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
21240         global_options_set.x_rs6000_cpu_index instead of
21241         rs6000_select[1].string.
21242
21243 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
21244
21245         * config.gcc (libgcc_tm_file): Define instead of including files
21246         from ../../libgcc/config/ in tm_file.
21247         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
21248         * configure: Regenerate.
21249         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
21250         libgcc_tm.h, cs-libgcc_tm.h): New.
21251         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
21252         (clean): Remove libgcc_tm.h.
21253         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
21254         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
21255         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
21256
21257 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
21258
21259         PR target/48896
21260         * config/avr/avr.c (avr_ret_register): Return unsigned int
21261         instead of int.
21262         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
21263         it to avr_libcall_value.
21264         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
21265         expand_expr.
21266         (avr_expand_binop_builtin): Ditto.
21267         (avr_expand_unop_builtin): Ditto.
21268
21269 2011-05-10  DJ Delorie  <dj@redhat.com>
21270
21271         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
21272         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
21273         * config/rx/rx.c (rx_align_for_label): Add label and
21274         uses_threshold parameters.  Do not align when the label is not
21275         used enough.
21276         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
21277
21278 2011-05-10  Richard Guenther  <rguenther@suse.de>
21279
21280         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
21281         a series of conversions and apply foldings similar to what
21282         fold-const does.
21283         (tree_ssa_forward_propagate_single_use_vars): Call it.
21284
21285 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
21286
21287         PR tree-optimization/48611
21288         PR tree-optimization/48794
21289         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
21290         referenced from RESX or EH_DISPATCH arguments.
21291
21292         PR debug/48928
21293         * dfp.c (decimal_to_decnumber): Handle conversion from
21294         dconst{1,2,m1,half}.
21295
21296 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
21297
21298         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
21299         for !flag_prefer_avx128.
21300         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
21301
21302 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
21303
21304         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
21305         (fold_ternary_loc): Use expr_location_or.
21306
21307 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
21308
21309         PR debug/48853
21310         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
21311         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
21312         Pmode and mem_mode is not VOIDmode.
21313
21314 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
21315
21316         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
21317         TYPE_QUAL_RESTRICT): Convert to enum.
21318
21319 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
21320
21321         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
21322         (const_pow2_1_to_8_operand): Ditto.
21323         (const_pow2_1_to_128_operand): Ditto.
21324         (const_pow2_1_to_32768_operand): Ditto.
21325         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
21326         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
21327         in insn constraint to check integer value of operand 3.
21328         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
21329
21330         (PINSR_MODE): New mode iterator.
21331         (sse2p4_1): New mode attribute.
21332         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
21333         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
21334         iterator.  Use const_int_operand instead of
21335         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
21336         exact_log2 in insn constraint to check integer value of operand 3.
21337
21338 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
21339
21340         * config/i386/sse.md (blendbits): Remove mode attribute.
21341         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
21342         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
21343         Check integer value of operand 3 in insn constraint.
21344
21345 2011-05-09  Richard Guenther  <rguenther@suse.de>
21346
21347         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
21348         for diagnostics.
21349         (lto_symtab_merge): Likewise.  Do not register types here.
21350         (lto_symtab_merge_decls_2): Likewise.
21351         (lto_symtab_merge_decls_1): Likewise.
21352         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
21353         * gimple.c (enum gtc_mode): Declare.
21354         (gimple_types_compatible_p): Make static.
21355
21356 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21357
21358         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
21359         temporary register to match Pmode.
21360
21361 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
21362
21363         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
21364         and *vec_concatv4si_1_avx.
21365
21366 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
21367
21368         PR rtl-optimization/48927
21369         * ira-conflicts.c (commutative_constraint_p): Use
21370         recog_data.alternative_enabled_p to disable alternatives where
21371         "enabled" attribute is false.
21372         (get_dup_num): Ditto.
21373         * ira-lives.c (single_reg_class): Ditto.
21374         (ira_implicitly_set_insn_hard_regs): Ditto.
21375
21376 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
21377
21378         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
21379         (dataflow_set_preserve_mem_locs): Likewise.
21380
21381 2011-05-09  Philipp Thomas  <pth@suse.de>
21382
21383         * config/mep/mep.c (mep_validate_vliw): Syntax description
21384         should not be translated.
21385
21386 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
21387
21388         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
21389         * config/mips/mips-tables.opt: New file (generated).
21390         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
21391         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
21392         MIPS_ARCH_OPTION_NATIVE): Define.
21393         * config/mips/mips.c (mips_cpu_info_table): Move contents to
21394         mips-cpus.def.
21395         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
21396         mips_parse_cpu): Remove.
21397         (mips_cpu_info_from_opt, mips_default_arch): New.
21398         (mips_handle_option): Don't assert that global structures are in
21399         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
21400         (mips_option_override): Use new variables and functions to set
21401         state of these options.  Use strcmp to check for individual CPU names.
21402         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
21403         definition.
21404         * config/mips/mips.opt (march=): Use ToLower and Enum.
21405         (mips): Use ToLower, Enum and Var.
21406         (mtune=): Use ToLower and Enum.
21407         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
21408
21409 2011-05-08  Jan Hubicka  <jh@suse.cz>
21410
21411         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
21412         Arrange type pairs to be UID ordered.
21413         (gimple_lookup_type_leader): Make inline.
21414
21415 2011-05-09  Nick Clifton  <nickc@redhat.com>
21416
21417         PR target/48899
21418         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
21419         PROCESSOR_DEFAULT.
21420
21421         PR target/48897
21422         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
21423         variable 's'.
21424
21425 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
21426
21427         * combine.c (simplify_comparison): Abstract out parts into...
21428         (simplify_compare_const): ... new function.
21429         (try_combine): Generalize parallel arithmetic/compare combining
21430         to call simplify_compare_const() and CANONICALIZE_COMPARE().
21431
21432 2011-05-08  Jan Hubicka  <jh@suse.cz>
21433
21434         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
21435         (cgraph_create_virtual_clone): Call hooks once virtual clone
21436         is finished.
21437         * cgraph.h (cgraph_clone_node): Update prototype.
21438         * ipa-cp.c (ipcp_estimate_growth): Use
21439         estimate_ipcp_clone_size_and_time.
21440         * ipa-inline-transform.c (clone_inlined_nodes): Update.
21441         * lto-cgraph.c (input_node): Update.
21442         * ipa-inline.c (recursive_inlining): Update.
21443         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
21444         (evaluate_conditions_for_known_args): Break out from ...
21445         (evaluate_conditions_for_edge): ... here.
21446         (evaluate_conditions_for_ipcp_clone): New function.
21447         (inline_node_duplication_hook): Update clone summary based
21448         on parameter map.
21449         (estimate_callee_size_and_time): Rename to ...
21450         (estimate_node_size_and_time): take NODE instead of EDGE;
21451         take POSSIBLE_TRUTHS as argument.
21452         (estimate_callee_size_and_time): Update.
21453         (estimate_ipcp_clone_size_and_time): New function.
21454         (do_estimate_edge_time): Update.
21455
21456 2011-05-08  Richard Guenther  <rguenther@suse.de>
21457
21458         PR middle-end/48908
21459         PR middle-end/48905
21460         * expmed.c (expand_shift_1): Compute adjusted constant shift
21461         amount manually.
21462
21463 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
21464
21465         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
21466
21467 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
21468
21469         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
21470
21471 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
21472
21473         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
21474
21475 2011-05-07  Jan Hubicka  <jh@suse.cz>
21476
21477         * ipa-inline-transform.c (inline_call): Account when program size
21478         decreases.
21479         * ipa-inline.c (relative_time_benefit): New function.
21480         (edge_badness): Reorganize to be power 2 based; fix thinko when
21481         computing badness for negative growth; update comments to match
21482         reality; better dumps.
21483
21484 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
21485
21486         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
21487         type to bool and adjust comment.
21488         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
21489         (fold_mathfn_compare): Remove calls to global_bindings_p.
21490         (fold_inf_compare): Likewise.
21491         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
21492         * c-tree.h (global_bindings_p): Adjust prototype.
21493         * c-decl.c (global_bindings_p): Return bool and simplify.
21494
21495 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
21496
21497         PR tree-optimization/48837
21498         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
21499         when accumulator transformation is performed.
21500
21501 2011-05-06  Jan Hubicka  <jh@suse.cz>
21502
21503         * i386.h (ix86_tune_indices): Add
21504         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
21505         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
21506         * i386.c (initial_ix86_tune_features): Add
21507         X86_SOFTARE_PREFETCHING_BENEFICIAL.
21508         (software_prefetching_beneficial_p): Remove predicate.
21509         (ix86_option_override_internal): Use new macro.
21510
21511 2011-05-06  Jan Hubicka  <jh@suse.cz>
21512
21513         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
21514
21515 2011-05-06  Jan Hubicka  <jh@suse.cz>
21516
21517         * cgraph.c (cgraph_add_thunk): Create real function node instead
21518         of alias node; finalize it and mark needed/reachale; arrange visibility
21519         to be right and add it into the corresponding same comdat group list.
21520         (dump_cgraph_node): Dump thunks.
21521         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
21522         cgraph_function_with_gimple_body_p,
21523         cgraph_first_function_with_gimple_body,
21524         cgraph_next_function_with_gimple_body): New functions.
21525         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
21526         New macros.
21527         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
21528         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
21529         * cgraphunit.c (cgraph_finalize_function): Only look into possible
21530         devirtualization when optimizing.
21531         (verify_cgraph_node): Verify thunks.
21532         (cgraph_analyze_function): Analyze thunks.
21533         (cgraph_mark_functions_to_output): Output thunks only in combination
21534         with function they are assigned to.
21535         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
21536         alias into normal node.
21537         (assemble_thunks): New functoin.
21538         (cgraph_expand_function): Use it.
21539         * lto-cgraph.c (lto_output_node): Stream thunks.
21540         (input_overwrite_node): Stream in thunks.
21541         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
21542         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
21543         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
21544         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
21545         (inline_analyze_function): Do not care about thunk jump functions.
21546         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
21547         * ipa-prop.c (ipa_prop_write_jump_functions): Use
21548         cgraph_function_with_gimple_body_p.
21549         * passes.c (do_per_function_toporder): Use
21550         cgraph_function_with_gimple_body_p.
21551         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
21552         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
21553         (function_called_by_processed_nodes_p): Likewise.
21554
21555 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
21556
21557         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
21558         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
21559         entries.
21560         (mabi=): Replace with separate entries for mabi=altivec,
21561         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
21562         mabi=ieeelongdouble and mabi=ibmlongdouble.
21563         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
21564         check for -mabi=spe without SPE ABI support here.
21565         (rs6000_handle_option): Replace OPT_mabi_ handling with
21566         OPT_mabi_altivec and OPT_mabi_spe handling.
21567
21568 2011-05-06  Cary Coutant  <ccoutant@google.com>
21569
21570         * dwarf2out.c (contains_subprogram_definition): New function.
21571         (should_move_die_to_comdat): Call it.
21572
21573 2011-05-06  Jeff Law  <law@redhat.com>
21574
21575         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
21576         remove_ctrl_stmt_and_useless_edges.
21577         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
21578         (fixup_template_block, thread_single_edge): Likewise.
21579         (mark_threaded_blocks): Use THREAD_TARGET.
21580
21581 2011-05-06  Alan Modra  <amodra@gmail.com>
21582
21583         PR target/48900
21584         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
21585         const0_rtx as the arg to the dummy __tls_get_addr libcall.
21586
21587 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
21588
21589         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
21590         constraint modifier to "r".
21591
21592 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
21593
21594         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
21595         fall through for OPT_mcmodel_.
21596
21597 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21598
21599         * config/s390/s390.c (s390_asm_trampoline_template): Comment
21600         instruction sizes.
21601         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
21602
21603 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
21604
21605         PR target/47930
21606         * config/arm/arm.opt (marm): Document it.
21607         (mthumb): Reject negative variant.
21608
21609 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
21610
21611         PR target/48898
21612         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
21613         Fix typo in "ccvt" variable name.
21614
21615 2011-05-06  Tristan Gingold  <gingold@adacore.com>
21616
21617         PR target/48895
21618         * config/vms/vms-ar.c (main): Remove cwd variable.
21619
21620 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
21621
21622         PR debug/48902
21623         * var-tracking.c (prepare_call_arguments): Move else before #endif.
21624
21625 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
21626
21627         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
21628         * gimplify.c (gimplify_switch_expr): Likewise.
21629         * omp-low.c (expand_omp_sections): Likewise.
21630         * tree-eh.c (lower_try_finally_switch): Likewise.
21631         (lower_eh_dispatch): Likewise.
21632         * tree.h (build_case_label): Declare.
21633         * tree.c (build_case_label): Define.
21634
21635 2011-05-05  Jason Merrill  <jason@redhat.com>
21636
21637         PR c++/40975
21638         * tree-inline.c (copy_tree_r): Use copy_statement_list.
21639         (copy_statement_list): Don't recurse.
21640         * stor-layout.c (copy_self_referential_tree_r): Don't allow
21641         STATEMENT_LIST.
21642
21643 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
21644
21645         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
21646         through from -mfpu= handling.
21647         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
21648
21649 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
21650
21651         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
21652         POST_MODIFY.
21653
21654 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
21655
21656         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
21657         for 11.31.
21658         (hppa[12]*-*-hpux11*): Ditto.
21659         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
21660         * config/ia64/hpux-unix2003.h: New.
21661         * config/pa/pa-hpux1131.opt: New.
21662         * config/pa/pa-hpux1131.h: New.
21663         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
21664         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
21665         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
21666
21667 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
21668
21669         PR debug/48853
21670         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
21671         instead of mode as 3rd argument to recursive call.
21672         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
21673         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
21674         VOIDmode.
21675         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
21676         don't give up if mode is Pmode and mem_mode is not VOIDmode.
21677         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
21678         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
21679
21680 2011-05-05  Julian Brown  <julian@codesourcery.com>
21681
21682         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
21683         parenthesis in D-register case.
21684
21685 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
21686
21687         * opt-functions.awk (var_type_struct): Handle Enum options.
21688         * optc-gen.awk: Don't check range of variables of character type.
21689         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
21690         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
21691         rs6000_sdata_name, rs6000_explicit_options): Remove.
21692         (rs6000_option_override_internal): Check for -malign-power here.
21693         Use global_options_set instead of rs6000_explicit_options.
21694         (rs6000_parse_fpu_option): Remove.
21695         (rs6000_handle_option): Access variables via opts and opts_set
21696         pointers.  Use error_at and warning_at.  Add fall-through
21697         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
21698         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
21699         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
21700         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
21701         here.  Don't use rs6000_parse_fpu_option.
21702         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
21703         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
21704         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
21705         (mrecip=): Use Var.
21706         (mspe): Use Var and Save.
21707         (mtraceback=): Use Enum and Var.
21708         (rs6000_traceback_type): New Enum and EnumValue entries.
21709         (mfloat-gprs=): Use Enum, Var and Save.
21710         (rs6000_float_gprs): New Enum and EnumValue entries.
21711         (mlong-double-): use Var and Save.
21712         (msched-costly-dep=, minsert-sched-nops=): Use Var.
21713         (malign-): Use Enum and Var.
21714         (rs6000_alignment_flags): New Enum and EnumValue entries.
21715         (mfpu=): Use Enum.
21716         (fpu_type_t): New Enum and EnumValue entries.
21717         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
21718         global_options_set instead of rs6000_explicit_options.
21719         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
21720         global_options_set instead of rs6000_explicit_options.
21721         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
21722         global_options_set instead of rs6000_explicit_options.
21723         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
21724         global_options_set instead of rs6000_explicit_options.
21725         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
21726         global_options_set instead of rs6000_explicit_options.
21727         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
21728         global_options_set instead of rs6000_explicit_options.
21729         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
21730         definition.
21731         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
21732         global_options_set instead of rs6000_explicit_options.
21733         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
21734         (rs6000_cmodel): New Enum and EnumValue entries.
21735         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
21736         global_options_set instead of rs6000_explicit_options.
21737         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
21738         (mtls-size=): Use Enum and Var.
21739         (rs6000_tls_size): New Enum and EnumValue entries.
21740
21741 2011-05-05  Michael Matz  <matz@suse.de>
21742
21743         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
21744         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
21745         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
21746         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
21747         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
21748         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
21749         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
21750         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
21751         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
21752         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
21753         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
21754         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
21755         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
21756         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
21757         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
21758         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
21759
21760 2011-05-05  Richard Guenther  <rguenther@suse.de>
21761
21762         * expmed.c (expand_variable_shift): Rename to ...
21763         (expand_shift_1): ... this.  Take an expanded shift amount.
21764         For rotates recurse directly not building trees for the shift amount.
21765         (expand_variable_shift): Wrap around expand_shift_1.
21766         (expand_shift): Adjust.
21767
21768 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
21769
21770         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
21771
21772 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
21773
21774         * tree.h (get_pending_sizes): Remove prototype.
21775         (put_pending_size): Likewise.
21776         (put_pending_sizes): Likewise.
21777         * stor-layout.c (pending_sizes): Delete.
21778         (get_pending_sizes): Likewise.
21779         (put_pending_size): Likewise.
21780         (put_pending_sizes): Likewise.
21781         (variable_size): Do not call put_pending_size and tidy up.
21782         * function.h (struct function): Remove dont_save_pending_sizes_p.
21783         * lto-streamer-in.c (input_function): Do not stream it.
21784         * lto-streamer-out.c (output_function): Likewise.
21785         * tree-inline.c (initialize_cfun): Do not copy it.
21786         * c-decl.c (store_parm_decls): Do not set it.
21787         * omp-low.c (create_task_copyfn): Likewise.
21788         * tree-optimize.c (tree_rest_of_compilation): Likewise.
21789
21790 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
21791
21792         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
21793         conditions.
21794         (*movdf_internal): Ditto.
21795         (*movdf_internal_nointeger): Ditto.
21796         (*movsf_internal): Ditto.
21797
21798 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
21799
21800         * c-decl.c (finish_decl): Don't call get_pending_sizes.
21801         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
21802         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
21803         (c_variable_size): Remove.
21804         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
21805         call put_pending_sizes.
21806         (get_parm_info): Add parameter expr.  Use it to set
21807         arg_info->pending_sizes.
21808         (store_parm_decls): Use arg_info->pending_sizes instead or calling
21809         get_pending_sizes.
21810         * c-parser.c (c_parser_parms_declarator): Update call to
21811         c_parser_parms_list_declarator.
21812         (c_parser_parms_list_declarator): Take parameter expr.  Update
21813         call to push_parm_decl.  Update recursive call.  Don't call
21814         get_pending_sizes.  Update calls to get_parm_info.
21815         (c_parser_objc_method_definition): Update calls to
21816         c_parser_objc_method_decl and objc_start_method_definition.
21817         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
21818         (c_parser_objc_method_decl): Add parameter expr.  Update call to
21819         grokparm.
21820         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
21821         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
21822         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
21823
21824 2011-05-05  Michael Hope  <michael.hope@linaro.org>
21825
21826         PR pch/45979
21827         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
21828         __ARM_EABI__ hosts.
21829
21830 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21831
21832         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
21833         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
21834         (spu_output_mi_thunk): New function.
21835
21836 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21837
21838         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
21839         targetm.asm_out.print_operand.
21840         * config/sol2.c: Include target.h.
21841
21842 2011-05-04  Jan Hubicka  <jh@suse.cz>
21843
21844         * ipa-inline.c (reset_edge_caches): New function.
21845         (update_caller_keys): Add check_inlinablity_for; do not
21846         reset edge caches; remove now unnecesary loop.
21847         (update_callee_keys): Add comments; reset node_growth_cache of callee.
21848         (update_all_callee_keys): Likewise.
21849         (inline_small_functions): Sanity check cache; update code
21850         recomputing it.
21851
21852 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
21853
21854         PR rtl-optimization/47612
21855         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
21856         as the last insn of the sequence to be moved.
21857
21858 2011-05-04  Tobias Burnus  <burnus@net-b.de>
21859
21860         PR fortran/48864
21861         * doc/invoke.texi (Ofast): Document that it
21862         enables Fortran's -fno-protect-parens.
21863
21864 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
21865
21866         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
21867
21868 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
21869
21870         * stor-layout.c (variable_size): Do not issue errors.
21871
21872 2011-05-04  Richard Guenther  <rguenther@suse.de>
21873
21874         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
21875         for array-ref indices.
21876         (tree_coverage_counter_addr): Likewise.
21877         (build_fn_info_type): Use size_int for index types.
21878         (build_gcov_info): Likewise.
21879
21880 2011-05-04  Richard Guenther  <rguenther@suse.de>
21881
21882         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
21883         to build_int_cst.
21884         * c-typeck.c (really_start_incremental_init): Use bitsize_int
21885         for constructor indices.
21886         (push_init_level): Likewise.
21887
21888 2011-05-04  Richard Guenther  <rguenther@suse.de>
21889
21890         * explow.c (promote_mode): Move variable declarations before code.
21891
21892 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
21893
21894         * tree.h (build_function_type_array): Declare.
21895         (build_varargs_function_type_array): Declare.
21896         (build_function_type_vec, build_varargs_function_type_vec): Define.
21897         * tree.c (build_function_type_array_1): New function.
21898         (build_function_type_array): New function.
21899         (build_varargs_function_type_array): New function.
21900
21901 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
21902
21903         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
21904         before setting STMT_VINFO_TYPE.
21905
21906 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21907
21908         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
21909         instead of spu_pass_by_reference.
21910
21911 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21912
21913         * calls.c (emit_library_call_value_1): Invoke
21914         promote_function_mode hook on libcall arguments.
21915         * explow.c (promote_function_mode, promote_mode): Handle TYPE
21916         argument being NULL.
21917         * targhooks.c (default_promote_function_mode): Lisewise.
21918         * config/s390/s390.c (s390_promote_function_mode): Likewise.
21919         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
21920
21921         * doc/tm.texi: Document that TYPE argument might be NULL.
21922
21923 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
21924
21925         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
21926
21927 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
21928
21929         From Bernd Schmidt
21930         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
21931
21932 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21933
21934         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
21935         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
21936         Move ...
21937         * mips-tfile.c: ... here.
21938         Don't include coretypes.h, tm.h, filenames.h.
21939         (saber_stop): Remove definition and all calls.
21940         [__SABER__]: Remove.
21941         (__LINE__): Remove default.
21942         (Size_t, Ptrdiff_t): Remove definitions.
21943         Replace by size_t, ptrdiff_t.
21944         [!MIPS_DEBUGGING_INFO]: Remove.
21945         (SHASH_SIZE, THASH_SIZE): Remove defaults.
21946         (progname): Add const.
21947         (STATIC): Remove.
21948         Replace all uses by static.
21949         (ALIGN_SYMTABLE_OFFSET): Remove default.
21950         * mips-tdump.c: Don't include coretypes.h, tm.h.
21951         Remove !MIPS_IS_STAB guard.
21952         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
21953         $(TM_H), filenames.h dependencies.
21954         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
21955
21956 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
21957
21958         From Jie Zhang
21959         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
21960         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
21961
21962 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
21963
21964         From Bernd Schmidt
21965         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
21966         account and save/restore RETS.
21967         (PROFILE_BEFORE_PROLOGUE): Define.
21968         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
21969         the push insn to use predecrement.
21970
21971 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
21972
21973         From Jie Zhang
21974         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
21975
21976 2011-05-04  Nick Clifton  <nickc@redhat.com>
21977
21978         * config/mn10300/mn10300.c: Include cfgloop.h.
21979         (DUMP): New macro.
21980         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
21981         Lcc or a FLcc insn into the instruction stream.
21982         (mn10300_block_contains_call): New function.  Returns true if the
21983         given basic block contains a CALL insn.
21984         (mn10300_loop_contains_call_insn): New function.  Returns true if
21985         the given loop contains a CALL insn.
21986         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
21987         to use the SETLB and Lcc or FLcc insns.
21988         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
21989         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
21990         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
21991         disable the SETLB optimization.
21992         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
21993         __SETLB__ or __NO_SETLB__.
21994         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
21995         (movsf_internal): Handle MDR register.
21996         (cmpsi): Make visible.
21997         (setlb): New pattern.
21998         (Lcc): New pattern.
21999         (FLcc): New pattern.
22000
22001 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
22002
22003         PR target/48860
22004         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
22005         for reg<->xmm moves.
22006         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
22007         (vec_concatv2di_rex64_sse): Ditto.
22008         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
22009         (*vec_extractv2di_1_rex64): Ditto.
22010
22011         Revert:
22012         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
22013
22014         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
22015         reg<->xmm moves.
22016         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
22017
22018 2011-05-04  Richard Guenther  <rguenther@suse.de>
22019
22020         * tree.h (int_const_binop): Remove notrunc argument.
22021         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
22022         create integer constants that are properly truncated.
22023         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
22024         (const_binop): Remove zero notrunc argument to int_const_binop.
22025         (size_binop_loc): Likewise.
22026         (fold_div_compare): Likewise.
22027         (maybe_canonicalize_comparison_1): Likewise.
22028         (fold_comparison): Likewise.
22029         (fold_binary_loc): Likewise.
22030         (multiple_of_p): Likewise.
22031         * expr.c (store_constructor): Likewise.
22032         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
22033         (maybe_fold_stmt_addition): Likewise.
22034         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
22035         * stor-layout.c (layout_type): Likewise.
22036         * tree-data-ref.c (tree_fold_divides_p): Likewise.
22037         * tree-sra.c (build_ref_for_offset): Likewise.
22038         (build_user_friendly_ref_for_offset): Likewise.
22039         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
22040         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
22041         * tree-ssa-loop-niter.c (inverse): Likewise.
22042         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
22043         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
22044         * tree-switch-conversion.c (check_range): Likewise.
22045         (build_constructors): Likewise.
22046         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
22047         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
22048         (extract_range_from_assert): Likewise.
22049         (vrp_int_const_binop): Likewise.
22050         (extract_range_from_binary_expr): Likewise.
22051         (extract_range_from_unary_expr): Likewise.
22052         (check_array_ref): Likewise.
22053         (find_case_label_range): Likewise.
22054         (simplify_div_or_mod_using_ranges): Likewise.
22055         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
22056         comparing case labels for merging.
22057
22058 2011-05-03  Mark Wielaard  <mjw@redhat.com>
22059
22060         * dwarf2out.c (debug_str_hash_forced): Removed.
22061         (gen_label_for_indirect_string): Removed.
22062         (get_debug_string_label): Removed.
22063         (AT_string_form): Generate label directly.
22064         (output_indirect_string): Test indirect_string_node for
22065         DW_FORM_strp instead of checking label and refcount.
22066         (prune_indirect_string): Removed.
22067         (prune_unused_types): Don't check debug_str_hash_forced or
22068         call prune_indirect_string.
22069
22070 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
22071
22072         PR other/48093
22073         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
22074
22075 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
22076
22077         PR debug/47994
22078         PR debug/47919
22079         * combine.c (try_combine): Skip debug insns at m_split tests.
22080
22081 2011-04-26  Mark Wielaard  <mjw@redhat.com>
22082
22083         PR42288
22084         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
22085         when info_section_emitted.
22086
22087 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
22088
22089         * config/mips/mips-opts.h: New.
22090         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
22091         to mips-opts.h.
22092         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
22093         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
22094         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
22095         via opts pointer.
22096         * config/mips/mips.h (enum mips_code_readable_setting): Move to
22097         mips-opts.h.
22098         (mips_abi, mips_code_readable): Don't declare.
22099         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
22100         (mabi=): Use Enum and Var.
22101         (mips_abi): New Enum and EnumValue entries.
22102         (mcode-readable=): Use Enum and Var.
22103         (mips_code_readable_setting): New Enum and EnumValue entries.
22104         (mr10k-cache-barrier=): Use Enum and Var.
22105         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
22106
22107 2011-05-03  Jan Hubicka  <jh@suse.cz>
22108
22109         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
22110         replace hash by pointer map.
22111         (cgraph_node_set_element_def, cgraph_node_set_element,
22112         const_cgraph_node_set_element, varpool_node_set_element_def,
22113         varpool_node_set_element, const_varpool_node_set_element): Remove.
22114         (free_cgraph_node_set, free_varpool_node_set): New function.
22115         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
22116         * tree-emutls.c: Free varpool node set.
22117         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
22118         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
22119         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
22120         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
22121         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
22122         Move here from ipa.c; implement using pointer_map
22123         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
22124         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
22125         debug_cgraph_node_set, varpool_node_set_new,
22126         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
22127         dump_varpool_node_set, debug_varpool_node_set):
22128         Move to ipa-uitls.c.
22129         * passes.c (ipa_write_summaries): Update.
22130
22131 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22132
22133         From Mike Frysinger:
22134         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
22135         bf542/bf544/bf547/bf548/bf549.
22136
22137 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
22138
22139         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
22140
22141 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22142
22143         From Bernd Schmidt:
22144         * config/bfin/bfin.md (MOVCC): New mode_macro.
22145         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
22146         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
22147         comments from generated assembly.
22148
22149 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22150
22151         From Bernd Schmidt
22152         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
22153         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
22154         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
22155         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
22156         * config/bfin/lib1funcs.asm (___muldi3): New function.
22157
22158 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22159
22160         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
22161         build_function_type_list instead of build_function_type.
22162         Rearrange initialization of `args' to do so.
22163
22164 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22165
22166         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
22167         instead of build_function_type.
22168
22169 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22170
22171         * config/rs6000/rs6000.c (spe_init_builtins): Call
22172         build_function_type_list instead of build_function_type.
22173         (paired_init_builtins, altivec_init_builtins): Likewise.
22174         (builtin_function_type): Likewise.
22175
22176 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22177
22178         * config/sh/sh.c (sh_media_init_builtins): Call
22179         build_function_type_list instead of build_function_type.
22180
22181 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22182
22183         * config/sparc/sparc.c (sparc_file_end): Call
22184         build_function_type_list instead of build_function_type.
22185
22186 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22187
22188         * config/alpha/alpha.c (alpha_init_builtins): Call
22189         build_function_type_list instead of build_function_type.
22190
22191 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22192
22193         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
22194         build_function_type_list instead of build_function_type.
22195
22196 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22197
22198         * config/iq2000/i2000.c (iq2000_init_builtins): Call
22199         build_function_type_list instead of build_function_type.
22200         Delete `endlink' variable.
22201
22202 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22203
22204         * config/avr/avr.c (avr_init_builtins): Call
22205         build_function_type_list instead of build_function_type.
22206
22207 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22208
22209         * config/picochip/picochip.c (picochip_init_builtins): Call
22210         build_function_type_list instead of build_function_type.
22211         Delete `endlink' variable.
22212
22213 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
22214
22215         * config/bfin/bfin.c (bfin_init_builtins): Call
22216         build_function_type_list instead of build_function_type.
22217
22218 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22219
22220         From Bernd Schmidt
22221         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
22222         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
22223
22224 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22225
22226         From Jie Zhang:
22227         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
22228         libbffastfp overrides libgcc when -mfast-fp.
22229
22230 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22231
22232         Originally from Bernd Schmidt
22233         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
22234         * config/bfin/bfin.c (override_options): Test it and error if
22235         TARGET_FDPIC.
22236
22237 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
22238
22239         Originally From Bernd Schmidt
22240         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
22241         FD-PIC.
22242
22243 2011-05-03  Jeff Law  <law@redhat.com>
22244
22245         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
22246         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
22247         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
22248         than accessing AUX field directly.  Free the AUX field before
22249         clearing it.
22250         (thread_block, thread_through_loop_header): Likewise.
22251         (thread_single_edge, mark_threaded_blocks): Likewise.
22252         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
22253         (register_jump_thread): Do not attempt to thread to a NULL edge.
22254
22255 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
22256
22257         * function.c (init_function_start): Call decide_function_section.
22258         * varasm.c (decide_function_section): New function.
22259         (assemble_start_function): When not using
22260         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
22261         or first_function_block_is_cold.
22262         * rtl.h (decide_function_section): Declare.
22263
22264 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
22265             Jakub Jelinek  <jakub@redhat.com>
22266
22267         PR target/48774
22268         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
22269         only succeed if req_mode is the same as set_mode.
22270
22271 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
22272
22273         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
22274         * genemit.c (gen_exp): Handle RETURN.
22275         * emit-rtl.c (verify_rtx_sharing): Likewise.
22276         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
22277         * rtl.c (copy_rtx): RETURN is shared.
22278         * rtl.h (enum global_rtl_index): Add GR_RETURN.
22279         (ret_rtx): New.
22280         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
22281         * config/s390/s390.c (s390_emit_epilogue): Likewise.
22282         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
22283         * config/cris/cris.c (cris_expand_return): Likewise.
22284         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
22285         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
22286         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
22287         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
22288         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
22289         Likewise.
22290         * config/v850/v850.c (expand_epilogue): Likewise.
22291         * config/bfin/bfin.c (bfin_expand_call): Likewise.
22292         * config/arm/arm.md (epilogue): Likewise.
22293         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
22294         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
22295         variable to ret_reg.
22296
22297 2011-05-03  Richard Guenther  <rguenther@suse.de>
22298
22299         PR lto/48846
22300         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
22301         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
22302         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
22303
22304 2011-05-03  Richard Guenther  <rguenther@suse.de>
22305
22306         * c-decl.c (grokdeclarator): Instead of looking at
22307         TREE_OVERFLOW check if the constant fits in the index type.
22308
22309 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
22310
22311         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
22312         (vec_store_lanes<mode><mode>): Likewise.
22313
22314 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
22315
22316         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
22317         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
22318         convert_optab_index values.
22319         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
22320         * genopinit.c (optabs): Initialize the new optabs.
22321         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
22322         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
22323         (expand_STORE_LANES): New functions.
22324         * tree.h (build_array_type_nelts): Declare.
22325         * tree.c (build_array_type_nelts): New function.
22326         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
22327         (vect_model_load_cost): Likewise.
22328         (vect_store_lanes_supported, vect_load_lanes_supported)
22329         (vect_record_strided_load_vectors): Declare.
22330         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
22331         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
22332         (vect_transform_strided_load): Split out statement recording into...
22333         (vect_record_strided_load_vectors): ...this new function.
22334         * tree-vect-stmts.c (create_vector_array, read_vector_array)
22335         (write_vector_array, create_array_ref): New functions.
22336         (vect_model_store_cost): Add store_lanes_p argument.
22337         (vect_model_load_cost): Add load_lanes_p argument.
22338         (vectorizable_store): Try to use store-lanes functions for
22339         interleaved stores.
22340         (vectorizable_load): Likewise load-lanes and loads.
22341         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
22342         to vect_model_store_cost.
22343         (vect_build_slp_tree): Likewise vect_model_load_cost.
22344
22345 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
22346
22347         * hooks.h (hook_bool_mode_uhwi_false): Declare.
22348         * hooks.c (hook_bool_mode_uhwi_false): New function.
22349         * target.def (array_mode_supported_p): New hook.
22350         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
22351         * doc/tm.texi: Regenerate.
22352         * stor-layout.c (mode_for_array): New function.
22353         (layout_type): Use it.
22354         * config/arm/arm.c (arm_array_mode_supported_p): New function.
22355         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
22356
22357 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
22358
22359         PR target/48723
22360         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
22361         for -fstack-check if the size to allocate is negative.
22362
22363 2011-05-02  Lawrence Crowl  <crowl@google.com>
22364
22365         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
22366         (timevar_cond_start): New for starting a timer only when it is not
22367         already running.
22368         (timevar_cond_stop): New for stopping a timer when it was not already
22369         running.
22370
22371         * timevar.c (timevar_stop): Enable start/stop timers to start again.
22372         (timevar_cond_start): New as above.
22373         (timevar_cond_stop): New as above.
22374
22375         * timevar.def: Add start/stop timers for compiler phases,
22376         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
22377         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
22378         and TV_PHASE_FINALIZE.
22379         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
22380         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
22381         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
22382         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
22383         Make unused TV_OVERLOAD into a start/stop timer.
22384
22385         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
22386         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
22387         to indicate that they are start/stop timers.
22388
22389         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
22390         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
22391         Move initialization to do_compile.
22392         (do_compile): Add initialization from above.
22393         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
22394
22395         * c-decl.c (c_write_global_declarations): Add start/stop of
22396         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
22397
22398         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
22399         or TV_PARSE_INLINE, as appropriate.
22400         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
22401         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
22402
22403 2011-05-02  Jason Merrill  <jason@redhat.com>
22404
22405         PR c++/40975
22406         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
22407
22408 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
22409
22410         PR c/35445
22411         * c-decl.c (finish_decl): Only create a composite if the types are
22412         compatible.
22413
22414 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
22415
22416         * config/fr30/fr30-protos.h (Mmode): Don't define.
22417         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
22418         definition where used.
22419         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
22420         define.  Expand definitions where used.
22421         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
22422         Expand definitions where used.
22423         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
22424         rx_function_arg, rx_function_arg_advance,
22425         rx_function_arg_boundary): Expand definitions of those macros.
22426         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
22427         definition where used.
22428
22429 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
22430
22431         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
22432         reg<->xmm moves.
22433         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
22434         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
22435         with *movv2sf_internal_rex64_avx.
22436         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
22437         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
22438         Use %v prefix in insn mnemonic to handle TARGET_AVX.
22439         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
22440         "vex" in "prefix" attribute calculation.
22441         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
22442
22443 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
22444
22445         PR target/47951
22446         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
22447         inputs match the output.
22448
22449 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
22450
22451         PR target/47955
22452         * config/m68k/m68k.c (m68k_expand_prologue): Set
22453         current_function_static_stack_size.
22454
22455 2011-05-02   Jan Hubicka  <jh@suse.cz>
22456
22457         * lto-streamer.c (lto_streamer_cache_insert_1,
22458         lto_streamer_cache_lookup, lto_streamer_cache_create,
22459         lto_streamer_cache_delete): Use pointer map instead of hashtable.
22460         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
22461
22462 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
22463
22464         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
22465         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
22466         config/m68k/t-opts: New files.
22467         * config/m68k/m68k-tables.opt: New file (generated).
22468         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
22469         extra_options and m68k/t-opts to tmake_file.
22470         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
22471         (all_isas): Initialize using m68k-isas.def.
22472         (all_microarchs): Initialize using m68k-microarchs.def.
22473         (m68k_find_selection): Remove.
22474         (m68k_handle_option): Don't assert that global structures are in
22475         use.  Use error_at.  Access variables via opts pointer.  Don't
22476         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
22477         directly for -m68020-40 and -m68020-60.
22478         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
22479         m68k_tune_entry here.
22480         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
22481         to m68k-opts.h.
22482         (m68k_library_id_string): Remove declaration.
22483         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
22484         (m68k_library_id_string): New Variable.
22485         (march=, mcpu=, mtune=): Use Enum and Var.
22486
22487 2011-05-02  Richard Guenther  <rguenther@suse.de>
22488
22489         * varasm.c (output_constructor_regular_field): Compute zero-based
22490         index with double-ints.  Make sure to ICE instead of producing
22491         wrong code.
22492         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
22493         in asserts.  Properly use a signed type.
22494
22495 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
22496
22497         * config/i386/sse.md (V): New mode iterator.
22498         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
22499         TARGET_SSE2.
22500         (V_256): Rename from AVX256MODE.
22501         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
22502         condition to all users.
22503         (VF1): Ditto.
22504         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
22505         condition to all users.
22506         (VF_128): Make V4SF mode unconditional.
22507         (VF_256): Rename from AVX256MODEF2P.
22508         (VI4F_128): Rename from SSEMODE4S.
22509         (VI8F_128): Rename from SSEMODE2D.
22510         (VI4F_256): Rename from AVX256MODE8P.
22511         (VI8F_256): Rename from AVX256MODE4P.
22512         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
22513         (ssescalarmodesuffix): Remove SF and DF modes.
22514         (SSEMODE124): Remove.
22515         (SSEMODE1248): Ditto.
22516         (SSEMODEF2P): Ditto.
22517         (AVXMODEF2P): Ditto.
22518         (AVXMODEFDP): Ditto.
22519         (AVXMODEFSP): Ditto.
22520         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
22521         unconditional.
22522         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
22523         unconditional.
22524         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
22525         xop_pcmov_<mode>256.  Use V mode iterator.
22526
22527         Adjust RTX patterns globally for renamed mode attributes.
22528
22529 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22530
22531         * haifa-sched.c (sched_emit_insn): Emit insn before first
22532         non-scheduled insn.  Inform back-end about new insn.  Add
22533         new insn to scheduled_insns list.
22534
22535 2011-05-02  Richard Guenther  <rguenther@suse.de>
22536
22537         PR tree-optimization/48822
22538         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
22539         (process_scc): Indicate which iteration we start.
22540
22541 2011-05-02  Jan Hubicka  <jh@suse.cz>
22542
22543         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
22544         (lto_section_overrun): New.
22545         * lto-section-out.c (append_block): Rename to ...
22546         (lto_append_block): ... this one; export.
22547         (lto_output_1_stream): Move lto lto-streamer.h
22548         (lto_output_data_stream): Update.
22549         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
22550         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
22551         functions.
22552
22553 2011-05-02  Richard Guenther  <rguenther@suse.de>
22554
22555         * tree.c (tree_code_counts): New global array.
22556         (record_node_allocation_statistics): Count individual tree codes.
22557         (dump_tree_statistics): Dump individual code stats.
22558
22559 2011-05-01  Jan Hubicka  <jh@suse.cz>
22560
22561         * ipa-inline.c (caller_growth_limits): Fix thinko when
22562         looking for largest stack frame.
22563         * ipa-inline.h (dump_inline_summary): Declare.
22564         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
22565         on stack usage.
22566         (dump_inline_summary): Export.
22567         (debug_inline_summary): Declare as DEBUG_FUNCTION.
22568
22569 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
22570
22571         * reginfo.c (memory_move_cost): Change rclass argument type form
22572         'enum reg_class' to reg_class_t.
22573         * reload.h (memory_move_cost): Update prototype.
22574         * postreload.c reload_cse_simplify_set): Change type dclass var to
22575         reg_class_t.
22576         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
22577         Update prototype.
22578         (ira_allocate_and_set_costs): Change aclass argument type form
22579         'enum reg_class' to reg_class_t.
22580         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
22581         Change aclass argument type to reg_class_t.
22582         (update_conflict_hard_reg_costs): Change type aclass and pref vars
22583         to reg_class_t.
22584         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
22585         memory_move_cost call.
22586
22587         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
22588         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
22589         Change type tmp var to reg_class_t.
22590
22591 2011-04-30  Jan Hubicka  <jh@suse.cz>
22592
22593         * ipa-inline.c (can_inline_edge_p): Disregard limits when
22594         inlining into function with flatten attribute.
22595         (want_inline_small_function_p): Be more realistic about inlining
22596         cold calls where callee size grows.
22597
22598 2011-04-30  Jan Hubicka  <jh@suse.cz>
22599
22600         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
22601         flags.
22602
22603 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
22604
22605         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
22606         PRINT_OPERAND_PUNCT_VALID_P): Remove.
22607         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
22608         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
22609         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22610         (print_operand): Rename to...
22611         (sparc_print_operand): ...this. Make static. Adjust
22612         sparc_print_operand function call.
22613         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
22614         functions.
22615
22616 2011-04-30  Jan Hubicka  <jh@suse.cz>
22617
22618         PR middle-end/48752
22619         * ipa-inline.c (early_inliner): Disable when doing late
22620         addition of function.
22621
22622 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
22623
22624         * dwarf2out.c (get_address_mode): New inline.
22625         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
22626         if not dwarf_strict emit
22627         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
22628         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
22629         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
22630         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
22631         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
22632         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
22633         mem_loc_descriptor callers.
22634         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
22635         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
22636         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
22637         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
22638         (base_types): New variable.
22639         (get_base_type_offset, calc_base_type_die_sizes,
22640         base_type_for_mode, mark_base_types, base_type_cmp,
22641         move_marked_base_types): New functions.
22642         (calc_die_sizes): Assert that die_offset is 0 or equal to
22643         next_die_offset.
22644         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
22645         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
22646         callers.  If not dwarf_strict, call mem_loc_descriptor even for
22647         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
22648         (gen_subprogram_die): Don't give up on call site parameters
22649         with non-integral or large integral modes.  Adjust
22650         mem_loc_descriptor callers.
22651         (prune_unused_types): Call prune_unused_types_mark on base_types
22652         vector entries.
22653         (resolve_addr): Call mark_base_types.
22654         (dwarf2out_finish): Call move_marked_base_types.
22655
22656         PR tree-optimization/48809
22657         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
22658         type.
22659         (gen_inbound_check): Don't compute index_expr - range_min in utype
22660         again, instead reuse SSA_NAME initialized in build_arrays.
22661         Remove two useless gsi_for_stmt calls.
22662
22663 2011-04-29  Jeff Law  <law@redhat.com>
22664
22665         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
22666
22667 2011-04-29  Martin Jambor  <mjambor@suse.cz>
22668
22669         * cgraph.h (cgraph_postorder): Remove declaration.
22670         * ipa-utils.h (ipa_free_postorder_info): Declare.
22671         (ipa_reverse_postorder): Likewise.
22672         * cgraphunit.c: Include ipa-utils.h.
22673         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
22674         * ipa-inline.c: Include ipa-utils.h.
22675         (ipa_inline): Update call to ipa_reverse_postorder.
22676         * ipa-pure-const.c (propagate_pure_const): Update call to
22677         ipa_reduced_postorder and ipa_print_order.  Call
22678         ipa_free_postorder_info to clean up.
22679         (propagate_nothrow): Likewise.
22680         * ipa-reference.c (propagate): Removed a useless call to
22681         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
22682         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
22683         * ipa.c: Include ipa-utils.h.
22684         (ipa_profile): Update call to ipa_reverse_postorder.
22685         (cgraph_postorder): Moved to...
22686         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
22687         (ipa_utils_print_order): Renamed to ipa_print_order.
22688         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
22689         comments.
22690         (ipa_free_postorder_info): New function.
22691         * passes.c: Include ipa-utils.h.
22692         (do_per_function_toporder): Update call to ipa_reverse_postorder.
22693         (ipa_write_summaries): Likewise.
22694         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
22695         (cgraphunit.o): Likewise.
22696         (ipa.o): Likewise.
22697         (ipa-inline.o): Likewise.
22698
22699 2011-04-29  Jan Hubicka  <jh@suse.cz>
22700
22701         * ipa-inline.h (clause_t): Turn into unsigned int.
22702         * ipa-inline-analysis.c (add_clause): Do more simplification.
22703         (and_predicates): Shortcut more cases.
22704         (predicates_equal_p): Move forward; check that clauses are properly
22705         ordered.
22706         (or_predicates): Shortcut more cases.
22707         (edge_execution_predicate): Rewrite as...
22708         (set_cond_stmt_execution_predicate): ... this function; handle
22709         __builtin_constant_p.
22710         (set_switch_stmt_execution_predicate): New .
22711         (compute_bb_predicates): New.
22712         (will_be_nonconstant_predicate): Update TODO.
22713         (estimate_function_body_sizes): Use compute_bb_predicates
22714         and free them later, always try to estimate if stmt is constant.
22715         (estimate_time_after_inlining, estimate_size_after_inlining):
22716         Gracefully handle optimized out edges.
22717         (read_predicate): Fix off by one error.
22718
22719 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
22720
22721         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
22722
22723 2011-04-27  Xinliang David Li  <davidxl@google.com>
22724
22725         * tree-profile.c (init_ic_make_global_vars): Set
22726         tls attribute on ic vars.
22727         * coverage.c (coverage_end_function): Initialize
22728         function_list with zero.
22729
22730 2011-04-29  Richard Guenther  <rguenther@suse.de>
22731
22732         * builtins.c (fold_builtin_classify_type): Use integer_type_node
22733         for the type of the result.
22734         (fold_builtin_isascii): Likewise.
22735         (fold_builtin_toascii): Use integer_type_node where appropriate.
22736         (fold_builtin_logb): Likewise.
22737         (fold_builtin_frexp): Likewise.
22738         (fold_builtin_strstr): Likewise.
22739         (fold_builtin_strpbrk): Likewise.
22740         (fold_builtin_fputs): Likewise.
22741         (fold_builtin_sprintf): Likewise.
22742         (fold_builtin_snprintf): Likewise.
22743         (fold_builtin_printf): Likewise.
22744         (do_mpfr_remquo): Use a proper type for the assigned constant.
22745         (do_mpfr_lgamma_r): Likewise.
22746         * dwarf2out.c (resolve_one_addr): Use size_int.
22747         * except.c (init_eh): Likewise.
22748         (assign_filter_values): Use integer_type_node for filter values.
22749         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
22750         indices.
22751         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
22752         for EH region numbers.
22753         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
22754         for the shift amount.
22755
22756 2011-04-29  Richard Guenther  <rguenther@suse.de>
22757
22758         * expr.h (expand_shift): Rename to ...
22759         (expand_variable_shift): ... this.
22760         (expand_shift): Take a constant shift amount.
22761         * expmed.c (expand_shift): Rename to ...
22762         (expand_variable_shift): ... this.
22763         (expand_shift): New wrapper around expand_variable_shift.
22764         * expr.c (convert_move, emit_group_load_1, emit_group_store,
22765         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
22766         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
22767         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
22768         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
22769         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
22770         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
22771         emit_store_flag_1, emit_store_flag): Likewise.
22772         * builtins.c (expand_builtin_signbit): Likewise.
22773         * calls.c (load_register_parameters): Likewise.
22774         * function.c (assign_parm_setup_block): Likewise.
22775         * lower-subreg.c (resolve_shift_zext): Likewise.
22776         * optabs.c (widen_bswap, expand_abs_nojump,
22777         expand_one_cmpl_abs_nojump, expand_float): Likewise.
22778         * spu/spu.c (spu_expand_extv): Likewise.
22779         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
22780
22781 2011-04-29  Richard Guenther  <rguenther@suse.de>
22782
22783         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
22784         for the remapped region number.
22785         * predict.c (build_predict_expr): Use integer_type_node for the
22786         predict kind.
22787         * fold-const.c (fold_binary_loc): Use integer_type_node for
22788         the shift amount.  Use a proper type for the PLUS_EXPR operand.
22789
22790 2011-04-29  Michael Matz  <matz@suse.de>
22791
22792         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
22793         other trees that just builtins.
22794         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
22795
22796 2011-04-29  Richard Guenther  <rguenther@suse.de>
22797
22798         * tree-nested.c (get_trampoline_type): Use size_int.
22799         (get_nl_goto_field): Likewise.
22800         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
22801         for all indexes.
22802         (lower_eh_constructs_2): Likewise.
22803         (lower_resx): Likewise.
22804         (lower_eh_dispatch): Likewise.
22805         * tree-mudflap.c (mf_build_string): Use size_int.
22806         (mudflap_register_call): Use integer_type_node for the flag.
22807         (mudflap_enqueue_constant): Use size_int.
22808         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
22809         instead of rebuilding it.
22810
22811 2011-04-29  Richard Guenther  <rguenther@suse.de>
22812
22813         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
22814         Handle OBJ_TYPE_REF.
22815         (find_func_aliases_for_call): Use it more consistently.
22816
22817 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
22818
22819         * haifa-sched.c (last_nondebug_scheduled_insn): New.
22820         (rank_for_schedule): Use it.
22821         (schedule_block): Set it.
22822
22823 2011-04-28  David Li  <davidxl@google.com>
22824
22825         * tree.c (crc32_string): Use crc32_byte.
22826         (crc32_byte): New function.
22827         * tree.h (crc32_byte): New function.
22828         * gcov.c (read_graph_file): Handle new cfg_cksum.
22829         (read_count_file): Ditto.
22830         * profile.c (instrument_values): Ditto.
22831         (get_exec_counts): Ditto.
22832         (read_profile_edge_counts): Ditto.
22833         (compute_branch_probabilities): Ditto.
22834         (compute_value_histograms): Ditto.
22835         (branch_prob): Ditto.
22836         (end_branch_prob): Ditto.
22837         * coverage.c (read_counts_file): Ditto.
22838         (get_coverage_counts): Ditto.
22839         (tree_coverage_counter_addr): Ditto.
22840         (coverage_checksum_string): Ditto.
22841         (coverage_begin_output): Ditto.
22842         (coverage_end_function): Ditto.
22843         (build_fn_info_type): Ditto.
22844         (build_fn_info_value): Ditto.
22845         * libgcov.c (gcov_exit): Ditto.
22846         * gcov-dump.c (tag_function): Ditto.
22847         (compute_checksum): Remove.
22848
22849 2011-04-29  Alan Modra  <amodra@gmail.com>
22850
22851         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
22852         unspec plus offset.  Tidy macho code.
22853
22854 2011-04-29  Martin Jambor  <mjambor@suse.cz>
22855
22856         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
22857         node instead of a decl.  Update all callers.
22858         * cgraph.h: Update declaration.
22859
22860 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
22861
22862         PR tree-optimization/48765
22863         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
22864         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
22865         to indicate if loop aware SLP is being used.  Scan the statements
22866         and update the vectorization factor according to the type of
22867         vectorization before statement analysis.
22868         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
22869         pass it to vect_analyze_loop_operations.
22870         (vectorizable_reduction): Set number of copies to 1 in case of pure
22871         SLP statement.
22872         * tree-vect-stmts.c (vectorizable_conversion,
22873         vectorizable_assignment, vectorizable_shift,
22874         vectorizable_operation, vectorizable_type_demotion,
22875         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
22876         Likewise.
22877         (vectorizable_condition): Move the check that it is not SLP
22878         vectorization before the number of copies check.
22879         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
22880         to vectorize the loop using SLP.
22881
22882 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
22883
22884         PR middle-end/48597
22885         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
22886         inline asm.
22887
22888 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
22889
22890         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
22891         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
22892         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
22893         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
22894         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
22895         linux*.h headers.
22896         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
22897         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
22898         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
22899         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
22900         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
22901         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
22902         REG_NAME.
22903         * config/i386/linux.h (REG_NAME): Don't define.
22904         * config/i386/linux64.h (REG_NAME): Don't define.
22905         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
22906         Undefine before defining.
22907
22908 2011-04-28  Jan Hubicka  <jh@suse.cz>
22909
22910         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
22911         nonconstant_names array.
22912         (estimate_function_body_sizes): Build nonconstant_names array; handle
22913         BUILT_IN_CONSTANT_P.
22914
22915 2011-04-28  Richard Guenther  <rguenther@suse.de>
22916
22917         PR bootstrap/48804
22918         Revert
22919         2011-04-28  Richard Guenther  <rguenther@suse.de>
22920
22921         * tree-ssa-structalias.c (solve_constraints): Build succ graph
22922         as late as possible.
22923
22924 2011-04-28  Richard Guenther  <rguenther@suse.de>
22925
22926         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
22927         (debug_constraint): Do it here.
22928         (dump_constraints): And here.
22929         (rewrite_constraints): And here.
22930         (dump_constraint_edge): Remove.
22931         (dump_constraint_graph): Rewrite to produce DOT output.
22932         (solve_constraints): Build succ graph as late as possible.
22933         Dump constraint graphs before and after solving.
22934
22935 2011-04-28  Richard Guenther  <rguenther@suse.de>
22936
22937         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22938         New function split out from ...
22939         (find_func_aliases): ... here.  Call it.
22940         (find_func_aliases_for_call): Likewise.
22941
22942 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
22943
22944         * internal-fn.h (internal_fn_name_array): Declare.
22945         (internal_fn_flags_array): Likewise.
22946
22947 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
22948
22949         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
22950         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
22951         Move from sse.md.
22952         (ssemodefsuffix): Remove.
22953         (ssevecmodesuffix): New mode attribute.
22954         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
22955         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
22956         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
22957         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
22958         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
22959         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
22960         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
22961         ssemodesuffix mode attribute.
22962         (float splitters): Use ssevecmodesuffix mode attribute.
22963         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
22964         (sseinsmode): Rename from avxvecmode.
22965         (avxsizesuffix): Rename from avxmodesuffix.
22966         (sseintvecmode): Rename from avxpermvecmode.
22967         (ssedoublevecmode): Rename from ssedoublesizemode.
22968         (ssehalfvecmode): Rename from avxhalfvecmode.
22969         (ssescalarmode): Rename from avxscalarmode.
22970         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
22971         templates for ssemodesuffix mode attribute.
22972         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
22973         mode attribute.
22974
22975         Adjust RTX patterns globally for renamed mode attributes.
22976
22977 2011-04-27  Jan Hubcika  <jh@suse.cz>
22978
22979         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
22980         * ipa-inline-analysis.c: Include alloc-pool.h.
22981         (edge_predicate_pool): New.
22982         (trye_predicate_p): New function
22983         (false_predicate_p): New function.
22984         (add_clause): Sanity check that false clauses are "optimized";
22985         never add clauses to predicate that is already known to be false.
22986         (and_predicate): Use flase_predicate_p.
22987         (evaulate_predicate): Rename to ...
22988         (evaluate_predicate): ... this one; update all callers; assert
22989         that false is not listed among possible truths.
22990         (dump_predicate): Use true_predicate_p.
22991         (account_size_time): Use false_predicate_p.
22992         (evaulate_conditions_for_edge): Rename to ...
22993         (evaluate_conditions_for_edge) ... this one.
22994         (edge_set_predicate): New function.
22995         (inline_edge_duplication_hook): Duplicate edge predicates.
22996         (inline_edge_removal_hook): Free edge predicates.
22997         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
22998         (dump_inline_summary): Update.
22999         (estimate_function_body_sizes): Set edge predicates.
23000         (estimate_calls_size_and_time): Handle predicates.
23001         (estimate_callee_size_and_time): Update.
23002         (remap_predicate): Add toplev_predicate; update comment.
23003         (remap_edge_predicates): New function.
23004         (inline_merge_summary): Compute toplev predicate; update.
23005         (read_predicate): New function.
23006         (read_inline_edge_summary): Use it.
23007         (inline_read_section): Likewise.
23008         (write_predicate): New function.
23009         (write_inline_edge_summary): Use it.
23010         (inline_write_summary): Likewise.
23011         (inline_free_summary): Free alloc pool and edge summary vec.
23012
23013 2011-04-27  Richard Guenther  <rguenther@suse.de>
23014
23015         * tree-ssa-structalias.c (changed_count): Remove.
23016         (changed): Use a bitmap.
23017         (unify_nodes): Adjust.
23018         (do_sd_constraint): Likewise.
23019         (do_ds_constraint): Likewise.
23020         (do_complex_constraint): Likewise.
23021         (solve_graph): Likewise.
23022
23023 2011-04-27  Jan Hubicka  <jh@suse.cz>
23024
23025         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
23026
23027 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
23028
23029         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
23030         (avx_vperm2f128_*_operand): Ditto.
23031         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
23032         Use avx_vpermilp_parallel in insn condition.
23033         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
23034         Use avx_vperm2f128_parallel in insn condition.
23035
23036 2011-04-27  Richard Guenther  <rguenther@suse.de>
23037
23038         * Makefile.in (tree-ssa-structalias.o): Remove
23039         gt-tree-ssa-structalias.h dependency.
23040         (GTFILES): Remove tree-ssa-structalias.c.
23041         * tree.c (allocate_decl_uid): New function.
23042         (make_node_stat): Use it.
23043         (copy_node_stat): Likewise.
23044         * tree.h (allocate_decl_uid): Declare.
23045         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
23046         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
23047         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
23048         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
23049         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
23050         (struct heapvar_map): Likewise.
23051         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
23052         heapvar_insert): Likewise.
23053         (make_heapvar_for): Rename to ...
23054         (make_heapvar): ... this.  Simplify.
23055         (fake_var_decl_obstack): New global var.
23056         (build_fake_var_decl): New function.
23057         (make_constraint_from_heapvar): Adjust.
23058         (handle_lhs_call): Likewise.
23059         (create_function_info_for): Likewise.
23060         (intra_create_variable_infos): Likewise.
23061         (init_alias_vars): Allocate fake_var_decl_obstack.
23062         (init_alias_heapvars, delete_alias_heapvars): Remove.
23063         (compute_points_to_sets): Do not call init_alias_heapvars.
23064         (ipa_pta_execute): Likewise.
23065         (delete_points_to_sets): Free fake_var_decl_obstack.
23066
23067 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23068
23069         * config/spu/divmovti4.c (union qword_UTItype): New data type.
23070         (si_from_UTItype, si_to_UTItype): New functions.
23071         (__udivmodti4): Use them to implement type-punning.
23072         * config/spu/multi3.c (union qword_TItype): New data type.
23073         (si_from_TItype, si_to_TItype): New functions.
23074         (__multi3): Use them to implement type-punning.
23075
23076 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23077
23078         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
23079
23080 2011-04-27  Jan Hubicka  <jh@suse.cz>
23081
23082         * ipa-prop.c (function_insertion_hook_holder): New holder.
23083         (ipa_add_new_function): New function.
23084         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
23085         Register/deregister holder.
23086
23087 2011-04-27  Richard Guenther  <rguenther@suse.de>
23088
23089         PR tree-optimization/48772
23090         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
23091
23092 2011-04-27  Richard Guenther  <rguenther@suse.de>
23093
23094         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
23095         TARGET_MEM_REF handling.
23096
23097 2011-04-27  Nick Clifton  <nickc@redhat.com>
23098
23099         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
23100         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
23101         (REG_CLASS_NAMES): Likewise.
23102         (REG_CLASS_CONTENTS): Likewise.
23103         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
23104         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
23105         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
23106         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
23107         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
23108         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
23109         duplicate register classes.
23110         (frv_class_likely_spilled_p): Likewise.
23111         (frv_register_move_cost): Likewise.
23112
23113         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
23114         end of the regno_reg_class array.
23115
23116 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
23117
23118         PR c/48742
23119         * c-typeck.c (build_binary_op): Don't wrap arguments if
23120         int_operands is true.
23121
23122 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
23123
23124         PR target/48767
23125         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
23126         targetm.calls.must_pass_in_stack for void type.
23127
23128 2011-04-26  Jan Hubicka  <jh@suse.cz>
23129
23130         * cgraphbuild.c (build_cgraph_edges): Update call
23131         of cgraph_create_edge and cgraph_create_indirect_edge.
23132         * cgraph.c (cgraph_create_edge_including_clones,
23133         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
23134         cgraph_update_edges_for_call_stmt_node): Do not take nest
23135         argument; do not initialize call_stmt_size/time.
23136         (dump_cgraph_node): Do not dump nest.
23137         (cgraph_clone_edge): Do not take loop_nest argument;
23138         do not propagate it; do not clone call_stmt_size/time.
23139         (cgraph_clone_node): Likewise.
23140         (cgraph_create_virtual_clone): Update.
23141         * cgraph.h (struct cgraph_edge): Remove
23142         call_stmt_size/call_stmt_time/loop_nest.
23143         (cgraph_create_edge, cgraph_create_indirect_edge,
23144         cgraph_create_edge_including_clones, cgraph_clone_node): Update
23145         prototype.
23146         * tree-emutls.c (gen_emutls_addr): Update.
23147         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
23148         loop_nest; handle indirect calls, too.
23149         (clone_inlined_nodes): Do not care about updating inline summaries.
23150         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
23151         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
23152         stream call_stmt_size/call_stmt_time/loop_nest.
23153         * ipa-inline.c (edge_badness): Update.
23154         (ipa_inline): dump summaries after inlining.
23155         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
23156         New.
23157         (inline_edge_summary): New function.
23158         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
23159         (inline_edge_removal_hook): Handle edge summaries.
23160         (inline_edge_duplication_hook): New hook.
23161         (inline_summary_alloc): Alloc hooks.
23162         (initialize_growth_caches): Do not register removal hooks.
23163         (free_growth_caches); Do not free removal hook.
23164         (dump_inline_edge_summary): New function.
23165         (dump_inline_summary): Use it.
23166         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
23167         (inline_update_callee_summaries): New function.
23168         (inline_merge_summary): Use it.
23169         (do_estimate_edge_time, do_estimate_edge_growth): Update.
23170         (read_inline_edge_summary): New function.
23171         (inline_read_section): Use it.
23172         (write_inline_edge_summary): New function.
23173         (inline_write_summary): Use it.
23174         (inline_free_summary): Free edge new holders.
23175         * tree-inline.c (copy_bb): Update.
23176
23177 2011-04-26  Jason Merrill  <jason@redhat.com>
23178
23179         * tree-eh.c (lower_try_finally_switch): Create the label along with
23180         the CASE_LABEL_EXPR.
23181
23182 2011-04-26  David S. Miller  <davem@davemloft.net>
23183             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23184
23185         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
23186         * configure: Regenerate.
23187
23188 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
23189
23190         PR target/48258
23191         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
23192         reduction.
23193         (VEC_reduc): New code iterator and splitters for vector reduction.
23194         (VEC_reduc_name): Ditto.
23195         (VEC_reduc_rtx): Ditto.
23196         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
23197         (reduc_<VEC_reduc_name>_v4sf): Ditto.
23198
23199         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
23200         support for extracting SF on VSX.
23201
23202         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
23203         generating xscvspdp.
23204         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
23205         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
23206         double add, minimum, maximum vector reduction.
23207         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
23208         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
23209         optimize double vector reduction.
23210         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
23211
23212 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
23213
23214         * config/fr30/fr30.h (inhibit_libc): Don't define.
23215         * config/m32r/m32r-protos.h: Correct comment.
23216         * config/v850/v850.h (GHS_default_section_names,
23217         GHS_current_section_names): Use tree, not union tree_node *.
23218
23219 2011-04-26  Xinliang David Li  <davidxl@google.com>
23220
23221         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
23222         * c-family/c-opts.c (c_common_handle_option): Set
23223         warn_maybe_uninitialized.
23224         * opts.c (common_handle_option): Ditto.
23225         * common.opt:  New option.
23226         * tree-ssa.c (warn_uninit): Add one more parameter.
23227         (warn_uninitialized_var): Pass warning code.
23228         * tree-flow.h: Interface change.
23229
23230 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23231
23232         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
23233         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
23234         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
23235
23236 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23237
23238         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
23239         * config/mips/mips.opt (mmips-tfile): Remove.
23240
23241         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
23242         mips-tdump reference to ...
23243         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
23244         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
23245         reference by Tru64 UNIX.
23246
23247 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
23248
23249         PR debug/48768
23250         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
23251         is error_mark_node, set value to NULL.
23252
23253         PR tree-optimization/48734
23254         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
23255         if return value from maybe_fold_*_comparsions isn't something
23256         the code is prepared to handle.
23257
23258 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
23259
23260         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
23261         mode check.
23262         (ext_QIreg_nomode_operands): Remove.
23263         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
23264         (*andsi_1): Ditto.
23265         (*andhi_1): Ditto.
23266
23267 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
23268
23269         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
23270
23271 2011-04-26  Richard Guenther  <rguenther@suse.de>
23272
23273         * c-typeck.c (build_unary_op): Do not expand array-refs via
23274         pointer arithmetic.  Only adjust qualifiers for function types.
23275
23276 2011-04-26  Richard Guenther  <rguenther@suse.de>
23277
23278         PR middle-end/48694
23279         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
23280         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
23281         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
23282         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
23283
23284 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
23285
23286         * doc/extend.texi: Document __underlying_type.
23287
23288 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
23289
23290         * config/rs6000/titan.md (automata_option "progress"): Remove.
23291
23292 2011-04-25  Jeff Law  <law@redhat.com>
23293
23294         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
23295
23296 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
23297
23298         * system.h (ENUM_BITFIELD): Remove.
23299
23300 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
23301             Eric Botcazou  <ebotcazou@adacore.com>
23302
23303         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
23304         for STORE_FLAG_VALUE==-1 case.
23305
23306 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
23307
23308         PR target/43804
23309         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
23310         LEGITIMATE_PIC_OPERAND_P.
23311
23312 2011-04-24  Jan Hubicka  <jh@suse.cz>
23313
23314         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
23315         WPA hack.
23316         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
23317         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
23318         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
23319         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
23320         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
23321         Sanity check predicate length.
23322         (remap_predicate): Likewise; sanity check jump functions.
23323         (inline_read_section, inline_write_summary): Sanity check
23324         predicate length.
23325
23326 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
23327
23328         PR other/48748
23329         * doc/extend.texi (Type Traits): Document __is_standard_layout,
23330         __is_literal_type, and __is_trivial; update throughout about
23331         possibly cv-qualified void types.
23332
23333 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
23334
23335         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
23336         testsuite and make it version agnostic.
23337
23338 2011-04-22  Jan Hubicka  <jh@suse.cz>
23339
23340         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
23341
23342 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
23343
23344         PR c/48685
23345         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
23346         to VOID_TYPE even around MODIFY_EXPR.
23347
23348 2011-04-22  Mike Stump  <mikestump@comcast.net>
23349
23350         * gensupport.c (read_md_rtx): Fix typo in comment.
23351         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
23352         comment.
23353
23354 2011-04-22  Jan Hubicka  <jh@suse.cz>
23355
23356         * gengtype.c (open_base_files): Add ipa-inline.h include.
23357         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
23358         ipa-prop.c; update all uses.
23359         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
23360         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
23361         merge summary of inlined function into former caller.
23362         * ipa-inline.c (max_benefit): Remove.
23363         (edge_badness): Compensate for removal of benefits.
23364         (update_caller_keys): Use
23365         reset_node_growth_cache/reset_edge_growth_cache.
23366         (update_callee_keys): Likewise.
23367         (update_all_callee_keys): Likewise.
23368         (inline_small_functions): Do not collect max_benefit; do not reset
23369         estimated_growth; call free_growth_caches and initialize_growth_caches.
23370         * ipa-inline.h (struct condition, type clause_t, struct predicate,
23371         struct size_time_entry): New structures.
23372         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
23373         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
23374         and estimated_growth.
23375         (edge_growth_cache_entry): New structure.
23376         (node_growth_cache, edge_growth_cache): New global vars.
23377         (estimate_growth): Turn into inline.
23378         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
23379         initialize_growth_caches, free_growth_caches): Declare.
23380         (estimate_edge_growth): Rewrite.
23381         (estimate_edge_time): Implement as inline cache lookup.
23382         (reset_node_growth_cache, reset_edge_growth_cache): New inline
23383         functions.
23384         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
23385         (NUM_CONDITIONS): New constant.
23386         (predicate_conditions): New enum.
23387         (IS_NOT_CONSTANT): New constant.
23388         (edge_removal_hook_holder): New var.
23389         (node_growth_cache, edge_growth_cache): New global vars.
23390         (true_predicate, single_cond_predicate, false_predicate,
23391         not_inlined_predicate, add_condition, add_clause, and_predicates,
23392         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
23393         dump_clause, dump_predicate, account_size_time,
23394         evaulate_conditions_for_edge): New functions.
23395         (inline_summary_alloc): Move to heap.
23396         (inline_node_removal_hook): Clear condition and entry vectors.
23397         (inline_edge_removal_hook): New function.
23398         (initialize_growth_caches, free_growth_caches): New function.
23399         (dump_inline_summary): Update.
23400         (edge_execution_predicate): New function.
23401         (will_be_nonconstant_predicate): New function.
23402         (estimate_function_body_sizes): Compute BB and constantness predicates.
23403         (compute_inline_parameters): Do not clear estimated_growth.
23404         (estimate_edge_size_and_time): New function.
23405         (estimate_calls_size_and_time): New function.
23406         (estimate_callee_size_and_time): New function.
23407         (remap_predicate): New function.
23408         (inline_merge_summary): New function.
23409         (do_estimate_edge_time): New function based on...
23410         (estimate_edge_time): ... this one.
23411         (do_estimate_edge_growth): New function.
23412         (do_estimate_growth): New function based on....
23413         (estimate_growth): ... this one.
23414         (inline_analyze_function): Analyze after deciding on jump functions.
23415         (inline_read_section): New function.
23416         (inline_read_summary): Use it.
23417         (inline_write_summary): Write all the new data.
23418         * ipa-prop.c (ipa_get_param_decl_index): Export.
23419         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
23420         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
23421         Declare.
23422         (ipa_get_lattice): Move here from ipa-cp.c
23423         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
23424         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
23425         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
23426         cgraph_edge_inlinable_p): Remove.
23427         * cgraphunit.c: Include ipainline.h
23428         (cgraph_process_new_functions): Update call of
23429         compute_inline_parameters.
23430
23431 2011-04-22  Richard Guenther  <rguenther@suse.de>
23432
23433         * tree.c (build_int_cst): Properly create canonicalized integer
23434         constants.
23435         (build_int_cst_type): Remove scary comments.
23436
23437 2011-04-22  Xinliang David Li  <davidxl@google.com>
23438
23439         * toplev.c (process_options): Enable -Werror=coverage-mismatch
23440         by default when -Wno-error is not specified.
23441         * opts-global.c (decode_options): Remove call to
23442         control_warning_options.
23443
23444 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
23445
23446         PR tree-optimization/48717
23447         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
23448         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
23449
23450 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
23451
23452         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
23453         definition where used.
23454
23455 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
23456
23457         PR c/48716
23458         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
23459         TREE_STATIC variables declared inside of some OpenMP construct.
23460
23461 2011-04-22  Martin Jambor  <mjambor@suse.cz>
23462
23463         PR middle-end/48585
23464         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
23465
23466 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
23467
23468         PR c/36750
23469         * c-typeck.c (pop_init_level): Do not warn about initializing
23470         with ` = {0}'.
23471
23472 2011-04-22  Alan Modra  <amodra@gmail.com>
23473
23474         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
23475         when returning call_cookie.
23476         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
23477         pointers, to functions with no more vector args than the current
23478         function, and some non-local calls for ABI_V4.
23479         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
23480         sibcall_nonlocal_aix64): Combine to ..
23481         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
23482         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
23483         (sibcall_value_nonlocal_aix<mode>): ..likewise.
23484         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
23485         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
23486         operand.
23487         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
23488         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
23489         sibcall_value_symbolic_64): Delete.
23490
23491 2011-04-21  Xinliang David Li  <davidxl@google.com>
23492
23493         * cgraph.h: Remove pid.
23494         * cgraph.c: Remove pid.
23495         * value-prof.c (init_node_map): New function.
23496         (del_node_map): New function.
23497         (find_func_by_funcdef_no): New function.
23498         (gimple_ic_transform): Call new function.
23499         * cgraphunit.c (cgraph_finalize_function): Remove pid.
23500         * function.c (get_last_funcdef_no): New function.
23501         * function.h (get_last_funcdef_no): New function.
23502         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
23503         to libgcov function.
23504         (tree-profiling): Call node map init and delete function.
23505
23506 2011-04-21  Ian Lance Taylor  <iant@google.com>
23507
23508         * godump.c (go_format_type): Use exported Go name for anonymous
23509         field name.
23510
23511 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
23512
23513         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
23514         Call builtin_function_type_list instead of builtin_function_type.
23515         (UNARY, BINARY, TRINARY, QUAD): Likewise.
23516
23517 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
23518
23519         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
23520         build_function_type_list instead of build_function_type.
23521         Delete variable `endlink'.
23522
23523 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
23524
23525         * config/s390/s390.c (s390_init_builtins): Call
23526         build_function_type_list instead of build_function_type.
23527
23528 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
23529
23530         * config/ia64/ia64.c (ia64_init_builtins): Call
23531         build_function_type_list instead of builtin_function_type.
23532
23533 2011-04-21  Easwaran Raman  <eraman@google.com>
23534
23535         * cfgexpand.c (stack_var): Remove OFFSET...
23536         (add_stack_var): ...and its reference here...
23537         (expand_stack_vars): ...and here.
23538         (stack_var_cmp): Sort by descending order of size.
23539         (partition_stack_vars): Change heuristic.
23540         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
23541         (dump_stack_var_partition): Add newline after each partition.
23542
23543 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
23544             Jeff Law  <law@redhat.com>
23545
23546         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23547         * gengtype.c (matching_file_name_substitute): Likewise.
23548
23549 2011-04-21  Richard Guenther  <rguenther@suse.de>
23550
23551         PR lto/48703
23552         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
23553
23554 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
23555
23556         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
23557
23558 2011-04-21  Richard Guenther  <rguenther@suse.de>
23559
23560         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
23561         file name.
23562
23563 2011-04-21  Richard Guenther  <rguenther@suse.de>
23564
23565         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
23566         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
23567         Use DECL_P, not SSA_VAR_P.
23568         (ptr_derefs_may_alias_p): Likewise.
23569         (ptr_deref_may_alias_ref_p_1): Likewise.
23570         (decl_refs_may_alias_p): Likewise.
23571         (refs_may_alias_p_1): Likewise.
23572         (ref_maybe_used_by_call_p_1): Likewise.
23573         (call_may_clobber_ref_p_1): Likewise.
23574         (indirect_ref_may_alias_decl_p): Assume indirect refrences
23575         are either MEM_REF or TARGET_MEM_REF.
23576         (indirect_refs_may_alias_p): Likewise.
23577         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
23578         for MEM_EXPR of indirect calls.
23579
23580 2011-04-21  Tristan Gingold  <gingold@adacore.com>
23581
23582         * vmsdbgout.c (write_srccorr): Compute file length from the string.
23583         (dst_file_info_struct): Remove flen field.
23584         (lookup_filename): Remove code that set flen field.
23585
23586 2011-04-21  Tristan Gingold  <gingold@adacore.com>
23587
23588         * config/ia64/ia64.c (ia64_start_function): Add a guard.
23589
23590 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
23591
23592         PR target/48708
23593         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
23594         vec_extract and vec_concat for non-SSE4_1 targets.
23595
23596 2011-04-21  Richard Guenther  <rguenther@suse.de>
23597
23598         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
23599         return statements.
23600
23601 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
23602
23603         * config/i386/cygming.h (union tree_node, TREE): Don't define or
23604         undefine.
23605         (FILE): Don't undefine.
23606
23607 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
23608
23609         * config/alpha/alpha.c (struct machine_function): Use rtx, not
23610         struct rtx_def *.
23611         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
23612         struct rtx_def *.
23613         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
23614         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
23615         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
23616         rtx_def *.
23617         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
23618         definitions where used.
23619         * config/microblaze/microblaze.h (struct microblaze_args): Use
23620         rtx, not struct rtx_def *.
23621         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
23622         rtx_def *.
23623         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
23624         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
23625         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
23626         not struct rtx_def *.
23627         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
23628         struct rtx_def *.
23629         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
23630         rtx_def *.
23631         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
23632
23633 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
23634
23635         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
23636         operand_equal_p to compare DR_BASE_ADDRESSes.
23637         (vect_check_interleaving): Likewise.
23638
23639 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
23640
23641         PR target/46329
23642         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
23643         for all Neon struct constants.
23644
23645 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
23646
23647         * target.def (legitimate_constant_p): New hook.
23648         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
23649         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
23650         * doc/tm.texi: Regenerate.
23651         * hooks.h (hook_bool_mode_rtx_true): Declare.
23652         * hooks.c (hook_bool_mode_rtx_true): Define.
23653         * system.h (LEGITIMATE_CONSTANT_P): Poison.
23654         * calls.c (precompute_register_parameters): Replace uses of
23655         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
23656         (emit_library_call_value_1): Likewise.
23657         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
23658         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
23659         * ira-costs.c (scan_one_insn): Likewise.
23660         * recog.c (general_operand, immediate_operand): Likewise.
23661         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
23662         * reload1.c (init_eliminable_invariants): Likewise.
23663
23664         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
23665         mode argument.
23666         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
23667         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
23668         argument.
23669         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23670         * config/alpha/predicates.md (input_operand): Update call to
23671         alpha_legitimate_constant_p.
23672
23673         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
23674         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
23675         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
23676         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23677         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
23678         (arm_legitimate_constant_p): New functions.
23679         (arm_cannot_force_const_mem): Make static.
23680
23681         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
23682
23683         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
23684         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
23685         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
23686         instead of bfin_legitimate_constant_p.
23687         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
23688         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23689
23690         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
23691
23692         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
23693
23694         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
23695         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
23696         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23697         (frv_legitimate_constant_p): Make static.  Add a mode argument.
23698
23699         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
23700         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
23701         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
23702
23703         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
23704         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
23705         * config/i386/i386.c (legitimate_constant_p): Rename to...
23706         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
23707         argument.
23708         (ix86_cannot_force_const_mem): Update accordingly.
23709         (ix86_legitimate_address_p): Likewise.
23710         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23711         * config/i386/i386.md: Update commentary.
23712
23713         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
23714         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
23715         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23716         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
23717
23718         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
23719
23720         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
23721         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
23722         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23723         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
23724
23725         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
23726         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
23727         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
23728
23729         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
23730         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23731         (m32r_legitimate_constant_p): New function.
23732
23733         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
23734         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
23735         LEGITIMATE_CONSTANT_P.
23736         (LEGITIMATE_CONSTANT_P): Delete.
23737         * config/m68k/m68k.c (m68k_expand_prologue): Call
23738         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
23739         (m68k_legitimate_constant_p): New function.
23740         * config/m68k/m68k.md: Update comments.
23741
23742         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
23743         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23744         (mcore_legitimate_constant_p): New function.
23745
23746         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
23747         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
23748         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
23749         Add a mode argument.
23750         (mep_legitimate_address): Update accordingly.
23751         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23752
23753         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
23754         Delete.
23755         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
23756         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
23757         static.  Check OP's mode for VOIDmode.
23758         (microblaze_legitimate_constant_p): New function.
23759         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23760
23761         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
23762         * config/mips/mips.c (mips_legitimate_constant_p): New function.
23763         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
23764         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23765         * config/mips/predicates.md: Update comments.
23766
23767         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
23768         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
23769         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23770         (mmix_legitimate_constant_p): Make static, return a bool, and take
23771         a mode argument.
23772         (mmix_print_operand_address): Update accordingly.
23773
23774         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
23775         Delete.
23776         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
23777         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
23778         static.  Add a mode argument.
23779         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23780
23781         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
23782
23783         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
23784         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23785         (pa_legitimate_constant_p): New function.
23786
23787         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
23788
23789         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
23790         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23791         (pdp11_legitimate_constant_p): New function.
23792
23793         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
23794         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23795         (rs6000_legitimate_constant_p): New function.
23796
23797         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
23798         (rx_legitimate_constant_p): ...this.
23799         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
23800         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
23801         (rx_legitimate_constant_p): ...this.
23802         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23803         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
23804
23805         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
23806         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
23807         * config/s390/s390.c (legitimate_constant_p): Rename to...
23808         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
23809         and add a mode argument.
23810         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23811
23812         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
23813
23814         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
23815         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23816         (sh_legitimate_constant_p): New function.
23817
23818         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
23819         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
23820         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23821         (legitimate_constant_p): Rename to...
23822         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
23823         argument.
23824         (constant_address_p): Update accordingly.
23825
23826         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
23827         argument and return a bool.
23828         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
23829         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23830         (spu_legitimate_constant_p): Add a mode argument and return a bool.
23831         (spu_rtx_costs): Update accordingly.
23832         * config/spu/predicates.md (vec_imm_operand): Likewise.
23833
23834         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
23835
23836         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
23837         * config/v850/v850.c (v850_legitimate_constant_p): New function.
23838         (TARGET_LEGITIMATE_CONSTANT_P): Define.
23839
23840         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
23841         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
23842         * config/vax/vax.c (legitimate_constant_p): Likewise.
23843
23844         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
23845         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23846         (xtensa_legitimate_constant_p): New function.
23847
23848 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
23849
23850         * target.def (cannot_force_const_mem): Add a mode argument.
23851         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
23852         * doc/tm.texi: Regenerate.
23853         * hooks.h (hook_bool_mode_rtx_false): Declare.
23854         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
23855         (hook_bool_mode_const_rtx_true): Likewise.
23856         (hook_bool_mode_rtx_false): New function.
23857         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
23858         to be non-VOID.  Update call to cannot_force_const_mem.
23859         (find_reloads): Update accordingly.
23860         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
23861         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
23862         argument.
23863         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
23864         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
23865         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
23866         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
23867         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
23868         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
23869         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
23870         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
23871         (m68k_cannot_force_const_mem): ...this new function.
23872         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
23873         argument.
23874         (mips_const_insns, mips_legitimize_const_move): Update calls.
23875         (mips_secondary_reload_class): Likewise.
23876         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
23877         (pa_cannot_force_const_mem): ...this new function.
23878         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
23879         (rs6000_cannot_force_const_mem): ...this new function.
23880         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
23881         argument.
23882         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
23883         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
23884         to...
23885         (xtensa_cannot_force_const_mem): ...this new function.
23886
23887 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
23888
23889         * config/mips/mips.c (mips16_build_function_stub): Call
23890         build_function_type_list instead of build_function_type.
23891         (mips16_build_call_stub): Likewise.
23892
23893 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
23894
23895         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
23896         instead of build_function_type.
23897
23898 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
23899
23900         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
23901         instead of build_function_type.
23902
23903 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
23904
23905         PR target/48678
23906         * config/i386/i386.md (insv): Change operand 0 constraint to
23907         "register_operand".  Change operand 1 and 2 constraint to
23908         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
23909         * config/i386/sse.md (sse4_1_pinsrb): Export.
23910         (sse2_pinsrw): Ditto.
23911         (sse4_1_pinsrd): Ditto.
23912         (sse4_1_pinsrq): Ditto.
23913         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
23914         * config/i386/i386.c (ix86_expand_pinsr): New.
23915
23916 2011-04-20  Easwaran Raman  <eraman@google.com>
23917
23918         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
23919         containing union type only with -fstrict-aliasing.
23920
23921 2011-04-20  Jim Meyering  <meyering@redhat.com>
23922
23923         Remove useless if-before-free tests.
23924         * calls.c (expand_call, save_area): Likewise.
23925         * cfgcleanup.c (try_forward_edges): Likewise.
23926         * collect2.c (collect_execute): Likewise.
23927         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
23928         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
23929         * coverage.c (coverage_checksum_string): Likewise.
23930         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
23931         * cselib.c (cselib_init): Likewise.
23932         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
23933         (df_set_clean_cfg): Likewise.
23934         * function.c (free_after_compilation): Likewise.
23935         * gcc.c (do_spec_1, main): Likewise.
23936         * gcov.c (create_file_names): Likewise.
23937         * gensupport.c (identify_predicable_attribute): Likewise.
23938         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
23939         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
23940         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
23941         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
23942         * ipa-pure-const.c (local_pure_const): Likewise.
23943         * ipa-reference.c (propagate): Likewise.
23944         * ira-costs.c (free_ira_costs): Likewise.
23945         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
23946         * matrix-reorg.c (mat_free): Likewise.
23947         * prefix.c (get_key_value): Likewise.
23948         * profile.c (compute_value_histograms): Likewise.
23949         * reload1.c (free_reg_equiv): Likewise.
23950         * sched-deps.c (free_deps): Likewise.
23951         * sel-sched-ir.c (fence_clear): Likewise.
23952         * sese.c (set_rename, if_region_set_false_region): Likewise.
23953         * tree-data-ref.c (free_rdg): Likewise.
23954         * tree-eh.c (lower_try_finally): Likewise.
23955         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
23956         * tree-ssa-live.c (delete_var_map): Likewise.
23957         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
23958         * tree-ssa-pre.c (phi_trans_add): Likewise.
23959
23960 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
23961
23962         PR tree-optimization/48611
23963         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
23964         beyond ERT_MUST_NOT_THROW region.
23965
23966 2011-04-20  Catherine Moore  <clm@codesourcery.com>
23967
23968         * config/mips/mips.opt (mfix-24k): New.
23969         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
23970         * config/mips/mips.md (length): Increase by 4 for stores if
23971         fixing 24K errata.
23972         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
23973         all noreorder if fixing 24K errata.
23974         * doc/invoke.texi: Document mfix-24k.
23975
23976 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
23977
23978         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
23979         quad-word modes, reduce to 9-bit index range when above 1016 limit.
23980
23981 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
23982
23983         * config/arm/arm.c (arm_gen_constant): Move movw support ....
23984         (const_ok_for_op): ... to here.
23985
23986 2011-04-20  Kai Tietz  <ktietz@redhat.com>
23987
23988         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
23989         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
23990
23991 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
23992
23993         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
23994
23995 2011-04-20  Richard Guenther  <rguenther@suse.de>
23996
23997         PR tree-optimization/47892
23998         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
23999         are if-convertible.
24000
24001 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
24002
24003         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
24004
24005 2011-04-20  Tristan Gingold  <gingold@adacore.com>
24006
24007         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
24008
24009 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
24010
24011         PR target/18145
24012
24013         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
24014         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
24015         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
24016         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
24017         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
24018
24019         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
24020         New prototype.
24021
24022         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
24023         (avr_asm_named_section, avr_asm_output_aligned_common,
24024         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
24025         New functions to update...
24026         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
24027         (avr_asm_init_sections): Overwrite section callbacks for
24028         data_section, bss_section.
24029         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
24030         from here to...
24031         (avr_file_end): ...here.
24032
24033 2011-04-20  Richard Guenther  <rguenther@suse.de>
24034
24035         PR middle-end/48695
24036         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
24037         objects and types here.  Adjust for their offset before comparing.
24038
24039 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
24040
24041         * tree-vect-stmts.c (vectorizable_store): Only chain one related
24042         statement per copy.
24043
24044 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
24045
24046         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
24047         (GIMPLE_H): Include $(INTERNAL_FN_H).
24048         (OBJS-common): Add internal-fn.o.
24049         (internal-fn.o): New rule.
24050         * internal-fn.def: New file.
24051         * internal-fn.h: Likewise.
24052         * internal-fn.c: Likewise.
24053         * gimple.h: Include internal-fn.h.
24054         (GF_CALL_INTERNAL): New gf_mask.
24055         (gimple_statement_call): Put fntype into a union with a new
24056         internal_fn field.
24057         (gimple_build_call_internal): Declare.
24058         (gimple_build_call_internal_vec): Likewise.
24059         (gimple_call_same_target_p): Likewise.
24060         (gimple_call_internal_p): New function.
24061         (gimple_call_internal_fn): Likewise.
24062         (gimple_call_fntype): Return null for internal calls.
24063         (gimple_call_set_fntype): Assert that the function is not internal.
24064         (gimple_call_set_fn): Likewise.
24065         (gimple_call_set_fndecl): Likewise.
24066         (gimple_call_set_internal_fn): New function.
24067         (gimple_call_addr_fndecl): Handle null functions.
24068         (gimple_call_return_type): Likewise null types.
24069         * gimple.c (gimple_build_call_internal_1): New function.
24070         (gimple_build_call_internal): Likewise.
24071         (gimple_build_call_internal_vec): Likewise.
24072         (gimple_call_same_target_p): Likewise.
24073         (gimple_call_flags): Handle calls to internal functions.
24074         (gimple_call_fnspec): New function.
24075         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
24076         (gimple_has_side_effects): Handle null functions.
24077         (gimple_rhs_has_side_effects): Likewise.
24078         (gimple_call_copy_skip_args): Handle calls to internal functions.
24079         * cfgexpand.c (expand_call_stmt): Likewise.
24080         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
24081         * gimple-fold.c (gimple_fold_call): Handle null functions.
24082         (gimple_fold_stmt_to_constant_1): Don't fold
24083         calls to internal functions.
24084         * gimple-low.c (gimple_check_call_args): Handle calls to internal
24085         functions.
24086         * gimple-pretty-print.c (dump_gimple_call): Likewise.
24087         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
24088         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
24089         (do_warn_unused_result): Likewise.
24090         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
24091         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
24092         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
24093         the target of a call.
24094         (initialize_hash_element): Update accordingly.
24095         (hashable_expr_equal_p): Use gimple_call_same_target_p.
24096         (iterative_hash_hashable_expr): Handle calls to internal functions.
24097         (print_expr_hash_elt): Likewise.
24098         * tree-ssa-pre.c (can_value_number_call): Likewise.
24099         (eliminate): Handle null functions.
24100         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
24101         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
24102         (find_func_aliases): Likewise.
24103         * value-prof.c (gimple_ic_transform): Likewise.
24104         (gimple_indirect_call_to_profile): Likewise.
24105         * lto-streamer-in.c (input_gimple_stmt): Likewise.
24106         * lto-streamer-out.c (output_gimple_stmt): Likewise.
24107
24108 2011-04-19  Jan Hubicka  <jh@suse.cz>
24109
24110         * ipa-inline-transform.c (save_inline_function_body): Add comments.
24111         * ipa-inline.c (inline_small_functions): Compute summaries first,
24112         populate heap later.
24113
24114 2011-04-19  Jan Hubicka  <jh@suse.cz>
24115
24116         * cgraph.h (save_inline_function_body): Remove.
24117         * ipa-inline-transform.c: New file, broke out of...
24118         * ipa-inline.c: ... this one; Update toplevel comment.
24119         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
24120         make global.
24121         (update_noncloned_frequencies): Move to ipa-inline-transform.c
24122         (cgraph_mark_inline_edge): Rename to inline_call; move to
24123         ipa-inline-transform.c.
24124         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
24125         move to ipa-inline-transform.c
24126         (recursive_inlining, inline_small_functions, flatten_function,
24127         ipa_inline, inline_always_inline_functions,
24128         early_inline_small_functions): Update.
24129         (inline_transform): Move to ipa-inline-transform.c.
24130         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
24131         Declare.
24132         * Makefile.in (ipa-inline-transform.o): New file.
24133         * cgraphunit.c (save_inline_function_body): Move to
24134         ipa-inline-transform.c
24135
24136 2011-04-19  DJ Delorie  <dj@redhat.com>
24137
24138         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
24139         registers if we already know there aren't any.
24140         (m32c_emit_epilogue): Don't emit a barrier here.
24141         (m32c_emit_eh_epilogue): Likewise.
24142         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
24143         operands at expand time.
24144         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
24145         int" wchar type.
24146         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
24147         duplicates.  Provide aliases instead.
24148         * config/m32c/prologue.md (eh_return): Emit a barrier here.
24149         (eh_epilogue): Add a "(return)" here as a hint to other parts of
24150         the compiler.
24151
24152 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
24153
24154         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
24155         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
24156         (general_or_i64_p, sparc_register_move_cost): New function.
24157
24158 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24159
24160         * doc/install.texi (Configuration, --enable-threads): Remove mach.
24161         Add lynx, mipssde.  Sort table.
24162
24163 2011-04-19  Xinliang David Li  <davidxl@google.com>
24164
24165         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
24166         not negative.
24167
24168 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
24169
24170         PR target/48678
24171         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
24172         is a SUBREG with non-MODE_INT mode inside of it.
24173
24174 2011-04-19  Martin Jambor  <mjambor@suse.cz>
24175
24176         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
24177         also according to actual contants.
24178         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
24179         (gimple_fold_call): Use it.
24180         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
24181
24182 2011-04-19  Martin Jambor  <mjambor@suse.cz>
24183
24184         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
24185         non-pointer assignments.
24186
24187 2011-04-19  Martin Jambor  <mjambor@suse.cz>
24188
24189         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
24190         account anc_offset and otr_type from the indirect edge info.
24191         * ipa-prop.c (get_ancestor_addr_info): New function.
24192         (compute_complex_ancestor_jump_func): Assignment analysis moved to
24193         get_ancestor_addr_info, call it.
24194         (ipa_note_param_call): Do not initialize information about polymorphic
24195         calls, return the indirect call graph edge.  Remove the last
24196         parameter, adjust all callers.
24197         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
24198         parameters.  Initialize polymorphic information in the indirect edge.
24199
24200 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
24201
24202         PR lto/48148
24203         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
24204         the types if they have different enumeration identifiers.
24205
24206 2011-04-19  Jan Hubicka  <jh@suse.cz>
24207
24208         * cgraph.h (cgraph_optimize_for_size_p): Declare.
24209         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
24210         * predict.c (cgraph_optimize_for_size_p): Break out from ...
24211         (optimize_function_for_size_p) ... here.
24212
24213 2011-04-19  Richard Guenther  <rguenther@suse.de>
24214
24215         PR lto/48207
24216         * tree.c (free_lang_data): Do not reset the decl-assembler-name
24217         langhook.
24218
24219 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
24220
24221         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
24222         if DECL_NO_INLINE_WARNING_P is set on the function.
24223
24224 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
24225
24226         PR fortran/47976
24227         * reload1.c (inc_for_reload): Return void. All callers changed.
24228         (emit_input_reload_insns): Don't try to delete previous output
24229         reloads to a register, or record spill_reg_store for autoincs.
24230
24231 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
24232
24233         * gengtype.h: Updated copyright year.
24234         (struct input_file_st): Add inpisplugin field.
24235         (type_fileloc): New function.
24236         * gengtype.c
24237         (write_typed_struct_alloc_def): Add gcc_assert.
24238         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
24239         (write_typed_alloc_defns): Don't output for plugin files.
24240         (input_file_by_name): Clear inpisplugin field.
24241         (main): Set inpisplugin field for plugin files.
24242
24243 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
24244
24245         * gengtype-state.c (string_eq): New.
24246         (read_state): Use string_eq instead of strcmp when creating the
24247         state_ident_tab.
24248
24249 2011-04-19  Wei Guozhi  <carrot@google.com>
24250
24251         PR target/47855
24252         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
24253         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
24254         linkage.
24255         * config/arm/constraints.md (Uu): New constraint.
24256         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
24257
24258 2011-04-19  Tristan Gingold  <gingold@adacore.com>
24259
24260         * config.gcc (-*-*-*vms): Added.
24261         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
24262         definitions moved.
24263         * config/vms/vms-ld.c: New file.
24264         * config/vms/vms-ar.c: New file.
24265         * config/vms/t-vmsnative: New file.
24266
24267 2011-04-18  Xinliang David Li  <davidxl@google.com>
24268
24269         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
24270
24271 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
24272
24273         PR middle-end/48661
24274         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
24275         if TREE_TYPE (v) is non-NULL.
24276
24277         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
24278         gimple_get_virt_mehtod_for_binfo.
24279         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
24280         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
24281         callers.
24282         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24283
24284 2011-04-18  Michael Matz  <matz@suse.de>
24285             Steve Ellcey  <sje@cup.hp.com>
24286
24287         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
24288         use its mode as source mode if it isn't VOIDmode.
24289
24290 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
24291
24292         * doc/passes.texi: Fill crossref nodes.
24293
24294 2011-04-18  Jim Meyering  <meyering@redhat.com>
24295
24296         Fix doubled-word typos in comments and strings
24297         * config/alpha/vms-unwind.h: s/for for/for/
24298         * config/arm/unwind-arm.h: Likewise.
24299         * config/microblaze/microblaze.c: Likewise.
24300         * config/sh/constraints.md: s/in in/in/
24301         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
24302
24303 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
24304
24305         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
24306         (AVX_FLOAT_MODE_P): Ditto.
24307         (AVX128_VEC_FLOAT_MODE_P): Ditto.
24308         (AVX256_VEC_FLOAT_MODE_P): Ditto.
24309         (AVX_VEC_FLOAT_MODE_P): Ditto.
24310         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
24311         (UNSPEC_MASKSTORE): Ditto.
24312         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
24313         Merge from <sse>_movmsk<ssemodesuffix> and
24314         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
24315         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
24316         iterator.
24317         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
24318         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
24319         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
24320
24321 2011-04-18  Jan Hubicka  <jh@suse.cz>
24322
24323         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
24324
24325         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
24326         (want_inline_function_called_once_p): Break out the logic from
24327         ipa_inline.
24328         (edge_badness): Ensure that profile is not misupdated.
24329         (lookup_recursive_calls): Prioritize by call frequencies.
24330         (inline_small_functions): Move program size estimates here;
24331         actually process whole queue even when unit growth has been
24332         met. (to properly compute inline_failed reasons and for the
24333         case unit size decrease.) Revisit comments on recursive inlining.
24334         (ipa_inline): Remove unit summary code; first inline hot calls
24335         of functions called once, cold calls next.
24336         (order, nnodes): Remove unused variables.
24337         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
24338         (GTFILES): Remove ipa-inline.c
24339         * sel-sched.c (fill_insns): Silence uninitialized var warning.
24340
24341 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
24342
24343         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
24344
24345 2011-04-18  Jie Zhang  <jie@codesourcery.com>
24346             Richard Earnshaw  <rearnsha@arm.com>
24347
24348         * arm.c (neon_builtin_type_bits): Remove.
24349         (typedef enum neon_builtin_mode): New.
24350         (T_MAX): Don't define.
24351         (typedef enum neon_builtin_datum): Remove bits, codes[],
24352         num_vars and base_fcode.  Add mode, code and fcode.
24353         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
24354         VAR10): Change accordingly.
24355         (neon_builtin_data[]): Change accordingly
24356         (arm_init_neon_builtins): Change accordingly.
24357         (neon_builtin_compare): Remove.
24358         (locate_neon_builtin_icode): Remove.
24359         (arm_expand_neon_builtin): Change accordingly.
24360
24361         * arm.h (enum arm_builtins): Move to ...
24362         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
24363
24364         * arm.c (arm_builtin_decl): Declare.
24365         (TARGET_BUILTIN_DECL): Define.
24366         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
24367         (arm_builtin_decls[]): New.
24368         (arm_init_neon_builtins): Store builtin declarations in
24369         arm_builtin_decls[].
24370         (arm_init_tls_builtins): Likewise.
24371         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
24372         (arm_builtin_decl): New.
24373
24374 2011-04-18  Richard Guenther  <rguenther@suse.de>
24375
24376         * tree.c (upper_bound_in_type): Build properly canonicalized
24377         INTEGER_CSTs.
24378         (lower_bound_in_type): Likewise.
24379
24380 2011-04-18  Richard Guenther  <rguenther@suse.de>
24381
24382         * gimple.h (gimple_call_addr_fndecl): New function.
24383         (gimple_call_fndecl): Use it.
24384         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
24385         for direct calls.
24386         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
24387         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
24388
24389 2011-04-18  Richard Guenther  <rguenther@suse.de>
24390
24391         PR middle-end/48650
24392         * tree.c (build_string): STRING_CST is now derived from tree_typed.
24393
24394 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
24395
24396         PR lto/48492
24397         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
24398         DECL_IN_CONSTANT_POOL without RTL.
24399
24400 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
24401             Ira Rosen  <ira.rosen@linaro.org>
24402
24403         PR target/48252
24404         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
24405         to match neon_vzip/vuzp/vtrn_internal.
24406         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
24407         outputs explicitly dependent on both inputs.
24408         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
24409
24410 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
24411
24412         PR tree-optimization/48616
24413         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
24414         whether the shift is by scalar or vector based on whether all SLP
24415         scalar stmts have the same rhs.
24416
24417 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
24418
24419         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
24420         memory operands.
24421
24422 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
24423
24424         PR target/43700
24425         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
24426         registers.
24427
24428 2011-04-17  Jan Hubicka  <jh@suse.cz>
24429
24430         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
24431         * cgrpahunit.c (cgraph_finalize_function): Do not set
24432         finalized_by_frontend.
24433         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
24434         finalized_by_frontend.
24435
24436 2011-04-17  Jan Hubicka  <jh@suse.cz>
24437
24438         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
24439         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
24440         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
24441         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
24442         method.
24443         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
24444         gimple-fold.c
24445         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
24446
24447 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
24448
24449         PR lto/48538
24450         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
24451         is non-null before accessing it.
24452         (input_cgraph): Remove trailing spaces.
24453
24454 2011-04-17  Revital Eres  <revital.eres@linaro.org>
24455
24456         * params.def (sms-min-sc): New param flag.
24457         * modulo-sched.c (sms_schedule): Use it.
24458         * doc/invoke.texi (sms-min-sc): Document it.
24459
24460 2011-04-17  Jan Hubicka  <jh@suse.cz>
24461
24462         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
24463         present, also set gimple_call_set_cannot_inline.
24464         * ipa-inline.c: Update toplevel comment.
24465         (MAX_TIME): Remove.
24466         (cgraph_clone_inlined_nodes): Fix linebreaks.
24467         (cgraph_check_inline_limits): Restructure to ...
24468         (caller_growth_limits): ... this one; be more tolerant
24469         on growth in nested inline chains; add explanatory comment;
24470         fix stack accounting thinko introduced by previous patch.
24471         (cgraph_default_inline_p): Remove.
24472         (report_inline_failed_reason): New function.
24473         (can_inline_edge_p): New function.
24474         (can_early_inline_edge_p): New function.
24475         (leaf_node_p): Move upwards in file.
24476         (want_early_inline_function_p): New function.
24477         (want_inline_small_function_p): New function.
24478         (want_inline_self_recursive_call_p): New function.
24479         (cgraph_edge_badness): Rename to ...
24480         (edge_badness) ... this one; fix linebreaks.
24481         (update_edge_key): Update call of edge_baddness; add
24482         detailed dump about queue updates.
24483         (update_caller_keys): Use can_inline_edge_p and
24484         want_inline_small_function_p.
24485         (cgraph_decide_recursive_inlining): Rename to...
24486         (recursive_inlining): Use can_inline_edge_p and
24487         want_inline_self_recursive_call_p; simplify and remove no longer
24488         valid FIXME.
24489         (cgraph_set_inline_failed): Remove.
24490         (add_new_edges_to_heap): Use can_inline_edge_p and
24491         want_inline_small_function_p.
24492         (cgraph_decide_inlining_of_small_functions): Rename to ...
24493         (inline_small_functions): ... this one; cleanup; use
24494         can/want predicates; cleanup debug ouput; work edges till fibheap
24495         is exhausted and do not stop once unit growth is reached; remove
24496         later loop processing remaining edges.
24497         (cgraph_flatten): Rename to ...
24498         (flatten_function): ... this one; use can_inline_edge_p
24499         and can_early_inline_edge_p predicates.
24500         (cgraph_decide_inlining): Rename to ...
24501         (ipa_inline): ... this one; remove unreachable nodes before
24502         inlining functions called once; simplify the pass.
24503         (cgraph_perform_always_inlining): Rename to ...
24504         (inline_always_inline_functions): ... this one; use
24505         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
24506         (cgraph_decide_inlining_incrementally): Rename to ...
24507         (early_inline_small_functions): ... this one; simplify
24508         using new predicates; cleanup; make dumps prettier.
24509         (cgraph_early_inlining): Rename to ...
24510         (early_inliner): newer inline regular functions into always-inlines;
24511         fix updating of call stmt summaries.
24512         (pass_early_inline): Update for new names.
24513         (inline_transform): Fix formating.
24514         (gate_cgraph_decide_inlining): Rename to ...
24515         (pass_ipa_inline): ... this one.
24516         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
24517         * ipa-inline-analysis.c (dump_inline_summary): Update.
24518         (compute_inline_parameters): Do not compute disregard_inline_limits;
24519         look for mismatching arguments.
24520         (estimate_growth): Fix handlig of non-trivial self recursion.
24521         (inline_read_summary): Do not read info->disregard_inline_limits.
24522         (inline_write_summary): Do not write info->disregard_inline_limits.
24523         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
24524         and move all checks into can_inline_edge_p predicate; re-enable code
24525         comparing optimization levels.
24526         (expand_call_inline): Do not test inline_forbidden_into_p.
24527         * Makefile.in (ipa-inline.o): Update arguments.
24528
24529 2011-04-17  Revital Eres  <revital.eres@linaro.org>
24530
24531         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
24532
24533 2011-04-17  Revital Eres  <revital.eres@linaro.org>
24534
24535         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
24536
24537 2011-04-17  Michael Matz  <matz@suse.de>
24538
24539         PR tree-optimization/48622
24540         PR lto/48645
24541         * ipa-inline-analysis.c (inline_read_summary): Read size/time
24542         in same order as they're written.
24543
24544 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24545
24546         * config/pa/predicates.md: Reorganize and simplify predicates.
24547         Eliminate duplicate code checks.
24548         (arith_operand): Rename to arith14_operand
24549         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
24550         * config/pa/pa.md: Use renamed operands.
24551         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
24552         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
24553         arith11_operand, adddi3_operand, indexed_memory_operand,
24554         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
24555         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
24556         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
24557         move_dest_operand, move_src_operand, prefetch_cc_operand,
24558         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
24559         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
24560         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
24561         div_operand, int5_operand, movb_comparison_operator,
24562         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
24563         arith_double_operand, ireg_operand, lhs_lshift_operand,
24564         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
24565         integer_store_memory_operand): Likewise.
24566         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
24567         (integer_store_memory_operand, read_only_operand,
24568         function_label_operand, borx_reg_operand,
24569         non_hard_reg_operand): Likewise.
24570         (eq_neq_comparison_operator): Delete unused operator.
24571         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
24572         function_label_operand.
24573         (emit_move_sequence): Likewise.
24574
24575 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
24576
24577         * config/i386/sse.md (sseunpackmode): New mode attribute.
24578         (ssepackmode): Ditto.
24579         (vec_pack_trunc_<mode>): Macroize expander from
24580         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
24581         (vec_unpacks_lo_<mode>): Macroize expander from
24582         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
24583         (vec_unpacks_hi_<mode>): Macroize expander from
24584         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
24585         (vec_unpacku_lo_<mode>): Macroize expander from
24586         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
24587         (vec_unpacku_hi_<mode>): Macroize expander from
24588         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
24589         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
24590         ix86_expand_sse4_unpack.
24591         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
24592
24593 2011-04-16  Jan Hubicka  <jh@suse.cz>
24594
24595         * cgraphbuild.c: Include ipa-inline.h.
24596         (reset_inline_failed): Use initialize_inline_failed.
24597         * cgraph.c: Include ipa-inline.h.
24598         (cgraph_create_node_1): Do not initialize estimated_growth.
24599         (initialize_inline_failed): More to ipa-inline-analysis.c
24600         (dump_cgraph_node): Do not dump inline flags.
24601         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
24602         and disregard_inline_limits flags.
24603         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
24604         time, size, estimated_growth.
24605         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
24606         Update.
24607         * cgraphunit.c (cgraph_decide_is_function_needed): Use
24608         DECL_DISREGARD_INLINE_LIMITS.
24609         (cgraph_analyze_function): Do not initialize
24610         node->local.disregard_inline_limits.
24611         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
24612         inlinable, versionable and disregard_inline_limits.
24613         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
24614         cgraph_check_inline_limits, cgraph_default_inline_p,
24615         cgraph_edge_badness, update_caller_keys, update_callee_keys,
24616         add_new_edges_to_heap): Update.
24617         (cgraph_decide_inlining_of_small_function): Update; set
24618         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
24619         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
24620         cgraph_decide_inlining_incrementally): Update.
24621         * ipa-inline.h (inline_summary): Add inlinable, versionable,
24622         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
24623         time, size and estimated_growth parameters.
24624         (estimate_edge_growth): Update.
24625         (initialize_inline_failed): Declare.
24626         * ipa-split.c: Include ipa-inline.h
24627         (execute_split_functions): Update.
24628         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
24629         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
24630         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
24631         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
24632         estimated_growth to INT_MIN.
24633         (inline_node_duplication_hook): Likewise.
24634         (dump_inline_summary): Dump new fields.
24635         (compute_inline_parameters): Update.
24636         (estimate_edge_time, estimate_time_after_inlining,
24637         estimate_size_after_inlining, estimate_growth, inline_read_summary,
24638         inline_write_summary):
24639         (initialize_inline_failed): Move here from cgraph.c.
24640         * tree-sra.c: Include ipa-inline.h.
24641         (ipa_sra_preliminary_function_checks): Update.
24642         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
24643         ipa-inline.h.
24644
24645 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
24646
24647         * config/i386/sse.md (V16): New mode iterator.
24648         (VI1, VI8): Ditto.
24649         (AVXMODEQI, AVXMODEDI): Remove.
24650         (sse2, sse3): New mode attribute.
24651         (mov<mode>): Use V16 mode iterator.
24652         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
24653         (push<mode>1): Use V16 mode iterator.
24654         (movmisalign<mode>): Ditto.
24655         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
24656         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
24657         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
24658         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
24659         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
24660         avx_movdqu<avxmodesuffix>.
24661         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
24662         *avx_movdqu<avxmodesuffix>.
24663         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
24664         avx_lddqu<avxmodesuffix>.
24665         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
24666         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
24667         avx_movnt<AVXMODEDI:mode>.
24668         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
24669         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
24670
24671 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
24672
24673         PR target/48629
24674         * haifa-sched.c (prune_ready_list, schedule_block): Use
24675         sched_pressure_p rather than flag_sched_pressure.
24676
24677 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
24678
24679         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
24680         cgraph_get_node instead of cgraph_get_create_node.
24681
24682 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
24683
24684         * cfgexpand.c (expand_debug_expr): Use
24685         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
24686
24687 2011-04-15  Michael Matz  <matz@suse.de>
24688
24689         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
24690         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
24691         * function.c (gimplify_parameters): Ditto.
24692         * gimplify.c (gimplify_vla_decl): Ditto.
24693
24694         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
24695         (gimple_call_set_alloca_for_var): New inline function.
24696         (gimple_call_alloca_for_var_p): Ditto.
24697         * gimple.c (gimple_build_call_from_tree): Remember
24698         CALL_ALLOCA_FOR_VAR_P state.
24699         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
24700
24701         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
24702         calls if they were for VLA objects.
24703
24704 2011-04-15  Martin Jambor  <mjambor@suse.cz>
24705
24706         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
24707         of ADR_EXPRs.
24708
24709 2011-04-15  Martin Jambor  <mjambor@suse.cz>
24710
24711         PR middle-end/48601
24712         * tree-emutls.c (lower_emutls_function_body): Call
24713         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
24714         result is non-NULL.
24715
24716 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
24717
24718         * c-decl.c (detect_field_duplicates): Call
24719         objc_detect_field_duplicates instead of objc_get_interface_ivars.
24720
24721 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
24722
24723         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
24724         * gimple.c (gimple_asm_clobbers_memory_p): Define.
24725         * ipa-pure-const.c (check_stmt): Call it.
24726         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
24727
24728 2011-04-15  Richard Guenther  <rguenther@suse.de>
24729
24730         PR tree-optimization/48290
24731         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
24732         Properly decide inhibiting propagation based on the valueized
24733         operand.  Do loop-closed SSA form preserving here ...
24734         (init_copy_prop): ... not here.
24735
24736 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
24737
24738         PR target/48612
24739         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
24740         (*ieee_smax<mode>3): Likewise.
24741
24742 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24743
24744         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
24745         Replace match_operand with match_dup for the third operand in
24746         these expanders.
24747
24748 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
24749
24750         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
24751         to track processing of conditionals.  Update all callers.
24752         (try_combine, simplify_if_then_else): Update.
24753
24754 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
24755
24756         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
24757         -fsched-pressure.
24758
24759 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
24760
24761         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
24762         instead of match_operand for operand 3.
24763
24764 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
24765
24766         * recog.h (insn_operand_data): Add an "allows_mem" field.
24767         * genoutput.c (output_operand_data): Initialize it.
24768         * optabs.c (maybe_legitimize_operand_same_code): New function.
24769         (maybe_legitimize_operand): Use it when matching the original
24770         op->value.
24771
24772 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
24773
24774         * gimplify.c: Fix issues in comments throughout.
24775         (voidify_wrapper_expr): Fix long line.
24776         (build_stack_save_restore): Likewise.
24777         (gimplify_loop_expr): Likewise.
24778         (gimplify_compound_lval): Likewise.
24779         (gimplify_init_ctor_eval): Likewise.
24780         (gimplify_modify_expr_rhs): Likewise.
24781         (omp_notice_threadprivate_variable): Likewise.
24782
24783 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
24784
24785         * cfgexpand.c (expand_call_stmt): Convert the function type to the
24786         original one if this is not a builtin function.
24787
24788 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
24789
24790         PR target/48605
24791         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
24792         offset it as needed based on top 2 bits in operands[3], change
24793         MEM mode to SFmode and mask those 2 bits away from operands[3].
24794
24795 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
24796
24797         * c-parser.c (c_parser_objc_protocol_definition): Updated for
24798         change from objc_declare_protocols() to objc_declare_protocol().
24799
24800 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
24801
24802         * config/i386/sse.md (sse4_1): New mode attribute.
24803         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
24804         avx_blend<ssemodesuffix><avxmodesuffix> and
24805         sse4_1_blend<ssemodesuffix> using VF mode iterator.
24806         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
24807         avx_blendv<ssemodesuffix><avxmodesuffix> and
24808         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
24809         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
24810         avx_dp<ssemodesuffix><avxmodesuffix> and
24811         sse4_1_dp<ssemodesuffix> using VF mode iterator.
24812         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
24813         (sse4_1_packusdw): Merge with *avx_packusdw.
24814         (sse4_1_pblendvb): Merge with *avx_pblendvb.
24815         (sse4_1_pblendw): Merge with *avx_pblendw.
24816         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
24817         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
24818         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
24819         VF mode iterator.
24820         (sse4_1_round<ssescalarmodesuffix>): Merge with
24821         *avx_round<ssescalarmodesuffix>.
24822         (aesenc): Merge with *avx_aesenc.
24823         (aesenclast): Merge with *avx_aesenclast.
24824         (aesdec): Merge with *avx_aesdec.
24825         (aesdeclast): Merge with *avx_aesdeclast.
24826         (pclmulqdq): Merge with *pclmulqdq.
24827         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
24828         New predicate.
24829         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
24830
24831 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
24832
24833         PR middle-end/48608
24834         * cfgexpand.c (get_decl_align_unit): Renamed to ...
24835         (align_local_variable): This.  Update DECL_ALIGN.
24836         (add_stack_var): Updated.
24837         (expand_one_stack_var): Likewise.
24838
24839 2011-04-14  Richard Guenther  <rguenther@suse.de>
24840
24841         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
24842         Remove.
24843         (dse_initialize_block_local_data, dse_leave_block,
24844         record_voperand_set, get_stmt_uid): Likewise.
24845         (dse_possible_dead_store_p): Allow any kind of killing stmt.
24846         (dse_optimize_stmt): Remove voperand set handling code.
24847         Simplify and improve to handle any kind of killing stmt.
24848         (dse_record_phi): Remove.
24849         (dse_enter_block): Simplify.
24850         (tree_ssa_dse): Likewise.
24851         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
24852
24853 2011-04-14  Jan Hubicka  <jh@suse.cz>
24854
24855         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
24856         * cgraph.h (struct inline_summary): Move to ipa-inline.h
24857         (cgraph_local_info): Remove inline_summary.
24858         * ipa-cp.c: Include ipa-inline.h.
24859         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
24860         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
24861         accesor.
24862         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
24863         (input_overwrite_node): Do not set inline summary.
24864         (input_node): Do not stream inline summary.
24865         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
24866         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
24867         growth; we do not have inline parameters computed for that anyway.
24868         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
24869         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
24870         (inline_summary_t): New type and VECtor.
24871         (debug_inline_summary, dump_inline_summaries): Declare.
24872         (inline_summary): Use VOCtor.
24873         (estimate_edge_growth): Kill hack computing call stmt size directly.
24874         * lto-section-in.c (lto_section_name): Add inline section.
24875         * ipa-inline-analysis.c: Include lto-streamer.h
24876         (node_removal_hook_holder, node_duplication_hook_holder): New holders
24877         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
24878         (inline_summary_vec): Define.
24879         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
24880         dump_inline_summaries): New functions.
24881         (estimate_function_body_sizes): Properly compute size/time of outgoing
24882         calls.
24883         (compute_inline_parameters): Alloc inline_summary; do not compute
24884         size/time of incomming calls.
24885         (estimate_edge_time): Avoid missing time summary hack.
24886         (inline_read_summary): Read inline summary info.
24887         (inline_write_summary): Write inline summary info.
24888         (inline_free_summary): Free all hooks and inline summary vector.
24889         * lto-streamer.h: Add LTO_section_inline_summary section.
24890         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
24891         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
24892
24893 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
24894
24895         * tree-vectorizer.h (vect_strided_store_supported): Add a
24896         HOST_WIDE_INT argument.
24897         (vect_strided_load_supported): Likewise.
24898         (vect_permute_store_chain): Return void.
24899         (vect_transform_strided_load): Likewise.
24900         (vect_permute_load_chain): Delete.
24901         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
24902         count argument.  Check that the count is a power of two.
24903         (vect_strided_load_supported): Likewise.
24904         (vect_permute_store_chain): Return void.  Update after above changes.
24905         Assert that the access is supported.
24906         (vect_permute_load_chain): Likewise.
24907         (vect_transform_strided_load): Return void.
24908         * tree-vect-stmts.c (vectorizable_store): Update calls after
24909         above interface changes.
24910         (vectorizable_load): Likewise.
24911         (vect_analyze_stmt): Don't check for strided powers of two here.
24912
24913 2011-04-14  Richard Guenther  <rguenther@suse.de>
24914
24915         PR tree-optimization/48590
24916         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24917         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
24918         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
24919         BUILT_IN_STACK_SAVE.
24920         * tree-ssa-dce.c (propagate_necessity): Handle
24921         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
24922
24923 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
24924
24925         * c-parser.c (c_parser_objc_class_declaration): Updated call to
24926         objc_declare_class.
24927
24928 2011-04-14  Richard Guenther  <rguenther@suse.de>
24929
24930         * tree.h (get_object_alignment_1): Declare.
24931         * builtins.c (get_object_alignment_1): Split out worker from ...
24932         (get_object_alignment): ... here.
24933         * fold-const.c (get_pointer_modulus_and_residue): Use
24934         get_object_alignment_1.
24935
24936 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
24937
24938         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
24939         type parameter.
24940         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
24941         parameter.  Generalise code to handle arrays as well as vectors.
24942         (vect_setup_realignment): Update accordingly.
24943         * tree-vect-stmts.c (vectorizable_store): Likewise.
24944         (vectorizable_load): Likewise.
24945
24946 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
24947
24948         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
24949         within the per-copy loop.
24950
24951 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
24952
24953         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
24954         in the dump file.
24955
24956 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
24957
24958         * doc/options.texi (Negative): Explicitly mention that the
24959         Negative chain must be circular.
24960
24961 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
24962
24963         * function.h (block_chainon): Declare.
24964         * function.c (block_chainon): Define.
24965
24966 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
24967             Eric Weddington  <eric.weddington@atmel.com>
24968             Georg-Johann Lay  <avr@gjlay.de>
24969
24970         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
24971         New Includes
24972         (avr_init_builtins, avr_expand_builtin,
24973         avr_expand_delay_cycles, avr_expand_unop_builtin,
24974         avr_expand_binop_builtin ): New functions.
24975         (avr_builtin_id): New enum
24976         (struct avr_builtin_description): New struct
24977         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
24978         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
24979
24980         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
24981         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
24982         UNSPECV_DELAY_CYCLES): new enumeration values
24983         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
24984         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
24985         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
24986         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
24987         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
24988         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
24989         "fmulsu"): New insns
24990
24991         * config/avr/avr-c.c: fix line endings
24992         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
24993         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
24994         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
24995         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
24996         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
24997
24998         * doc/extend.texi (AVR Built-in Functions): New node
24999         (Target Builtins): Add documentation of AVR
25000         built-in functions.
25001
25002 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
25003
25004         PR target/44643
25005         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
25006         alone. Error if non-const data has attribute progmem.
25007
25008 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
25009
25010         * tree.h (struct tree_constructor): Include tree_typed instead of
25011         tree_common.
25012         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
25013         TS_TYPED instead of TS_COMMON.
25014
25015 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
25016
25017         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
25018         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
25019         (sse2_psadbw): Merge with *avx_psadbw.
25020         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
25021         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
25022         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
25023         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
25024         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
25025         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
25026         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
25027         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
25028         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
25029         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
25030         (ssse3_palignrti): Merge with *avx_palignrti.
25031
25032 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
25033
25034         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
25035         * tree-ssanames.c (fini_ssanames): VEC_free it.
25036         (make_ssa_name_fn): Update for VECness of free_ssanames.
25037         (release_ssa_name, release_dead_ssa_names): Likewise.
25038         * tree.h (struct tree_ssa_name): Include tree_typed instead of
25039         tree_common.
25040         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
25041         TS_TYPED instead of TS_COMMON.
25042
25043 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
25044
25045         * postreload-gcse.c (gcse_after_reload_main): Add calls to
25046         statistics_counter_event.
25047         * tree-ssa-copyrename.c (stats): Define.
25048         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
25049         statistics_counter_event.
25050         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
25051         (bswap_stats, widen_mul_stats): Define.
25052         (insert_reciprocals): Increment rdivs_inserted.
25053         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
25054         rfuncs_inserted.  Add calls to statistics_counter_event.
25055         (execute_cse_sincos_1): Increment inserted.
25056         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
25057         statistics_counter_event.
25058         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
25059         of bswap_stats.  Add calls to statistics_counter_event.
25060         (convert_mult_to_widen): Increment widen_mults_inserted.
25061         (convert_plusminus_to_widen): Increment maccs_inserted.
25062         (convert_mult_to_fma): Increment fmas_inserted.
25063         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
25064         calls to statistics_counter_event.
25065
25066 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
25067
25068         PR rtl-optimization/48455
25069         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
25070         `temp_costs->mem_cost'.
25071
25072 2011-04-13  Jan Hubicka  <jh@suse.cz>
25073
25074         * ipa-inline.h: New file.
25075         * ipa-inline-analysis.c: New file. Broken out of ...
25076         * ipa-inline.c: ... this file; update toplevel comment;
25077         include ipa-inline.h
25078         (inline_summary): Move to ipa-inline.h
25079         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
25080         ipa-inline-analysis.c.
25081         (cgraph_estimate_time_after_inlining): Rename to
25082         estiamte_time_after_inlining; move to ipa-inline-analysis.c
25083         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
25084         to estimate_edge_growth.
25085         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
25086         rename to estimate_size_after_inlining.
25087         (cgraph_mark_inline_edge): Update for new naming convention.
25088         (cgraph_check_inline_limits): Likewise.
25089         (cgraph_edge_badness): Likewise.
25090         (cgraph_decide_recursive_inlining): Likewise.
25091         (cgraph_decide_inlining_of_small_functions): Likewise.
25092         (cgraph_decide_inlining_incrementally): Likewise.
25093         (cgraph_estimate_growth): Rename to estimate_growth; move to
25094         ipa-inline-analysis.c.
25095         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
25096         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
25097         (compute_inline_parameters): Likewise.
25098         (compute_inline_parameters_for_current): Likewise.
25099         (pass_inline_parameters): Likewise.
25100         (inline_indirect_intraprocedural_analysis): Likewise.
25101         (analyze_function): Rename to inline_analyze_function; likewise.
25102         (add_new_function): Move to ipa-inline-analysis.c.
25103         (inline_generate_summary): Likewise.
25104         (inline_read_summary): Likewise.
25105         (inline_write_summary): Likewise.
25106         * Makefile.in (ipa-inline-analysis.c): New file.
25107
25108 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25109
25110         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
25111         * configure: Regenerate.
25112
25113 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
25114
25115         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
25116         instead of tree_common.
25117         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
25118         Likewise.
25119         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
25120         TS_TYPED rather than TS_COMMON.
25121         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
25122
25123 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
25124
25125         PR target/45263
25126         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
25127         r20 around calls of __tablejump_elpm__
25128
25129 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
25130
25131         PR middle-end/48591
25132         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
25133         NULL.
25134         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
25135
25136 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
25137
25138         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
25139         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
25140         (cfi_vec): New typedef.
25141         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
25142         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
25143         (cie_cfi_vec): New static variable.
25144         (cie_cfi_head): Delete.
25145         (add_cfi): Accept a cfi_vec * as first argument. All callers and
25146         declaration changed. Use vector rather than list operations.
25147         (new_cfi): Don't initialize the dw_cfi_next field.
25148         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
25149         rather than list operations.
25150         (lookup_cfa): Use vector rather than list operations.
25151         (output_cfis): New argument upto. Accept a cfi_vec rather than
25152         a dw_cfi_ref list head as argument. All callers changed.
25153         Iterate over the vector using upto as a maximum index.
25154         (output_all_cfis): New static function.
25155         (output_fde): Use vector rather than list operations. Use the
25156         new upto argument for output_cfis rather than manipulating a
25157         list.
25158         (dwarf2out_begin_prologue): Change initializations to match
25159         new struct members.
25160         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
25161         from the vector length rather than searching for the end of a list.
25162         Use output_all_cfis.
25163         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
25164
25165 2011-04-13  Nick Clifton  <nickc@redhat.com>
25166
25167         * config/rx/rx.md (movmemsi): Do not use this pattern when
25168         volatile pointers are involved.
25169
25170 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
25171
25172         * config/i386/sse.md (pinsrbits): Remove.
25173         (sse2_packsswb): Merge with *avx_packsswb.
25174         (sse2_packssdw): Merge with *avx_packssdw.
25175         (sse2_packuswb): Merge with *avx_packuswb.
25176         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
25177         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
25178         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
25179         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
25180         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
25181         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
25182         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
25183         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
25184         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
25185         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
25186         (sse2_loadld): Merge with *avx_loadld.
25187         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
25188         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
25189         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
25190         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
25191         (vec_concatv2di): Merge with *vec_concatv2di_avx.
25192
25193 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
25194
25195         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
25196         calling TREE_CHAIN.
25197         * print-tree.c (print_node): Likewise.
25198         * tree-inline.c (copy_tree_r): Likewise.
25199         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
25200         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
25201         instead of TS_COMMON.
25202         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
25203         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
25204         (copy_node_stat): Zero TREE_CHAIN only if necessary.
25205         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
25206         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
25207         ...and these...
25208         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
25209         * tree.h: ...here.
25210         (TREE_CHAIN): Check for a TS_COMMON structure.
25211         (TREE_TYPE): Check for a TS_TYPED structure.
25212
25213 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
25214
25215         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
25216         cgraph_get_create_node instead of cgraph_node.
25217
25218 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
25219
25220         * c-parser.c (c_parser_initelt): Updated call to
25221         objc_build_message_expr.
25222         (c_parser_postfix_expression): Likewise.
25223
25224 2011-04-12  Kai Tietz  <ktietz@redhat.com>
25225
25226         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
25227         MASK_MS_BITFIELD_LAYOUT bit.
25228
25229 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
25230
25231         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
25232         assert it is always true.
25233         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
25234         moves.
25235
25236 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
25237
25238         * c-parser.c (c_lex_one_token): Rewritten conditional used when
25239         compiling Objective-C to be more efficient.
25240
25241 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
25242
25243         * opts-common.c (decode_cmdline_options_to_array): Remove variable
25244         argv_copied.
25245
25246 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
25247
25248         * recog.h, genoutput.c, optabs.c: Revert last patch.
25249
25250 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
25251
25252         PR target/48090
25253         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
25254
25255 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
25256
25257         * recog.h (insn_operand_data): Add an "allows_mem" field.
25258         * genoutput.c (output_operand_data): Initialize it.
25259         * optabs.c (maybe_legitimize_operand_same_code): New function.
25260         (maybe_legitimize_operand): Use it when matching the original
25261         op->value.
25262
25263 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
25264
25265         * genpreds.c (process_define_predicate): Move most processing
25266         to gensupport.c.  Continue to validate the expression.
25267         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
25268         (process_define_predicate): Move processing to gensupport.c.
25269         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
25270         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
25271         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
25272         argument.
25273         (valid_predicate_name_p): New function, split out from old
25274         genpreds.c:process_define_predicate.
25275         (process_define_predicate): New function, combining code from
25276         old genpreds.c and genrecog.c functions.
25277         (process_rtx): Call it for DEFINE_PREDICATE and
25278         DEFINE_SPECIAL_PREDICATE.
25279
25280 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
25281
25282         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
25283         size of a '%A' memory reference.
25284         (T_DREG, T_QREG): New neon_builtin_type_bits.
25285         (arm_init_neon_builtins): Assert that the load and store operands
25286         are neon_struct_operands.
25287         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
25288         (NEON_ARG_MEMORY): New builtin_arg.
25289         (neon_dereference_pointer): New function.
25290         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
25291         Handle NEON_ARG_MEMORY.
25292         (arm_expand_neon_builtin): Update after above interface changes.
25293         Use NEON_ARG_MEMORY for loads and stores.
25294         * config/arm/predicates.md (neon_struct_operand): New predicate.
25295         * config/arm/iterators.md (V_two_elem): Tweak formatting.
25296         (V_three_elem): Use BLKmode for accesses that have no associated mode.
25297         (V_four_elem): Tweak formatting.
25298         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
25299         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
25300         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
25301         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
25302         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
25303         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
25304         (neon_vst4<mode>): Replace pointer operand with a memory operand.
25305         Use %A in the output template.
25306         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
25307         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
25308         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
25309         the width of the memory access.  Remove post-increment.
25310         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
25311
25312 2011-04-12  Nick Clifton  <nickc@redhat.com>
25313
25314         * config/v850/v850.c (expand_prologue): Do not use the CALLT
25315         instruction for interrupt handlers if the target is the basic V850
25316         architecture.
25317         (expand_epilogue): Likewise.
25318
25319 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
25320
25321         PR rtl-optimization/48549
25322         * combine.c (propagate_for_debug): Also stop after BB_END of
25323         this_basic_block.  Process LAST and just stop processing after it.
25324         (combine_instructions): If last_combined_insn has been deleted,
25325         set last_combined_insn to its PREV_INSN.
25326
25327 2011-04-12  Richard Guenther  <rguenther@suse.de>
25328
25329         PR tree-optimization/46076
25330         * gimple.h (struct gimple_statement_call): Add fntype field.
25331         (gimple_call_fntype): Adjust.
25332         (gimple_call_set_fntype): New function.
25333         * gimple.c (gimple_build_call_1): Set the call function type.
25334         * gimplify.c (gimplify_call_expr): Preserve the function
25335         type the frontend used for the call.
25336         (gimplify_modify_expr): Likewise.
25337         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
25338         function type.
25339         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
25340         function type.
25341         * tree-ssa.c (useless_type_conversion_p): Function pointer
25342         conversions are useless.
25343
25344 2011-04-12  Martin Jambor  <mjambor@suse.cz>
25345
25346         * cgraph.h (cgraph_node): Remove function declaration.
25347         (cgraph_create_node): Declare.
25348         (cgraph_get_create_node): Likewise.
25349         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
25350         Updated all callers.
25351         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
25352         the decl does not already exist.  Call cgraph_get_create_node instead
25353         of cgraph_node.
25354         (cgraph_get_create_node): New function.
25355         (cgraph_same_body_alias): Update comment.
25356         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
25357         assert it does not return NULL.
25358         (cgraph_update_edges_for_call_stmt): Likewise.
25359         (cgraph_clone_edge): Likewise.
25360         (cgraph_create_virtual_clone): Likewise.
25361         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
25362         instead of cgraph_node.
25363         (cgraph_add_new_function): Call cgraph_create_node or
25364         cgraph_get_create_node instead of cgraph_node.
25365         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
25366         instead of cgraph_node.
25367         (record_eh_tables): Likewise.
25368         (mark_address): Likewise.
25369         (mark_load): Likewise.
25370         (build_cgraph_edges): Call cgraph_get_create_node instead
25371         of cgraph_node.
25372         (rebuild_cgraph_edges): Likewise.
25373         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
25374         instead of cgraph_node.
25375         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
25376         cgraph_node.
25377         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
25378         cgraph_create_node instead of cgraph_node.
25379         * c-decl.c (finish_function): Call cgraph_get_create_node instead
25380         of cgraph_node.
25381         * lto-cgraph.c (input_node): Likewise.
25382         * lto-streamer-in.c (input_function): Likewise.
25383         * varasm.c (mark_decl_referenced): Likewise.
25384         (assemble_alias): Likewise.
25385
25386 2011-04-12  Martin Jambor  <mjambor@suse.cz>
25387
25388         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
25389         instead of cgraph_node and assert it does not return NULL.
25390         * lto-streamer-in.c (lto_read_body): Likewise.
25391         * omp-low.c (new_omp_context): Likewise.
25392         (create_task_copyfn): Likewise.
25393         * tree-emutls.c (lower_emutls_function_body): Likewise.
25394         * matrix-reorg.c (transform_allocation_sites): Likewise.
25395
25396 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
25397
25398         PR c/48552
25399         * c-typeck.c (build_asm_expr): Error out on attempts to use
25400         void type outputs or inputs for constraints that allow reg or
25401         don't allow memory.
25402
25403 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
25404             Richard Earnshaw  <rearnsha@arm.com>
25405
25406         PR target/48250
25407         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
25408         to use sign-magnitude offsets. Reject unsupported unaligned
25409         cases. Add detailed description in comments.
25410         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
25411         condition from TARGET_32BIT to TARGET_ARM.
25412
25413 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
25414
25415         * tree.h (struct typed_tree): New.
25416         (struct tree_common): Include it instead of tree_base.
25417         (TREE_TYPE): Update for new location of type field.
25418         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
25419         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
25420         (union tree_node): Add typed field.
25421         * treestruct.def (TS_TYPED): New.
25422         * lto-streamer.c (check_handled_ts_structures): Handle it.
25423         * tree.c (MARK_TS_TYPED): New macro.
25424         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
25425
25426 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
25427
25428         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
25429         (force_nonfallthru): Do not alter the loop nest if no basic block
25430         was created.
25431
25432 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
25433
25434         * config/i386/sse.md (VI): New mode iterator.
25435         (SSEMODEI): Remove.
25436         (AVX256MODEI): Ditto.
25437         (AVXMODEF4P): Ditto.
25438         (avxvecpsmode): Ditto.
25439         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
25440         (sse2_andnot<mode>3): New expander.
25441         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
25442         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
25443         (<any_logic:code><mode>3): Use VI mode iterator.
25444         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
25445         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
25446         (*andnottf3): Handle AVX three-operand constraints.
25447         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
25448
25449 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
25450             Robert Millan  <rmh@gnu.org>
25451
25452         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
25453         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
25454         GNU_USER_DYNAMIC_LINKER64): Define.
25455         (REG_NAME): Don't undefine.
25456         (MD_UNWIND_SUPPORT): Undefine.
25457         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
25458         (REG_NAME): Don't undefine.
25459         (MD_UNWIND_SUPPORT): Undefine.
25460         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
25461
25462 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
25463
25464         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
25465         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
25466
25467 2011-04-11  Xinliang David Li  <davidxl@google.com>
25468
25469         * value-profile.c (check_ic_target): New function.
25470         (gimple_ic_transform): Sanity check indirect call target.
25471         * gimple-low.c (gimple_check_call_args): Interface change.
25472         (gimple_check_call_matching_types): New function.
25473         * tree-inline.c (tree_can_inline_p): Call new function.
25474
25475 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
25476
25477         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
25478         tree-pretty-print.h & realmpfr.h.
25479
25480 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
25481
25482         PR middle-end/48464
25483         * ira.c (setup_pressure_classes): Fix typo in loop condition.
25484         (setup_allocno_and_important_classes): Ditto.
25485
25486 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
25487
25488         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
25489         GNU_USER_DYNAMIC_LINKER.
25490         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
25491         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25492         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
25493         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
25494         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
25495         GNU_USER_TARGET_OS_CPP_BUILTINS.
25496         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
25497         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25498         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
25499         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25500         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
25501         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
25502         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
25503         GNU_USER_TARGET_OS_CPP_BUILTINS.
25504         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25505         GNU_USER_DYNAMIC_LINKER.
25506         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25507         GNU_USER_TARGET_OS_CPP_BUILTINS.
25508         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
25509         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25510         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
25511         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25512         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
25513         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
25514         GNU_USER_DYNAMIC_LINKER64): Remove.
25515         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
25516         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25517         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25518         GNU_USER_DYNAMIC_LINKER.
25519         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25520         GNU_USER_TARGET_OS_CPP_BUILTINS.
25521         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25522         GNU_USER_TARGET_OS_CPP_BUILTINS.
25523         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
25524         to GNU_USER_TARGET_OS_CPP_BUILTINS.
25525         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25526         GNU_USER_TARGET_OS_CPP_BUILTINS.
25527         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
25528         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
25529         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
25530         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
25531         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25532         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25533         GNU_USER_DYNAMIC_LINKER.
25534         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
25535         GNU_USER_TARGET_OS_CPP_BUILTINS.
25536         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
25537         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25538         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25539         GNU_USER_DYNAMIC_LINKER.
25540         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
25541         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25542         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
25543         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25544         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25545         GNU_USER_DYNAMIC_LINKER.
25546         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
25547         GNU_USER_DYNAMIC_LINKERN32.
25548         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
25549         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
25550         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
25551         GNU_USER_DYNAMIC_LINKER32.
25552         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
25553         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25554         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25555         GNU_USER_DYNAMIC_LINKER.
25556         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
25557         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25558         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
25559         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25560         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
25561         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
25562         GNU_USER_DYNAMIC_LINKER32.
25563         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
25564         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
25565         GNU_USER_DYNAMIC_LINKER.
25566         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
25567         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25568         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
25569         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
25570         GNU_USER_DYNAMIC_LINKER64.
25571         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
25572         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25573         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25574         GNU_USER_DYNAMIC_LINKER.
25575         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
25576         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25577         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25578         GNU_USER_DYNAMIC_LINKER.
25579         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
25580         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25581         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
25582         GNU_USER_DYNAMIC_LINKER32.
25583         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
25584         GNU_USER_DYNAMIC_LINKER64.
25585         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
25586         GNU_USER_DYNAMIC_LINKER64.
25587         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
25588         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25589         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
25590         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25591         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
25592
25593 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
25594
25595         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
25596         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
25597         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
25598         GNU_USER_DYNAMIC_LINKER.
25599         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
25600         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
25601         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
25602         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
25603         GNU_USER_DYNAMIC_LINKER64.
25604         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
25605         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
25606         GNU_USER_LINK_EMULATION.
25607         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
25608         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
25609         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
25610         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
25611         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
25612         CPP_SPEC, CC1_SPEC): Remove.
25613         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
25614         (GNU_USER_DYNAMIC_LINKER): Define.
25615         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
25616         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
25617         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
25618         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
25619         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
25620         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
25621         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
25622         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
25623         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
25624         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
25625         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
25626         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
25627         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
25628         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
25629         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
25630         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
25631         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
25632         GNU_USER_DYNAMIC_LINKER.
25633         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
25634         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
25635         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
25636         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
25637         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
25638         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
25639         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
25640         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
25641         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
25642         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
25643
25644 2011-04-11  Kai Tietz  <ktietz@redhat.com>
25645
25646         PR target/9601
25647         PR target/11772
25648         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
25649         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
25650         comment.
25651         (ix86_is_msabi_thiscall): Removed.
25652         (ix86_is_type_thiscall): Likewise.
25653         (ix86_get_callcvt): New function.
25654         (ix86_comp_type_attributes): Simplify check.
25655         (ix86_function_regparm): Use ix86_get_callcvt for calling
25656         convention attribute checks.
25657         (ix86_return_pops_args): Likewise.
25658         (ix86_static_chain): Likewise.
25659         (x86_this_parameter): Likewise.
25660         (x86_output_mi_thunk): Likewise.
25661         (ix86_function_type_abi): Optimize check for types without attributes.
25662         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
25663         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
25664         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
25665         by flag-values.
25666         (IX86_BASE_CALLCVT): Helper macro.
25667         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
25668         Use ix86_get_callcvt for calling convention attribute checks and avoid
25669         symbol-decoration for stdcall in TARGET_RTD case.
25670         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
25671         Likewise.
25672         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
25673         for declaration.
25674
25675 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
25676
25677         * config/i386/sse.md (VI_128): New mode iterator.
25678         (VI12_128): Rename from SSEMODE12.
25679         (VI14_128): Rename from SSEMODE14.
25680         (VI124_128): New mode iterator.
25681         (VI24_128): Rename from SSEMODE248.
25682         (VI248_128): Rename from SSEMODE248.
25683         (SSEMODE124C8): Remove.
25684         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
25685         (*sse2_<plusminus_insn><mode>3): Merge with
25686         *avx_<plusminus_insn><mode>3.
25687         (*mulv8hi3): Merge with *avx_mulv8hi3.
25688         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
25689         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
25690         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
25691         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
25692         (ashr<mode>3): Merge with *avx_ashr<mode>3.
25693         (lshr<mode>3): Merge with *avx_lshr<mode>3.
25694         (ashl<mode>3): Merge with *avx_ashl<mode>3.
25695         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
25696         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
25697         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
25698         (*<smaxmin:code>v8hi3): Ditto.
25699         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
25700         (*<smaxmin:code>v16qi3): Ditto.
25701         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
25702         (*sse2_eq<mode>3): Ditto.
25703         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
25704         (*sse2_gt<mode>3): Ditto.
25705         (vcondv2di): Split out of vcond<mode>.
25706         (vconduv2di): Split out of vcondu<mode>.
25707
25708 2011-04-11  Richard Guenther  <rguenther@suse.de>
25709
25710         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
25711         before calling tree_low_cst.
25712
25713 2011-04-11  Richard Guenther  <rguenther@suse.de>
25714
25715         * stor-layout.c (layout_type): Compute all array index size operations
25716         in the original type.
25717         (initialize_sizetypes): Add comment.
25718         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
25719
25720 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
25721
25722         * common.opt (Tbss=, Tdata=, Ttext=): New options.
25723
25724 2011-04-11  Martin Jambor  <mjambor@suse.cz>
25725
25726         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
25727         of cgraph_node, handle NULL return value.
25728         (cgraph_global_info): Likewise.
25729         (cgraph_rtl_info): Likewise.
25730         * tree-inline.c (estimate_num_insns): Likewise.
25731         * gimplify.c (unshare_body): Likewise.
25732         (unvisit_body): Likewise.
25733         (gimplify_body): Likewise.
25734         * predict.c (optimize_function_for_size_p): Likewise.
25735         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
25736         (call_may_clobber_ref_p_1): Likewise.
25737         * varasm.c (function_section_1): Likewise.
25738         (assemble_start_function): Likewise.
25739
25740 2011-04-11  Martin Jambor  <mjambor@suse.cz>
25741
25742         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
25743         of cgraph_node.
25744         * final.c (rest_of_clean_state): Likewise.
25745         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
25746         * passes.c (pass_init_dump_file): Likewise.
25747         (execute_all_ipa_transforms): Likewise.
25748         (function_called_by_processed_nodes_p): Likewise.
25749         * predict.c (maybe_hot_frequency_p): Likewise.
25750         (probably_never_executed_bb_p): Likewise.
25751         (compute_function_frequency): Likewise.
25752         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
25753         (unnest_nesting_tree_1): Likewise.
25754         (lower_nested_functions): Likewise.
25755         * tree-optimize.c (execute_fixup_cfg): Likewise.
25756         (tree_rest_of_compilation): Likewise.
25757         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
25758         * tree-sra.c (ipa_early_sra): Likewise.
25759         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
25760         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
25761         * ipa.c (record_cdtor_fn): Likewise.
25762         * ipa-inline.c (cgraph_early_inlining): Likewise.
25763         (compute_inline_parameters_for_current): Likewise.
25764         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
25765         * ipa-pure-const.c (local_pure_const): Likewise.
25766         * ipa-split.c (split_function): Likewise.
25767         (execute_split_functions): Likewise.
25768         * cgraphbuild.c (build_cgraph_edges): Likewise.
25769         (rebuild_cgraph_edges): Likewise.
25770         (cgraph_rebuild_references): Likewise.
25771         (remove_cgraph_callee_edges): Likewise.
25772         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
25773         (verify_cgraph_node): Likewise.
25774         (cgraph_analyze_functions): Likewise.
25775         (cgraph_preserve_function_body_p): Likewise.
25776         (save_inline_function_body): Likewise.
25777         (save_inline_function_body): Likewise.
25778         * tree-inline.c (copy_bb): Likewise.
25779         (optimize_inline_calls): Likewise.
25780
25781 2011-04-11  Martin Jambor  <mjambor@suse.cz>
25782
25783         PR tree-optimization/48195
25784         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
25785         ipa_check_create_edge_args.
25786         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
25787         ipa_check_create_edge_args.
25788         * ipa-inline.c (inline_generate_summary): Do not call
25789         ipa_check_create_node_params and ipa_check_create_edge_args.
25790         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
25791         ipa_check_create_edge_args.
25792
25793 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
25794
25795         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
25796         instead of loop.
25797         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
25798         * function.c (record_hard_reg_sets): Likewise.
25799         * ira.c (compute_regs_asm_clobbered): Likewise.
25800         * sched-deps.c (sched_analyze_1): Likewise.
25801         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
25802
25803 2011-04-09  Xinliang David Li  <davidxl@google.com>
25804
25805         PR tree-optimization/PR48484
25806         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
25807         has_valid_pred lazily
25808
25809 2011-04-09  Duncan Sands  <baldrick@free.fr>
25810
25811         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
25812
25813 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
25814
25815         * combine.c (combine_validate_cost): Adjust comments.  Set registered
25816         cost of I0 to zero at the end, if any.
25817
25818 2011-04-08  Xinliang David Li  <davidxl@google.com>
25819
25820         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
25821         to insane profile data.
25822
25823 2011-04-08  Xinliang David Li  <davidxl@google.com>
25824
25825         * ipa-cp.c (ipcp_update_profiling): Correct
25826          negative scale factor due to insane profile data.
25827
25828 2011-04-08  Xinliang David Li  <davidxl@google.com>
25829
25830         * final.c (dump_basic_block_info): New function.
25831         (final): Dump basic block.
25832         (final_scan_insn): Remove old dump.
25833
25834 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
25835
25836         PR target/47829
25837         * config.gcc (i386-*-freebsd): Disable unwind table generation for
25838         crtbegin/crtend.
25839
25840 2011-04-08  Michael Matz  <matz@suse.de>
25841
25842         PR middle-end/48389
25843         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
25844         functions.
25845         (rebuild_jump_labels): Call rebuild_jump_labels_1.
25846         * rtl.h (rebuild_jump_labels_chain): Declare.
25847         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
25848         insns inserted on edges.
25849
25850 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
25851
25852         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
25853         * config/arm/arm-arches.def: New.
25854         * config/arm/arm-opts.h: New.
25855         * config/arm/genopt.sh: New.
25856         * config/arm/arm-tables.opt: New (generated).
25857         * config/arm/arm.c (arm_handle_option, arm_target_help,
25858         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
25859         (all_architectures): Get most table contents from arm-arches.def.
25860         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
25861         arm_selected_tune here.
25862         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
25863         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
25864         (march=, mcpu=, mtune=): Use Enum and Var.
25865         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
25866         (arm.o): Update dependencies.
25867
25868 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
25869
25870         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
25871         of header_file.
25872         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
25873         (write_typed_alloc_defns): Likewise.
25874         (main): Calls write_typed_alloc_defns with output_header.
25875
25876 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
25877
25878         PR inline-asm/48435
25879         * ira-color.c (setup_profitable_hard_regs): Add comments.
25880         Don't take prohibited hard regs into account.
25881         (setup_conflict_profitable_regs): Rename to
25882         get_conflict_profitable_regs.
25883         (check_hard_reg_p): Check prohibited hard regs.
25884
25885 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
25886
25887         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
25888         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
25889         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
25890
25891 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25892
25893         PR target/48366
25894         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
25895         move from floating point to shift amount register.
25896         (emit_move_sequence): Remove secondary reload support for floating
25897         point to shift amount amount register copies.
25898         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
25899         amount register copies.
25900         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
25901         register, return false if mode isn't a scalar integer mode.
25902         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
25903
25904 2011-04-08  Richard Guenther  <rguenther@suse.de>
25905
25906         * gimple.c (gimple_call_flags): Remove kludge.
25907
25908 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
25909
25910         * sel-sched.c (sel_region_init): Move call to
25911         sel_setup_region_sched_flags after setup_current_loop_nest.
25912
25913 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
25914
25915         PR rtl-optimization/48272
25916         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
25917         init_insn_reg_pressure_info.  Adjust a caller.
25918         * sched-int.h (init_insn_reg_pressure_info): Declare.
25919         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
25920         when sched-pressure is enabled.
25921
25922 2011-04-08  Richard Guenther  <rguenther@suse.de>
25923
25924         * gimple.c (gimple_set_modified): Do not queue calls to
25925         MODIFIED_NORETURN_CALLS here ...
25926         * tree-ssa-operands.c (update_stmt_operands): ... but here.
25927
25928 2011-04-08  Richard Guenther  <rguenther@suse.de>
25929
25930         PR lto/48467
25931         * toplev.c (lang_dependent_init): Do not open asm_out_file
25932         in WPA mode, nor perform debug machinery initialization.
25933         (finalize): Do not unlink asm_out_file in WPA mode.
25934
25935 2011-04-08  Richard Guenther  <rguenther@suse.de>
25936
25937         * gimple.h (gimple_call_fntype): New function.
25938         (gimple_call_return_type): Use it.
25939         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
25940         * gimple-low.c (gimple_check_call_args): Likewise.
25941         * gimple.c (gimple_call_flags): Likewise.
25942         (gimple_call_arg_flags): Likewise.
25943         (gimple_call_return_flags): Likewise.
25944         * tree-cfg.c (verify_gimple_call): Likewise.
25945         (do_warn_unused_result): Likewise.
25946         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
25947         * value-prof.c (gimple_ic_transform): Fix fndecl check.
25948
25949 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
25950
25951         PR rtl-optimization/48235
25952         * sel-sched.c (code_motion_process_successors): Recompute the last
25953         insn in basic block if control flow changed.
25954         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
25955         Update condition for ilist_remove.
25956
25957 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
25958
25959         PR rtl-optimization/48302
25960         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
25961         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
25962         it to record added preheader blocks.
25963         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
25964         on to sel_add_loop_preheaders.
25965         (sel_region_init): Move call to setup_current_loop_nest after
25966         sel_init_bbs.
25967
25968 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
25969
25970         PR target/48273
25971         * cfgloop.h (loop_has_exit_edges): New helper.
25972         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
25973         non-clonable.
25974         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
25975         that have no exit edges.
25976
25977 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
25978
25979         PR rtl-optimization/48442
25980         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
25981         all callers.  Adjust assert.
25982
25983 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
25984
25985         PR tree-optimization/48377
25986         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
25987         is_packed to true even for types with smaller TYPE_ALIGN than
25988         TYPE_SIZE.
25989
25990 2011-04-08  Richard Guenther  <rguenther@suse.de>
25991
25992         PR bootstrap/48513
25993         * doc/tm.texi: Re-generate.
25994
25995 2011-04-08  Wei Guozhi  <carrot@google.com>
25996
25997         PR target/47855
25998         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
25999         * config/arm/arm.c (arm_attr_length_push_multi): New function.
26000         * config/arm/arm.md (*push_multi): Change the length computation to
26001         call a C function.
26002
26003 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
26004
26005         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
26006         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
26007         * doc/tm.texi: Regenerate.
26008         * system.h (ASM_OUTPUT_BSS): Poison.
26009         * varasm.c (asm_output_bss): Remove function.
26010         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
26011
26012         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
26013         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
26014         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
26015         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
26016         Likewise.
26017         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
26018         Likewise.
26019         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
26020         Likewise.
26021         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
26022
26023 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
26024
26025         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
26026         EnumValue lines.
26027
26028 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
26029
26030         * config/m68k/m68k.c (m68k_handle_option): Don't handle
26031         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
26032         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
26033         OPT_mcpu32.
26034         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
26035         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
26036         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
26037         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
26038         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
26039         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
26040         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
26041         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
26042         options.  Don't map other m68k options manually.  Don't handle
26043         old-style options as canonical.
26044         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
26045         * doc/install.texi (m68k-*-*): Document binutils version requirement.
26046
26047 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
26048
26049         * basic-block.h (force_nonfallthru): Move to...
26050         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
26051         (force_nonfallthru): ...here.
26052         * cfghooks.c (force_nonfallthru): New function.
26053         * cfgrtl.c (force_nonfallthru): Rename into...
26054         (rtl_force_nonfallthru): ...this.
26055         (commit_one_edge_insertion): Do not set AUX field.
26056         (commit_edge_insertions): Do not discover new basic blocks.
26057         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
26058         (cfg_layout_rtl_cfg_hooks): Likewise.
26059         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
26060         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
26061         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
26062
26063 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
26064
26065         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
26066         Remove macros.
26067
26068 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
26069
26070         * config/i386/sse.md: Update copyright year.
26071         (avxcvtvecmode): Remove.
26072         (sse_movhlps): Merge with *avx_movhlps.
26073         (sse_movlhps): Merge with *avx_movlhps.
26074         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
26075         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
26076         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
26077         (sse_loadhps): Merge with *avx_loadhps.
26078         (sse_storelps): Merge with *avx_storelps.
26079         (sse_loadlps): Merge with *avx_loadlps.
26080         (sse_movss): Merge with *avx_movss.
26081         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
26082         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
26083         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
26084         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
26085         (vec_set<mode>_0): Ditto.
26086         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
26087         (sse4_1_insertps): Merge with *avx_insertps.
26088         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
26089         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
26090         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
26091         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
26092         (sse2_storehpd): Merge with *avx_storehpd.
26093         (sse2_loadhpd): Merge with *avx_loadhpd.
26094         (sse2_loadlpd): Merge with *avx_loadlpd.
26095         (sse2_movsd): Merge with *avx_movsd.
26096         (*vec_concatv2df): Merge with *vec_concatv2df.
26097
26098 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
26099
26100         PR debug/48343
26101         * combine.c (combine_instructions): Add last_combined_insn,
26102         update it if insn is after it, pass it to all try_combine calls.
26103         (try_combine): Add last_combined_insn parameter, pass it instead of
26104         i3 to propagate_for_debug.
26105
26106 2011-04-07  Nick Clifton  <nickc@redhat.com>
26107
26108         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
26109         to handle MDR <-> data register transfers.
26110         (movhi_internal): Likewise.
26111
26112 2011-04-07  Alan Modra  <amodra@gmail.com>
26113
26114         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
26115         previous stack info.
26116
26117 2011-04-07  Tom de Vries  <tom@codesourcery.com>
26118
26119         PR target/43920
26120         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
26121         flow_find_cross_jump.  Swap variables to implement backward replacement.
26122         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
26123
26124 2011-04-07  Tom de Vries  <tom@codesourcery.com>
26125
26126         PR target/43920
26127         * cfgcleanup.c (walk_to_nondebug_insn): New function.
26128         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
26129         and bb2.
26130         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
26131         src1 or src2.  Redirect edges to the last basic block.  Update
26132         frequency and count on multiple basic blocks in case of fallthru.
26133
26134 2011-04-07  Tom de Vries  <tom@codesourcery.com>
26135
26136         PR target/43920
26137         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
26138         function.
26139         (old_insns_match_p): Change return type.  Replace return false/true
26140         with return dir_none/dir_both.  Use can_replace_by.
26141         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
26142         direction from dir_p.  Register replacement direction in dir, last_dir
26143         and afterlast_dir.  Handle new return type of old_insns_match_p using
26144         merge_dir.  Return replacement direction in dir_p.
26145         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
26146         return type of old_insns_match_p.
26147         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
26148         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
26149         flow_find_cross_jump.
26150         * basic-block.h (enum replace_direction): New type.
26151         (flow_find_cross_jump): Add parameter to declaration.
26152
26153 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
26154
26155         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
26156         (AVXMODEDCVTPS2DQ): Ditto.
26157         (VEC_FLOAT_MODE): Ditto.
26158         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
26159         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
26160         (<any_logic:code><mode>3): Use VF mode iterator.
26161         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
26162         Use VF mode iterator.
26163         (copysign<mode>3): Use VF mode iterator.
26164         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
26165         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
26166         (*<any_logic:code><MODEF:mode>3): Merge with
26167         *avx_<any_logic:code><MODEF:mode>3.
26168         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
26169         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
26170         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
26171         (avx_cvtdq2ps<avxmodesuffix>): Remove.
26172         (sse2_cvtdq2ps): Use %v modifier.
26173         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
26174         (avx_cvtps2dq<avxmodesuffix>): Remove.
26175         (sse2_cvtps2dq): Use %v modifier.
26176         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
26177         (avx_cvttps2dq<avxmodesuffix>): Remove.
26178         (sse2_cvttps2dq): Use %v modifier.
26179         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
26180         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
26181         (sse2_cvtsd2siq): Fix insn template.
26182         (sse2_cvtsd2siq_2): Ditto.
26183         (sse2_cvttsd2siq): Ditto.
26184         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
26185         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
26186
26187 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
26188
26189         * gcov-io.c: Use GCC Runtime Library Exception.
26190
26191 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
26192
26193         PR debug/48466
26194         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
26195         as base_reg whatever register reg has been eliminated to, instead
26196         of hardcoding STACK_POINTER_REGNUM.
26197
26198 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
26199
26200         * doc/tm.texi.in: Document C target hooks as separate from general
26201         target hooks.
26202         * doc/tm.texi: Regenerate.
26203         * genhooks.c (struct hook_desc): Add docname field.
26204         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
26205         docname field.
26206         (hook_array): Include c-target.def.
26207         (emit_documentation): Use docname field in output.
26208         (emit_init_macros): Take docname argument.  Only emit definitions
26209         for hooks matching docname.
26210         (main): Expect additional arguments in all cases.  Pass argument
26211         to emit_init_macros.
26212         * target.def: Move initial macro definitions and comments to
26213         target-hooks-macros.h.
26214         (gcc_targetcm): Move to c-family/c-target.def.
26215         * target.h (targetcm): Move declaration to c-family/c-target.h.
26216         * targhooks.c (default_handle_c_option): Move to
26217         c-family/c-opts.c.
26218         * targhooks.h (default_handle_c_option): Move declaration to
26219         c-family/c-common.h.
26220         * target-hooks-macros.h: New file.
26221         * config.gcc (target_has_targetcm): Define and use to add to
26222         c_target_objs and cxx_target_objs.
26223         * config/default-c.c: New file.
26224         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
26225         of target.h and target-def.h.
26226         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
26227         (darwin_objc_construct_string, darwin_cfstring_ref_p,
26228         darwin_check_cfstring_format_arg): Make static.
26229         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
26230         TARGET_STRING_OBJECT_REF_TYPE_P,
26231         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
26232         * config/darwin-protos.h (darwin_objc_construct_string,
26233         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
26234         declare.
26235         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
26236         TARGET_STRING_OBJECT_REF_TYPE_P,
26237         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
26238         * config/t-darwin (darwin-c.o): Update dependencies.
26239         * system.h (TARGET_HAS_TARGETCM): Poison.
26240         * Makefile.in (TARGET_H): Update.
26241         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
26242         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
26243         (default-c.o): New target.
26244         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
26245         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
26246         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
26247         c-target.def.
26248         (build/genhooks.o): Update dependencies.
26249
26250 2011-04-06  Richard Guenther  <rguenther@suse.de>
26251
26252         * ipa-inline.c (enum inlining_mode): Remove.
26253         (cgraph_flatten): Use some other token.
26254         (cgraph_edge_early_inlinable_p): New function, split out from ...
26255         (cgraph_perform_always_inlining): New function, split out from ...
26256         (cgraph_decide_inlining_incrementally): ... here.
26257         (cgraph_mark_inline_edge): Adjust.
26258         (cgraph_early_inlining): Re-structure.
26259         (pass_early_inline): Require SSA form.
26260
26261 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
26262             Julian Brown  <julian@codesourcery.com>
26263             Mark Shinwell  <shinwell@codesourcery.com>
26264
26265         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
26266         LO_REGS only for Thumb-1.
26267         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
26268         be used in short instructions when optimising for size on Thumb-2.
26269
26270 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
26271
26272         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
26273         associated with user returns to be preserved.
26274
26275 2011-04-06  Tristan Gingold  <gingold@adacore.com>
26276
26277         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
26278         symbol_queue_size, DBXOUT_DECR_NESTING,
26279         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
26280         if XCOFF_DEBUGGING_INFO.
26281
26282 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
26283
26284         * config/i386/i386.md (attribute isa): New.
26285         (attribute enabled): New.
26286         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
26287         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
26288         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
26289         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
26290         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
26291         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
26292         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
26293         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
26294
26295         * config/i386/sse.md (VF): New mode iterator.
26296         (VF1): Ditto.
26297         (VF2): Ditto.
26298         (VF_128): Ditto.
26299         (SSEMODEF4): Remove.
26300         (attribute sse): Handle V8SF and V4DF modes.
26301         (<absneg:code><mode>2): Use VF mode iterator.
26302         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
26303         mode iterator.
26304         (<plusminus_insn><mode>3): Use VF mode iterator.
26305         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
26306         Use VF mode iterator.
26307         (<sse>_vm<plusminus_insn><mode>3): Merge with
26308         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
26309         (mul<mode>3): Use VF mode iterator.
26310         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
26311         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
26312         mode iterator.
26313         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
26314         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
26315         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
26316         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
26317         mode iterator.
26318         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
26319         Use VF1 mode iterator.
26320         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
26321         (sqrt<VF2:mode>2): New expander.
26322         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
26323         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
26324         and sqrtv2df2.  Use VF mode iterator.
26325         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
26326         mode iterator.
26327         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
26328         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
26329         Use VF1 mode iterator.
26330         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
26331         (<smaxmin:code><mode>3): Use VF mode iterator.
26332         (*<smaxmin:code><mode>3_finite): Merge with
26333         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
26334         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
26335         (<sse>_vm<smaxmin:code><mode>2): Merge with
26336         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
26337         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
26338         mode iterator.
26339         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
26340         mode iterator.
26341         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
26342         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
26343         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
26344         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
26345         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
26346         VF mode iterator.
26347         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
26348         Use VF_128 mode iterator.
26349         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
26350         mode iterator.
26351         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
26352         VF_128 mode iterator.
26353         (vcond<mode>): Use VF mode iterator.
26354         * config/i386/predicates.md (sse_comparison_operator): Merge with
26355         avx_comparison_float_operator.  Do not declare as special_predicate.
26356         * config/i386/i386.c (struct builtin_description): Update for renamed
26357         compare patterns.
26358         (ix86_expand_args_builtin): Ditto.
26359         (ix86_expand_sse_compare_mask): Ditto.
26360
26361 2011-04-06  Richard Guenther  <rguenther@suse.de>
26362
26363         * tree-inline.c (estimate_num_insns): For calls simply account
26364         for all passed arguments and a used return value.
26365
26366 2011-04-06  Richard Guenther  <rguenther@suse.de>
26367
26368         PR tree-optimization/47663
26369         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
26370         call_stmt_time fields.
26371         (cgraph_edge_inlinable_p): Declare.
26372         (cgraph_edge_recursive_p): New inline function.
26373         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
26374         (cgraph_clone_edge): Copy it.
26375         * ipa-inline.c (cgraph_estimate_edge_time): New function.
26376         Account for call stmt time.
26377         (cgraph_estimate_time_after_inlining): Take edge argument.
26378         (cgraph_estimate_edge_growth): Account call stmt size.
26379         (cgraph_estimate_size_after_inlining): Take edge argument.
26380         (cgraph_mark_inline_edge): Adjust.
26381         (cgraph_check_inline_limits): Likewise.
26382         (cgraph_recursive_inlining_p): Remove.
26383         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
26384         (cgraph_decide_recursive_inlining): Take edge argument and
26385         adjust.
26386         (cgraph_decide_inlining_of_small_functions): Do not avoid
26387         diags for recursive inlining here.
26388         (cgraph_flatten): Adjust.
26389         (cgraph_decide_inlining_incrementally): Likewise.
26390         (estimate_function_body_sizes): Remove call cost handling.
26391         (compute_inline_parameters): Initialize caller edge call costs.
26392         (cgraph_estimate_edge_growth): New function.
26393         (cgraph_estimate_growth): Use it.
26394         (cgraph_edge_badness): Likewise.
26395         (cgraph_check_inline_limits): Take an edge argument.
26396         (cgraph_decide_inlining_of_small_functions): Adjust.
26397         (cgraph_decide_inlining): Likewise.
26398         * tree-inline.c (estimate_num_insns): Only account for call
26399         return value if it is used.
26400         (expand_call_inline): Avoid diagnostics on recursive inline
26401         functions here.
26402         * lto-cgraph.c (lto_output_edge): Output edge call costs.
26403         (input_edge): Input edge call costs.
26404
26405 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26406
26407         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
26408
26409 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
26410
26411         * doc/invoke.texi (Spec Files): Fix typo.
26412
26413 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
26414
26415         * profile.c (branch_prob): Move declaration of local variable.  Remove
26416         obsolete ??? comment.  Expand the location explicitly instead of using
26417         the LOCATION_FILE and LOCATION_LINE macros.
26418
26419 2011-04-06  Wei Guozhi  <carrot@google.com>
26420
26421         PR target/47855
26422         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
26423         (arm_cond_branch): Likewise.
26424         (arm_cond_branch_reversed): Likewise.
26425         (arm_jump): Likewise.
26426         (push_multi): Likewise.
26427         * config/arm/constraints.md (Py): New constraint.
26428
26429 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26430
26431         PR bootstrap/48471
26432         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
26433         Move these...
26434         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
26435         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
26436         #ifdef DBX_DEBUGGING_INFO.
26437
26438 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
26439
26440         PR bootstrap/48403
26441         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
26442         if old and new states differ.
26443
26444 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
26445
26446         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
26447         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
26448         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
26449         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
26450         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
26451         mcfv4e): Use Alias.
26452         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
26453         ColdFire options to -mcpu= options.
26454
26455 2011-04-05  Jeff Law  <law@redhat.com>
26456
26457         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
26458         check if BB is a successor of LOOP->header and return
26459         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
26460
26461 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
26462
26463         * cprop.c (struct reg_use): Remove.
26464         (reg_use_table): Make an array of RTX.
26465         (find_used_regs, constprop_register, local_cprop_pass,
26466         bypass_block): Simplify users of reg_use_table.
26467         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
26468         on one of the uses found by find_used_regs.
26469
26470 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26471
26472         PR bootstrap/48469
26473         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
26474         declaration.
26475
26476 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26477
26478         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
26479         as an rtx.
26480         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
26481
26482 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
26483
26484         PR middle-end/48441
26485         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
26486
26487 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26488
26489         * combine.c: Include obstack.h.
26490         (struct insn_link): Define.
26491         (uid_log_links): Adjust type.
26492         (FOR_EACH_LOG_LINK): New macro.
26493         (insn_link_obstack): Declare.
26494         (alloc_insn_link): Define.
26495         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
26496         type of link variables.
26497         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
26498         (try_combine, record_promoted_values, distribute_notes): Likewise.
26499         (distribute_links): Likewise.  Tweak prototype.
26500         (clear_log_links): Delete.
26501         (adjust_for_new_dest): Call alloc_insn_link.
26502         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
26503
26504 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26505
26506         * gcse.c (modify_mem_list): Convert to an array of VECs.
26507         (canon_modify_mem_list, compute_transp): Tweak formatting.
26508         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
26509         (load_killed_in_block_p): Likewise.
26510         (record_last_mem_set_info): Likewise.
26511         (clear_modify_mem_tables): Likewise.
26512
26513 2011-04-05  Tom de Vries  <tom@codesourcery.com>
26514
26515         PR middle-end/48461
26516         * function.c (emit_use_return_register_into_block): Only define if
26517         HAVE_return.
26518
26519 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
26520
26521         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
26522
26523 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
26524
26525         * config/rx/rx-opts.h: New.
26526         * config/rx/rx.c (rx_cpu_type): Remove.
26527         (rx_handle_option): Don't assert that global structures are in
26528         use.  Access variables via opts pointer.  Defer most handling of
26529         OPT_mint_register_.  Use error_at.
26530         (rx_option_override): Handle deferred OPT_mint_register_ here.
26531         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
26532         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
26533         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
26534         (rx_cpu_types): New Enum and EnumValue entries.
26535         (mint-register=): Use Defer and use Var accordingly.
26536
26537 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26538
26539         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
26540         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
26541         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
26542         Move these...
26543         (debug_free_queue, debug_nesting, symbol_queue_index):
26544         ...and these...
26545         * dbxout.c: ...to here.  Make static.
26546
26547 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
26548
26549         * gcse.c (modify_pair): Define.  Define a VEC of it.
26550         (canon_modify_mem_list): Convert to an array of VECs.
26551         (free_insn_expr_list_list): Delete.
26552         (clear_modify_mem_tables): Call VEC_free instead.
26553         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
26554         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
26555         (canon_list_insert, compute_transp): Likewise.
26556
26557 2011-04-05  Tom de Vries  <tom@codesourcery.com>
26558
26559         PR target/43920
26560         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
26561         for size.
26562
26563 2011-04-05  Tom de Vries  <tom@codesourcery.com>
26564
26565         PR target/43920
26566         * function.c (emit_use_return_register_into_block): New function.
26567         (thread_prologue_and_epilogue_insns): Use
26568         emit_use_return_register_into_block.
26569
26570 2011-04-05  Tom de Vries  <tom@codesourcery.com>
26571
26572         PR target/43920
26573         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
26574         insn.
26575
26576 2011-04-05  Tom de Vries  <tom@codesourcery.com>
26577
26578         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
26579
26580 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
26581
26582         * config/arm/arm.md (define_constants for unspec): Replace with
26583         define_c_enum.
26584         (define_constants for unspecv): Replace with define_c_enum.
26585         * config/arm/neon.md (define_constants for unspec): Replace with
26586         define_c_enum.
26587
26588 2011-04-04  Richard Henderson  <rth@redhat.com>
26589
26590         PR bootstrap/48400
26591         * dwarf2out.c (output_line_info): Always emit line info from
26592         at least one section.
26593         (dwarf2out_init): Create text_section_line_info here ...
26594         (set_cur_line_info_table): ... not here.
26595
26596 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
26597
26598         PR target/48380
26599         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
26600         not called.
26601
26602         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
26603
26604 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
26605
26606         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
26607         (expr_equiv_p): Remove.
26608         (insert_set_in_table): Look at <dest, src> pair instead of expr.
26609         (hash_scan_set): Update call to insert_set_in_table.
26610         (dump_hash_table): Dump <dest, src> pair.
26611         (lookup_set): Simplify.  Lookup <dest, src> pair.
26612         (compute_transp): Remove, fold heavily simplified code into...
26613         (compute_local_properties): ...here.  Expect COMP and TRANSP
26614         unconditionally.
26615         (find_avail_set): Take set directly from struct expr.
26616         (find_bypass-set): Likewise.
26617         (bypass_block): Likewise.
26618         (cprop_insn): Likewise.  Remove redundant INSN_P test.
26619
26620         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
26621         checks on form of COND from find_implicit_sets to here.
26622         (find_implicit_sets): Cleanup control flow. Split critical edges
26623         if it exposes implicit sets.  Allocate/resize implicit_sets as
26624         necessary.
26625         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
26626         changed something.  Run df_analyze after find_implicit_sets if any
26627         edges were split.  Do not allocate implicit_sets here.
26628
26629         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
26630         (gcse_obstack): Renamed to cprop_obstack.
26631         (GNEW, GNEWVEC, GNEWVAR): Remove.
26632         (gmalloc): Remove.
26633         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
26634         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
26635         (gcse_alloc): Likewise, and rename to cprop_alloc.
26636         (alloc_gcse_men, free_gcse_mem): Remove.
26637         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
26638         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
26639         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
26640
26641         * cprop.c (oprs_not_set_p): Remove.
26642         (mark_set, mark_clobber): Remove.
26643         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
26644         (reg_not_set_p): New function.
26645         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
26646         (cprop_insn): Likewise.
26647         (cprop_jump): Use FOR_EACH_EDGE.
26648
26649 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
26650
26651         PR bootstrap/48403
26652         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
26653         (rank_for_schedule): Use scheduled_insns vector instead of
26654         last_scheduled_insn.
26655         (ok_for_early_queue_removal): Likewise.
26656         (queue_to_ready): Search forward in nonscheduled_insns_begin if
26657         we have a dbg_cnt.
26658         (choose_ready): Likewise.
26659         (commit_schedule): Use VEC_iterate.
26660         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
26661         a dbg_cnt, use it and ensure the first insn is in the ready list.
26662         (haifa_sched_init): Allocate scheduled_insns.
26663         (sched_extend_ready_list): Don't allocate it; reserve space.
26664         (haifa_sched_finish): Free it.
26665
26666 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
26667
26668         * optc-gen.awk: Always remove type from Variable entry before
26669         recording in var_seen.
26670
26671 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
26672
26673         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
26674         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
26675         call to tidy_fallthru_edges.
26676
26677 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
26678
26679         * doc/options.texi (ToLower): Document.
26680         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
26681         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
26682         * opts.h (cl_option): Add cl_tolower field.
26683         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
26684         arguments with lowercase strings.
26685         * config/rx/rx.opt (mcpu=): Add ToLower.
26686         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
26687         argument.
26688
26689 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
26690
26691         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
26692
26693 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
26694
26695         * config/vax/vax.c: Include reload.h.
26696
26697 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
26698
26699         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
26700         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
26701         (sparc_preferred_reload_class): New function.
26702
26703 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
26704
26705         PR debug/48401
26706         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
26707         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
26708
26709 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
26710
26711         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
26712         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
26713
26714 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
26715
26716         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
26717         (ASM_OUTPUT_ALIGNED_BSS): Define.
26718
26719 2011-04-03  Michael Matz  <matz@suse.de>
26720
26721         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
26722         and next_slot members.
26723         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
26724         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
26725         (lto_streamer_cache_append): Declare.
26726         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
26727         unsigned index, remove offset parameter, ensure that we append
26728         or update existing entries.
26729         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
26730         parameter, update next_slot for append.
26731         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
26732         parameter.
26733         (lto_streamer_cache_insert_at): Likewise.
26734         (lto_streamer_cache_append): New function.
26735         (lto_streamer_cache_lookup): Use unsigned index.
26736         (lto_streamer_cache_get): Likewise.
26737         (lto_record_common_node): Don't test tree_node_can_be_shared.
26738         (preload_common_node): Adjust call to lto_streamer_cache_insert.
26739         (lto_streamer_cache_delete): Don't free offsets member.
26740         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
26741         (lto_output_string_with_length): Use lto_output_data_stream.
26742         (lto_output_tree_header): Remove ix parameter, don't write it.
26743         (lto_output_builtin_tree): Likewise.
26744         (lto_write_tree): Adjust callers to above, don't track and write
26745         offset, write unsigned index.
26746         (output_unreferenced_globals): Don't emit all global vars.
26747         (write_global_references): Use unsigned indices.
26748         (lto_output_decl_state_refs): Likewise.
26749         (write_symbol): Likewise.
26750         * lto-streamer-in.c (lto_input_chain): Move earlier.
26751         (input_function): Use unsigned index.
26752         (input_alias_pairs): Don't read and then ignore all global vars.
26753         (lto_materialize_tree): Remove ix_p parameter, don't read index,
26754         don't pass it back, use lto_streamer_cache_append.
26755         (lto_register_var_decl_in_symtab): Use unsigned index.
26756         (lto_register_function_decl_in_symtab): Likewise.
26757         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
26758         index.
26759         (lto_get_builtin_tree): Don't read index, use
26760         lto_streamer_cache_append.
26761         (lto_read_tree): Adjust call to lto_materialize_tree.
26762
26763         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
26764         don't use function calls in arguments to MIN.
26765
26766         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
26767         twice.
26768
26769         * gimple.c (gimple_type_leader_entry): Mark deletable.
26770
26771 2011-04-03  Alan Modra  <amodra@gmail.com>
26772
26773         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
26774
26775 2011-04-03  Michael Matz  <matz@suse.de>
26776
26777         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
26778         an integer.
26779         * tree.h (tree_decl_non_common.vindex): Adjust comment.
26780
26781 2011-04-03  Michael Matz  <matz@suse.de>
26782
26783         * cgraphbuild.c (record_reference): Canonicalize constructor values.
26784         * gimple-fold.c (canonicalize_constructor_val): Accept being called
26785         without function context.
26786         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
26787         current_function_decl and cfun.
26788
26789 2011-04-03  Michael Matz  <matz@suse.de>
26790
26791         * tree.c (decl_init_priority_insert): Don't create entry for
26792         default priority.
26793         (decl_fini_priority_insert): Ditto.
26794         (fields_compatible_p, find_compatible_field): Remove.
26795         * tree.h (fields_compatible_p, find_compatible_field): Remove.
26796         * gimple.c (gimple_compare_field_offset): Adjust block comment.
26797
26798 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
26799
26800         * combine.c (try_combine): Remove useless local variable.
26801
26802 2011-04-03  Richard Guenther  <rguenther@suse.de>
26803             Ira Rosen  <ira.rosen@linaro.org>
26804
26805         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
26806         non-variable offsets and compare the remaining bases of the two
26807         accesses instead of looking for exact same data-ref.
26808
26809 2011-04-02  Kai Tietz  <ktietz@redhat.com>
26810
26811         PR target/48416
26812         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
26813
26814         * i386.c (ix86_is_msabi_thiscall): New helper function.
26815         (ix86_is_type_thiscall): New helper function.
26816         (ix86_comp_type_attributes): Handle thiscall for method-functions
26817         special.
26818         (init_cumulative_args): Likewise.
26819         (find_drap_reg): Likewise.
26820         (ix86_static_chain): Likewise.
26821         (x86_this_parameter): Likewise.
26822         (x86_output_mi_thunk): Likewise.
26823
26824 2011-04-01  Olivier Hainque  <hainque@adacore.com>
26825             Nicolas Setton  <setton@adacore.com>
26826             Eric Botcazou  <ebotcazou@adacore.com>
26827
26828         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
26829         (add_gnat_descriptive_type_attribute): New function.
26830         (gen_array_type_die): Call it.
26831         (gen_enumeration_type_die): Likewise.
26832         (gen_struct_or_union_type_die): Likewise.
26833         (modified_type_die): Likewise.
26834         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
26835         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
26836         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
26837
26838 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
26839
26840         PR bootstrap/48148
26841         * dwarf2out.c (resolve_addr): Don't call force_decl_die
26842         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
26843
26844         Revert:
26845         2011-03-17  Richard Guenther  <rguenther@suse.de>
26846
26847         PR bootstrap/48148
26848         * lto-cgraph.c (input_overwrite_node): Clear the abstract
26849         origin for decls in other ltrans units.
26850         (input_varpool_node): Likewise.
26851
26852 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
26853
26854         PR middle-end/48335
26855         * expr.c (expand_assignment): Handle all possibilities
26856         if TO_RTX is CONCAT.
26857         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
26858         (store_split_bit_field): If SUBREG_REG (op0) or
26859         op0 itself has smaller mode than word, return it
26860         for offset 0 and const0_rtx for out-of-bounds stores.
26861         If word is const0_rtx, skip it.
26862
26863 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
26864
26865         * config/h8300/h8300.c (print_operand_address): Rename to...
26866         (h8300_print_operand_address): ...this. Make static. Adjust comments.
26867         Call h8300_print_operand and h8300_print_operand_address instead of
26868         print_operand and print_operand_address. Declare.
26869         (print_operand): Renake to...
26870         (h8300_print_operand): ...this. Make static. Adjust comments.
26871         Call h8300_print_operand instead of print_operand. Declare.
26872         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
26873         (h8300_register_move_cost): Likewise.
26874         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
26875         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
26876         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
26877         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
26878         * config/h8300/h8300-protos.h (print_operand): Delete.
26879         (print_operand_address): Delete.
26880
26881 2011-04-01  Richard Henderson  <rth@redhat.com>
26882
26883         PR 48400
26884         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
26885         in strict mode before dwarf4.  Re-order tests to early out
26886         before switching sections.
26887
26888 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
26889
26890         * config/h8300/constraints.md: New file.
26891         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
26892         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
26893         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
26894         * config/h8300/predicates.md (bit_operand): Likewise.
26895         (incdec_operand): Use satisfies_constraint_M and
26896         satisfies_constraint_O.  Don't use C code block.
26897         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
26898         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
26899         (compute_mov_length): Use satisfies_constraint_G.
26900         (fix_bit_operand): Use satisfies_constraint_U.
26901         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
26902         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
26903         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
26904         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
26905         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
26906         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
26907         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26908         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
26909         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
26910         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
26911         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
26912         (EXTRA_MEMORY_CONSTRAINT): Delete.
26913
26914 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
26915             Michael Meissner  <meissner@linux.vnet.ibm.com>
26916
26917         PR target/48262
26918         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
26919         operands, as per the specifications.
26920
26921         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
26922         (vec_extract_evenv4sf): Ditto.
26923         (vec_extract_evenv8hi): Ditto.
26924         (vec_extract_evenv16qi): Ditto.
26925         (vec_extract_oddv4si): Ditto.
26926
26927 2011-03-31  Mark Wielaard  <mjw@redhat.com>
26928
26929         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
26930         high_pc attribute if the CU has no associated code. Only output
26931         DW_AT_entry_pc for CU if not generating strict dwarf and
26932         dwarf_version < 4.
26933
26934 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
26935
26936         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
26937         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
26938         out of ...
26939         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
26940         * final.c (final_start_function): Call the new function rather
26941         than using a NULL argument for dwarf2out_frame_debug.
26942
26943         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
26944         that contains the prologue.
26945
26946         * haifa-sched.c (queue_insn): New arg REASON.  All callers
26947         changed.  Print it in debugging output.
26948
26949         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
26950
26951         * sched-ebb.c (begin_schedule_ready): Remove second argument.
26952         Split most of the code into...
26953         (begin_move_insn): ... here.  New function.
26954         (ebb_sched_info): Add a pointer to it.
26955         * haifa-sched.c (scheduled_insns): New static variable.
26956         (sched_extend_ready_list): Allocate it.
26957         (schedule_block): Use it to record the order of scheduled insns.
26958         Perform RTL changes to move insns only after all scheduling
26959         decisions have been made.
26960         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
26961         begin_move_insn field.
26962         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
26963         * sched-int.h (struct haifa_sched_info): Remove second argument
26964         from begin_schedule_ready hook.  Add new member begin_move_insn.
26965         * sched-rgn.c (begin_schedule_ready): Remove second argument.
26966         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
26967
26968         * haifa-sched.c (prune_ready_list): New function, broken out of
26969         schedule_block.
26970         (schedule_block): Use it.
26971
26972 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26973
26974         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
26975
26976 2011-04-01  Kai Tietz  <ktietz@redhat.com>
26977
26978         * config.gcc (*-*-mingw*): Allow as option the
26979         posix threading model.
26980         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
26981         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
26982         definition.
26983         (CPP_SPEC): Add pthread/no-pthread handling.
26984         (LIB_SPEC): Likewise.
26985         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
26986         (LIB_SPEC): Likewise.
26987         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
26988         flag to pass -pthread option for shared libgcc build.
26989         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
26990         for shared libgcc build.
26991         * config/i386/t-mingw-pthread: New file.
26992         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
26993         New define to enable use of library pthread by default.
26994         * config/i386/mingw.opt (pthread): New driver option.
26995         (no-pthread): New driver option.
26996         * config/i386/cygming.opt: Make sure trailing empty line is retained.
26997         * config/i386/mingw-w64.opt: Likewise.
26998
26999 2011-04-01  Gary Funck  <gary@intrepid.com>
27000
27001         * c-decl.c (grokdeclarator): Fix formatting.
27002
27003 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
27004
27005         * expr.c (emit_block_move_via_movmem): Use n_generator_args
27006         instead of n_operands.
27007         (set_storage_via_setmem): Likewise.
27008         * optabs.c (maybe_gen_insn): Likewise.
27009         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
27010         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
27011         (mips_expand_builtin_direct): Likewise.
27012         * config/spu/spu.c (expand_builtin_args): Likewise.
27013
27014 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
27015
27016         * recog.h (insn_data_d): Add n_generator_args.
27017         * genoutput.c (data): Likewise.
27018         (output_insn_data): Print it.
27019         (max_opno, num_dups): Delete.
27020         (scan_operands): Just fill in "d->operand[...]".
27021         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
27022
27023 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
27024
27025         * gensupport.h (pattern_stats): New structure.
27026         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
27027         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
27028         (max_operand_1, max_operand_vec): Delete.
27029         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
27030
27031 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
27032
27033         * emit-rtl.c (emit_pattern_after_setloc): New function.
27034         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
27035         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
27036         (emit_pattern_after): New function.
27037         (emit_insn_after, emit_jump_insn_after): Call it.
27038         (emit_call_insn_after, emit_debug_insn_after): Likewise.
27039         (emit_pattern_before_setloc): New function.
27040         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
27041         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
27042         Likewise.
27043         (emit_pattern_before): New function.
27044         (emit_insn_before, emit_jump_insn_before): Call it.
27045         (emit_call_insn_before, emit_debug_insn_before): Likewise.
27046
27047 2011-03-31  Richard Henderson  <rth@redhat.com>
27048
27049         * dwarf2out.c (dw_separate_line_info_ref): Remove.
27050         (dw_separate_line_info_entry): Remove.
27051         (enum dw_line_info_opcode): New.
27052         (dw_line_info_entry): Use it.
27053         (dw_line_info_table, dw_line_info_table_p): New.
27054         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
27055         (line_info_table, line_info_label_num): Remove.
27056         (line_info_table_in_use): Remove.
27057         (separate_line_info_table): Remove.
27058         (separate_line_info_table_allocated): Remove.
27059         (separate_line_info_table_in_use): Remove.
27060         (LINE_INFO_TABLE_INCREMENT): Remove.
27061         (line_info_label_num): New.
27062         (cur_line_info_table): New.
27063         (text_section_line_info, cold_text_section_line_info): New.
27064         (separate_line_info): New.
27065         (SEPARATE_LINE_CODE_LABEL): Remove.
27066         (print_dwarf_line_table): Remove.
27067         (debug_dwarf): Don't dump it.
27068         (output_one_line_info_table): New.
27069         (output_line_info): Use it.
27070         (new_line_info_table): New.
27071         (set_cur_line_info_table): New.
27072         (dwarf2out_switch_text_section): Use it.
27073         (dwarf2out_begin_function): Likewise.
27074         (push_dw_line_info_entry): New.
27075         (dwarf2out_source_line): Rewrite for new line info tables.
27076         (dwarf2out_init): Remove dead initailizations.
27077
27078 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
27079
27080         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
27081         various flags.
27082         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
27083         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
27084         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
27085         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
27086         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
27087         * opt-functions.awk (flag_init, switch_bit_fields): New.
27088         (switch_flags): Don't handle flags moved to bit-fields.  Don't
27089         generate CL_MISSING_OK or CL_SAVE.
27090         * optc-gen.awk: Update to generate bit-field output as well as
27091         flags field.
27092         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
27093         bit-field instead of CL_REJECT_DRIVER flag.
27094         * opts-common.c (generate_canonical_option,
27095         decode_cmdline_option): Use bit-fields instead of CL_* flags.
27096         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
27097         instead of CL_REJECT_NEGATIVE flag.
27098         * toplev.c (print_switch_values): Use cl_report bit-field instead
27099         of CL_REPORT flag.
27100
27101 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
27102
27103         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
27104         a zero minimum index only if it is redundant.
27105
27106 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
27107
27108         PR rtl-optimization/48381
27109         * ira-color.c (assign_hard_reg): Use hard reg set intersection
27110         instead of ira_class_hard_reg_index for calculating conflicting
27111         hard registers.
27112
27113 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
27114
27115         * cprop.c: Clean up hash table building.
27116         (reg_avail_info): Remove.
27117         (oprs_available_p): Remove.
27118         (record_last_reg_set_info): Remove.
27119         (record_last_set_info): Remove.
27120         (reg_available_p): New function.
27121         (gcse_constant_p): Do not treat unfolded conditions as constants.
27122         (make_set_regs_unavailable): New function.
27123         (hash_scan_set): Simplify with new reg_available_p.
27124         (compute_hash_table_work): Traverse insns stream only once.
27125         Do not compute reg_avail_info. Traverse insns in reverse order.
27126         Record implicit sets after recording explicit sets from the block.
27127
27128 2011-03-31  Michael Matz  <matz@suse.de>
27129
27130         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
27131
27132 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
27133
27134         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
27135         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
27136         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27137         (h8300_mode_dependent_address_p): New function.
27138         (h8300_get_index): Make static.
27139
27140 2011-03-31  Jeff Law  <law@redhat.com>
27141
27142         * reload1.c (elimination_effects): Fix typo in recent change.
27143
27144         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
27145         typo potentially leading to null pointer dereference.
27146
27147         * caller-save.c (new_saved_hard_reg): Eliminate return value.
27148         (setup_save_areas): Corresponding changes to avoid useless
27149         assignments.
27150
27151         * jump.c (reversed_comparison_code_parts): Avoid successive return
27152         statements when REVERSE_CONDITION is defined.
27153
27154         * expr.c (expand_assignment): Avoid useless assignments.
27155         (expand_expr_real_1): Likewise.
27156         (expand_expr_real_2): Avoid useless statements.
27157
27158         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
27159
27160         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
27161
27162         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
27163         statements.
27164
27165         * stmt.c (expand_expr_stmt): Avoid useless assignment.
27166
27167 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
27168
27169         PR target/47109
27170         * doc/tm.texi.in (TARGET_VERSION): Remove.
27171         * doc/tm.texi: Regenerate.
27172         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
27173         * collect2.c (main): Don't use TARGET_VERSION.
27174         * mips-tdump.c (main): Don't use TARGET_VERSION.
27175         * mips-tfile.c (main): Don't use TARGET_VERSION.
27176         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
27177         * config/rs6000/vxworksae.h: Remove.
27178         * config/alpha/alpha.h (TARGET_VERSION): Remove.
27179         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
27180         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
27181         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
27182         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
27183         * config/arm/arm.h (TARGET_VERSION): Remove.
27184         * config/arm/coff.h (TARGET_VERSION): Remove.
27185         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
27186         * config/arm/elf.h (TARGET_VERSION): Remove.
27187         * config/arm/freebsd.h (TARGET_VERSION): Remove.
27188         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
27189         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
27190         * config/arm/pe.h (TARGET_VERSION): Remove.
27191         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
27192         * config/arm/semi.h (TARGET_VERSION): Remove.
27193         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
27194         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
27195         * config/arm/vxworks.h (TARGET_VERSION): Remove.
27196         * config/avr/avr.h (TARGET_VERSION): Remove.
27197         * config/bfin/bfin.h (TARGET_VERSION): Remove.
27198         * config/fr30/fr30.h (TARGET_VERSION): Remove.
27199         * config/frv/frv.h (TARGET_VERSION): Remove.
27200         * config/h8300/h8300.h (TARGET_VERSION): Remove.
27201         * config/i386/cygwin.h (TARGET_VERSION): Remove.
27202         * config/i386/darwin.h (TARGET_VERSION): Remove.
27203         * config/i386/darwin64.h (TARGET_VERSION): Remove.
27204         * config/i386/djgpp.h (TARGET_VERSION): Remove.
27205         * config/i386/freebsd.h (TARGET_VERSION): Remove.
27206         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
27207         * config/i386/gnu.h (TARGET_VERSION): Remove.
27208         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
27209         * config/i386/i386elf.h (TARGET_VERSION): Remove.
27210         * config/i386/linux.h (TARGET_VERSION): Remove.
27211         * config/i386/linux64.h (TARGET_VERSION): Remove.
27212         * config/i386/lynx.h (TARGET_VERSION): Remove.
27213         * config/i386/mingw32.h (TARGET_VERSION): Remove.
27214         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
27215         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
27216         * config/i386/netware.h (TARGET_VERSION): Remove.
27217         * config/i386/nto.h (TARGET_VERSION): Remove.
27218         * config/i386/openbsd.h (TARGET_VERSION): Remove.
27219         * config/i386/vxworks.h (TARGET_VERSION): Remove.
27220         * config/ia64/elf.h (TARGET_VERSION): Remove.
27221         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
27222         * config/ia64/hpux.h (TARGET_VERSION): Remove.
27223         * config/ia64/linux.h (TARGET_VERSION): Remove.
27224         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
27225         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
27226         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
27227         * config/lm32/lm32.h (TARGET_VERSION): Remove.
27228         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
27229         * config/m32c/m32c.h (TARGET_VERSION): Remove.
27230         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
27231         * config/m32r/m32r.h (TARGET_VERSION): Remove.
27232         * config/m68k/linux.h (TARGET_VERSION): Remove.
27233         * config/m68k/m68k.h (TARGET_VERSION): Remove.
27234         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
27235         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
27236         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
27237         * config/mep/mep.h (TARGET_VERSION): Remove.
27238         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
27239         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
27240         * config/mips/iris6.h (MACHINE_TYPE): Remove.
27241         * config/mips/linux.h (TARGET_VERSION): Remove.
27242         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
27243         * config/mips/vxworks.h (TARGET_VERSION): Remove.
27244         * config/mmix/mmix.h (TARGET_VERSION): Remove.
27245         * config/mn10300/linux.h (TARGET_VERSION): Remove.
27246         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
27247         * config/pa/pa.h (TARGET_VERSION): Remove.
27248         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
27249         * config/picochip/picochip.h (TARGET_VERSION): Remove.
27250         * config/rs6000/aix.h (TARGET_VERSION): Remove.
27251         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
27252         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
27253         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
27254         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
27255         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
27256         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
27257         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
27258         * config/rs6000/linux.h (TARGET_VERSION): Remove.
27259         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
27260         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
27261         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
27262         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
27263         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
27264         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
27265         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
27266         * config/s390/linux.h (TARGET_VERSION): Remove.
27267         * config/s390/s390.h (TARGET_VERSION): Remove.
27268         * config/s390/tpf.h (TARGET_VERSION): Remove.
27269         * config/score/score.h (TARGET_VERSION): Remove.
27270         * config/sh/linux.h (TARGET_VERSION): Remove.
27271         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
27272         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
27273         * config/sh/sh.h (TARGET_VERSION): Remove.
27274         * config/sh/sh64.h (TARGET_VERSION): Remove.
27275         * config/sh/superh.h (TARGET_VERSION): Remove.
27276         * config/sh/vxworks.h (TARGET_VERSION): Remove.
27277         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
27278         * config/sparc/linux.h (TARGET_VERSION): Remove.
27279         * config/sparc/linux64.h (TARGET_VERSION): Remove.
27280         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
27281         TARGET_NAME32, TARGET_NAME): Remove.
27282         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
27283         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
27284         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
27285         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
27286         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
27287         * config/spu/spu.h (TARGET_VERSION): Remove.
27288         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
27289         * config/v850/v850.h (TARGET_VERSION): Remove.
27290         * config/vax/linux.h (TARGET_VERSION): Remove.
27291         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
27292         * config/xtensa/elf.h (TARGET_VERSION): Remove.
27293         * config/xtensa/linux.h (TARGET_VERSION): Remove.
27294
27295 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
27296
27297         PR target/48142
27298         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
27299         frame-related from frame-unrelated adjustments to the stack pointer.
27300
27301 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
27302
27303         * common.opt (fdebug-types-section): Move earlier.
27304         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
27305
27306 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
27307
27308         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
27309         var.
27310
27311 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
27312
27313         * tree.h (CASE_CHAIN): Define.
27314         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
27315         (gimple_redirect_edge_and_branch): Likewise.
27316
27317 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
27318
27319         PR middle-end/48367
27320         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
27321         calculation.
27322
27323 2011-03-30  Jeff Law  <law@redhat.com>
27324
27325         * PR bootstrap/48371
27326         * reload1.c (reload): Fix botch in last change.
27327
27328         * reload.h (struct reload): Fix typo introduced in last change.
27329
27330 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
27331
27332         * config/arm/arm.opt (mhard-float, msoft-float): Mark
27333         Undocumented.  Remove help text.
27334         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
27335         -mhard-float.
27336
27337 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
27338
27339         * doc/options.texi (NegativeAlias): Document.
27340         (Alias): Mention NegativeAlias.
27341         * opt-functions.awk: Handle NegativeAlias.
27342         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
27343         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
27344         * opts.h (CL_NEGATIVE_ALIAS): Define.
27345         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
27346         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
27347         OPT_mspe_.
27348         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
27349         Alias entries.
27350         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
27351         mno-spe and mno-isel instead of mspe=no and -misel=no.
27352
27353 2011-03-29  Mark Wielaard  <mjw@redhat.com>
27354
27355         * common.opt (fdebug-types-section): New flag.
27356         * doc/invoke.texi: Document new -fno-debug-types-section flag.
27357         * dwarf2out.c (use_debug_types): New define.
27358         (struct die_struct): Mark die_id with GTY desc use_debug_types.
27359         (print_die): Guard output of type unit signatures using
27360         use_debug_types.
27361         (build_abbrev_table): Replace assert of dwarf_version >= 4
27362         with assert on use_debug_types.
27363         (size_of_die): Likewise.
27364         (unmark_dies): Likewise.
27365         (value_format): Decide AT_ref_external form on use_debug_types.
27366         (output_die): Replace dwarf_version version check guard with
27367         use_debug_types where appropriate.
27368         (modified_type_die): Likewise.
27369         (gen_reference_type_die): Likewise.
27370         (dwarf2out_start_source_file): Likewise.
27371         (dwarf2out_end_source_file): Likewise.
27372         (prune_unused_types_walk_attribs): Likewise.
27373         (dwarf2out_finish): Likewise.
27374
27375 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
27376
27377         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
27378
27379 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
27380
27381         PR rtl-optimization/48332
27382         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
27383         mode of input operand N and modeN to its actual mode.
27384
27385 2011-03-30  Jeff Law  <law@redhat.com>
27386
27387         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
27388         define accessor macro.
27389         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
27390         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
27391         (reg_equiv_init): Likewise.
27392         (reg_equivs_size): New variable.
27393         (reg_equiv_init_size): Remove.
27394         (allocate_initial_values): Move prototype to here from....
27395         * integrate.h (allocate_initial_values): Remove prototype.
27396         * integrate.c: Include reload.h.
27397         (allocate_initial_values): Corresponding changes.
27398         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
27399         (fix_reg_equiv_init, no_equiv): Corresponding changes.
27400         (update_equiv_regs): Corresponding changes.
27401         (ira): Corresponding changes.
27402         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
27403         (push_secondary_reload): Corresponding changes.
27404         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
27405         (make_memloc, find_reloads_address): Corresponding changes.
27406         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
27407         (find_reloads_address_1): Corresponding changes.
27408         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
27409         (refers_to_regno_for_reload_p): Corresponding changes.
27410         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
27411         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
27412         * reload1.c: Include ggc.h.
27413         (grow_reg_equivs): New function.
27414         (replace_pseudos_in, reload): Corresponding changes.
27415         (calculate_needs_all_insns, alter_regs): Corresponding changes.
27416         (eliminate_regs_1, elimination_effects): Corresponding changes.
27417         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
27418         (delete_output_reload): Likewise.
27419         * caller-save.c (mark_referenced_regs): Corresponding changes.
27420         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
27421         * frv/predicates.md (frv_load_operand): Corresponding changes.
27422         * microblaze/microblaze.c (double_memory_operand): Corresponding
27423         changes.
27424         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
27425         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
27426         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
27427         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
27428         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
27429         changes.
27430         * pa/pa.c (emit_move_sequence): Corresponding changes.
27431         * vax/vax.c (nonindexed_address_p): Corresponding changes.
27432
27433 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
27434
27435         PR target/47551
27436         * config/arm/arm.c (coproc_secondary_reload_class): Handle
27437         structure modes.  Don't check neon_vector_mem_operand for
27438         vector or structure modes.
27439
27440 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
27441             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
27442
27443         PR target/43590
27444         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
27445         operand 1 and reshuffle the operands to match.
27446         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
27447
27448 2011-03-30  Christian Schüler  <cschueler@gmx.de>
27449
27450         PR driver/48208
27451         * config/c.opt (F): Added 'Driver' to -F option.
27452
27453         PR driver/48260
27454         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
27455           handler function.
27456         * config/darwin.opt: Added '-arch' option.
27457
27458 2011-03-30  Nick Clifton  <nickc@redhat.com>
27459
27460         * config/rx/rx.md: Add peepholes and patterns to combine
27461         extending loads and simple arithmetic instructions.
27462         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
27463         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
27464         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
27465         modes to use pre-decrement and post-increment addressing.
27466         (rx_is_restricted_memory_address): Add range checking of REG+INT
27467         addresses.
27468         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
27469         (rx_memory_move_cost): Adjust cost of stores.
27470         (rx_adjust_insn_length): New function.
27471
27472 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
27473
27474         PR c/48305
27475         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
27476         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
27477         matching arg00/arg01 types.
27478
27479 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
27480
27481         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
27482         last_location to UNKNOWN_LOCATION.
27483
27484 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
27485
27486         PR target/48349
27487         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
27488         FLOAT_SSE_REGS.
27489
27490 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
27491             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27492
27493         PR bootstrap/48337
27494         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
27495         Init(PROCESSOR_V7).
27496         (sparc_cpu): Likewise.
27497         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
27498         PROCESSOR_V7.
27499
27500 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
27501
27502         PR target/48336
27503         PR middle-end/48342
27504         PR rtl-optimization/48345
27505         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
27506         hard regs for given mode from profitable regs when doing secondary
27507         allocation.
27508
27509 2011-03-29  Jeff Law  <law@redhat.com>
27510
27511         PR bootstrap/48327
27512         * tree-ssa-threadupdate.c (struct redirection_data): Remove
27513         do_not_duplicate field.
27514         (lookup_redirection_data): Corresponding changes.
27515         (create_duplicates): Always create a template block.
27516         (redirect_edges): Remove code which reused the original block
27517         when it was going to become unreachable code.
27518         (thread_block): Don't set do_not_duplicate field.
27519
27520 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
27521
27522         * lto-opts.c (register_user_option_p, lto_register_user_option):
27523         Make type argument unsigned.
27524         * lto-streamer.h (lto_register_user_option): Make type argument
27525         unsigned.
27526         * opth-gen.awk: Make CL_* macros unsigned.
27527         * opts-common.c (find_opt): Make lang_mask argument unsigned.
27528         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
27529         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
27530         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
27531         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
27532         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
27533         (find_opt): Make lang_mask argument unsigned.
27534
27535 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
27536
27537         PR rtl-optimization/48331
27538         PR rtl-optimization/48334
27539         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
27540         for any used algorithm.
27541
27542 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
27543
27544         * ira-conflicts.c (build_object_conflicts): Add unused attribute
27545         to parent_max.
27546
27547 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
27548
27549         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
27550         (alpha_option_override): Don't set alpha_sr_alias_set.
27551         (emit_frame_store_1): Use gen_frame_mem rather than calling
27552         set_mem_alias_set.
27553         (alpha_expand_epilogue): Ditto.
27554
27555 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
27556
27557         PR tree-optimization/48290
27558         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
27559         vectorization, check that relevant phis in the basic block after
27560         the inner loop are really inner loop's exit phis.
27561
27562 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
27563
27564         PR debug/48190
27565         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
27566         (cached_dw_loc_list_def): New structure.
27567         (cached_dw_loc_list): New typedef.
27568         (cached_dw_loc_list_table): New variable.
27569         (cached_dw_loc_list_table_hash): New function.
27570         (cached_dw_loc_list_table_eq): Likewise.
27571         (add_location_or_const_value_attribute): Take a bool cache_p.
27572         Cache the list when the parameter is true.
27573         (gen_formal_parameter_die): Update caller.
27574         (gen_variable_die): Likewise.
27575         (dwarf2out_finish): Likewise.
27576         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
27577         while generating debug info for the decl.
27578         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
27579         (dwarf2out_init): Initialize cached_dw_loc_list_table.
27580         (resolve_addr): Cache the result of resolving a chain of
27581         location lists.
27582
27583 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
27584
27585         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
27586         conflict object hard regset nodes have intersecting hard reg sets.
27587
27588         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
27589         after regstat_init_n_sets_and_refs.
27590
27591         * ira.c: Add more comments at the top.
27592         (setup_stack_reg_pressure_class, setup_pressure_classes):
27593         Add comments how we compute the register pressure classes.
27594         (setup_allocno_and_important_classes): Add more comments.
27595         (setup_class_translate_array, reorder_important_classes)
27596         (setup_reg_class_relations): Add comments.
27597
27598         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
27599         start of the file.
27600
27601         * ira-color.c: Add 2011 to the Copyright line.
27602         (assign_hard_reg):  Add more comments.
27603         (improve_allocation): Ditto.
27604
27605         * ira-costs.c: Add 2011 to the Copyright line.
27606         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
27607         comments.
27608         (setup_regno_cost_classes_by_mode): Ditto.
27609
27610         Initial patches from ira-improv branch:
27611
27612         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
27613
27614         * ira-build.c (ira_create_object): Remove initialization of
27615         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
27616         (ira_create_allocno): Remove initialization of
27617         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
27618         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
27619         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
27620         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
27621         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
27622         Initialize ALLOCNO_ADD_DATA.
27623         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
27624         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
27625         ALLOCNO_REG.
27626         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
27627         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
27628
27629         * ira.c (ira_reallocate): Remove.
27630         (setup_pressure_classes): Call
27631         ira_init_register_move_cost_if_necessary.  Use
27632         ira_register_move_cost instead of ira_get_register_move_cost.
27633         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
27634         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
27635
27636         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
27637         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
27638         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
27639         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
27640         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
27641         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
27642         Fix formatting.
27643         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
27644         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
27645         (struct allocno_color_data): New.
27646         (allocno_color_data_t): New typedef.
27647         (allocno_color_data): New definition.
27648         (ALLOCNO_COLOR_DATA): New macro.
27649         (struct object_color_data): New.
27650         (object_color_data_t): New typedef.
27651         (object_color_data): New definition.
27652         (OBJECT_COLOR_DATA): New macro.
27653         (update_copy_costs, calculate_allocno_spill_cost): Call
27654         ira_init_register_move_cost_if_necessary.  Use
27655         ira_register_move_cost instead of ira_get_register_move_cost.
27656         (move_spill_restore, update_curr_costs): Ditto.
27657         (allocno_spill_priority): Make it inline.
27658         (color_pass): Allocate and free allocno_color_dat and object_color_data.
27659         (struct coalesce_data, coalesce_data_t): New.
27660         (allocno_coalesce_data): New definition.
27661         (ALLOCNO_COALESCE_DATA): New macro.
27662         (merge_allocnos, coalesced_allocno_conflict_p): Use
27663         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
27664         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
27665         (coalesce_allocnos): Ditto.
27666         (setup_coalesced_allocno_costs_and_nums): Ditto.
27667         (collect_spilled_coalesced_allocnos): Ditto.
27668         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
27669         (setup_slot_coalesced_allocno_live_ranges): Ditto.
27670         (coalesce_spill_slots): Ditto.
27671         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
27672         free allocno_coalesce_data.
27673
27674         * ira-conflicts.c: Fix formatting.
27675         (process_regs_for_copy): Call
27676         ira_init_register_move_cost_if_necessary.  Use
27677         ira_register_move_cost instead of ira_get_register_move_cost.
27678         (build_object_conflicts): Optimize.
27679
27680         * ira-costs.c (record_reg_classes): Optimize.  Call
27681         ira_init_register_move_cost_if_necessary.  Use
27682         ira_register_move_cost, ira_may_move_in_cost, and
27683         ira_may_move_out_cost instead of ira_get_register_move_cost and
27684         ira_get_may_move_cost.
27685         (record_address_regs): Ditto.
27686         (scan_one_insn): Optimize.
27687         (find_costs_and_classes): Optimize.
27688         (process_bb_node_for_hard_reg_moves): Call
27689         ira_init_register_move_cost_if_necessary.  Use
27690         ira_register_move_cost instead of ira_get_register_move_cost.
27691
27692         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
27693         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
27694         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
27695         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
27696         definitions.
27697         (ira_initiate_emit_data, ira_finish_emit_data)
27698         (create_new_allocno): New functions.
27699         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
27700         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
27701         Use ira_register_move_cost instead of ira_get_register_move_cost.
27702
27703         * ira-int.h: Fix some comments.
27704         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
27705         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
27706         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
27707         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
27708         add_data.
27709         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
27710         bitfield after mode.  Make hard_regno a short int.  Make
27711         hard_regno short.  Remove first_coalesced_allocno and
27712         next_coalesced_allocno.  Move mem_optimized_dest_p,
27713         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
27714         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
27715         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
27716         temp, colorable_p.  Add new member add_data.
27717         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
27718         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
27719         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
27720         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
27721         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
27722         (ALLOCNO_ADD_DATA): New macro.
27723         (ira_emit_data_t): New typedef.
27724         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
27725         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
27726         from struct ira_allocno.
27727         (ALLOCNO_EMIT_DATA): New macro.
27728         (ira_allocno_emit_data, allocno_emit_reg): New.
27729         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
27730         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
27731         (OBJECT_ADD_DATA): New macro.
27732         (ira_reallocate): Remove.
27733         (ira_initiate_emit_data, ira_finish_emit_data): New.
27734         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
27735         (ira_init_register_move_cost_if_necessary): New.
27736         (ira_object_conflict_iter_next): Merge into
27737         ira_object_conflict_iter_cond.
27738         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
27739
27740         * ira-live.c (process_single_reg_class_operands): Call
27741         ira_init_register_move_cost_if_necessary.  Use
27742         ira_register_move_cost instead of ira_get_register_move_cost.
27743
27744         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
27745
27746         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
27747
27748         * ira-costs.c: Fix formatting.
27749         (cost_classes, cost_classes_num): Remove.
27750         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
27751         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
27752         (cost_classes_del, cost_classes_htab): New.
27753         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
27754         (initiate_regno_cost_classes, setup_cost_classes): New.
27755         (setup_regno_cost_classes_by_aclass): New.
27756         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
27757         (record_reg_classes): Use regno_cost_classes instead of
27758         cost_classes.  Move checking opposite operand up.
27759         (record_address_regs): Use regno_cost_classes
27760         instead of cost_classes.
27761         (scan_one_insn): Ditto.  Use always general register.
27762         (print_allocno_costs): Use regno_cost_classes instead of
27763         cost_classes.
27764         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
27765         (find_costs_and_classes): Set up cost classes for each registers.
27766         Use also their mode for this.  Use regno_cost_classes instead of
27767         cost_classes.
27768         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
27769         cost_classes.
27770         (free_ira_costs, ira_init_costs): Don't use cost_classes.
27771         (ira_costs, ira_set_pseudo_classes): Call
27772         initiate_regno_cost_classes and finish_regno_cost_classes.
27773
27774         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
27775
27776         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
27777
27778         * target.def (ira_cover_classes): Remove.
27779
27780         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
27781
27782         * doc/tm.texi.in: Ditto.
27783
27784         * ira-conflicts.c: Remove mentioning cover classes from the file.
27785         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
27786         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
27787
27788         * targhooks.c (default_ira_cover_classes): Remove.
27789
27790         * targhooks.h (default_ira_cover_classes): Ditto.
27791
27792         * haifa-sched.c: Remove mentioning cover classes from the file.
27793         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
27794         ira_pressure_classes and ira_pressure_classes_num instead of
27795         ira_reg_class_cover_size and ira_reg_class_cover.  Use
27796         sched_regno_pressure_class instead of sched_regno_cover_class.
27797         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
27798         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
27799
27800         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
27801         classes from the file.
27802         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
27803         (struct object_hard_regs, struct object_hard_regs_node): New.
27804         (struct ira_object): New members profitable_hard_regs,
27805         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
27806         (struct ira_allocno): Rename cover_class to aclass.  Rename
27807         cover_class_cost and updated_cover_class_cost to class_cost and
27808         updated_class_cost.  Remove splay_removed_p and
27809         left_conflict_size.  Add new members colorable_p.
27810         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
27811         (ALLOCNO_COLORABLE_P): New macro.
27812         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
27813         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
27814         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
27815         (OBJECT_...): Rename parameter C to O.
27816         (OBJECT_PROFITABLE_HARD_REGS): New macro.
27817         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
27818         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
27819         (struct target_ira_int): New members x_ira_max_memory_move_cost,
27820         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
27821         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
27822         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
27823         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
27824         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
27825         x_ira_reg_class_subunion.
27826         (ira_max_memory_move_cost, ira_max_register_move_cost)
27827         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
27828         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
27829         (ira_important_class_nums, ira_reg_class_superunion): New macros.
27830         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
27831         (ira_reg_class_union): Rename to ira_reg_class_subunion.
27832         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
27833         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
27834         (ira_tune_allocno_costs_and_cover_classes): Rename to
27835         ira_tune_allocno_costs.
27836         (ira_debug_hard_regs_forest): New.
27837         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
27838         (ira_object_conflict_iter_next): Fix comments.
27839         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
27840         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
27841         cover_class to aclass.
27842         (ira_allocate_and_accumulate_costs): Ditto.
27843         (ira_allocate_and_set_or_copy_costs): Ditto.
27844
27845         * opts.c (decode_options): Remove ira_cover_class check.
27846
27847         * ira-color.c: Remove mentioning cover classes from the file.  Use
27848         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
27849         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
27850         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
27851         (splay-tree.h): Remove include.
27852         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
27853         before copy_freq_compare_func.
27854         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
27855         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
27856         New definitions.
27857         (hard_regs_roots, hard_regs_node_vec): Ditto.
27858         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
27859         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
27860         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
27861         (create_new_object_hard_regs_node): Ditto.
27862         (add_new_object_hard_regs_node_to_forest): Ditto.
27863         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
27864         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
27865         Ditto.
27866         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
27867         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
27868         (remove_unused_object_hard_regs_nodes): Ditto.
27869         (enumerate_object_hard_regs_nodes): Ditto.
27870         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
27871         (object_hard_regs_subnode_t): Ditto.
27872         (struct object_hard_regs_subnode): Ditto.
27873         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
27874         (setup_object_hard_regs_subnode_index): Ditto.
27875         (get_object_hard_regs_subnodes_num): Ditto.
27876         (form_object_hard_regs_nodes_forest): Ditto.
27877         (finish_object_hard_regs_nodes_tree): Ditto.
27878         (finish_object_hard_regs_nodes_forest): Ditto.
27879         (allocnos_have_intersected_live_ranges_p): Rename to
27880         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
27881         (pseudos_have_intersected_live_ranges_p): Rename to
27882         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
27883         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
27884         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
27885         (update_copy_costs): Remove assert.  Skip cost update if the hard
27886         reg does not belong the class.
27887         (assign_hard_reg): Process only profitable hard regs.
27888         (uncolorable_allocnos_num): Make it scalar.
27889         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
27890         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
27891         and ira_reg_class_max_nregs.
27892         (bucket_allocno_compare_func): Check frequency first.
27893         (sort_bucket): Add compare function as a parameter.
27894         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
27895         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
27896         (push_allocno_to_stack): Rewrite for checking new allocno
27897         colorability.
27898         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
27899         (push_only_colorable): Pass new parameter to sort_bucket.
27900         (push_allocno_to_spill): Remove.
27901         (allocno_spill_priority_compare): Make it inline and rewrite.
27902         (splay_tree_allocate, splay_tree_free): Remove.
27903         (allocno_spill_sort_compare): New function.
27904         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
27905         build and use splay tree.  Choose first allocno in uncolorable
27906         allocno bucket to spill.  Remove setting spill cost.
27907         (all_conflicting_hard_regs): Remove.
27908         (setup_allocno_available_regs_num): Check only profitable hard
27909         regs.  Print info about hard regs nodes.
27910         (setup_allocno_left_conflicts_size): Remove.
27911         (put_allocno_into_bucket): Don't call
27912         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
27913         (improve_allocation): New.
27914         (color_allocnos): Call setup_profitable_hard_regs,
27915         form_object_hard_regs_nodes_forest, improve_allocation,
27916         finish_object_hard_regs_nodes_forest.  Setup spill cost.
27917         (print_loop_title): Use pressure classes.
27918         (color_allocnso): Ditto.
27919         (do_coloring): Remove allocation and freeing splay_tree_node_pool
27920         and allocnos_for_spilling.
27921         (ira_sort_regnos_for_alter_reg): Don't setup members
27922         {first,next}_coalesced_allocno.
27923         (color): Remove allocating and freeing removed_splay_allocno_vec.
27924         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
27925         prohibited_class_mode_regs.
27926
27927         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
27928         formatting.
27929         (update_allocno_pressure_excess_length): Use pressure classes.
27930         (inc_register_pressure, dec_register_pressure): Check for pressure
27931         class.
27932         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
27933         pressure class.  Use ira_reg_class_nregs instead of
27934         ira_reg_class_max_nregs.
27935         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
27936         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
27937         (single_reg_class): Use ira_reg_class_nregs instead of
27938         ira_reg_class_max_nregs.
27939         (process_bb_node_lives): Use pressure classes.
27940
27941         * ira-emit.c: Remove mentioning cover classes from the file.  Use
27942         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
27943         (change_loop): Use pressure classes.
27944         (modify_move_list): Call ira_set_allocno_class instead of
27945         ira_set_allocno_cover_class.
27946
27947         * ira-build.c: Remove mentioning cover classes from the file.  Use
27948         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
27949         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
27950         ALLOCNO_UPDATED_CLASS_COST instead of
27951         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
27952         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
27953         (ira_create_allocno): Remove initialization of
27954         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
27955         ALLOCNO_COLORABLE_P.
27956         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
27957         Update conflict regs for the objects.
27958         (create_cap_allocno): Remove assert.  Don't propagate
27959         ALLOCNO_AVAILABLE_REGS_NUM.
27960         (ira_free_allocno_costs): New function.
27961         (finish_allocno): Change a part of code into call of
27962         ira_free_allocno_costs.
27963         (low_pressure_loop_node_p): Use pressure classes.
27964         (object_range_compare_func): Don't compare classes.
27965         (setup_min_max_conflict_allocno_ids): Ditto.
27966
27967         * loop-invariant.c: Remove mentioning cover classes from the file.
27968         Use ira_pressure_classes and ira_pressure_classes_num instead of
27969         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
27970         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
27971         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
27972         Use reg_allocno_class instead of reg_cover_class.
27973         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
27974         STACK_REG_COVER_CLASS.
27975         (get_regno_cover_class): Rename to get_regno_pressure_class.
27976         (move_loop_invariants): Initialize and finalize regstat.
27977
27978         * ira.c: Remove mentioning cover classes from the file.  Add
27979         comments about coloring without cover classes.  Use ALLOCNO_CLASS
27980         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
27981         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
27982         setup_class_subset_and_memory_move_costs.
27983         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
27984         (setup_cover_and_important_classes): Rename to
27985         setup_allocno_and_important_classes.
27986         (setup_class_translate_array): New.
27987         (setup_class_translate): Call it for allocno and pressure classes.
27988         (cover_class_order): Rename to allocno_class_order.
27989         (comp_reg_classes_func): Use ira_allocno_class_translate instead
27990         of ira_class_translate.
27991         (reorder_important_classes): Set up ira_important_class_nums.
27992         (setup_reg_class_relations): Set up ira_reg_class_superunion.
27993         (print_class_cover): Rename to print_classes.  Add parameter.
27994         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
27995         Print pressure classes too.
27996         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
27997         setup_reg_subclasses.
27998         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
27999         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
28000         (setup_prohibited_class_mode_regs): Use
28001         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
28002         (clarify_prohibited_class_mode_regs): New function.
28003         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
28004         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
28005         (ira_init_once): Initialize them.
28006         (free_register_move_costs): Process them.
28007         (ira_init): Move calls of find_reg_classes and
28008         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
28009         Call clarify_prohibited_class_mode_regs.
28010         (ira_no_alloc_reg): Remove.
28011         (too_high_register_pressure_p): Use pressure classes.
28012
28013         * sched-deps.c: Remove mentioning cover classes from the file.
28014         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
28015         ira_pressure_classes and ira_pressure_classes_num instead of
28016         ira_reg_class_cover_size and ira_reg_class_cover.
28017         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
28018         sched_regno_pressure_class instead of sched_regno_cover_class.
28019         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
28020         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
28021
28022         * ira.h: Add 2010 to Copyright.
28023         (ira_no_alloc_reg): Remove external.
28024         (struct target_ira): Rename x_ira_hard_regno_cover_class,
28025         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
28026         x_ira_class_translate to x_ira_hard_regno_allocno_class,
28027         x_ira_allocno_classes_num, x_ira_allocno_classes, and
28028         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
28029         x_ira_pressure_classes, x_ira_pressure_class_translate, and
28030         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
28031         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
28032         x_ira_no_alloc_regs.
28033         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
28034         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
28035         ira_allocno_classes_num and ira_allocno_classes.
28036         (ira_class_translate): Rename to ira_allocno_class_translate.
28037         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
28038         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
28039         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
28040         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
28041         (ira_no_alloc_regs): New.
28042
28043         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
28044         classes from the file.  Use ALLOCNO_CLASS instead of
28045         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
28046         ALLOCNO_COVER_CLASS_COST.
28047         (regno_cover_class): Rename to regno_aclass.
28048         (record_reg_classes): Use ira_reg_class_subunion instead of
28049         ira_reg_class_union.
28050         (record_address_regs): Check overflow.
28051         (scan_one_insn): Ditto.
28052         (print_allocno_costs): Print total mem cost fore regional allocation.
28053         (print_pseudo_costs): Use REG_N_REFS.
28054         (find_costs_and_classes): Use classes intersected with them on the
28055         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
28056         ira_reg_class_union.  Use ira_allocno_class_translate and
28057         regno_aclass instead of ira_class_translate and regno_cover_class.
28058         Modify code for finding regno_aclass.  Setup preferred classes for
28059         the next pass.
28060         (setup_allocno_cover_class_and_costs): Rename to
28061         setup_allocno_class_and_costs.  Use regno_aclass instead of
28062         regno_cover_class.  Use ira_set_allocno_class instead of
28063         ira_set_allocno_cover_class.
28064         (init_costs, finish_costs): Use regno_aclass instead of
28065         regno_cover_class.
28066         (ira_costs): Use setup_allocno_class_and_costs instead of
28067         setup_allocno_cover_class_and_costs.
28068         (ira_tune_allocno_costs_and_cover_classes): Rename to
28069         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
28070         by processing objects.  Use ira_reg_class_max_nregs instead of
28071         ira_reg_class_nregs.
28072
28073         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
28074
28075         * sched-int.h: Remove mentioning cover classes from the file.
28076         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
28077
28078         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
28079         classes from the file.
28080         (struct reg_pref): Rename coverclass into allocnoclass.
28081         (reg_cover_class): Rename to reg_allocno_class.
28082
28083         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
28084
28085         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
28086
28087         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
28088
28089         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
28090
28091         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
28092
28093         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
28094
28095         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
28096
28097         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
28098
28099         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
28100
28101         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
28102
28103         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
28104         (i386_ira_cover_classes): Ditto.
28105
28106         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
28107
28108         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
28109
28110         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
28111
28112         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
28113
28114         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
28115
28116         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
28117
28118         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
28119         (mips_ira_cover_classes): Ditto.
28120
28121         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
28122
28123         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
28124
28125         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
28126
28127         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
28128
28129         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
28130
28131         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
28132         (IRA_COVER_CLASSES_VSX): Ditto.
28133
28134         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
28135         (rs6000_ira_cover_classes): Ditto.
28136
28137         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
28138
28139         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
28140
28141         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
28142
28143         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
28144
28145         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
28146
28147         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
28148
28149         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
28150
28151         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
28152
28153         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
28154
28155         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
28156
28157 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
28158
28159         PR debug/48253
28160         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
28161         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
28162         dw_fde_unlikely_section_end_label, cold_in_std_section,
28163         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
28164         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
28165         fields.
28166         (output_fde): Use dw_fde_second_{begin,end} if second is
28167         true, otherwise dw_fde_{begin,end}.
28168         (output_call_frame_info): Test dw_fde_second_begin != NULL
28169         instead of dw_fde_switched_sections.
28170         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
28171         fields, initialize new fields.  Initialize in_std_section
28172         unconditionally from the first partition.
28173         (dwarf2out_end_epilogue): Don't override dw_fde_end when
28174         dw_fde_second_begin is non-NULL.
28175         (dwarf2out_switch_text_section): Stop initializing removed
28176         dw_fde_struct fields, initialize new fields, initialize
28177         also dw_fde_end here.  Set dw_fde_switch_cfi even when
28178         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
28179         (struct var_loc_list_def): Add last_before_switch field.
28180         (arange_table, arange_table_allocated, arange_table_in_use,
28181         ARANGE_TABLE_INCREMENT, add_arange): Removed.
28182         (size_of_aranges): Count !in_std_section and !second_in_std_section
28183         hunks in fdes, instead of looking at arange_table_in_use.
28184         (output_aranges): Add aranges_length argument, don't call
28185         size_of_aranges here.  Instead of using aranges_table*
28186         emit ranges for fdes when !in_std_section resp.
28187         !second_in_std_section.
28188         (dw_loc_list): Break ranges crossing section switch.
28189         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
28190         use dw_fde_second_end instead of dw_fde_end as end of last range.
28191         (gen_subprogram_die): Don't call add_arange.  Use
28192         dw_fde_{begin,end} for first partition and if switched
28193         section dw_fde_second_{begin,end} for the second.
28194         (var_location_switch_text_section_1,
28195         var_location_switch_text_section): New functions.
28196         (dwarf2out_begin_function): Initialize cold_text_section even
28197         when function_section () isn't text_section.
28198         (prune_unused_types): Don't walk arange_table.
28199         (dwarf2out_finish): Don't needlessly test
28200         flag_reorder_blocks_and_partition when testing cold_text_section_used.
28201         If info_section_emitted, call size_of_aranges and if it indicates
28202         non-empty .debug_aranges, call output_aranges with the computed
28203         size.  Stop using removed dw_fde_struct fields, use
28204         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
28205         for second.
28206
28207         PR debug/48203
28208         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
28209         create ENTRY_VALUE if incoming or address of incoming's MEM
28210         is a hard REG.
28211         * dwarf2out.c (mem_loc_descriptor): Don't emit
28212         DW_OP_GNU_entry_value of DW_OP_fbreg.
28213         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
28214         on ENTRY_VALUE is able to find the canonical parameter VALUE.
28215         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
28216         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
28217         ENTRY_VALUE_EXPs.
28218         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
28219         is a REG_P or MEM_P with REG_P address, compute hash directly
28220         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
28221         (preserve_only_constants): Don't clear VALUES forwaring
28222         ENTRY_VALUE to some other VALUE.
28223
28224 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
28225
28226         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
28227         instead of GEN_INT.
28228
28229 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
28230
28231         * cfgexpand.c (expand_gimple_cond): Always set the source location and
28232         block before expanding the statement.
28233         (expand_gimple_stmt_1): Likewise.  Set them here...
28234         (expand_gimple_stmt): ...and not here.  Tidy.
28235         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
28236         unknown.
28237
28238 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
28239
28240         * Makefile.in: New rule for cprop.o.
28241         * gcse.c: Move constant/copy propagation to cprop.c.
28242         (compute_local_properties): Only handle expression tables.
28243         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
28244         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
28245         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
28246         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
28247         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
28248         compute_cprop_data, find_used_regs, try_replace_reg,
28249         find_avail_set, cprop_jump, constprop_register, cprop_insn,
28250         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
28251         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
28252         find_bypass_set, reg_killed_on_edge, bypass_block,
28253         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
28254         execute_rtl_cprop, pass_rtl_cprop): Move to...
28255         * cprop.c: ...here.  New file, constant/copy propagation for RTL
28256         moved from gcse.c to here with minor cleanups in duplicated code.
28257
28258 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
28259
28260         * config/i386/i386.c (flag_opts): Fix a typo in
28261         -mavx256-split-unaligned-store.
28262
28263 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
28264
28265         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
28266         LIBCALL_VALUE): Remove macros.
28267         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28268         TARGET_FUNCTION_VALUE_REGNO_P): Define.
28269         (h8300_function_value, h8300_libcall_value,
28270         h8300_function_value_regno_p): New functions.
28271
28272 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
28273
28274         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
28275
28276 2011-03-28  Jeff Law  <law@redhat.com>
28277
28278         * tree-ssa-threadupdate.c (redirect_edges): Call
28279         create_edge_and_update_destination_phis as needed.
28280         (create_edge_and_update_destination_phis): Accept new BB argument.
28281         All callers updated.
28282         (thread_block): Do not update the profile when threading around
28283         intermediate blocks.
28284         (thread_single_edge): Likewise.
28285         (determine_bb_domination_status): If BB is not a successor of the
28286         loop header, return NONDOMINATING.
28287         (register_jump_thread): Note when we register a jump thread around
28288         an intermediate block.
28289         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
28290         (thread_across_edge): Use it.
28291
28292 2011-03-28  Tristan Gingold  <gingold@adacore.com>
28293
28294         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
28295         when for_return is 2.
28296
28297 2011-03-28  Jeff Law  <law@redhat.com>
28298
28299         * var-tracking.c (canonicalize_values_mark): Delete unused
28300         lhs assignment.
28301         (canonicalize_values_star, set_variable_part): Likewise.
28302         (clobber_variable_part, delete_variable_part): Likewise.
28303
28304 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
28305
28306         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
28307
28308 2011-03-28  Martin Jambor  <mjambor@suse.cz>
28309
28310         * tree-inline.c (expand_call_inline): Do not check that destination
28311         node is analyzed.
28312         (optimize_inline_calls): Assert that destination node is analyzed.
28313         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
28314         not call tree_lowering_passes.
28315         * cgraph.h (cgraph_analyze_function): Declare.
28316         * cgraphunit.c (cgraph_analyze_function): Make public.
28317
28318 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
28319
28320         * config/sparc/sparc-opts.h: New.
28321         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
28322         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
28323         (sparc_option_override): Store processor_type enumeration rather
28324         than string in cpu_default.  Remove name and enumeration from
28325         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
28326         without using sparc_select.  Use target_flags_explicit instead of
28327         fpu_option_set.
28328         * config/sparc/sparc.h (enum processor_type): Move to
28329         sparc-opts.h.
28330         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
28331         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
28332         HeaderInclude entry.
28333         (mcpu=, mtune=): Use Var and Enum.
28334         (sparc_processor_type): New Enum and EnumValue entries.
28335
28336 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28337             Iain Sandoe  <iains@gcc.gnu.org>
28338
28339         PR target/48245
28340         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
28341
28342 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
28343
28344         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
28345         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
28346         Insert new statements at it in lieu of STMT.
28347         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
28348         * tree-vect-stmts.c (vectorizable_store): Likewise.
28349         (vectorizable_load): Likewise.
28350
28351 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
28352
28353         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
28354         (divtf3): Ditto.
28355         (multf3): Ditto.
28356         (subtf3): Ditto.
28357
28358 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
28359
28360         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
28361         unaligned 256bit load/store.
28362         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
28363         (*avx_movdqu<avxmodesuffix>): Likewise.
28364
28365 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28366
28367         PR target/48288
28368         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
28369         * config/pa/pa.md (iordi3): Use new predicate in expander.
28370         (iorsi3): Likewise.
28371
28372 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
28373
28374         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
28375         FUNCTION_VALUE_REGNO_P): Remove macros.
28376         * config/mips/mips-protos.h (mips_function_value): Remove.
28377         * config/mips/mips.c (mips_function_value): Rename to...
28378         (mips_function_value_1): ... this. Make static.  Handle receiving
28379         the function type in 'fn_decl_or_type' argument.
28380         (mips_function_value, mips_libcall_value,
28381         mips_function_value_regno_p): New function.
28382         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28383         TARGET_FUNCTION_VALUE_REGNO_P): Define.
28384
28385 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
28386
28387         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
28388         and -mavx256-split-unaligned-store.
28389         (ix86_option_override_internal): Split 32-byte AVX unaligned
28390         load/store by default.
28391         (ix86_avx256_split_vector_move_misalign): New.
28392         (ix86_expand_vector_move_misalign): Use it.
28393
28394         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
28395         -mavx256-split-unaligned-store.
28396
28397         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
28398         256bit load/store.  Generate unaligned store on misaligned memory
28399         operand.
28400         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
28401         256bit load/store.
28402         (*avx_movdqu<avxmodesuffix>): Likewise.
28403
28404         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
28405         -mavx256-split-unaligned-store.
28406
28407 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
28408
28409         PR target/38598
28410         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
28411         Update commentary.
28412
28413 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
28414
28415         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
28416         opno arguments with an expand_operand.  Use create_input_operand.
28417         (mips_prepare_builtin_target): Delete.
28418         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
28419         functions.
28420         (mips_expand_builtin_direct): Use create_output_operand and
28421         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
28422         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
28423         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
28424
28425 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
28426
28427         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
28428         function.
28429         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
28430
28431 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
28432
28433         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
28434         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
28435         basic blocks and call commit_edge_insertions directly.
28436         (fixup_abnormal_edges): Move from here to...
28437         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
28438         on the edges and return whether some have actually been inserted.
28439         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
28440         compensation code.
28441
28442 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
28443
28444         PR rtl-optimization/48144
28445         * sel-sched-ir.c (merge_history_vect): Factor out from ...
28446         (merge_expr_data): ... here.
28447         (av_set_intersect): Rename to av_set_code_motion_filter.
28448         Update all callers.  Call merge_history_vect when an expression
28449         is found in both sets.
28450         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
28451
28452 2011-03-26  Alan Modra  <amodra@gmail.com>
28453
28454         * config/rs6000/predicates.md (word_offset_memref_op): Handle
28455         cmodel medium addresses.
28456         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
28457         64-bit gpr loads and stores.
28458         (rs6000_secondary_reload_ppc64): New function.
28459         * config/rs6000/rs6000-protos.h: Declare it.
28460         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
28461
28462 2011-03-26  Alan Modra  <amodra@gmail.com>
28463
28464         PR target/47487
28465         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
28466         GNU Go in traceback table.
28467
28468 2011-03-25  Richard Henderson  <rth@redhat.com>
28469
28470         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
28471         if there are exactly 6 operands.
28472         (set_storage_via_setmem): Similarly.
28473
28474 2011-03-25  Kai Tietz  <ktietz@redhat.com>
28475
28476         * collect2.c (write_c_file_stat): Handle backslash
28477         as right-hand directory separator.
28478         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
28479         checking just for slash.
28480         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
28481         instead of checking for trailing slash.
28482         * gcc.c (record_temp_file): Use filename_cmp instead
28483         of strcmp.
28484         (do_spec_1): Likewise.
28485         (replace_outfile_spec_function): Likewise.
28486         (is_directory): Use filename_ncmp instead of strncmp.
28487         (print_multilib_info): Likewise.
28488         * gcov.c (find_source): Use filename_cmp instead
28489         instead of strcmp.
28490         (make_gcov_file_name): Fix order of slash/backslash
28491         checks.
28492         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
28493         (add_standard_paths): Likewise.
28494         * mips-tfile.c (saber_stop): Handle backslash.
28495         * prefix.c (update_path): Use filename_ncmp instead of
28496         strncmp.
28497         * profile.c (output_location): Use filename_cmp instead
28498         of strcmp.
28499         * read-md.c (handle_toplevel_file): Handle backslash.
28500         * tlink.c (frob_extension):  Likewise.
28501         * tree-cfg.c (same_line_p): Use filename_cmp instead of
28502         strcmp.
28503         * tree-dump.c (dequeue_and_dump): Handle backslash.
28504         * tree.c (get_file_function_name): Likewise.
28505         * gengtype.c (read_input_list): Likewise.
28506         (get_file_realbasename): Likewise.
28507         (get_output_file_with_visibility): Use filename_cmp
28508         instead of strcmp.
28509
28510 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
28511
28512         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
28513         case to VFPv1.
28514
28515 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
28516
28517         * fold-const.c (expr_location_or): New function.
28518         (fold_truth_not_expr): Call it.
28519
28520 2011-03-25  Jeff Law  <law@redhat.com>
28521
28522         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
28523         va_end.
28524         * c-family/c-common.c (def_fn_type): Likewise.
28525         * emit-rtl.c (gen_rtvec): Likewise.
28526         * lto/lto-lang.c (def_fn_type): Likewise.
28527
28528 2011-03-25  Richard Guenther  <rguenther@suse.de>
28529
28530         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
28531         also generate copies.
28532         (fini_copy_prop): Handle constant values properly.
28533
28534 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
28535
28536         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
28537         mode size instead of bitsize with DWARF2_ADDR_SIZE.
28538         (hash_loc_operands, compare_loc_operands): Handle
28539         DW_OP_GNU_entry_value.
28540
28541 2011-03-25  Kai Tietz  <ktietz@redhat.com>
28542
28543         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
28544         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
28545         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
28546         comment and use macro TARGET_64BIT_MS_ABI instead.
28547         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
28548         and change default behavior for 32-bit MS_ABI.
28549         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
28550         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
28551         32-bit, too.
28552         (ix86_cfun_abi): Likewise.
28553         (ix86_maybe_switch_abi): Adjust comment.
28554         (init_cumulative_args): Check for bit-ness in MS_ABI case.
28555         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
28556         instead of checking for SYSV_ABI.
28557         (ix86_nsaved_sseregs): Likewise.
28558         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
28559         to 16 bytes.
28560         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
28561         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
28562         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
28563         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
28564         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
28565
28566 2011-03-25  Richard Guenther  <rguenther@suse.de>
28567
28568         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
28569         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
28570         (verify_gimple): Remove.
28571         * tree-cfg.c (verify_gimple_call): Merge verification
28572         from verify_stmts.
28573         (verify_gimple_phi): Merge verification from verify_stmts.
28574         (verify_gimple_label): New function.
28575         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
28576         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
28577         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
28578         (verify_stmts): Rename to verify_gimple_in_cfg.
28579         (verify_gimple_in_cfg): New function.
28580         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
28581         * tree-ssa.c (verify_ssa): Likewise.
28582         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
28583
28584 2011-03-25  Richard Guenther  <rguenther@suse.de>
28585
28586         * passes.c (init_optimization_passes): Add FRE pass after
28587         early SRA.
28588
28589 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
28590             Andrew Stubbs  <ams@codesourcery.com>
28591
28592         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
28593         for Cortex-A8.
28594         (arm_movdi_vfp_cortexa8): New pattern.
28595         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
28596         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
28597         instructions when tuning for Cortex-A8.  Set attribute "arch".
28598         * config/arm/arm.md: Move include arm-tune.md up a bit.
28599         (define_attr "arch"): Add "onlya8" and "nota8" values.
28600         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
28601
28602 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
28603
28604         PR bootstrap/48282
28605         Revert:
28606         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
28607
28608         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
28609         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
28610         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
28611         * passes.c (init_optimization_passes): Move
28612         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
28613
28614 2011-03-25  Kai Tietz  <ktietz@redhat.com>
28615
28616         * c-typeck.c (comptypes_internal): Replace target
28617         hook call of comp_type_attributes by version in tree.c file.
28618         * gimple.c (gimple_types_compatible_p_1): Likewise.
28619         * tree-ssa.c (useless_type_conversion_p): Likewise.
28620         * tree.c (build_type_attribute_qual_variant): Likewise.
28621         (attribute_value_equal): New static helper function.
28622         (comp_type_attributes): New function.
28623         (merge_attributes): Use attribute_value_equal for comparison.
28624         (attribute_list_contained): Likewise.
28625         * tree.h (comp_type_attributes): New prototype.
28626
28627 2011-03-25  Richard Guenther  <rguenther@suse.de>
28628
28629         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
28630         of complex types at -O0.
28631         (verify_gimple_assign_binary): Likewise.
28632         (verify_gimple_assign_ternary): Likewise.
28633
28634 2011-03-24  Mark Wielaard  <mjw@redhat.com>
28635
28636         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
28637         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
28638
28639 2011-03-24  Mark Wielaard  <mjw@redhat.com>
28640
28641         PR debug/48041
28642         * dwarf2out.c (output_abbrev_section): Only write table when
28643         abbrev_die_table_in_use > 1.
28644
28645 2011-02-24  Richard Henderson  <rth@redhat.com>
28646
28647         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
28648         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
28649         (alpha_expand_unaligned_load_words): Use extql.
28650         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
28651         (emit_insxl): Handle all modes for consistency.
28652
28653 2011-02-24  Richard Henderson  <rth@redhat.com>
28654
28655         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
28656         (alpha_expand_unaligned_load): Likewise.
28657         (alpha_expand_unaligned_store): Likewise.
28658         (alpha_expand_unaligned_load_words): Likewise.
28659         (alpha_expand_unaligned_store_words): Likewise.
28660         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
28661         (alpha_split_lock_test_and_set_12): Likewise.
28662         (print_operand, alpha_fold_builtin_extxx): Likewise.
28663         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
28664         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
28665         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
28666         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
28667         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
28668         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
28669         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
28670         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
28671         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
28672         (extwl, extll, extql): Similarly.
28673         (inswh, inslh, insqh): Similarly.
28674         (mskbl, mskwl, mskll, mskql): Similarly.
28675         (mskwh, msklh, mskqh): Similarly.
28676
28677 2011-02-24  Richard Henderson  <rth@redhat.com>
28678
28679         * config/alpha/alpha.md (attribute isa): Add er, ner.
28680         (attribute enabled): Handle them.
28681         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
28682
28683 2011-02-24  Richard Henderson  <rth@redhat.com>
28684
28685         * config/alpha/alpha.md (attribute isa): Add vms.
28686         (attribute enabled): Handle it.
28687         (*movsf): Merge *movsf_{nofix,fix,nofp}.
28688         (*movdf): Merge *movdf_{nofix,fix,nofp}.
28689         (*movtf): Rename from *movtf_internal for consistency.
28690         (*movsi): Merge with *movsi_nt_vms.
28691         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
28692         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
28693         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
28694         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
28695
28696 2011-02-24  Richard Henderson  <rth@redhat.com>
28697
28698         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
28699         (extendqisi2, extendhisi2): Likewise.
28700         (extendqidi2): Simplify BWX/non-BWX expansions.
28701         (extendhidi2): Similarly.
28702
28703 2011-02-24  Richard Henderson  <rth@redhat.com>
28704
28705         * config/alpha/alpha.md (attribute isa): New.
28706         (attribute enabled): New.
28707         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
28708         (zero_extendqisi2, zero_extendqidi2): Similarly.
28709         (zero_extendhisi2, zero_extendhidi2): Similarly.
28710         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
28711
28712 2011-02-24  Richard Henderson  <rth@redhat.com>
28713
28714         * config/alpha/predicates.md (input_operand): Revert last change;
28715         update comment to mention 32-bit VMS rather than Windows.
28716
28717 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
28718
28719         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
28720         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
28721         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
28722         * passes.c (init_optimization_passes): Move
28723         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
28724
28725 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
28726
28727         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
28728
28729 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
28730
28731         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
28732         correctly.
28733
28734 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
28735
28736         PR debug/48204
28737         * simplify-rtx.c (simplify_const_unary_operation): Call
28738         real_convert when changing mode class with FLOAT_EXTEND.
28739
28740 2011-03-24  Nick Clifton  <nickc@redhat.com>
28741
28742         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
28743         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
28744         * config/rx/rx.c (rx_option_override): Set align_jumps,
28745         align_loops and align_labels if not set by the user.
28746         (rx_align_for_label): New function.
28747         (rx_max_skip_for_label): New function.
28748         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
28749         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
28750         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
28751         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
28752         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
28753
28754 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
28755
28756         PR rtl-optimization/48263
28757         * optabs.c (expand_binop_directly): Reinstate convert_modes code
28758         and original commutative_p handling.  Use maybe_gen_insn.
28759
28760 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28761
28762         * reload.c (find_reloads_subreg_address): Add address_reloaded
28763         parameter and return true there if the full address has been
28764         reloaded.
28765         (find_reloads_toplev): Pass address_reloaded flag.
28766         (find_reloads_address_1): Don't use address_reloaded parameter.
28767
28768 2011-03-24  Jeff Law  <law@redhat.com>
28769
28770         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
28771         unused variable "ann".
28772         (remove_unused_locals): Likewise.
28773
28774         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
28775         statement.
28776
28777         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
28778         after it is freed.
28779
28780 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28781
28782         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
28783         for invalid symbolic addresses.
28784         (s390_secondary_reload): Don't use s390_check_symref_alignment for
28785         larl operands.
28786
28787 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
28788
28789         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
28790         the argument in calls to fold_truth_not_expr.
28791
28792 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
28793
28794         * tree.c (record_node_allocation_statistics): New function.
28795         (make_node_stat, copy_node_stat, build_string): Call it.
28796         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
28797         (build1_stat, build_omp_clause): Likewise.
28798
28799 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
28800
28801         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
28802         last commit.
28803
28804 2011-03-24  Richard Guenther  <rguenther@suse.de>
28805
28806         PR tree-optimization/48271
28807         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
28808         blocks that still exist.
28809
28810 2011-03-24  Richard Guenther  <rguenther@suse.de>
28811
28812         PR tree-optimization/48270
28813         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
28814         not free datarefs before ddrs.
28815
28816 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
28817
28818         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
28819         from the address built for a reference with variable offset.
28820
28821 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
28822
28823         PR target/48237
28824         * config/i386/i386.md (*movdf_internal_rex64): Do not split
28825         alternatives that can be handled with movq or movabsq insn.
28826         (*movdf_internal): Disable for !TARGET_64BIT.
28827         (*movdf_internal_nointeger): Ditto.
28828         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
28829
28830 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
28831
28832         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
28833         (FUNCTION_ARG_ADVANCE): Likewise.
28834         * tm.texi.in: Change references to them to hook references.
28835         * tm.texi: Regenerate.
28836         * targhooks.c (default_function_arg): Eliminate check for target macro.
28837         (default_function_incoming_arg): Likewise.
28838         (default_function_arg_advance): Likewise.
28839         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
28840         (function_arg_advance): Likewise.
28841         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
28842
28843 2011-03-24  Richard Guenther  <rguenther@suse.de>
28844
28845         PR middle-end/48269
28846         * tree-object-size.c (addr_object_size): Do not double-account
28847         for MEM_REF offsets.
28848
28849 2011-03-24  Diego Novillo  <dnovillo@google.com>
28850
28851         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
28852         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
28853         (lto_input_data_block): Move from lto-opts.c.  Make extern.
28854         Update all users.
28855         (lto_input_string): Rename from input_string.  Make extern.
28856         Update all users.
28857         * lto-streamer-out.c (lto_output_string_with_length): Rename from
28858         output_string_with_length.
28859         Output 0 to indicate a non-NULL string.  Update all callers to
28860         not emit 0.
28861         (lto_output_string): Rename from output_string.  Make extern.
28862         Update all users.
28863         (lto_output_decl_state_streams): Make extern.
28864         (lto_output_decl_state_refs): Make extern.
28865         * lto-streamer.h (lto_input_string): Declare.
28866         (lto_input_data_block): Declare.
28867         (lto_output_string): Declare.
28868         (lto_output_string_with_length): Declare.
28869         (lto_output_decl_state_streams): Declare.
28870         (lto_output_decl_state_refs): Declare.
28871
28872 2011-03-24  Richard Guenther  <rguenther@suse.de>
28873
28874         PR tree-optimization/46562
28875         * tree.c (build_invariant_address): New function.
28876         * tree.h (build_invariant_address): Declare.
28877         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
28878         a renamed function moved ...
28879         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
28880         Take valueization callback parameter.
28881         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
28882         * gimple-fold.h: New file.
28883         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
28884         (ccp_fold, fold_const_aggregate_ref,
28885         fold_ctor_reference, fold_nonarray_ctor_reference,
28886         fold_array_ctor_reference, fold_string_cst_ctor_reference,
28887         get_base_constructor): Move ...
28888         * gimple-fold.c: ... here.
28889         (gimple_fold_stmt_to_constant_1): New function
28890         split out from ccp_fold.  Take a valueization callback parameter.
28891         Valueize all operands.
28892         (gimple_fold_stmt_to_constant): New wrapper function.
28893         (fold_const_aggregate_ref_1): New function split out from
28894         fold_const_aggregate_ref.  Take a valueization callback parameter.
28895         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
28896         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
28897         invariant POINTER_PLUS_EXPRs to invariant form.
28898         (vn_valueize): New function.
28899         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
28900         * tree-vrp.c (vrp_valueize): New function.
28901         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
28902         to fold statements to constants.
28903         * tree-ssa-pre.c (eliminate): Properly guard propagation of
28904         function declarations.
28905         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
28906         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
28907
28908 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
28909
28910         * config/h8300/predicates.md (jump_address_operand): Fix register
28911         mode check.
28912
28913 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
28914
28915         * doc/invoke.texi (max-stores-to-sink): Document.
28916         * params.h (MAX_STORES_TO_SINK): Define.
28917         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
28918         if either vectorization or if-conversion is disabled.
28919         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
28920         tree-vect-data-refs.c vect_equal_offsets.
28921         (dr_equal_offsets_p): New function.
28922         (find_data_references_in_bb): Remove static.
28923         * tree-data-ref.h (find_data_references_in_bb): Declare.
28924         (dr_equal_offsets_p): Likewise.
28925         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
28926         (vect_drs_dependent_in_basic_block): Update calls to
28927         vect_equal_offsets.
28928         (vect_check_interleaving): Likewise.
28929         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
28930         (cond_if_else_store_replacement): Rename to...
28931         (cond_if_else_store_replacement_1): ... this.  Change arguments and
28932         documentation.
28933         (cond_if_else_store_replacement): New function.
28934         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
28935         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
28936
28937 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
28938
28939         PR target/46934
28940         * config/arm/arm.md (casesi): Use the gen_int_mode() function
28941         to subtract lower bound instead of GEN_INT().
28942
28943 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
28944
28945         PR other/48179
28946         PR other/48221
28947         PR other/48234
28948         * doc/extend.texi (Alignment): Move section to match order in TOC.
28949         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
28950         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
28951
28952 2011-03-23  Jeff Law  <law@redhat.com>
28953
28954         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
28955         before removing the edge.
28956
28957         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
28958         it may have been freed by redirect_branch_edge or
28959         redirect_edge_succ_nodup.
28960
28961 2011-03-23  Richard Guenther  <rguenther@suse.de>
28962
28963         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
28964         (check_va_list_escapes): Likewise.
28965         (check_all_va_list_escapes): Likewise.
28966
28967 2011-03-23  Richard Guenther  <rguenther@suse.de>
28968
28969         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
28970         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
28971         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
28972         (alias.o): Likewise.
28973         (ipa-type-escape.o): Remove.
28974         (ipa-struct-reorg.o): Likewise.
28975         (GTFILES): Remove ipa-struct-reorg.c.
28976         * alias.c: Do not include ipa-type-escape.h.
28977         * tree-ssa-alias.c: Likewise.
28978         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
28979         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
28980         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
28981         and ipa-type-escape passes.
28982         * tree-pass.h (pass_ipa_type_escape): Remove.
28983         (pass_ipa_struct_reorg): Likewise.
28984         * ipa-struct-reorg.h: Remove.
28985         * ipa-struct-reorg.c: Likewise.
28986         * ipa-type-escape.h: Likewise.
28987         * ipa-type-escape.c: Likewise.
28988         * doc/invoke.texi (-fipa-struct-reorg): Remove.
28989         (--param struct-reorg-cold-struct-ratio): Likewise.
28990         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
28991         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
28992         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
28993
28994 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28995
28996         * config/s390/2084.md: Enable all insn reservations also for z9_ec
28997         cpu attribute value.
28998         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
28999         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
29000         * config/s390/s390.c (processor_flags_table): New constant array.
29001         (s390_handle_arch_option): Remove.
29002         (s390_handle_option): Remove s390_handle_arch_option invocations
29003         and OPT_mwarn_framesize_ handling.
29004         (s390_option_override): Remove s390_handle_arch_option invocation.
29005         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
29006         warnings.
29007         * config/s390/s390.md (cpu attribute): Add z9_ec value.
29008         * config/s390/s390.opt (s390_tune, s390_arch)
29009         (march=): Replace s390_arch_option enum and values with
29010         processor_type.  Set variable name to s390_arch.  Set
29011         initialization value.
29012         (mtune=): Replace s390_arch_option with processor_type.  Set
29013         variable name to s390_tune.  Set initialization value.
29014
29015 2011-03-23  Julian Brown  <julian@codesourcery.com>
29016
29017         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
29018         accesses which are not naturally aligned.
29019
29020 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
29021
29022         PR target/47553
29023         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
29024
29025 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
29026
29027         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
29028         parameter from "int" to "enum insn_code".
29029         (expand_operand_type): New enum.
29030         (expand_operand): New structure.
29031         (create_expand_operand): New function.
29032         (create_fixed_operand, create_output_operand): Likewise
29033         (create_input_operand, create_convert_operand_to): Likewise.
29034         (create_convert_operand_from, create_address_operand): Likewise.
29035         (create_integer_operand): Likewise.
29036         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
29037         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
29038         (expand_insn, expand_jump_insn): Likewise.
29039         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
29040         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
29041         (expand_movstr, expand_builtin___clear_cache): Likewise.
29042         (expand_builtin_lock_release): Likewise.
29043         * explow.c (allocate_dynamic_stack_space): Likewise.
29044         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
29045         and use the default handling in that case.
29046         * expmed.c (check_predicate_volatile_ok): Delete.
29047         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
29048         (emit_cstore): Likewise.
29049         * expr.c (emit_block_move_via_movmem): Likewise.
29050         (set_storage_via_setmem, expand_assignment): Likewise.
29051         (emit_storent_insn, try_casesi): Likewise.
29052         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
29053         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
29054         (expand_vec_shift_expr, expand_binop_directly): Likewise.
29055         (expand_twoval_unop, expand_twoval_binop): Likewise.
29056         (expand_unop_direct, emit_indirect_jump): Likewise.
29057         (emit_conditional_move, vector_compare_rtx): Likewise.
29058         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
29059         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
29060         (expand_sync_lock_test_and_set): Likewise.
29061         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
29062         (emit_unop_insn): Likewise.
29063         (expand_copysign_absneg): Change icode to an insn_code.
29064         (create_convert_operand_from_type): New function.
29065         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
29066         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
29067         (expand_insn, expand_jump_insn): Likewise.
29068         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
29069         than const_int_operand for operand 2.
29070
29071 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29072
29073         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
29074         if possible.
29075
29076 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
29077
29078         * emit-rtl.c (emit_pattern_before_noloc): New function.
29079         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
29080         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
29081         (emit_pattern_after_noloc): New function.
29082         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
29083         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
29084
29085 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
29086
29087         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
29088         (__ffsDI2): Likewise.
29089
29090 2011-03-22  Richard Henderson  <rth@redhat.com>
29091
29092         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
29093         of !TARGET_ABI_OPEN_VMS.
29094         (alpha_trampoline_init, alpha_start_function): Likewise.
29095         (alpha_expand_epilogue, alpha_file_start): Likewise.
29096         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
29097         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
29098         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
29099         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
29100         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
29101
29102 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29103
29104         * config/s390/s390-opts.h: New.
29105         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
29106         s390_arch_flags, s390_warn_framesize, s390_stack_size,
29107         s390_stack_guard): Remove.
29108         (s390_handle_arch_option): Return void.  Take enum
29109         s390_arch_option value instead of string and searching array.
29110         (s390_handle_option): Don't assert that global structures are in
29111         use.  Access variables via opts pointer.  Use error_at.  Don't use
29112         sscanf for -mstack-guard= or -mstack-size=.  Update call to
29113         s390_handle_arch_option.
29114         (s390_option_override): Update call to s390_handle_arch_option.
29115         (s390_emit_prologue): Use %d format for s390_stack_size in
29116         diagnostic.  Use %wd for HOST_WIDE_INT.
29117         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
29118         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
29119         * config/s390/s390.opt (config/s390/s390-opts.h): New
29120         HeaderInclude entry.
29121         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
29122         s390_arch_flags, s390_warn_framesize): New Variable entries.
29123         (s390_arch_option): New Enum and EnumValue entries.
29124         (march=): Use Enum instead of Var.
29125         (mstack-guard=, mstack-size=): Use UInteger and Var.
29126         (mtune=): Use Enum.
29127
29128 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29129
29130         * config/score/score.c (score_handle_option): Don't assert that
29131         global structures are in use.  Access target_flags via opts
29132         pointer.  Use value of -march= option to determine target_flags
29133         settings.
29134         * config/score/score.opt (march=): Use Enum.
29135         (score_arch): New Enum and EnumValue entries.
29136
29137 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29138
29139         * config/mep/mep.c (option_mtiny_specified): Remove.
29140         (mep_option_override): Move register handling for -mivc2 from
29141         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
29142         instead of option_mtiny_specified.
29143         (mep_handle_option): Access target_flags via opts pointer.  Don't
29144         assert that global structures are in use.  Defer part of -mivc2
29145         handling and move it to mep_option_override.
29146         * config/mep/mep.opt (IVC2): New Mask entry.
29147         (mivc2): Use Var and Defer instead of Mask.
29148
29149 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29150
29151         * config/v850/v850-opts.h: New.
29152         * config/v850/v850.c (small_memory): Replace with
29153         small_memory_physical_max array.  Make that array static const.
29154         (v850_handle_memory_option): Take integer value of argument.  Take
29155         gcc_options pointer, option text and location.  Return void.
29156         Update for changes to small memory structures.
29157         (v850_handle_option): Access target_flags via opts pointer.  Don't
29158         assert that global structures are in use.  Update calls to
29159         v850_handle_memory_option.
29160         (v850_encode_data_area): Update references to small memory settings.
29161         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
29162         (enum small_memory_type): Move to v850-opts.h.
29163         * config/v850/v850.opt (config/v850/v850-opts.h): New
29164         HeaderInclude entry.
29165         (small_memory_max): New Variable entry.
29166         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
29167         (mtda, mzda): Likewise.
29168
29169 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29170
29171         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
29172         pointer.  Don't assert that global structures are in use.
29173
29174 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29175
29176         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
29177         via opts pointer.  Don't assert that global structures are in use.
29178
29179 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29180
29181         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
29182         (munix=93): Use Var.
29183         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
29184         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
29185         * config/pa/pa-opts.h: New.
29186         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
29187         (pa_handle_option): Don't assert that global structures are in
29188         use.  Access target_flags via opts pointer.  Don't handle
29189         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
29190         OPT_munix_98 here.
29191         (pa_option_override): Handle deferred OPT_mfixed_range_.
29192
29193 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29194
29195         * config/mn10300/mn10300-opts.h: New.
29196         * config/mn10300/mn10300.c (mn10300_processor,
29197         mn10300_tune_string): Remove.
29198         (mn10300_handle_option): Don't assert that global structures are
29199         in use.  Access mn10300_processor via opts pointer.  Don't handle
29200         OPT_mtune_ here.
29201         * config/mn10300/mn10300.h (enum processor_type): Move to
29202         mn10300-opts.h.
29203         (mn10300_processor): Remove.
29204         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
29205         HeaderInclude entry.
29206         (mn10300_processor): New Variable entry.
29207         (mtune=): Use Var.
29208
29209 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29210
29211         * config/microblaze/microblaze.c: Don't include opts.h.
29212         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
29213         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
29214         (mno-clearbss): Use Var and Warn.
29215
29216 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29217
29218         * config/m32r/m32r-opts.h: New.
29219         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
29220         (m32r_handle_option): Don't assert that global structures are in
29221         use.  Access target_flags and m32r_cache_flush_func via opts
29222         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
29223         OPT_mno_flush_trap here.
29224         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
29225         include of m32r-opts.h.
29226         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
29227         HeaderInclude entry.
29228         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
29229         (mmodel=): Use Enum and Var.
29230         (m32r_model): New Enum and EnumValue entries.
29231         (mno-flush-trap): Use Var.
29232         (msdata=): Use Enum and Var.
29233         (m32r_sdata): New Enum and EnumValue entries.
29234
29235 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29236
29237         * config/m32c/m32c.c: Don't include opts.h.
29238         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
29239         m32c_handle_option): Remove.
29240         (m32c_option_override): Check global_options_set.x_target_memregs
29241         instead of target_memregs_set.
29242         * config/m32c/m32c.h (target_memregs): Remove.
29243         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
29244         variable.
29245
29246 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29247
29248         * config/iq2000/iq2000-opts.h: New.
29249         * config/iq2000/iq2000.c: Don't include opts.h.
29250         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
29251         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
29252         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
29253         HeaderInclude entry.
29254         (iq2000_tune): New Variable entry.
29255         (march=): Add comment.  Use Enum.
29256         (iq2000_arch): New Enum and EnumValue entries.
29257         (mcpu=): Use Enum and Var.
29258         (iq2000_tune): New Enum and EnumValue entries.
29259
29260 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29261
29262         * config/ia64/ia64-opts.h: New.
29263         * config/ia64/ia64.c (ia64_tune): Remove.
29264         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
29265         here.  Use error_at.
29266         (ia64_option_override): Handle deferred OPT_mfixed_range_.
29267         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
29268         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
29269         HeaderInclude entry.
29270         (ia64_tune): New Variable entry.
29271         (mfixed-range=): Use Defer and Var.
29272         (mtune=): Use Enum and Var.
29273         (ia64_tune): New Enum and EnumValue entries.
29274
29275 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29276
29277         * config/frv/frv-opts.h: New.
29278         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
29279         frv-opts.h.
29280         (frv_cpu_type): Remove.
29281         * config/frv/frv.c: Don't include opts.h.
29282         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
29283         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
29284         (frv_cpu_type): New Variable entry.
29285         (frv_cpu): New Enum and EnumValue entries.
29286
29287 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29288
29289         * config/cris/cris.c (cris_handle_option): Access target_flags via
29290         opts pointer.  Don't assert that global structures are in use.
29291         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
29292         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
29293
29294 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29295
29296         * config/bfin/bfin-opts.h: New.
29297         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
29298         bfin_si_revision, bfin_workarounds): Remove.
29299         (bfin_cpus): Make static const.
29300         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
29301         not bfin_lib_id_given.
29302         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
29303         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
29304         pointer. Use error_at.  Don't assert that global structures are in use.
29305         * config/bfin/bfin.h: Include bfin-opts.h.
29306         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
29307         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
29308         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
29309         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
29310         entries.
29311
29312 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29313
29314         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
29315         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
29316         or -msoft-float here.
29317         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
29318         -msoft-float and -mhard-float.
29319         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
29320         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
29321         msoft-float.
29322         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
29323         -msoft-float.
29324         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
29325         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
29326         not mhard-float.
29327         (LIBGCC_SPEC): Don't handle -msoft-float.
29328         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
29329         -mhard-float.
29330         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
29331         msoft-float.
29332         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
29333         -mfloat-abi=*, not -msoft-float and -mhard-float.
29334         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
29335         -msoft-float.
29336         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
29337         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
29338         mhard-float and msoft-float.
29339         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
29340         mfloat-abi=soft in comments, not mhard-float and msoft-float.
29341         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
29342         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
29343         mhard-float.
29344         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
29345         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
29346         msoft-float.
29347         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
29348         not mhard-float.
29349         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
29350         not msoft-float.
29351
29352 2011-03-22  Richard Henderson  <rth@redhat.com>
29353
29354         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
29355         TARGET_ABI_WINDOWS_NT.
29356         (alpha_output_function_end_prologue): Likewise.
29357         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
29358         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
29359         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
29360         (trap, *movsi_nt_vms): Likewise.
29361         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
29362         (*tablejump_osf_nt_internal): Remove.
29363         * config/alpha/predicates.md (input_operand): Only test Pmode.
29364
29365 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29366
29367         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
29368         via opts pointer.  Use error_at.  Don't assert that global
29369         structures are in use.
29370
29371 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29372
29373         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
29374         (ix86_handle_option): Access ix86_isa_flags and
29375         ix86_isa_flags_explicit via opts pointer.  Don't assert that
29376         global structures are in use.
29377         (ix86_function_specific_save, ix86_function_specific_restore):
29378         Update ix86_isa_flags_explicit field name.
29379         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
29380         (ix86_isa_flags_explicit): Rename TargetSave entry to
29381         x_ix86_isa_flags_explicit.
29382
29383 2011-03-22  Richard Henderson  <rth@redhat.com>
29384
29385         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
29386         (alpha_option_override, direct_return): Likewise.
29387         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
29388         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
29389         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
29390         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
29391         (alpha_expand_epilogue, alpha_end_function): Likewise.
29392         (alpha_init_libfuncs): Likewise.
29393         (struct machine_function): Remove unicosmk members.
29394         (print_operand) ['t']: Remove.
29395         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
29396         unicosmk_output_module_name, unicosmk_output_common,
29397         current_section_align, unicosmk_output_text_section_asm_op,
29398         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
29399         unicosmk_section_type_flags, unicosmk_unique_section,
29400         unicosmk_asm_named_section, unicosmk_insert_attributes,
29401         unicosmk_output_align, unicosmk_defer_case_vector,
29402         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
29403         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
29404         unicosmk_output_ssib, unicosmk_add_call_info_word,
29405         unicosmk_extern_head, unicosmk_output_default_externs,
29406         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
29407         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
29408         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
29409         * config/alpha/alpha-protos.h: Update.
29410         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
29411         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
29412         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
29413         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
29414         (*mulsi_se, mulvsi3): Likewise.
29415         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
29416         (*divmodsi_internal, call, call_value, realign): Likewise.
29417         (moddi3, umoddi3): Likewise; remove duplicate expander.
29418         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
29419         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
29420         (*movdi_nofix): Remove r/U alternative.
29421         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
29422         * config/alpha/constraints.md ("U"): Remove.
29423         * config/alpha/predicates.md (call_operand"): Don't test
29424         TARGET_ABI_UNICOSMK.
29425
29426 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29427
29428         * target.def (handle_option): Take gcc_options and
29429         cl_decoded_option pointers and location_t.
29430         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
29431         * doc/tm.texi: Regenerate.
29432         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
29433         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
29434         * lto-opts.c (lto_reissue_options): Generate option structure for
29435         targetm.handle_option call.
29436         * opts.c (target_handle_option): Update call to
29437         targetm.handle_option.  Remove assertions about values now passed
29438         down to hook.
29439         * targhooks.c (default_target_handle_option): New.
29440         * targhooks.h (default_target_handle_option): Declare.
29441         * config/alpha/alpha.c: Include opts.h.
29442         (alpha_handle_option): Update to new hook interface.
29443         * config/arm/arm.c: Include opts.h.
29444         (arm_handle_option): Update to new hook interface.
29445         * config/arm/t-arm (arm.o): Update dependencies.
29446         * config/bfin/bfin.c: Include opts.h.
29447         (bfin_handle_option): Update to new hook interface.
29448         * config/cris/cris.c: Include opts.h.
29449         (cris_handle_option): Update to new hook interface.
29450         * config/frv/frv.c: Include opts.h.
29451         (frv_handle_option): Update to new hook interface.
29452         * config/i386/i386.c: Include opts.h.
29453         (ix86_handle_option): Update to new hook interface.
29454         (ix86_valid_target_attribute_inner_p): Generate option structure
29455         for call to ix86_handle_option.
29456         * config/i386/t-i386 (i386.o): Update dependencies.
29457         * config/ia64/ia64.c: Include opts.h.
29458         (ia64_handle_option): Update to new hook interface.
29459         * config/ia64/t-ia64 (ia64.o): Update dependencies.
29460         * config/iq2000/iq2000.c: Include opts.h.
29461         (iq2000_handle_option): Update to new hook interface.
29462         * config/m32c/m32c.c: Include opts.h.
29463         (m32c_handle_option): Update to new hook interface.
29464         * config/m32r/m32r.c: Include opts.h.
29465         (m32r_handle_option): Update to new hook interface.
29466         * config/m68k/m68k.c: Include opts.h.
29467         (m68k_handle_option): Update to new hook interface.
29468         * config/mep/mep.c: Include opts.h.
29469         (mep_handle_option): Update to new hook interface.
29470         * config/microblaze/microblaze.c: Include opts.h.
29471         (microblaze_handle_option): Update to new hook interface.
29472         * config/mips/mips.c: Include opts.h.
29473         (mips_handle_option): Update to new hook interface.
29474         * config/mn10300/mn10300.c: Include opts.h.
29475         (mn10300_handle_option): Update to new hook interface.
29476         * config/pa/pa.c: Include opts.h.
29477         (pa_handle_option): Update to new hook interface.
29478         * config/pdp11/pdp11.c: Include opts.h.
29479         (pdp11_handle_option): Update to new hook interface.
29480         * config/rs6000/rs6000.c: Include opts.h.
29481         (rs6000_handle_option): Update to new hook interface.
29482         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
29483         * config/rx/rx.c: Include opts.h.
29484         (rx_handle_option): Update to new hook interface.
29485         * config/s390/s390.c: Include opts.h.
29486         (s390_handle_option): Update to new hook interface.
29487         * config/score/score.c: Include opts.h.
29488         (score_handle_option): Update to new hook interface.
29489         * config/sh/sh.c: Include opts.h.
29490         (sh_handle_option): Update to new hook interface.
29491         * config/sparc/sparc.c: Include opts.h.
29492         (sparc_handle_option): Update to new hook interface.
29493         * config/v850/v850.c: Include opts.h.
29494         (v850_handle_option): Update to new hook interface.
29495
29496 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29497
29498         * gcc.c (driver_unknown_option_callback): Only permit and save
29499         unknown -Wno- options.
29500         (driver_wrong_lang_callback): Save options directly instead of via
29501         driver_unknown_option_callback.
29502
29503 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
29504
29505         * combine.c (simplify_set): Try harder to find the best CC mode when
29506         simplifying a nested COMPARE on the RHS.
29507
29508 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
29509
29510         * config/alpha/gnu.h: Remove.
29511         * config/arc: Remove directory.
29512         * config/arm/netbsd.h: Remove.
29513         * config/arm/t-pe: Remove.
29514         * config/crx: Remove directory.
29515         * config/i386/netbsd.h: Remove.
29516         * config/m68hc11: Remove directory.
29517         * config/m68k/uclinux-oldabi.h: Remove.
29518         * config/mcore/mcore-pe.h: Remove.
29519         * config/mcore/t-mcore-pe: Remove.
29520         * config/netbsd-aout.h: Remove.
29521         * config/rs6000/gnu.h: Remove.
29522         * config/sh/sh-symbian.h: Remove.
29523         * config/sh/symbian-base.c: Remove.
29524         * config/sh/symbian-c.c: Remove.
29525         * config/sh/symbian-cxx.c: Remove.
29526         * config/sh/symbian-post.h: Remove.
29527         * config/sh/symbian-pre.h: Remove.
29528         * config/sh/t-symbian: Remove.
29529         * config/svr3.h: Remove.
29530         * config/vax/netbsd.h: Remove.
29531         * config.build: Don't handle i[34567]86-*-pe.
29532         * config.gcc: Remove handling of deprecations for most deprecated
29533         targets.
29534         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
29535         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
29536         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
29537         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
29538         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
29539         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
29540         Remove cases.
29541         * config.host: Don't handle i[34567]86-*-pe.
29542         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
29543         (ASM_SPEC32): Don't handle -mcall-gnu.
29544         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
29545         -mcall-gnu.
29546         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
29547         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
29548         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
29549         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
29550         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
29551         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
29552         conditional on SYMBIAN.
29553         * configure.ac: Don't handle powerpc*-*-gnu*.
29554         * configure: Regenerate.
29555         * doc/extend.texi (interrupt attribute): Don't mention CRX.
29556         * doc/install-old.texi (m6811, m6812): Don't mention.
29557         * doc/install.texi (arc-*-elf*): Don't document multilib option.
29558         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
29559         (m68k-uclinuxoldabi): Don't mention.
29560         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
29561         Remove.
29562         (-mcall-gnu): Remove.
29563         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
29564         families): Remove constraint documentation.
29565
29566 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
29567
29568         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
29569         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
29570         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
29571
29572 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
29573
29574         PR target/48226
29575         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
29576         vector when peeking at the next token for vector, don't expand the
29577         keywords.
29578
29579 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
29580
29581         * config/avr/avr-protos.h (expand_epilogue): Change prototype
29582         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
29583         * config/avr/avr.c (init_cumulative_args)
29584         (avr_function_arg_advance): Use it.
29585         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
29586         sibcall epilogues.
29587         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
29588         (avr_function_ok_for_sibcall): ...this new function.
29589         (avr_lookup_function_attribute1): New static Function.
29590         (avr_naked_function_p, interrupt_function_p)
29591         (signal_function_p, avr_OS_task_function_p)
29592         (avr_OS_main_function_p): Use it.
29593         * config/avr/avr.md ("sibcall", "sibcall_value")
29594         ("sibcall_epilogue"): New expander.
29595         ("*call_insn", "*call_value_insn"): New insn.
29596         ("call_insn", "call_value_insn"): Remove
29597         ("call", "call_value", "epilogue"): Change expander to handle
29598         sibling calls.
29599
29600 2011-03-21  Nick Clifton  <nickc@redhat.com>
29601
29602         * doc/invoke.texi (Overall Options): Move closing brace to end of
29603         options list.
29604         (Optimization Options): Add missing @gol.
29605         (Directory Options): Likewise.
29606         (i386 and x86-64 Options): Likewise.
29607         (RS6000 and PowerPC Options): Likewise.
29608         (i386 and x86-64 Windows Options): Likewise.
29609         (V850 Options): Add text missing from descriptions.
29610
29611 2011-03-22  Richard Henderson  <rth@redhat.com>
29612
29613         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
29614         (avr_incoming_return_addr_rtx): New.
29615         (emit_push_byte): New.
29616         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
29617         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
29618         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
29619         (emit_pop_byte): New.
29620         (expand_epilogue): Use it.  Pop frame pointer by bytes.
29621         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
29622         (INCOMING_RETURN_ADDR_RTX): New.
29623         (INCOMING_FRAME_SP_OFFSET): New.
29624         (ARG_POINTER_CFA_OFFSET): New.
29625         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
29626         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
29627         (pophi): Remove.
29628
29629         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
29630
29631 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
29632
29633         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
29634         (FUNCTION_ARG_ADVANCE): Likewise.
29635         * tm.texi.in: Change references to them to hook references.
29636         * tm.texi: Regenerate.
29637         * targhooks.c (default_function_arg): Eliminate check for target
29638         macro.
29639         (default_function_incoming_arg): Likewise.
29640         (default_function_arg_advance): Likewise.
29641         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
29642         (function_arg_advance): Likewise.
29643         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
29644
29645 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
29646
29647         * tree.c (build_call_1): New function.
29648         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
29649
29650 2011-03-22  Richard Guenther  <rguenther@suse.de>
29651
29652         PR tree-optimization/48228
29653         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
29654         for single-arg PHIs.
29655
29656 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
29657
29658         PR rtl-optimization/48143
29659         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
29660         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
29661         sse2_cvtps2pd): Likewise.
29662
29663 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29664
29665         * recog.c (canonicalize_change_group): Use validate_unshare_change.
29666
29667 2011-03-22  Richard Guenther  <rguenther@suse.de>
29668
29669         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
29670         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
29671         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
29672         and REALIGN_LOAD_EXPR.
29673         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
29674         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
29675         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
29676         DOT_PROD_EXPR case ...
29677         (expand_expr_real_2): ... here.
29678         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
29679         and REALIGN_LOAD_EXPR.
29680         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
29681         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
29682         (vect_create_epilog_for_reduction): Likewise.
29683         (vectorizable_reduction): Likewise.
29684         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
29685         * tree-vect-stmts.c (vectorizable_load): Likewise.
29686
29687 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
29688
29689         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
29690
29691 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29692
29693         * config/s390/s390.c (s390_delegitimize_address): Fix offset
29694         handling for PLTOFF/GOTOFF.
29695
29696 2011-03-22  Nick Clifton  <nickc@redhat.com>
29697
29698         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
29699         trailing backslash from the end of the macro definition.
29700
29701 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29702
29703         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
29704         and PLT unspecs.
29705
29706 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
29707
29708         * expr.h (prepare_operand): Move to...
29709         * optabs.h (prepare_operand): ...here and change the insn code
29710         parameter from "int" to "enum insn_code".
29711         (insn_operand_matches): Declare.
29712         * expr.c (init_expr_target): Use insn_operand_matches.
29713         (compress_float_constant): Likewise.
29714         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
29715         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
29716         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
29717         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
29718         Likewise.
29719         (gen_cond_trap): Likewise.
29720         (prepare_operand): Likewise.  Change icode to an insn_code.
29721         (insn_operand_matches): New function.
29722         * reload.c (find_reloads_address_1): Use insn_operand_matches.
29723         * reload1.c (gen_reload): Likewise.
29724         * targhooks.c (default_secondary_reload): Likewise.
29725
29726 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
29727
29728         * config/alpha/alpha.md (unspec): New define_c_enum.
29729         (unspecv): Ditto.
29730
29731 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
29732
29733         PR debug/48214
29734         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
29735         between a call and its CALL_ARG_LOCATION note.
29736
29737 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
29738
29739         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
29740
29741 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
29742
29743         PR c/42544
29744         PR c/48197
29745         * c-common.c (shorten_compare): If primopN is first sign-extended
29746         to opN and then zero-extended to result type, set primopN to opN.
29747
29748 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
29749
29750         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
29751         for barrier handlers.
29752
29753 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
29754
29755         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
29756         UNSPEC constants to be in the unspec enumeration, and redefine
29757         all UNSPECV constants to be in the unspecv enumeration, so that
29758         dumps print which unspec/unspec_volatile this is.
29759         * config/rs6000/vector.md (UNSPEC_*): Ditto.
29760         * config/rs6000/paired.md (UNSPEC_*): Ditto.
29761         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
29762         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
29763         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
29764
29765         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
29766         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
29767         UNSPECV_LWSYNC, since these are used as unspec_volatile.
29768         * config/rs6000/sync.md (isync, lwsync): Ditto.
29769
29770 2011-03-21  Richard Guenther  <rguenther@suse.de>
29771
29772         * params.def (lto-min-partition): Fix typo.
29773
29774 2011-03-21  Richard Guenther  <rguenther@suse.de>
29775
29776         PR c/47939
29777         * c-decl.c (grokdeclarator): Drop to the main variant only
29778         for array types.  Drop flag_gen_aux_info check.
29779
29780 2011-03-21  Richard Guenther  <rguenther@suse.de>
29781
29782         PR translation/47911
29783         * params.def (lto-partitions): Fix typo.
29784         (lto-min-partition): Fix wording.
29785
29786 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
29787
29788         * config/rs6000/t-freebsd: Remove duplication from file.
29789
29790 2011-03-21  Richard Guenther  <rguenther@suse.de>
29791
29792         PR middle-end/47661
29793         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
29794
29795 2011-03-21  Richard Guenther  <rguenther@suse.de>
29796
29797         PR lto/48210
29798         * params.def (lto-partitions): Require at least 1 partition.
29799
29800 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29801
29802         * gthr-solaris.h: Remove.
29803         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
29804         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
29805         (LIB_SPEC): Likewise.
29806         * config/sol2.opt (threads): Remove.
29807         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
29808         (sparc*-*-solaris2*): Likewise.
29809         * configure.ac (enable_threads): Enable solaris support.
29810         * configure: Regenerate.
29811         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
29812         * doc/install.texi (Configuration, --enable-threads=lib): Remove
29813         solaris.
29814
29815 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29816
29817         * config.gcc: Obsolete *-*-solaris2.8*.
29818         * doc/install.texi (Specific, *-*-solaris2*): Document it.
29819
29820 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29821
29822         PR bootstrap/48135
29823         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
29824         reference.  Solaris 8 perl works.
29825
29826 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29827
29828         PR bootstrap/48135
29829         * doc/install.texi (Prerequisites): Move jar etc. up.
29830         Explain support library version requirements.
29831
29832 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29833
29834         PR bootstrap/48135
29835         * doc/install.texi (Prerequisites): Move Perl to build
29836         requirements.  Always necessary on Solaris 2 with Sun ld.
29837
29838 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29839
29840         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
29841         binutils 2.21.
29842         (Specific, i?86-*-solaris2.[89]): Likewise.
29843         (Specific, i?86-*-solaris2.10): Likewise.
29844         (Specific, mips-sgi-irix6): Likewise.
29845         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
29846         Update for binutils 2.21.
29847
29848 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29849
29850         * configure.ac (gcc_cv_lto_plugin): Fix typo.
29851         Allow -fuse-linker-plugin for non-default plugin linker.
29852         * configure: Regenerate.
29853
29854 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
29855
29856         PR bootstrap/48167
29857         * gengtype.c (files_rules): Added rule for cp/parser.h.
29858
29859 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
29860
29861         PR target/48213
29862         * config/s390/s390.c (s390_delegitimize_address): Don't call
29863         lowpart_subreg if orig_x has BLKmode.
29864
29865 2011-03-21  Kai Tietz  <ktietz@redhat.com>
29866
29867         PR target/12171
29868         * doc/plugins.texi: Adjust documentation for plugin register_callback.
29869         * tree.h (attribute_spec): Add new member affects_type_identity.
29870         * attribs.c (empty_attribute_table): Adjust attribute_spec
29871         initializers.
29872         * config/alpha/alpha.c: Likewise.
29873         * config/arc/arc.c: Likewise.
29874         * config/arm/arm.c: Likewise.
29875         * config/avr/avr.c: Likewise.
29876         * config/bfin/bfin.c: Likewise.
29877         * config/crx/crx.c: Likewise.
29878         * config/darwin.h: Likewise.
29879         * config/h8300/h8300.c: Likewise.
29880         * config/i386/cygming.h: Likewise.
29881         * config/i386/i386.c: Likewise.
29882         * config/ia64/ia64.c: Likewise.
29883         * config/m32c/m32c.c: Likewise.
29884         * config/m32r/m32r.c: Likewise.
29885         * config/m68hc11/m68hc11.c: Likewise.
29886         * config/m68k/m68k.c: Likewise.
29887         * config/mcore/mcore.c: Likewise.
29888         * config/mep/mep.c: Likewise.
29889         * config/microblaze/microblaze.c: Likewise.
29890         * config/mips/mips.c: Likewise.
29891         * config/rs6000/rs6000.c: Likewise.
29892         * config/rx/rx.c: Likewise.
29893         * config/sh/sh.c: Likewise.
29894         * config/sol2.h: Likewise.
29895         * config/sparc/sparc.c: Likewise.
29896         * config/spu/spu.c: Likewise.
29897         * config/stormy16/stormy16.c: Likewise.
29898         * config/v850/v850.c: Likewise.
29899
29900 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
29901
29902         * simplify-rtx.c (simplify_binary_operation_1): Handle
29903         (xor (and A B) C) case when B and C are both constants.
29904
29905 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
29906
29907         * tree-dfa.c (add_referenced_var): Fix typo in comment.
29908
29909 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
29910
29911         PR bootstrap/48168
29912         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
29913
29914 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
29915
29916         PR rtl-optimization/48156
29917         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
29918         assume df and df_lr are not NULL.
29919
29920 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
29921
29922         PR debug/48023
29923         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
29924         between a call and its CALL_ARG_LOCATION note.
29925
29926 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
29927
29928         PR debug/48178
29929         * config/sh/sh.c (find_barrier): Don't emit a constant pool
29930         between a call and its corresponding CALL_ARG_LOCATION note.
29931
29932 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
29933
29934         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
29935         instead of loop. Use HARD_REGISTER_NUM_P predicate.
29936         * haifa-sched.c (setup_ref_regs): Ditto.
29937         * caller-save.c (add_used_regs_1): Ditto.
29938         * dse.c (look_for_hardregs): Ditto.
29939         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
29940         * sched-rgn.c (check_live_1): Ditto.
29941
29942 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
29943
29944         * c-decl.c (diagnose_mismatched_decls): Give an error for
29945         redefining a typedef with variably modified type.
29946
29947 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
29948
29949         * c-decl.c (grokfield): Don't allow typedefs for structures or
29950         unions with no tag by default.
29951         * doc/extend.texi (Unnamed Fields): Update.
29952
29953 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
29954
29955         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
29956         Rewrite using indirect functions.
29957         (lwp_slwpcb): Ditto.
29958         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
29959         (avx_vinsertf128<mode>): Ditto.
29960
29961 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29962
29963         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
29964         unspecs.
29965
29966 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29967
29968         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
29969         splitting between a call and its corresponding CALL_ARG_LOCATION note.
29970
29971 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
29972
29973         PR rtl-optimization/48170
29974         * gcse.c (hoist_code): Remove bogus asserts.
29975
29976 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
29977
29978         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
29979         computation for prologue/epilogue.
29980
29981 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29982
29983         * Makefile.in (check-consistency): Remove.
29984
29985 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
29986
29987         PR debug/48176
29988         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
29989         arange_table_in_use is 0, but either text_section_used or
29990         cold_text_section_used is true.  Don't call it if
29991         !info_section_emitted.
29992
29993 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
29994
29995         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
29996         FUNCTION_VALUE_REGNO_P): Remove.
29997         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
29998         Remove.
29999         * config/avr/avr.c (avr_ret_register): Make static inline.
30000         (avr_function_value_regno_p): New function.
30001         (avr_libcall_value): Make static. Add 'func' argument.
30002         (avr_function_value): Make static. Rename 'func' argument to
30003         'fn_decl_or_type', forward it to avr_libcall_value. Call
30004         avr_ret_register function instead of RET_REGISTER macro.
30005         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
30006
30007 2011-03-18  Jason Merrill  <jason@redhat.com>
30008
30009         PR c++/23372
30010         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
30011
30012 2011-03-18  Richard Guenther  <rguenther@suse.de>
30013
30014         * doc/install.texi (--enable-gold): Remove.
30015         (--with-plugin-ld): Document.
30016         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
30017
30018 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
30019
30020         PR middle-end/47790
30021         * expr.c (optimize_bitfield_assignment_op): Revamp to work
30022         again after expansion changes.
30023
30024 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
30025
30026         * combine.c (try_combine): Do simplification only call of
30027         subst() on i2 even when i1 is present. Update comments.
30028
30029 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
30030
30031         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
30032         and UNSPEC_PCREL_SYMOFF.
30033
30034 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30035
30036         * config/s390/s390.md: Use define_c_enum for the unspec constant
30037         definitions.
30038
30039 2011-03-18  Richard Henderson  <rth@redhat.com>
30040             Jakub Jelinek  <jakub@redhat.com>
30041
30042         PR bootstrap/48161
30043         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
30044         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
30045
30046 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
30047
30048         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
30049         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
30050         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
30051         Change return type to bool.
30052         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
30053
30054 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
30055
30056         PR debug/48163
30057         * var-tracking.c (prepare_call_arguments): If CALL target
30058         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
30059         pc instead of looking it up using cselib_lookup and use
30060         Pmode for it if x has VOIDmode.
30061         * dwarf2out.c (gen_subprogram_die): If also both first and
30062         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
30063
30064         PR debug/48163
30065         * function.c (assign_parms): For data.passed_pointer parms
30066         use MEM of data.entry_parm instead of data.entry_parm itself
30067         as DECL_INCOMING_RTL.
30068         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
30069         also when passed and declared mode is the same, DECL_RTL
30070         is a MEM with pseudo as address and DECL_INCOMING_RTL is
30071         a MEM too.
30072
30073 2011-03-16  Jeff Law  <law@redhat.com>
30074
30075         PR rtl-optimization/37273
30076         * ira-costs.c (scan_one_insn): Detect constants living in memory and
30077         handle them like argument loads from stack slots.  Do not double
30078         count memory for memory constants and argument loads from stack slots.
30079
30080 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30081
30082         PR debug/48160
30083         * var-tracking.c (prepare_call_arguments): Check SUBREG.
30084
30085 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30086
30087         PR target/48171
30088         * config/i386/i386.opt: Add Save to -mavx and -mfma.
30089
30090 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
30091
30092         PR bootstrap/48153
30093         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
30094         if dwarf_strict.
30095         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
30096         Clear call_arg_locations and call_arg_loc_last always.
30097
30098         PR middle-end/48152
30099         * var-tracking.c (prepare_call_arguments): If argument needs to be
30100         passed by reference, adjust argtype and mode.
30101
30102 2011-03-17  Richard Guenther  <rguenther@suse.de>
30103
30104         PR middle-end/48134
30105         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
30106         a value make sure to fold the statement.
30107
30108 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
30109
30110         PR target/43872
30111         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
30112         return condition with !cfun->calls_alloca.
30113
30114 2011-03-17  Richard Guenther  <rguenther@suse.de>
30115
30116         PR bootstrap/48148
30117         * lto-cgraph.c (input_overwrite_node): Clear the abstract
30118         origin for decls in other ltrans units.
30119         (input_varpool_node): Likewise.
30120
30121 2011-03-17  Richard Guenther  <rguenther@suse.de>
30122
30123         PR middle-end/48165
30124         * tree-object-size.c (compute_object_offset): Properly return
30125         the offset operand of MEM_REFs as sizetype.
30126
30127 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
30128
30129         PR rtl-optimization/48141
30130         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
30131         * dse.c: Include params.h.
30132         (active_local_stores_len): New variable.
30133         (add_wild_read, dse_step1): Clear it when setting active_local_stores
30134         to NULL.
30135         (record_store, check_mem_read_rtx): Decrease it when removing
30136         from the chain.
30137         (scan_insn): Likewise.  Increase it when adding to chain, if it
30138         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
30139         set active_local_stores to NULL before the addition.
30140         * Makefile.in (dse.o): Depend on $(PARAMS_H).
30141
30142         PR rtl-optimization/48141
30143         * dse.c (record_store): If no positions are needed in an insn
30144         that cannot be deleted, at least unchain it from active_local_stores.
30145
30146 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
30147
30148         PR debug/47510
30149         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
30150         (lookup_type_die_strip_naming_typedef): ... here.
30151         (get_context_die): Use it.
30152         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
30153         the anonymous struct named by the naming typedef.
30154
30155 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
30156
30157         PR target/48154
30158         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
30159         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
30160
30161 2011-03-16  Jeff Law  <law@redhat.com>
30162
30163         * tree-vrp.c (identify_jump_threads): Slightly simplify type
30164         check for operands of conditional.  Allow type to be a pointer.
30165
30166 2011-03-16  Richard Guenther  <rguenther@suse.de>
30167
30168         PR tree-optimization/48149
30169         * fold-const.c (fold_binary_loc): Fold
30170         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
30171
30172 2011-03-16  Richard Guenther  <rguenther@suse.de>
30173
30174         PR tree-optimization/26134
30175         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
30176         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
30177         (non_rewritable_mem_ref_base): Handle complex type component
30178         accesses, constrain offsets for vector and complex extracts
30179         more properly.
30180
30181 2011-03-16  Richard Guenther  <rguenther@suse.de>
30182
30183         PR tree-optimization/48146
30184         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
30185         operands avoiding the need for renaming.
30186
30187 2011-03-16  Richard Guenther  <rguenther@suse.de>
30188
30189         * gimple-fold.c (maybe_fold_reference): Open-code relevant
30190         constant folding.  Move MEM_REF canonicalization first.
30191         Rely on fold_const_aggregate_ref for initializer folding.
30192         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
30193
30194 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
30195
30196         PR middle-end/48136
30197         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
30198         arg0/arg1 or their arguments are always fold converted to matching
30199         types.
30200
30201         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
30202         to nargs.
30203
30204 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30205
30206         PR lto/46944
30207         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
30208         Handle in-tree gold.
30209         (ld_vers): Extract binutils version for gold.
30210         (gcc_cv_ld_hidden): Handle gold here.
30211         (gcc_cv_lto_plugin): Determine level of linker plugin support.
30212         * configure: Regenerate.
30213         * config.in: Regenerate.
30214         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
30215         -fuse-linker-plugin otherwise.
30216         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
30217         (LINK_COMMAND_SPEC): Use it.
30218         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
30219
30220 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
30221
30222         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
30223         * calls.c: Remove debug.h include.
30224         (emit_call_1): Don't call virtual_call_token debug hook.
30225         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
30226         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
30227         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
30228         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
30229         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
30230         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
30231         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
30232         dwarf2out_virtual_call): Remove.
30233         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
30234         copy_call_info and virtual_call hooks.
30235         (dwarf2out_init): Don't initialize vcall_insn_table,
30236         debug_dcall_section and debug_vcall_section.
30237         (prune_unused_types): Don't mark nodes from dcall_table.
30238         (dwarf2out_finish): Don't output dcall or vcall tables.
30239         * final.c (final_scan_insn): Don't call direct_call or
30240         virtual_call debug hooks.
30241         * debug.h (struct gcc_debug_hooks): Remove direct_call,
30242         virtual_call_token, copy_call_info and virtual_call hooks.
30243         (debug_nothing_uid): Remove prototype.
30244         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
30245         copy_call_info and virtual_call hooks.
30246         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
30247         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
30248         * debug.c (do_nothing_debug_hooks): Likewise.
30249         (debug_nothing_uid): Remove.
30250         * doc/invoke.texi (-fenable-icf-debug): Remove.
30251         * common.opt (-fenable-icf-debug): Likewise.
30252
30253         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
30254         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
30255         call's MEM.  Handle functions returning aggregate through a hidden
30256         first pointer.  For virtual calls add clobbered pc to call arguments
30257         chain.
30258         * dwarf2out.c (gen_subprogram_die): Emit
30259         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
30260         can't be emitted.
30261
30262         PR debug/45882
30263         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
30264         * rtl.h (ENTRY_VALUE_EXP): Define.
30265         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
30266         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
30267         * print-rtl.c (print_rtx): Likewise.
30268         * gengtype.c (adjust_field_rtx_def): Likewise.
30269         * var-tracking.c (vt_add_function_parameter): Adjust
30270         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
30271         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
30272         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
30273         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
30274         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
30275
30276         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
30277         Call var_location debug hook even on CALL_INSNs.
30278         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
30279         * rtl.def (ENTRY_VALUE): New.
30280         * dwarf2out.c: Include cfglayout.h.
30281         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
30282         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
30283         (struct call_arg_loc_node): New type.
30284         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
30285         tail_call_site_count): New variables.
30286         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
30287         DW_TAG_GNU_call_site_parameter.
30288         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
30289         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
30290         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
30291         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
30292         and DW_AT_GNU_all_source_call_sites.
30293         (mem_loc_descriptor): Handle ENTRY_VALUE.
30294         (add_src_coords_attributes): Don't add enything if
30295         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
30296         (dwarf2out_abstract_function): Save and clear call_arg_location,
30297         call_site_count and tail_call_site_count around dwarf2out_decl call.
30298         (gen_call_site_die): New function.
30299         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
30300         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
30301         (dwarf2out_function_decl): Clear call_arg_locations,
30302         call_arg_loc_last, set call_site_count and tail_call_site_count
30303         to -1 and free block_map.
30304         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
30305         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
30306         followed by any real instructions.
30307         (dwarf2out_begin_function): Set call_site_count and
30308         tail_call_site_count to 0.
30309         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
30310         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
30311         attempt to force a DIE for it and worst case remove the attribute.
30312         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
30313         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
30314         the decl itself.
30315         * var-tracking.c: Include tm_p.h.
30316         (vt_stack_adjustments): For calls call note_register_arguments.
30317         (argument_reg_set): New variable.
30318         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
30319         ensure the VALUE is resolved.
30320         (call_arguments): New variable.
30321         (prepare_call_arguments): New function.
30322         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
30323         (struct expand_loc_callback_data): Add ignore_cur_loc field.
30324         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
30325         always use the best expression.
30326         (vt_expand_loc): Add ignore_cur_loc argument.
30327         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
30328         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
30329         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
30330         note for all calls.
30331         (vt_add_function_parameter): Use cselib_lookup_from_insn.
30332         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
30333         argument.  Don't call cselib_preserve_only_values and
30334         cselib_reset_table.
30335         (note_register_arguments): New function.
30336         (vt_initialize): Compute argument_reg_set.  Call
30337         vt_add_function_parameters before processing basic blocks instead of
30338         afterwards.  For calls call prepare_call_arguments before calling
30339         cselib_process_insn.
30340         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
30341         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
30342         (var-tracking.o): Depend on $(TM_P_H).
30343         * cfglayout.h (insn_scope): New prototype.
30344         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
30345         * cfglayout.c (insn_scope): No longer static.
30346         * insn-notes.def (CALL_ARG_LOCATION): New.
30347         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
30348         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
30349         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
30350         nothing for DECL_EXTERNAL BLOCK_VARS.
30351
30352 2011-03-16  Alan Modra  <amodra@gmail.com>
30353
30354         PR target/45844
30355         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
30356         create invalid offset address for vsx splat insn.
30357         * config/rs6000/predicates.md (splat_input_operand): New.
30358         * config/rs6000/vsx.md (vsx_splat_*): Use it.
30359
30360 2011-03-15  Xinliang David Li  <davidxl@google.com>
30361
30362         PR c/47837
30363         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
30364         (normalize_preds): New function.
30365         (is_use_properly_guarded): Normalize def predicates.
30366
30367 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
30368
30369         PR target/46788
30370         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
30371         in the output template.
30372
30373 2011-03-15  Richard Guenther  <rguenther@suse.de>
30374
30375         PR middle-end/47650
30376         * tree-pretty-print.c (dump_function_declaration): Properly
30377         dump unprototyped and varargs function types.
30378
30379 2011-03-15  Richard Guenther  <rguenther@suse.de>
30380
30381         PR tree-optimization/13954
30382         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
30383         and friends.
30384
30385 2011-03-15  Richard Guenther  <rguenther@suse.de>
30386
30387         PR tree-optimization/48037
30388         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
30389         selects into BIT_FIELD_REFs.
30390         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
30391         vector select.
30392
30393 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
30394
30395         PR tree-optimization/48129
30396         * builtins.c (fold_builtin_snprintf): Convert to type of
30397         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
30398         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
30399
30400 2011-03-15  Richard Guenther  <rguenther@suse.de>
30401
30402         PR tree-optimization/41490
30403         * tree-ssa-dce.c (propagate_necessity): Handle returns without
30404         value but with VUSE.
30405         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
30406         return statements.
30407         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
30408         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
30409         * tree-tailcall.c (find_tail_calls): Ignore returns.
30410
30411 2011-03-15  Richard Guenther  <rguenther@suse.de>
30412
30413         PR middle-end/48031
30414         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
30415         or variable-indexed array accesses when in gimple form.
30416
30417 2011-03-15  Richard Guenther  <rguenther@suse.de>
30418
30419         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
30420
30421 2011-03-15  Alan Modra  <amodra@gmail.com>
30422
30423         PR target/48032
30424         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
30425         presume symbol_refs without a symbol_ref_decl are suitably
30426         aligned, nor other trees we may see here.  Handle anchor symbols.
30427         (legitimate_constant_pool_address_p): Comment.  Add mode param.
30428         Check cmodel=medium addresses.  Adjust all calls.
30429         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
30430         creating cmodel=medium optimized access to locals.
30431         * config/rs6000/constraints.md (R): Pass QImode to
30432         legitimate_constant_pool_address_p.
30433         * config/rs6000/predicates.md (input_operand): Pass mode to
30434         legitimate_constant_pool_address_p.
30435         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
30436         Update prototype.
30437
30438 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
30439
30440         PR target/48053
30441         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
30442         64-bit constants being loaded into registers other than GPRs such
30443         as loading 0 into a VSX register.
30444
30445 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30446
30447         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
30448
30449 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
30450
30451         PR middle-end/47917
30452         * builtins.c (fold_builtin_snprintf): New function.
30453         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
30454         (fold_builtin_4): Likewise.
30455
30456         PR middle-end/38878
30457         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
30458         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
30459         and C - X == X also strip nops from +/-/p+ operand.
30460         When optimizing -X == C, fold C to arg0's type.
30461
30462         PR debug/47946
30463         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
30464         emit it as add_AT_int instead of add_AT_unsigned.
30465
30466 2011-03-14  Tom Tromey  <tromey@redhat.com>
30467
30468         * unwind-dw2.c: Include sys/sdt.h if it exists.
30469         (_Unwind_DebugHook): Use STAP_PROBE2.
30470         * config.in, configure: Rebuild.
30471         * configure.ac: Check for sys/sdt.h.
30472
30473 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
30474
30475         * config/i386/i386.md (ROUND_FLOOR): New constant.
30476         (ROUND_CEIL): Ditto.
30477         (ROUND_TRUNC): Ditto.
30478         (ROUND_MXCSR): Ditto.
30479         (ROUND_NO_EXC): Ditto.
30480         (rint<mode>2): Use new defines instead of numerical constants.
30481         (floor<mode>2): Ditto.
30482         (ceil<mode>2): Ditto.
30483         (btrunc<mode>2): Ditto.
30484         * config/i386/i386-builtin-types.def: Define ROUND function type
30485         aliases.
30486         * config/i386/i386.c (enum ix86_builtins): Add
30487         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
30488         (struct builtin_description): Add
30489         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
30490         (ix86_expand_sse_round): New static function.
30491         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
30492         function types.
30493         (ix86_builtin_vectorized_function): Handle
30494         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
30495
30496 2011-03-14  Tom Tromey  <tromey@redhat.com>
30497
30498         * c-parser.c (c_parser_asm_string_literal): Clear
30499         warn_overlength_strings.
30500
30501 2011-03-14  Tom Tromey  <tromey@redhat.com>
30502
30503         * c-parser.c (disable_extension_diagnostics): Save
30504         warn_overlength_strings.
30505         (restore_extension_diagnostics): Restore warn_overlength_strings.
30506
30507 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
30508
30509         * BASE-VER: Change to 4.7.0.
30510
30511 2011-03-14  Richard Guenther  <rguenther@suse.de>
30512
30513         PR middle-end/48098
30514         * tree.c (build_vector_from_val): Adjust assert to requirements
30515         and reality.
30516
30517 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
30518
30519         PR bootstrap/48102
30520         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
30521
30522 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
30523
30524         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
30525         terms of target_flags_explicit. Adjust copyright year.
30526
30527         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
30528         * config/rs6000/t-freebsd: New file. Add override for
30529         LIB2FUNCS_EXTRA.
30530
30531 2011-03-13  Chris Demetriou  <cgd@google.com>
30532
30533         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
30534         (-fno-diagnostics-show-option): this, to reflect current default.
30535         (-Werror=): Update text about -fno-diagnostics-show-option.
30536
30537 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
30538
30539         PR target/48053
30540         * config/rs6000/predicates.md (easy_vector_constant_add_self,
30541         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
30542         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
30543         mode is not V2DImode or V2DFmode.
30544         (vspltis_constant): Do not handle V2DImode and V2DFmode.
30545         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
30546         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
30547         registers to 0.
30548         (movdi_internal64): Likewise.
30549
30550 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
30551
30552         PR tree-optimization/47127
30553         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
30554         parameter.
30555         (set_cloog_options): Same.
30556         (scop_to_clast): Same.
30557         (print_clast_stmt): Do not call cloog_state_malloc and
30558         cloog_state_free.
30559         (print_generated_program): Same.
30560         (gloog): Same.
30561         * graphite-clast-to-gimple.h (cloog_state): Declared.
30562         (scop_to_clast): Adjust declaration.
30563         * graphite.c (cloog_state): Defined here.
30564         (graphite_initialize): Call cloog_state_malloc.
30565         (graphite_finalize): Call cloog_state_free.
30566
30567 2011-03-11  Jason Merrill  <jason@redhat.com>
30568
30569         * attribs.c (lookup_attribute_spec): Take const_tree.
30570         * tree.h: Adjust.
30571
30572 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
30573
30574         * config/sparc/sparc.c (sparc_option_override): Use
30575         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
30576
30577 2011-03-11  Richard Guenther  <rguenther@suse.de>
30578
30579         PR tree-optimization/48067
30580         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
30581         multiplication result will be only used once on the target
30582         stmt.
30583
30584 2011-03-11  Richard Guenther  <rguenther@suse.de>
30585
30586         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
30587
30588 2011-03-11  Richard Guenther  <rguenther@suse.de>
30589
30590         PR lto/48073
30591         * tree.c (find_decls_types_r): Do not walk types only reachable
30592         from IDENTIFIER_NODEs.
30593
30594 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
30595
30596         PR middle-end/48044
30597         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
30598         all vnode->force_output nodes as needed.
30599
30600 2011-03-11  Jason Merrill  <jason@redhat.com>
30601
30602         PR c++/48069
30603         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
30604         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
30605
30606 2011-03-11  Martin Jambor  <mjambor@suse.cz>
30607
30608         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
30609         cgraph_node.
30610
30611 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
30612
30613         PR tree-optimization/48063
30614         * ipa-inline.c (cgraph_decide_inlining): Don't try to
30615         inline functions called once if !tree_can_inline_p (node->callers).
30616
30617 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
30618
30619         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
30620         extra_objs.
30621         * config/score/score3.c: Delete.
30622         * config/score/score3.h: Delete.
30623         * config/score/mul-div.S: Delete.
30624         * config/score/sfp-machine.h: Add new file.
30625         * config/score/constraints.md: Add new file.
30626         * config/score/t-score-softfp: Add new file.
30627         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
30628         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
30629         (score7_extra_constraint): Delete.
30630         (score7_option_override): Remove unused code.
30631         * config/score/score.c: Remove score3 and score5 define and code.
30632         * config/score/score.h: Remove score3 and score5 define and code.
30633         * config/score/score.md: Remove score3 template and unusual insn.
30634         * config/score/score.opt: Remove score3 and score5 options.
30635
30636 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30637
30638         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
30639         when _HPUX_SOURCE is defined.
30640         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
30641
30642 2011-03-10  Jason Merrill  <jason@redhat.com>
30643
30644         PR c++/48029
30645         * stor-layout.c (layout_type): Don't set structural equality
30646         on arrays of incomplete type.
30647         * tree.c (type_hash_eq): Handle comparing them properly.
30648
30649 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
30650
30651         PR debug/48043
30652         * config/s390/s390.c (s390_delegitimize_address): Make sure the
30653         result mode matches original rtl mode.
30654
30655 2011-03-10  Nick Clifton  <nickc@redhat.com>
30656
30657         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
30658         (andsi3, andsi3_flags): Fix timings for three operand alternative.
30659
30660 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
30661
30662         PR rtl-optimization/47866
30663         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
30664         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
30665         if target wasn't scalar.
30666         * function.c (assign_stack_temp_for_type): Assert that neither
30667         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
30668         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
30669         macro.
30670         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
30671
30672 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30673
30674         * config/s390/s390-protos.h (s390_label_align): New prototype.
30675         * config/s390/s390.c (s390_label_align): New function.
30676         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
30677
30678 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
30679
30680         PR target/47755
30681         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
30682         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
30683         (output_vec_const_move): Ditto.
30684
30685 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
30686
30687         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
30688         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
30689         * config/mips/mips.c (mips_preferred_reload_class): Make static.
30690         Change 'rclass' argument and result type to reg_class_t.
30691         (TARGET_PREFERRED_RELOAD_CLASS): Define.
30692
30693 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
30694
30695         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
30696         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
30697         (TARGET_MEMORY_MOVE_COST): Define.
30698         (avr_register_move_cost, avr_memory_move_cost): New Functions.
30699
30700 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
30701
30702         PR debug/47881
30703         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
30704         removed anything.
30705
30706         PR tree-optimization/48022
30707         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
30708         for EQ/NE_EXPR.
30709
30710 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
30711
30712         PR debug/47991
30713         * var-tracking.c (find_use_val): Return NULL for
30714         cui->sets && cui->store_p BLKmode MEMs.
30715
30716 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
30717
30718         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
30719         Remove.
30720         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
30721         xstormy16_print_operand_address): Remove.
30722         * config/stormy16/stormy16.c (xstormy16_print_operand,
30723         xstormy16_print_operand_address): Make static.
30724         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
30725
30726 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
30727
30728         PR target/47862
30729         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
30730         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
30731         before definition.
30732
30733 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
30734
30735         PR bootstrap/48000
30736         * cfgloopmanip.c (fix_bb_placements): Return immediately
30737         if FROM is BASE_LOOP's header.
30738
30739 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
30740
30741         * gimplify.c (gimplify_function_tree): Fix building calls
30742         to __builtin_return_address.
30743
30744 2011-03-07  Alan Modra  <amodra@gmail.com>
30745
30746         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
30747         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
30748         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
30749         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
30750         return_mode args.
30751         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
30752         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
30753         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
30754         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
30755         * config/rs6000/rs6000.c
30756         (rs6000_elf_end_indicate_exec_stack): Rename to..
30757         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
30758         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
30759         (rs6000_file_start): ..here.
30760         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
30761         file scope variables.
30762         (call_ABI_of_interest): New function.
30763         (init_cumulative_args): Set above vars when function return value
30764         is a float, vector, or small struct.
30765         (rs6000_function_arg_advance_1): Likewise for function args.
30766         (rs6000_va_start): Set rs6000_passes_float if variable arg function
30767         references float args.
30768
30769 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
30770
30771         * doc/cfg.texi: Remove "See" before @ref.
30772         * doc/invoke.texi: Likewise.
30773
30774 2011-03-05  Jason Merrill  <jason@redhat.com>
30775
30776         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
30777
30778 2011-03-05  Anthony Green  <green@moxielogic.com>
30779
30780         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
30781
30782 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
30783
30784         PR rtl-optimization/47899
30785         * cfgloopmanip.c (fix_bb_placements): Fix first argument
30786         to flow_loop_nested_p when moving the loop upward.
30787
30788 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
30789
30790         PR target/47719
30791         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
30792
30793 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
30794
30795         PR tree-optimization/47967
30796         * ipa-cp.c (build_const_val): Return NULL instead of creating
30797         VIEW_CONVERT_EXPR for mismatching sizes.
30798         (ipcp_create_replace_map): Return NULL if build_const_val failed.
30799         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
30800         give up on versioning.
30801
30802 2011-03-05  Alan Modra  <amodra@gmail.com>
30803
30804         PR target/47986
30805         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
30806         full cmodel medium/large lo_sum + high addresses.
30807
30808 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30809
30810         * config/s390/s390.c (s390_decompose_address): Reject non-literal
30811         pool references in UNSPEC_LTREL_OFFSET.
30812
30813 2011-03-04  Jan Hubicka  <jh@suse.cz>
30814
30815         PR lto/47497
30816         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
30817         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
30818         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
30819         Add node pointers.
30820         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
30821         cgraph_add_thunk): Add node pointers.
30822         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
30823         associated to right node.
30824         (input_node): Update use of cgraph_same_body_alias
30825         and cgraph_add_thunk.
30826
30827 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
30828
30829         * config/i386/i386.opt (mprefer-avx128): New flag.
30830         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
30831         modes when the flag -mprefer-avx128 is on.
30832
30833 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
30834
30835         * dwarf2out.c (compare_loc_operands): Fix address handling.
30836
30837 2011-03-04  Alan Modra  <amodra@gmail.com>
30838
30839         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
30840
30841 2011-03-04  Richard Guenther  <rguenther@suse.de>
30842
30843         PR middle-end/47968
30844         * expmed.c (extract_bit_field_1): Prefer vector modes that
30845         vec_extract patterns can handle.
30846
30847 2011-03-04  Richard Guenther  <rguenther@suse.de>
30848
30849         PR middle-end/47975
30850         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
30851
30852 2011-03-04  Richard Henderson  <rth@redhat.com>
30853
30854         * explow.c (emit_stack_save): Remove 'after' parameter.
30855         (emit_stack_restore): Likewise.
30856         * expr.h: Update to match.
30857         * builtins.c, calls.c, stmt.c: Likewise.
30858         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
30859         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
30860         * function.c (expand_function_end): Insert the emit_stack_save
30861         sequence before parm_birth_insn instead of after.
30862
30863 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
30864
30865         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
30866         (ssse3_pmaddubsw128): Ditto.
30867         (ssse3_pmaddubsw): Ditto.
30868
30869 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
30870
30871         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
30872
30873 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
30874
30875         PR c/47963
30876         * gimplify.c (omp_add_variable): Only call omp_notice_variable
30877         on TYPE_SIZE_UNIT if it is a DECL.
30878
30879         PR debug/47283
30880         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
30881         first operand is not is_gimple_mem_ref_addr, try to fold it.
30882         If the operand still isn't is_gimple_mem_ref_addr, clear
30883         MEM_EXPR on op0.
30884
30885 2011-03-03  Richard Guenther  <rguenther@suse.de>
30886
30887         PR middle-end/47283
30888         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
30889         match comment.
30890         (refs_may_alias_p_1): For release branches return true if
30891         we are confused by our input.
30892
30893 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30894
30895         * config/s390/s390.c (s390_function_value): Rename to ...
30896         (s390_function_and_libcall_value): ... this.
30897         (s390_function_value): New function.
30898         (s390_libcall_value): New function.
30899         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
30900         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
30901         target macro definitions.
30902         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
30903
30904 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
30905
30906         * config/i386/freebsd64.h (CC1_SPEC): Define.
30907         * config/i386/linux64.h (CC1_SPEC): Define.
30908         * config/i386/x86-64.h (CC1_SPEC): Don't define.
30909
30910 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
30911
30912         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
30913         Remove.
30914         * config/stormy16/stormy16.c: Include reload.h.
30915         (xstormy16_memory_move_cost): New function.
30916         (TARGET_MEMORY_MOVE_COST): Define.
30917
30918 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
30919
30920         PR rtl-optimization/47925
30921         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
30922         with side effects.  Remove the more-specific check for volatile asms.
30923
30924 2011-03-02  Alan Modra  <amodra@gmail.com>
30925
30926         PR target/47935
30927         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
30928         toc relative addresses for valid offsets.
30929
30930 2011-03-01  Richard Guenther  <rguenther@suse.de>
30931
30932         PR tree-optimization/47890
30933         * tree-vect-loop.c (get_initial_def_for_induction): Set
30934         related stmt properly.
30935
30936 2011-03-01  Richard Guenther  <rguenther@suse.de>
30937
30938         PR lto/47924
30939         * lto-streamer.c (lto_record_common_node): Also register
30940         the canonical type.
30941
30942 2011-03-01  Richard Guenther  <rguenther@suse.de>
30943
30944         PR lto/46911
30945         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
30946         Do not stream DECL_ABSTRACT_ORIGIN.
30947         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
30948         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
30949         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
30950         Do not stream DECL_ABSTRACT_ORIGIN.
30951         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
30952         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
30953
30954 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
30955
30956         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
30957         FUNCTION_VALUE_REGNO_P): Remove.
30958         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
30959         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
30960         Add 'outgoing' argument.
30961         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
30962         function.
30963         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
30964         TARGET_FUNCTION_VALUE_REGNO_P): Define.
30965
30966 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
30967
30968         PR debug/28047
30969         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
30970         (lookup_filename): Likewise.
30971         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
30972
30973 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
30974             Jakub Jelinek  <jakub@redhat.com>
30975
30976         PR middle-end/47893
30977         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
30978         (assign_stack_local_1): Change last argument type to int.
30979         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
30980         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
30981         don't record padding space into frame_space_list nor use those areas.
30982         (assign_stack_local): Adjust caller.
30983         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
30984         of assign_stack_local, pass 0 as last argument.
30985         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
30986         callers.
30987
30988 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
30989
30990         PR debug/47283
30991         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
30992         Use target address_mode and pointer_mode hooks instead of hardcoded
30993         Pmode and ptr_mode.  Handle some simple cases of extending if
30994         POINTERS_EXTEND_UNSIGNED < 0.
30995         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
30996         Call convert_debug_memory_address.
30997         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
30998         convert_debug_memory_address.
30999
31000         PR middle-end/46790
31001         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
31002         * configure: Regenerated.
31003         * config.in: Regenerated.
31004         * varasm.c (default_function_section): Return NULL
31005         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
31006
31007 2011-02-28  Martin Jambor  <mjambor@suse.cz>
31008
31009         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
31010         the description to match the printed values.
31011
31012 2011-02-28  Richard Guenther  <rguenther@suse.de>
31013
31014         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
31015         of the copied scope tree.
31016
31017 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31018
31019         * doc/extend.texi (Function Attributes): Avoid deeply (and
31020         wrongly) nested tables.
31021
31022 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
31023
31024         PR middle-end/47903
31025         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
31026         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
31027         r isn't op0 nor op1.
31028
31029 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
31030
31031         * config/avr/avr.md: Remove magic comment for emacs.
31032
31033 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
31034
31035         PR target/45261
31036         * config/avr/avr.c (avr_option_override): Use error on bad options.
31037         (avr_help): New function.
31038         (TARGET_HELP): Define.
31039
31040 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
31041
31042         PR target/42240
31043         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
31044         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
31045
31046 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
31047
31048         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
31049         (ARM Options): Ditto.
31050         (i386 and x86-64 Options): Ditto.
31051         (RX Options): Ditto.
31052         (SPARC Options): Ditto.
31053
31054 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
31055
31056         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
31057         FreeBSD 6 and later.  Generally use cpu generic.
31058
31059 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
31060
31061         * doc/cpp.texi: Update copyright years.
31062
31063 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
31064
31065         PR target/46898
31066         * config/lm32/lm32.md (ashrsi3): Added needed variable.
31067
31068 2011-02-25  Jon Beniston  <jon@beniston.com>
31069
31070         PR target/46898
31071         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
31072         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
31073         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
31074         (lm32_block_move_inline): Add type cast to remove warning.
31075         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
31076         (gen_int_relational): Move declarations to start of function.
31077
31078 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
31079
31080         PR tree-optimization/45470
31081         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
31082         can throw internally only.
31083         * tree-vect-stmts.c (vectorizable_call): Likewise.
31084
31085 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
31086
31087         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
31088         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
31089         * config/stormy16/stormy16-protos.h
31090         (xstormy16_preferred_reload_class): Remove.
31091         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
31092         static. Change 'rclass' argument and return type to reg_class_t.
31093         (TARGET_PREFERRED_RELOAD_CLASS,
31094         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
31095
31096 2011-02-24  Richard Guenther  <rguenther@suse.de>
31097
31098         * lto-streamer-in.c (input_bb): Do not find referenced vars
31099         in debug statements.
31100
31101 2011-02-23  Jason Merrill  <jason@redhat.com>
31102
31103         * common.opt (fabi-version): Document v5 and v6.
31104
31105 2011-02-23  Richard Guenther  <rguenther@suse.de>
31106
31107         PR tree-optimization/47849
31108         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
31109
31110 2011-02-23  Jie Zhang  <jie@codesourcery.com>
31111
31112         * opts-common.c (decode_cmdline_option): Print empty string
31113         argument as "" in decoded->orig_option_with_args_text.
31114         * gcc.c (execute): Print empty string argument as ""
31115         in the verbose output.
31116         (do_spec_1): Keep empty string argument.
31117
31118 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
31119
31120         * config.gcc: Declare score-* and crx-* obsolete.
31121
31122 2011-02-23  Jie Zhang  <jie@codesourcery.com>
31123
31124         PR rtl-optimization/47763
31125         * web.c (web_main): Ignore naked clobber when replacing register.
31126
31127 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
31128
31129         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
31130         Remove.
31131
31132 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
31133
31134         PR doc/47848
31135         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
31136
31137 2011-02-22  Mike Stump  <mikestump@comcast.net>
31138
31139         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
31140         assembler.
31141         * configure: Regenerate.
31142
31143 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
31144
31145         PR rtl-optimization/46002
31146         * ira-color.c (update_copy_costs): Change class intersection
31147         test to reg_class_contents[] test of 'hard_regno'.
31148
31149 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
31150
31151         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
31152         than Driver option.
31153         * config/hpux11.opt (mt): Likewise.
31154         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
31155         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
31156         * config/vax/elf.opt (mno-asm-pic): Likewise.
31157         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
31158
31159 2011-02-21  Mike Stump  <mikestump@comcast.net>
31160
31161         PR target/47822
31162         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
31163         tree so we can get save the type.
31164         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
31165         for CFString instead of trying to use past the end of the builtins.
31166         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
31167         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
31168         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
31169         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
31170         Rename to darwin_builtin_cfstring.
31171         (darwin_init_cfstring_builtins): Return the built type.
31172
31173 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
31174
31175         PR target/47840
31176         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
31177         (_mm256_insert_epi64): Use _mm_insert_epi64.
31178
31179 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
31180
31181         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
31182         * config/stormy16/stormy16-protos.h
31183         (xstormy16_mode_dependent_address_p): Remove.
31184         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
31185         Make static. Change return type to bool. Change argument type to
31186         const_rtx. Remove dead code.
31187         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
31188
31189 2011-02-21  Richard Guenther  <rguenther@suse.de>
31190
31191         PR lto/47820
31192         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
31193         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
31194         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
31195         TUs context.
31196         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
31197         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
31198
31199 2011-02-20  Richard Guenther  <rguenther@suse.de>
31200
31201         PR lto/47822
31202         * tree.c (free_lang_data_in_decl): Clean builtins from
31203         the TU decl BLOCK_VARS.
31204
31205 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
31206
31207         PR debug/47620
31208         PR debug/47630
31209         * haifa-sched.c (fix_tick_ready): Skip tick computation
31210         for debug insns.
31211
31212 2011-02-19  Richard Guenther  <rguenther@suse.de>
31213
31214         PR lto/47647
31215         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
31216         Remove lazy BLOCK_VARS streaming.
31217         (lto_input_ts_block_tree_pointers): Likewise.
31218         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
31219
31220 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
31221
31222         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
31223
31224 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
31225
31226         * config/i386/biarch32.h, config/i386/mach.h,
31227         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
31228
31229 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
31230
31231         PR target/47800
31232         * config/i386/i386.md (peephole2 for shift and plus): Use
31233         operands[1] original mode in the first insn.
31234
31235 2011-02-18  Mike Stump  <mikestump@comcast.net>
31236
31237         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
31238
31239 2011-02-18  Jan Hubicka  <jh@suse.cz>
31240
31241         PR middle-end/47788
31242         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
31243         to zero when the function is not inlinable at all.
31244
31245 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31246
31247         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
31248         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
31249         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
31250         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
31251         * config/pa/t-pa64: Likewise.
31252         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
31253
31254 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
31255
31256         PR driver/47787
31257         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
31258
31259 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31260
31261         PR target/47792
31262         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
31263
31264 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
31265
31266         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
31267         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
31268         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
31269         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
31270         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
31271         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
31272         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
31273         m32r_load_postinc_p, m32r_store_preinc_predec_p,
31274         m32r_legitimate_address_p): New functions.
31275         * config/m32r/constraints.md (constraint "S"): Don't use
31276         STORE_PREINC_PREDEC_P.
31277         (constraint "U"): Don't use LOAD_POSTINC_P.
31278
31279 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
31280
31281         PR rtl-optimization/46178
31282         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
31283         compute ira_hard_regno_cover_class[].
31284
31285 2011-02-18  Richard Guenther  <rguenther@suse.de>
31286
31287         PR lto/47798
31288         * lto-streamer.h (lto_global_var_decls): Declare.
31289         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
31290         statics for global var processing.
31291
31292 2011-02-18  Richard Guenther  <rguenther@suse.de>
31293
31294         PR tree-optimization/47737
31295         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
31296         edge dominance check.
31297
31298 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
31299
31300         PR debug/47780
31301         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
31302         avoid invalid rtx sharing.
31303
31304 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
31305
31306         * doc/cpp.texi (Obsolete Features): Add background on the
31307         origin of assertions.
31308
31309 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
31310
31311         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
31312         objc_abi == 2.
31313         * config/darwin.c (output_objc_section_asm_op): Added support for
31314         ABI v1 and v2.
31315         (is_objc_metadata): New.
31316         (darwin_objc2_section): New.
31317         (darwin_objc1_section): New.
31318         (machopic_select_section): Added support for ABI v1 and v2.
31319         (darwin_emit_objc_zeroed): New.
31320         (darwin_output_aligned_bss): Detect objc metadata and treat it
31321         appropriately.
31322         (darwin_asm_output_aligned_decl_common): Same.
31323         (darwin_asm_output_aligned_decl_local): Same.
31324         * config/darwin-sections.def: Updated for ABI v1 and v2.
31325         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
31326         compiling Objective-C code for the NeXT runtime, default to using
31327         ABI version 0 for 32-bit, and version 2 for 64-bit.
31328
31329 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
31330
31331         * common.opt (optimize_fast): New Variable.
31332         * opts.c (default_options_optimization): Use opts->x_optimize_fast
31333         instead of local variable ofast.
31334
31335 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
31336
31337         * doc/invoke.texi (fobjc-abi-version): Documented.
31338         (fobjc-nilcheck): Documented.
31339         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
31340         version.
31341
31342 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
31343
31344         PR driver/47390
31345         * common.opt (export-dynamic): New Driver option.
31346         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
31347
31348 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
31349
31350         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
31351
31352 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
31353             Jan Hubicka  <jh@suse.cz>
31354
31355         PR debug/47106
31356         PR debug/47402
31357         * cfgexpand.c (account_used_vars_for_block): Remove.
31358         (estimated_stack_frame_size): Use referenced vars.
31359         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
31360         that were referenced in the original function.  Test src_fn
31361         rather than cfun.  Drop redundant get_var_ann.
31362         (setup_one_parameter): Drop redundant get_var_ann.
31363         (declare_return_variable): Likewise.
31364         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
31365         (copy_arguments_for_versioning): Drop redundant get_var_ann.
31366         * ipa-inline.c (compute_inline_parameters): Do not compute
31367         disregard_inline_limits here.
31368         (compute_inlinable_for_current, pass_inlinable): New.
31369         (pass_inline_parameters): Require PROP_referenced_vars.
31370         * cgraphunit.c (cgraph_process_new_functions): Don't run
31371         compute_inline_parameters explicitly unless function is in SSA form.
31372         (cgraph_analyze_function): Set .disregard_inline_limits.
31373         * tree-sra.c (convert_callers): Compute inliner parameters
31374         only for functions already in SSA form.
31375
31376 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
31377
31378         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
31379         -mlittle-endian-data.
31380
31381 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
31382
31383         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
31384         -mno-fpu, not -fpu and -no-fpu.
31385         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
31386         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
31387
31388 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
31389
31390         PR target/43653
31391         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
31392         input reload with PLUS RTX.
31393
31394 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31395
31396         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
31397         of InverseVar(MDMX).
31398
31399 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31400
31401         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
31402         --m4-340.
31403
31404 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31405
31406         * config/mn10300/mn10300.opt (mno-crt0): New.
31407
31408 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31409
31410         * config/m68k/uclinux.opt (static-libc): New Driver option.
31411
31412 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31413
31414         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
31415
31416 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
31417
31418         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
31419         %{muser-extend-enabled}.
31420
31421 2011-02-16  Richard Guenther  <rguenther@suse.de>
31422
31423         PR tree-optimization/47738
31424         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
31425         the TODO from tree_predictive_commoning.
31426
31427 2011-02-15  Jeff Law  <law@redhat.com>
31428
31429         Revert
31430         2011-01-25  Jeff Law  <law@redhat.com>
31431
31432         PR rtl-optimization/37273
31433         * ira-costs.c (scan_one_insn): Detect constants living in memory and
31434         handle them like argument loads from stack slots.  Do not double
31435         count memory for memory constants and argument loads from stack slots.
31436
31437 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
31438
31439         PR target/47755
31440         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
31441         mode for vector constants.  Remove code that checks for TImode.
31442
31443 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
31444
31445         PR debug/47106
31446         PR debug/47402
31447         * cgraph.h (compute_inline_parameters): Return void.
31448         * ipa-inline.c (compute_inline_parameters): Adjust.
31449
31450 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
31451
31452         PR debug/47106
31453         PR debug/47402
31454         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
31455         rather than decl.
31456         * cfgexpand.c (estimated_stack_frame_size): Likewise.
31457         * ipa-inline.c (compute_inline_parameters): Adjust.
31458
31459 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
31460
31461         PR debug/47106
31462         PR debug/47402
31463         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
31464         Adjust all users.  Pass FN to...
31465         * tree-flow-inline.h (first_referenced_var): ... this.  Add
31466         fn argument.
31467         * ipa-struct-reorg.c: Adjust.
31468         * tree-dfa.c: Adjust.
31469         * tree-into-ssa.c: Adjust.
31470         * tree-sra.c: Adjust.
31471         * tree-ssa-alias.c: Adjust.
31472         * tree-ssa-live.c: Adjust.
31473         * tree-ssa.c: Adjust.
31474         * tree-ssanames.c: Adjust.
31475         * tree-tailcall.c: Adjust.
31476
31477 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
31478
31479         PR debug/47106
31480         PR debug/47402
31481         * tree-flow.h (referenced_var_lookup): Add fn parameter.
31482         Adjust all callers.
31483         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
31484         * tree-flow-inline.h: Adjust.
31485         * gimple-pretty-print.c: Adjust.
31486         * tree-into-ssa.c: Adjust.
31487         * tree-ssa.c: Adjust.
31488         * cfgexpand.c: Adjust.
31489
31490 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
31491
31492         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
31493         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31494         (EXTRA_CONSTRAINT): Delete.
31495         * config/iq2000/constraints.md: New file.
31496         * config/iq2000/iq2000.md: Include it.
31497         (define_insn ""): Delete.
31498         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
31499         unsupported constraint letters from patterns.
31500         (call_value, call_value_internal1): Likewise.
31501         (call_value_multiple_internal1): Likewise.
31502
31503 2011-02-15  Nick Clifton  <nickc@redhat.com>
31504
31505         * config/mn10300/mn10300.c: Include tm-constrs.h.
31506         (struct liw_data): New data structure describing an LIW candidate
31507         instruction.
31508         (extract_bundle): Use struct liw_data.  Allow small integer
31509         operands for some instructions.
31510         (check_liw_constraints): Use struct liw_data.  Remove swapped
31511         parameter.  Add comments describing the checks.  Fix bug when
31512         assigning the source of liw1 to the source of liw2.
31513         (liw_candidate): Delete.  Code moved into extract_bundle.
31514         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
31515         before swapping.
31516         * config/mn10300/predicates.md (liw_operand): New predicate.
31517         Allows registers and small integer constants.
31518         * config/mn10300/constraints.md (O): New constraint.  Accetps
31519         integers in the range -8 to +7 inclusive.
31520         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
31521         for moving a small integer into a register.  Give this alternative
31522         LIW attributes.
31523         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
31524         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
31525         using the J,K,L and M constraints,
31526         (liw): Remove SI mode on second operands to allow for HI and QI
31527         mode values.
31528         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
31529         instruction.
31530
31531 2011-02-15  Richard Guenther  <rguenther@suse.de>
31532
31533         PR tree-optimization/47743
31534         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
31535         for a non-type-compatible VN lookup bail out.
31536
31537 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
31538
31539         * config/fr30/constraints.md: New file.
31540         * config/fr30/fr30.md: Include it.
31541         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
31542         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31543         (EXTRA_CONSTRAINT): Delete.
31544
31545 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
31546
31547         * config/frv/constraints.md: New file.
31548         * config/frv/predicates.md: Include it.
31549         * config/frv/frv.c (reg_class_from_letter): Delete.
31550         (frv_option_override): Don't initialize it.
31551         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
31552         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
31553         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
31554         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
31555         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
31556         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31557         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
31558         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
31559         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
31560         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
31561         (REG_CLASS_FROM_CONSTRAINT): Delete.
31562
31563 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
31564
31565         PR middle-end/47581
31566         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
31567         if frame size is 0 in a leaf function.
31568
31569 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31570
31571         PR pch/14940
31572         * config/alpha/host-osf.c: New file.
31573         * config/alpha/x-osf: New file.
31574         * config.host (alpha*-dec-osf*): Use it.
31575
31576 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
31577
31578         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
31579         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
31580         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
31581         (rx_mode_dependent_address_p): ...this. Make static. Change argument
31582         type to const_rtx.
31583         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
31584
31585 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
31586
31587         * config/stormy16/constraints.md: New file.
31588         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
31589         Use satisfies_constraint_Q and satisfies_constraint_R.
31590         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
31591         Delete.
31592         (xstormy16_legitiamte_address_p): Declare.
31593         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
31594         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31595         (EXTRA_CONSTRAINT): Delete.
31596         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
31597         Un-staticize.
31598         (xstormy16_extra_constraint_p): Delete.
31599
31600 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
31601
31602         PR tree-optimization/46494
31603         * loop-unroll.c (split_edge_and_insert): Adjust comment.
31604         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
31605         (pass_rtl_loop_done): Add TODO_verify_flow.
31606         * fwprop.c (pass_rtl_fwprop): Likewise.
31607         * modulo-sched.c (pass_sms): Likewise.
31608         * tree-ssa-dom.c (pass_dominator): Likewise.
31609         * tree-ssa-loop-ch.c (pass_ch): Likewise.
31610         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
31611         (pass_tree_loop_done): Likewise.
31612         * tree-ssa-pre.c (execute_pre): Likewise.
31613         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
31614         * tree-ssa-sink.c (pass_sink_code): Likewise.
31615         * tree-vrp.c (pass_vrp): Likewise.
31616
31617 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
31618
31619         * config/v850/constraints.md: New file.
31620         * config/v850/v850.md: Include it.
31621         * config/v850/predicates.md (reg_or_0_operand): Use
31622         satisfies_constraint_G.
31623         (special_symbolref_operand): Use satisfies_constraint_K.
31624         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
31625         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
31626         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
31627         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
31628         (EXTRA_CONSTRAINT): Delete.
31629         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
31630         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
31631         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
31632
31633 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
31634
31635         PR target/47696
31636         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
31637         description.
31638
31639 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
31640
31641         * config/mcore/constraints.md: New file.
31642         * config/mcore/mcore.md: Include it.
31643         * config/mcore/mcore.c (reg_class_from_letter): Delete.
31644         * config/mcore/mcore.h (reg_class_from_letter): Delete.
31645         (REG_CLASS_FROM_LETTER): Delete.
31646         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
31647         insn_const_int_ok_for_constraint.
31648         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
31649         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
31650         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31651         (EXTRA_CONSTRAINT): Delete.
31652
31653 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31654
31655         PR ada/41929
31656         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
31657         (IS_SIGHANDLER): Define.
31658         (sparc64_is_sighandler): New function, split off from
31659         sparc64_fallback_frame_state.
31660         (sparc_is_sighandler): New function, split off from
31661         sparc_fallback_frame_state.
31662         (sparc64_fallback_frame_state): Merge with ...
31663         (sparc_fallback_frame_state): ... this into ...
31664         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
31665         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
31666         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
31667         stack instead of hardcoded offsets.
31668
31669 2011-02-14  Andriy Gapon  <avg@freebsd.org>
31670
31671         PR target/45808
31672         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
31673
31674 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31675
31676         * configure: Regenerate.
31677
31678 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
31679
31680         PR driver/45731
31681         * gcc.c (asm_options): Correct spec matching --target-help.
31682
31683 2011-02-12  Martin Jambor  <mjambor@suse.cz>
31684
31685         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
31686         to gimple call error.
31687
31688 2011-02-12  Mike Stump  <mikestump@comcast.net>
31689
31690         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
31691         comments in backslash regions.
31692
31693 2011-02-12  Mike Stump  <mikestump@comcast.net>
31694             Jakub Jelinek  <jakub@redhat.com>
31695             Iain Sandoe  <iains@gcc.gnu.org>
31696
31697         PR target/47324
31698         * dwarf2out.c (output_cfa_loc): When required, apply the
31699         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
31700         (output_loc_sequence): Likewise.
31701         (output_loc_operands_raw): Likewise.
31702         (output_loc_sequence_raw): Likewise.
31703         (output_cfa_loc): Likewise.
31704         (output_loc_list): Suppress register number adjustment when
31705         calling output_loc_sequence()
31706         (output_die): Likewise.
31707
31708 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
31709
31710         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
31711         Remove macros.
31712         * config/xtensa/xtensa.c (xtensa_register_move_cost,
31713         xtensa_memory_move_cost): New functions.
31714         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
31715
31716 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
31717
31718         PR lto/47225
31719         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
31720         in the current directory.
31721         * configure: Rebuilt.
31722
31723 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
31724
31725         * config/darwin.c (darwin_override_options): Add a hunk missed
31726         from the commit of r168571.  Trim comment line lengths and
31727         correct indents of the preceding block.
31728
31729 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
31730
31731         * gcc.c (driver_handle_option): Concatenate the argument to -F with
31732         the switch.
31733
31734 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
31735
31736         * common.opt (nostartfiles): New Driver option.
31737
31738 2011-02-11  Xinliang David Li  <davidxl@google.com>
31739
31740         PR tree-optimization/47707
31741         * tree-chrec.c (convert_affine_scev): Keep type precision.
31742
31743 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
31744
31745         PR tree-optimization/47420
31746         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
31747
31748 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
31749
31750         PR rtl-optimization/47614
31751         * rtl.h (check_for_inc_dec): Declare.
31752         * dse.c (check_for_inc_dec): Externalize...
31753         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
31754         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
31755
31756 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
31757
31758         PR driver/47678
31759         * gcc.c (main): Do not compile inputs if there were errors in
31760         option handling.
31761         * opts-common.c (read_cmdline_option): Check for wrong language
31762         after other error checks.
31763
31764 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
31765
31766         * cgraph.c: Fix comment typos.
31767         * cgraph.h: Likewise.
31768         * cgraphunit.c: Likewise.
31769         * ipa-cp.c: Likewise.
31770         * ipa-inline.c: Likewise.
31771         * ipa-prop.c: Likewise.
31772         * ipa-pure-const.c: Likewise.
31773         * ipa-ref.c: Likewise.
31774         * ipa-reference.c: Likewise.
31775
31776 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
31777
31778         PR debug/47684
31779         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
31780
31781 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31782
31783         PR testsuite/47400
31784         * doc/sourcebuild.texi (Require Support): Document
31785         dg-require-ascii-locale.
31786
31787 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
31788
31789         * doc/lto.texi (Write summary): Fix missing parentheses.
31790
31791 2011-02-10  DJ Delorie  <dj@redhat.com>
31792
31793         * config/m32c/m32c.c (m32c_option_override): Disable
31794         -fcombine-stack-adjustments until flag value tracking and compare
31795         optimization can be rewritten.
31796
31797 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
31798
31799         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
31800         PROCESSOR_POWER7.
31801         (PROCESSOR_DEFAULT64): Likewise.
31802
31803 2011-02-10  Richard Henderson  <rth@redhat.com>
31804
31805         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
31806         change from 2011-02-03.
31807         * config/rx/rx.c (flags_from_code): Likewise.
31808         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
31809         is valid, n/pz otherwise.
31810         (rx_select_cc_mode): Return CCmode if Y is not zero.
31811
31812 2011-02-10  Richard Guenther  <rguenther@suse.de>
31813
31814         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
31815
31816 2011-02-10  Richard Guenther  <rguenther@suse.de>
31817
31818         PR tree-optimization/47677
31819         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
31820
31821 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
31822
31823         PR target/47665
31824         * combine.c (make_compound_operation): Only change shifts into
31825         multiplication for SCALAR_INT_MODE_P.
31826
31827 2011-02-10  Jie Zhang  <jie@codesourcery.com>
31828
31829         PR testsuite/47622
31830         Revert
31831         2011-02-05  Jie Zhang  <jie@codesourcery.com>
31832         PR debug/42631
31833         * web.c (entry_register): Don't clobber the number of the
31834         first uninitialized reference in used[].
31835
31836 2011-02-09  Richard Guenther  <rguenther@suse.de>
31837
31838         PR tree-optimization/47664
31839         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
31840         all edges again.
31841
31842 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
31843
31844         PR target/46481
31845         PR target/47032
31846         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
31847         PROCESSOR_POWER7.
31848         (PROCESSOR_DEFAULT64): Same.
31849         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
31850
31851 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31852
31853         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
31854
31855 2011-02-09  Martin Jambor  <mjambor@suse.cz>
31856
31857         PR middle-end/45505
31858         * tree-sra.c (struct access): New flags grp_scalar_read and
31859         grp_scalar_write.  Changed description of assignment read and write
31860         flags.
31861         (dump_access): Dump new flags, reorder all of them.
31862         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
31863         to detect multiple scalar reads.
31864         (analyze_access_subtree): Use the new scalar read write flags instead
31865         of the old flags.  Adjusted comments.
31866
31867 2011-02-08  DJ Delorie  <dj@redhat.com>
31868
31869         PR target/47548
31870         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
31871         patterns.
31872
31873 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
31874
31875         * config/m68k/uclinux.opt: New.
31876         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
31877
31878 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
31879
31880         * config/cris/elf.opt (sim): New Driver option.
31881
31882 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
31883
31884         * config/xtensa/elf.opt: New.
31885         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
31886
31887 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
31888
31889         * config/vax/elf.opt: New.
31890         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
31891
31892 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
31893
31894         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
31895
31896 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
31897
31898         * config/gnu-user.opt: New.
31899         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
31900         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
31901         *-*-uclinux*): Use gnu-user.opt.
31902
31903 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
31904
31905         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
31906         * config/i386/gnu.h (CPP_SPEC): Likewise.
31907
31908 2011-02-08  Ian Lance Taylor  <iant@google.com>
31909
31910         * common.opt (fcx-limited-range): Add SetByCombined flag.
31911         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
31912         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
31913         (fassociative-math, freciprocal-math): Likewise.
31914         (funsafe-math-optimizations): Likewise.
31915         * opth-gen.awk: Handle SetByCombined.
31916         * optc-gen.awk: Likewise.
31917         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
31918         (set_unsafe_math_optimizations_flags): Likewise.
31919         * doc/options.texi (Option properties): Document SetByCombined.
31920
31921 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
31922
31923         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
31924         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
31925         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
31926         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
31927         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
31928
31929 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
31930
31931         PR tree-optimization/46834
31932         PR tree-optimization/46994
31933         PR tree-optimization/46995
31934         * graphite-sese-to-poly.c (used_outside_reduction): New.
31935         (detect_commutative_reduction): Call used_outside_reduction.
31936         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
31937         translate_scalar_reduction_to_array only when at least one
31938         loop-phi/close-phi tuple has been detected.
31939
31940 2011-02-08  Richard Guenther  <rguenther@suse.de>
31941
31942         PR middle-end/47639
31943         * tree-vect-generic.c (expand_vector_operations_1): Update
31944         stmts here ...
31945         (expand_vector_operations): ... not here.  Cleanup EH info
31946         and the CFG if required.
31947
31948 2011-02-08  Richard Guenther  <rguenther@suse.de>
31949
31950         PR tree-optimization/47641
31951         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
31952         require type compatibility.
31953
31954 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31955
31956         * gimple-low.c (lower_function_body): Don't remove the location of
31957         the return statement here.
31958         (lower_gimple_return): Do it here instead but only if the return
31959         statement is actually used twice.
31960
31961 2011-02-08  Richard Guenther  <rguenther@suse.de>
31962
31963         PR tree-optimization/47632
31964         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
31965         unused up_to_stmt parameter, return whether cfg-cleanup is
31966         necessary, remove EH info properly.
31967         (forward_propagate_into_gimple_cond): Adjust caller.
31968         (forward_propagate_into_cond): Likewise.
31969         (forward_propagate_comparison): Likewise.
31970         (tree_ssa_forward_propagate_single_use_vars): Make
31971         forward_propagate_comparison case similar to the two others.
31972
31973 2011-02-08  Nick Clifton  <nickc@redhat.com>
31974
31975         * config/mn10300/mn10300.opt (mliw): New command line option.
31976         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
31977         (liw_bundling): New automaton.
31978         (liw): New attribute.
31979         (liw_op): New attribute.
31980         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
31981         (movsi_internal): Add LIW attributes.
31982         (andsi3): Likewise.
31983         (iorsi3): Likewise.
31984         (xorsi3): Likewise.
31985         (addsi3): Separate register and immediate alternatives.
31986         Add LIW attributes.
31987         (subsi3): Likewise.
31988         (cmpsi): Likewise.
31989         (aslsi3): Likewise.
31990         (lshrsi3): Likewise.
31991         (ashrsi3): Likewise.
31992         (liw): New pattern.
31993         * config/mn10300/mn10300.c (liw_op_names): New
31994         (mn10300_print_operand): Handle 'W' operand descriptor.
31995         (extract_bundle): New function.
31996         (check_liw_constraints): New function.
31997         (liw_candidate): New function.
31998         (mn10300_bundle_liw): New function.
31999         (mn10300_reorg): New function.
32000         (TARGET_MACHINE_DEPENDENT_REORG): Define.
32001         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
32002         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
32003         __LIW__ or __NO_LIW__.
32004         * doc/invoke.texi: Describe the -mliw command line option.
32005
32006 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32007
32008         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
32009         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
32010         pthread_mutex_unlock): Remove.
32011         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
32012         * config/pa/t-pa64: Likewise.
32013         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
32014         shared libc if not linking against libpthread.
32015         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
32016
32017 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
32018
32019         PR target/47558
32020         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
32021         on 10.6 and later to ensure that we always use the unwinder from
32022         the system.  Only add -no_compact_unwind when tarteting darwin
32023         10.6 or later.
32024
32025 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
32026
32027         PR target/46997
32028         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
32029         (vec_interleave_lowv2sf): Ditto.
32030         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
32031         (vec_extract_oddv2sf): Ditto.
32032
32033 2011-02-07  Mike Stump  <mikestump@comcast.net>
32034
32035         PR target/42333
32036         Add __ieee_divdc3 entry point.
32037         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
32038         entry point.
32039         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
32040         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
32041         * config/darwin.c (darwin_rename_builtins): Add.
32042         * config/darwin-protos.h (darwin_rename_builtins): Add.
32043
32044 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
32045
32046         PR target/47636
32047         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
32048         for the condition.
32049
32050 2011-02-07  Mike Stump  <mikestump@comcast.net>
32051
32052         * config/darwin.opt (mmacosx-version-min): Update default OS version.
32053
32054 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
32055
32056         PR target/47534
32057         * config/avr/libgcc.S (exit): Move .endfunc
32058
32059 2011-02-07  Richard Guenther  <rguenther@suse.de>
32060
32061         PR tree-optimization/47615
32062         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
32063         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
32064         (run_scc_vn): Initialize it.
32065         (visit_reference_op_load): Use it.
32066         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
32067
32068 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32069
32070         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
32071         DImode trapping arithmetic libfuncs.
32072
32073 2011-02-07  Richard Guenther  <rguenther@suse.de>
32074
32075         PR tree-optimization/47621
32076         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
32077         two duplicates ...
32078         (execute_update_addresses_taken): ... here.  Make it more
32079         conservative in what we accept.
32080
32081 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
32082
32083         * config/sparc/freebsd.h (ASM_SPEC): Define.
32084         * config/sparc/vxworks.h (ASM_SPEC): Define.
32085
32086 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
32087
32088         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
32089
32090 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
32091
32092         * doc/invoke.texi: Remove reference to compiler internals from
32093         user documentation.
32094
32095         * reg-notes.def: Remove REG_VALUE_PROFILE.
32096         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
32097
32098 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
32099
32100         PR middle-end/47610
32101         * varasm.c (default_section_type_flags): If decl is NULL,
32102         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
32103
32104 2011-02-05  Jie Zhang  <jie@codesourcery.com>
32105
32106         PR debug/42631
32107         * web.c (entry_register): Don't clobber the number of the
32108         first uninitialized reference in used[].
32109
32110 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
32111
32112         PR tree-optimization/46194
32113         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
32114         (build_classic_dist_vector_1): Do not represent classic distance
32115         vectors when the access functions are variating in different loops.
32116
32117 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
32118
32119         * config/mips/iris6.opt: New.
32120         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
32121
32122 2011-02-04  Richard Henderson  <rth@redhat.com>
32123             Steve Ellcey  <sje@cup.hp.com>
32124
32125         PR target/46997
32126         * config/ia64/predicates.md (mux1_brcst_element): New.
32127         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
32128         * config/ia64/ia64.c (ia64_unpack_assemble): New.
32129         (ia64_unpack_sign): New.
32130         (ia64_expand_unpack): Rewrite using new routines.
32131         (ia64_expand_widen_sum): Ditto.
32132         (ia64_expand_dot_prod_v8qi): Ditto.
32133         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
32134         routines, add endian check.
32135         (pmpy2_even): Rename from pmpy2_r, add endian check.
32136         (pmpy2_odd): Rename from pmpy2_l, add endian check.
32137         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
32138         (vec_widen_smult_hi_v4hi): Ditto.
32139         (vec_widen_umult_lo_v4hi): Ditto.
32140         (vec_widen_umult_hi_v4hi): Ditto.
32141         (mulv2si3): Change endian checks.
32142         (sdot_prodv4hi): Rewrite with new calls.
32143         (udot_prodv4hi): New.
32144         (vec_pack_ssat_v4hi): Add endian check.
32145         (vec_pack_usat_v4hi): Ditto.
32146         (vec_pack_ssat_v2si): Ditto.
32147         (max1_even): Rename from max1_r, add endian check.
32148         (max1_odd): Rename from max1_l, add endian check.
32149         (*mux1_rev): Format change.
32150         (*mux1_mix): Ditto.
32151         (*mux1_shuf): Ditto.
32152         (*mux1_alt): Ditto.
32153         (*mux1_brcst_v8qi): Use new predicate.
32154         (vec_extract_evenv8qi): Remove endian check.
32155         (vec_extract_oddv8qi): Ditto.
32156         (vec_interleave_lowv4hi): Format change.
32157         (vec_interleave_highv4hi): Ditto.
32158         (mix2_even): Rename from mix2_r, add endian check.
32159         (mix2_odd): Rename from mux2_l, add endian check.
32160         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
32161         (vec_extract_evenodd_helper): Format change.
32162         (vec_extract_evenv4hi): Remove endian check.
32163         (vec_extract_oddv4hi): Remove endian check.
32164         (vec_interleave_lowv2si): Format change.
32165         (vec_interleave_highv2si): Format change.
32166         (vec_initv2si): Remove endian check.
32167         (vecinit_v2si): Add endian check.
32168         (reduc_splus_v2sf): Add endian check.
32169         (reduc_smax_v2sf): Ditto.
32170         (reduc_smin_v2sf): Ditto.
32171         (vec_initv2sf): Remove endian check.
32172         (fpack): Add endian check.
32173         (fswap): Add endian check.
32174         (vec_interleave_highv2sf): Add endian check.
32175         (vec_interleave_lowv2sf): Add endian check.
32176         (fmix_lr): Add endian check.
32177         (vec_setv2sf): Format change.
32178         (*vec_extractv2sf_0_be): Use shift to extract operand.
32179         (*vec_extractv2sf_1_be): New.
32180         (vec_pack_trunc_v4hi): Add endian check.
32181         (vec_pack_trunc_v2si): Format change.
32182
32183 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
32184
32185         PR inline-asm/23200
32186         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
32187         do bb, locus and block comparison and disallow loads if it is not set.
32188         (stmt_is_replaceable_p): New function.
32189         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
32190         callers.
32191         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
32192         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
32193         SSA_NAME_DEF_STMT.
32194         * tree-flow.h (stmt_is_replaceable_p): New prototype.
32195
32196 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
32197
32198         * config/rs6000/xilinx.opt: New.
32199         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
32200
32201 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
32202
32203         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
32204
32205 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
32206
32207         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
32208         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
32209         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
32210         secondary_reload_info, xtensa_secondary_reload): Remove.
32211         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
32212         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
32213         (xtensa_preferred_reload_class): Make static. Change return and
32214         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
32215         Use CONST_DOUBLE_P predicate.
32216         (xtensa_preferred_output_reload_class): New function.
32217         (xtensa_secondary_reload): Make static.
32218
32219 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
32220
32221         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
32222         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
32223         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
32224
32225 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
32226
32227         PR middle-end/31490
32228         * output.h (SECTION_RELRO): Define.
32229         (SECTION_MACH_DEP): Adjust.
32230         (get_variable_section): New prototype.
32231         * varpool.c (varpool_finalize_named_section_flags): New function.
32232         (varpool_assemble_pending_decls): Call it.
32233         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
32234         * cgraphunit.c (cgraph_output_in_order): Call
32235         varpool_finalize_named_section_flags.
32236         * varasm.c (get_section): Allow section flags conflicts between
32237         relro and read-only sections if the section hasn't been declared yet.
32238         Set SECTION_OVERRIDE after diagnosing section type conflict.
32239         (get_variable_section): No longer static.
32240         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
32241         readonly sections that need relocations.
32242         (decl_readonly_section_1): New function.
32243         (decl_readonly_section): Use it.
32244
32245         Revert:
32246         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
32247                     Steve Ellcey  <sje@cup.hp.com>
32248
32249         PR middle-end/31490
32250         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
32251         if section attribute used.
32252
32253 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
32254
32255         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
32256         * config/darwin.c (SECTION_NO_ANCHOR): Define.
32257         (darwin_init_sections): Remove assertion.
32258
32259 2011-02-03  Nick Clifton  <nickc@redhat.com>
32260
32261         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
32262         lt and ge.
32263         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
32264         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
32265         instead of "n" and "pz".
32266         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
32267         CC_FLAG_S.
32268
32269 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
32270
32271         PR target/47312
32272         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
32273         fma, expand FMA_EXPR as fma{,f,l} call.
32274
32275         PR lto/47274
32276         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
32277         copy them into a unsigned char variable and pass address of it to
32278         lto_output_data_stream.
32279
32280         PR target/47564
32281         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
32282         around backend_init_target and lang_dependent_init_target calls.
32283         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
32284         (verify_cgraph_node): Don't call set_cfun here.  Use
32285         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
32286         Set error_found for incorrectly represented calls to thunks.
32287
32288 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
32289
32290         PR debug/43092
32291         PR rtl-optimization/43494
32292         * rtl.h (for_each_inc_dec_fn): New type.
32293         (for_each_inc_dec): Declare.
32294         * rtlanal.c (struct for_each_inc_dec_ops): New type.
32295         (for_each_inc_dec_find_inc_dec): New fn.
32296         (for_each_inc_dec_find_mem): New fn.
32297         (for_each_inc_dec): New fn.
32298         * dse.c (struct insn_size): Remove.
32299         (replace_inc_dec, replace_inc_dec_mem): Remove.
32300         (emit_inc_dec_insn_before): New fn.
32301         (check_for_inc_dec): Use it, along with for_each_inc_dec.
32302         (canon_address): Pass mem modes to cselib_lookup.
32303         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
32304         (cselib_lookup_from_insn): Likewise.
32305         (cselib_subst_to_values): Likewise.
32306         * cselib.c (find_slot_memmode): New var.
32307         (cselib_find_slot): New fn.  Use it instead of
32308         htab_find_slot_with_hash everywhere.
32309         (entry_and_rtx_equal_p): Use find_slot_memmode.
32310         (autoinc_split): New fn.
32311         (rtx_equal_for_cselib_p): Rename and implement in terms of...
32312         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
32313         Deal with autoinc.  Special-case recursion into MEMs.
32314         (cselib_hash_rtx): Likewise.
32315         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
32316         address and MEM modes.
32317         (cselib_subst_to_values): Add memmode, pass it on.
32318         Deal with autoinc.
32319         (cselib_lookup): Add memmode argument, pass it on.
32320         (cselib_lookup_from_insn): Add memmode.
32321         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
32322         (struct cselib_record_autoinc_data): New.
32323         (cselib_record_autoinc_cb): New fn.
32324         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
32325         mode to cselib_lookup.  Reset autoinced REGs here instead of...
32326         (cselib_process_insn): ... here.
32327         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
32328         to cselib_lookup.
32329         (add_uses): Likewise, also to cselib_subst_to_values.
32330         (add_stores): Likewise.
32331         * sched-deps.c (add_insn_mem_dependence): Pass mode to
32332         cselib_subst_to_values.
32333         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
32334         * gcse.c (do_local_cprop): Adjusted.
32335         * postreload.c (reload_cse_simplify_set): Adjusted.
32336         (reload_cse_simplify_operands): Adjusted.
32337         * sel-sched-dump (debug_mem_addr_value): Pass mode.
32338
32339 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
32340
32341         PR tree-optimization/45122
32342         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
32343         unsafe assumptions when there's more than one loop exit.
32344
32345 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
32346
32347         PR target/47272
32348         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
32349         Document using vector double with the load/store builtins, and
32350         that the load/store builtins always use Altivec instructions.
32351
32352         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
32353         to use altivec memory instructions, even on VSX.
32354         (vector_altivec_store_<mode>): Ditto.
32355
32356         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
32357         function.
32358
32359         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
32360         V2DF, V2DI support to load/store overloaded builtins.
32361
32362         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
32363         altivec load/store builtins for V2DF/V2DI types.
32364
32365         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
32366         set avoid indexed addresses on power6 if -maltivec.
32367         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
32368         vector_altivec_load/vector_altivec_store builtins.
32369         (altivec_expand_st_builtin): Ditto.
32370         (altivec_expand_builtin): Add VSX memory builtins.
32371         (rs6000_init_builtins): Add V2DI types to internal types.
32372         (altivec_init_builtins): Add support for V2DF/V2DI altivec
32373         load/store builtins.
32374         (rs6000_address_for_altivec): Insure memory address is appropriate
32375         for Altivec.
32376
32377         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
32378         vec_vsx_ld and vec_vsx_st.
32379         (vsx_store_<mode>): Ditto.
32380
32381         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
32382         variables to hold long long types for VSX vector memory builtins.
32383         (RS6000_BTI_unsigned_long_long): Ditto.
32384         (long_long_integer_type_internal_node): Ditti.
32385         (long_long_unsigned_type_internal_node): Ditti.
32386
32387         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
32388         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
32389         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
32390
32391         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
32392         short cuts.
32393         (vec_vsx_st): Ditto.
32394
32395 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
32396
32397         * config/pa/pa-hpux10.opt: New.
32398         * config/hpux11.opt (pthread): New Driver option.
32399         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
32400         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
32401
32402 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
32403
32404         * config/ia64/vms.opt: New.
32405         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
32406
32407 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
32408
32409         PR target/47580
32410         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
32411         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
32412         generator functions.
32413         (vsx_floatuns<VSi><mode>2): Ditto.
32414         (vsx_fix_trunc<mode><VSi>2): Ditto.
32415         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
32416
32417 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
32418
32419         * config/i386/djgpp.opt (posix): New Driver option.
32420
32421 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
32422
32423         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
32424         Move to the unsupported targets list.
32425
32426 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
32427
32428         PR rtl-optimization/47525
32429         * df-scan.c: Update copyright years.
32430         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
32431         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
32432
32433 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32434
32435         * config/i386/sysv4.h (TARGET_VERSION): Remove.
32436         (SUBTARGET_RETURN_IN_MEMORY): Remove.
32437         (ASM_OUTPUT_ASCII): Remove.
32438         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
32439
32440 2011-02-02  Jeff Law  <law@redhat.com>
32441
32442         PR middle-end/47543
32443         * reload.c (find_reloads_address): Handle reg+d address where both
32444         components are invalid by reloading the entire address.
32445
32446 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
32447             Richard Guenther  <rguenther@suse.de>
32448
32449         PR tree-optimization/40979
32450         PR bootstrap/47044
32451         * passes.c (init_optimization_passes): After LIM call copy_prop
32452         and DCE to clean up.
32453         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
32454
32455 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
32456
32457         PR tree-optimization/47576
32458         PR tree-optimization/47555
32459         * doc/invoke.texi (scev-max-expr-complexity): Documented.
32460         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
32461         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
32462         * tree-scalar-evolution.c (follow_ssa_edge): Use
32463         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
32464
32465 2011-02-02  Richard Guenther  <rguenther@suse.de>
32466
32467         PR tree-optimization/47566
32468         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
32469
32470 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
32471
32472         PR debug/47106
32473         PR debug/47402
32474         * tree-inline.c (declare_return_variable): Remove unused caller
32475         variable.
32476
32477         PR debug/47106
32478         PR debug/47402
32479         * tree-flow-inline.h (clear_is_used, is_used_p): New.
32480         * cfgexpand.c (account_used_vars_for_block): Use them.
32481         * tree-nrv.c (tree_nrv): Likewise.
32482         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
32483         (dump_scope_block): Likewise.
32484         (remove_unused_locals): Likewise.
32485
32486         PR debug/47106
32487         PR debug/47402
32488         * tree-inline.c (declare_return_variable): Add result decl to
32489         local decls only once.
32490         * gimple-low.c (record_vars_into): Mark newly-created variables
32491         as referenced.
32492
32493 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
32494
32495         PR debug/47498
32496         PR debug/47501
32497         PR debug/45136
32498         PR debug/45130
32499         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
32500         debug insns.
32501         (no_real_insns_p, schedule_block, set_priorities): Drop special
32502         treatment of boundary debug insns.
32503         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
32504         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
32505         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
32506         (BOUNDARY_DEBUG_INSN_P): Likewise.
32507         (SCHEDULE_DEBUG_INSN_P): Likewise.
32508         * sched-rgn.c (init_ready_list): Drop special treatment of
32509         boundary debug insns.
32510         * final.c (rest_of_clean_state): Clear notes' BB.
32511
32512 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32513
32514         * config/openbsd.opt (assert=): New Driver option.
32515
32516 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32517
32518         * config/i386/nto.opt: New.
32519         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
32520
32521 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32522
32523         * config/i386/netware.opt: New.
32524         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
32525
32526 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32527
32528         * config/interix.opt (posix): New Driver option.
32529
32530 2011-02-01  DJ Delorie  <dj@redhat.com>
32531
32532         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
32533
32534         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
32535         class for A0/A1.
32536
32537 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
32538
32539         PR tree-optimization/47561
32540         * toplev.c (process_options): Print the Graphite flags.  Add
32541         flag_loop_flatten to the list of options requiring Graphite.
32542
32543 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32544
32545         * config/i386/cygming.opt (posix): New Driver option.
32546
32547 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32548
32549         * config/arm/vxworks.opt: New.
32550         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
32551
32552 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
32553
32554         * config/alpha/elf.opt: New.
32555         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
32556         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
32557
32558 2011-02-01  Richard Guenther  <rguenther@suse.de>
32559
32560         PR tree-optimization/47559
32561         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
32562         store-motion on references that can throw.
32563
32564 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
32565
32566         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
32567         * tree-pass.h (TDF_CSELIB): New macro.
32568         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
32569         cselib_lookup): Check for it rather than for TDF_DETAILS.
32570
32571 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
32572
32573         PR driver/47547
32574         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
32575         is HOST_BIT_BUCKET.
32576
32577         * opts.c (finish_options): Don't add x_aux_base_name if it is
32578         HOST_BIT_BUCKET.
32579
32580 2011-02-01  Richard Guenther  <rguenther@suse.de>
32581
32582         PR tree-optimization/47555
32583         Revert
32584         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
32585
32586         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
32587
32588 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
32589
32590         PR gcc/46692
32591         * config/lm32/t-lm32: Add multilib for all CPU options.
32592
32593 2011-02-01  Richard Guenther  <rguenther@suse.de>
32594
32595         PR tree-optimization/47541
32596         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
32597         sure to have a field at offset zero.
32598
32599 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
32600
32601         * config/arc/arc.opt (EB, EL): New Driver options.
32602
32603 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
32604
32605         * config/alpha/osf5.opt: New.
32606         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
32607
32608 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
32609
32610         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
32611
32612 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
32613
32614         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
32615         -floop-interchange.
32616         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
32617         is an alias of -floop-interchange and that it requires the
32618         Graphite infrastructure.
32619         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
32620         flag_loop_interchange based on the value of flag_tree_loop_linear.
32621
32622 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
32623             Richard Guenther  <rguenther@suse.de>
32624
32625         PR tree-optimization/47538
32626         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
32627         type instead of r1type, except for comparisons.  For right
32628         shifts and comparisons punt if there are mismatches in
32629         sizetype vs. non-sizetype types.
32630
32631 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32632
32633         * doc/sourcebuild.texi (Effective-Target Keywords): Document
32634         avx_runtime.
32635
32636 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32637
32638         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
32639         version number.
32640         * configure: Regenerate.
32641
32642 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32643
32644         * configure.ac (gcc_cv_ld_static_option): Define.
32645         (gcc_cv_ld_dynamic_option): Define.
32646         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
32647         instead.
32648         (HAVE_LD_STATIC_DYNAMIC): Update message.
32649         (LD_STATIC_OPTION): Define.
32650         (LD_DYNAMIC_OPTION): Define.
32651         * configure: Regenerate.
32652         * config.in: Regenerate.
32653         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
32654         HAVE_LD_STATIC_DYNAMIC]: Use them.
32655
32656 2011-01-31  Nick Clifton  <nickc@redhat.com>
32657
32658         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
32659         registers inside interrupt handlers if the handler is not a leaf
32660         function.
32661
32662 2011-01-31  Nick Clifton  <nickc@redhat.com>
32663
32664         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
32665         reg_renumber returning an INVALID_REGNUM.
32666
32667 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
32668
32669         PR libgcj/44341
32670         * doc/install.texi: Document host options discarded when cross
32671         configuring target libraries.
32672
32673 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
32674
32675         Reverted:
32676         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
32677         PR debug/45136
32678         PR debug/45130
32679         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
32680         debug insns.
32681         (no_real_insns_p, schedule_block, set_priorities): Drop special
32682         treatment of boundary debug insns.
32683         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
32684         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
32685         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
32686         (BOUNDARY_DEBUG_INSN_P): Likewise.
32687         (SCHEDULE_DEBUG_INSN_P): Likewise.
32688         * sched-rgn.c (init_ready_list): Drop special treatment of
32689         boundary debug insns.
32690         * final.c (rest_of_clean-state): Clear notes' BB.
32691
32692 2011-01-31  Alan Modra  <amodra@gmail.com>
32693
32694         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
32695         toc relative expressions as we do in print_operand_address.
32696
32697 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
32698
32699         * doc/extend.texi: Follow spelling conventions.
32700         * doc/invoke.texi: Fix a typo.
32701
32702 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
32703
32704         * config/hpux11.opt: New.
32705         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
32706         ia64*-*-hpux*): Use hpux11.opt.
32707
32708 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
32709
32710         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
32711         to tmake_file.
32712
32713 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
32714
32715         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
32716         support sites.
32717
32718 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
32719
32720         * doc/install.texi (Binaries): Remove outdated reference for
32721         Motorola 68HC11/68HC12 downloads.
32722
32723 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
32724
32725         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
32726         Drepper's paper.
32727
32728 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
32729
32730         PR bootstrap/47147
32731         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
32732         used by NetBSD.
32733
32734 2011-01-28  Ahmad Sharif  <asharif@google.com>
32735
32736         * value-prof.c (check_counter): Corrected error message.
32737
32738 2011-01-29  Jie Zhang  <jie@codesourcery.com>
32739
32740         * config/arm/arm.c (arm_legitimize_reload_address): New.
32741         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
32742         arm_legitimize_reload_address.
32743         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
32744
32745 2011-01-28  Ian Lance Taylor  <iant@google.com>
32746
32747         * godump.c (go_define): Ignore macros whose definitions include
32748         two adjacent operands.
32749
32750 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
32751
32752         PR target/42894
32753         * varasm.c (force_const_mem): Store copy of x in desc->constant
32754         instead of x itself.
32755         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
32756         itself into REG_EQUAL note.
32757
32758 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
32759
32760         * config/freebsd.opt (posix, rdynamic): New Driver options.
32761
32762 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32763
32764         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
32765         -Bstatic/-Bdynamic.
32766         * configure: Regenerate.
32767
32768 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
32769
32770         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
32771         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
32772
32773 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
32774
32775         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
32776         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
32777         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
32778         (s390_preferred_reload_class): Make static. Change return and
32779         'rclass' argument type to reg_class_t.
32780
32781 2011-01-27  Jan Hubicka  <jh@suse.cz>
32782
32783         PR middle-end/46949
32784         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
32785         (process_function_and_variable_attributes): Check defined weakrefs.
32786
32787 2011-01-27  Martin Jambor  <mjambor@suse.cz>
32788
32789         PR tree-optimization/47228
32790         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
32791         build_ref_for_offset.
32792
32793 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32794
32795         * config/spu/spu-elf.h (ASM_SPEC): Remove.
32796
32797 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
32798
32799         PR rtl-optimization/46856
32800         * postreload.c (reload_combine_recognize_const_pattern): Do not
32801         separate cc0 setter and user on cc0 targets.
32802
32803 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
32804
32805         PR c/43082
32806         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
32807         passed a VOID_TYPE expression, immediately emit an error and
32808         return error_mark_node.
32809
32810 2011-01-26  Jeff Law  <law@redhat.com>
32811
32812         PR rtl-optimization/47464
32813         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
32814         rather than may_trap_p as needed.
32815
32816 2011-01-26  DJ Delorie  <dj@redhat.com>
32817
32818         PR rtl-optimization/46878
32819         * combine.c (insn_a_feeds_b): Check for the implicit cc0
32820         setter/user dependency as well.
32821
32822 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
32823
32824         PR rtl-optimization/44469
32825         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
32826         after removing trivially dead basic blocks.
32827
32828 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
32829
32830         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
32831         * config/frv/frv.h (LINK_SPEC): Likewise.
32832         * config/i386/netware.h (LINK_SPEC): Likewise.
32833         * config/m68k/linux.h (ASM_SPEC): Likewise.
32834         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
32835         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
32836         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
32837         * config/sparc/linux.h (ASM_SPEC): Likewise.
32838         * config/sparc/linux64.h (ASM_SPEC): Likewise.
32839         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
32840
32841 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
32842
32843         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
32844         * config/frv/frv.h (ASM_SPEC): Likewise.
32845         * config/m68k/linux.h (ASM_SPEC): Likewise.
32846         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
32847         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
32848         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
32849         * config/sparc/linux.h (ASM_SPEC): Likewise.
32850         * config/sparc/linux64.h (ASM_SPEC): Likewise.
32851         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
32852
32853 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
32854
32855         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
32856         * config/frv/frv.h (LINK_SPEC): Likewise.
32857         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
32858
32859 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
32860
32861         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
32862         * config/frv/frv.h (ASM_SPEC): Likewise.
32863         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
32864         * config/m68k/linux.h (ASM_SPEC): Likewise.
32865         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
32866         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
32867         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
32868         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
32869         * config/sparc/linux.h (ASM_SPEC): Likewise.
32870         * config/sparc/linux64.h (ASM_SPEC): Likewise.
32871         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
32872         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
32873
32874 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
32875
32876         PR target/46997
32877         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
32878         (*mux2): Ditto.
32879         (vec_extract_evenodd_help): Ditto.
32880         (vec_extract_evenv4hi): Ditto.
32881         (vec_extract_oddv4hi): Ditto.
32882         (vec_interleave_lowv2si): Ditto.
32883         (vec_interleave_highv2si): Ditto.
32884         (vec_extract_evenv2si): Ditto.
32885         (vec_extract_oddv2si: Ditto.
32886         (vec_pack_trunc_v2si): Ditto.
32887
32888 2011-01-22  Jan Hubicka  <jh@suse.cz>
32889
32890         PR target/47237
32891         * cgraph.h (cgraph_local_info): New field can_change_signature.
32892         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
32893         signature can change.
32894         (ipcp_estimate_growth): Call sequence simplify only if calle signature
32895         can change.
32896         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
32897         (cgraph_function_versioning): We can not change signature of functions
32898         that don't allow that.
32899         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
32900         (lto_input_node): Likewise.
32901         * ipa-inline.c (compute_inline_parameters): Compute
32902         local.can_change_signature.
32903         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
32904         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
32905         functions that can not change signature.
32906         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
32907         init_cumulative_args): Do not use local calling conventions
32908         for functions that can not change signature.
32909
32910 2011-01-22  Jan Hubicka  <jh@suse.cz>
32911
32912         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
32913
32914 2011-01-26  Richard Guenther  <rguenther@suse.de>
32915
32916         PR tree-optimization/47190
32917         * cgraphunit.c (process_common_attributes): New function.
32918         (process_function_and_variable_attributes): Use it.
32919
32920 2011-01-26  Richard Guenther  <rguenther@suse.de>
32921
32922         PR lto/47423
32923         * cgraphbuild.c (record_eh_tables): Record reference to personality
32924         function.
32925
32926 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
32927
32928         PR debug/45454
32929         * sel-sched.c (moveup_expr): Don't let debug insns prevent
32930         non-debug insns from moving up.
32931
32932 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
32933
32934         PR target/40125
32935         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
32936         t-dlldir{,-x} fragment for build and add it to tmake_file.
32937         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
32938         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
32939         * config/i386/t-dlldir: New file.
32940         (SHLIB_DLLDIR): Define.
32941         * config/i386/t-dlldir-x: New file.
32942         (SHLIB_DLLDIR): Define.
32943         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
32944         (SHLIB_INSTALL): Use it.
32945
32946 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
32947
32948         PR target/47246
32949         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
32950         lower bound of the allowed Thumb-2 coprocessor load/store
32951         index range to -256. Add explaining comment.
32952
32953 2011-01-25  Ian Lance Taylor  <iant@google.com>
32954
32955         * godump.c (go_define): Improve lexing of macro expansion to only
32956         accept expressions which match Go spec.
32957
32958 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
32959
32960         PR c++/43601
32961         * tree.c (handle_dll_attribute): Handle it.
32962         * doc/extend.texi (@item dllexport): Mention it.
32963         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
32964
32965 2011-01-25  Ian Lance Taylor  <iant@google.com>
32966
32967         PR tree-optimization/26854
32968         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
32969         (decl_jump_unsafe): Move higher in file, with no other change.
32970         (bind): Set has_jump_unsafe_decl if appropriate.
32971         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
32972         (check_earlier_gotos): Likewise.
32973         (c_check_switch_jump_warnings): Likewise.
32974
32975 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
32976
32977         * doc/invoke.texi (Warning Options): Add missing hyphen.
32978         (-fprofile-dir): Minor grammatical fixes.
32979         (-fbranch-probabilities): Likewise.
32980
32981 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
32982
32983         PR debug/45136
32984         PR debug/45130
32985         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
32986         debug insns.
32987         (no_real_insns_p, schedule_block, set_priorities): Drop special
32988         treatment of boundary debug insns.
32989         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
32990         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
32991         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
32992         (BOUNDARY_DEBUG_INSN_P): Likewise.
32993         (SCHEDULE_DEBUG_INSN_P): Likewise.
32994         * sched-rgn.c (init_ready_list): Drop special treatment of
32995         boundary debug insns.
32996         * final.c (rest_of_clean-state): Clear notes' BB.
32997
32998 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
32999
33000         * Makefile.in (LAMBDA_H): Removed.
33001         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
33002         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
33003         lambda-trans.o, and tree-loop-linear.o.
33004         (lto-symtab.o): Remove dependence on LAMBDA_H.
33005         (tree-loop-linear.o): Remove rule.
33006         (lambda-mat.o): Same.
33007         (lambda-trans.o): Same.
33008         (lambda-code.o): Same.
33009         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
33010         (tree-vect-slp.o): Same.
33011         * hwint.h (gcd): Moved here.
33012         (least_common_multiple): Same.
33013         * lambda-code.c: Removed.
33014         * lambda-mat.c: Removed.
33015         * lambda-trans.c: Removed.
33016         * lambda.h: Removed.
33017         * tree-loop-linear.c: Removed.
33018         * lto-symtab.c: Do not include lambda.h.
33019         * omega.c (gcd): Removed.
33020         * passes.c (init_optimization_passes): Remove pass_linear_transform.
33021         * tree-data-ref.c (print_lambda_vector): Moved here.
33022         (lambda_vector_copy): Same.
33023         (lambda_matrix_copy): Same.
33024         (lambda_matrix_id): Same.
33025         (lambda_vector_first_nz): Same.
33026         (lambda_matrix_row_add): Same.
33027         (lambda_matrix_row_exchange): Same.
33028         (lambda_vector_mult_const): Same.
33029         (lambda_vector_negate): Same.
33030         (lambda_matrix_row_negate): Same.
33031         (lambda_vector_equal): Same.
33032         (lambda_matrix_right_hermite): Same.
33033         * tree-data-ref.h: Do not include lambda.h.
33034         (lambda_vector): Moved here.
33035         (lambda_matrix): Same.
33036         (dependence_level): Same.
33037         (lambda_transform_legal_p): Removed declaration.
33038         (lambda_collect_parameters): Same.
33039         (lambda_compute_access_matrices): Same.
33040         (lambda_vector_gcd): Same.
33041         (lambda_vector_new): Same.
33042         (lambda_vector_clear): Same.
33043         (lambda_vector_lexico_pos): Same.
33044         (lambda_vector_zerop): Same.
33045         (lambda_matrix_new): Same.
33046         * tree-flow.h (least_common_multiple): Removed declaration.
33047         * tree-parloops.c (lambda_trans_matrix): Moved here.
33048         (LTM_MATRIX): Same.
33049         (LTM_ROWSIZE): Same.
33050         (LTM_COLSIZE): Same.
33051         (LTM_DENOMINATOR): Same.
33052         (lambda_trans_matrix_new): Same.
33053         (lambda_matrix_vector_mult): Same.
33054         (lambda_transform_legal_p): Same.
33055         * tree-pass.h (pass_linear_transform): Removed declaration.
33056         * tree-ssa-loop.c (tree_linear_transform): Removed.
33057         (gate_tree_linear_transform): Removed.
33058         (pass_linear_transform): Removed.
33059         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
33060         flag_loop_interchange.
33061
33062 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
33063
33064         PR tree-optimization/47265
33065         PR tree-optimization/47443
33066         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
33067         if name still has some uses.
33068
33069 2011-01-25  Martin Jambor  <mjambor@suse.cz>
33070
33071         PR tree-optimization/47382
33072         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
33073         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
33074
33075 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
33076
33077         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
33078         sjlj_except_unwind_info.
33079
33080 2011-01-25  Richard Guenther  <rguenther@suse.de>
33081
33082         PR tree-optimization/47426
33083         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
33084         visible functions results escape.
33085
33086 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
33087
33088         PR target/45701
33089         * config/arm/arm.c (any_sibcall_uses_r3): New function.
33090         (arm_get_frame_offsets): Use it.
33091
33092 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33093             Jakub Jelinek  <jakub@redhat.com>
33094
33095         PR tree-optimization/47271
33096         * tree-if-conv.c (bb_postdominates_preds): New.
33097         (if_convertible_bb_p): Call bb_postdominates_preds.
33098         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
33099         (predicate_scalar_phi): Call bb_postdominates_preds.
33100
33101 2011-01-25  Nick Clifton  <nickc@redhat.com>
33102
33103         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
33104         * config/rx/rx.c (rx_function_value): Likewise.
33105         (rx_promote_function_mode): Likewise.
33106         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
33107         in order to make it legitimate.
33108         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
33109         make sure that the first operand is the same as the result register.
33110         (addsi3_unspec): Delete.
33111         (subdi3): Do not accept immediate operands.
33112         (subdi3_internal): Likewise.
33113
33114 2011-01-25  Jeff Law  <law@redhat.com>
33115
33116         PR rtl-optimization/37273
33117         * ira-costs.c (scan_one_insn): Detect constants living in memory and
33118         handle them like argument loads from stack slots.  Do not double
33119         count memory for memory constants and argument loads from stack slots.
33120
33121 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
33122
33123         PR tree-optimization/47427
33124         PR tree-optimization/47428
33125         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
33126         coalesce if the new root var would be TREE_READONLY.
33127
33128 2011-01-25  Richard Guenther  <rguenther@suse.de>
33129
33130         PR middle-end/47414
33131         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
33132         correct type for TBAA.
33133
33134 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33135
33136         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
33137         (close_phi_written_to_memory): Call for_each_index with
33138         dr_indices_valid_in_loop.
33139
33140 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33141
33142         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
33143         when it is initialized.
33144
33145 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33146
33147         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
33148         call to graphite_find_data_references_in_stmt.
33149         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
33150         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
33151         call to graphite_find_data_references_in_stmt.
33152         (analyze_drs_in_stmts): Same.
33153         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
33154         in which the scalar analysis of indices is performed.
33155         (create_data_ref): Same.  Update call to dr_analyze_indices.
33156         (find_data_references_in_stmt): Update call to create_data_ref.
33157         (graphite_find_data_references_in_stmt): Same.
33158         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
33159         declaration.
33160         (create_data_ref): Same.
33161         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
33162         call to create_data_ref.
33163
33164 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33165
33166         * graphite-sese-to-poly.c (build_poly_scop): Move
33167         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
33168
33169 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33170
33171         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
33172         VAR_DECL, PARM_DECL, and RESULT_DECL.
33173
33174 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33175
33176         * graphite-dependences.c (reduction_dr_1): Allow several reductions
33177         in a reduction PBB.
33178         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
33179         that have already been marked as PBB_IS_REDUCTION.
33180
33181 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33182
33183         * graphite-scop-detection.c (same_close_phi_node): New.
33184         (remove_duplicate_close_phi): New.
33185         (make_close_phi_nodes_unique): New.
33186         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
33187
33188 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33189
33190         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
33191         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
33192         of both data references to be the same.
33193
33194 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33195
33196         * graphite-dependences.c (build_lexicographical_constraint): Remove
33197         the gdim parameter.
33198         (build_lexicographical_constraint): Adjust call to
33199         ppl_powerset_is_empty.
33200         (dependence_polyhedron): Same.
33201         (graphite_legal_transform_dr): Same.
33202         (graphite_carried_dependence_level_k): Same.
33203         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
33204         parameter.
33205         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
33206
33207 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33208
33209         * graphite-sese-to-poly.c
33210         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
33211         (close_phi_written_to_memory): New.
33212         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
33213         and unshare_expr.
33214
33215 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33216
33217         * doc/install.texi: Update the expected version number of PPL to 0.11.
33218         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
33219         #if PPL_VERSION_MINOR < 11.
33220
33221 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33222
33223         * graphite-dependences.c: Include graphite-cloog-util.h.
33224         (new_poly_ddr): Inlined into dependence_polyhedron.
33225         (free_poly_ddr): Moved close by new_poly_ddr.
33226         (dependence_polyhedron_1): Renamed dependence_polyhedron.
33227         Early return NULL when ppl_powerset_is_empty returns true.
33228         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
33229         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
33230         (graphite_legal_transform_dr): Call new_poly_ddr.
33231         (graphite_carried_dependence_level_k): Same.
33232         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
33233         (dot_transformed_deps_stmt_1): Removed.
33234         (dot_deps_stmt_1): Call dot_deps_stmt_2.
33235         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
33236         (dot_deps_1): Call dot_deps_2.
33237         * Makefile.in (graphite-dependences.o): Add missing dependence on
33238         graphite-cloog-util.h.
33239
33240 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33241
33242         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
33243         (build_lexicographical_constraint): Same.
33244         (dependence_polyhedron_1): Same.
33245         (graphite_legal_transform_dr): Same.
33246         (graphite_carried_dependence_level_k): Same.
33247         * graphite-ppl.c (ppl_powerset_is_empty): New.
33248         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
33249         * tree-data-ref.c (dump_data_reference): Print the basic block index.
33250
33251 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33252
33253         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
33254         the "a followed by b" relation and document it.
33255
33256 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33257
33258         * graphite-dependences.c (build_lexicographical_constraint): Stop the
33259         iteration when the bag of constraints is empty.
33260
33261 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33262
33263         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
33264
33265 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33266
33267         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
33268         nest and two loop depths as parameters.
33269         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
33270         lst_perfect_nestify.
33271
33272 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33273
33274         * graphite-dependences.c (print_pddr): Call
33275         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
33276
33277 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
33278
33279         * graphite-ppl.c (debug_gmp_value): New.
33280         * graphite-ppl.h (debug_gmp_value): Declared.
33281
33282 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
33283
33284         * doc/install.texi: Document availability of cloog-0.16.
33285
33286 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
33287
33288         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
33289         invalid postdominance info.
33290
33291 2011-01-24  Jan Hubicka  <jh@suse.cz>
33292
33293         PR c/21659
33294         * doc/extend.texi (weak pragma): Drop claim that it must
33295         appear before definition.
33296         * varasm.c (merge_weak, declare_weak): Only sanity check
33297         that DECL is not output at a time it is declared weak.
33298
33299 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
33300
33301         * machmode.def: Fixed comments.
33302
33303 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
33304
33305         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
33306
33307 2011-01-24  Paul Koning  <ni1d@arrl.net>
33308
33309         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
33310         WORDS_BIG_ENDIAN.
33311
33312 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
33313
33314         PR target/46519
33315         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
33316         (block_info): Add scanned and prev.
33317         (move_or_delete_vzeroupper_2): Return if the basic block
33318         has been scanned and the upper 128bit state is unchanged
33319         from the last scan.
33320         (move_or_delete_vzeroupper_1): Return true if the exit
33321         state is changed.
33322         (move_or_delete_vzeroupper): Visit basic blocks using the
33323         work-list based algorithm based on vt_find_locations in
33324         var-tracking.c.
33325
33326         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
33327
33328 2011-01-24  Nick Clifton  <nickc@redhat.com>
33329
33330         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
33331         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
33332         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
33333         then define __v850e1__.
33334         * doc/invoke.texi: Document -mv850es.
33335
33336 2011-01-24  Richard Henderson  <rth@redhat.com>
33337
33338         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
33339         compound unordered comparisons.
33340         * config/rx/rx.c (rx_split_fp_compare): Remove.
33341         * config/rx/rx-protos.h: Update.
33342         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
33343         (cbranchsf4): Don't call rx_split_fp_compare.
33344         (*cbranchsf4): Use rx_split_cbranch.
33345         (*cmpsf): Don't accept "i" constraint.
33346         (*conditional_branch): Only valid after reload.
33347         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
33348
33349 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
33350
33351         PR target/47385
33352         * config/rs6000/altivec.md (vector constant splitters): Add
33353         support for creating vector single precision constants if -mvsx is
33354         used and we would create the constant using Altivec primitives.
33355
33356 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
33357             Richard Sandiford  <rdsandiford@googlemail.com>
33358
33359         PR rtl-optimization/47166
33360         * reload1.c (emit_reload_insns): Disable the spill_reg_store
33361         mechanism for PRE_MODIFY and POST_MODIFY.
33362         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
33363         reloadreg.
33364
33365 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
33366
33367         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
33368
33369 2011-01-22  Jan Hubicka  <jh@suse.cz>
33370
33371         PR lto/47333
33372         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
33373
33374 2011-01-22  Jan Hubicka  <jh@suse.cz>
33375
33376         PR tree-optimization/43884
33377         PR lto/44334
33378         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
33379         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
33380
33381 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
33382
33383         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
33384         * config/s390/s390.c (s390_register_move_cost,
33385         s390_memory_move_cost): New.
33386         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
33387
33388 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33389
33390         PR middle-end/47401
33391         * except.c (sjlj_assign_call_site_values): Move setting the
33392         crtl->uses_eh_lsda flag to ...
33393         (sjlj_mark_call_sites): ... here.
33394         (sjlj_emit_function_enter): Support NULL dispatch label.
33395         (sjlj_build_landing_pads): In a function with no landing pads
33396         that still has must-not-throw regions, generate code to register
33397         a personality function with empty LSDA.
33398
33399 2011-01-21  Richard Henderson  <rth@redhat.com>
33400
33401         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
33402
33403         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
33404
33405         * compare-elim.c: New file.
33406         * Makefile.in (OBJS-common): Add it.
33407         (compare-elim.o): New.
33408         * common.opt (fcompare-elim): New.
33409         * opts.c (default_options_table): Add OPT_fcompare_elim.
33410         * tree-pass.h (pass_compare_elim_after_reload): New.
33411         * passes.c (init_optimization_passes): Add it.
33412         * recog.h: Protect against re-inclusion.
33413         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
33414         * doc/invoke.texi (-fcompare-elim): Document it.
33415         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
33416         * doc/tm.texi: Rebuild.
33417
33418 2011-01-22  Nick Clifton  <nickc@redhat.com>
33419
33420         * config/rx/rx.md (cstoresf4): Pass comparison operator to
33421         rx_split_fp_compare.
33422
33423 2011-01-22  Nick Clifton  <nickc@redhat.com>
33424
33425         * config/rx/rx.md (UNSPEC_CONST): New.
33426         (deallocate_and_return): Wrap the amount popped off the stack in
33427         an UNSPEC_CONST in order to stop it being rejected by
33428         -mmax-constant-size.
33429         (pop_and_return): Add a "(return)" rtx.
33430         (call): Drop the immediate operand.
33431         (call_internal): Likewise.
33432         (call_value): Likewise.
33433         (call_value_internal): Likewise.
33434         (sibcall_internal): Likewise.
33435         (sibcall_value_internal): Likewise.
33436         (sibcall): Likewise.  Generate an explicit call using
33437         sibcall_internal.
33438         (sibcall_value): Likewise.
33439         (mov<>): FAIL if a constant operand is not legitimate.
33440         (addsi3_unpsec): New pattern.
33441
33442         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
33443         (ok_for_max_constant): New function.
33444         (gen_safe_add): New function.
33445         (rx_expand_prologue): Use gen_safe_add.
33446         (rx_expand_epilogue): Likewise.
33447         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
33448         UNSPEC CONSTs.
33449
33450 2011-01-21  Jeff Law  <law@redhat.com>
33451
33452         PR tree-optimization/47053
33453         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
33454         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
33455         statements are deleted.
33456         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
33457         is nonempty, then purge dead edges and cleanup the CFG.
33458
33459 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
33460
33461         PR debug/47402
33462         Temporarily revert:
33463         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
33464         PR debug/47106
33465         * tree-dfa.c (create_var_ann): Mark variable as used.
33466
33467 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
33468
33469         PR middle-end/45566
33470         * except.c (convert_to_eh_region_ranges): Emit queued no-region
33471         notes from other section in hot/cold partitioning even if
33472         last_action is -3.  Increment call_site_base.
33473
33474         PR rtl-optimization/47366
33475         * fwprop.c (forward_propagate_into): Return bool.  If
33476         any changes are made, -fnon-call-exceptions is used and
33477         REG_EH_REGION note is present, call purge_dead_edges
33478         and return true if it purged anything.
33479         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
33480         any EH edges were purged.
33481
33482 2011-01-21  Jeff Law  <law@redhat.com>
33483
33484         PR rtl-optimization/41619
33485         * caller-save.c (setup_save_areas): Break out code to determine
33486         which hard regs are live across calls by examining the reload chains
33487         so that it is always used.
33488         Eliminate code which checked REG_N_CALLS_CROSSED.
33489
33490 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
33491
33492         PR tree-optimization/47355
33493         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
33494         NOP has non-debug uses beyond PHIs in new_bb.
33495
33496 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
33497
33498         PR debug/47106
33499         * cfgexpand.c (account_used_vars_for_block): Only account vars
33500         that are annotated as used.
33501         (estimated_stack_frame_size): Don't set TREE_USED.
33502         * tree-dfa.c (create_var_ann): Mark variable as used.
33503
33504 2011-01-21  Richard Guenther  <rguenther@suse.de>
33505
33506         PR middle-end/47395
33507         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
33508
33509 2011-01-21  Richard Guenther  <rguenther@suse.de>
33510
33511         PR tree-optimization/47365
33512         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
33513         (vn_reference_lookup_pieces): Adjust.
33514         (vn_reference_lookup): Likewise.
33515         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
33516         (vn_reference_lookup_3): Only look through kills if in
33517         VN_WALKREWRITE mode.
33518         (vn_reference_lookup_pieces): Adjust.
33519         (vn_reference_lookup): Likewise.
33520         (visit_reference_op_load): Likewise.
33521         (visit_reference_op_store): Likewise.
33522         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
33523         (compute_avail): Likewise.
33524         (eliminate): Likewise.
33525
33526 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
33527
33528         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
33529         DECL_IGNORED_P non-reg vars if they are used.
33530
33531         PR tree-optimization/47391
33532         * varpool.c (const_value_known_p): Return false if
33533         decl is volatile.
33534
33535 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
33536
33537         PR bootstrap/47215
33538         * config/i386/i386.c (ix86_local_alignment): Handle
33539         case for va_list_type_node is nil.
33540         (ix86_canonical_va_list_type): Likewise.
33541
33542 2011-01-21  Alan Modra  <amodra@gmail.com>
33543
33544         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
33545         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
33546
33547 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33548
33549         * config/arm/arm.md (define_attr type): Rename f_load
33550         and f_store to f_fpa_load and f_fpa_store. Update.
33551         (write_conflict): Deal with rename fallout.
33552         (*push_fp_multi): Likewise.
33553         * config/arm/fpa.md (f_load): Use f_fpa_load.
33554         (f_store): Use f_fpa_store.
33555         (*movsf_fpa): Likewise.
33556         (*movdf_fpa): Likewise.
33557         (*movxf_fpa): Likewise.
33558         (*thumb2_movsf_fpa): Likewise.
33559         (*thumb2_movdf_fpa): Likewise.
33560         (*thumb2_movxf_fpa): Likewise.
33561         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
33562         f_loadd and f_stored.
33563         (*thumb2_movdi_vfp): Likewise.
33564         (*thumb2_movsf_vfp): Fix attribute to f_loads.
33565         (*thumb2_movsi_vfp): Likewise.
33566         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
33567         Use f_loads instead of f_load.
33568         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
33569
33570 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
33571
33572         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
33573         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
33574         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
33575         (xtensa_mode_dependent_address_p): New function.
33576         (constantpool_address_p): Make static. Change return type to bool.
33577         Change argument type to const_rtx. Use CONST_INT_P predicate.
33578
33579 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
33580
33581         PR debug/46583
33582         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
33583
33584 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
33585
33586         PR debug/47283
33587         * cfgexpand.c (expand_debug_expr): Instead of generating
33588         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
33589         etc. handling.
33590
33591 2011-01-20  Richard Guenther  <rguenther@suse.de>
33592
33593         PR middle-end/47370
33594         * tree-inline.c (remap_gimple_op_r): Recurse manually for
33595         the pointer operand of MEM_REFs.
33596
33597 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
33598
33599         PR tree-optimization/46130
33600         * ipa-split.c (consider_split): If return_bb contains non-virtual
33601         PHIs other than for retval or if split_function would not adjust it,
33602         refuse to split.
33603
33604 2011-01-20  Richard Guenther  <rguenther@suse.de>
33605
33606         PR tree-optimization/47167
33607         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
33608         Revert previous change, only avoid enumeral type changes.
33609
33610 2011-01-19  Mike Stump  <mikestump@comcast.net>
33611
33612         * doc/tm.texi.in (BRANCH_COST): Englishify.
33613         * doc/tm.texi (BRANCH_COST): Likewise.
33614
33615 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
33616
33617         PR c++/47291
33618         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
33619         (gen_scheduled_generic_parms_dies): New functions.
33620         (gen_struct_or_union_type_die): Schedule template parameters DIEs
33621         generation for the end of CU compilation.
33622         (dwarf2out_finish): Generate template parameters DIEs here.
33623
33624 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
33625
33626         PR debug/46240
33627         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
33628         debug bind stmt on merge edges.
33629
33630 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
33631
33632         PR debug/47079
33633         PR debug/46724
33634         * function.c (instantiate_expr): Instantiate incoming rtl of
33635         implicit arguments, and recurse on VALUE_EXPRs.
33636         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
33637         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
33638
33639 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
33640
33641         * c-parser.c (c_parser_for_statement): Initialize
33642         collection_expression.
33643
33644 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
33645
33646         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
33647
33648 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
33649
33650         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
33651         (LINK_SHLIB_SPEC): Don't use %(link_path).
33652         (SUBTARGET_EXTRA_SPECS): Remove link_path.
33653
33654 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
33655
33656         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
33657         (NO_SHARED_LIB_SUPPORT): Remove.
33658         (LINK_SHLIB_SPEC): Remove one conditional definition.
33659
33660 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
33661
33662         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
33663         %{call_shared}.
33664         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
33665         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
33666         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
33667         %{call_shared} and conditionals on these options not being passed.
33668         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
33669         %{call_shared}.
33670
33671 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
33672
33673         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
33674         simplify.
33675
33676         * ipa-split.c: Spelling fixes.
33677
33678 2011-01-19  Richard Henderson  <rth@redhat.com>
33679
33680         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
33681         (*mulsi3): Likewise.
33682
33683         * longlong.h [__mn10300__] (count_leading_zeros): New.
33684         [__mn10300__] (umul_ppmm, smul_ppmm): New.
33685         [__mn10300__] (add_ssaaaa, subddmmss): New.
33686         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
33687         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
33688
33689 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33690
33691         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
33692
33693 2011-01-19  Richard Henderson  <rth@redhat.com>
33694
33695         * config/mn10300/mn10300.md (addsi3_flags): New.
33696         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
33697         (subsi3_flags, subc_internal, subdi3): New.
33698         (subdi3_internal, *subdi3_degenerate): New.
33699         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
33700
33701         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
33702         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
33703         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
33704         * config/mn10300/mn10300-protos.h: Update.
33705         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
33706         (return_ret): Likewise.  Rename from return_internal_regs.
33707         (return_internal): Remove.
33708
33709         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
33710         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
33711         (mn10300_legitimate_constant_p): Likewise.
33712         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
33713         (mn10300_frame_size): New.
33714         (mn10300_expand_prologue): Use it.
33715         (mn10300_expand_epilogue): Likewise.
33716         (mn10300_initial_offset): Likewise.
33717         * config/mn10300/mn10300-protos.h: Update.
33718         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
33719         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
33720         (prologue, epilogue, return_internal): Tidy output code.
33721         (mn10300_store_multiple_operation, return): Likewise.
33722         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
33723         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
33724         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
33725         (load_pic, am33_load_pic): New.
33726         (mn10300_load_pic0, mn10300_load_pic1): New.
33727
33728         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
33729         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
33730         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
33731         (cc_flags_for_mode, cc_flags_for_code): New.
33732         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
33733         overflow flag is not valid.  Validate that the flags we need
33734         for the comparison are valid.
33735         (mn10300_output_cmp): Remove.
33736         (mn10300_output_add): New.
33737         (mn10300_select_cc_mode): Use cc_flags_for_code.
33738         (mn10300_split_cbranch): New.
33739         (mn10300_match_ccmode): New.
33740         (mn10300_split_and_operand_count): New.
33741         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
33742         to the function.
33743         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
33744         (addsi3): ... here.  Use mn10300_output_add.
33745         (*addsi3_flags): New.
33746         (*am33_subsi3, *mn10300_subsi3): Merge...
33747         (subsi3): ... here.  Use attribute isa.
33748         (*subsi3_flags): New.
33749         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
33750         when possible.
33751         (*am33_andsi3, *mn10300_andsi3): Merge...
33752         (andsi3): ... here.
33753         (*andsi3_flags): New.
33754         (andsi3 splitters): New.
33755         (*am33_iorsi3, *mn10300_iorsi3): Merge...
33756         (iorsi3): ... here.
33757         (*iorsi3_flags): New.
33758         (*am33_xorsi3, *mn10300_xorsi3): Merge...
33759         (xorsi3): ... here.
33760         (*xorsi3_flags): New.
33761         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
33762         (one_cmplsi2): ... here.
33763         (*one_cmplsi2_flags): New.
33764         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
33765         instead of "dax" in constraints.  Use mn10300_split_cbranch.
33766         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
33767         use matching constraints to eliminate a self-comparison.
33768         (*integer_conditional_branch): Rename from integer_conditional_branch.
33769         Use int_mode_flags to match CC_REG.
33770         (*cbranchsi4_btst, *btstsi): New.
33771         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
33772         mn10300_split_cbranch.
33773         (*am33_cmpsf): Rename from am33_cmpsf.
33774         (*float_conditional_branch): Rename from float_conditional_branch.
33775         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
33776         (zero_extendqisi2): ... here.
33777         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
33778         (zero_extendhisi2): ... here.
33779         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
33780         (extendqisi2): ... here.
33781         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
33782         (extendhisi2): ... here.
33783         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
33784         (ashlsi3): ... here.
33785         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
33786         (lshrsi3): ... here.
33787         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
33788         (ashrsi3): ... here.
33789         (consecutive add peephole): Remove.
33790         * config/mn10300/predicates.md (label_ref_operand): New.
33791         (int_mode_flags): New.
33792         (CCZN_comparison_operator): New.
33793
33794         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
33795         (throughput_42_latency_43): New reservation.
33796         (mulsidi3, umulsidi3): New expanders.
33797         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
33798         the MDR register to allocation; separately allocate the low and
33799         high parts of the DImode result.
33800         (umulsidi3_internal): Similarly.
33801         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
33802         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
33803         (udivsi3, umodsi3): Remove.
33804         (udivmodsi4, divmodsi4): New expanders.
33805         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
33806         (*divmodsi4): Simiarly.
33807         (ext_internal): New.
33808
33809         * config/mn10300/constraints.md ("z"): New constraint.
33810         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
33811         (FIXED_REGISTERS): Don't fix MDR.
33812         (CALL_USED_REGSITERS): Reformat nicely.
33813         (REG_ALLOC_ORDER): Add MDR.
33814         (enum regclass): Add MDR_REGS.
33815         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
33816         (IRA_COVER_CLASSES): Add MDR_REGS.
33817         (REGNO_REG_CLASS): Handle MDR_REG.
33818         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
33819         (mn10300_register_move_cost): Likewise.
33820         * config/mn10300/mn10300.md (MDR_REG): New.
33821         (*movsi_internal): Handle moves to/from MDR_REGS.
33822
33823         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
33824         POST_MODIFY.
33825         (mn10300_secondary_reload): Tidy combination reload classes.
33826         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
33827         addresses for AM33.  Allow symbolic offsets for reg+imm.
33828         (mn10300_regno_in_class_p): New.
33829         (mn10300_legitimize_reload_address): New.
33830         * config/mn10300/mn10300.h (enum reg_class): Remove
33831         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
33832         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
33833         SP_OR_GENERAL_REGS.
33834         (REG_CLASS_NAMES): Update to match.
33835         (REG_CLASS_CONTENTS): Likewise.
33836         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
33837         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
33838         (REGNO_IN_RANGE_P): Remove.
33839         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
33840         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
33841         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
33842         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
33843         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
33844         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
33845         (REGNO_GENERAL_P): New.
33846         (HAVE_POST_MODIFY_DISP): New.
33847         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
33848         (LEGITIMIZE_RELOAD_ADDRESS): New.
33849         * config/mn10300/mn10300-protos.h: Update.
33850
33851         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
33852         DATA_REGS for AM33 stack-pointer destination.
33853         (mn10300_preferred_output_reload_class): Likewise.
33854         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
33855         into a form appropriate for ...
33856         (TARGET_SECONDARY_RELOAD): New.
33857         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
33858         * config/mn10300/mn10300-protos.h: Update.
33859         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
33860         reload_insi; use the "A" constraint for the scratch; handle AM33
33861         moves of sp to non-address registers.
33862
33863         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
33864         (*movqi_internal): ... here.
33865         (*am33_movhi, *mn10300_movhi): Merge into...
33866         (*movhi_internal): ... here.
33867         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
33868         as the source/destination of moves from/to SP.
33869         (movsf): Only allow for AM33-2.
33870         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
33871         any integer constant constraint.  Only allow for AM33-2.  Tidy
33872         all of the alternative outputs.
33873         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
33874         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
33875         for MN103.
33876         (udivsi3, umodsi3): New patterns for MN103 only.
33877
33878 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
33879
33880         * doc/tm.texi.in: Spell out that a lack of register class unions
33881         can lead to ICEs.
33882         * doc/tm.texi: Regenerate.
33883
33884 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
33885
33886         PR rtl-optimization/47337
33887         * dce.c (check_argument_store): New function.
33888         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
33889
33890         PR tree-optimization/47290
33891         * tree-eh.c (infinite_empty_loop_p): New function.
33892         (cleanup_empty_eh): Use it.
33893
33894 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
33895
33896         PR target/46997
33897         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
33898         (a64_expand_widen_sum): Ditto.
33899         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
33900         (vec_extract_evenodd_help): Ditto.
33901         (vec_extract_evenv4hi): Ditto.
33902         (vec_extract_oddv4hi): Ditto.
33903         (vec_extract_evenv2si): Ditto.
33904         (vec_extract_oddv2si): Ditto.
33905         (vec_extract_evenv2sf): Ditto.
33906         (vec_extract_oddv2sf): Ditto.
33907         (vec_pack_trunc_v4hi: Ditto.
33908         (vec_pack_trunc_v2si): Ditto.
33909         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
33910         (vec_interleave_highv8qi): Ditto.
33911         (mix1_r): Ditto.
33912         (vec_extract_oddv8qi): Ditto.
33913         (vec_interleave_lowv4hi): Ditto.
33914         (vec_interleave_highv4hi): Ditto.
33915         (vec_interleave_lowv2si): Ditto.
33916         (vec_interleave_highv2si): Ditto.
33917
33918 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33919
33920         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
33921         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
33922         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
33923         (pa_c_mode_for_suffix): New.
33924         (TARGET_EXPAND_BUILTIN): Define.
33925         (TARGET_C_MODE_FOR_SUFFIX): Define.
33926         (pa_builtins): Define.
33927         (pa_init_builtins): Register __float128 type and init new support
33928         builtins.
33929         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
33930         * config/pa/quadlib.c (_U_Qfcopysign): New.
33931
33932 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
33933
33934         PR middle-end/46894
33935         * explow.c (allocate_dynamic_stack_space): Do not assume more than
33936         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
33937         are defined.
33938
33939 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33940
33941         PR tree-optimization/47179
33942         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
33943         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
33944
33945 2011-01-18  Richard Guenther  <rguenther@suse.de>
33946
33947         PR rtl-optimization/47216
33948         * emit-rtl.c: Include tree-flow.h.
33949         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
33950         of replicating it with different semantics.
33951         * Makefile.in (emit-rtl.o): Adjust.
33952
33953 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33954
33955         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
33956         (cortex_a9_dp): Handle neon types correctly.
33957
33958 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
33959
33960         PR rtl-optimization/47299
33961         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
33962         subtarget.  Use normal multiplication if both operands are constants.
33963         * expmed.c (expand_widening_mult): Don't try to optimize constant
33964         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
33965         before using it.
33966
33967 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33968
33969         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
33970         spacing after 'e.g.', typos, comma, hyphenation.
33971
33972 2011-01-17  Richard Henderson  <rth@redhat.com>
33973
33974         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
33975         (rx_restricted_mem_operand): New.
33976         (rx_shift_operand): Use register_operand.
33977         (rx_source_operand, rx_compare_operand): Likewise.
33978         * config/rx/rx.md (addsi3_flags): New expander.
33979         (adddi3): Rewrite as expander.
33980         (adc_internal, *adc_flags, adddi3_internal): New patterns.
33981         (subsi3_flags): New expander.
33982         (subdi3): Rewrite as expander.
33983         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
33984
33985         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
33986         (rx_init_builtins): Remove sat builtin.
33987         (rx_expand_builtin): Likewise.
33988         * config/rx/rx.md (ssaddsi3): New.
33989         (*sat): Rename from sat.  Represent the CC_REG input.
33990
33991         * config/rx/predicates.md (rshift_operator): New.
33992         * config/rx/rx.c (rx_expand_insv): Remove.
33993         * config/rx/rx-protos.h: Update.
33994         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
33995         operand to the canonical position.
33996         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
33997         (*bitclr, *bitclr_in_memory): Similarly.
33998         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
33999         (insv): Retain the zero_extract in the expansion.
34000
34001         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
34002         (bswaphi2, bitinvert, revw): Likewise.
34003
34004         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
34005         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
34006         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
34007         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
34008         (bitset, bitset_in_memory): Likewise.
34009         (bitinvert, bitinvert_in_memory): Likewise.
34010         (bitclr, bitclr_in_memory): Likewise.
34011         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
34012         (rx_strend, rx_cmpstrn): Likewise.
34013         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
34014         (bitop peep2 patterns): Remove.
34015
34016         * config/rx/rx.c (rx_match_ccmode): New.
34017         * config/rx/rx-protos.h: Update.
34018         * config/rx/rx.md (abssi2): Clobber, don't set flags.
34019         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
34020         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
34021         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
34022         (fix_truncsfsi2, floatsisf2): Likewise.
34023         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
34024         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
34025         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
34026         (*subsi3_flags, *xorsi3_flags): New.
34027
34028         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
34029
34030         * config/rx/rx.c (rx_print_operand): Remove workaround for
34031         unsplit comparison operations.
34032
34033         * config/rx/rx.md (movsicc): Split after reload.
34034         (*movsicc): Merge *movsieq and *movsine via match_operator.
34035         (*stcc): New pattern.
34036
34037         * config/rx/rx.c (rx_float_compare_mode): Remove.
34038         * config/rx/rx.h (rx_float_compare_mode): Remove.
34039         * config/rx/rx.md (cstoresi4): Split after reload.
34040         (*sccc): New pattern.
34041
34042         * config/rx/predicates.md (label_ref_operand): New.
34043         (rx_z_comparison_operator): New.
34044         (rx_zs_comparison_operator): New.
34045         (rx_fp_comparison_operator): New.
34046         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
34047         Validate that the flags are set properly for the comparison.
34048         (rx_gen_cond_branch_template): Remove.
34049         (rx_cc_modes_compatible): Remove.
34050         (mode_from_flags): New.
34051         (flags_from_code): Rename from flags_needed_for_conditional.
34052         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
34053         (rx_select_cc_mode): Likewise.
34054         (rx_split_fp_compare): New.
34055         (rx_split_cbranch): New.
34056         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
34057         (*cbranchsi4): Use match_operator and rx_split_cbranch.
34058         (*cbranchsf4): Similarly.
34059         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
34060         match_operator and rx_split_cbranch.
34061         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
34062         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
34063         (*cmpsi): Rename from cmpsi.
34064         (*tstsi): Rename from tstsi.
34065         (*cmpsf): Rename from cmpsf; use CC_Fmode.
34066         (*conditional_branch): Rename from conditional_branch.
34067         (*reveresed_conditional_branch): Remove.
34068         (b<code>): Remove expander.
34069         * config/rx/rx-protos.h: Update.
34070
34071         * config/rx/rx.c (rx_compare_redundant): Remove.
34072         * config/rx/rx.md (cmpsi): Don't use it.
34073         * config/rx/rx-protos.h: Update.
34074
34075         * config/rx/rx-modes.def (CC_F): New mode.
34076         * config/rx/rx.c (rx_select_cc_mode): New.
34077         * config/rx/rx.h (SELECT_CC_MODE): Use it.
34078         * config/rx/rx-protos.h: Update.
34079
34080 2011-01-17  Richard Henderson  <rth@redhat.com>
34081
34082         * except.c (dump_eh_tree): Fix stray ; after for statement.
34083
34084 2011-01-17  Richard Guenther  <rguenther@suse.de>
34085
34086         PR tree-optimization/47313
34087         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
34088         handling before copying the body.  Properly deal with
34089         by-reference result in SSA form.
34090
34091 2011-01-17  Ian Lance Taylor  <iant@google.com>
34092
34093         PR target/47219
34094         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
34095         (struct_value_alias_set): Don't define.
34096         (sparc_option_override): Don't set sparc_sr_alias_set and
34097         struct_value_alias_set.
34098         (save_or_restore_regs): Use gen_frame_mem rather than calling
34099         set_mem_alias_set.
34100         (sparc_struct_value_rtx): Likewise.
34101
34102 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
34103
34104         PR target/47318
34105         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
34106         (_mm_maskstore_pd): Likewise.
34107         (_mm_maskload_ps): Likewise.
34108         (_mm_maskstore_ps): Likewise.
34109         (_mm256_maskload_pd): Change mask to __m256i.
34110         (_mm256_maskstore_pd): Likewise.
34111         (_mm256_maskload_ps): Likewise.
34112         (_mm256_maskstore_ps): Likewise.
34113
34114         * config/i386/i386-builtin-types.def: Updated.
34115         (ix86_expand_special_args_builtin): Likewise.
34116
34117         * config/i386/i386.c (bdesc_special_args): Update
34118         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
34119         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
34120         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
34121         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
34122
34123         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
34124         Use <avxpermvecmode> on mask register.
34125         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
34126
34127 2011-01-17  Olivier Hainque  <hainque@adacore.com>
34128             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34129             Eric Botcazou  <ebotcazou@adacore.com>
34130
34131         PR target/46655
34132         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
34133         if <= USHRT_MAX in 32-bit mode.
34134
34135 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34136
34137         * doc/install.texi (Configuration, Specific): Wrap long
34138         lines in examples.  Allow line wrapping in long options
34139         and URLs where beneficial for PDF output.
34140
34141 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
34142
34143         * config/mips/mips.c (mips_classify_symbol): Don't return
34144         SYMBOL_PC_RELATIVE for nonlocal labels.
34145
34146 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
34147
34148         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
34149
34150 2011-01-15  Jan Hubicka  <jh@suse.cz>
34151
34152         PR tree-optimization/47276
34153         * ipa.c (function_and_variable_visibility): Do not try to mark alias
34154         declarations as needed.
34155
34156 2011-01-15  Martin Jambor  <mjambor@suse.cz>
34157
34158         * common.opt (fdevirtualize): New flag.
34159         * doc/invoke.texi (Option Summary): Document it.
34160         * opts.c (default_options_table): Add devirtualize flag.
34161         * ipa-prop.c (detect_type_change): Return immediately if
34162         devirtualize flag is not set.
34163         (detect_type_change_ssa): Likewise.
34164         (compute_known_type_jump_func): Likewise.
34165         (ipa_analyze_virtual_call_uses): Likewise.
34166
34167 2011-01-14  Martin Jambor  <mjambor@suse.cz>
34168
34169         PR tree-optimization/45934
34170         PR tree-optimization/46302
34171         * ipa-prop.c (type_change_info): New type.
34172         (stmt_may_be_vtbl_ptr_store): New function.
34173         (check_stmt_for_type_change): Likewise.
34174         (detect_type_change): Likewise.
34175         (detect_type_change_ssa): Likewise.
34176         (compute_complex_assign_jump_func): Check for dynamic type change.
34177         (compute_complex_ancestor_jump_func): Likewise.
34178         (compute_known_type_jump_func): Likewise.
34179         (compute_scalar_jump_functions): Likewise.
34180         (ipa_analyze_virtual_call_uses): Likewise.
34181         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
34182
34183 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34184
34185         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
34186         * config/i386/i386.opt (msse5): New Alias.
34187
34188 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34189
34190         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
34191         * config/sparc/linux64.h (CC1_SPEC): Likewise.
34192         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
34193         * config/sparc/sparc.h (CC1_SPEC): Likewise.
34194
34195 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34196
34197         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
34198         -mcpu options.
34199         * config/sparc/linux64.h (CC1_SPEC): Likewise.
34200         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
34201         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
34202         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
34203         Likewise.
34204         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
34205
34206 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34207
34208         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
34209
34210 2011-01-14  Mike Stump  <mikestump@comcast.net>
34211
34212         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
34213         * config/fr30/fr30.md: Likweise
34214         (movsi_push): Likewise.
34215         (movsi_pop): Likewise.
34216         (enter_func): Likewise.
34217         * config/moxie/moxie.md (movsi_push): Likewise.
34218         (movsi_pop): Likewise.
34219
34220 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34221
34222         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
34223         %{no_archive} %{exact_version}.
34224         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
34225         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
34226         %{no_archive} %{exact_version}.
34227         * config/mips/openbsd.h (LINK_SPEC): Likewise.
34228         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
34229         * config/mips/vxworks.h: Likewise.
34230
34231 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34232
34233         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
34234
34235 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34236
34237         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
34238         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
34239
34240 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34241
34242         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
34243         -nodefaultlib.
34244
34245 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34246
34247         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
34248         for mcpu not cpu.
34249         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
34250         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
34251         not cpu.
34252         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
34253         Don't handle -shlib.
34254
34255 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34256
34257         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
34258         (CC1_SPEC): Don't handle -profile.
34259
34260 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34261
34262         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
34263         * config/mips/mips.h (CC1_SPEC): Likewise.
34264
34265 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34266
34267         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
34268         * config/mips/mips.h (CC1_SPEC): Likewise.
34269
34270 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34271
34272         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
34273         * config/m32r/linux.h (LINK_SPEC): Likewise.
34274         * config/mips/linux.h (LINK_SPEC): Likewise.
34275         * config/mips/linux64.h (LINK_SPEC): Likewise.
34276         * config/sparc/linux.h (LINK_SPEC): Likewise.
34277         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
34278         LINK_SPEC): Likewise.
34279         * config/xtensa/linux.h (LINK_SPEC): Likewise.
34280
34281 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34282
34283         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
34284         %{version:-v}.
34285         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
34286
34287 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34288
34289         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
34290         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
34291
34292 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
34293
34294         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
34295
34296 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34297
34298         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
34299         supports -Bstatic/-Bdynamic.
34300         * configure: Regenerate.
34301
34302 2011-01-14  Jan Hubicka  <jh@suse.cz>
34303             Jack Howarth  <howarth@bromo.med.uc.edu>
34304
34305         PR target/46037
34306         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
34307         when checking debug_info_level. Test write_symbols instead of
34308         debug_hooks->var_location when setting flag_var_tracking_uninit.
34309
34310 2011-01-14  Richard Guenther  <rguenther@suse.de>
34311
34312         PR tree-optimization/47179
34313         * target.def (ref_may_alias_errno): New target hook.
34314         * targhooks.h (default_ref_may_alias_errno): Declare.
34315         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
34316         (default_ref_may_alias_errno): New function.
34317         * target.h (struct ao_ref_s): Declare.
34318         * tree-ssa-alias.c: Include target.h.
34319         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
34320         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
34321         (targhooks.o): Likewise.
34322         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
34323         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
34324
34325 2011-01-14  Richard Guenther  <rguenther@suse.de>
34326
34327         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
34328
34329 2011-01-14  Richard Guenther  <rguenther@suse.de>
34330
34331         PR tree-optimization/47280
34332         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
34333         return CFG changes.
34334         (tree_ssa_forward_propagate_single_use_vars): Deal with
34335         CFG changes from associate_plusminus.
34336
34337 2011-01-14  Richard Guenther  <rguenther@suse.de>
34338
34339         PR middle-end/47281
34340         Revert
34341         2011-01-11  Richard Guenther  <rguenther@suse.de>
34342
34343         PR tree-optimization/46076
34344         * tree-ssa.c (useless_type_conversion_p): Conversions from
34345         unprototyped to empty argument list function types are useless.
34346
34347 2011-01-14  Richard Guenther  <rguenther@suse.de>
34348
34349         PR tree-optimization/47286
34350         * tree-ssa-structalias.c (new_var_info): Register variables are global.
34351
34352 2011-01-14  Martin Jambor  <mjambor@suse.cz>
34353
34354         PR middle-end/46823
34355         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
34356
34357 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
34358
34359         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
34360         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
34361         * config/xtensa/xtensa.c (xtensa_libcall_value,
34362         xtensa_function_value_regno_p): New functions.
34363         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
34364
34365 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
34366
34367         PR c++/47213
34368         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
34369         PE specific hook.
34370         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
34371         New function prototype.
34372         * config/i386/winnt.c (i386_pe_assemble_visibility):
34373         Warn only if attribute was specified by user.
34374
34375 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
34376
34377         PR target/47251
34378         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
34379         floating point.
34380         (floatunsdidf2_fcfidu): Ditto.
34381
34382 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34383
34384         * config/s390/s390.c (print_operand_address): Replace 'error' with
34385         'output_operand_lossage'.
34386         (print_operand): Likewise.
34387
34388 2011-01-13  Jeff Law  <law@redhat.com>
34389
34390         PR rtl-optimization/39077
34391         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
34392         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
34393         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
34394         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
34395         * gcse.c (prune_insertions_deletions): New function.
34396         (compute_pre_data): Use it.
34397
34398 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
34399
34400         PR debug/PR46973
34401         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
34402         static function.
34403         (prune_unused_types_mark): Use it.
34404
34405 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
34406
34407         PR rtl-optimization/45352
34408         * sel-sched.c: Update copyright years.
34409         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
34410         in the advancing loop when we have issued issue_rate insns.
34411
34412 2011-01-12  Richard Henderson  <rth@redhat.com>
34413
34414         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
34415         (TARGET_MD_ASM_CLOBBERS): New.
34416
34417         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
34418         (TARGET_DELEGITIMIZE_ADDRESS): New.
34419
34420         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
34421         (clzsi2, *bsch): New patterns.
34422
34423         * config/mn10300/mn10300.md (INT): New mode iterator.
34424         (*mov<INT>_clr): New pattern, and peep2 to generate it.
34425
34426         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
34427         flag_split_wide_types.
34428
34429         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
34430         (mn10300_trampoline_init): Rewrite without a template, an immediate
34431         load and a direct branch.
34432         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
34433
34434 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
34435
34436         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
34437         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
34438         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
34439         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
34440
34441 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
34442
34443         PR debug/47209
34444         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
34445         of type.
34446
34447 2011-01-12  Jan Hubicka  <jh@suse.cz>
34448
34449         PR driver/47244
34450         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
34451         (PLUGIN_COND_CLOSE): New macro.
34452         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
34453
34454 2011-01-12  Richard Guenther  <rguenther@suse.de>
34455
34456         PR lto/47259
34457         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
34458         register variables in a MEM_REF.
34459
34460 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
34461
34462         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
34463         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
34464         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
34465         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
34466         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
34467         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
34468         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
34469         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
34470         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
34471         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
34472         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
34473         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
34474         * config/gnu-user.h: New.  Copied from linux.h.
34475         (LINUX_TARGET_STARTFILE_SPEC): Rename to
34476         GNU_USER_TARGET_STARTFILE_SPEC.
34477         (LINUX_TARGET_ENDFILE_SPEC): Rename to
34478         GNU_USER_TARGET_ENDFILE_SPEC.
34479         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
34480         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
34481         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
34482         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
34483         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
34484         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
34485         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
34486         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
34487         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
34488         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
34489         * config/arm/linux-eabi.h (CC1_SPEC): Use
34490         GNU_USER_TARGET_CC1_SPEC.
34491         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
34492         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
34493         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
34494         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
34495         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
34496         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
34497         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
34498         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
34499
34500 2011-01-12  Richard Guenther  <rguenther@suse.de>
34501
34502         PR other/46946
34503         * doc/invoke.texi (ffast-math): Document it is turned on
34504         with -Ofast.
34505
34506 2011-01-12  Jan Hubicka  <jh@suse.cz>
34507
34508         PR tree-optimization/47233
34509         * opts.c (common_handle_option): Disable ipa-reference with profile
34510         feedback.
34511
34512 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
34513
34514         * c-parser.c (c_parser_objc_at_property_declaration): Improved
34515         error message.
34516
34517 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
34518
34519         * c-parser.c (c_lex_one_token): Updated and reindented some
34520         comments.  No changes in code.
34521
34522 2011-01-11  Ian Lance Taylor  <iant@google.com>
34523
34524         * godump.c (go_output_var): Don't output the variable if there is
34525         already a type with the same name.
34526
34527 2011-01-11  Ian Lance Taylor  <iant@google.com>
34528
34529         * godump.c (go_format_type): Don't generate float80.
34530
34531 2011-01-11  Richard Henderson  <rth@redhat.com>
34532
34533         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
34534         declaration.  Rewrite for both speed and size.
34535         (mn10300_address_cost_1): Remove.
34536         (mn10300_register_move_cost): New.
34537         (mn10300_memory_move_cost): New.
34538         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
34539         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
34540         extensions, shifts, BSWAP, CLZ.
34541         (mn10300_wide_const_load_uses_clr): Remove.
34542         (TARGET_REGISTER_MOVE_COST): New.
34543         (TARGET_MEMORY_MOVE_COST): New.
34544         * config/mn10300/mn10300-protos.h: Update.
34545         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
34546
34547         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
34548         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
34549         * config/mn10300/mn10300-protos.h: Update.
34550         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
34551         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
34552         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
34553         (*test_int_bitfield, *test_byte_bitfield): Remove.
34554         (*bit_test, *subreg_bit_test): Remove.
34555         * config/mn10300/predicates.md (const_8bit_operand): Remove.
34556
34557         * config/mn10300/constraints.md ("c"): Rename from "A".
34558         ("A", "D"): New constraint letters.
34559         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
34560         (fmssf4, fnmasf4, fnmssf4): Likewise.
34561
34562         * config/mn10300/mn10300.md (isa): New attribute.
34563         (enabled): New attribute.
34564
34565         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
34566         (abssf2, negsf2): Define only for hardware fp.
34567         (sqrtsf2): Reformat.
34568         (addsf3, subsf3, mulsf3): Merge expander and insn.
34569
34570         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
34571         (DEBUGGER_AUTO_OFFSET): Remove.
34572         (DEBUGGER_ARG_OFFSET): Remove.
34573
34574         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
34575         Emit register stores with the same offsets as the hardware.
34576         (mn10300_store_multiple_operation): Don't check that the register
34577         save offsets are monotonic.
34578         * config/mn10300/mn10300-protos.h: Update.
34579
34580         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
34581
34582         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
34583         in terms of the value on the stack, not the MDR register.
34584
34585 2011-01-11  Jan Hubicka  <jh@suse.cz>
34586
34587         PR lto/45721
34588         PR lto/45375
34589         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
34590         (symbol_alias_set_destroy, symbol_alias_set_contains,
34591         propagate_aliases_backward): Declare.
34592         * lto-streamer-out.c (struct sets): New sturcture.
34593         (trivally_defined_alias): New function.
34594         (output_alias_pair_p): Rewrite.
34595         (output_unreferenced_globals): Fix output of alias pairs.
34596         (produce_symtab): Likewise.
34597         * ipa.c (function_and_variable_visibility): Set weak alias destination
34598         as needed in lto.
34599         * varasm.c (symbol_alias_set_t): Remove.
34600         (symbol_alias_set_destroy): Export.
34601         (propagate_aliases_forward, propagate_aliases_backward): New functions
34602         based on ...
34603         (compute_visible_aliases): ... this one; remove.
34604         (trivially_visible_alias): New
34605         (trivially_defined_alias): New.
34606         (remove_unreachable_alias_pairs): Rewrite.
34607         (finish_aliases_1): Reorganize code checking if alias is defined.
34608         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
34609         in LTO mode.
34610
34611 2011-01-11  Richard Guenther  <rguenther@suse.de>
34612
34613         PR tree-optimization/46076
34614         * tree-ssa.c (useless_type_conversion_p): Conversions from
34615         unprototyped to empty argument list function types are useless.
34616
34617 2011-01-11  Richard Guenther  <rguenther@suse.de>
34618
34619         PR middle-end/45235
34620         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
34621         volatile MEMs as MEM_READONLY_P.
34622
34623 2011-01-11  Richard Guenther  <rguenther@suse.de>
34624
34625         PR tree-optimization/47239
34626         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
34627
34628 2011-01-11  Jeff Law  <law@redhat.com>
34629
34630         PR tree-optimization/47086
34631         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
34632         IVs from statements that might throw.
34633
34634 2011-01-10  Jan Hubicka  <jh@suse.cz>
34635
34636         PR lto/45375
34637         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
34638
34639 2011-01-10  Jan Hubicka  <jh@suse.cz>
34640
34641         PR lto/45375
34642         * profile.c (read_profile_edge_counts): Ignore profile inconistency
34643         when correcting profile.
34644
34645 2011-01-10  Jan Hubicka  <jh@suse.cz>
34646
34647         PR lto/46083
34648         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
34649         DECL_FINI_PRIORITY.
34650         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
34651         Restore DECL_FINI_PRIORITY.
34652
34653 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34654
34655         * doc/gimple.texi: Fix quoting of multi-word return values in
34656         @deftypefn statements.  Ensure presence of return value.  Wrap
34657         overlong @deftypefn lines.
34658         (is_gimple_operand, is_gimple_min_invariant_address): Remove
34659         descriptions of removed functions.
34660         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
34661         of multi-word return value in @deftypefn statement.
34662
34663 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34664
34665         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
34666         (Conditional Expressions, Logical Operators)
34667         (Statement and operand traversals): Do not indent smallexample
34668         code.  Fix duplicate function argument in example.
34669
34670 2011-01-10  Jeff Law  <law@redhat.com>
34671
34672         PR tree-optimization/47141
34673         * ipa-split.c (split_function): Handle case where we are
34674         returning a value and the return block has a virtual operand phi.
34675
34676 2011-01-10  Jan Hubicka  <jh@suse.cz>
34677
34678         PR tree-optimization/47234
34679         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
34680         (pass_feedback_split_functions): Declare.
34681         * passes.c (init_optimization_passes): Add ipa-split as subpass of
34682         tree-profile.
34683         * ipa-split.c (gate_split_functions): Update comments; disable
34684         split-functions for profile_arc_flag and branch_probabilities.
34685         (gate_feedback_split_functions): New function.
34686         (execute_feedback_split_functions): New function.
34687         (pass_feedback_split_functions): New global var.
34688
34689 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
34690
34691         PR lto/46760
34692         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
34693         calling gimple_call_set_cannot_inline.
34694
34695 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
34696
34697         * config/darwin-sections.def: Remove unused section.
34698
34699 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
34700
34701         PR c++/47218
34702         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
34703
34704 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
34705
34706         PR objc/47232
34707         * c-parser.c (c_parser_declaration_or_fndef): Improved
34708         error message.
34709
34710 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
34711
34712         * config/i386/winnt.c (i386_pe_start_function): Make sure
34713         to switch back to function's section.
34714
34715 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
34716
34717         PR gcc/46902
34718         PR testsuite/46912
34719         * plugin.c: Move include of dlfcn.h from here...
34720         * system.h: ... to here.
34721
34722 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34723
34724         * doc/cpp.texi (C++ Named Operators): Fix markup for header
34725         file name.
34726         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
34727         two extra empty pages in PDF output.
34728
34729 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
34730
34731         PR objc/47078
34732         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
34733         for error recovery purposes behave as if it was not specified so
34734         that the default type is usd.
34735
34736 2011-01-07  Jan Hubicka  <jh@suse.cz>
34737
34738         PR tree-optmization/46469
34739         * ipa.c (function_and_variable_visibility): Clear needed flags on
34740         nodes with external decls; handle weakrefs merging correctly.
34741
34742 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
34743
34744         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
34745         not false.
34746
34747 2011-01-07  Jan Hubicka  <jh@suse.cz>
34748
34749         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
34750         and no longer claim that gold is required for linker plugin.
34751         * configure: Regenerate.
34752         * gcc.c (PLUGIN_COND): New macro.
34753         (LINK_COMMAND_SPEC): Use it.
34754         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
34755         * config.in (HAVE_LTO_PLUGIN): New.
34756         * configure.ac (--with-lto-plugin): New parameter; autodetect
34757         HAVE_LTO_PLUGIN.
34758
34759 2011-01-07  Jan Hubicka  <jh@suse.cz>
34760
34761         PR tree-optimization/46367
34762         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
34763         when we can update original.
34764         (cgraph_mark_inline_edge): Sanity check.
34765         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
34766
34767 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34768
34769         * config/spu/spu.h (ASM_COMMENT_START): Define.
34770
34771 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
34772
34773         PR driver/42445
34774         * gcc.c (%>S): New.
34775         (SWITCH_KEEP_FOR_GCC): Likewise.
34776         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
34777         (do_spec_1): Handle "%>".
34778
34779         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
34780
34781 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
34782
34783         PR target/47201
34784         * config/i386/i386.c (ix86_delegitimize_address): If
34785         simplify_gen_subreg fails, return orig_x.
34786
34787         PR bootstrap/47187
34788         * value-prof.c (gimple_stringop_fixed_value): Handle
34789         lhs of the call properly.
34790
34791 2011-01-07  Jan Hubicka  <jh@suse.cz>
34792
34793         PR lto/45375
34794         * lto-opt.c (lto_reissue_options): Set flag_shlib.
34795
34796 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
34797
34798         * target.def (function_switched_text_sections): New hook.
34799         * doc/tm.texi: Regenerated.
34800         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
34801         * final.c (default_function_switched_text_sections): New.
34802         (final_scan_insn): Call function_switched_text_sections when a
34803         mid-function section change occurs.
34804         * output.h (default_function_switched_text_sections): Declare.
34805         * config/darwin-protos.h (darwin_function_switched_text_sections):
34806         Likewise.
34807         * config/darwin.c (darwin_function_switched_text_sections): New.
34808         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
34809
34810 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
34811
34812         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
34813         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
34814         the secondary code fragment when outputting for DWARF == 2.
34815
34816 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
34817
34818         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
34819         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
34820         Remove.
34821         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
34822         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
34823
34824 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
34825
34826         PR debug/46704
34827         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
34828         when it is not empty.
34829
34830 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
34831
34832         Bobcat Enablement
34833         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
34834         (case ${target}): Add btver1.
34835         * config/i386/driver-i386.c (host_detect_local_cpu): Let
34836         -march=native recognize btver1 processors.
34837         * config/i386/i386-c.c (ix86_target_macros_internal): Add
34838         btver1 def_and_undef
34839         * config/i386/i386.c (struct processor_costs btver1_cost): New
34840         btver1 cost table.
34841         (m_BTVER1): New definition.
34842         (m_AMD_MULTIPLE): Includes m_BTVER1.
34843         (initial_ix86_tune_features): Add btver1 tune.
34844         (processor_target_table): Add btver1 entry.
34845         (static const char *const cpu_names): Add btver1 entry.
34846         (software_prefetching_beneficial_p): Add btver1.
34847         (ix86_option_override_internal): Add btver1 instruction sets.
34848         (ix86_issue_rate): Add btver1.
34849         (ix86_adjust_cost): Add btver1.
34850         * config/i386/i386.h (TARGET_BTVER1): New definition.
34851         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
34852         (enum processor_type): Add PROCESSOR_BTVER1.
34853         * config/i386/i386.md (define_attr "cpu"): Add btver1.
34854
34855 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34856
34857         PR target/43309
34858         * config/i386/i386.c (legitimize_tls_address)
34859         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
34860         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
34861         (tls_initial_exec_64_sun): New pattern.
34862
34863 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
34864
34865         * doc/invoke.texi (Overall Options): Improve wording and markup
34866         of the description of -wrapper.
34867
34868 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
34869
34870         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
34871         rdynamic, threads): New Driver options.
34872
34873 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34874
34875         PR target/38118
34876         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
34877         if coming from .tdata.
34878         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
34879
34880 2011-01-06  Jan Hubicka  <jh@suse.cz>
34881
34882         PR lto/47188
34883         * collect2.c (main): Do not enable LTOmode when plugin is active.
34884
34885 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34886
34887         PR other/45915
34888         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
34889         --version output if supported.
34890         * configure: Regenerate.
34891
34892 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
34893
34894         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
34895         Driver options.
34896
34897 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
34898
34899         PR c/47150
34900         * c-convert.c (convert): When converting a complex expression
34901         other than COMPLEX_EXPR to a different complex type, ensure
34902         c_save_expr is called instead of save_expr, unless in_late_binary_op.
34903         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
34904         when converting COMPLEX_TYPE.
34905
34906 2011-01-06  Ira Rosen  <irar@il.ibm.com>
34907
34908         PR tree-optimization/47139
34909         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
34910         only the last reduction value is used outside the loop.  Update
34911         documentation.
34912
34913 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
34914
34915         * config/rtems.opt: New.
34916         * config.gcc (*-*-rtems*): Use rtems.opt.
34917
34918 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
34919
34920         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
34921         processors do not support 3DNow instructions.
34922
34923 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34924
34925         * config/spu/spu.c (spu_option_override): Set parameter
34926         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
34927
34928 2011-01-05  Jan Hubicka  <jh@suse.cz>
34929
34930         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
34931         at the command line.
34932
34933 2011-01-05  Martin Jambor  <mjambor@suse.cz>
34934
34935         PR lto/47162
34936         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
34937         deltas on streamed outgoing edges.
34938         (output_node_opt_summary): Output info for outgoing edges only when
34939         the node is in new parameter set.
34940         (output_cgraph_opt_summary): New parameter set, passed to the two
34941         aforementioned functions.  Update its forward declaration and its
34942         callee too.
34943
34944 2011-01-05  Tom Tromey  <tromey@redhat.com>
34945
34946         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
34947         operator to c_finish_omp_atomic.
34948         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
34949         (build_unary_op): Update.
34950         (build_modify_expr): Update.
34951         (build_asm_expr): Update.
34952
34953 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34954
34955         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
34956         newly inserted insns.
34957         (pad_bb): Likewise.
34958         (spu_emit_branch_hint): Likewise.
34959         (insert_hbrp_for_ilb_runout): Likewise.
34960         (spu_machine_dependent_reorg): Call df_finish_pass after
34961         schedule_insns returns.
34962
34963 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34964
34965         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
34966
34967 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
34968
34969         PR tree-optimization/47005
34970         * tree-sra.c (struct access): Add 'non_addressable' bit.
34971         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
34972         (decide_one_param_reduction): Return 0 if the parameter is passed by
34973         reference and one of the accesses in the group is non_addressable.
34974
34975 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
34976
34977         PR tree-optimization/47056
34978         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
34979         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
34980         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
34981
34982 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
34983
34984         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
34985         initializer.  Skip view conversions from aggregate types.
34986
34987 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
34988
34989         PR bootstrap/47055
34990         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
34991
34992 2011-01-04  Philipp Thomas  <pth@suse.de>
34993
34994         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
34995         obvious typo.
34996
34997 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34998
34999         * function.c (thread_prologue_and_epilogue_insns): Do not crash
35000         on empty epilogue sequences.
35001
35002 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
35003
35004         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
35005         non-static): New Driver options.
35006
35007 2011-01-04  Jie Zhang  <jie@codesourcery.com>
35008
35009         PR driver/47137
35010         * gcc.c (default_compilers[]): Set combinable field to 0
35011         for all assembly languages.
35012
35013 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
35014
35015         * config/mips/loongson3a.md: New file.
35016         * config/mips/mips.md: Include loongson3a.md.
35017         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
35018         TUNE_LOONGSON_3A.
35019
35020 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
35021
35022         PR middle-end/47017
35023         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
35024         instead of convert_memory_address_addr_space on the base expression.
35025
35026 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35027
35028         * config/spu/spu.c (spu_option_override): Update error text
35029         for bad -march= / -mtune= values.
35030
35031 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35032
35033         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
35034         if branch-hint optimization will be performed.
35035
35036 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
35037
35038         PR tree-optimization/47148
35039         * ipa-split.c (split_function): Convert arguments to
35040         DECL_ARG_TYPE if possible.
35041
35042         PR tree-optimization/47155
35043         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
35044         when computing uns.
35045
35046         PR rtl-optimization/47157
35047         * combine.c (try_combine): If undobuf.other_insn becomes
35048         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
35049         and set *new_direct_jump_p too.
35050
35051 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
35052
35053         PR tree-optimization/47021
35054         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
35055
35056 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
35057
35058         * gcc.c (process_command): Update copyright notice dates.
35059         * gcov.c (print_version): Likewise.
35060         * gcov-dump.c (print_version): Likewise.
35061         * mips-tfile.c (main): Likewise.
35062         * mips-tdump.c (main): Likewise.
35063
35064 2011-01-03  Martin Jambor  <mjambor@suse.cz>
35065
35066         PR tree-optimization/46801
35067         * tree-sra.c (type_internals_preclude_sra_p): Check whether
35068         aggregate fields start at byte boundary instead of the bit-field flag.
35069
35070 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
35071
35072         PR driver/47137
35073         * gcc.c (main): Revert revision 168407.
35074
35075 2011-01-03  Martin Jambor  <mjambor@suse.cz>
35076
35077         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
35078
35079 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35080
35081         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
35082         vector optab to expand vector/scalar shift, update gimple to vector.
35083
35084 2011-01-03  Martin Jambor  <mjambor@suse.cz>
35085
35086         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
35087         a thunk.
35088
35089 2011-01-03  Martin Jambor  <mjambor@suse.cz>
35090
35091         PR tree-optimization/46984
35092         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
35093         HOST_WIDE_INT.
35094         (cgraph_create_indirect_edge): Fixed line length.
35095         (cgraph_indirect_call_info): Declare.
35096         (cgraph_make_edge_direct) Update declaration.
35097         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
35098         (cgraph_create_indirect_edge): Use it.
35099         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
35100         callees.
35101         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
35102         the new thunk_delta representation.
35103         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
35104         HOST_WIDE_INT.
35105         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
35106         (ipa_read_indirect_edge_info): Likewise.
35107         * lto-cgraph.c (output_edge_opt_summary): New function.
35108         (output_node_opt_summary): Call it on all outgoing edges.
35109         (input_edge_opt_summary): New function.
35110         (input_node_opt_summary): Call it on all outgoing edges.
35111
35112 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
35113
35114         PR driver/47137
35115         * gcc.c (main): Don't check have_o when settting combine_inputs.
35116
35117 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
35118
35119         * regrename.c: Add general comment describing the pass.
35120         (struct du_head): Remove 'length' field.
35121         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
35122         (regrename_optimize): Do not sort chains.  Rework comments, add others.
35123         Force renaming to the preferred class (if any) in the first pass and do
35124         not consider registers that belong to it in the second pass.
35125         (create_new_chain): Do not set 'length' field.
35126         (scan_rtx_reg): Likewise.
35127
35128 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
35129
35130         PR tree-optimization/47140
35131         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
35132         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
35133         to bit_value_binop.
35134
35135         PR rtl-optimization/47028
35136         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
35137         parm_birth_insn instead of at the beginning of first bb.
35138
35139 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
35140
35141         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
35142         Remove the word "see" before "@pxref".
35143         * doc/rtl.texi: Remove the word "see" before "@pxref".
35144
35145 2011-01-01  Jan Hubicka  <jh@suse.cz>
35146
35147         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
35148         memory.
35149
35150 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
35151
35152         PR target/38662
35153         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
35154
35155 \f
35156 Copyright (C) 2011 Free Software Foundation, Inc.
35157
35158 Copying and distribution of this file, with or without modification,
35159 are permitted in any medium without royalty provided the copyright
35160 notice and this notice are preserved.