rs6000.c (rs6000_cannot_force_const_mem): Match CONST high part large-toc address.
[official-gcc.git] / gcc / ChangeLog
blob455fdcffb6bce429753a343bc14977932385d4ed
1 2011-06-21  Alan Modra  <amodra@gmail.com>
3         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
4         CONST high part large-toc address.
5         (rs6000_tls_referenced_p): Make static.
6         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
8 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
10         PR middle-end/47725
11         * combine.c (cant_combine_insn_p): Check zero/sign extended
12         hard registers.
14 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16         PR target/49385
17         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
18         one of the operands is a register.
20 2011-06-20  Kai Tietz  <ktietz@redhat.com>
22         * fold-const.c (fold_binary_loc): Add missing
23         folding for truth-not operations in combination
24         with binary and.
26 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
28         * regrename.c (do_replace): Don't update notes.
30 2011-06-20  Alan Modra  <amodra@gmail.com>
32         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
33         of toc-relative address in CONST.
34         (rs6000_delegitimize_address): Recognize changed address.
35         (rs6000_legitimize_reload_address): Likewise.
36         (rs6000_emit_move): Don't force these constants to memory.
37         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
38         toc-relative address in CONST.
39         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
40         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
42 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
44         * longlong.h (count_leading_zeros): Use long long builtin for
45         x86-64.
46         (count_trailing_zeros): Likewise.
48 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
50         PR other/49325
51         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
52         .init_array can be used with .ctors on targets.
53         * configure: Regenerated.
55 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
57         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
58         if the element type is volatile.
60 2011-06-18  Jan Hubicka  <jh@suse.cz>
62         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
63         extra name aliases.
64         (lto_symtab_resolve_can_prevail_p): Likewise.
65         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
66         * cgraphbuild.c (record_reference): Remove extra body alias code.
67         (mark_load): Likewise.
68         (mark_store): Likewise.
69         * cgraph.h (varpool_node): Remove extra_name filed;
70         add alias_of and extraname_alias.
71         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
72         (varpool_alias_aliased_node): New inline function.
73         (varpool_variable_node): New function.
74         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
75         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
76         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
77         (input_varpool_node): Likewise.
78         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
79         (varpool_externally_visible_p): Remove extra body alias code.
80         (function_and_variable_visibility): Likewise.
81         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
82         (ipa_pta_execute): Use it.
83         * varpool.c (varpool_remove_node): Remove extra name alias code.
84         (varpool_mark_needed_node): Likewise.
85         (varpool_analyze_pending_decls): Analyze aliases.
86         (assemble_aliases): New functoin.
87         (varpool_assemble_decl): Use it.
88         (varpool_create_variable_alias): New function.
89         (varpool_extra_name_alias): Rewrite.
90         (varpool_for_node_and_aliases): New function.
92 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
94         PR target/49411
95         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
96         last_arg_constant and last argument doesn't match its predicate,
97         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
98         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
99         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
100         spelling of error message.
101         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
102         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
103         const_0_to_255_operand instead of const_int_operand.
105         Revert:
106         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
108         * config/i386/sse.md (blendbits): Remove mode attribute.
109         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
110         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
111         Check integer value of operand 3 in insn constraint.
113 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
115         PR rtl-optimization/48542
116         * reload.c (find_equiv_reg): Stop looking when finding a
117         setjmp-type call.
118         * reload1.c (reload_as_needed): Invalidate all reload
119         registers when crossing a setjmp-type call.
121 2011-06-16  Jeff Law  <law@redhat.com>
123         * tree-ssa-threadupdate.c (struct redirection_data): New field
124         intermediate_edge.
125         (THREAD_TARGET2): Define.
126         (redirection_data_eq): Also check that the intermediate edge is
127         equal.
128         (lookup_redirection_data): Drop useless argument.  Extract the
129         outgoing_edge and intermediate edge from E.  Callers updated.
130         (copy_phi_args, update_destination_phis): New functions.
131         (fix_duplicate_block_edges): Likewise.
132         (create_edge_and_update_destination_phis): Duplicate all the edges
133         hung off e->aux.  Use copy_phi_args.
134         (create_duplicates): Use fix_duplicate_block_edges.
135         (fixup_template_block): Likewise.
136         (redirect_edges): If necessary, redirect the joiner block's incoming
137         edge to the duplicate of the joiner block.
138         (thread_block): Don't muck up loops when threading through a joiner
139         block.
140         (thread_through_loop_header): Handle threading through a joiner
141         block.
142         (mark_threaded_blocks, register_jump_thread): Likewise.
143         * tree-flow.h (register_jump_thread): Add new argument.  Callers
144         updated.
145         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
146         (thread_across_edge): Handle threading through a joiner block.
147         
148 2011-06-16  Martin Jambor  <mjambor@suse.cz>
150         PR tree-optimization/49343
151         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
152         calculate offset, provide 2nd operand for the new COMPONENT_REF.
154 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
156         * config/darwin-protos.h (machopic_select_rtx_section): Move to
157         inside RTX_CODE ifdef.
159 2011-06-16  Tom de Vries  <tom@codesourcery.com>
161         PR target/45098
162         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): Disallow
163         NULL pointer for pointer arithmetic.
165 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
167         PR target/49398
168         Revert.
169         2011-06-10  Wei Guozhi  <carrot@google.com>
171         PR target/45335
172         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
173         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
174         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
175         related peephole2.
176         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
177         related peephole2.
178         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
179         (arm_legitimate_ldrd_p): New prototype.
180         (arm_output_ldrd): New prototype.
181         * config/arm/arm.c (arm_check_ldrd_operands): New function.
182         (arm_legitimate_ldrd_p): New function.
183         (arm_output_ldrd): New function.
185 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
187         PR middle-end/46500
188         * doc/tm.texi.in: Update Copyright date.
189         * doc/tm.texi: Regenerate.
190         * targhooks.c (default_setup_incoming_varargs): Replace
191         CUMULATIVE_ARGS* argument type with cumulative_args_t.
192         (default_pretend_outgoing_varargs_named): Likewise.
193         (hook_pass_by_reference_must_pass_in_stack): Likewise.
194         (hook_callee_copies_named): Likewise.
195         (default_function_arg_advance): Likewise.
196         (default_function_arg): Likewise.
197         (default_function_incoming_arg): Likewise.
198         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
199         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
200         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
201         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
202         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
203         * targhooks.h (default_setup_incoming_varargs): Likewise.
204         (default_pretend_outgoing_varargs_named): Likewise.
205         (hook_pass_by_reference_must_pass_in_stack): Likewise.
206         (hook_callee_copies_named): Likewise.
207         (default_function_arg_advance): Likewise.
208         (default_function_arg): Likewise.
209         (default_function_incoming_arg): Likewise.
210         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
211         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
212         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
213         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
214         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
215         * target.def (pass_by_reference): Likewise.
216         (setup_incoming_varargs, strict_argument_naming): Likewise.
217         (pretend_outgoing_varargs_named, callee_copies): Likewise.
218         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
219         (function_incoming_arg): Likewise.
220         * target.h: Don't include "tm.h" .
221         (cumulative_args_t): New typedef.
222         [GCC_TM_H] (get_cumulative_args): New static inline function.
223         [GCC_TM_H] (pack_cumulative_args): Likewise.
224         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
225         argument type with cumulative_args_t.
226         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
227         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
228         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
229         (frv_arg_partial_bytes, frv_function_arg): Likewise.
230         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
231         (frv_function_arg_1): Likewise.
232         * config/s390/s390.c (s390_pass_by_reference): Likewise.
233         (s390_function_arg_advance, s390_function_arg): Likewise.
234         * config/m32c/m32c.c (m32c_function_arg): Likewise.
235         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
236         (m32c_strict_argument_naming): Likewise.
237         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
238         (spu_function_arg_advance): Likewise.
239         (spu_setup_incoming_varargs): Likewise.  Make static.
240         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
241         Remove prototype.
242         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
243         CUMULATIVE_ARGS* argument type with cumulative_args_t.
244         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
245         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
246         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
247         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
248         (mep_pass_by_reference, mep_function_arg): Likewise.
249         (mep_function_arg_advance): Likewise.
250         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
251         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
252         (m32r_function_arg, m32r_function_arg_advance): Likewise.
253         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
254         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
255         (ix86_function_arg, ix86_pass_by_reference): Likewise.
256         (ix86_setup_incoming_varargs): Likewise.
257         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
258         (sh_strict_argument_naming): Likewise.
259         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
260         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
261         (sh_function_arg_advance, sh_function_arg): Likewise.
262         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
263         (pdp11_function_arg_advance): Likewise.
264         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
265         Likewise.
266         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
267         * config/avr/avr.c (avr_function_arg): Likewise.
268         (avr_function_arg_advance): Likewise.
269         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
270         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
271         (xtensa_function_arg_1): Likewise.
272         * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Likewise.
273         (xstormy16_function_arg): Likewise.
274         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
275         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
276         (fr30_function_arg_advance): Likewise.
277         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
278         (lm32_function_arg, lm32_function_arg_advance): Likewise.
279         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
280         (moxie_function_arg, moxie_function_arg_advance): Likewise.
281         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
282         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
283         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
284         (cris_function_arg, cris_function_incoming_arg): Likewise.
285         (cris_function_arg_advance, cris_function_arg_1): Likewise.
286         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
287         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
288         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
289         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
290         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
291         (mn10300_arg_partial_bytes): Likewise.
292         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
293         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
294         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
295         (ia64_function_arg_1): Likewise.
296         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
297         (m68k_function_arg): Likewise.
298         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
299         (rs6000_function_arg, setup_incoming_varargs): Likewise.
300         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
301         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
302         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
303         (picochip_arg_advance): Likewise.
304         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
305         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
306         (mcore_function_arg_advance): Likewise.
307         * config/score/score.c (score_pass_by_reference): Likewise.
308         (score_function_arg_advance): Likewise.
309         (score_arg_partial_bytes): Likewise.  Make static.
310         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
311         * config/arm/arm.c (arm_arg_partial_bytes): Replace
312         CUMULATIVE_ARGS* argument type with cumulative_args_t.
313         (arm_function_arg, arm_function_arg_advance): Likewise.
314         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
315         * config/pa/pa.c (pa_pass_by_reference): Likewise.
316         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
317         (pa_function_arg): Likewise.
318         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
319         (mips_function_arg, mips_function_arg_advance): Likewise.
320         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
321         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
322         * config/vax/vax.c (vax_function_arg): Likewise.
323         (vax_function_arg_advance): Likewise.
324         * config/h8300/h8300.c (h8300_function_arg): Likewise.
325         (h8300_function_arg_advance): Likewise.
326         * config/v850/v850.c (v850_pass_by_reference): Likewise.
327         (v850_strict_argument_naming, v850_function_arg): Likewise.
328         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
329         (v850_setup_incoming_varargs): Likewise.
330         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
331         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
332         (mmix_function_arg, mmix_pass_by_reference): Likewise.
333         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
334         with const void *.
335         * config/bfin/bfin.c (setup_incoming_varargs): Replace
336         CUMULATIVE_ARGS* argument type with cumulative_args_t.
337         (bfin_function_arg_advance, bfin_function_arg): Likewise.
338         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
339         * calls.c (emit_call_1): Change type of args_so_far to
340         cumulative_args_t.  Changed all callers.
341         (initialize_argument_information): Likewise.
342         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
343         * dse.c (get_call_args): Likewise.
344         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
345         * function.c (pass_by_reference, reference_callee_copied): Likewise.
346         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
347         New member args_so_far_v.  Changed all users.
348         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
349         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
350         * config/mips/mips.c (mips_output_args_xfer): Likewise.
351         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
352         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
353         * config/microblaze/microblaze.c (microblaze_expand_prologue): Likewise.
354         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
355         m32r_pass_by_reference.
357 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
359         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
360         argument to be a VEC of statements.
361         * tree-vect-loop.c (vect_determine_vectorization_factor):
362         Remove the assert that pattern statements have to have their
363         vector type set.
364         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
365         Change the first argument to be a VEC of statements.  Update
366         documentation.
367         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
368         (vect_handle_widen_mult_by_const): New function.
369         (vect_recog_widen_mult_pattern):  Change the first argument to
370         be a VEC of statements.  Update documentation.  Check that the
371         constant is INTEGER_CST.  Support multiplication by a constant
372         that fits an intermediate type - call
373         vect_handle_widen_mult_by_const.
374         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
375         call.  Handle additional pattern statements if necessary.
377 2011-06-16  Nick Clifton  <nickc@redhat.com>
379         PR target/49427
380         * config.gcc: Set cpu_type to v850 for any V850 architecture.
381         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
382         md_file, extra_modes, out_file and extra_options are these are all
383         deduced from cpu_type.
385 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
387         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
388         truncation mask to 63.
390 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
392         PR target/49313
393         PR target/29524
394         * longlong.h: Add AVR support:
395         (count_leading_zeros): New macro.
396         (count_trailing_zeros): New macro.
397         (COUNT_LEADING_ZEROS_0): New macro.
398         * config/avr/t-avr (LIB1ASMFUNCS): Add
399         _ffssi2, _ffshi2, _loop_ffsqi2,
400         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2,
401         _paritydi2, _paritysi2, _parityhi2,
402         _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
403         _bswapsi2, _bswapdi2,
404         _ashldi3, _ashrdi3, _lshrdi3
405         (LIB2FUNCS_EXCLUDE): Add _clz.
406         * config/avr/libgcc.S (XCALL): Move up in file.
407         (XJMP): New C Macro.
408         (DEFUN): New asm macro.
409         (ENDF): New asm macro.
410         (__ffssi2): New function.
411         (__ffshi2): New function.
412         (__loop_ffsqi2): New function.
413         (__ctzsi2): New function.
414         (__ctzhi2): New function.
415         (__clzdi2): New function.
416         (__clzsi2): New function.
417         (__clzhi2): New function.
418         (__paritydi2): New function.
419         (__paritysi2): New function.
420         (__parityhi2): New function.
421         (__parityqi2): New function.
422         (__popcounthi2): New function.
423         (__popcountsi2): New function.
424         (__popcountdi2): New function.
425         (__popcountqi2): New function.
426         (__bswapsi2): New function.
427         (__bswapdi2): New function.
428         (__ashldi3): New function.
429         (__ashrdi3): New function.
430         (__lshrdi3): New function.
431         Fix suspicous lines.
433 2011-06-16  Richard Guenther  <rguenther@suse.de>
435         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
436         the same as x != 0.
437         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0 to
438         (bool) X & 1.
439         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
440         equality compares against zero for the lower bit.
442 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
444         PR tree-optimization/49419
445         * tree-vrp.c (execute_vrp): Call init_range_assertions
446         before estimate_numbers_of_iterations, call
447         free_number_of_iterations_estimates before calling
448         remove_range_assertions.
450 2011-06-16  Revital Eres  <revital.eres@linaro.org>
452         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
453         (struct partial_schedule): Add rows_length field.
454         (verify_partial_schedule): Check rows_length.
455         (ps_insert_empty_row): Handle rows_length.
456         (create_partial_schedule): Likewise.
457         (free_partial_schedule): Likewise.
458         (reset_partial_schedule): Likewise.
459         (create_ps_insn): Remove rest_count argument.
460         (remove_node_from_ps): Update rows_length.
461         (add_node_to_ps): Update rows_length and call create_ps_insn
462         without passing row_rest_count.
463         (rotate_partial_schedule): Update rows_length.
465 2011-06-16  Revital Eres  <revital.eres@linaro.org>
467         * ddg.c (add_intra_loop_mem_dep): New function.
468         (build_intra_loop_deps): Call it.
470 2011-06-13  Jeff Law  <law@redhat.com>
472         * df-problems.c (df_lr_local_compute): Manually CSE
473         PIC_OFFSET_TABLE_REGNUM.
474         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
475         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
477 2011-06-13  Jan Hubicka  <jh@suse.cz>
479         * cgraphunit.c (handle_alias_pairs): New function.
480         (cgraph_finalize_compilation_unit): Use it.
481         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
482         as externally visible.
484 2011-06-15  Richard Guenther  <rguenther@suse.de>
486         * expr.c (expand_expr_real_2): Reduce all integral types to
487         bitfield precision.
488         (expand_expr_real_1): Likewise.
490 2011-06-15  Martin Jambor  <mjambor@suse.cz>
492         PR tree-optimization/48613
493         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
494         ipa_node_params_vector is NULL.
496 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
498         PR debug/49382
499         * dwarf2out.c (dw_loc_list_node): Add force field.
500         (add_var_loc_to_decl): For PARM_DECL, attempt to keep
501         the incoming location in the list, even if it is modified
502         before first real insn.
503         (output_loc_list): Emit empty ranges with force flag set.
504         (dw_loc_list): If first range of a PARM_DECL is empty,
505         set force flag.
507 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
509         PR target/49349
510         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
511         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
512         above a fence.  Update comments.
513         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
514         placed just above it.  Do not allow NULL place_to_insert.
516 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
518         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
519         (slpeel_tree_peel_loop_to_edge): Don't call
520         remove_dead_stmts_from_loop.
521         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
522         remove irrelevant pattern statements.  For irrelevant statements
523         check if it is the last statement of a detected pattern, use
524         corresponding pattern statement instead.
525         (destroy_loop_vec_info): No need to remove pattern statements,
526         only free stmt_vec_info.
527         (vect_transform_loop): For irrelevant statements check if it is
528         the last statement of a detected pattern, use corresponding
529         pattern statement instead.
530         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
531         pattern statements.  Set basic block for the new statement.
532         (vect_pattern_recog): Update documentation.
533         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
534         operands of pattern statements.
535         (vectorizable_call): Fix printing.  In case of a pattern statement
536         use the lhs of the original statement when creating a dummy
537         statement to replace the original call.
538         (vect_analyze_stmt): For irrelevant statements check if it is
539         the last statement of a detected pattern, use corresponding
540         pattern statement instead.
541         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
542         statements use gsi of the original statement.
544 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
546         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
547         common/common-target-def.h.
548         * target.def (default_target_flags, handle_option,
549         supports_split_stack, optimization_table, init_struct,
550         except_unwind_info, unwind_tables_default, have_named_sections):
551         Move to common/common-target.def.
552         * target.h (enum opt_levels, struct default_options): Move to
553         common/common-target.h.
554         * targhooks.c (default_except_unwind_info,
555         dwarf2_except_unwind_info, sjlj_except_unwind_info,
556         default_target_handle_option, empty_optimization_table): Move to
557         common/common-targhooks.c.
558         * targhooks.h (default_except_unwind_info,
559         dwarf2_except_unwind_info, sjlj_except_unwind_info,
560         default_target_handle_option, empty_optimization_table): Move to
561         common/common-targhooks.h.
562         * common/common-target-def.h: Include common/common-targhooks.h.
563         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
564         defined.
565         * common/common-target.def (handle_option, option_init_struct,
566         option_optimization_table, default_target_flags,
567         except_unwind_info, supports_split_stack, unwind_tables_default,
568         have_named_sections): Move from target.def.
569         (HOOK_PREFIX): Undefine at end of file.
570         * common/common-target.h: Include input.h.
571         (enum opt_levels, struct default_options): Move from target.h.
572         * common/common-targhooks.c, common/common-targhooks.h: New.
573         * config.gcc (target_has_targetm_common): Default to yes.
574         (moxie*): Set target_has_targetm_common=no.
575         (hppa*-*-*): Don't set target_has_targetm_common=yes.
576         * doc/tm.texi: Regenerate.
577         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
578         (C_TARGET_DEF_H): Add common/common-targhooks.h.
579         (GCC_OBJS): Remove vec.o.
580         (OBJS): Remove hooks.o and vec.o.
581         (OBJS-libcommon-target): Add vec.o, hooks.o and
582         common/common-targhooks.o.
583         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
584         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
585         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
586         cfglayout.o, $(out_object_file), $(common_out_object_file)):
587         Update dependencies.
588         (common/common-targhooks.o): New.
589         * common/config/default-common.c: Include tm.h.  Add FIXME
590         comment.
591         * common/config/pa/pa-common.c: Include more headers.  Take
592         copyright dates from pa.c.
593         (pa_option_optimization_table, pa_handle_option,
594         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
595         TARGET_HANDLE_OPTION): Move from pa.c.
596         * common/config/alpha/alpha-common.c,
597         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
598         common/config/bfin/bfin-common.c,
599         common/config/cris/cris-common.c,
600         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
601         common/config/h8300/h8300-common.c,
602         common/config/i386/i386-common.c,
603         common/config/ia64/ia64-common.c,
604         common/config/iq2000/iq2000-common.c,
605         common/config/lm32/lm32-common.c,
606         common/config/m32c/m32c-common.c,
607         common/config/m32r/m32r-common.c,
608         common/config/m68k/m68k-common.c,
609         common/config/mcore/mcore-common.c,
610         common/config/mep/mep-common.c,
611         common/config/microblaze/microblaze-common.c,
612         common/config/mips/mips-common.c,
613         common/config/mmix/mmix-common.c,
614         common/config/mn10300/mn10300-common.c,
615         common/config/pdp11/pdp11-common.c,
616         common/config/picochip/picochip-common.c,
617         common/config/rs6000/rs6000-common.c,
618         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
619         common/config/score/score-common.c, common/config/sh/sh-common.c,
620         common/config/sparc/sparc-common.c,
621         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
622         common/config/vax/vax-common.c,
623         common/config/xstormy16/xstormy16-common.c,
624         common/config/xtensa/xtensa-common.c: New.
625         * config/alpha/alpha.c: Include common/common-target.h.
626         (alpha_option_optimization_table, alpha_handle_option,
627         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
628         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
629         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
630         * config/arm/arm.c (arm_option_optimization_table,
631         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
632         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
633         arm-common.c.
634         * config/avr/avr.c (avr_option_optimization_table,
635         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
636         to avr-common.c.
637         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
638         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
639         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
640         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
641         * config/cris/cris.c (cris_option_optimization_table,
642         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
643         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
644         cris-common.c.
645         * config/fr30/fr30.c (fr30_option_optimization_table,
646         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
647         to fr30-common.c.
648         * config/frv/frv.c (frv_option_optimization_table,
649         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
650         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
651         * config/h8300/h8300.c (h8300_option_optimization_table,
652         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
653         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
654         * config/i386/i386-protos.h (ix86_handle_option): Declare.
655         * config/i386/i386.c: Include common/common-target.h.
656         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
657         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
658         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
659         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
660         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
661         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
662         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
663         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
664         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
665         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
666         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
667         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
668         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
669         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
670         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
671         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
672         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
673         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
674         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
675         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
676         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
677         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
678         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
679         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
680         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
681         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
682         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
683         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
684         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
685         ix86_option_optimization_table, ix86_option_init_struct,
686         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
687         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
688         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
689         i386-common.c.
690         * config/i386/t-i386 (i386.o): Update dependencies.
691         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
692         * config/ia64/ia64.c (ia64_option_optimization_table,
693         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
694         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
695         ia64_handle_option): Move to ia64-common.c.
696         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
697         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
698         * config/lm32/lm32.c (lm32_option_optimization_table,
699         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
700         to lm32-common.c.
701         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
702         m32c-common.c.
703         * config/m32r/m32r.c (m32r_option_optimization_table,
704         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
705         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
706         m32r_handle_option): Move to m32r-common.c.
707         (m32r_memory_move_cost): Remove comment referring to
708         TARGET_HANDLE_OPTION.
709         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
710         Move to m68k-common.c.
711         * config/mcore/mcore.c (mcore_option_optimization_table,
712         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
713         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
714         * config/mep/mep.c (mep_option_optimization_table,
715         mep_handle_option, TARGET_HANDLE_OPTION,
716         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
717         Move to mep-common.c.
718         * config/microblaze/microblaze.c
719         (microblaze_option_optimization_table,
720         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
721         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
722         * config/mips/mips.c (mips_handle_option,
723         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
724         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
725         mips-common.c.
726         * config/mmix/mmix.c (mmix_option_optimization_table,
727         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
728         Move to mmix-common.c.
729         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
730         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
731         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
732         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
733         * config/pa/pa.c: Include common/common-target.h.
734         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
735         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
736         pa_handle_option): Move to pa-common.c.
737         (pa_option_override): Use targetm_common.except_unwind_info.
738         (pa_asm_output_mi_thunk, pa_function_section): Use
739         targetm_common.have_named_sections.
740         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
741         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
742         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
743         pdp11_handle_option, pdp11_option_init_struct): Move to
744         pdp11-common.c.
745         * config/picochip/picochip.c (picochip_option_optimization_table,
746         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
747         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
748         * config/rs6000/rs6000.c: Include common/common-target.h.
749         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
750         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
751         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
752         rs6000_handle_option): Move to rs6000-common.c.
753         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
754         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
755         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
756         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
757         * config/s390/s390.c (processor_flags_table,
758         s390_option_optimization_table, s390_option_init_struct,
759         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
760         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
761         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
762         * config/s390/s390.h (processor_flags_table): Declare.
763         * config/score/score.c (score_option_optimization_table,
764         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
765         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
766         score_handle_option): Move to score-common.c.
767         * config/sh/sh.c (sh_option_optimization_table,
768         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
769         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
770         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
771         * config/sparc/sparc.c: Include common/common-target.h.
772         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
773         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
774         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
775         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
776         spu_option_init_struct): Move to spu-common.c.
777         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
778         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
779         * config/v850/v850.c (small_memory_physical_max,
780         v850_handle_memory_optionn v850_handle_option,
781         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
782         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
783         v850-common.c.
784         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
785         vax-common.c.
786         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
787         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
788         Move to xtensa-common.c.
789         * cfglayout.c: Include common/common-target.h.
790         (fixup_reorder_chain): Use targetm_common.have_named_sections.
791         * cfgrtl.c: Include common/common-target.h.
792         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
793         targetm_common.have_named_sections.
794         * dbxout.c: Include common/common-target.h.
795         (dbxout_function_end): Use targetm_common.have_named_sections.
796         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
797         targetm_common.except_unwind_info.
798         * dwarf2out.c: Include common/common-target.h.
799         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
800         dwarf2out_begin_prologue, dwarf2out_frame_init,
801         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
802         targetm_common.except_unwind_info.
803         * except.c: Include common/common-target.h.
804         (init_eh, finish_eh_generation,
805         output_one_function_exception_table): Use
806         targetm_common.except_unwind_info.
807         (switch_to_exception_section): Use
808         targetm_common.have_named_sections.
809         * explow.c: Include common/common-target.h.
810         * expr.c: Include common/common-target.h.
811         (build_personality_function): Use
812         targetm_common.except_unwind_info.
813         * function.c: Include common/common-target.h.
814         (expand_function_end): Use targetm_common.except_unwind_info.
815         * haifa-sched.c: Include common/common-target.h.
816         (sched_create_recovery_edges): Use
817         targetm_common.have_named_sections.
818         * lto-opts.c: Include common/common-target.h instead of target.h.
819         (lto_reissue_options): Use targetm_common.handle_option.
820         * opts.c: Include common/common-target.h.
821         (target_handle_option): Use targetm_common.handle_option.
822         (init_options_struct): Update comment referring to
823         targetm.target_option.optimization.  Use
824         targetm_common.default_target_flags,
825         targetm_common.unwind_tables_default and
826         targetm_common.option_init_struct.
827         (default_options_optimization): Use
828         targetm_common.option_optimization_table.
829         (finish_options): Use targetm_common.except_unwind_info,
830         targetm_common.unwind_tables_default,
831         targetm_common.have_named_sections and
832         targetm_common.supports_split_stack.
833         * toplev.c: Include common/common-target.h.
834         (process_options): Use targetm_common.have_named_sections.
835         * tree-tailcall.c: Include common/common-target.h.
836         (suitable_for_tail_call_opt_p): Use
837         targetm_common.except_unwind_info.
838         * tree.c: Include common/common-target.h.
839         (build_common_builtin_nodes): Use
840         targetm_common.except_unwind_info.
841         * varasm.c: Include common/common-target.h.
842         (resolve_unique_section, hot_function_section,
843         default_function_section): Use targetm_common.have_named_sections.
845 2011-06-14  Easwaran Raman  <eraman@google.com>
847         PR rtl-optimization/44194
848         * dse.c: Include tree-flow.h
849         (insn_info): Add new field non_frame_wild_read.
850         (group_info): Add new fields escaped_n and escaped_p.
851         (kill_on_calls): New variable.
852         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
853         (dse_step0): Initialize kill_on_calls.
854         (can_escape): New function.
855         (set_usage_bits): Add additional parameter; record information
856         about escaped locations.
857         (record_store): Pass EXPR corresponding to MEM to
858         set_usage_bits.
859         (dse_step2_nospill): Set kill_on_calls based on
860         group->escaped_n and group->escaped_n.
861         (add_wild_read): Refactor into...
862         (reset_active_stores): ... New function, and
863         (free_read_records): ... New function.
864         (add_non_frame_wild_read): New function.
865         (scan_insn): Call add_non_frame_wild_read on non-const calls.
866         (scan_reads_nospill): Handle instructions with
867         non_frame_wild_read.
868         (dse_step5_nospill): Call scan_reads_nospill for instructions
869         marked as non_frame_wild_read.
870         (dse_step7): Free escaped_n, escaped_p and kill_on_calls
871         bitmaps.
873 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
875         * common/common-target-def.h, common/common-target.def,
876         common/common-target.h, common/config/default-common.c,
877         common/config/pa/pa-common.c: New files.
878         * Makefile.in (common_out_file, common_out_object_file,
879         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
880         (OBJS-libcommon-target): Include $(common_out_object_file).
881         (prefix.o): Update dependencies.
882         ($(common_out_object_file), common/common-target-hooks-def.h,
883         s-common-target-hooks-def-h): New.
884         (s-tm-texi): Also check timestamp on common-target.def.
885         (build/genhooks.o): Update dependencies.
886         * config.gcc (common_out_file, target_has_targetm_common): Define.
887         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
888         TARGET_ALWAYS_STRIP_DOTDOT.
889         * configure.ac (common_out_object_file): Define.
890         (common_out_file, common_out_object_file): Substitute.
891         (common): Create directory.
892         * configure: Regenerate.
893         * doc/tm.texi.in (targetm_common): Document.
894         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
895         * doc/tm.texi: Regenerate.
896         * genhooks.c (hook_array): Also include common/common-target.def.
897         * prefix.c (tm.h): Don't include.
898         (common/common-target.h): Include.
899         (ALWAYS_STRIP_DOTDOT): Don't define.
900         (update_path): Use targetm_common.always_strip_dotdot instead of
901         ALWAYS_STRIP_DOTDOT.
902         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
904 2011-06-14  David Li  <davidxl@google.com>
906         * passes.c (execute_function_todo): Remove TODO_dump_func.
907         (execute_one_pass): Remove TODO_dump_func.
908         (execute_function_dump): New function.
909         * tree-vrp.c: Remove TODO_dump_func.
910         * regrename.c: Remove TODO_dump_func.
911         * fwprop.c: Remove TODO_dump_func.
912         * tree-into-ssa.c: Remove TODO_dump_func.
913         * tree-complex.c: Remove TODO_dump_func.
914         * tracer.c: Remove TODO_dump_func.
915         * tree-loop-distribution.c: Remove TODO_dump_func.
916         * postreload-gcse.c: Remove TODO_dump_func.
917         * postreload.c: Remove TODO_dump_func.
918         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
919         * tree-tailcall.c: Remove TODO_dump_func.
920         * ipa-cp.c: Remove TODO_dump_func.
921         * final.c: Remove TODO_dump_func.
922         * tree-emutls.c: Remove TODO_dump_func.
923         * omp-low.c: Remove TODO_dump_func.
924         * tree-ssa-dse.c: Remove TODO_dump_func.
925         * tree-ssa-uncprop.c: Remove TODO_dump_func.
926         * auto-inc-dec.c: Remove TODO_dump_func.
927         * reorg.c: Remove TODO_dump_func.
928         * tree-ssa-copyrename.c: Remove TODO_dump_func.
929         * tree-ssa-ccp.c: Remove TODO_dump_func.
930         * compare-elim.c: Remove TODO_dump_func.
931         * mode-switching.c: Remove TODO_dump_func.
932         * modulo-sched.c: Remove TODO_dump_func.
933         * tree-call-cdce.c: Remove TODO_dump_func.
934         * cse.c: Remove TODO_dump_func.
935         * web.c: Remove TODO_dump_func.
936         * tree-stdarg.c: Remove TODO_dump_func.
937         * lto-streamer-out.c: Remove TODO_dump_func.
938         * tree-ssa-math-opts.c: Remove TODO_dump_func.
939         * tree-ssa-dom.c: Remove TODO_dump_func.
940         * tree-nrv.c: Remove TODO_dump_func.
941         * loop-init.c: Remove TODO_dump_func.
942         * gimple-low.c: Remove TODO_dump_func.
943         * ipa-inline.c: Remove TODO_dump_func.
944         * tree-ssa-sink.c: Remove TODO_dump_func.
945         * jump.c: Remove TODO_dump_func.
946         * ifcvt.c: Remove TODO_dump_func.
947         * tree-ssa-loop.c: Remove TODO_dump_func.
948         * recog.c: Remove TODO_dump_func.
949         * dse.c: Remove TODO_dump_func.
950         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
951         * matrix-reorg.c: Remove TODO_dump_func.
952         * tree-eh.c: Remove TODO_dump_func.
953         * regmove.c: Remove TODO_dump_func.
954         * function.c: Remove TODO_dump_func.
955         * tree-vectorizer.c: Remove TODO_dump_func.
956         * ipa-split.c: Remove TODO_dump_func.
957         * gcse.c: Remove TODO_dump_func.
958         * tree-if-conv.c: Remove TODO_dump_func.
959         * init-regs.c: Remove TODO_dump_func.
960         * tree-ssa-phiopt.c: Remove TODO_dump_func.
961         * implicit-zee.c: Remove TODO_dump_func.
962         * lower-subreg.c: Remove TODO_dump_func.
963         * bt-load.c: Remove TODO_dump_func.
964         * tree-dfa.c: Remove TODO_dump_func.
965         * except.c: Remove TODO_dump_func.
966         * emit-rtl.c: Remove TODO_dump_func.
967         * store-motion.c: Remove TODO_dump_func.
968         * cfgexpand.c: Remove TODO_dump_func.
969         * tree-cfgcleanup.c: Remove TODO_dump_func.
970         * cfgcleanup.c: Remove TODO_dump_func.
971         * tree-ssa-pre.c: Remove TODO_dump_func.
972         * tree-sra.c: Remove TODO_dump_func.
973         * tree-mudflap.c: Remove TODO_dump_func.
974         * tree-ssa-copy.c: Remove TODO_dump_func.
975         * cfglayout.c: Remove TODO_dump_func.
976         * tree-ssa-forwprop.c: Remove TODO_dump_func.
977         * tree-ssa-dce.c: Remove TODO_dump_func.
978         * ira.c: Remove TODO_dump_func.
979         * tree-ssa.c: Remove TODO_dump_func.
980         * integrate.c: Remove TODO_dump_func.
981         * tree-optimize.c: Remove TODO_dump_func.
982         * tree-ssa-phiprop.c: Remove TODO_dump_func.
983         * tree-object-size.c: Remove TODO_dump_func.
984         * combine.c: Remove TODO_dump_func.
985         * bb-reorder.c: Remove TODO_dump_func.
986         * cprop.c: Remove TODO_dump_func.
987         * var-tracking.c: Remove TODO_dump_func.
988         * tree-profile.c: Remove TODO_dump_func.
989         * tree-vect-generic.c: Remove TODO_dump_func.
990         * reg-stack.c: Remove TODO_dump_func.
991         * sched-rgn.c: Remove TODO_dump_func.
992         * tree-ssa-structalias.c: Remove TODO_dump_func.
993         * tree-switch-conversion.c: Remove TODO_dump_func.
994         * tree-cfg.c: Remove TODO_dump_func.
995         * tree-ssa-reassoc.c: Remove TODO_dump_func.
996         * combine-stack-adj.c: Remove TODO_dump_func.
997         * dce.c: Remove TODO_dump_func.
998         * tree-ssanames.c: Remove TODO_dump_func.
999         * regcprop.c: Remove TODO_dump_func.
1001 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
1003         PR middle-end/47364
1004         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1005         and properly handle result not in Pmode.
1007 2011-06-14  Robert Millan  <rmh@gnu.org>
1009         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1010         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1011         `config/linux.h'.
1013         * config/i386/kfreebsd-gnu64.h: New file.
1014         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1015         with `i386/kfreebsd-gnu64.h'.
1017         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1018         (GNU_USER_LINK_EMULATION64): New macros.
1019         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1020         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1021         of hardcoding `elf_i386' and `elf_x86_64'.
1023 2011-06-14  Nick Clifton  <nickc@redhat.com>
1025         PR target/49403
1026         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1028         PR target/49402
1029         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1031 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
1033         PR fortran/49103
1034         * tree.h (DECL_NONSHAREABLE): Define.
1035         (struct tree_decl_common): Change decl_common_unused to
1036         decl_nonshareable_flag.
1037         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1038         Ignore vars with DECL_NONSHAREABLE bit set.
1039         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1040         on stores to automatic aggregate vars.
1042         PR rtl-optimization/49390
1043         Revert:
1044         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
1046         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1047         MEM_ALIAS_SET.
1049 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
1050             Tom de Vries  <tom@codesourcery.com>
1052         PR target/45098
1053         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1054         Document changed semantics.
1055         (max_stmt_executions, max_stmt_executions_int): Declare.
1056         * tree-data-ref.c (estimated_loop_iterations)
1057         (estimated_loop_iterations_int): Move functions...
1058         * tree-ssa-loop-niter.c (estimated_loop_iterations)
1059         (estimated_loop_iterations_int): here.
1060         (record_estimate): Change nb_iterations_upper_bound and
1061         nb_iterations_estimate semantics.
1062         (max_stmt_executions, max_stmt_executions_int): New function.
1063         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1064         (max_stmt_executions_tree): this.
1065         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1066         estimated_loop_iterations_tree.
1067         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1068         max_stmt_executions_int instead of estimated_loop_iterations_int.
1069         * predict.c (predict_loops): Idem.
1070         * tree-parloops.c (parallelize_loops): Idem.
1071         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1072         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1073         (init_omega_for_ddr_1): Idem.
1074         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1075         (loop_prefetch_arrays): Idem
1076         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1077         max_stmt_executions instead of estimated_loop_iterations.
1078         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1079         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1080         instead of nb_iterations_upper_bound.
1082 2011-06-13  Jan Hubicka  <jh@suse.cz>
1084         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1086 2011-06-14  Richard Henderson  <rth@redhat.com>
1088         PR debug/48459
1089         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1090         (based_loc_descr): Assert it's true.
1091         (compute_frame_pointer_to_fb_displacement): Set it, rather than
1092         aborting immediately.
1094 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
1095             Mingfeng Wu  <mingfeng@faraday-tech.com>
1097         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1099 2011-06-13  Jan Hubicka  <jh@suse.cz>
1101         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1103 2011-06-13  Jan Hubicka  <jh@suse.cz>
1105         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1106         similarly to DECL_COMDAT.
1107         * cgraphunit.c (cgraph_analyze_function): Likewise.
1108         * ipa.c (function_and_variable_visibility): Likewise.
1110 2011-06-13  Jan Hubicka  <jh@suse.cz>
1112         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1113         BINFO_VIRTUALS when streaming for ltrans unit.
1115 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
1117         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1118         (movdi_internal64): Same.
1120 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
1122         PR target/44618
1123         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1124         a set of similar patterns, where the MATCH_OPERAND for the function
1125         argument is replaced with individual references to hardware registers.
1126         (save_fpregs_<mode>): Ditto
1127         (restore_gpregs_<mode>): Ditto
1128         (return_and_restore_gpregs_<mode>): Ditto
1129         (return_and_restore_fpregs_<mode>): Ditto
1130         (return_and_restore_fpregs_aix_<mode>): Ditto
1132 2011-06-13  Jan Hubicka  <jh@suse.cz>
1134         * ipa-utils.c (postorder_stack): New structure.
1135         (ipa_reverse_postorder): Handle aliases.
1137 2011-06-13  Jan Hubicka  <jh@suse.cz>
1139         * ipa-inline.c (reset_edge_caches): Walk aliases.
1140         (update_caller_keys): Do not test inlinability of aliases.
1141         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1142         (do_estimate_growth): Fix typo.
1144 2011-06-13  Jan Hubicka  <jh@suse.cz>
1146         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1147         (can_remove_node_now_p): ... here; handle same comdat groups.
1148         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1149         (inline_call): Update use of can_remove_node_now_p.
1151 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1153         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
1154         condition to disallow non-identical memory locations.
1155         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1156         preference to bit manipulation instructions.
1158 2011-06-13  Jan Hubicka  <jh@suse.cz>
1160         * cgraph.c (cgraph_for_node_thunks_and_aliases,
1161         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1162         (nonremovable_p): New function.
1163         (cgraph_can_remove_if_no_direct_calls_p): New function.
1164         (used_from_object_file_p): New functoin.
1165         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1166         references from aliases.
1167         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1168         * ipa-inline.c (check_caller_edge): New function.
1169         (want_inline_function_called_once_p): Use it; accept aliases called
1170         once, too.
1171         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1173 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1175         PR target/48454
1176         * config/arm/neon.md (vec_pack_trunc): Set the lengths
1177         correctly for the case with Quad vectors.
1179 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
1180            Ira Rosen  <ira.rosen@linaro.org>
1182         PR tree-optimization/49352
1183         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1184         all, make sure loop_use_stmt after the loop is a def stmt of a used
1185         SSA_NAME that is the only one defined inside of the loop.  Don't
1186         check for COND_EXPR and GIMPLE_BINARY_RHS.
1187         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1188         check_reduction is true.
1190 2011-06-11  Jan Hubicka  <jh@suse.cz>
1192         PR middle-end/49373
1193         * ipa.c (cgraph_externally_visible_p): Check resolution info.
1195 2011-06-11  Jan Hubicka  <jh@suse.cz>
1197         PR middle-end/48836
1198         * ipa-inline-transform.c: Include tree-pass.h
1199         (inline_transform): Set TODO_update_ssa_only_virtuals.
1200         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1202 2011-06-11  Jan Hubicka  <jh@suse.cz>
1204         PR middle-end/49378
1205         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1206         aliases and thunks.
1208 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
1210         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1211         Take number of iterations to peel into account for equally frequent
1212         misalignment values.
1214 2011-06-11  Jan Hubicka  <jh@suse.cz>
1216         * lto-streamer-out.c (produce_symtab): Stream out the newly represented
1217         aliases.
1219 2011-06-11  Jan Hubicka  <jh@suse.cz>
1221         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
1222         args.
1223         (ipa_update_after_lto_read): Likewise.
1224         (ipa_write_node_info): Do not sream call_with_var_arguments.
1225         (ipa_read_node_info): Likewise.
1227 2011-06-11  Jan Hubicka  <jh@suse.cz>
1229         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
1231 2011-06-11  Jan Hubicka  <jh@suse.cz>
1233         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
1234         (lto_symtab_resolve_can_prevail_p): Likewise.
1235         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
1236         * cgraph.c (same_body_aliases_done): New global var.
1237         (cgraph_same_body_alias_1): Rename to ...
1238         (cgraph_create_function_alias): ... this one; reorg to new
1239         representation.
1240         (cgraph_same_body_alias): Use cgraph_create_function_alias;
1241         record references when asked to.
1242         (cgraph_add_thunk): Fix formating.
1243         (cgraph_get_node): Kill same body alias code.
1244         (cgraph_node_for_asm): Likewise.
1245         (cgraph_remove_same_body_alias): Remove.
1246         (cgraph_remove_node): Kill same body alias code.
1247         (cgraph_mark_address_taken_node): Mark also the aliased function
1248         as having address taken.
1249         (dump_cgraph_node): Dump same body aliases.
1250         (cgraph_for_node_thunks_and_aliases): Update for new alias
1251         representation.
1252         (cgraph_for_node_and_aliases): Likewise.
1253         * cgraph.h (same_body): Kll pointer.
1254         (same_body_alias): Update comment.
1255         (same_body_aliases_done): Declare.
1256         (cgraph_remove_same_body_alias): Remove declaration.
1257         (cgraph_create_function_alias): Declare.
1258         (cgraph_process_same_body_aliases): Declare.
1259         (cgraph_function_with_gimple_body_p): Check for alias.
1260         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
1261         (cgraph_alias_aliased_node): New function.
1262         (cgraph_function_node): Update for new aliases.
1263         (cgraph_function_or_thunk_node): Likewise.
1264         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
1265         (inline_call): Remove dead aliases.
1266         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
1267         name hack for same body aliases.
1268         (clone_of_p): Look through aliases.
1269         (verify_cgraph_node): Verify aliases.
1270         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
1271         (cgraph_process_same_body_aliases): New function.
1272         (process_function_and_variable_attributes): Disable weakref warning on
1273         alias.
1274         (cgraph_analyze_functions): Handle aliases.
1275         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
1276         (assemble_thunks): Rename to ...
1277         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
1278         (cgraph_expand_function): Remove alias output code.
1279         (cgraph_output_in_order): Skip aliases.
1280         (cgraph_preserve_function_body_p): Aliases don't need preserving.
1281         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
1282         (ipa_record_reference): Do not assert on alias references.
1283         (ipa_ref_has_aliases_p): New function.
1284         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
1285         (ipa_ref_has_aliases_p): Declare.
1286         * lto-cgraph.c (lto_output_node): Handle aliases.
1287         (input_node): Likewise.
1288         * lto-streamer-out.c (lto_output): Skip aliases.
1289         (produce_symtab): Kill same_body_alias code.
1290         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
1291         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
1292         * ipa-inline.c (update_caller_keys): Walk aliases.
1293         (inline_small_functions): Fix thinko in previous patch.
1294         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
1295         (function_and_variable_visibility): Do not walk same body aliases.
1296         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
1297         (ipa_pta_execute): Use it.
1299 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
1301         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1302         (*vec_dupv2df): Rename from vec_dupv2df.
1303         (vec_dupv2df): New expander.
1305 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
1307         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
1309 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
1311         * config/i386/i386.md: Use default value in "isa" attribute.
1312         * config/i386/sse.md: Ditto.
1313         * config/i386/mmx.md: Ditto.
1315 2011-06-10  Wei Guozhi  <carrot@google.com>
1317         PR target/45335
1318         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1319         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1320         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1321         related peephole2.
1322         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1323         related peephole2.
1324         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1325         (arm_legitimate_ldrd_p): New prototype.
1326         (arm_output_ldrd): New prototype.
1327         * config/arm/arm.c (arm_check_ldrd_operands): New function.
1328         (arm_legitimate_ldrd_p): New function.
1329         (arm_output_ldrd): New function.
1331 2011-06-10  David Li  <davidxl@google.com>
1333         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1334         * passes.c (passr_eq): New function.
1335         (create_pass_tab): New function.
1336         (pass_traverse): New function.
1337         (dump_one_pass): New function.
1338         (dump_pass_list): New function.
1339         (dump_passes): New function.
1341 2011-06-10  Jan Hubicka  <jh@suse.cz>
1343         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
1344         setting the nothrow flag.
1345         * ipa-reference.c (propagate): Skip aliases.
1346         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
1347         (propagate_nothrow): Skip aliases; do not update cgraph.
1348         (local_pure_const): Do not update cgraph.
1349         * tree-profile.c (tree_profiling): Do fixup_cfg.
1351 2011-06-10  Jan Hubicka  <jh@suse.cz>
1353         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
1354         (cgraph_local_node_p): ... here; handle aliases.
1355         (has_addr_references_p): Break out from ...;
1356         (cgraph_remove_unreachable_nodes) ... here.
1358 2011-06-10  Jan Hubicka  <jh@suse.cz>
1360         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
1361         * common.opt (flag_inline_functions_called_once): Do not
1362         initialize to 1.
1364 2011-06-10  Jan Hubicka  <jh@suse.cz>
1366         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
1367         (ipcp_initialize_node_lattices): Do not deal with aliases;
1368         Do not try to propagate through thunks.
1369         (ipcp_change_tops_to_bottom): Do not deal with aliases.
1371 2011-06-10  Jan Hubicka  <jh@suse.cz>
1373         * ipa-prop.c (ipa_write_node_info): Stream jump functions
1374         for indirect calls.
1375         (ipa_read_node_info): Likewise.
1377 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1379         PR lto/49302
1380         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
1381         (build_and_insert_call): Likewise.
1382         (build_and_insert_ref): New.
1383         (gimple_expand_builtin_pow): Minor cleanup.
1384         (gimple_expand_builtin_cabs): New.
1385         (execute_cse_sincos): Add case for BUILT_IN_CABS.
1387 2011-06-10  Jan Hubicka  <jh@suse.cz>
1389         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
1390         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
1391         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
1392         (ipcp_propagate_stage): Skip aliases when propagating.
1393         (ipcp_need_redirect_p): Skip aliases.
1394         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
1395         collect_callers_of_node.
1396         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
1397         for aliases.
1398         (ipa_compute_jump_functions): Look through aliases.
1400 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1402         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
1404 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
1406         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
1407         Adjust comments.
1408         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
1410 2011-06-10  Jan Hubicka  <jh@suse.cz>
1412         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
1413         Update call of gimple_get_virt_method_for_binfo.
1414         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
1415         refuse_thunks parameter.
1416         (gimple_fold_call): Update.
1417         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
1419 2011-06-10  Jan Hubicka  <jh@suse.cz>
1421         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
1422         (not_all_callers_have_enough_arguments_p): ... this one; turn into
1423         worker for cgraph_for_node_and_aliases.
1424         (convert_callers_for_node): Break out from ...
1425         (convert_callers): ... here.
1426         (modify_function): Use collect_callers_of_node.
1427         (ipa_early_sra): Use cgraph_for_node_and_aliases.
1429 2011-06-10  Richard Guenther  <rguenther@suse.de>
1431         PR tree-optimization/49361
1432         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
1433         when not already in gimple form.
1435 2011-06-10  Richard Guenther  <rguenther@suse.de>
1437         PR bootstrap/49344
1438         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
1439         FOR_EACH_PHI_OR_STMT_USE.
1441 2011-06-10  Jan Hubicka  <jh@suse.cz>
1443         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
1444         (clone_inlined_nodes): ... here.
1445         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
1446         to real destination prior inlining.
1447         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1448         can_early_inline_edge_p, want_early_inline_function_p,
1449         want_early_inline_function_p, want_inline_small_function_p,
1450         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
1451         edge_badness, update_all_callee_keys, lookup_recursive_calls,
1452         add_new_edges_to_heap, inline_small_functions, flatten_function,
1453         inline_always_inline_functions, early_inline_small_functions): Use
1454         cgraph_function_or_thunk_node.
1455         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
1456         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
1457         (do_estimate_edge_growth_1): Break out from ...
1458         (do_estimate_growth) ... here; walk aliases.
1459         (inline_generate_summary): Skip aliases.
1461 2011-06-10  Richard Guenther  <rguenther@suse.de>
1463         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
1464         forward when combining, visit inserted stmts when a stmt was changed.
1466 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
1468         * tree.h (error_operand_p): Add.
1469         * dbxout.c (dbxout_type_fields): Use the latter.
1470         * c-decl.c (add_stmt): Likewise.
1471         * gimplify.c (omp_add_variable, omp_notice_variable,
1472         gimplify_scan_omp_clauses): Likewise.
1474 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
1476         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
1477         when a value is actually passed in regs.
1479 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
1480             Laurent Rougé  <laurent.rouge@menta.fr>
1482         * doc/invoke.texi (SPARC options): Add -mflat.
1483         * config/sparc/sparc.opt: Likewise.
1484         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
1485         (sparc_flat_expand_prologue): Declare.
1486         (sparc_flat_expand_epilogue): Likewise.
1487         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
1488         (CPP_ENDIAN_SPEC): Replace with...
1489         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
1490         (CPP_SPEC): Adjust to above change.
1491         (EXTRA_SPECS): Likewise.
1492         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
1493         (INCOMING_REGNO): Likewise.
1494         (OUTGOING_REGNO): Likewise.
1495         (LOCAL_REGNO): Likewise.
1496         (SETUP_FRAME_ADDRESSES): Likewise.
1497         (FIXED_REGISTERS): Set 0 for %fp.
1498         (CALL_USED_REGISTERS): Likewise.
1499         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
1500         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
1501         (RETURN_ADDR_REGNUM): Define.
1502         (RETURN_ADDR_RTX): Use it.
1503         (INCOMING_RETURN_ADDR_REGNUM): Define.
1504         (INCOMING_RETURN_ADDR_RTX): Use it.
1505         (DWARF_FRAME_RETURN_COLUMN): Likewise.
1506         (EH_RETURN_REGNUM): Define.
1507         (EH_RETURN_STACKADJ_RTX): Use it.
1508         (EH_RETURN_HANDLER_RTX): Delete.
1509         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
1510         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
1511         Delete.
1512         (struct machine_function): Add frame_size, apparent_frame_size,
1513         frame_base_reg, frame_base_offset, n_global_fp_regs and
1514         save_local_in_regs_p fields.
1515         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
1516         sparc_frame_base_offset, sparc_n_global_fp_regs,
1517         sparc_save_local_in_regs_p): New macros.
1518         (sparc_option_override): Error out if -fcall-saved-REG is specified
1519         for Out registers.
1520         (eligible_for_restore_insn): Fix formatting.
1521         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
1522         (eligible_for_sibcall_delay): Likewise.
1523         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
1524         (sparc_legitimate_address_p): Adjust to above change.
1525         (save_global_or_fp_reg_p): New predicate.
1526         (return_addr_reg_needed_p): Likewise.
1527         (save_local_or_in_reg_p): Likewise.
1528         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
1529         (SORR_SAVE, SORR_RESTORE): Delete.
1530         (sorr_pred_t): New typedef.
1531         (sorr_act_t): New enum.
1532         (save_or_restore_regs): Rename to...
1533         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
1534         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
1535         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
1536         mechanism.  Add CFI information for double-word saves in 32-bit mode.
1537         (emit_adjust_base_to_offset): New function extracted from...
1538         (emit_save_or_restore_regs): ...this.  Rename the rest to...
1539         (emit_save_or_restore_regs_global_fp_regs): ...this.
1540         (emit_save_or_restore_regs_local_in_regs): New function.
1541         (gen_create_flat_frame_[123]): New functions.
1542         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
1543         (sparc_flat_expand_prologue): New function.
1544         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
1545         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
1546         (sparc_flat_expand_epilogue): New function.
1547         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
1548         (output_return): Likewise.
1549         (output_sibcall): Likewise.
1550         (sparc_output_mi_thunk): Likewise.
1551         (sparc_frame_pointer_required): Likewise.
1552         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
1553         function optimization.
1554         * config/sparc/sparc.md (flat): New attribute.
1555         (prologue): Add TARGET_FLAT handling.
1556         (save_register_window): Disable if TARGET_FLAT.
1557         (create_flat_frame_[123]): New patterns.
1558         (epilogue): Add TARGET_FLAT handling.
1559         (sibcall_epilogue): Likewise.
1560         (eh_return): New expander.
1561         (eh_return_internal): New insn and splitter.
1562         (return_internal): Add TARGET_FLAT handling.
1563         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
1564         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
1565         (nonlocal_goto): Add TARGET_FLAT handling.
1566         * config/sparc/t-elf: Add -mflat multilib.
1567         * config/sparc/t-leon: Likewise.
1569 2011-06-10  Jan Hubicka  <jh@suse.cz>
1571         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
1572         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
1573         (self_recursive_p): Use cgraph_function_node.
1574         (propagate_pure_const): Likewise.
1575         (propagate_nothrow): Likewise.
1576         * ipa-reference.c (ipa_reference_get_not_read_global): Use
1577         cgraph_function_node.
1578         (propagate_bits): Likewise.
1579         (propagate): Likewise.
1581 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1582             Richard Earnshaw  <rearnsha@arm.com>
1584         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
1585         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
1586         (*thumb2_movdi_vfp): Delete.
1587         (*arm_movdi_vfp_cortexa8): Delete.
1588         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
1589         (*movdi_vfp_cortexa8): Likewise.
1591 2011-06-10  Richard Guenther  <rguenther@suse.de>
1593         * stor-layout.c (initialize_sizetypes): Give names to all
1594         sizetype kinds.
1596 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
1598         PR tree-optimization/49318
1599         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
1600         irrelevant pattern statements.
1602 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
1604         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
1606         PR bootstrap/49354
1607         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
1608         to last assignment.
1610 2011-06-09  Jan Hubicka  <jh@suse.cz>
1612         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
1613         do not recompute reachable flag.
1614         (cgraph_finalize_function, cgraph_analyze_functions): Set
1615         redefined_extern_inline here.
1617 2011-06-09  Jan Hubicka  <jh@suse.cz>
1619         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
1620         (cgraph_only_called_directly_p): ... this one; bring offline.
1621         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1622         varpool_used_from_object_file_p): Drop names from the declaratoin.
1623         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
1624         collect_callers_of_node): New.
1625         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
1626         (cgraph_edge_recursive_p): Use cgraph_function_node.
1627         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
1628         (cgraph_node_cannot_be_local_p_1): Break out from ...
1629         (cgraph_node_can_be_local_p): ... here; walk aliases.
1630         (cgraph_for_node_thunks_and_aliases): New function.
1631         (cgraph_for_node_and_aliases): New function.
1632         (cgraph_make_node_local_1): Break out from ...
1633         (cgraph_make_node_local) ... here; use
1634         cgraph_for_node_thunks_and_aliases.
1635         (cgraph_set_nothrow_flag_1): Break out from ...
1636         (cgraph_set_nothrow_flag) ... here;
1637         use cgraph_for_node_thunks_and_aliases.
1638         (cgraph_set_const_flag_1): Break out from ...
1639         (cgraph_set_const_flag) ... here;
1640         use cgraph_for_node_thunks_and_aliases.
1641         (cgraph_set_pure_flag_1): Break out from ...
1642         (cgraph_set_pure_flag) ... here;
1643         use cgraph_for_node_thunks_and_aliases.
1644         (cgraph_propagate_frequency_1): Break out from ...
1645         (cgraph_propagate_frequency) ... here; use
1646         cgraph_for_node_thunks_and_aliases.
1647         (cgraph_used_from_object_file_p): Do not care about aliases.
1648         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
1649         New functions.
1650         (collect_callers_of_node_1, collect_callers_of_node): New functions.
1652 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
1654         PR rtl-optimization/49154
1655         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
1656         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
1657         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
1658         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
1659         * config/cris/cris.h (cris_register_move_cost): Remove
1660         !TARGET_V32 code.  Tweak comments.
1662 2011-06-09  Jan Hubicka  <jh@suse.cz>
1664         * cgraphbuild.c (record_eh_tables): Mark personality function as having
1665         address taken.
1667 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
1669         PR rtl-optimization/49154
1670         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
1671         is a matching slot in the hashtable, assign it to classes_ptr.
1673         PR rtl-optimization/49154
1674         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
1675         register classes.
1676         * doc/tm.texi: Regenerate.
1678 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
1680         PR target/49307
1681         * config/sh/sh.md (UNSPEC_CHKADD): New.
1682         (chk_guard_add): New define_insn_and_split.
1683         (symGOT_load): Use chk_guard_add instead of blockage.
1685 2011-06-09  Kai Tietz  <ktietz@redhat.com>
1687         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
1689 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
1691         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1693 2011-06-09  Wei Guozhi  <carrot@google.com>
1695         PR target/46975
1696         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
1697         (peephole2 for conditional move): Generate 16 bit instructions.
1699 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
1701         * config/i386/i386.md (*movdi_internal_rex64): Merge
1702         alternatives 6 and 8.
1704 2011-06-09  David Li  <davidxl@google.com>
1706         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1707         * passes.c (passr_eq): New function.
1708         (create_pass_tab): New function.
1709         (pass_traverse): New function.
1710         (dump_one_pass): New function.
1711         (dump_pass_list): New function.
1712         (dump_passes): New function.
1714 2011-06-09  David Li  <davidxl@google.com>
1716         * tree-complex.c (tree_lower_complex): Gate cleanup.
1717         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
1718         (execute_optimize_stdarg): Ditto.
1719         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
1720         (execute_cleanup_eh_1): Ditto.
1721         (execute_cleanup_eh): Ditto.
1722         * gcse.c (gate_rtl_pre): Ditto.
1723         (execute_rtl_pre): Ditto.
1724         * except.c (finish_eh_generation): Ditto.
1725         (convert_to_eh_region_ranges): Ditto.
1726         * cprop.c (one_cprop_pass): Ditto.
1728 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
1730         PR target/48673
1731         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
1732         in all basic blocks.
1734 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1736         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
1737         (HAVE_ENABLE_EXECUTE_STACK): Define.
1738         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
1739         (HAVE_ENABLE_EXECUTE_STACK): Define.
1740         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
1741         (HAVE_ENABLE_EXECUTE_STACK): Define.
1742         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
1743         (ENABLE_EXECUTE_STACK): Remove.
1744         (HAVE_ENABLE_EXECUTE_STACK): Define.
1745         [IN_LIBGCC2]: Don't include <windows.h>.
1746         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1747         (HAVE_ENABLE_EXECUTE_STACK): Define.
1748         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
1749         (HAVE_ENABLE_EXECUTE_STACK): Define.
1750         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
1751         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
1752         (HAVE_ENABLE_EXECUTE_STACK): Define.
1753         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
1754         (HAVE_ENABLE_EXECUTE_STACK): Define.
1755         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
1756         (HAVE_ENABLE_EXECUTE_STACK): Define.
1757         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1758         (HAVE_ENABLE_EXECUTE_STACK): Define.
1759         * config/alpha/alpha.c (alpha_trampoline_init): Test
1760         HAVE_ENABLE_EXECUTE_STACK.
1761         * config/i386/i386.c (ix86_trampoline_init): Likewise.
1762         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1763         (sparc64_initialize_trampoline): Likewise.
1764         * libgcc2.c [L_enable_execute_stack]: Remove.
1765         * system.h (ENABLE_EXECUTE_STACK): Poison.
1766         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
1767         * doc/tm.texi: Regenerate.
1768         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
1770 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
1772         PR middle-end/49308
1773         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
1774         variable.  After resetting and rescanning insn continue with previous
1775         statement.
1777 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1779         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
1780         (gcc_cv_ld_hidden): Likewise.
1781         * configure: Regenerate.
1782         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
1783         (ix86_stack_protect_fail): Mark unused.
1784         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
1785         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
1786         [TARGET_MACHO]: Don't define.
1787         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
1788         (TARGET_STACK_PROTECT_FAIL): Likewise.
1789         (rs6000_stack_protect_fail): Mark unused.
1790         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
1791         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
1793 2011-06-08  Andi Kleen  <ak@linux.intel.com>
1795         * varasm.c (get_section): Print location of other conflict
1796         for section conflicts.
1798 2011-06-08  Andi Kleen  <ak@linux.intel.com>
1800         * config/i386/driver-i386.c (host_detect_local_cpu):
1801         Add model 0x2d Intel CPU.
1803 2011-06-08  Andi Kleen  <ak@linux.intel.com>
1805         * reginfo.c (global_regs_decl): Add.
1806         (globalize_reg): Add decl parameter. Compute location.  Pass location
1807         to warnings and add inform. Store decl in global_regs_decl.
1808         * rtl.h (globalize_reg): Update prototype.
1809         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
1811 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
1813         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
1815 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
1817         PR target/49305
1818         * config/sh/predicates.md (general_movsrc_operand): Check
1819         mode for memory with indexed address for QI and HImode.
1820         (general_movdst_operand): Likewise.
1822 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
1824         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
1826 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
1828         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
1829         (num_ssa_operands): Likewise.
1830         (op_iter_init_phiuse): Forward-declare.
1831         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
1833 2011-06-08  Nick Clifton  <nickc@redhat.com>
1835         * doc/invoke.texi (ARM Options): Update description of
1836         -mthumb-interwork.
1838 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1840         * config/i386/driver-i386.c (host_detect_local_cpu): Support
1841         unknown Intel family 0x6 CPUs.
1843 2011-06-08  Martin Jambor  <mjambor@suse.cz>
1845         * tree-sra.c (mark_rw_status): Removed.
1846         (analyze_access_subtree): New parameter parent instead of
1847         mark_read and mark_write, propagate from that.
1849 2011-06-08  Julian Brown  <julian@codesourcery.com>
1851         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
1852         for double-precision helper functions in hard-float mode if only
1853         single-precision arithmetic is supported in hardware.
1855 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
1857         PR rtl-optimization/49303
1858         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
1859         code_motion_path_driver returned 0 or 1.
1860         (sel_region_finish): Clear h_d_i_d.
1862 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
1864         * config/sh/sh.c (prepare_move_operands): Set pic register
1865         appropriately for global and local dynamic tls models even
1866         if flag_pic is unset.
1868 2011-06-07  Jason Merrill  <jason@redhat.com>
1870         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
1872 2011-06-07  Xinliang David Li  <davidxl@google.com>
1873         * passes.c (enable_disable_pass): Handle assembler name.
1874         (is_pass_explicitly_enabled_or_disabled): Ditto.
1876 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1878         PR tree-optimization/48497
1879         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
1881 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1883         PR tree-optimization/46728
1884         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
1885         to use gimple_val_nonnegative_real_p.
1886         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
1887         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
1889 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1891         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
1893 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
1895         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
1896         constant vectors.
1898 2011-06-07  Richard Guenther  <rguenther@suse.de>
1900         * stor-layout.c (initialize_sizetypes): Initialize all
1901         sizetypes based on target definitions.
1902         (set_sizetype): Remove.
1903         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
1904         * tree.h (set_sizetype): Remove.
1906 2011-06-07  Nick Clifton  <nickc@redhat.com>
1908         * config.gcc: Unify V850 architecture options and add support for
1909         newer V850 architectures.
1910         * config/v850/t-v850e: Delete.
1912 2011-06-07  Richard Guenther  <rguenther@suse.de>
1914         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
1915         Call set_sizetype from here.
1917 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
1919         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
1920         (*maddhisi4tb, *maddhisi4tt): New define_insns.
1922 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
1923             Andrew Stubbs  <ams@codesourcery.com>
1925         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
1926         multiplies.
1927         * doc/md.texi (Canonicalization of Instructions): Document widening
1928         multiply canonicalization.
1930 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
1932         PR gcov-profile/49299
1933         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1935 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
1937         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
1938         a pointer.
1939         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
1940         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
1941         vect_recog_pow_pattern): Likewise.
1942         (vect_pattern_recog_1): Remove declaration.
1943         (widened_name_p): Remove declaration.  Add new argument to specify
1944         whether to check that both types are either signed or unsigned.
1945         (vect_recog_widen_mult_pattern): Update documentation.  Handle
1946         unsigned patterns and multiplication by constants.
1947         (vect_pattern_recog_1): Update vect_recog_func references.  Use
1948         statement information from the statement returned from pattern
1949         detection functions.
1950         (vect_pattern_recog): Update vect_recog_func reference.
1951         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
1952         multiplication by a constant use the type of the other operand.
1954 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
1956         PR rtl-optimization/49145
1957         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
1959 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
1961         PR debug/49262
1962         * dwarf2out.c (native_encode_initializer): Decrement count in each
1963         iteration.
1965         PR debug/49294
1966         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
1967         non-MODE_INT modes.
1969         PR c++/49264
1970         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1971         if stmt folded into nothing.
1972         * tree-inline.c (fold_marked_statements): If a builtin at the end of
1973         a bb folded into nothing, just update cgraph edges and move to next bb.
1974         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
1975         to be NULL.  Don't compute count and frequency if new_call is NULL.
1977 2011-06-04  Diego Novillo  <dnovillo@google.com>
1979         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
1980         (cgraph.o): Likewise.
1981         (cgraphunit.o): Likewise.
1982         * cgraphunit.c: Include lto-streamer.h
1983         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
1984         if LTO is enabled.
1985         * lto-streamer-in.c (unpack_value_fields): Call
1986         streamer_hooks.unpack_value_fields if set.
1987         (lto_materialize_tree): For unhandled nodes, first try to
1988         call lto_streamer_hooks.alloc_tree, if it exists.
1989         (lto_input_ts_decl_common_tree_pointers): Move reading of
1990         DECL_INITIAL to lto_streamer_read_tree.
1991         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
1992         (lto_streamer_read_tree): New.
1993         (lto_reader_init): Rename from lto_init_reader.
1994         Move initialization code to lto/lto.c.
1995         * lto-streamer-out.c (pack_value_fields): Call
1996         streamer_hooks.pack_value_fields if set.
1997         (lto_output_tree_ref): For tree nodes that are not normally indexable,
1998         call streamer_hooks.indexable_with_decls_p before giving up.
1999         (lto_output_ts_decl_common_tree_pointers): Move handling
2000         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2001         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2002         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
2003         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
2004         (lto_streamer_write_tree): New.
2005         (lto_output): Call lto_streamer_init directly.
2006         (lto_writer_init): Remove.
2007         * lto-streamer.c (streamer_hooks): New.
2008         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2009         instead of lto_preload_common_nodes.
2010         (lto_is_streamable): Move from lto-streamer.h
2011         (lto_streamer_hooks_init): New.
2012         (streamer_hooks): New.
2013         (streamer_hooks_init): New.
2014         * lto-streamer.h (struct output_block): Forward declare.
2015         (struct lto_input_block): Likewise.
2016         (struct data_in): Likewise.
2017         (struct bitpack_d): Likewise.
2018         (struct streamer_hooks): Declare.
2019         (streamer_hooks): Declare.
2020         (lto_streamer_hooks_init): Declare.
2021         (lto_streamer_write_tree): Declare.
2022         (lto_streamer_read_tree): Declare.
2023         (streamer_hooks_init): Declare.
2024         (lto_is_streamable): Move to lto-streamer.c
2026 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2028         * longlong.h (smul_ppmm): The resulting register pair contains the
2029         higher order word first.
2031 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2033         PR tree-optimization/46728
2034         * builtins.c (powi_table): Remove.
2035         (powi_lookup_cost): Remove.
2036         (powi_cost): Remove.
2037         (expand_powi_1): Remove.
2038         (expand_powi): Remove.
2039         (expand_builtin_pow_root): Remove.
2040         (expand_builtin_pow): Remove.
2041         (expand_builtin_powi): Eliminate handling of constant exponent.
2042         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
2044 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2046         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2048 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2050         * dce.c (reset_unmarked_insns_debug_uses): New.
2051         (delete_unmarked_insns): Skip debug insns.
2052         (prescan_insns_for_dce): Likewise.
2053         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2054         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2055         active reg can be found.
2056         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
2057         (convert_regs_1): Use it.
2059 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2061         * tree-pretty-print.c (dump_function_header): Add flags.
2062         Don't dump decl_uid with nouid.
2063         * tree-pretty-print.h (dump_function_header): Adjust.
2064         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2065         * passes.c (pass_init_dump_file): Pass dump_flags on.
2066         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2068 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2070         PR bootstrap/49270
2071         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2073 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
2075         PR tree-optimization/49243
2076         * calls.c (setjmp_call_p): Also check if fndecl has the
2077         returns_twice attribute.
2079 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2081         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2082         -ffast-math etc.
2084 2011-06-06  Richard Henderson  <rth@redhat.com>
2085             Georg-Johann Lay  <avr@gjlay.de>
2087         PR target/42210
2088         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2089         New predicates.
2090         * config/avr/avr.md ("insv"): New insn expander.
2091         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2092         "*insv.not.io", "*insv.reg"): New insns.
2094 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
2096         PR target/49285
2097         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2098         to nonimmediate_operand from memory_operand for the operand that is to
2099         be forced to memory by the expander.  Lose the constraints.
2101 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
2103         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2104         EH return when delayed branches are disabled.
2106 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
2108         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2109         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
2110         calculation.
2111         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2112         Simplify MODE_V1DF and MODE_V2SF handling.
2113         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2114         Simplify MODE_SF handling.
2116 2011-06-04  Jan Hubicka  <jh@suse.cz>
2118         PR tree-optimization/48893
2119         PR tree-optimization/49091
2120         PR tree-optimization/49179
2121         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2122         Bounds check.
2124 2011-06-04  Jan Hubicka  <jh@suse.cz>
2126         PR lto/48954
2127         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2128         bitmaps.
2130 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
2132         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2134 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
2136         PR target/49281
2137         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2138         to be strictly smaller than 1 << shiftcount.
2140 2011-06-04  Jan Hubicka  <jh@suse.cz>
2142         PR tree-optimize/48929
2143         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2144         of empty predicate.
2146 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
2148         PR debug/48333
2149         * calls.c (emit_call_1): Prefer the __builtin declaration of
2150         builtin functions.
2152 2011-06-03   Diego Novillo  <dnovillo@google.com>
2154         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2155         (lto_input_tree_pointers): Likewise.
2156         * lto-streamer-out.c (pack_value_fields): Likewise.
2157         (lto_output_tree_pointers): Likewise.
2158         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2159         and OPTIMIZATION_NODE.
2161 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2163         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2164         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2165         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2166         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2167         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2168         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2169         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2170         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2171         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2172         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2173         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2174         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2175         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2176         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2177         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2178         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2179         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2180         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2181         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2182         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2183         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2184         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2185         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2186         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2187         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2188         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2189         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2190         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2191         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2192         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2193         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2194         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2195         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2196         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2197         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2198         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2199         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2200         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2201         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2202         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2203         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2204         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2205         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2206         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2207         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2208         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2209         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2210         * system.h (MD_UNWIND_SUPPORT): Poison.
2211         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2212         * doc/tm.texi: Regenerate.
2213         * unwind-dw2.c: Include md-unwind-support.h instead of
2214         MD_UNWIND_SUPPORT.
2215         * config/ia64/unwind-ia64.c: Likewise.
2216         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2218 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
2220         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
2222 2011-06-03  Richard Henderson  <rth@redhat.com>
2223             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2225         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
2226         (sigill_hdlr): Correct insn, insn size.
2227         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
2229 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2231         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
2232         t-slibgcc-dummy.
2233         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
2234         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
2235         * config/mips/t-iris: Remove.
2236         * config/mips/t-irix6: New file.
2237         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
2239 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2241         * Makefile.in (LIB2ADDEHDEP): Remove.
2242         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
2243         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
2244         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
2245         * config/t-darwin (LIB2ADDEHDEP): Remove.
2246         * config/t-freebsd (LIB2ADDEHDEP): Remove.
2247         * config/t-linux (LIB2ADDEHDEP): Remove.
2249 2011-06-03  Diego Novillo  <dnovillo@google.com>
2251         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
2252         (lto_register_var_decl_in_symtab): Likewise.
2253         (lto_register_function_decl_in_symtab): Likewise.
2254         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
2255         logic to uniquify_nodes.
2257 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2259         * config/alpha/t-osf5: Remove.
2260         * config/alpha/t-osf-pthread: Remove.
2261         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
2262         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
2264 2011-06-03  Julian Brown  <julian@codesourcery.com>
2266         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
2267         (strongarm1110): Use strongarm tuning.
2268         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
2269         * config/arm/arm.c (arm_strongarm_tune): New.
2270         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2271         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
2272         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
2273         setting, using previous defaults or 1 for Cortex-A5.
2274         (arm_option_override): Set max_insns_skipped from current tuning.
2276 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
2278         * doc/install.texi (Options specification): Document --with-specs.
2280 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2282         * config/arm/neon.md (orndi3_neon): Actually split it.
2284 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
2286         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
2287         * var-tracking.c (reverse_op): Limite recurse depth to 5.
2289 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
2291         PR debug/47590
2292         * target.def (delay_sched2, delay_vartrack): New.
2293         * doc/tm.texi.in: Update.
2294         * doc/tm.texi: Rebuild.
2295         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
2296         * var-tracking.c (gate_handle_var_tracking): Likewise.
2297         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
2298         (bfin_flag_var_tracking): Drop.
2299         (output_file_start): Don't save and override flag_var_tracking.
2300         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
2301         (bfin_reorg): Test original variables.
2302         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2303         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
2304         (ia64_flag_var_tracking): Drop.
2305         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2306         (ia64_file_start): Don't save and override flag_var_tracking.
2307         (ia64_override_options_after_change): Ditto
2308         flag_schedule_insns_after_reload.
2309         (ia64_reorg): Test original variables.
2310         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
2311         (picochip_flag_var_tracking): Drop.
2312         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2313         (picochip_option_override): Don't save and override
2314         flag_schedule_insns_after_reload.
2315         (picochip_asm_file_start): Ditto flag_var_tracking.
2316         (picochip_reorg): Test original variables.
2317         * config/spu/spu.c (spu_flag_var_tracking): Drop.
2318         (TARGET_DELAY_VARTRACK): Define.
2319         (spu_var_tracking): New.
2320         (spu_machine_dependent_reorg): Call it.
2321         (asm_file_start): Don't save and override flag_var_tracking.
2323 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
2325         PR target/49163
2326         * config/sh/predicates.md (general_movsrc_operand): Return 0
2327         for memory and memory subreg of which address is an invalid
2328         indexed address for QI and HImode.
2329         (general_movdst_operand): Likewise.
2331 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
2333         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
2334         edges only, when there is a non-local label in the function.
2335         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
2337 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
2339         * config/i386/constraints.md (Y3): New register constraint.
2340         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
2341         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
2342         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
2343         *sse2_interleave_lowv2df.
2345 2011-06-02  Julian Brown  <julian@codesourcery.com>
2347         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
2348         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
2349         (arm_cortex_a5_tune): New.
2351 2011-06-02  Julian Brown  <julian@codesourcery.com>
2353         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
2354         * config/arm/arm.c (arm_default_branch_cost): New.
2355         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2356         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
2357         (arm_fa726_tune): Set branch_cost field using
2358         arm_default_branch_cost.
2359         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
2360         current_tune structure.
2361         * dojump.c (tm_p.h): Include file.
2363 2011-06-02  Julian Brown  <julian@codesourcery.com>
2365         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
2366         tuning.
2367         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
2368         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
2369         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
2370         field.
2371         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
2372         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
2373         (arm_fa726te_tune): Add prefer_constant_pool setting.
2374         (arm_v6t2_tune, arm_cortex_tune): New.
2375         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
2376         prefer_constant_pool setting.
2378 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
2380         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
2381         switch statement.
2382         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
2383         (*movdf_internal) <case 6,7,8>: Ditto.
2385         * config/i386/constraints.md (Y4): New register constraint.
2386         * config/i386/sse.md (vec_set<mode>_0): Merge with
2387         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
2388         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
2389         *vec_extractv2di_1_sse.
2390         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
2391         and *vec_concatv2di_rex64_sse.
2393 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
2395         PR target/48807
2396         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
2397         of cgraph_local_info for null before attempting to use it.
2399 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
2401         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
2402         (current_function_dynamic_alloc_count): Delete.
2403         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
2404         (expand_builtin_nonlocal_goto): Remove obsolete comment.
2405         (expand_builtin_update_setjmp_buf): Remove dead code.
2406         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
2407         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
2408         support.
2409         * function.c (instantiate_virtual_regs): Likewise.
2410         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
2411         for a block with a single abnormal incoming edge.
2412         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
2413         (SETJMP_VIA_SAVE_AREA): Delete.
2414         * config/sparc/sparc-protos.h (load_got_register): Declare.
2415         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2416         (load_got_register): Make global.
2417         (sparc_frame_pointer_required): Add 'static'.
2418         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
2419         (sparc_builtin_setjmp_frame_value): New function.
2420         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
2421         (save_stack_nonlocal): New expander.
2422         (restore_stack_nonlocal): Likewise.
2423         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
2424         (nonlocal_goto_internal): New insn.
2425         (goto_handler_and_restore): Delete.
2426         (builtin_setjmp_setup): Likewise.
2427         (do_builtin_setjmp_setup): Likewise.
2428         (setjmp): Likewise.
2429         (builtin_setjmp_receiver): New expander.
2431 2011-06-01  David Li  <davidxl@google.com>
2433         PR middle-end/49261
2434         * tree-pretty-print.c (dump_function_header): Format cleanup.
2436 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
2438         PR target/49238
2439         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
2440         needed when original operands are used for msw_skip comparison.
2442 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
2444         PR debug/49250
2445         * var-tracking.c (add_uses, add_stores): Don't call
2446         cselib_subst_to_values on ENTRY_VALUE.
2448 2011-06-01  Diego Novillo  <dnovillo@google.com>
2450         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
2451         output_record_start with LTO_null instead of output_zero.
2452         (lto_output_ts_binfo_tree_pointers): Likewise.
2453         (lto_output_tree): Likewise.
2454         (output_eh_try_list): Likewise.
2455         (output_eh_region): Likewise.
2456         (output_eh_lp): Likewise.
2457         (output_eh_regions): Likewise.
2458         (output_bb): Likewise.
2459         (output_function): Likewise.
2460         (output_unreferenced_globals): Likewise.
2461         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
2462         instead of NUM_TREE_CODES.
2463         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
2464         (lto_output_int_in_range): Change << to >> when shifting VAL.
2466 2011-06-01  Diego Novillo  <dnovillo@google.com>
2468         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
2469         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
2471 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
2473         PR target/45074
2474         * optabs.h (valid_multiword_target_p): Declare.
2475         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
2476         doing multi-word operations.
2477         * optabs.c (expand_binop): Likewise.
2478         (expand_doubleword_bswap): Likewise.
2479         (expand_absneg_bit): Likewise.
2480         (expand_unop): Likewise.
2481         (expand_copysign_bit): Likewise.
2482         (multiword_target_p): New function.
2484 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
2486         PR rtl-optimization/48830
2487         PR rtl-optimization/48808
2488         PR rtl-optimization/48792
2489         * reload.c (push_reload): Check contains_reg_of_mode.
2490         * reload1.c (strip_paradoxical_subreg): New function.
2491         (gen_reload_chain_without_interm_reg_p): Use it to handle
2492         paradoxical subregs.
2493         (emit_output_reload_insns, gen_reload): Likewise.
2495 2011-06-01  David Li  <davidxl@google.com>
2497         * predict.c : Change pass name
2498         * ipa.c: Ditto.
2499         * dce.c: Ditto.
2500         * tree-profile.c: Ditto.
2501         * except.c: Ditto.
2503 2011-06-01  David Li  <davidxl@google.com>
2505         * tree-pretty-print.c (dump_function_header): New function.
2506         * final.c (rest_of_clean_state): Use header dumper.
2507         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
2508         * passes.c (pass_init_dump_file): Use header dumper.
2510 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
2512         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
2513         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
2514         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
2515         New functions.
2516         (mem_loc_descriptor): Use them.
2518         * var-tracking.c (create_entry_value): New function.
2519         (vt_add_function_parameter): Use it.
2521 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2523         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
2524         Include <signal.h>, <ucontext.h>.
2525         (sigill_caught): Define.
2526         (sigill_hdlr): New function.
2527         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
2528         insns can be executed.
2529         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
2530         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
2532 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2534         * config/t-slibgcc-darwin: Move to ...
2535         * config/t-slibgcc-dummy: ... this.  Clarify comments.
2536         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
2537         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
2538         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
2539         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
2540         Remove i386/t-crtstuff from tmake_file.
2541         (i[34567]86-*-solaris2*): Remove t-svr4,
2542         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
2543         t-slibgcc-dummy.
2544         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
2545         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
2546         sparc/t-crtfm from tmake_file.
2547         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
2548         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
2549         Remove extra_parts.
2550         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
2551         * config/i386/t-nwld (SHLIB_LINK): Remove.
2552         * config/i386/t-rtems-i386: Rename to ...
2553         * config/i386/t-rtems: ... this.
2554         ($(T)crti.o, $(T)crtn.o): Remove.
2555         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
2556         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
2557         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
2558         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
2559         EXTRA_MULTILIB_PARTS): Remove.
2560         * config/sparc/t-sol2-64: Likewise.
2561         * config/sparc/t-sol2: Remove.
2562         * config/sparc/t-crtin: Remove.
2563         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
2564         * config/i386/gmon-sol2.c: Remove.
2565         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
2566         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
2567         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
2568         * config/i386/sol2-gc1.asm: Remove.
2569         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
2570         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
2571         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
2572         * config/t-slibgcc-sld: Remove.
2574 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
2576         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
2577         base_type_for_mode with op_mode instead of mode.
2579 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
2581         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
2582         Cortex-A15.
2583         * config/arm/arm-tune.md: Regenerate.
2584         * config/arm/arm-tables.opt: Regenerate.
2585         * config/arm/arm.c (FL_DIV): Rename...
2586         (FL_THUMB_DIV): ... to this.
2587         (FL_ARM_DIV): Define.
2588         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
2589         (arm_arch_hwdiv): Remove.
2590         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
2591         (arm_issue_rate): Add cortexr5.
2592         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
2593         __ARM_ARCH_EXT_IDIV__.
2594         (TARGET_IDIV): Define.
2595         (arm_arch_hwdiv): Remove.
2596         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
2597         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
2598         (divsi3, udivsi3): New patterns.
2599         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
2600         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
2602 2011-06-01  Martin Jambor  <mjambor@suse.cz>
2604         * ipa-utils.c (ipa_dfs_info): New field scc_no.
2605         * ipa-utils.c (searchc): Set scc_no.
2607 2011-06-01  Martin Jambor  <mjambor@suse.cz>
2609         * ipa-utils.c (searchc_env): New field allow_overwritable.
2610         (searchc): do not ignore edges to overwritable nodes if indicated
2611         by env->allow_overwritable.
2612         (ipa_reduced_postorder): Set env.allow_overwritable.
2614 2011-06-01  Richard Guenther  <rguenther@suse.de>
2616         * tree.c (free_lang_data): Do not reset boolean_type_node nor
2617         char_type_node.
2618         * lto-streamer.c (lto_record_common_node): Take node pointer,
2619         do not register types.
2620         (lto_preload_common_nodes): Explicitly skip preloading nodes
2621         that differ between frontends.
2623 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
2625         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
2626         NON_FLOAT_REGS.
2628 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
2630         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
2631         parameter value for dump. Dump cost on outermost call only.
2632         (rs6000_memory_move_cost): Dump cost on outermost call only.
2634 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
2636         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
2637         DW_OP_GNU_convert ops.
2639         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
2640         cselib_preserve_constants.
2641         (cselib_lookup_1): If cselib_preserve_constants,
2642         a new VALUE is being created for REG and there is a VALUE for the
2643         same register in wider mode, add another loc with lowpart SUBREG of
2644         the wider VALUE.
2645         (cselib_subst_to_values): Handle ENTRY_VALUE.
2646         * var-tracking.c  (replace_expr_with_values): Return NULL for
2647         ENTRY_VALUE too.
2648         * dwarf2out.c (convert_descriptor_to_signed): New function.
2649         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
2650         instead of two shifts.
2651         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
2652         the right mode if needed.
2653         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
2654         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
2655         convert_descriptor_to_signed.
2656         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
2657         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
2659         PR target/48688
2660         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
2662 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
2664         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
2665         of X87MODEI12 and SWI48x instead of SSEMODEI24.
2666         (SWI248x): New mode iterator, rename from X87MODEI.
2667         (X87MODEI): Remove mode iterator.
2668         (X87MODEI12): Ditto.
2669         (SSEMODEI24): Ditto.
2671 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
2673         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
2674         * doc/invoke.texi: Document max-vartrack-expr-depth.
2675         * var-tracking.c (EXPR_DEPTH): New.
2676         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
2678 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
2680         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
2681         * config/i386/sse.md: Add n to negated FMA pattern names.
2683 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
2685         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
2687 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
2689         * gengtype-state.c (read_state_params_structs): Initialize previous.
2691 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
2693         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
2694         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
2696 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
2698         * config/i386/i386.md (*movtf_internal): Avoid allocating general
2699         registers.  Penalize F*r->o alternative to prevent partial memory
2700         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
2701         CONST_DOUBLE immediates when optimizing function for size.  Do not move
2702         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2703         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
2704         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
2705         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
2706         alternatives.
2707         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
2709         (fp_register_operand splitters): Use fp_register_operand
2710         constraint.  Do not use FP_REG_P in insn condition.
2711         (any_fp_register_operand splitters): Use any_fp_register_operand
2712         constraint.  Do not use ANY_FP_REG_P in insn condition.
2714 2011-05-31  Jan Hubicka  <jh@suse.cz>
2716         * cgraph.h (cgraph_inline_failed_t): Give enum a name
2717         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
2718         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
2719         (lto_output_edge): Use output_enum and var_len_unsigned.
2720         (lto_output_varpool_node): Likewise.
2721         (input_overwrite_node): Do not take resolution parameter;
2722         extract it from a bitpack.
2723         (input_node): Do not read resolution; use input_enum and
2724         var_len_unsigned.
2725         (input_varpool_node): Likewise.
2726         (input_edge): Likewise.
2727         (input_cgraph_1): Likewise.
2729 2011-05-31  Richard Guenther  <rguenther@suse.de>
2731         * gimple.c (gimple_register_canonical_type): Do not register
2732         any types via gimple_register_type.
2734 2011-05-31  Jan Hubicka  <jh@suse.cz>
2736         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
2737         of thunks.
2739 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
2741         PR rtl-optimization/49235
2742         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
2743         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
2745 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
2747         PR tree-optimization/49093
2748         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2749         data references.
2751 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
2753         PR debug/49047
2754         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
2755         for concrete functions containing the code of cloned functions.
2757 2011-05-31  Richard Guenther  <rguenther@suse.de>
2759         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
2760         to ...
2761         (forward_propagate_into_comparison_1): ... this.
2762         (forward_propagate_comparison): Rename to ...
2763         (forward_propagate_into_comparison): ... this.  Split out
2764         real forward propagation code to ...
2765         (forward_propagate_comparison): ... this.
2766         (forward_propagate_into_gimple_cond): Remove looping.
2767         (forward_propagate_into_cond): Likewise.
2768         (simplify_not_neg_expr): Return whether we have done something.
2769         (simplify_gimple_switch): Likewise.
2770         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
2771         (ssa_forward_propagate_and_combine): ... this.  Re-structure
2772         to do a forward forward-propagation walk on BBs and a backward
2773         stmt combining walk on BBs.  Consistently re-scan changed statements.
2774         (pass_forwprop): Adjust.
2776 2011-05-30  Ian Lance Taylor  <iant@google.com>
2778         * godump.c (go_format_type): Correct length of name added to
2779         obstack for anonymous field.
2781 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
2783         PR target/49186
2784         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
2785         part of the second operand is 0.
2787 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
2789         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
2790         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
2791         to memory for !TARGET_MEMORY_MISMATCH_STALL.
2792         (*movdf_internal_rex64): Do not penalize F->r alternative.
2793         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
2794         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
2795         when optimizing function for size.  Do not move CONST_DOUBLEs
2796         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2797         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
2798         SUBREGs.  Do not check for MEM_P operands in the insn condition,
2799         check for ANY_FP_REGNO_P instead.
2800         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
2801         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
2802         function for speed.
2803         * config/i386/i386.c (ix86_option_override_internal): Do not
2804         set TARGET_INTEGER_DFMODE_MOVES here.
2806 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2808         PR target/49168
2809         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
2811 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
2813         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
2814         DW_TAG_rvalue_reference_type even for
2815         -gdwarf-4 -fno-debug-types-section.
2817 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2819         PR tree-optimization/46728
2820         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
2821         (build_and_insert_binop): New.
2822         (gimple_expand_builtin_pow): Reorder args for
2823         build_and_insert_call; use build_and_insert_binop; add more
2824         optimizations for fractional exponents.
2826 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
2828         PR bootstrap/49190
2830         Revert:
2831         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
2833         * tree.h (struct tree_identifier): Inherit from tree_typed, not
2834         tree_common.
2835         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2836         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2837         TS_BASE instead of TS_COMMON.
2838         * varasm.c (assemble_name): Remove assert.
2840 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
2842         * config.gcc: Keep obselete list sorted.
2844 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
2845             Eric Botcazou  <ebotcazou@adacore.com>
2847         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
2848         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
2849         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
2850         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
2851         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
2853 2011-05-30  Richard Guenther  <rguenther@suse.de>
2855         * gimple.c (gimple_types_compatible_p_1): Compare record
2856         and union type members properly.
2858 2011-05-30  Richard Guenther  <rguenther@suse.de>
2860         PR tree-optimization/49210
2861         * ipa-split.c (split_function): Care for the case where the call
2862         result is not trivially convertible to the result holding variable.
2864 2011-05-30  Richard Guenther  <rguenther@suse.de>
2866         PR tree-optimization/49218
2867         * tree-vrp.c (adjust_range_with_scev): Properly check whether
2868         overflow occured.
2870 2011-05-30  Richard Guenther  <rguenther@suse.de>
2872         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
2873         New function split out from ...
2874         (forward_propagate_into_gimple_cond): ... here.  Adjust.
2875         (forward_propagate_into_cond): Likewise.
2876         (forward_propagate_comparison): Also propagate into
2877         comparisons on assignment RHS.  Change return value to
2878         behave similar to forward_propagate_into_cond.
2879         (tree_ssa_forward_propagate_single_use_vars): Handle
2880         strict-overflow warnings properly for forward_propagate_comparison.
2882 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2884         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
2885         from plugin linker.
2886         * configure: Regenerate.
2888 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
2890         PR tree-optimization/49199
2891         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
2892         non-reduction operands are either defined in the loop or by induction.
2894 2011-05-29  Xinliang David Li  <davidxl@google.com>
2896         * opts-global.c (handle_common_deferred_options): Handle new options.
2897         * passes.c (register_one_dump_file): Call register_pass_name.
2898         (execute_one_pass): Check explicit enable/disable flag.
2899         (passr_hash): New function.
2900         (passr_eq): Ditto.
2901         (register_pass_name): Ditto.
2902         (get_pass_by_name): Ditto.
2903         (pass_hash): Ditto.
2904         (pass_eq): Ditto.
2905         (enable_pass): Ditto.
2906         (disable_pass): Ditto.
2907         (is_pass_explicitly_enabled_or_disabled): Ditto.
2909 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
2911         * config/i386/i386.md (*movoi_internal_avx): Use
2912         standard_sse_constant_opcode for alternative 0.
2913         (*movti_internal_sse): Ditto.
2914         (*movti_internal_rex64): Use standard_sse_constant_opcode for
2915         alternative 2.
2916         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
2917         sselog1 type moves.
2918         (*movsi_internal): Ditto.
2919         (*movdi_internal): Ditto.  Add ssecvt type moves.
2921 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
2923         PR target/48830
2924         * rtlanal.c (simplify_subreg_regno): Adjust comment.
2926 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
2928         PR rtl-optimization/49095
2929         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
2930         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
2932 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
2934         PR target/43995
2935         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
2936         recurse_p argument.  Only follow register copies if it is set,
2937         and prevent mips_find_pic_call_symbol from recursing.
2938         (mips_find_pic_call_symbol): Add a recurse_p argument.
2939         Pass it to mips_pic_call_symbol_from_set.
2940         (mips_annotate_pic_calls): Update accordingly.
2942 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
2944         * emit-rtl.c (try_split): Use a loop to search for
2945         NOTE_INSN_CALL_ARG_LOCATIONs.
2947 2011-05-29  Richard Guenther  <rguenther@suse.de>
2949         PR tree-optimization/49217
2950         * ipa-pure-const.c (propagate_pure_const): Fix typos.
2952 2011-05-28  Jan Hubicka  <jh@suse.cz>
2954         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
2955         length.
2956         (string_slot_free): Remove
2957         (create_output_block): Initialize obstack.
2958         (destroy_output_block): Free obstack.
2959         (lto_string_index): Add PERSISTENT parameter; do not duplicate
2960         the string unless it needs to be added into the hash.
2961         (lto_output_string_with_length): Add persistent attribute;
2962         handle NULL strings.
2963         (lto_output_string): Add PERSISTENT parameter.
2964         (output_string_cst, output_identifier): Simplify.
2965         (lto_output_location_bitpack): Update.
2966         (lto_output_builtin_tree): Update.
2967         * lto-streamer.h (struct output_block): Add obstack.
2968         (lto_output_string, lto_output_string_with_length): Remove
2969         declarations; functions are static now.
2971 2011-05-28  Jan Hubicka  <jh@suse.cz>
2973         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
2974         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
2975         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
2976         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
2977         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
2978         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
2979         unpack_ts_decl_with_vis_value_fields,
2980         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
2981         lto_get_builtin_tree): Use enum and variable length i/o.
2982         * basic-block.h (profile_status_d): Add PROFILE_LAST.
2983         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
2984         New functions.
2985         (bp_pack_enum, bp_unpack_enum): New macros.
2987 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
2989         * genrecog.c: Remove redundant forward declarations.
2991 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
2993         * config.gcc: Deprecate mips*-*-openbsd*.
2995 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
2997         PR bootstrap/49195
2998         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
2999         for match_op_dup.
3001 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
3003         PR middle-end/48981
3004         * gengtype.c (vec_prefix_type): New function.
3005         (note_def_vec): Use vec_prefix_type and change the length
3006         attribute to be based on the prefix.
3007         * vec.c: Include coretypes.h before vec.h.
3008         (struct vec_prefix): Remove.
3009         (vec_gc_p_reserve): Change the offsetof to sizeof.
3010         (vec_gc_p_reserve_exact): Likewise.
3011         (vec_heap_p_reserve): Likewise.
3012         (vec_heap_p_reserve_exact): Likewise.
3013         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3014         (vec_stack_p_reserve): Change the offsetof to sizeof.
3015         (vec_stack_p_reserve_exact): Likewise.
3016         * vec.h (struct vec_prefix): New struct definition.
3017         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3018         (VEC_T_GTY(T,B)): Likewise.
3019         (DEF_VEC_FUNC_P(T)): Use prefix field.
3020         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3021         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3023 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3025         PR tree-optimization/46728
3026         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3027         (powi_as_mults): Add gimple_set_location.
3028         (build_and_insert_call): New.
3029         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3030         0.5, 0.25, 0.75, 1./3., or 1./6.
3032 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
3034         * doc/contrib.texi: Update copyright years.
3035         (Contributors): Add Zdenek Sojka.
3037 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
3039         * c-decl.c (c_push_function_context): Copy the current statement
3040         list stack.
3041         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3042         (finish_struct): Call building_stmt_list_p instead of checking
3043         cur_stmt_list.
3044         * c-parser.c (c_parser_postfix_expression): Likewise.
3045         * c-typeck.c (c_end_compound_stmt): Likewise.
3046         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3047         * tree-iterator.c (stmt_list_cache): Change to a VEC.
3048         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3049         (free_stmt_list): Likewise.
3050         * tree.h (struct tree_statement_list): Include typed_tree instead
3051         of tree_common.
3052         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3053         as TS_TYPED instead of TS_COMMON.
3055 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3056             Uros Bizjak  <ubizjak@gmail.com>
3058         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3059         (HAVE_AS_IX86_TLSGDPTL): Define.
3060         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3061         (HAVE_AS_IX86_TLSLDMPLT): Define.
3062         * configure: Regenerate.
3063         * config.in: Regenerate.
3064         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3065         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3066         TARGET_SUN_TLS, use @tlsgdplt or @plt.
3067         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3068         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3069         @tlsldmplt or @plt.
3070         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3072 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
3074         * sched-int.h (struct _haifa_deps_insn_data): New members cond
3075         and reverse_cond.
3076         (INSN_COND, INSN_REVERSE_COND): New macros.
3077         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3078         once.
3079         (sched_get_condition_with_rev): Cache the results, and look them up
3080         if possible.
3081         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3082         are clobbered by the current insn.
3083         * target.def (exposed_pipline): New sched data hook.
3084         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3085         * doc/tm.texi: Regenerate.
3087 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3089         PR tree-optimization/49170
3090         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
3091         sincos or cexp.
3093 2011-05-27  Richard Guenther  <rguenther@suse.de>
3095         PR middle-end/49189
3096         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3097         of comparisons.
3099 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
3101         * haifa-sched.c (sched_scan_info): Remove.
3102         (schedule_block): Call sched_extend_luids rather than sched_init_luids
3103         with NULL args.
3104         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3105         Remove functions.
3106         (sched_scan): Remove.
3107         (sched_extend_luids): Renamed from luids_extend_insn and no longer
3108         static.  All callers changed.
3109         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3110         static.  All callers changed.
3111         (sched_init_luids): Remove all arguments except the first.  All
3112         callers changed.  Don't use sched_scan.
3113         (haifa_init_h_i_d): Likewise.
3114         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3115         manually rather than using sched_init_luids.  Likewise with
3116         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3117         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3118         rather than sched_init_luids with NULL args.
3119         * sel-sched-ir.c (new_insns): Remove variable.
3120         (sched_scan): New static function, previously in haifa-sched.c.  Remove
3121         all arguments but the first two; all callers changed.
3122         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3123         rather than sched_init_luids.
3124         (sel_init_bbs): Remove second argument.  All callers changed.
3125         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3126         with NULL arguments.
3127         (create_insn_rtx_from_pattern): Likewise.
3128         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3129         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3130         (sched_init_insn_luid, sched_extend_luids): Declare.
3131         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3132         declarations.
3134 2011-05-27  Richard Guenther  <rguenther@suse.de>
3136         PR middle-end/49177
3137         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3138         A CMP B ? (T) true : (T) false for non-integral types T again.
3140 2011-05-27  Jan Hubicka  <jh@suse.cz>
3142         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3143         so 0 means NULL string.
3144         (lto_output_string_with_length): ... here.
3145         (lto_output_string, output_string_cst, output_identifier): Update
3146         handling of NULL strings.
3147         (lto_output_location_bitpack): New function.
3148         (lto_output_location): Use it.
3149         (lto_output_tree_ref): Use output_record_start.
3150         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3151         len values.
3152         * lto-streamer-in.c (string_for_index): Break out from ...; offset
3153         values by 1.
3154         (input_string_internal): ... here;
3155         (input_string_cst, input_identifier, lto_input_string): Update handling
3156         of NULL strings.
3157         (lto_input_location_bitpack): New function
3158         (lto_input_location): Use it.
3159         (unpack_ts_type_common_value_fields): Pack align & alias in var len
3160         values.
3161         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3162         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3163         (bp_pack_value): Sanity check the value range.
3164         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3165         New functions.
3166         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3167         New functions.
3169 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
3171         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3172         call_arg_location instructions down the floor.
3174 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
3176         PR rtl-optimization/49154
3177         * ira.c (setup_pressure_classes): Process class without sublcasses
3178         as a candidate for pressure classes.
3180 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
3182         PR rtl-optimization/48575
3183         * genrecog.c (position_type): New enum.
3184         (position): New structure.
3185         (decision): Use position structure instead of a string.
3186         (root_pos, peep2_insn_pos_list): New variables.
3187         (next_position, compare_positions): New functions.
3188         (new_decision): Use position structures instead of strings.
3189         (maybe_both_true): Likewise.
3190         (change_state): Likewise.
3191         (write_tree): Likewise.
3192         (make_insn_sequence): Likewise.
3194 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3196         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3197         TS_BASE instead of TS_COMMON.
3198         (find_decls_types_r): Check for TS_TYPED structure before looking at
3199         TREE_TYPE.
3200         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3201         Add chain field.
3202         (BLOCK_CHAIN): Use new chain field.
3204 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
3206         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3207         moves expensive on Power7 also.
3209 2011-05-26  Richard Guenther  <rguenther@suse.de>
3211         * fold-const.c (fold_unary_loc): Remove bogus code.
3213 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3215         * tree.h (struct tree_identifier): Inherit from tree_typed, not
3216         tree_common.
3217         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3218         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3219         TS_BASE instead of TS_COMMON.
3220         * varasm.c (assemble_name): Remove assert.
3222 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
3224         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
3225         substituted first.
3226         * libgcc-std.ver: Delete file.
3228 2011-05-26  Richard Guenther  <rguenther@suse.de>
3230         PR tree-optimization/48702
3231         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
3232         only when we know the base address is within bounds.
3233         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
3234         assume the base address of TARGET_MEM_REFs is in bounds.
3236 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3238         PR target/49099
3239         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
3240         declaration in TARGET_SOLARIS.
3242 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
3244         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
3245         The instruction is then expanded explicitly.
3246         (supported_compare): Callable instruction.
3247         (compare): Likewise.
3249 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
3251         PR c++/49165
3252         * gimplify.c (shortcut_cond_r): Don't special case
3253         COND_EXPRs if they have void type on one of their arms.
3255 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
3257         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
3258         to reduce duplication, and to achieve a slightly more logical order
3259         of operations.
3261 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
3263         PR tree-optimization/49161
3264         * tree-vrp.c (struct case_info): New type.
3265         (compare_case_labels): Sort case_info structs instead of
3266         trees, and not primarily by CASE_LABEL uids but by
3267         label_for_block indexes.
3268         (find_switch_asserts): Put case labels into struct case_info
3269         array instead of TREE_VEC, adjust sorting, compare label_for_block
3270         values instead of CASE_LABELs.
3272 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3274         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
3275         ("orndi3_neon"): Likewise.
3276         ("bic<mode>3_neon"): Likewise.
3278 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
3280         PR tree-optimization/49038
3281         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
3282         Ensure at least one epilogue iteration if required by data
3283         accesses with gaps.
3284         * tree-vectorizer.h (struct _loop_vec_info): Add new field
3285         to mark loops that require peeling for gaps.
3286         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
3287         (vect_get_known_peeling_cost): Take peeling for gaps into
3288         account.
3289         (vect_transform_loop): Generate epilogue if required by data
3290         access with gaps.
3291         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
3292         loop as requiring an epilogue if there are gaps in the end of
3293         the strided group.
3295 2011-05-25  Ian Lance Taylor  <iant@google.com>
3297         * godump.c (go_format_type): Output the first field with a usable
3298         Go type, if any.
3300 2011-05-25  Ian Lance Taylor  <iant@google.com>
3302         * godump.c (go_format_type): Check for invalid type names, pointer
3303         target types, and struct field types.
3305 2011-05-25  Jason Merrill  <jason@redhat.com>
3307         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
3309 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
3311         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
3313 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3315         * config/i386/i386.md (*movqi_extv_1)): Put back
3316         "register_operand" check in "type" calculation.
3317         (*movqi_extzv_2): Likewise.
3319 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3321         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
3323 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
3325         PR bootstrap/49160
3326         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
3327         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
3328         __divxc3, __divtc3): Wrap definitions in #ifndef.
3330 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3332         PR target/49142
3333         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
3334         "register_operand" check and replace q_regs_operand with
3335         QIreg_operand in "type" calculation.
3336         (*movqi_extv_1): Likewise.
3337         (*movqi_extzv_2_rex64): Likewise.
3338         (*movqi_extzv_2): Likewise.
3340         * config/i386/predicates.md (QIreg_operand): New.
3342 2011-05-25  Richard Guenther  <rguenther@suse.de>
3344         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
3345         type-based offset disambiguation, streamline MEM_REF and
3346         TARGET_MEM_REF handling.
3348 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3350         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
3351         (bdesc_special_args): Add pause intrinsic.
3353         * config/i386/i386.md (UNSPEC_PAUSE): New.
3354         (pause): Likewise.
3355         (*pause): Likewise.
3356         * config/i386/ia32intrin.h (__pause): Likewise.
3358         * doc/extend.texi (X86 Built-in Functions): Add documentation for
3359         pause intrinsic.
3361 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3363         PR tree-optimization/46728
3364         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
3365         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
3367 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
3369         * tree.h (struct tree_exp): Inherit from struct tree_typed.
3370         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
3371         instead of TS_COMMON.
3373 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
3375         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
3376         LIBGCC2_GNU_PREFIX is defined.
3377         (__N): New macro.
3378         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
3379         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
3380         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
3381         __clz_tab): Define using __N.
3382         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
3383         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
3384         * target.def (libfunc_gnu_prefix): New hook.
3385         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
3386         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
3387         * doc/tm.texi: Regenerate.
3388         * system.h (LIBGCC2_GNU_PREFIX): Poison.
3389         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
3390         account.
3391         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
3392         (init_optabs): Likewise for the bswap libfuncs.
3393         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
3394         and divide.
3395         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
3396         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
3397         * libgcc-std.ver: Remove.
3398         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
3399         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
3400         libgcc-std.ver.
3401         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3402         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
3403         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
3404         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
3405         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
3406         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3407         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3408         * config/fixed-bit.h (FIXED_OP): Define differently depending on
3409         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
3410         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
3412 2011-05-25  Jan Hubicka  <jh@suse.cz>
3414         * lto-streamer-out.c (output_record_start): Use lto_output_enum
3415         (lto_output_tree): Use output_record_start.
3416         * lto-streamer-in.c (input_record_start): Use lto_input_enum
3417         (lto_get_pickled_tree): Use input_record_start.
3418         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
3419         (lto_value_range_error): New function.
3420         * lto-streamer.h (lto_value_range_error): Declare.
3421         (lto_output_int_in_range, lto_input_int_in_range): New functions.
3422         (lto_output_enum, lto_input_enum): New macros.
3424 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3426         * common.opt (flag_stack_usage_info): New variable.
3427         (-Wstack-usage): New option.
3428         * doc/invoke.texi (Warning options): Document -Wstack-usage.
3429         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
3430         <OPT_fstack_usage>: Likewise.
3431         * toplev.c (output_stack_usage): Handle -Wstack-usage.
3432         * calls.c (expand_call): Test flag_stack_usage_info variable instead
3433         of flag_stack_usage.
3434         (emit_library_call_value_1): Likewise.
3435         * explow.c (allocate_dynamic_stack_space): Likewise.
3436         * function.c (instantiate_virtual_regs ): Likewise.
3437         (prepare_function_start): Likewise.
3438         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
3439         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
3440         * config/arm/arm.c (arm_expand_prologue): Likewise.
3441         (thumb1_expand_prologue): Likewise.
3442         * config/avr/avr.c (expand_prologue): Likewise.
3443         * config/i386/i386.c (ix86_expand_prologue): Likewise.
3444         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
3445         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
3446         * config/mips/mips.c (mips_expand_prologue): Likewise.
3447         * config/pa/pa.c (hppa_expand_prologue): Likewise.
3448         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3449         * config/s390/s390.c (s390_emit_prologue): Likewise.
3450         * config/sh/sh.c (sh_expand_prologue): Likewise.
3451         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3452         * config/spu/spu.c (spu_expand_prologue): Likewise.
3454 2011-05-25  Richard Guenther  <rguenther@suse.de>
3456         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
3457         (gimple_canonical_types_compatible_p): Likewise.
3459 2011-05-25  Jan Hubicka  <jh@suse.cz>
3461         PR middle-end/49062
3462         * ipa.c (function_and_variable_visibility): Only add to same
3463         comdat group list if DECL_ONE_ONLY.
3465 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
3467         PR rtl-optimization/49014
3468         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
3470 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
3472         PR target/49128
3473         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3475 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
3477         PR rtl-optimization/48757
3478         * ira-build.c (loop_with_eh_edge_p): Rename to
3479         loop_with_complex_edge_p, check edges on complexity, make function
3480         conditional.
3481         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
3482         conditional.
3484 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3486         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
3487         force flag_ira_share_save_slots to 0.
3489 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3491         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
3492         (vt_initialize): Set PROLOGUE_BB unconditionally.
3493         Add block comment about CFA_BASE_RTX machinery.
3494         Reset FP_CFA_OFFSET to -1 on all invalid paths.
3495         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
3497 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
3499         PR objc/48187
3500         * c-parser.c (c_parser_objc_class_instance_variables): More robust
3501         parsing of syntax error in ObjC instance variable lists.  In
3502         particular, avoid an infinite loop if there is a stray ']'.
3503         Updated error message.
3505 2011-05-24  Ian Lance Taylor  <iant@google.com>
3507         * godump.c (go_define): Don't accept a string immediately after
3508         another operand.
3510 2011-05-24  Ian Lance Taylor  <iant@google.com>
3512         * godump.c (struct godump_container): Add invalid_hash field.
3513         (go_format_type): Return false if type is found in invalid_hash.
3514         (go_output_typedef): Add invalid type to invalid_hash.
3515         (go_finish): Create and delete invalid_hash.
3517 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3519         PR tree-optimization/46728
3520         * tree-ssa-math-opts.c (powi_table): New.
3521         (powi_lookup_cost): New.
3522         (powi_cost): New.
3523         (powi_as_mults_1): New.
3524         (powi_as_mults): New.
3525         (gimple_expand_builtin_powi): New.
3526         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
3527         (gate_cse_sincos): Remove sincos/cexp restriction.
3529 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3531         PR target/3746
3532         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
3533         mips-tdump native.
3534         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
3535         * mips-tdump.c: Likewise.
3537 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3539         PR target/49128
3540         * config/i386/driver-i386.c (host_detect_local_cpu): Always
3541         add -mno-XXX.  Handle FMA.
3543 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
3545         PR rtl-optimization/48633
3546         * ira-build.c (loop_with_eh_edge_p): New function.
3547         (mark_loops_for_removal): Use it.
3549 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
3551         PR rtl-optimization/48971
3552         * ira.c (setup_pressure_classes): Don't check register move cost
3553         for classes with one registers.  Don't add pressure class if there
3554         is a pressure class with the same available hard registers.
3555         Check contains_reg_of_mode.  Fix a typo in collecting
3556         temp_hard_regset.  Ignore hard registers not belonging to a class.
3558 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
3560         PR target/49133
3561         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
3563 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3564             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3566         PR gcov-profile/48845
3567         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
3569 2011-05-24  Richard Guenther  <rguenther@suse.de>
3571         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
3572         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
3573         (gimple_types_compatible_p_1): Adjust.
3574         (iterative_hash_canonical_type): Do not bother about complete vs.
3575         incomplete types.
3576         (gimple_canonical_types_compatible_p): Likewise.
3578 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3580         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
3582 2011-05-24  Richard Guenther  <rguenther@suse.de>
3584         PR bootstrap/49078
3585         * gimple.c (gimple_register_canonical_type): Revert
3586         previous change.
3587         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
3588         does not for a tree for the case where it matters.  Cache
3589         pointer-type alias-sets.
3591 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
3593         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
3594         (OBJS): Remove options.o, opts-common.o and prefix.o.
3595         (OBJS-libcommon-target): New.
3596         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
3597         (BACKEND): Include libcommon-target.a.
3598         (MOSTLYCLEANFILES): Include libcommon-target.a.
3599         (libcommon-target.a): New.
3600         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
3601         prefix.o.
3603 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
3605         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
3606         parts of output shared with the driver.
3607         * optc-gen.awk: Don't generate parts of output not shared with the
3608         driver.
3609         * opth-gen.awk: Remove GCC_DRIVER conditionals.
3610         * doc/options.texi (SourcerInclude): Mention options-save.c.
3611         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
3612         (OBJS): Add options-save.o.
3613         (options-save.c, options-save.o): New.
3614         (options.o): Update dependencies.
3615         (gcc-options.o): Remove.
3616         (mostlyclean): Remove options-save.c.
3618 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
3620         PR debug/49032
3621         * dbxout.c: Include cgraph.h.
3622         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
3623         and without value expr, return NULL if no varpool node exists for
3624         it or if it is not needed.
3625         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
3627         PR c/49120
3628         * c-decl.c (start_decl): Convert expr to void_type_node.
3630 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
3632         PR rtl-optimization/48826
3633         * emit-rtl.c (try_split): When splitting a call that is followed
3634         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
3636 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
3638         * cfgexpand.c (expand_debug_expr): For unused non-addressable
3639         parameters passed in memory prefer using DECL_INCOMING_RTL over
3640         the pseudos it will be copied into.
3642 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3644         PR target/47315
3645         * config/i386/i386.c (ix86_option_override_internal): Save the
3646         initial options after checking vzeroupper.
3648 2011-05-23  David Li  <davidxl@google.com>
3650         PR tree-optimization/48988
3651         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3652         Initialize has_valid_pred for each pred chain.
3654 2011-05-23  Richard Guenther  <rguenther@suse.de>
3656         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
3657         (iterative_hash_gimple_type): Always hash type names.
3659 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
3661         * c-typeck.c (build_function_call_vec): Tweak call to
3662         check_function_arguments.
3664 2011-05-23  Richard Guenther  <rguenther@suse.de>
3666         PR tree-optimization/49115
3667         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
3668         is not necessarily carried out, do not claim it kills the ref.
3669         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3671 2011-05-23  Richard Guenther  <rguenther@suse.de>
3673         PR middle-end/15419
3674         * builtins.c (fold_builtin_memory_op): Be less restrictive about
3675         what pointer types we accept for folding.
3677 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3679         * gthr-gnat.c: Remove.
3680         * gthr-gnat.h: Remove.
3681         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
3682         * config/t-freebsd (LIB2ADDEH): Likewise.
3683         * config/t-linux (LIB2ADDEH): Likewise.
3684         * config/t-sol2 (LIB2ADDEH): Likewise.
3685         * config/ia64/t-vms (LIB2ADDEH): Likewise.
3686         * configure.ac (target_thread_file): Remove gnat handling.
3687         * configure: Regenerate.
3688         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
3690 2011-05-23  Tristan Gingold  <gingold@adacore.com>
3691             Eric Botcazou  <ebotcazou@adacore.com>
3693         * gcov.c (create_file_names): If no object directory is specified,
3694         keep the directory of the file.
3696 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3698         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
3699         * configure: Regenerate.
3701 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
3703         PR middle-end/48973
3704         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
3705         failed and the comparison has a single bit signed type, use
3706         constm1_rtx instead of const1_rtx for true value.
3707         (do_store_flag): If ops->type is single bit signed type, disable
3708         signel bit test optimization and pass -1 instead of 1 as last
3709         parameter to emit_store_flag_force.
3711 2011-05-23  Tom de Vries  <tom@codesourcery.com>
3713         PR target/45098
3714         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
3715         function.
3716         (infer_loop_bounds_from_undefined): Use new function.
3718 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
3720         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
3721         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
3722         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
3723         and -O0 otherwise.
3724         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
3726 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
3728         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
3729         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
3730         returns true.
3732 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
3734         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
3736 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
3738         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
3739         UNSPEC_MOVE_PIC pattern.
3741 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
3743         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
3744         (sparc-*-rtems*): Likewise.
3745         (sparc64-*-elf*): Likewise.
3746         (sparc64-*-rtems*): Likewise.
3747         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
3748         * config/sparc/t-crtin: New file.
3749         * config/sparc/t-sol2 (crti.o): Delete rule.
3750         (crtn.o): Likewise.
3751         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
3752         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
3753         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
3754         (ENDFILE_SPEC): Add crtn.o.
3756 2011-05-22  Tom de Vries  <tom@codesourcery.com>
3758         PR middle-end/48689
3759         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
3760         CODE_CONTAINS_STRUCT (TS_COMMON).
3762 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
3764         PR middle-end/49029
3765         * expmed.c (extract_fixed_bit_field): Test whether target can be used
3766         only after deciding which mode to use.
3768 2011-05-22  Tom de Vries  <tom@codesourcery.com>
3770         PR target/45098
3771         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
3772         for call to get_shiftadd_cost.
3774 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
3776         PR target/49104
3777         * config/i386/cpuid.h (bit_MMXEXT): New define.
3779 2011-05-22  Nick Clifton  <nickc@redhat.com>
3781         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
3782         initialisation of non-existant args[2] element.  Use args[] array
3783         not arg[] array to pass arguments to build_function_type_list.
3785 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
3787         PR tree-optimization/49087
3788         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
3790 2011-05-21  Jason Merrill  <jason@redhat.com>
3792         PR c++/49092
3793         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
3794         static storage duration.
3796 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
3798         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
3799         frame pointer.
3801 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
3803         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
3804         false if there are call-saved registers here...
3805         (sparc_can_use_return_insn_p): ...but here instead.
3806         (save_or_restore_regs): Fix thinko.
3807         (sparc_expand_prologue): Use current_function_is_leaf.
3808         (sparc_frame_pointer_required): Likewise.
3810 2011-05-21  Nick Clifton  <nickc@redhat.com>
3812         PR target/49098
3813         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
3815 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
3817         * gengtype.c (walk_type): Implemented "atomic" GTY option.
3818         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
3820 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
3822         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
3823         * optc-gen.awk: Move common code to opt-read.awk.
3824         * opth-gen.awk: Likewise.
3825         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
3827 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
3829         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
3831 2011-05-20  Tom de Vries  <tom@codesourcery.com>
3833         PR target/45098
3834         * tree-ssa-loop-ivopts.c: Include expmed.h.
3835         (get_shiftadd_cost): New function.
3836         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
3838 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
3840         PR bootstrap/49086
3841         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
3842         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
3844 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
3846         * Makefile.in: Update comment referring to $(OBJS-common).
3848 2011-05-20  Ian Lance Taylor  <iant@google.com>
3850         * godump.c (go_output_typedef): Put enum constants in the macro
3851         hash table to avoid duplicate Go const definitions.
3853 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
3855         * Makefile.in (LIBDEPS): Add libcommon.a.
3856         (LIBS): Likewise.
3857         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
3858         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
3859         pretty-print.o and version.o.
3860         (OBJS-libcommon): New.
3861         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
3862         (BACKEND): Add libcommon.a.
3863         (MOSTLYCLEANFILES): Likewise.
3864         (libcommon.a): New.
3865         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
3866         (cpp$(exeext)): Likewise.
3867         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
3868         pretty-print.o and input.o.
3869         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
3870         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
3871         (errors.o): Remove.
3872         (mips-tfile): Don't explicitly use version.o.
3873         (mips-tdump): Likewise.
3874         (gcov.o): Depend on $(DIAGNOSTIC_H).
3875         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
3876         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
3877         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
3878         * gcov-dump.c: Include intl.h and diagnostic.h.
3879         (main): Initialize diagnostics.
3880         * gcov.c: Include diagnostic.h.
3881         (fnotice): Remove.
3882         (main): Initialize diagnostics.
3883         * lto-wrapper.c: Include diagnostic.h.
3884         (main): Initialize diagnostics.
3886 2011-05-20  Michael Matz  <matz@suse.de>
3888         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
3890 2011-05-20  Michael Matz  <matz@suse.de>
3891             Richard Guenther  <rguenther@suse.de>
3893         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
3894         use lto_streamer_cache_append directly instead of returning a VEC.
3895         (preload_common_node): Remove.
3896         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
3897         track seen nodes.
3898         (lto_streamer_cache_create): Call lto_preload_common_nodes.
3900 2011-05-20  Richard Guenther  <rguenther@suse.de>
3902         PR tree-optimization/49079
3903         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
3904         MEM_REFs correctly for the trailing array access detection.
3905         Special case constants the same way as decls for overall size
3906         constraining.
3908 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
3910         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
3911         argument expansion.
3913 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
3915         PR tree-optimization/49073
3916         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
3917         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
3918         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
3920 2011-05-20  Richard Guenther  <rguenther@suse.de>
3922         PR middle-end/48849
3923         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
3924         of pointer types the same way the middle-end does.
3926 2011-05-20  Richard Guenther  <rguenther@suse.de>
3928         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
3929         or pointer-to chains.  Delay all fixup to uniquify_nodes.
3931 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
3933         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
3934         (fma4_fmaddsub): Likewise
3936 2011-05-19  Jan Hubicka  <jh@suse.cz>
3938         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
3939         (GIMPLE_TYPE_PAIR_SIZE): New macro.
3940         (type_pair_cache): New static var.
3941         (lookup_type_pair): Use fixed sized custom hash; make inline.
3942         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
3943         calls of lookup_type_pair.
3944         (print_gimple_types_stats): Remove cache stats.
3945         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
3946         and gtc_ob.
3948 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
3950         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
3951         when TARGET_RDRND is active.
3952         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
3953         Generate dummy SImode target register when target is NULL.
3955 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
3957         * config/arm/arm-fpus.def: New.
3958         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
3959         arm-fpus.def.
3960         * config/arm/arm-tables.opt: Regenerate.
3961         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
3962         (arm_option_override): Don't decode FPU name to string here.
3963         * config/arm/arm.opt (mfpu=): Use Enum.
3964         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
3965         Update dependencies.
3967 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
3969         * collect2.c: Include diagnostic.h.
3970         (fatal_perror, fatal, error, fancy_abort): Remove.
3971         (main): Set progname.  Call xmalloc_set_program_name and
3972         diagnostic_initialize.
3973         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
3974         scan_libraries, resolve_lib_name): Call fatal_error instead of
3975         fatal and fatal_perror.
3976         * collect2.h (error, fatal, fatal_perror): Don't declare.
3977         * tlink.c: Include diagnostic-core.h.
3978         (recompile_files): Call fatal_error instead of fatal_perror.
3979         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
3980         pretty-print.o and input.o.
3981         (collect2.o, tlink.o): Update dependencies.
3983 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3985         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
3987 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3989         PR target/40483
3990         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
3991         COMDAT group syntax, both SPARC and x86 variants.
3992         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
3993         * configure: Regenerate.
3994         * config/sol2.h (TARGET_SOLARIS): Define.
3995         (PUSHSECTION_FORMAT): Remove.
3996         (SECTION_NAME_FORMAT): Define.
3997         * config/sol2.c: Include hashtab.h.
3998         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
3999         expansion, using SECTION_NAME_FORMAT.
4000         (solaris_comdat_htab): New variable.
4001         (struct comdat_entry): Define.
4002         (comdat_hash): New function.
4003         (comdat_eq): New function.
4004         (solaris_elf_asm_comdat_section): New function.
4005         (solaris_define_comdat_signature): New function.
4006         (solaris_code_end): New function.
4007         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4008         (solaris_code_end): Declare.
4009         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4010         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4011         solaris_code_end.
4012         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4013         Remove ATTRIBUTE_UNUSED.
4014         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4015         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
4016         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
4017         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4018         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4019         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4020         (PUSHSECTION_FORMAT): Remove.
4021         (SECTION_NAME_FORMAT): Redefine.
4023 2011-05-19  Kai Tietz  <ktietz@redhat.com>
4025         * tree-cfg.c (verify_gimple_assign_binary): Barf on
4026         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4027         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4029 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
4030             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4032         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4034 2011-05-19  Richard Guenther  <rguenther@suse.de>
4036         PR middle-end/48985
4037         * tree-object-size.c (addr_object_size): If the pointed-to
4038         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4040 2011-05-19  Richard Guenther  <rguenther@suse.de>
4042         * gimple.c (gimple_types_compatible_p_1): Compare names of
4043         the types themselves.
4044         (iterative_hash_gimple_type): And hash them that way.
4045         (gimple_register_type_1): If we register a main variant properly
4046         initialize the leader to ourselves.
4048 2011-05-19  Tom de Vries  <tom@codesourcery.com>
4050         PR target/45098
4051         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4052         get_loop_invariant_expr_id.
4053         (get_loop_invariant_expr_id): Use get_expr_id.
4054         (parm_decl_cost): New function.
4055         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4056         Improve bound cost estimation.  Use different inv_expr_id for elim and
4057         express cases.
4059 2011-05-19  Tom de Vries  <tom@codesourcery.com>
4061         PR target/45098
4062         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4063         cost_base.cost == 0.
4065 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4067         PR target/49002
4068         * config/i386/sse.md
4069         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4070         load cast.
4072 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
4074         PR tree-optimization/49039
4075         * tree-vrp.c (extract_range_from_binary_expr): For
4076         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4077         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4079 2011-05-18  Tom de Vries  <tom@codesourcery.com>
4081         PR target/45098
4082         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4084 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
4086         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4087         (*tls_global_dynamic_64): Ditto.
4088         (*tls_local_dynamic_base_32_gnu): Ditto.
4089         (*tls_local_dynamic_base_64): Ditto.
4090         (tls_initial_exec_64_sun): Ditto.
4092 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
4094         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4095         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4096         bf592-none.
4097         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4098         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4099         * config/bfin/bfin.c (bfin_cpus): Add bf592.
4100         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4101         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4102         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4103         * config/bfin/elf.h (LIB_SPEC): Add bf592.
4105 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
4107         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4108         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4109         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4110         target_thread_pointer, arm_structure_size_boundary, struct
4111         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4112         struct abi_name, arm_all_abis): Remove.
4113         (arm_option_override) Don't process most enumerated option values here.
4114         Don't process target_fpe_name here.  Work with integer not string for
4115         structure size boundary; use separate diagnostics for each case.
4116         * config/arm/arm.h (enum float_abi_type, enum
4117         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4118         to arm-opts.h.
4119         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4120         arm_structure_size_boundary): Remove.
4121         * config/arm/arm.opt (mabi=): Use Enum and Init.
4122         (arm_abi_type): New Enum and EnumValue entries.
4123         (mfloat-abi=): Use Enum and Init.
4124         (float_abi_type): New Enum and EnumValue entries.
4125         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
4126         (mfp16-format=): Use Enum and Init.
4127         (arm_fp16_format_type): New Enum and EnumValue entries.
4128         (mstructure-size-boundary=): Use UInteger and Init.
4129         (mtp=): Use Enum and Init.
4130         (arm_tp_type): New Enum and EnumValue entries.
4132 2011-05-18  Richard Guenther  <rguenther@suse.de>
4134         PR tree-optimization/49018
4135         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4136         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4137         gimple_has_side_effects.
4139 2011-05-18  Richard Guenther  <rguenther@suse.de>
4141         * gimple.c (gimple_register_type_1): New function, split out from ...
4142         (gimple_register_type): ... here.  Avoid infinite recursion.
4144 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
4146         PR tree-optimization/41881
4147         * tree-vectorizer.h (struct _loop_vec_info): Add new field
4148         reduction_chains along with a macro for its access.
4149         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4150         (destroy_loop_vec_info): Free reduction chains.
4151         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4152         (vect_is_slp_reduction): New function.
4153         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4154         (vect_create_epilog_for_reduction): Support SLP reduction chains.
4155         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4156         definition types for reduction chains.
4157         (vect_supported_load_permutation_p): Don't allow permutations for
4158         reduction chains.
4159         (vect_analyze_slp_instance): Support reduction chains.
4160         (vect_analyze_slp): Try to build SLP instance from reduction chains.
4161         (vect_get_constant_vectors):  Handle reduction chains.
4162         (vect_schedule_slp_instance): Mark the first statement of the
4163         reduction chain as reduction.
4165 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
4167         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4168         names for group elements access.
4169         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4170         reduction chains as well.  Remove data reference and interleaving
4171         related words from the fields names.
4172         * tree-vect-loop.c (vect_transform_loop): Use new names for group
4173         elements access.
4174         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4175         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4176         vect_update_interleaving_chain, vect_same_range_drs,
4177         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4178         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4179         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4180         vect_analyze_group_access, vect_analyze_data_ref_access,
4181         vect_create_data_ref_ptr, vect_transform_strided_load,
4182         vect_record_strided_load_vectors): Likewise.
4183         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4184         vect_model_load_cost, vectorizable_store, vectorizable_load,
4185         vect_remove_stores, new_stmt_vec_info): Likewise.
4186         * tree-vect-slp.c (vect_build_slp_tree,
4187         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4189 2011-05-18  Richard Guenther  <rguenther@suse.de>
4191         PR middle-end/48989
4192         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4193         operand verification.
4194         (verify_gimple_assign_binary): Likewise.
4195         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4196         to non-1-precision BOOLEAN_TYPEs.
4198 2011-05-18  Tom de Vries  <tom@codesourcery.com>
4200         PR target/45098
4201         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4203 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
4205         PR tree-optimization/49000
4206         * tree-ssa.c (execute_update_addresses_taken): Call
4207         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
4208         be rewritten and decl has been marked for renaming, reset
4209         the debug stmt.
4211 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
4213         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4214         enum_opts_set when testing if attributes have set -mfpmath=.
4216 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
4218         * config/mips/mips.c (mips_handle_option): Remove unused variable.
4220 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
4222         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
4223         info->entry with 0
4224         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
4225         id.transform_lang_insert_block with NULL.
4227 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
4229         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4230         (output_fp_compare): Change args 3 and 4 to bool.
4231         (ix86_expand_call): Change arg 6 to bool.
4232         (ix86_attr_length_immediate_default): Change arg 2 to bool.
4233         (ix86_attr_length_vex_default): Change arg 3 to bool.
4234         * config/i386/i386.md: Update all uses.
4235         * config/i386/i386.c: Ditto.
4236         (ix86_flags_dependent): Change return type to bool.
4238 2011-05-17  Richard Guenther  <rguenther@suse.de>
4240         * gimple.c (type_hash_pair_compare): Fix comparison.
4242 2011-05-17  Richard Guenther  <rguenther@suse.de>
4244         * gimple.c (iterative_hash_gimple_type): Simplify singleton
4245         case some more, fix final hash value of the non-singleton case.
4247 2011-05-17  Richard Guenther  <rguenther@suse.de>
4249         PR bootstrap/49013
4250         Revert
4251         2011-05-16  Richard Guenther  <rguenther@suse.de>
4253         * gimple.c (gimple_types_compatible_p_1): Use names of the
4254         type itself, not its main variant.
4255         (iterative_hash_gimple_type): Likewise.
4257 2011-05-17  Richard Guenther  <rguenther@suse.de>
4259         * gimple.c (gimple_register_canonical_type): Use the main-variant
4260         leader for computing the canonical type.
4262 2011-05-17  Nick Clifton  <nickc@redhat.com>
4264         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
4265         moves.
4267         * config/rx/rx.md: Add peephole to remove redundant extensions
4268         after loads.
4269         (bitset_in_memory): Use rx_restricted_mem_operand.
4270         (bitinvert_in_memory): Likewise.
4271         (bitclr_in_memory): Likewise.
4273 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
4274             Nick Clifton  <nickc@redhat.com>
4276         * config/rx/rx.md: Add peepholes to match a register move followed
4277         by a comparison of the moved register.  Replace these with an
4278         addition of zero that does both actions in one instruction.
4280 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
4282         PR target/48986
4283         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
4284         predicate to allow CONST_INT.
4285         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
4287 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
4289         * opts-common.c (opt_enum_arg_to_value): New.
4290         * opts.h (opt_enum_arg_to_value): Declare.
4291         * config/i386/i386.opt (fpmath): Remove.
4292         (mfpmath=): Use Enum, Init and Save.
4293         (fpmath_unit): New Enum and EnumValue entries.
4294         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
4295         name for function fpmath state.
4296         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
4297         * config/i386/i386.c: Include diagnostic.h.
4298         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
4299         (ix86_target_string): Take enum fpmath_unit value instead of string.
4300         (ix86_debug_options): Update call to ix86_target_string.
4301         (ix86_option_override_internal): Don't process fpmath strings here.
4302         (x86_function_specific_save, ix86_function_specific_restore):
4303         Don't handle fpmath state specially.
4304         (ix86_function_specific_print): Pass fpmath state to
4305         ix86_target_string instead of printing in this function.
4306         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
4307         Handle enum attributes.
4308         (IX86_ATTR_ENUM, ix86_opt_enum): New.
4309         (ix86_valid_target_attribute_tree): Update option_strings
4310         handling.  Handle fpmath as enum option.
4311         (ix86_can_inline_p): Update field names for function fpmath state.
4312         (ix86_expand_builtin): Update call to ix86_target_string.
4313         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
4314         (ix86_fpmath): Remove.
4315         * config/i386/t-i386 (i386.o): Update dependencies.
4317 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
4319         PR preprocessor/48677
4320         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
4321         from decoded_options[0], not from itself.
4323 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
4325         * config/i386/constraints.md (z): New constraint.
4326         * config/i386/i386.c (c): New mode attribute.
4327         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
4328         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
4329         constraint for operand 0.
4330         (*call_vzeroupper): Ditto.
4331         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
4332         (*call_rex64_ms_sysv_vzeroupper): Ditto.
4333         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
4334         Use "lzm" constraint for operand 0.
4335         (*call_pop_vzeroupper): Ditto.
4336         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
4337         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
4338         constraint for operand 0.
4339         (*sibcall_vzeroupper): Ditto.
4340         (*sibcall_rex64_ms_sysv): Ditto.
4341         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
4342         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
4343         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
4344         (*sibcall_pop_vzeroupper): Ditto.
4345         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
4346         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
4347         mode iterator.  Use "<c>zm" constraint for operand 1.
4348         (*call_value_vzeroupper): Ditto.
4349         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
4350         for operand 1.
4351         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
4352         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
4353         *call_value_pop_1.  Use "lzm" constraint for operand 1.
4354         (*call_value_pop_vzeroupper): Ditto.
4355         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
4356         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
4357         mode iterator.  Use "Uz" constraint for operand 1.
4358         (*sibcall_value_vzeroupper): Ditto.
4359         (*sibcall_value_rex64_ms_sysv): Ditto.
4360         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
4361         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
4362         constraint for operand 1.
4363         (*sibcall_value_pop_vzeroupper): Ditto.
4364         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
4365         and "z" constraint for operand 2.
4366         (*tls_global_dynamic_32_gnu): Ditto.
4367         (*tls_local_dynamic_base_32_gnu): Ditto.
4368         (*tls_local_dynamic_base_64): Ditto.
4369         (*tls_local_dynamic_32_once): Ditto.
4370         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
4371         Update all callers.
4372         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
4374 2011-05-16  Richard Guenther  <rguenther@suse.de>
4376         * gimple.c (gimple_types_compatible_p_1): Use names of the
4377         type itself, not its main variant.
4378         (iterative_hash_gimple_type): Likewise.
4380 2011-05-16  Richard Guenther  <rguenther@suse.de>
4382         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
4383         always visit pointer target and function result and argument types.
4385 2011-05-16  Jason Merrill  <jason@redhat.com>
4387         PR c++/48999
4388         * tree-inline.c (copy_statement_list): Put back recursion.
4390 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
4392         PR target/27663
4393         PR target/41076
4394         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
4395         * config/avr/avr.md ("*ior<mode>qi.byte0",
4396         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
4398 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
4400         PR target/45099
4401         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
4402         register is needed for a function argument.
4404 2011-05-16  Richard Guenther  <rguenther@suse.de>
4406         * gimple.c (struct type_hash_pair): New type.
4407         (type_hash_pair_compare): New function.
4408         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
4410 2011-05-16  Revital Eres  <revital.eres@linaro.org>
4412         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
4414 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
4416         * config/i386/i386.md (floating point move splitters): Fix
4417         usage of standard_80387_constant_p.
4418         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
4420 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
4422         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
4424 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
4426         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
4427         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
4428         (tree_ssa_lim_finalize): Likewise.
4430 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
4432         * config/i386/constraint.md (Yd, Yx): New register constraints.
4433         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
4434         Yd conditional register constraint.
4435         (*movtf_internal): Use standard_sse_constant_opcode.
4436         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
4437         Yx conditional register constraint.
4438         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
4439         Yd conditional register constraint.  Use standard_sse_constant_p to
4440         check for valid SSE constants and call standard_sse_constant_opcode to
4441         output SSE insn.
4442         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
4443         constants and call standard_sse_constant_opcode to output SSE insn.
4444         * config/i386/i386.c (ix86_option_ovverride_internal): Set
4445         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
4446         optimize_size is set.
4447         (standard_sse_constant_opcode): Output conditional AVX insn templates.
4449 2011-05-14  Tobias Burnus  <burnus@net-b.de>
4451         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
4453 2011-05-13  Martin Jambor  <mjambor@suse.cz>
4455         * ipa-prop.c (ipa_cst_from_jfunc): New function.
4456         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
4457         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
4458         (evaluate_conditions_for_ipcp_clone): Removed.
4459         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
4460         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
4461         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
4463 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
4465         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
4466         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
4467         lieu of MAY_HAVE_DEBUG_STMTS.
4468         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
4469         debug statements if !MAY_HAVE_DEBUG_STMTS.
4471 2011-05-13  Martin Thuresson  <martint@google.com>
4473         PR gcov-profile/47793
4474         * libgcov.c (gcov_exit): Support relative profile paths.
4475         * doc/invoke.texi (-fprofile-dir): Update for above change.
4477 2011-05-13  Richard Guenther  <rguenther@suse.de>
4479         * gimple.c (gimple_canonical_types_compatible_p): Do not use
4480         type-pair caching, do not compare hashes.
4482 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
4484         PR middle-end/48965
4485         * tree-cfg.c (edge_to_cases_cleanup): Return true.
4486         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
4488 2011-05-13  Kai Tietz  <ktietz@redhat.com>
4490         * gimplify.c (gimplify_expr): Make sure operand is boolified.
4491         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
4492         compatible type for TRUTH_NOT_EXPR.
4494 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
4496         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
4497         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
4498         can_create_pseudo_p ().
4500 2011-05-13  Richard Guenther  <rguenther@suse.de>
4502         PR lto/48978
4503         * gimple.c (iterative_hash_gimple_type): Revert change in
4504         pointer target and function result and argument hashing.
4506 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
4508         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
4509         (*movxf_internal_nointeger): Ditto.
4510         (*movdf_internal_rex64): Ditto.
4511         (*movdf_internal): Ditto.
4512         (*movdf_internal_nointeger): Ditto.
4513         (*movsf_internal): Ditto.
4514         (sincos splitters): Use can_create_pseudo ().
4516 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
4518         * config/i386/i386-opts.h: New.
4519         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
4520         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
4521         ix86_section_threshold): Remove.
4522         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
4523         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
4524         OPT_mbranch_cost_.
4525         (ix86_option_override_internal): Don't decode strings for options
4526         other than -march=, -mtune= and -mfpmath=.  Don't allow for
4527         __attribute__ uses in remaining diagnostics for options with
4528         string arguments.  Don't check for integer arguments being negative.
4529         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
4530         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
4531         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
4532         ix86_branch_cost, ix86_section_threshold): Remove.
4533         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
4534         HeaderInclude.
4535         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
4536         but not Var.
4537         (masm=): Use Enum and Init.
4538         (asm_dialect): New Enum and EnumValue entries.
4539         (mbranch-cost=): Use UInteger.
4540         (mlarge-data-threshold=): Use UInteger and Init.
4541         (mcmodel=): Use Enum and Init.
4542         (cmodel): New Enum and EnumValue entries.
4543         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
4544         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
4545         mregparm=): Use UInteger.
4546         (mstringop-strategy=): Use Enum and Init.
4547         (stringop_alg): New Enum and EnumValue entries.
4548         (mtls-dialect=): Use Enum and Init.
4549         (tls_dialect): New Enum and EnumValue entries.
4550         (mabi=): Use Enum and Init.
4551         (calling_abi): New Enum and EnumValue entries.
4552         (mveclibabi=): Use Enum and Init.
4553         (ix86_veclibabi): New Enum and EnumValue entries.
4555 2011-05-13  Nick Clifton  <nickc@redhat.com>
4557         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
4558         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
4560 2011-05-13  Kai Tietz  <ktietz@redhat.com>
4562         PR middle-end/48984
4563         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
4564         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
4565         (gimple_boolify): Check for cast for boolean_type_node instead for
4566         BOOLEAN_TYPE.
4568 2011-05-13  Richard Guenther  <rguenther@suse.de>
4570         PR tree-optimization/48172
4571         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
4572         multiplying by number of iterations for equal step.
4573         (vect_create_cond_for_alias_checks): Likewise.
4575 2011-05-13  Andreas Schwab  <schwab@redhat.com>
4577         * configure.ac: Use AS_HELP_STRING throughout.
4578         * configure: Regenerate.
4580 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
4582         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
4583         (ix86_emit_restore_regs_using_mov): Likewise.
4584         (ix86_emit_restore_sse_regs_using_mov): Likewise.
4586 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
4588         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
4589         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
4590         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
4591         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
4592         RTX_OK_FOR_OLO10_P): ...here.
4593         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
4594         SYMBOLIC_CONST.
4596 2011-05-12  Kai Tietz  <ktietz@redhat.com>
4598         * gimplify.c (gimple_boolify): Re-boolify expression
4599         arguments even if expression type is of kind BOOLEAN_TYPE.
4600         (gimplify_boolean_expr): Removed.
4601         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
4602         and XOR. Additional take care that we keep expression's type.
4603         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
4604         of TRUTH_AND|OR|XOR_EXPR.
4606 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
4608         PR tree-optimization/48975
4609         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
4610         on all bbs here and free and clear ifc_bbs at the end.
4612 2011-05-12  Richard Guenther  <rguenther@suse.de>
4614         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
4615         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
4616         until after simple checks.
4617         (gimple_types_compatible_p): Likewise.
4618         (iterative_hash_gimple_type): Always hash pointer targets
4619         and function return and argument types.
4620         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
4621         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
4622         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
4623         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
4624         completely in the simple compare section.
4625         (gimple_register_canonical_type): Query the cache again after
4626         registering.
4628 2011-05-12  Richard Guenther  <rguenther@suse.de>
4630         PR tree-optimization/48172
4631         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
4632         the number of iterations from the segment size calculation.
4633         (vect_create_cond_for_alias_checks): Adjust.
4635 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
4637         PR debug/48967
4638         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
4639         if validate_subreg fails.
4641 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
4643         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
4644         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
4645         early.
4647 2011-05-12  DJ Delorie  <dj@redhat.com>
4649         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
4650         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
4651         created builtin into rx_builtins array.
4652         (rx_builtin_decl): New function.
4653         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
4655 2011-05-12  DJ Delorie  <dj@redhat.com>
4656             Nick Clifton  <nickc@redhat.com>
4658         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
4659         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
4660         (rx_is_legitimate_address): Add pre-decrement and post-increment
4661         addressing in HImode and QImode.  Fix test for out of range
4662         REG+INT addressing.
4663         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
4664         (rx_align_for_label): Test label before extracting its usage count.
4665         (rx_adjust_insn_lengths): Fix selection of insn codes.
4666         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
4668 2011-05-11  Jason Merrill  <jason@redhat.com>
4670         * tree.c (type_hash_canon): Use struct tree_type_non_common.
4672 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
4674         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
4675         reindent the subsequent block.
4677 2011-05-11  Satoru Takabayashi  <satorux@google.com>
4678             Paul Pluzhnikov  <ppluzhnikov@google.com>
4680         * doc/install.texi (Configuration): Document --with-linker-hash-style.
4681         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
4682         * config.in: Add LINKER_HASH_STYLE.
4683         * configure.ac: Add --with-linker-hash-style.
4684         * configure: Regenerate.
4686 2011-05-11  Richard Guenther  <rguenther@suse.de>
4688         PR middle-end/48964
4689         * gimple.c (iterative_hash_canonical_type): Fix typo.
4691 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
4693         * config/i386/i386.c (legitimize_tls_address)
4694         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4695         expanders directly for TARGET_GNU2_TLS.  Determine pic and
4696         __tls_get_addr symbol reference here.  Update call to
4697         gen_tls_global_dynamic_{32,64} for added arguments.
4698         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4699         expanders directly for TARGET_GNU2_TLS.  Determine
4700         __tls_get_addr symbol reference here.  Update call to
4701         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
4702         unique UNSPEC REG_EQUIV to libcall block.
4703         (ix86_tls_get_addr): Declare static.
4704         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
4705         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
4706         Do not determine pic and __tls_get_addr symbol reference here. Do not
4707         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
4708         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
4709         (tls_global_dynamic_64): Add operand 2.  Do not determine
4710         __tls_get_addr symbol reference here.  Do not call
4711         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
4712         (tls_local_dynamic_base64): Ditto for operand 1.
4714 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
4716         * function.c (expand_function_start): Initialize stack_check_probe_note
4717         only if the generic stack checking mechanism is used.
4719 2011-05-11  Richard Guenther  <rguenther@suse.de>
4721         PR tree-optimization/15256
4722         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
4723         (A & B) | C, combine (A op CST1) op CST2.
4724         (tree_ssa_forward_propagate_single_use_vars): Only bother to
4725         visit assigns that have uses.
4727 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
4729         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
4730         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
4731         (unpack_ts_type_common_value_fields): ...this.  Update comment.
4732         (unpack_value_fields): Adjust for renaming.
4733         (lto_input_ts_type_tree_pointers): Split into...
4734         (lto_input_ts_type_common_tree_pointer): ...this and...
4735         (lto_input_ts_type_non_common_tree_pointers): ...this.
4736         (lto_input_tree_pointers): Adjust for above split.
4737         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
4738         (pack_ts_type_common_value_fields): ...this.  Update comment.
4739         (lto_output_ts_type_tree_pointers): Split into...
4740         (lto_output_ts_type_common_tree_pointers): ...this and...
4741         (lto_output_ts_type_non_common_tree_pointers): ...this.
4742         (lto_output_tree_pointers): Adjust for above split.
4743         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
4744         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
4745         * stor-layout.c (vector_type_mode): Adjust location of mode field.
4746         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
4747         Define.
4748         (struct tree_type): Split into...
4749         (struct tree_type_common: ...this and...
4750         (struct tree_type_with_lang_specific): ...this and...
4751         (struct tree_type_non_common): ...this.  Adjust accessor macros
4752         accordingly.
4753         (TYPE_VALUES_RAW): Define.
4754         (union tree_node): Update for above changes.
4755         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
4756         TS_TYPE_NON_COMMON.
4757         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
4758         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
4759         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
4760         * treestructu.def (TS_TYPE): Remove.
4761         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
4762         Define.
4764 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
4766         PR debug/48159
4767         * tree-ssa.c (reset_debug_uses): New function.
4768         * tree-flow.h (reset_debug_uses): New prototype.
4769         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
4770         * tree-loop-distribution.c (generate_loops_for_partition): Call
4771         reset_debug_uses on the stmts that will be removed.  Keep around
4772         all debug stmts, don't count them as bits in partition bitmap.
4773         (generate_builtin): Don't count debug stmts or labels as bits in
4774         partition bitmap.
4776 2011-05-11  Richard Guenther  <rguenther@suse.de>
4778         * gimple.c (gimple_type_hash_1): Merge with ...
4779         (gimple_type_hash): ... this.
4780         (gtc_visit): Remove mode parameter and simplify accordingly.
4781         (gimple_types_compatible_p_1): Likewise.
4782         (gimple_types_compatible_p): Likewise.
4783         (iterative_hash_gimple_type): Likewise.
4784         (visit): Likewise.
4785         (gimple_type_eq): Adjust.
4787 2011-05-11  Revital Eres  <revital.eres@linaro.org>
4789         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
4790         enters the branch create an anti edge in the opposite direction
4791         to prevent the creation of reg-moves.
4792         * modulo-sched.c: Adjust comment to reflect the fact we are
4793         scheduling closing branch.
4794         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
4795         (stage_count): New field in struct partial_schedule.
4796         (calculate_stage_count): New function.
4797         (normalize_sched_times): Rename to reset_sched_times and handle
4798         incrementing the sched time of the nodes by a constant value
4799         passed as parameter.
4800         (duplicate_insns_of_cycles): Skip closing branch.
4801         (sms_schedule_by_order): Schedule closing branch.
4802         (ps_insn_find_column): Handle closing branch.
4803         (sms_schedule): Call reset_sched_times and adjust the code to
4804         support scheduling of the closing branch.
4805         (ps_insert_empty_row): Update calls to normalize_sched_times
4806         and rotate_partial_schedule functions.
4808 2011-05-11  Richard Guenther  <rguenther@suse.de>
4810         PR middle-end/48953
4811         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
4813 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
4815         * opts.c (finish_options): Move warning settings from process_options.
4816         * toplev.c (process_options): Move warning settings to finish_options.
4818 2011-05-11  Richard Guenther  <rguenther@suse.de>
4820         PR tree-optimization/18041
4821         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
4822         (simplify_bitwise_binary): ... this.  Handle operand conversions
4823         by applying them to the result instead.
4824         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
4826 2011-05-11  Richard Guenther  <rguenther@suse.de>
4828         * gimple.c (gimple_canonical_types_compatible_p): Split out
4829         from gimple_types_compatible_p and friends.  Do not recurse
4830         to pointed-to types.
4831         (gimple_canonical_type_eq): Use it.
4832         (iterative_hash_canonical_type): Split out from
4833         iterative_hash_gimple_type and friends.  Do not recurse
4834         to pointed-to types.
4835         (gimple_canonical_type_hash): Use it, allocate the hash here.
4837 2011-05-11  Revital Eres  <revital.eres@linaro.org>
4839         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
4840         recognizing doloop.
4842 2011-05-11  Revital Eres  <revital.eres@linaro.org>
4844         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
4845         instead of PREV_INSN.
4847 2011-05-11  Revital Eres  <revital.eres@linaro.org>
4849         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
4850         * loop-doloop.c (doloop_condition_get): Likewise.
4851         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
4852         (doloop_end): New.
4853         * config/arm/arm.md (*addsi3_compare0): Remove "*".
4855 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
4857         * tree.def (CASE_LABEL_EXPR): Add an operand.
4858         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
4860 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
4862         * c-decl.c (c_override_global_bindings_to_false): Remove.
4863         (global_bindings_p): Don't check
4864         c_override_global_bindings_to_false.
4865         * c-tree.h (c_override_global_bindings_to_false): Remove.
4866         * c-typeck.c (composite_type): Don't set
4867         c_override_global_bindings_to_false.
4869 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
4871         PR target/48857, 48495
4872         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
4873         (VSX_MODE): Ditto.
4874         (VSX_MOVE_MODE): Ditto.
4875         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
4876         VSX vector types.  Add V2DImode.
4877         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
4878         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
4879         (MODES_TIEABLE_P): Ditto.
4881         * config/rs6000/rs6000.c (rs6000_emit_move): Use
4882         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
4883         VSX_VECTOR_MODE.
4884         (init_cumulative_args): Ditto.
4885         (rs6000_function_arg_boundary): Ditto.
4886         (rs6000_function_arg_advance_1): Ditto.
4887         (rs6000_function_arg): Ditto.
4888         (rs6000_function_ok_for_sibcall): Ditto.
4889         (emit_frame_save): Ditto.
4890         (rs6000_function_value): Ditto.
4891         (rs6000_libcall_value): Ditto.
4893 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
4895         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4896         i386/darwin-lib.h to $libgcc_tm_file.
4897         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
4899 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
4901         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
4903 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
4905         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
4906         * config/rs6000/rs6000-tables.opt: New file (generated).
4907         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
4908         rs6000/rs6000-tables.opt to extra_options.
4909         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
4910         * config/rs6000/rs6000.c (rs6000_select): Remove.
4911         (processor_target_table): Move contents to rs6000-cpus.def.
4912         (darwin_rs6000_override_options): Check
4913         global_options_set.x_rs6000_cpu_index instead of
4914         rs6000_select[1].string.
4915         (rs6000_option_override_internal): Likewise.
4916         (rs6000_handle_option): Don't assert that global structures are in
4917         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
4918         (rs6000_default_cpu): New variable.
4919         (rs6000_file_start): Set it instead of local default_cpu.  Check
4920         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
4921         global_options_set.x_rs6000_tune_index instead of rs6000_select.
4922         (rs6000_darwin_file_start): Check rs6000_default_cpu and
4923         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
4924         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
4925         rs6000_select): Remove.
4926         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
4927         Remove.
4928         (mcpu=, mtune=): Use Var, Init, Enum and Save.
4929         * config/rs6000/t-rs6000
4930         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
4931         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4932         global_options_set.x_rs6000_cpu_index instead of
4933         rs6000_select[1].string.
4934         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4935         global_options_set.x_rs6000_cpu_index instead of
4936         rs6000_select[1].string.
4938 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
4940         * config.gcc (libgcc_tm_file): Define instead of including files
4941         from ../../libgcc/config/ in tm_file.
4942         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
4943         * configure: Regenerate.
4944         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
4945         libgcc_tm.h, cs-libgcc_tm.h): New.
4946         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
4947         (clean): Remove libgcc_tm.h.
4948         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
4949         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
4950         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
4952 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
4954         PR target/48896
4955         * config/avr/avr.c (avr_ret_register): Return unsigned int
4956         instead of int.
4957         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
4958         it to avr_libcall_value.
4959         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
4960         expand_expr.
4961         (avr_expand_binop_builtin): Ditto.
4962         (avr_expand_unop_builtin): Ditto.
4964 2011-05-10  DJ Delorie  <dj@redhat.com>
4966         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
4967         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
4968         * config/rx/rx.c (rx_align_for_label): Add label and
4969         uses_threshold parameters.  Do not align when the label is not
4970         used enough.
4971         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
4973 2011-05-10  Richard Guenther  <rguenther@suse.de>
4975         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
4976         a series of conversions and apply foldings similar to what
4977         fold-const does.
4978         (tree_ssa_forward_propagate_single_use_vars): Call it.
4980 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
4982         PR tree-optimization/48611
4983         PR tree-optimization/48794
4984         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
4985         referenced from RESX or EH_DISPATCH arguments.
4987         PR debug/48928
4988         * dfp.c (decimal_to_decnumber): Handle conversion from
4989         dconst{1,2,m1,half}.
4991 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
4993         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
4994         for !flag_prefer_avx128.
4995         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
4997 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
4999         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5000         (fold_ternary_loc): Use expr_location_or.
5002 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5004         PR debug/48853
5005         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5006         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5007         Pmode and mem_mode is not VOIDmode.
5009 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
5011         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5012         TYPE_QUAL_RESTRICT): Convert to enum.
5014 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5016         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5017         (const_pow2_1_to_8_operand): Ditto.
5018         (const_pow2_1_to_128_operand): Ditto.
5019         (const_pow2_1_to_32768_operand): Ditto.
5020         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5021         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
5022         in insn constraint to check integer value of operand 3.
5023         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5025         (PINSR_MODE): New mode iterator.
5026         (sse2p4_1): New mode attribute.
5027         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5028         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5029         iterator.  Use const_int_operand instead of
5030         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
5031         exact_log2 in insn constraint to check integer value of operand 3.
5033 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5035         * config/i386/sse.md (blendbits): Remove mode attribute.
5036         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5037         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5038         Check integer value of operand 3 in insn constraint.
5040 2011-05-09  Richard Guenther  <rguenther@suse.de>
5042         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5043         for diagnostics.
5044         (lto_symtab_merge): Likewise.  Do not register types here.
5045         (lto_symtab_merge_decls_2): Likewise.
5046         (lto_symtab_merge_decls_1): Likewise.
5047         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5048         * gimple.c (enum gtc_mode): Declare.
5049         (gimple_types_compatible_p): Make static.
5051 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5053         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5054         temporary register to match Pmode.
5056 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5058         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5059         and *vec_concatv4si_1_avx.
5061 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5063         PR rtl-optimization/48927
5064         * ira-conflicts.c (commutative_constraint_p): Use
5065         recog_data.alternative_enabled_p to disable alternatives where
5066         "enabled" attribute is false.
5067         (get_dup_num): Ditto.
5068         * ira-lives.c (single_reg_class): Ditto.
5069         (ira_implicitly_set_insn_hard_regs): Ditto.
5071 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
5073         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5074         (dataflow_set_preserve_mem_locs): Likewise.
5076 2011-05-09  Philipp Thomas  <pth@suse.de>
5078         * config/mep/mep.c (mep_validate_vliw): Syntax description
5079         should not be translated.
5081 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
5083         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5084         * config/mips/mips-tables.opt: New file (generated).
5085         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5086         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5087         MIPS_ARCH_OPTION_NATIVE): Define.
5088         * config/mips/mips.c (mips_cpu_info_table): Move contents to
5089         mips-cpus.def.
5090         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5091         mips_parse_cpu): Remove.
5092         (mips_cpu_info_from_opt, mips_default_arch): New.
5093         (mips_handle_option): Don't assert that global structures are in
5094         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5095         (mips_option_override): Use new variables and functions to set
5096         state of these options.  Use strcmp to check for individual CPU names.
5097         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5098         definition.
5099         * config/mips/mips.opt (march=): Use ToLower and Enum.
5100         (mips): Use ToLower, Enum and Var.
5101         (mtune=): Use ToLower and Enum.
5102         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5104 2011-05-08  Jan Hubicka  <jh@suse.cz>
5106         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5107         Arrange type pairs to be UID ordered.
5108         (gimple_lookup_type_leader): Make inline.
5110 2011-05-09  Nick Clifton  <nickc@redhat.com>
5112         PR target/48899
5113         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5114         PROCESSOR_DEFAULT.
5116         PR target/48897
5117         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5118         variable 's'.
5120 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
5122         * combine.c (simplify_comparison): Abstract out parts into...
5123         (simplify_compare_const): ... new function.
5124         (try_combine): Generalize parallel arithmetic/compare combining
5125         to call simplify_compare_const() and CANONICALIZE_COMPARE().
5127 2011-05-08  Jan Hubicka  <jh@suse.cz>
5129         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
5130         (cgraph_create_virtual_clone): Call hooks once virtual clone
5131         is finished.
5132         * cgraph.h (cgraph_clone_node): Update prototype.
5133         * ipa-cp.c (ipcp_estimate_growth): Use
5134         estimate_ipcp_clone_size_and_time.
5135         * ipa-inline-transform.c (clone_inlined_nodes): Update.
5136         * lto-cgraph.c (input_node): Update.
5137         * ipa-inline.c (recursive_inlining): Update.
5138         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5139         (evaluate_conditions_for_known_args): Break out from ...
5140         (evaluate_conditions_for_edge): ... here.
5141         (evaluate_conditions_for_ipcp_clone): New function.
5142         (inline_node_duplication_hook): Update clone summary based
5143         on parameter map.
5144         (estimate_callee_size_and_time): Rename to ...
5145         (estimate_node_size_and_time): take NODE instead of EDGE;
5146         take POSSIBLE_TRUTHS as argument.
5147         (estimate_callee_size_and_time): Update.
5148         (estimate_ipcp_clone_size_and_time): New function.
5149         (do_estimate_edge_time): Update.
5151 2011-05-08  Richard Guenther  <rguenther@suse.de>
5153         PR middle-end/48908
5154         PR middle-end/48905
5155         * expmed.c (expand_shift_1): Compute adjusted constant shift
5156         amount manually.
5158 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
5160         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5162 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
5164         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5166 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
5168         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5170 2011-05-07  Jan Hubicka  <jh@suse.cz>
5172         * ipa-inline-transform.c (inline_call): Account when program size
5173         decreases.
5174         * ipa-inline.c (relative_time_benefit): New function.
5175         (edge_badness): Reorganize to be power 2 based; fix thinko when
5176         computing badness for negative growth; update comments to match
5177         reality; better dumps.
5179 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
5181         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5182         type to bool and adjust comment.
5183         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5184         (fold_mathfn_compare): Remove calls to global_bindings_p.
5185         (fold_inf_compare): Likewise.
5186         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5187         * c-tree.h (global_bindings_p): Adjust prototype.
5188         * c-decl.c (global_bindings_p): Return bool and simplify.
5190 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
5192         PR tree-optimization/48837
5193         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5194         when accumulator transformation is performed.
5196 2011-05-06  Jan Hubicka  <jh@suse.cz>
5198         * i386.h (ix86_tune_indices): Add
5199         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
5200         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
5201         * i386.c (initial_ix86_tune_features): Add
5202         X86_SOFTARE_PREFETCHING_BENEFICIAL.
5203         (software_prefetching_beneficial_p): Remove predicate.
5204         (ix86_option_override_internal): Use new macro.
5206 2011-05-06  Jan Hubicka  <jh@suse.cz>
5208         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5210 2011-05-06  Jan Hubicka  <jh@suse.cz>
5212         * cgraph.c (cgraph_add_thunk): Create real function node instead
5213         of alias node; finalize it and mark needed/reachale; arrange visibility
5214         to be right and add it into the corresponding same comdat group list.
5215         (dump_cgraph_node): Dump thunks.
5216         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
5217         cgraph_function_with_gimple_body_p,
5218         cgraph_first_function_with_gimple_body,
5219         cgraph_next_function_with_gimple_body): New functions.
5220         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
5221         New macros.
5222         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
5223         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5224         * cgraphunit.c (cgraph_finalize_function): Only look into possible
5225         devirtualization when optimizing.
5226         (verify_cgraph_node): Verify thunks.
5227         (cgraph_analyze_function): Analyze thunks.
5228         (cgraph_mark_functions_to_output): Output thunks only in combination
5229         with function they are assigned to.
5230         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
5231         alias into normal node.
5232         (assemble_thunks): New functoin.
5233         (cgraph_expand_function): Use it.
5234         * lto-cgraph.c (lto_output_node): Stream thunks.
5235         (input_overwrite_node): Stream in thunks.
5236         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
5237         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
5238         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
5239         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
5240         (inline_analyze_function): Do not care about thunk jump functions.
5241         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
5242         * ipa-prop.c (ipa_prop_write_jump_functions): Use
5243         cgraph_function_with_gimple_body_p.
5244         * passes.c (do_per_function_toporder): Use
5245         cgraph_function_with_gimple_body_p.
5246         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5247         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
5248         (function_called_by_processed_nodes_p): Likewise.
5250 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
5252         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
5253         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
5254         entries.
5255         (mabi=): Replace with separate entries for mabi=altivec,
5256         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
5257         mabi=ieeelongdouble and mabi=ibmlongdouble.
5258         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
5259         check for -mabi=spe without SPE ABI support here.
5260         (rs6000_handle_option): Replace OPT_mabi_ handling with
5261         OPT_mabi_altivec and OPT_mabi_spe handling.
5263 2011-05-06  Cary Coutant  <ccoutant@google.com>
5265         * dwarf2out.c (contains_subprogram_definition): New function.
5266         (should_move_die_to_comdat): Call it.
5268 2011-05-06  Jeff Law  <law@redhat.com>
5270         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
5271         remove_ctrl_stmt_and_useless_edges.
5272         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
5273         (fixup_template_block, thread_single_edge): Likewise.
5274         (mark_threaded_blocks): Use THREAD_TARGET.
5276 2011-05-06  Alan Modra  <amodra@gmail.com>
5278         PR target/48900
5279         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5280         const0_rtx as the arg to the dummy __tls_get_addr libcall.
5282 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
5284         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
5285         constraint modifier to "r".
5287 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
5289         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
5290         fall through for OPT_mcmodel_.
5292 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5294         * config/s390/s390.c (s390_asm_trampoline_template): Comment
5295         instruction sizes.
5296         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
5298 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5300         PR target/47930
5301         * config/arm/arm.opt (marm): Document it.
5302         (mthumb): Reject negative variant.
5304 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
5306         PR target/48898
5307         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5308         Fix typo in "ccvt" variable name.
5310 2011-05-06  Tristan Gingold  <gingold@adacore.com>
5312         PR target/48895
5313         * config/vms/vms-ar.c (main): Remove cwd variable.
5315 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
5317         PR debug/48902
5318         * var-tracking.c (prepare_call_arguments): Move else before #endif.
5320 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
5322         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
5323         * gimplify.c (gimplify_switch_expr): Likewise.
5324         * omp-low.c (expand_omp_sections): Likewise.
5325         * tree-eh.c (lower_try_finally_switch): Likewise.
5326         (lower_eh_dispatch): Likewise.
5327         * tree.h (build_case_label): Declare.
5328         * tree.c (build_case_label): Define.
5330 2011-05-05  Jason Merrill  <jason@redhat.com>
5332         PR c++/40975
5333         * tree-inline.c (copy_tree_r): Use copy_statement_list.
5334         (copy_statement_list): Don't recurse.
5335         * stor-layout.c (copy_self_referential_tree_r): Don't allow
5336         STATEMENT_LIST.
5338 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
5340         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
5341         through from -mfpu= handling.
5342         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
5344 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
5346         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
5347         POST_MODIFY.
5349 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
5351         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
5352         for 11.31.
5353         (hppa[12]*-*-hpux11*): Ditto.
5354         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
5355         * config/ia64/hpux-unix2003.h: New.
5356         * config/pa/pa-hpux1131.opt: New.
5357         * config/pa/pa-hpux1131.h: New.
5358         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
5359         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
5360         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
5362 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
5364         PR debug/48853
5365         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
5366         instead of mode as 3rd argument to recursive call.
5367         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
5368         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
5369         VOIDmode.
5370         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
5371         don't give up if mode is Pmode and mem_mode is not VOIDmode.
5372         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
5373         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
5375 2011-05-05  Julian Brown  <julian@codesourcery.com>
5377         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
5378         parenthesis in D-register case.
5380 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
5382         * opt-functions.awk (var_type_struct): Handle Enum options.
5383         * optc-gen.awk: Don't check range of variables of character type.
5384         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
5385         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
5386         rs6000_sdata_name, rs6000_explicit_options): Remove.
5387         (rs6000_option_override_internal): Check for -malign-power here.
5388         Use global_options_set instead of rs6000_explicit_options.
5389         (rs6000_parse_fpu_option): Remove.
5390         (rs6000_handle_option): Access variables via opts and opts_set
5391         pointers.  Use error_at and warning_at.  Add fall-through
5392         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
5393         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
5394         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
5395         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
5396         here.  Don't use rs6000_parse_fpu_option.
5397         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
5398         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
5399         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
5400         (mrecip=): Use Var.
5401         (mspe): Use Var and Save.
5402         (mtraceback=): Use Enum and Var.
5403         (rs6000_traceback_type): New Enum and EnumValue entries.
5404         (mfloat-gprs=): Use Enum, Var and Save.
5405         (rs6000_float_gprs): New Enum and EnumValue entries.
5406         (mlong-double-): use Var and Save.
5407         (msched-costly-dep=, minsert-sched-nops=): Use Var.
5408         (malign-): Use Enum and Var.
5409         (rs6000_alignment_flags): New Enum and EnumValue entries.
5410         (mfpu=): Use Enum.
5411         (fpu_type_t): New Enum and EnumValue entries.
5412         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5413         global_options_set instead of rs6000_explicit_options.
5414         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5415         global_options_set instead of rs6000_explicit_options.
5416         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5417         global_options_set instead of rs6000_explicit_options.
5418         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5419         global_options_set instead of rs6000_explicit_options.
5420         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
5421         global_options_set instead of rs6000_explicit_options.
5422         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5423         global_options_set instead of rs6000_explicit_options.
5424         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
5425         definition.
5426         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5427         global_options_set instead of rs6000_explicit_options.
5428         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
5429         (rs6000_cmodel): New Enum and EnumValue entries.
5430         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5431         global_options_set instead of rs6000_explicit_options.
5432         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
5433         (mtls-size=): Use Enum and Var.
5434         (rs6000_tls_size): New Enum and EnumValue entries.
5436 2011-05-05  Michael Matz  <matz@suse.de>
5438         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
5439         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
5440         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
5441         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
5442         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
5443         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
5444         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
5445         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
5446         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
5447         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
5448         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
5449         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
5450         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
5451         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
5452         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
5453         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
5455 2011-05-05  Richard Guenther  <rguenther@suse.de>
5457         * expmed.c (expand_variable_shift): Rename to ...
5458         (expand_shift_1): ... this.  Take an expanded shift amount.
5459         For rotates recurse directly not building trees for the shift amount.
5460         (expand_variable_shift): Wrap around expand_shift_1.
5461         (expand_shift): Adjust.
5463 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
5465         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
5467 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
5469         * tree.h (get_pending_sizes): Remove prototype.
5470         (put_pending_size): Likewise.
5471         (put_pending_sizes): Likewise.
5472         * stor-layout.c (pending_sizes): Delete.
5473         (get_pending_sizes): Likewise.
5474         (put_pending_size): Likewise.
5475         (put_pending_sizes): Likewise.
5476         (variable_size): Do not call put_pending_size and tidy up.
5477         * function.h (struct function): Remove dont_save_pending_sizes_p.
5478         * lto-streamer-in.c (input_function): Do not stream it.
5479         * lto-streamer-out.c (output_function): Likewise.
5480         * tree-inline.c (initialize_cfun): Do not copy it.
5481         * c-decl.c (store_parm_decls): Do not set it.
5482         * omp-low.c (create_task_copyfn): Likewise.
5483         * tree-optimize.c (tree_rest_of_compilation): Likewise.
5485 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
5487         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
5488         conditions.
5489         (*movdf_internal): Ditto.
5490         (*movdf_internal_nointeger): Ditto.
5491         (*movsf_internal): Ditto.
5493 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
5495         * c-decl.c (finish_decl): Don't call get_pending_sizes.
5496         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
5497         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
5498         (c_variable_size): Remove.
5499         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
5500         call put_pending_sizes.
5501         (get_parm_info): Add parameter expr.  Use it to set
5502         arg_info->pending_sizes.
5503         (store_parm_decls): Use arg_info->pending_sizes instead or calling
5504         get_pending_sizes.
5505         * c-parser.c (c_parser_parms_declarator): Update call to
5506         c_parser_parms_list_declarator.
5507         (c_parser_parms_list_declarator): Take parameter expr.  Update
5508         call to push_parm_decl.  Update recursive call.  Don't call
5509         get_pending_sizes.  Update calls to get_parm_info.
5510         (c_parser_objc_method_definition): Update calls to
5511         c_parser_objc_method_decl and objc_start_method_definition.
5512         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
5513         (c_parser_objc_method_decl): Add parameter expr.  Update call to
5514         grokparm.
5515         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
5516         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
5517         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
5519 2011-05-05  Michael Hope  <michael.hope@linaro.org>
5521         PR pch/45979
5522         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
5523         __ARM_EABI__ hosts.
5525 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5527         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
5528         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5529         (spu_output_mi_thunk): New function.
5531 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5533         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
5534         targetm.asm_out.print_operand.
5535         * config/sol2.c: Include target.h.
5537 2011-05-04  Jan Hubicka  <jh@suse.cz>
5539         * ipa-inline.c (reset_edge_caches): New function.
5540         (update_caller_keys): Add check_inlinablity_for; do not
5541         reset edge caches; remove now unnecesary loop.
5542         (update_callee_keys): Add comments; reset node_growth_cache of callee.
5543         (update_all_callee_keys): Likewise.
5544         (inline_small_functions): Sanity check cache; update code
5545         recomputing it.
5547 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
5549         PR rtl-optimization/47612
5550         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
5551         as the last insn of the sequence to be moved.
5553 2011-05-04  Tobias Burnus  <burnus@net-b.de>
5555         PR fortran/48864
5556         * doc/invoke.texi (Ofast): Document that it
5557         enables Fortran's -fno-protect-parens.
5559 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
5561         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
5563 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
5565         * stor-layout.c (variable_size): Do not issue errors.
5567 2011-05-04  Richard Guenther  <rguenther@suse.de>
5569         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
5570         for array-ref indices.
5571         (tree_coverage_counter_addr): Likewise.
5572         (build_fn_info_type): Use size_int for index types.
5573         (build_gcov_info): Likewise.
5575 2011-05-04  Richard Guenther  <rguenther@suse.de>
5577         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
5578         to build_int_cst.
5579         * c-typeck.c (really_start_incremental_init): Use bitsize_int
5580         for constructor indices.
5581         (push_init_level): Likewise.
5583 2011-05-04  Richard Guenther  <rguenther@suse.de>
5585         * explow.c (promote_mode): Move variable declarations before code.
5587 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
5589         * tree.h (build_function_type_array): Declare.
5590         (build_varargs_function_type_array): Declare.
5591         (build_function_type_vec, build_varargs_function_type_vec): Define.
5592         * tree.c (build_function_type_array_1): New function.
5593         (build_function_type_array): New function.
5594         (build_varargs_function_type_array): New function.
5596 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
5598         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
5599         before setting STMT_VINFO_TYPE.
5601 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5603         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
5604         instead of spu_pass_by_reference.
5606 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5608         * calls.c (emit_library_call_value_1): Invoke
5609         promote_function_mode hook on libcall arguments.
5610         * explow.c (promote_function_mode, promote_mode): Handle TYPE
5611         argument being NULL.
5612         * targhooks.c (default_promote_function_mode): Lisewise.
5613         * config/s390/s390.c (s390_promote_function_mode): Likewise.
5614         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
5616         * doc/tm.texi: Document that TYPE argument might be NULL.
5618 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
5620         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
5622 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
5624         From Bernd Schmidt
5625         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
5627 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5629         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
5630         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
5631         Move ...
5632         * mips-tfile.c: ... here.
5633         Don't include coretypes.h, tm.h, filenames.h.
5634         (saber_stop): Remove definition and all calls.
5635         [__SABER__]: Remove.
5636         (__LINE__): Remove default.
5637         (Size_t, Ptrdiff_t): Remove definitions.
5638         Replace by size_t, ptrdiff_t.
5639         [!MIPS_DEBUGGING_INFO]: Remove.
5640         (SHASH_SIZE, THASH_SIZE): Remove defaults.
5641         (progname): Add const.
5642         (STATIC): Remove.
5643         Replace all uses by static.
5644         (ALIGN_SYMTABLE_OFFSET): Remove default.
5645         * mips-tdump.c: Don't include coretypes.h, tm.h.
5646         Remove !MIPS_IS_STAB guard.
5647         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
5648         $(TM_H), filenames.h dependencies.
5649         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
5651 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
5653         From Jie Zhang
5654         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
5655         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5657 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
5659         From Bernd Schmidt
5660         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
5661         account and save/restore RETS.
5662         (PROFILE_BEFORE_PROLOGUE): Define.
5663         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
5664         the push insn to use predecrement.
5666 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
5668         From Jie Zhang
5669         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
5671 2011-05-04  Nick Clifton  <nickc@redhat.com>
5673         * config/mn10300/mn10300.c: Include cfgloop.h.
5674         (DUMP): New macro.
5675         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
5676         Lcc or a FLcc insn into the instruction stream.
5677         (mn10300_block_contains_call): New function.  Returns true if the
5678         given basic block contains a CALL insn.
5679         (mn10300_loop_contains_call_insn): New function.  Returns true if
5680         the given loop contains a CALL insn.
5681         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
5682         to use the SETLB and Lcc or FLcc insns.
5683         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
5684         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
5685         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
5686         disable the SETLB optimization.
5687         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
5688         __SETLB__ or __NO_SETLB__.
5689         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
5690         (movsf_internal): Handle MDR register.
5691         (cmpsi): Make visible.
5692         (setlb): New pattern.
5693         (Lcc): New pattern.
5694         (FLcc): New pattern.
5696 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
5698         PR target/48860
5699         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
5700         for reg<->xmm moves.
5701         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
5702         (vec_concatv2di_rex64_sse): Ditto.
5703         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
5704         (*vec_extractv2di_1_rex64): Ditto.
5706         Revert:
5707         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
5709         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5710         reg<->xmm moves.
5711         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
5713 2011-05-04  Richard Guenther  <rguenther@suse.de>
5715         * tree.h (int_const_binop): Remove notrunc argument.
5716         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
5717         create integer constants that are properly truncated.
5718         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
5719         (const_binop): Remove zero notrunc argument to int_const_binop.
5720         (size_binop_loc): Likewise.
5721         (fold_div_compare): Likewise.
5722         (maybe_canonicalize_comparison_1): Likewise.
5723         (fold_comparison): Likewise.
5724         (fold_binary_loc): Likewise.
5725         (multiple_of_p): Likewise.
5726         * expr.c (store_constructor): Likewise.
5727         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5728         (maybe_fold_stmt_addition): Likewise.
5729         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
5730         * stor-layout.c (layout_type): Likewise.
5731         * tree-data-ref.c (tree_fold_divides_p): Likewise.
5732         * tree-sra.c (build_ref_for_offset): Likewise.
5733         (build_user_friendly_ref_for_offset): Likewise.
5734         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
5735         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5736         * tree-ssa-loop-niter.c (inverse): Likewise.
5737         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5738         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
5739         * tree-switch-conversion.c (check_range): Likewise.
5740         (build_constructors): Likewise.
5741         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5742         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
5743         (extract_range_from_assert): Likewise.
5744         (vrp_int_const_binop): Likewise.
5745         (extract_range_from_binary_expr): Likewise.
5746         (extract_range_from_unary_expr): Likewise.
5747         (check_array_ref): Likewise.
5748         (find_case_label_range): Likewise.
5749         (simplify_div_or_mod_using_ranges): Likewise.
5750         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
5751         comparing case labels for merging.
5753 2011-05-03  Mark Wielaard  <mjw@redhat.com>
5755         * dwarf2out.c (debug_str_hash_forced): Removed.
5756         (gen_label_for_indirect_string): Removed.
5757         (get_debug_string_label): Removed.
5758         (AT_string_form): Generate label directly.
5759         (output_indirect_string): Test indirect_string_node for
5760         DW_FORM_strp instead of checking label and refcount.
5761         (prune_indirect_string): Removed.
5762         (prune_unused_types): Don't check debug_str_hash_forced or
5763         call prune_indirect_string.
5765 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
5767         PR other/48093
5768         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
5770 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
5772         PR debug/47994
5773         PR debug/47919
5774         * combine.c (try_combine): Skip debug insns at m_split tests.
5776 2011-04-26  Mark Wielaard  <mjw@redhat.com>
5778         PR42288
5779         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
5780         when info_section_emitted.
5782 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
5784         * config/mips/mips-opts.h: New.
5785         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
5786         to mips-opts.h.
5787         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
5788         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
5789         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
5790         via opts pointer.
5791         * config/mips/mips.h (enum mips_code_readable_setting): Move to
5792         mips-opts.h.
5793         (mips_abi, mips_code_readable): Don't declare.
5794         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
5795         (mabi=): Use Enum and Var.
5796         (mips_abi): New Enum and EnumValue entries.
5797         (mcode-readable=): Use Enum and Var.
5798         (mips_code_readable_setting): New Enum and EnumValue entries.
5799         (mr10k-cache-barrier=): Use Enum and Var.
5800         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
5802 2011-05-03  Jan Hubicka  <jh@suse.cz>
5804         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
5805         replace hash by pointer map.
5806         (cgraph_node_set_element_def, cgraph_node_set_element,
5807         const_cgraph_node_set_element, varpool_node_set_element_def,
5808         varpool_node_set_element, const_varpool_node_set_element): Remove.
5809         (free_cgraph_node_set, free_varpool_node_set): New function.
5810         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
5811         * tree-emutls.c: Free varpool node set.
5812         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
5813         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5814         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
5815         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5816         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
5817         Move here from ipa.c; implement using pointer_map
5818         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
5819         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5820         debug_cgraph_node_set, varpool_node_set_new,
5821         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5822         dump_varpool_node_set, debug_varpool_node_set):
5823         Move to ipa-uitls.c.
5824         * passes.c (ipa_write_summaries): Update.
5826 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
5828         From Mike Frysinger:
5829         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
5830         bf542/bf544/bf547/bf548/bf549.
5832 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
5834         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
5836 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
5838         From Bernd Schmidt:
5839         * config/bfin/bfin.md (MOVCC): New mode_macro.
5840         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
5841         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
5842         comments from generated assembly.
5844 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
5846         From Bernd Schmidt
5847         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
5848         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
5849         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
5850         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
5851         * config/bfin/lib1funcs.asm (___muldi3): New function.
5853 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
5855         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
5856         build_function_type_list instead of build_function_type.
5857         Rearrange initialization of `args' to do so.
5859 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
5861         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
5862         instead of build_function_type.
5864 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
5866         * config/rs6000/rs6000.c (spe_init_builtins): Call
5867         build_function_type_list instead of build_function_type.
5868         (paired_init_builtins, altivec_init_builtins): Likewise.
5869         (builtin_function_type): Likewise.
5871 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
5873         * config/sh/sh.c (sh_media_init_builtins): Call
5874         build_function_type_list instead of build_function_type.
5876 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
5878         * config/sparc/sparc.c (sparc_file_end): Call
5879         build_function_type_list instead of build_function_type.
5881 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
5883         * config/alpha/alpha.c (alpha_init_builtins): Call
5884         build_function_type_list instead of build_function_type.
5886 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
5888         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
5889         build_function_type_list instead of build_function_type.
5891 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
5893         * config/iq2000/i2000.c (iq2000_init_builtins): Call
5894         build_function_type_list instead of build_function_type.
5895         Delete `endlink' variable.
5897 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
5899         * config/avr/avr.c (avr_init_builtins): Call
5900         build_function_type_list instead of build_function_type.
5902 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
5904         * config/picochip/picochip.c (picochip_init_builtins): Call
5905         build_function_type_list instead of build_function_type.
5906         Delete `endlink' variable.
5908 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
5910         * config/bfin/bfin.c (bfin_init_builtins): Call
5911         build_function_type_list instead of build_function_type.
5913 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
5915         From Bernd Schmidt
5916         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
5917         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
5919 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
5921         From Jie Zhang:
5922         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
5923         libbffastfp overrides libgcc when -mfast-fp.
5925 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
5927         Originally from Bernd Schmidt
5928         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
5929         * config/bfin/bfin.c (override_options): Test it and error if
5930         TARGET_FDPIC.
5932 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
5934         Originally From Bernd Schmidt
5935         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
5936         FD-PIC.
5938 2011-05-03  Jeff Law  <law@redhat.com>
5940         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
5941         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
5942         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
5943         than accessing AUX field directly.  Free the AUX field before
5944         clearing it.
5945         (thread_block, thread_through_loop_header): Likewise.
5946         (thread_single_edge, mark_threaded_blocks): Likewise.
5947         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
5948         (register_jump_thread): Do not attempt to thread to a NULL edge.
5950 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
5952         * function.c (init_function_start): Call decide_function_section.
5953         * varasm.c (decide_function_section): New function.
5954         (assemble_start_function): When not using
5955         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
5956         or first_function_block_is_cold.
5957         * rtl.h (decide_function_section): Declare.
5959 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
5960             Jakub Jelinek  <jakub@redhat.com>
5962         PR target/48774
5963         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
5964         only succeed if req_mode is the same as set_mode.
5966 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
5968         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
5969         * genemit.c (gen_exp): Handle RETURN.
5970         * emit-rtl.c (verify_rtx_sharing): Likewise.
5971         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
5972         * rtl.c (copy_rtx): RETURN is shared.
5973         * rtl.h (enum global_rtl_index): Add GR_RETURN.
5974         (ret_rtx): New.
5975         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
5976         * config/s390/s390.c (s390_emit_epilogue): Likewise.
5977         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
5978         * config/cris/cris.c (cris_expand_return): Likewise.
5979         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
5980         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
5981         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
5982         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
5983         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
5984         Likewise.
5985         * config/v850/v850.c (expand_epilogue): Likewise.
5986         * config/bfin/bfin.c (bfin_expand_call): Likewise.
5987         * config/arm/arm.md (epilogue): Likewise.
5988         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
5989         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
5990         variable to ret_reg.
5992 2011-05-03  Richard Guenther  <rguenther@suse.de>
5994         PR lto/48846
5995         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
5996         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
5997         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5999 2011-05-03  Richard Guenther  <rguenther@suse.de>
6001         * c-decl.c (grokdeclarator): Instead of looking at
6002         TREE_OVERFLOW check if the constant fits in the index type.
6004 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
6006         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6007         (vec_store_lanes<mode><mode>): Likewise.
6009 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
6011         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6012         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6013         convert_optab_index values.
6014         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6015         * genopinit.c (optabs): Initialize the new optabs.
6016         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6017         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6018         (expand_STORE_LANES): New functions.
6019         * tree.h (build_array_type_nelts): Declare.
6020         * tree.c (build_array_type_nelts): New function.
6021         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6022         (vect_model_load_cost): Likewise.
6023         (vect_store_lanes_supported, vect_load_lanes_supported)
6024         (vect_record_strided_load_vectors): Declare.
6025         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6026         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6027         (vect_transform_strided_load): Split out statement recording into...
6028         (vect_record_strided_load_vectors): ...this new function.
6029         * tree-vect-stmts.c (create_vector_array, read_vector_array)
6030         (write_vector_array, create_array_ref): New functions.
6031         (vect_model_store_cost): Add store_lanes_p argument.
6032         (vect_model_load_cost): Add load_lanes_p argument.
6033         (vectorizable_store): Try to use store-lanes functions for
6034         interleaved stores.
6035         (vectorizable_load): Likewise load-lanes and loads.
6036         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6037         to vect_model_store_cost.
6038         (vect_build_slp_tree): Likewise vect_model_load_cost.
6040 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
6042         * hooks.h (hook_bool_mode_uhwi_false): Declare.
6043         * hooks.c (hook_bool_mode_uhwi_false): New function.
6044         * target.def (array_mode_supported_p): New hook.
6045         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6046         * doc/tm.texi: Regenerate.
6047         * stor-layout.c (mode_for_array): New function.
6048         (layout_type): Use it.
6049         * config/arm/arm.c (arm_array_mode_supported_p): New function.
6050         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6052 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
6054         PR target/48723
6055         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6056         for -fstack-check if the size to allocate is negative.
6058 2011-05-02  Lawrence Crowl  <crowl@google.com>
6060         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6061         (timevar_cond_start): New for starting a timer only when it is not
6062         already running.
6063         (timevar_cond_stop): New for stopping a timer when it was not already
6064         running.
6066         * timevar.c (timevar_stop): Enable start/stop timers to start again.
6067         (timevar_cond_start): New as above.
6068         (timevar_cond_stop): New as above.
6070         * timevar.def: Add start/stop timers for compiler phases,
6071         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6072         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6073         and TV_PHASE_FINALIZE.
6074         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6075         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6076         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6077         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6078         Make unused TV_OVERLOAD into a start/stop timer.
6080         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6081         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6082         to indicate that they are start/stop timers.
6084         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6085         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6086         Move initialization to do_compile.
6087         (do_compile): Add initialization from above.
6088         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6090         * c-decl.c (c_write_global_declarations): Add start/stop of
6091         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6093         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6094         or TV_PARSE_INLINE, as appropriate.
6095         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6096         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6098 2011-05-02  Jason Merrill  <jason@redhat.com>
6100         PR c++/40975
6101         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6103 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
6105         PR c/35445
6106         * c-decl.c (finish_decl): Only create a composite if the types are
6107         compatible.
6109 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
6111         * config/fr30/fr30-protos.h (Mmode): Don't define.
6112         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
6113         definition where used.
6114         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6115         define.  Expand definitions where used.
6116         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6117         Expand definitions where used.
6118         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6119         rx_function_arg, rx_function_arg_advance,
6120         rx_function_arg_boundary): Expand definitions of those macros.
6121         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
6122         definition where used.
6124 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
6126         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6127         reg<->xmm moves.
6128         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6129         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
6130         with *movv2sf_internal_rex64_avx.
6131         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6132         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6133         Use %v prefix in insn mnemonic to handle TARGET_AVX.
6134         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
6135         "vex" in "prefix" attribute calculation.
6136         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
6138 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
6140         PR target/47951
6141         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6142         inputs match the output.
6144 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
6146         PR target/47955
6147         * config/m68k/m68k.c (m68k_expand_prologue): Set
6148         current_function_static_stack_size.
6150 2011-05-02   Jan Hubicka  <jh@suse.cz>
6152         * lto-streamer.c (lto_streamer_cache_insert_1,
6153         lto_streamer_cache_lookup, lto_streamer_cache_create,
6154         lto_streamer_cache_delete): Use pointer map instead of hashtable.
6155         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6157 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
6159         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6160         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6161         config/m68k/t-opts: New files.
6162         * config/m68k/m68k-tables.opt: New file (generated).
6163         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6164         extra_options and m68k/t-opts to tmake_file.
6165         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6166         (all_isas): Initialize using m68k-isas.def.
6167         (all_microarchs): Initialize using m68k-microarchs.def.
6168         (m68k_find_selection): Remove.
6169         (m68k_handle_option): Don't assert that global structures are in
6170         use.  Use error_at.  Access variables via opts pointer.  Don't
6171         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
6172         directly for -m68020-40 and -m68020-60.
6173         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6174         m68k_tune_entry here.
6175         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6176         to m68k-opts.h.
6177         (m68k_library_id_string): Remove declaration.
6178         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
6179         (m68k_library_id_string): New Variable.
6180         (march=, mcpu=, mtune=): Use Enum and Var.
6182 2011-05-02  Richard Guenther  <rguenther@suse.de>
6184         * varasm.c (output_constructor_regular_field): Compute zero-based
6185         index with double-ints.  Make sure to ICE instead of producing
6186         wrong code.
6187         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6188         in asserts.  Properly use a signed type.
6190 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
6192         * config/i386/sse.md (V): New mode iterator.
6193         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
6194         TARGET_SSE2.
6195         (V_256): Rename from AVX256MODE.
6196         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
6197         condition to all users.
6198         (VF1): Ditto.
6199         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
6200         condition to all users.
6201         (VF_128): Make V4SF mode unconditional.
6202         (VF_256): Rename from AVX256MODEF2P.
6203         (VI4F_128): Rename from SSEMODE4S.
6204         (VI8F_128): Rename from SSEMODE2D.
6205         (VI4F_256): Rename from AVX256MODE8P.
6206         (VI8F_256): Rename from AVX256MODE4P.
6207         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6208         (ssescalarmodesuffix): Remove SF and DF modes.
6209         (SSEMODE124): Remove.
6210         (SSEMODE1248): Ditto.
6211         (SSEMODEF2P): Ditto.
6212         (AVXMODEF2P): Ditto.
6213         (AVXMODEFDP): Ditto.
6214         (AVXMODEFSP): Ditto.
6215         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
6216         unconditional.
6217         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
6218         unconditional.
6219         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
6220         xop_pcmov_<mode>256.  Use V mode iterator.
6222         Adjust RTX patterns globally for renamed mode attributes.
6224 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6226         * haifa-sched.c (sched_emit_insn): Emit insn before first
6227         non-scheduled insn.  Inform back-end about new insn.  Add
6228         new insn to scheduled_insns list.
6230 2011-05-02  Richard Guenther  <rguenther@suse.de>
6232         PR tree-optimization/48822
6233         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
6234         (process_scc): Indicate which iteration we start.
6236 2011-05-02  Jan Hubicka  <jh@suse.cz>
6238         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
6239         (lto_section_overrun): New.
6240         * lto-section-out.c (append_block): Rename to ...
6241         (lto_append_block): ... this one; export.
6242         (lto_output_1_stream): Move lto lto-streamer.h
6243         (lto_output_data_stream): Update.
6244         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
6245         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
6246         functions.
6248 2011-05-02  Richard Guenther  <rguenther@suse.de>
6250         * tree.c (tree_code_counts): New global array.
6251         (record_node_allocation_statistics): Count individual tree codes.
6252         (dump_tree_statistics): Dump individual code stats.
6254 2011-05-01  Jan Hubicka  <jh@suse.cz>
6256         * ipa-inline.c (caller_growth_limits): Fix thinko when
6257         looking for largest stack frame.
6258         * ipa-inline.h (dump_inline_summary): Declare.
6259         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
6260         on stack usage.
6261         (dump_inline_summary): Export.
6262         (debug_inline_summary): Declare as DEBUG_FUNCTION.
6264 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
6266         * reginfo.c (memory_move_cost): Change rclass argument type form
6267         'enum reg_class' to reg_class_t.
6268         * reload.h (memory_move_cost): Update prototype.
6269         * postreload.c reload_cse_simplify_set): Change type dclass var to
6270         reg_class_t.
6271         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
6272         Update prototype.
6273         (ira_allocate_and_set_costs): Change aclass argument type form
6274         'enum reg_class' to reg_class_t.
6275         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6276         Change aclass argument type to reg_class_t.
6277         (update_conflict_hard_reg_costs): Change type aclass and pref vars
6278         to reg_class_t.
6279         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
6280         memory_move_cost call.
6282         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
6283         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
6284         Change type tmp var to reg_class_t.
6286 2011-04-30  Jan Hubicka  <jh@suse.cz>
6288         * ipa-inline.c (can_inline_edge_p): Disregard limits when
6289         inlining into function with flatten attribute.
6290         (want_inline_small_function_p): Be more realistic about inlining
6291         cold calls where callee size grows.
6293 2011-04-30  Jan Hubicka  <jh@suse.cz>
6295         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
6296         flags.
6298 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
6300         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6301         PRINT_OPERAND_PUNCT_VALID_P): Remove.
6302         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
6303         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
6304         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6305         (print_operand): Rename to...
6306         (sparc_print_operand): ...this. Make static. Adjust
6307         sparc_print_operand function call.
6308         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
6309         functions.
6311 2011-04-30  Jan Hubicka  <jh@suse.cz>
6313         PR middle-end/48752
6314         * ipa-inline.c (early_inliner): Disable when doing late
6315         addition of function.
6317 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
6319         * dwarf2out.c (get_address_mode): New inline.
6320         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
6321         if not dwarf_strict emit
6322         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
6323         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
6324         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
6325         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
6326         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
6327         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
6328         mem_loc_descriptor callers.
6329         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6330         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
6331         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
6332         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
6333         (base_types): New variable.
6334         (get_base_type_offset, calc_base_type_die_sizes,
6335         base_type_for_mode, mark_base_types, base_type_cmp,
6336         move_marked_base_types): New functions.
6337         (calc_die_sizes): Assert that die_offset is 0 or equal to
6338         next_die_offset.
6339         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
6340         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
6341         callers.  If not dwarf_strict, call mem_loc_descriptor even for
6342         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
6343         (gen_subprogram_die): Don't give up on call site parameters
6344         with non-integral or large integral modes.  Adjust
6345         mem_loc_descriptor callers.
6346         (prune_unused_types): Call prune_unused_types_mark on base_types
6347         vector entries.
6348         (resolve_addr): Call mark_base_types.
6349         (dwarf2out_finish): Call move_marked_base_types.
6351         PR tree-optimization/48809
6352         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
6353         type.
6354         (gen_inbound_check): Don't compute index_expr - range_min in utype
6355         again, instead reuse SSA_NAME initialized in build_arrays.
6356         Remove two useless gsi_for_stmt calls.
6358 2011-04-29  Jeff Law  <law@redhat.com>
6360         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
6362 2011-04-29  Martin Jambor  <mjambor@suse.cz>
6364         * cgraph.h (cgraph_postorder): Remove declaration.
6365         * ipa-utils.h (ipa_free_postorder_info): Declare.
6366         (ipa_reverse_postorder): Likewise.
6367         * cgraphunit.c: Include ipa-utils.h.
6368         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
6369         * ipa-inline.c: Include ipa-utils.h.
6370         (ipa_inline): Update call to ipa_reverse_postorder.
6371         * ipa-pure-const.c (propagate_pure_const): Update call to
6372         ipa_reduced_postorder and ipa_print_order.  Call
6373         ipa_free_postorder_info to clean up.
6374         (propagate_nothrow): Likewise.
6375         * ipa-reference.c (propagate): Removed a useless call to
6376         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
6377         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
6378         * ipa.c: Include ipa-utils.h.
6379         (ipa_profile): Update call to ipa_reverse_postorder.
6380         (cgraph_postorder): Moved to...
6381         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
6382         (ipa_utils_print_order): Renamed to ipa_print_order.
6383         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
6384         comments.
6385         (ipa_free_postorder_info): New function.
6386         * passes.c: Include ipa-utils.h.
6387         (do_per_function_toporder): Update call to ipa_reverse_postorder.
6388         (ipa_write_summaries): Likewise.
6389         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
6390         (cgraphunit.o): Likewise.
6391         (ipa.o): Likewise.
6392         (ipa-inline.o): Likewise.
6394 2011-04-29  Jan Hubicka  <jh@suse.cz>
6396         * gcc.dg/tree-ssa/inline-10.c: New testcase.
6397         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
6398         * ipa-inline.h (clause_t): Turn into unsigned int.
6399         * ipa-inline-analysis.c (add_clause): Do more simplification.
6400         (and_predicates): Shortcut more cases.
6401         (predicates_equal_p): Move forward; check that clauses are properly
6402         ordered.
6403         (or_predicates): Shortcut more cases.
6404         (edge_execution_predicate): Rewrite as...
6405         (set_cond_stmt_execution_predicate): ... this function; handle
6406         __builtin_constant_p.
6407         (set_switch_stmt_execution_predicate): New .
6408         (compute_bb_predicates): New.
6409         (will_be_nonconstant_predicate): Update TODO.
6410         (estimate_function_body_sizes): Use compute_bb_predicates
6411         and free them later, always try to estimate if stmt is constant.
6412         (estimate_time_after_inlining, estimate_size_after_inlining):
6413         Gracefully handle optimized out edges.
6414         (read_predicate): Fix off by one error.
6416 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
6418         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
6420 2011-04-27  Xinliang David Li  <davidxl@google.com>
6422         * tree-profile.c (init_ic_make_global_vars): Set
6423         tls attribute on ic vars.
6424         * coverage.c (coverage_end_function): Initialize
6425         function_list with zero.
6427 2011-04-29  Richard Guenther  <rguenther@suse.de>
6429         * builtins.c (fold_builtin_classify_type): Use integer_type_node
6430         for the type of the result.
6431         (fold_builtin_isascii): Likewise.
6432         (fold_builtin_toascii): Use integer_type_node where appropriate.
6433         (fold_builtin_logb): Likewise.
6434         (fold_builtin_frexp): Likewise.
6435         (fold_builtin_strstr): Likewise.
6436         (fold_builtin_strpbrk): Likewise.
6437         (fold_builtin_fputs): Likewise.
6438         (fold_builtin_sprintf): Likewise.
6439         (fold_builtin_snprintf): Likewise.
6440         (fold_builtin_printf): Likewise.
6441         (do_mpfr_remquo): Use a proper type for the assigned constant.
6442         (do_mpfr_lgamma_r): Likewise.
6443         * dwarf2out.c (resolve_one_addr): Use size_int.
6444         * except.c (init_eh): Likewise.
6445         (assign_filter_values): Use integer_type_node for filter values.
6446         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
6447         indices.
6448         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
6449         for EH region numbers.
6450         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
6451         for the shift amount.
6453 2011-04-29  Richard Guenther  <rguenther@suse.de>
6455         * expr.h (expand_shift): Rename to ...
6456         (expand_variable_shift): ... this.
6457         (expand_shift): Take a constant shift amount.
6458         * expmed.c (expand_shift): Rename to ...
6459         (expand_variable_shift): ... this.
6460         (expand_shift): New wrapper around expand_variable_shift.
6461         * expr.c (convert_move, emit_group_load_1, emit_group_store,
6462         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
6463         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
6464         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
6465         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
6466         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
6467         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
6468         emit_store_flag_1, emit_store_flag): Likewise.
6469         * builtins.c (expand_builtin_signbit): Likewise.
6470         * calls.c (load_register_parameters): Likewise.
6471         * function.c (assign_parm_setup_block): Likewise.
6472         * lower-subreg.c (resolve_shift_zext): Likewise.
6473         * optabs.c (widen_bswap, expand_abs_nojump,
6474         expand_one_cmpl_abs_nojump, expand_float): Likewise.
6475         * spu/spu.c (spu_expand_extv): Likewise.
6476         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6478 2011-04-29  Richard Guenther  <rguenther@suse.de>
6480         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
6481         for the remapped region number.
6482         * predict.c (build_predict_expr): Use integer_type_node for the
6483         predict kind.
6484         * fold-const.c (fold_binary_loc): Use integer_type_node for
6485         the shift amount.  Use a proper type for the PLUS_EXPR operand.
6487 2011-04-29  Michael Matz  <matz@suse.de>
6489         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
6490         other trees that just builtins.
6491         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
6493 2011-04-29  Richard Guenther  <rguenther@suse.de>
6495         * tree-nested.c (get_trampoline_type): Use size_int.
6496         (get_nl_goto_field): Likewise.
6497         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
6498         for all indexes.
6499         (lower_eh_constructs_2): Likewise.
6500         (lower_resx): Likewise.
6501         (lower_eh_dispatch): Likewise.
6502         * tree-mudflap.c (mf_build_string): Use size_int.
6503         (mudflap_register_call): Use integer_type_node for the flag.
6504         (mudflap_enqueue_constant): Use size_int.
6505         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
6506         instead of rebuilding it.
6508 2011-04-29  Richard Guenther  <rguenther@suse.de>
6510         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
6511         Handle OBJ_TYPE_REF.
6512         (find_func_aliases_for_call): Use it more consistently.
6514 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
6516         * haifa-sched.c (last_nondebug_scheduled_insn): New.
6517         (rank_for_schedule): Use it.
6518         (schedule_block): Set it.
6520 2011-04-28  David Li  <davidxl@google.com>
6522         * tree.c (crc32_string): Use crc32_byte.
6523         (crc32_byte): New function.
6524         * tree.h (crc32_byte): New function.
6525         * gcov.c (read_graph_file): Handle new cfg_cksum.
6526         (read_count_file): Ditto.
6527         * profile.c (instrument_values): Ditto.
6528         (get_exec_counts): Ditto.
6529         (read_profile_edge_counts): Ditto.
6530         (compute_branch_probabilities): Ditto.
6531         (compute_value_histograms): Ditto.
6532         (branch_prob): Ditto.
6533         (end_branch_prob): Ditto.
6534         * coverage.c (read_counts_file): Ditto.
6535         (get_coverage_counts): Ditto.
6536         (tree_coverage_counter_addr): Ditto.
6537         (coverage_checksum_string): Ditto.
6538         (coverage_begin_output): Ditto.
6539         (coverage_end_function): Ditto.
6540         (build_fn_info_type): Ditto.
6541         (build_fn_info_value): Ditto.
6542         * libgcov.c (gcov_exit): Ditto.
6543         * gcov-dump.c (tag_function): Ditto.
6544         (compute_checksum): Remove.
6546 2011-04-29  Alan Modra  <amodra@gmail.com>
6548         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6549         unspec plus offset.  Tidy macho code.
6551 2011-04-29  Martin Jambor  <mjambor@suse.cz>
6553         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
6554         node instead of a decl.  Update all callers.
6555         * cgraph.h: Update declaration.
6557 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
6559         PR tree-optimization/48765
6560         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
6561         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
6562         to indicate if loop aware SLP is being used.  Scan the statements
6563         and update the vectorization factor according to the type of
6564         vectorization before statement analysis.
6565         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
6566         pass it to vect_analyze_loop_operations.
6567         (vectorizable_reduction): Set number of copies to 1 in case of pure
6568         SLP statement.
6569         * tree-vect-stmts.c (vectorizable_conversion,
6570         vectorizable_assignment, vectorizable_shift,
6571         vectorizable_operation, vectorizable_type_demotion,
6572         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
6573         Likewise.
6574         (vectorizable_condition): Move the check that it is not SLP
6575         vectorization before the number of copies check.
6576         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
6577         to vectorize the loop using SLP.
6579 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
6581         PR middle-end/48597
6582         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
6583         inline asm.
6585 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
6587         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
6588         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
6589         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6590         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6591         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
6592         linux*.h headers.
6593         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6594         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6595         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6596         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6597         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6598         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
6599         REG_NAME.
6600         * config/i386/linux.h (REG_NAME): Don't define.
6601         * config/i386/linux64.h (REG_NAME): Don't define.
6602         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
6603         Undefine before defining.
6605 2011-04-28  Jan Hubicka  <jh@suse.cz>
6607         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
6608         nonconstant_names array.
6609         (estimate_function_body_sizes): Build nonconstant_names array; handle
6610         BUILT_IN_CONSTANT_P.
6612 2011-04-28  Richard Guenther  <rguenther@suse.de>
6614         PR bootstrap/48804
6615         Revert
6616         2011-04-28  Richard Guenther  <rguenther@suse.de>
6618         * tree-ssa-structalias.c (solve_constraints): Build succ graph
6619         as late as possible.
6621 2011-04-28  Richard Guenther  <rguenther@suse.de>
6623         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
6624         (debug_constraint): Do it here.
6625         (dump_constraints): And here.
6626         (rewrite_constraints): And here.
6627         (dump_constraint_edge): Remove.
6628         (dump_constraint_graph): Rewrite to produce DOT output.
6629         (solve_constraints): Build succ graph as late as possible.
6630         Dump constraint graphs before and after solving.
6632 2011-04-28  Richard Guenther  <rguenther@suse.de>
6634         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6635         New function split out from ...
6636         (find_func_aliases): ... here.  Call it.
6637         (find_func_aliases_for_call): Likewise.
6639 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6641         * internal-fn.h (internal_fn_name_array): Declare.
6642         (internal_fn_flags_array): Likewise.
6644 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
6646         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
6647         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
6648         Move from sse.md.
6649         (ssemodefsuffix): Remove.
6650         (ssevecmodesuffix): New mode attribute.
6651         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
6652         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
6653         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
6654         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
6655         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
6656         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
6657         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
6658         ssemodesuffix mode attribute.
6659         (float splitters): Use ssevecmodesuffix mode attribute.
6660         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
6661         (sseinsmode): Rename from avxvecmode.
6662         (avxsizesuffix): Rename from avxmodesuffix.
6663         (sseintvecmode): Rename from avxpermvecmode.
6664         (ssedoublevecmode): Rename from ssedoublesizemode.
6665         (ssehalfvecmode): Rename from avxhalfvecmode.
6666         (ssescalarmode): Rename from avxscalarmode.
6667         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
6668         templates for ssemodesuffix mode attribute.
6669         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
6670         mode attribute.
6672         Adjust RTX patterns globally for renamed mode attributes.
6674 2011-04-27  Jan Hubcika  <jh@suse.cz>
6676         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
6677         * ipa-inline-analysis.c: Include alloc-pool.h.
6678         (edge_predicate_pool): New.
6679         (trye_predicate_p): New function
6680         (false_predicate_p): New function.
6681         (add_clause): Sanity check that false clauses are "optimized";
6682         never add clauses to predicate that is already known to be false.
6683         (and_predicate): Use flase_predicate_p.
6684         (evaulate_predicate): Rename to ...
6685         (evaluate_predicate): ... this one; update all callers; assert
6686         that false is not listed among possible truths.
6687         (dump_predicate): Use true_predicate_p.
6688         (account_size_time): Use false_predicate_p.
6689         (evaulate_conditions_for_edge): Rename to ...
6690         (evaluate_conditions_for_edge) ... this one.
6691         (edge_set_predicate): New function.
6692         (inline_edge_duplication_hook): Duplicate edge predicates.
6693         (inline_edge_removal_hook): Free edge predicates.
6694         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
6695         (dump_inline_summary): Update.
6696         (estimate_function_body_sizes): Set edge predicates.
6697         (estimate_calls_size_and_time): Handle predicates.
6698         (estimate_callee_size_and_time): Update.
6699         (remap_predicate): Add toplev_predicate; update comment.
6700         (remap_edge_predicates): New function.
6701         (inline_merge_summary): Compute toplev predicate; update.
6702         (read_predicate): New function.
6703         (read_inline_edge_summary): Use it.
6704         (inline_read_section): Likewise.
6705         (write_predicate): New function.
6706         (write_inline_edge_summary): Use it.
6707         (inline_write_summary): Likewise.
6708         (inline_free_summary): Free alloc pool and edge summary vec.
6710 2011-04-27  Richard Guenther  <rguenther@suse.de>
6712         * tree-ssa-structalias.c (changed_count): Remove.
6713         (changed): Use a bitmap.
6714         (unify_nodes): Adjust.
6715         (do_sd_constraint): Likewise.
6716         (do_ds_constraint): Likewise.
6717         (do_complex_constraint): Likewise.
6718         (solve_graph): Likewise.
6720 2011-04-27  Jan Hubicka  <jh@suse.cz>
6722         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
6724 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
6726         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
6727         (avx_vperm2f128_*_operand): Ditto.
6728         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
6729         Use avx_vpermilp_parallel in insn condition.
6730         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
6731         Use avx_vperm2f128_parallel in insn condition.
6733 2011-04-27  Richard Guenther  <rguenther@suse.de>
6735         * Makefile.in (tree-ssa-structalias.o): Remove
6736         gt-tree-ssa-structalias.h dependency.
6737         (GTFILES): Remove tree-ssa-structalias.c.
6738         * tree.c (allocate_decl_uid): New function.
6739         (make_node_stat): Use it.
6740         (copy_node_stat): Likewise.
6741         * tree.h (allocate_decl_uid): Declare.
6742         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
6743         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
6744         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
6745         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
6746         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
6747         (struct heapvar_map): Likewise.
6748         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
6749         heapvar_insert): Likewise.
6750         (make_heapvar_for): Rename to ...
6751         (make_heapvar): ... this.  Simplify.
6752         (fake_var_decl_obstack): New global var.
6753         (build_fake_var_decl): New function.
6754         (make_constraint_from_heapvar): Adjust.
6755         (handle_lhs_call): Likewise.
6756         (create_function_info_for): Likewise.
6757         (intra_create_variable_infos): Likewise.
6758         (init_alias_vars): Allocate fake_var_decl_obstack.
6759         (init_alias_heapvars, delete_alias_heapvars): Remove.
6760         (compute_points_to_sets): Do not call init_alias_heapvars.
6761         (ipa_pta_execute): Likewise.
6762         (delete_points_to_sets): Free fake_var_decl_obstack.
6764 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6766         * config/spu/divmovti4.c (union qword_UTItype): New data type.
6767         (si_from_UTItype, si_to_UTItype): New functions.
6768         (__udivmodti4): Use them to implement type-punning.
6769         * config/spu/multi3.c (union qword_TItype): New data type.
6770         (si_from_TItype, si_to_TItype): New functions.
6771         (__multi3): Use them to implement type-punning.
6773 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6775         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
6777 2011-04-27  Jan Hubicka  <jh@suse.cz>
6779         * ipa-prop.c (function_insertion_hook_holder): New holder.
6780         (ipa_add_new_function): New function.
6781         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
6782         Register/deregister holder.
6784 2011-04-27  Richard Guenther  <rguenther@suse.de>
6786         PR tree-optimization/48772
6787         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
6789 2011-04-27  Richard Guenther  <rguenther@suse.de>
6791         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
6792         TARGET_MEM_REF handling.
6794 2011-04-27  Nick Clifton  <nickc@redhat.com>
6796         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
6797         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
6798         (REG_CLASS_NAMES): Likewise.
6799         (REG_CLASS_CONTENTS): Likewise.
6800         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
6801         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
6802         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
6803         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
6804         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
6805         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
6806         duplicate register classes.
6807         (frv_class_likely_spilled_p): Likewise.
6808         (frv_register_move_cost): Likewise.
6810         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
6811         end of the regno_reg_class array.
6813 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
6815         PR c/48742
6816         * c-typeck.c (build_binary_op): Don't wrap arguments if
6817         int_operands is true.
6819 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
6821         PR target/48767
6822         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
6823         targetm.calls.must_pass_in_stack for void type.
6825 2011-04-26  Jan Hubicka  <jh@suse.cz>
6827         * cgraphbuild.c (build_cgraph_edges): Update call
6828         of cgraph_create_edge and cgraph_create_indirect_edge.
6829         * cgraph.c (cgraph_create_edge_including_clones,
6830         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
6831         cgraph_update_edges_for_call_stmt_node): Do not take nest
6832         argument; do not initialize call_stmt_size/time.
6833         (dump_cgraph_node): Do not dump nest.
6834         (cgraph_clone_edge): Do not take loop_nest argument;
6835         do not propagate it; do not clone call_stmt_size/time.
6836         (cgraph_clone_node): Likewise.
6837         (cgraph_create_virtual_clone): Update.
6838         * cgraph.h (struct cgraph_edge): Remove
6839         call_stmt_size/call_stmt_time/loop_nest.
6840         (cgraph_create_edge, cgraph_create_indirect_edge,
6841         cgraph_create_edge_including_clones, cgraph_clone_node): Update
6842         prototype.
6843         * tree-emutls.c (gen_emutls_addr): Update.
6844         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
6845         loop_nest; handle indirect calls, too.
6846         (clone_inlined_nodes): Do not care about updating inline summaries.
6847         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
6848         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
6849         stream call_stmt_size/call_stmt_time/loop_nest.
6850         * ipa-inline.c (edge_badness): Update.
6851         (ipa_inline): dump summaries after inlining.
6852         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
6853         New.
6854         (inline_edge_summary): New function.
6855         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
6856         (inline_edge_removal_hook): Handle edge summaries.
6857         (inline_edge_duplication_hook): New hook.
6858         (inline_summary_alloc): Alloc hooks.
6859         (initialize_growth_caches): Do not register removal hooks.
6860         (free_growth_caches); Do not free removal hook.
6861         (dump_inline_edge_summary): New function.
6862         (dump_inline_summary): Use it.
6863         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
6864         (inline_update_callee_summaries): New function.
6865         (inline_merge_summary): Use it.
6866         (do_estimate_edge_time, do_estimate_edge_growth): Update.
6867         (read_inline_edge_summary): New function.
6868         (inline_read_section): Use it.
6869         (write_inline_edge_summary): New function.
6870         (inline_write_summary): Use it.
6871         (inline_free_summary): Free edge new holders.
6872         * tree-inline.c (copy_bb): Update.
6874 2011-04-26  Jason Merrill  <jason@redhat.com>
6876         * tree-eh.c (lower_try_finally_switch): Create the label along with
6877         the CASE_LABEL_EXPR.
6879 2011-04-26  David S. Miller  <davem@davemloft.net>
6880             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6882         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
6883         * configure: Regenerate.
6885 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
6887         PR target/48258
6888         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
6889         reduction.
6890         (VEC_reduc): New code iterator and splitters for vector reduction.
6891         (VEC_reduc_name): Ditto.
6892         (VEC_reduc_rtx): Ditto.
6893         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
6894         (reduc_<VEC_reduc_name>_v4sf): Ditto.
6896         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6897         support for extracting SF on VSX.
6899         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
6900         generating xscvspdp.
6901         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
6902         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
6903         double add, minimum, maximum vector reduction.
6904         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
6905         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
6906         optimize double vector reduction.
6907         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
6909 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
6911         * config/fr30/fr30.h (inhibit_libc): Don't define.
6912         * config/m32r/m32r-protos.h: Correct comment.
6913         * config/v850/v850.h (GHS_default_section_names,
6914         GHS_current_section_names): Use tree, not union tree_node *.
6916 2011-04-26  Xinliang David Li  <davidxl@google.com>
6918         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
6919         * c-family/c-opts.c (c_common_handle_option): Set
6920         warn_maybe_uninitialized.
6921         * opts.c (common_handle_option): Ditto.
6922         * common.opt:  New option.
6923         * tree-ssa.c (warn_uninit): Add one more parameter.
6924         (warn_uninitialized_var): Pass warning code.
6925         * tree-flow.h: Interface change.
6927 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6929         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
6930         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
6931         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
6933 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6935         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
6936         * config/mips/mips.opt (mmips-tfile): Remove.
6938         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
6939         mips-tdump reference to ...
6940         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
6941         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
6942         reference by Tru64 UNIX.
6944 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
6946         PR debug/48768
6947         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
6948         is error_mark_node, set value to NULL.
6950         PR tree-optimization/48734
6951         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
6952         if return value from maybe_fold_*_comparsions isn't something
6953         the code is prepared to handle.
6955 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
6957         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
6958         mode check.
6959         (ext_QIreg_nomode_operands): Remove.
6960         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
6961         (*andsi_1): Ditto.
6962         (*andhi_1): Ditto.
6964 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
6966         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
6968 2011-04-26  Richard Guenther  <rguenther@suse.de>
6970         * c-typeck.c (build_unary_op): Do not expand array-refs via
6971         pointer arithmetic.  Only adjust qualifiers for function types.
6973 2011-04-26  Richard Guenther  <rguenther@suse.de>
6975         PR middle-end/48694
6976         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
6977         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
6978         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
6979         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
6981 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
6983         * doc/extend.texi: Document __underlying_type.
6985 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
6987         * config/rs6000/titan.md (automata_option "progress"): Remove.
6989 2011-04-25  Jeff Law  <law@redhat.com>
6991         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
6993 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
6995         * system.h (ENUM_BITFIELD): Remove.
6997 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
6998             Eric Botcazou  <ebotcazou@adacore.com>
7000         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7001         for STORE_FLAG_VALUE==-1 case.
7003 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
7005         PR target/43804
7006         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7007         LEGITIMATE_PIC_OPERAND_P.
7009 2011-04-24  Jan Hubicka  <jh@suse.cz>
7011         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7012         WPA hack.
7013         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7014         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7015         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
7016         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7017         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7018         Sanity check predicate length.
7019         (remap_predicate): Likewise; sanity check jump functions.
7020         (inline_read_section, inline_write_summary): Sanity check
7021         predicate length.
7023 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7025         PR other/48748
7026         * doc/extend.texi (Type Traits): Document __is_standard_layout,
7027         __is_literal_type, and __is_trivial; update throughout about
7028         possibly cv-qualified void types.
7030 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
7032         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7033         testsuite and make it version agnostic.
7035 2011-04-22  Jan Hubicka  <jh@suse.cz>
7037         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7039 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
7041         PR c/48685
7042         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7043         to VOID_TYPE even around MODIFY_EXPR.
7045 2011-04-22  Mike Stump  <mikestump@comcast.net>
7047         * gensupport.c (read_md_rtx): Fix typo in comment.
7048         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7049         comment.
7051 2011-04-22  Jan Hubicka  <jh@suse.cz>
7053         * gengtype.c (open_base_files): Add ipa-inline.h include.
7054         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7055         ipa-prop.c; update all uses.
7056         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7057         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7058         merge summary of inlined function into former caller.
7059         * ipa-inline.c (max_benefit): Remove.
7060         (edge_badness): Compensate for removal of benefits.
7061         (update_caller_keys): Use
7062         reset_node_growth_cache/reset_edge_growth_cache.
7063         (update_callee_keys): Likewise.
7064         (update_all_callee_keys): Likewise.
7065         (inline_small_functions): Do not collect max_benefit; do not reset
7066         estimated_growth; call free_growth_caches and initialize_growth_caches.
7067         * ipa-inline.h (struct condition, type clause_t, struct predicate,
7068         struct size_time_entry): New structures.
7069         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7070         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7071         and estimated_growth.
7072         (edge_growth_cache_entry): New structure.
7073         (node_growth_cache, edge_growth_cache): New global vars.
7074         (estimate_growth): Turn into inline.
7075         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7076         initialize_growth_caches, free_growth_caches): Declare.
7077         (estimate_edge_growth): Rewrite.
7078         (estimate_edge_time): Implement as inline cache lookup.
7079         (reset_node_growth_cache, reset_edge_growth_cache): New inline
7080         functions.
7081         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7082         (NUM_CONDITIONS): New constant.
7083         (predicate_conditions): New enum.
7084         (IS_NOT_CONSTANT): New constant.
7085         (edge_removal_hook_holder): New var.
7086         (node_growth_cache, edge_growth_cache): New global vars.
7087         (true_predicate, single_cond_predicate, false_predicate,
7088         not_inlined_predicate, add_condition, add_clause, and_predicates,
7089         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7090         dump_clause, dump_predicate, account_size_time,
7091         evaulate_conditions_for_edge): New functions.
7092         (inline_summary_alloc): Move to heap.
7093         (inline_node_removal_hook): Clear condition and entry vectors.
7094         (inline_edge_removal_hook): New function.
7095         (initialize_growth_caches, free_growth_caches): New function.
7096         (dump_inline_summary): Update.
7097         (edge_execution_predicate): New function.
7098         (will_be_nonconstant_predicate): New function.
7099         (estimate_function_body_sizes): Compute BB and constantness predicates.
7100         (compute_inline_parameters): Do not clear estimated_growth.
7101         (estimate_edge_size_and_time): New function.
7102         (estimate_calls_size_and_time): New function.
7103         (estimate_callee_size_and_time): New function.
7104         (remap_predicate): New function.
7105         (inline_merge_summary): New function.
7106         (do_estimate_edge_time): New function based on...
7107         (estimate_edge_time): ... this one.
7108         (do_estimate_edge_growth): New function.
7109         (do_estimate_growth): New function based on....
7110         (estimate_growth): ... this one.
7111         (inline_analyze_function): Analyze after deciding on jump functions.
7112         (inline_read_section): New function.
7113         (inline_read_summary): Use it.
7114         (inline_write_summary): Write all the new data.
7115         * ipa-prop.c (ipa_get_param_decl_index): Export.
7116         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
7117         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7118         Declare.
7119         (ipa_get_lattice): Move here from ipa-cp.c
7120         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7121         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7122         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7123         cgraph_edge_inlinable_p): Remove.
7124         * cgraphunit.c: Include ipainline.h
7125         (cgraph_process_new_functions): Update call of
7126         compute_inline_parameters.
7128 2011-04-22  Richard Guenther  <rguenther@suse.de>
7130         * tree.c (build_int_cst): Properly create canonicalized integer
7131         constants.
7132         (build_int_cst_type): Remove scary comments.
7134 2011-04-22  Xinliang David Li  <davidxl@google.com>
7136         * toplev.c (process_options): Enable -Werror=coverage-mismatch
7137         by default when -Wno-error is not specified.
7138         * opts-global.c (decode_options): Remove call to
7139         control_warning_options.
7141 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
7143         PR tree-optimization/48717
7144         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7145         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7147 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
7149         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
7150         definition where used.
7152 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
7154         PR c/48716
7155         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7156         TREE_STATIC variables declared inside of some OpenMP construct.
7158 2011-04-22  Martin Jambor  <mjambor@suse.cz>
7160         PR middle-end/48585
7161         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
7163 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
7165         PR c/36750
7166         * c-typeck.c (pop_init_level): Do not warn about initializing
7167         with ` = {0}'.
7169 2011-04-22  Alan Modra  <amodra@gmail.com>
7171         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7172         when returning call_cookie.
7173         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7174         pointers, to functions with no more vector args than the current
7175         function, and some non-local calls for ABI_V4.
7176         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7177         sibcall_nonlocal_aix64): Combine to ..
7178         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
7179         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7180         (sibcall_value_nonlocal_aix<mode>): ..likewise.
7181         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7182         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
7183         operand.
7184         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7185         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7186         sibcall_value_symbolic_64): Delete.
7188 2011-04-21  Xinliang David Li  <davidxl@google.com>
7190         * cgraph.h: Remove pid.
7191         * cgraph.c: Remove pid.
7192         * value-prof.c (init_node_map): New function.
7193         (del_node_map): New function.
7194         (find_func_by_funcdef_no): New function.
7195         (gimple_ic_transform): Call new function.
7196         * cgraphunit.c (cgraph_finalize_function): Remove pid.
7197         * function.c (get_last_funcdef_no): New function.
7198         * function.h (get_last_funcdef_no): New function.
7199         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7200         to libgcov function.
7201         (tree-profiling): Call node map init and delete function.
7203 2011-04-21  Ian Lance Taylor  <iant@google.com>
7205         * godump.c (go_format_type): Use exported Go name for anonymous
7206         field name.
7208 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
7210         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7211         Call builtin_function_type_list instead of builtin_function_type.
7212         (UNARY, BINARY, TRINARY, QUAD): Likewise.
7214 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
7216         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
7217         build_function_type_list instead of build_function_type.
7218         Delete variable `endlink'.
7220 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
7222         * config/s390/s390.c (s390_init_builtins): Call
7223         build_function_type_list instead of build_function_type.
7225 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
7227         * config/ia64/ia64.c (ia64_init_builtins): Call
7228         build_function_type_list instead of builtin_function_type.
7230 2011-04-21  Easwaran Raman  <eraman@google.com>
7232         * cfgexpand.c (stack_var): Remove OFFSET...
7233         (add_stack_var): ...and its reference here...
7234         (expand_stack_vars): ...and here.
7235         (stack_var_cmp): Sort by descending order of size.
7236         (partition_stack_vars): Change heuristic.
7237         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
7238         (dump_stack_var_partition): Add newline after each partition.
7240 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
7241             Jeff Law  <law@redhat.com>
7243         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
7244         * gengtype.c (matching_file_name_substitute): Likewise.
7246 2011-04-21  Richard Guenther  <rguenther@suse.de>
7248         PR lto/48703
7249         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
7251 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
7253         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7255 2011-04-21  Richard Guenther  <rguenther@suse.de>
7257         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
7258         file name.
7260 2011-04-21  Richard Guenther  <rguenther@suse.de>
7262         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7263         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
7264         Use DECL_P, not SSA_VAR_P.
7265         (ptr_derefs_may_alias_p): Likewise.
7266         (ptr_deref_may_alias_ref_p_1): Likewise.
7267         (decl_refs_may_alias_p): Likewise.
7268         (refs_may_alias_p_1): Likewise.
7269         (ref_maybe_used_by_call_p_1): Likewise.
7270         (call_may_clobber_ref_p_1): Likewise.
7271         (indirect_ref_may_alias_decl_p): Assume indirect refrences
7272         are either MEM_REF or TARGET_MEM_REF.
7273         (indirect_refs_may_alias_p): Likewise.
7274         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
7275         for MEM_EXPR of indirect calls.
7277 2011-04-21  Tristan Gingold  <gingold@adacore.com>
7279         * vmsdbgout.c (write_srccorr): Compute file length from the string.
7280         (dst_file_info_struct): Remove flen field.
7281         (lookup_filename): Remove code that set flen field.
7283 2011-04-21  Tristan Gingold  <gingold@adacore.com>
7285         * config/ia64/ia64.c (ia64_start_function): Add a guard.
7287 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
7289         PR target/48708
7290         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
7291         vec_extract and vec_concat for non-SSE4_1 targets.
7293 2011-04-21  Richard Guenther  <rguenther@suse.de>
7295         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
7296         return statements.
7298 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
7300         * config/i386/cygming.h (union tree_node, TREE): Don't define or
7301         undefine.
7302         (FILE): Don't undefine.
7304 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
7306         * config/alpha/alpha.c (struct machine_function): Use rtx, not
7307         struct rtx_def *.
7308         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
7309         struct rtx_def *.
7310         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
7311         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
7312         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
7313         rtx_def *.
7314         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
7315         definitions where used.
7316         * config/microblaze/microblaze.h (struct microblaze_args): Use
7317         rtx, not struct rtx_def *.
7318         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
7319         rtx_def *.
7320         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
7321         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
7322         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
7323         not struct rtx_def *.
7324         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
7325         struct rtx_def *.
7326         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
7327         rtx_def *.
7328         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
7330 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
7332         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
7333         operand_equal_p to compare DR_BASE_ADDRESSes.
7334         (vect_check_interleaving): Likewise.
7336 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
7338         PR target/46329
7339         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
7340         for all Neon struct constants.
7342 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
7344         * target.def (legitimate_constant_p): New hook.
7345         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
7346         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
7347         * doc/tm.texi: Regenerate.
7348         * hooks.h (hook_bool_mode_rtx_true): Declare.
7349         * hooks.c (hook_bool_mode_rtx_true): Define.
7350         * system.h (LEGITIMATE_CONSTANT_P): Poison.
7351         * calls.c (precompute_register_parameters): Replace uses of
7352         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
7353         (emit_library_call_value_1): Likewise.
7354         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
7355         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
7356         * ira-costs.c (scan_one_insn): Likewise.
7357         * recog.c (general_operand, immediate_operand): Likewise.
7358         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
7359         * reload1.c (init_eliminable_invariants): Likewise.
7361         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
7362         mode argument.
7363         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
7364         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
7365         argument.
7366         (TARGET_LEGITIMATE_CONSTANT_P): Define.
7367         * config/alpha/predicates.md (input_operand): Update call to
7368         alpha_legitimate_constant_p.
7370         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
7371         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
7372         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
7373         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7374         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
7375         (arm_legitimate_constant_p): New functions.
7376         (arm_cannot_force_const_mem): Make static.
7378         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
7380         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
7381         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
7382         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
7383         instead of bfin_legitimate_constant_p.
7384         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
7385         (TARGET_LEGITIMATE_CONSTANT_P): Define.
7387         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
7389         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
7391         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
7392         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
7393         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7394         (frv_legitimate_constant_p): Make static.  Add a mode argument.
7396         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
7397         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
7398         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
7400         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
7401         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
7402         * config/i386/i386.c (legitimate_constant_p): Rename to...
7403         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
7404         argument.
7405         (ix86_cannot_force_const_mem): Update accordingly.
7406         (ix86_legitimate_address_p): Likewise.
7407         (TARGET_LEGITIMATE_CONSTANT_P): Define.
7408         * config/i386/i386.md: Update commentary.
7410         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
7411         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
7412         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7413         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
7415         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
7417         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
7418         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
7419         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7420         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
7422         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
7423         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
7424         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
7426         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
7427         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7428         (m32r_legitimate_constant_p): New function.
7430         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
7431         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
7432         LEGITIMATE_CONSTANT_P.
7433         (LEGITIMATE_CONSTANT_P): Delete.
7434         * config/m68k/m68k.c (m68k_expand_prologue): Call
7435         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
7436         (m68k_legitimate_constant_p): New function.
7437         * config/m68k/m68k.md: Update comments.
7439         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
7440         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7441         (mcore_legitimate_constant_p): New function.
7443         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
7444         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
7445         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
7446         Add a mode argument.
7447         (mep_legitimate_address): Update accordingly.
7448         (TARGET_LEGITIMATE_CONSTANT_P): Define.
7450         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
7451         Delete.
7452         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
7453         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
7454         static.  Check OP's mode for VOIDmode.
7455         (microblaze_legitimate_constant_p): New function.
7456         (TARGET_LEGITIMATE_CONSTANT_P): Define.
7458         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
7459         * config/mips/mips.c (mips_legitimate_constant_p): New function.
7460         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
7461         (TARGET_LEGITIMATE_CONSTANT_P): Define.
7462         * config/mips/predicates.md: Update comments.
7464         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
7465         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
7466         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7467         (mmix_legitimate_constant_p): Make static, return a bool, and take
7468         a mode argument.
7469         (mmix_print_operand_address): Update accordingly.
7471         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
7472         Delete.
7473         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
7474         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
7475         static.  Add a mode argument.
7476         (TARGET_LEGITIMATE_CONSTANT_P): Define.
7478         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
7480         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
7481         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7482         (pa_legitimate_constant_p): New function.
7484         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
7486         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
7487         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7488         (pdp11_legitimate_constant_p): New function.
7490         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
7491         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7492         (rs6000_legitimate_constant_p): New function.
7494         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
7495         (rx_legitimate_constant_p): ...this.
7496         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
7497         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
7498         (rx_legitimate_constant_p): ...this.
7499         (TARGET_LEGITIMATE_CONSTANT_P): Define.
7500         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
7502         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
7503         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
7504         * config/s390/s390.c (legitimate_constant_p): Rename to...
7505         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
7506         and add a mode argument.
7507         (TARGET_LEGITIMATE_CONSTANT_P): Define.
7509         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
7511         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
7512         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7513         (sh_legitimate_constant_p): New function.
7515         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
7516         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
7517         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7518         (legitimate_constant_p): Rename to...
7519         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
7520         argument.
7521         (constant_address_p): Update accordingly.
7523         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
7524         argument and return a bool.
7525         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
7526         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7527         (spu_legitimate_constant_p): Add a mode argument and return a bool.
7528         (spu_rtx_costs): Update accordingly.
7529         * config/spu/predicates.md (vec_imm_operand): Likewise.
7531         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
7533         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
7534         * config/v850/v850.c (v850_legitimate_constant_p): New function.
7535         (TARGET_LEGITIMATE_CONSTANT_P): Define.
7537         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
7538         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
7539         * config/vax/vax.c (legitimate_constant_p): Likewise.
7541         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
7542         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7543         (xtensa_legitimate_constant_p): New function.
7545 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
7547         * target.def (cannot_force_const_mem): Add a mode argument.
7548         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
7549         * doc/tm.texi: Regenerate.
7550         * hooks.h (hook_bool_mode_rtx_false): Declare.
7551         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
7552         (hook_bool_mode_const_rtx_true): Likewise.
7553         (hook_bool_mode_rtx_false): New function.
7554         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
7555         to be non-VOID.  Update call to cannot_force_const_mem.
7556         (find_reloads): Update accordingly.
7557         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
7558         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
7559         argument.
7560         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
7561         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
7562         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
7563         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
7564         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
7565         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
7566         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
7567         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7568         (m68k_cannot_force_const_mem): ...this new function.
7569         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
7570         argument.
7571         (mips_const_insns, mips_legitimize_const_move): Update calls.
7572         (mips_secondary_reload_class): Likewise.
7573         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7574         (pa_cannot_force_const_mem): ...this new function.
7575         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
7576         (rs6000_cannot_force_const_mem): ...this new function.
7577         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
7578         argument.
7579         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
7580         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
7581         to...
7582         (xtensa_cannot_force_const_mem): ...this new function.
7584 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
7586         * config/mips/mips.c (mips16_build_function_stub): Call
7587         build_function_type_list instead of build_function_type.
7588         (mips16_build_call_stub): Likewise.
7590 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
7592         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
7593         instead of build_function_type.
7595 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
7597         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
7598         instead of build_function_type.
7600 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
7602         PR target/48678
7603         * config/i386/i386.md (insv): Change operand 0 constraint to
7604         "register_operand".  Change operand 1 and 2 constraint to
7605         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
7606         * config/i386/sse.md (sse4_1_pinsrb): Export.
7607         (sse2_pinsrw): Ditto.
7608         (sse4_1_pinsrd): Ditto.
7609         (sse4_1_pinsrq): Ditto.
7610         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
7611         * config/i386/i386.c (ix86_expand_pinsr): New.
7613 2011-04-20  Easwaran Raman  <eraman@google.com>
7615         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
7616         containing union type only with -fstrict-aliasing.
7618 2011-04-20  Jim Meyering  <meyering@redhat.com>
7620         Remove useless if-before-free tests.
7621         * calls.c (expand_call, save_area): Likewise.
7622         * cfgcleanup.c (try_forward_edges): Likewise.
7623         * collect2.c (collect_execute): Likewise.
7624         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
7625         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7626         * coverage.c (coverage_checksum_string): Likewise.
7627         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
7628         * cselib.c (cselib_init): Likewise.
7629         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
7630         (df_set_clean_cfg): Likewise.
7631         * function.c (free_after_compilation): Likewise.
7632         * gcc.c (do_spec_1, main): Likewise.
7633         * gcov.c (create_file_names): Likewise.
7634         * gensupport.c (identify_predicable_attribute): Likewise.
7635         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
7636         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
7637         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
7638         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
7639         * ipa-pure-const.c (local_pure_const): Likewise.
7640         * ipa-reference.c (propagate): Likewise.
7641         * ira-costs.c (free_ira_costs): Likewise.
7642         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
7643         * matrix-reorg.c (mat_free): Likewise.
7644         * prefix.c (get_key_value): Likewise.
7645         * profile.c (compute_value_histograms): Likewise.
7646         * reload1.c (free_reg_equiv): Likewise.
7647         * sched-deps.c (free_deps): Likewise.
7648         * sel-sched-ir.c (fence_clear): Likewise.
7649         * sese.c (set_rename, if_region_set_false_region): Likewise.
7650         * tree-data-ref.c (free_rdg): Likewise.
7651         * tree-eh.c (lower_try_finally): Likewise.
7652         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
7653         * tree-ssa-live.c (delete_var_map): Likewise.
7654         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
7655         * tree-ssa-pre.c (phi_trans_add): Likewise.
7657 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
7659         PR tree-optimization/48611
7660         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
7661         beyond ERT_MUST_NOT_THROW region.
7663 2011-04-20  Catherine Moore  <clm@codesourcery.com>
7665         * config/mips/mips.opt (mfix-24k): New.
7666         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
7667         * config/mips/mips.md (length): Increase by 4 for stores if
7668         fixing 24K errata.
7669         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
7670         all noreorder if fixing 24K errata.
7671         * doc/invoke.texi: Document mfix-24k.
7673 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
7675         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
7676         quad-word modes, reduce to 9-bit index range when above 1016 limit.
7678 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
7680         * config/arm/arm.c (arm_gen_constant): Move movw support ....
7681         (const_ok_for_op): ... to here.
7683 2011-04-20  Kai Tietz  <ktietz@redhat.com>
7685         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
7686         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
7688 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
7690         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
7692 2011-04-20  Richard Guenther  <rguenther@suse.de>
7694         PR tree-optimization/47892
7695         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
7696         are if-convertible.
7698 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7700         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
7702 2011-04-20  Tristan Gingold  <gingold@adacore.com>
7704         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
7706 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
7708         PR target/18145
7710         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
7711         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
7712         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7713         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
7714         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
7716         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
7717         New prototype.
7719         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
7720         (avr_asm_named_section, avr_asm_output_aligned_common,
7721         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
7722         New functions to update...
7723         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
7724         (avr_asm_init_sections): Overwrite section callbacks for
7725         data_section, bss_section.
7726         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
7727         from here to...
7728         (avr_file_end): ...here.
7730 2011-04-20  Richard Guenther  <rguenther@suse.de>
7732         PR middle-end/48695
7733         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
7734         objects and types here.  Adjust for their offset before comparing.
7736 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
7738         * tree-vect-stmts.c (vectorizable_store): Only chain one related
7739         statement per copy.
7741 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
7743         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
7744         (GIMPLE_H): Include $(INTERNAL_FN_H).
7745         (OBJS-common): Add internal-fn.o.
7746         (internal-fn.o): New rule.
7747         * internal-fn.def: New file.
7748         * internal-fn.h: Likewise.
7749         * internal-fn.c: Likewise.
7750         * gimple.h: Include internal-fn.h.
7751         (GF_CALL_INTERNAL): New gf_mask.
7752         (gimple_statement_call): Put fntype into a union with a new
7753         internal_fn field.
7754         (gimple_build_call_internal): Declare.
7755         (gimple_build_call_internal_vec): Likewise.
7756         (gimple_call_same_target_p): Likewise.
7757         (gimple_call_internal_p): New function.
7758         (gimple_call_internal_fn): Likewise.
7759         (gimple_call_fntype): Return null for internal calls.
7760         (gimple_call_set_fntype): Assert that the function is not internal.
7761         (gimple_call_set_fn): Likewise.
7762         (gimple_call_set_fndecl): Likewise.
7763         (gimple_call_set_internal_fn): New function.
7764         (gimple_call_addr_fndecl): Handle null functions.
7765         (gimple_call_return_type): Likewise null types.
7766         * gimple.c (gimple_build_call_internal_1): New function.
7767         (gimple_build_call_internal): Likewise.
7768         (gimple_build_call_internal_vec): Likewise.
7769         (gimple_call_same_target_p): Likewise.
7770         (gimple_call_flags): Handle calls to internal functions.
7771         (gimple_call_fnspec): New function.
7772         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
7773         (gimple_has_side_effects): Handle null functions.
7774         (gimple_rhs_has_side_effects): Likewise.
7775         (gimple_call_copy_skip_args): Handle calls to internal functions.
7776         * cfgexpand.c (expand_call_stmt): Likewise.
7777         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
7778         * gimple-fold.c (gimple_fold_call): Handle null functions.
7779         (gimple_fold_stmt_to_constant_1): Don't fold
7780         calls to internal functions.
7781         * gimple-low.c (gimple_check_call_args): Handle calls to internal
7782         functions.
7783         * gimple-pretty-print.c (dump_gimple_call): Likewise.
7784         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
7785         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
7786         (do_warn_unused_result): Likewise.
7787         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
7788         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
7789         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
7790         the target of a call.
7791         (initialize_hash_element): Update accordingly.
7792         (hashable_expr_equal_p): Use gimple_call_same_target_p.
7793         (iterative_hash_hashable_expr): Handle calls to internal functions.
7794         (print_expr_hash_elt): Likewise.
7795         * tree-ssa-pre.c (can_value_number_call): Likewise.
7796         (eliminate): Handle null functions.
7797         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
7798         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
7799         (find_func_aliases): Likewise.
7800         * value-prof.c (gimple_ic_transform): Likewise.
7801         (gimple_indirect_call_to_profile): Likewise.
7802         * lto-streamer-in.c (input_gimple_stmt): Likewise.
7803         * lto-streamer-out.c (output_gimple_stmt): Likewise.
7805 2011-04-19  Jan Hubicka  <jh@suse.cz>
7807         * ipa-inline-transform.c (save_inline_function_body): Add comments.
7808         * ipa-inline.c (inline_small_functions): Compute summaries first,
7809         populate heap later.
7811 2011-04-19  Jan Hubicka  <jh@suse.cz>
7813         * cgraph.h (save_inline_function_body): Remove.
7814         * ipa-inline-transform.c: New file, broke out of...
7815         * ipa-inline.c: ... this one; Update toplevel comment.
7816         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
7817         make global.
7818         (update_noncloned_frequencies): Move to ipa-inline-transform.c
7819         (cgraph_mark_inline_edge): Rename to inline_call; move to
7820         ipa-inline-transform.c.
7821         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
7822         move to ipa-inline-transform.c
7823         (recursive_inlining, inline_small_functions, flatten_function,
7824         ipa_inline, inline_always_inline_functions,
7825         early_inline_small_functions): Update.
7826         (inline_transform): Move to ipa-inline-transform.c.
7827         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
7828         Declare.
7829         * Makefile.in (ipa-inline-transform.o): New file.
7830         * cgraphunit.c (save_inline_function_body): Move to
7831         ipa-inline-transform.c
7833 2011-04-19  DJ Delorie  <dj@redhat.com>
7835         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
7836         registers if we already know there aren't any.
7837         (m32c_emit_epilogue): Don't emit a barrier here.
7838         (m32c_emit_eh_epilogue): Likewise.
7839         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
7840         operands at expand time.
7841         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
7842         int" wchar type.
7843         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
7844         duplicates.  Provide aliases instead.
7845         * config/m32c/prologue.md (eh_return): Emit a barrier here.
7846         (eh_epilogue): Add a "(return)" here as a hint to other parts of
7847         the compiler.
7849 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
7851         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
7852         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
7853         (general_or_i64_p, sparc_register_move_cost): New function.
7855 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7857         * doc/install.texi (Configuration, --enable-threads): Remove mach.
7858         Add lynx, mipssde.  Sort table.
7860 2011-04-19  Xinliang David Li  <davidxl@google.com>
7862         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
7863         not negative.
7865 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
7867         PR target/48678
7868         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
7869         is a SUBREG with non-MODE_INT mode inside of it.
7871 2011-04-19  Martin Jambor  <mjambor@suse.cz>
7873         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
7874         also according to actual contants.
7875         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
7876         (gimple_fold_call): Use it.
7877         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
7879 2011-04-19  Martin Jambor  <mjambor@suse.cz>
7881         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
7882         non-pointer assignments.
7884 2011-04-19  Martin Jambor  <mjambor@suse.cz>
7886         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
7887         account anc_offset and otr_type from the indirect edge info.
7888         * ipa-prop.c (get_ancestor_addr_info): New function.
7889         (compute_complex_ancestor_jump_func): Assignment analysis moved to
7890         get_ancestor_addr_info, call it.
7891         (ipa_note_param_call): Do not initialize information about polymorphic
7892         calls, return the indirect call graph edge.  Remove the last
7893         parameter, adjust all callers.
7894         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
7895         parameters.  Initialize polymorphic information in the indirect edge.
7897 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
7899         PR lto/48148
7900         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
7901         the types if they have different enumeration identifiers.
7903 2011-04-19  Jan Hubicka  <jh@suse.cz>
7905         * cgraph.h (cgraph_optimize_for_size_p): Declare.
7906         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
7907         * predict.c (cgraph_optimize_for_size_p): Break out from ...
7908         (optimize_function_for_size_p) ... here.
7910 2011-04-19  Richard Guenther  <rguenther@suse.de>
7912         PR lto/48207
7913         * tree.c (free_lang_data): Do not reset the decl-assembler-name
7914         langhook.
7916 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
7918         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
7919         if DECL_NO_INLINE_WARNING_P is set on the function.
7921 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
7923         PR fortran/47976
7924         * reload1.c (inc_for_reload): Return void. All callers changed.
7925         (emit_input_reload_insns): Don't try to delete previous output
7926         reloads to a register, or record spill_reg_store for autoincs.
7928 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
7930         * gengtype.h: Updated copyright year.
7931         (struct input_file_st): Add inpisplugin field.
7932         (type_fileloc): New function.
7933         * gengtype.c
7934         (write_typed_struct_alloc_def): Add gcc_assert.
7935         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
7936         (write_typed_alloc_defns): Don't output for plugin files.
7937         (input_file_by_name): Clear inpisplugin field.
7938         (main): Set inpisplugin field for plugin files.
7940 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
7942         * gengtype-state.c (string_eq): New.
7943         (read_state): Use string_eq instead of strcmp when creating the
7944         state_ident_tab.
7946 2011-04-19  Wei Guozhi  <carrot@google.com>
7948         PR target/47855
7949         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
7950         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
7951         linkage.
7952         * config/arm/constraints.md (Uu): New constraint.
7953         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
7955 2011-04-19  Tristan Gingold  <gingold@adacore.com>
7957         * config.gcc (-*-*-*vms): Added.
7958         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
7959         definitions moved.
7960         * config/vms/vms-ld.c: New file.
7961         * config/vms/vms-ar.c: New file.
7962         * config/vms/t-vmsnative: New file.
7964 2011-04-18  Xinliang David Li  <davidxl@google.com>
7966         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
7968 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
7970         PR middle-end/48661
7971         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
7972         if TREE_TYPE (v) is non-NULL.
7974         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
7975         gimple_get_virt_mehtod_for_binfo.
7976         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
7977         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
7978         callers.
7979         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7981 2011-04-18  Michael Matz  <matz@suse.de>
7982             Steve Ellcey  <sje@cup.hp.com>
7984         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
7985         use its mode as source mode if it isn't VOIDmode.
7987 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
7989         * doc/passes.texi: Fill crossref nodes.
7991 2011-04-18  Jim Meyering  <meyering@redhat.com>
7993         Fix doubled-word typos in comments and strings
7994         * config/alpha/vms-unwind.h: s/for for/for/
7995         * config/arm/unwind-arm.h: Likewise.
7996         * config/microblaze/microblaze.c: Likewise.
7997         * config/sh/constraints.md: s/in in/in/
7998         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8000 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
8002         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8003         (AVX_FLOAT_MODE_P): Ditto.
8004         (AVX128_VEC_FLOAT_MODE_P): Ditto.
8005         (AVX256_VEC_FLOAT_MODE_P): Ditto.
8006         (AVX_VEC_FLOAT_MODE_P): Ditto.
8007         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8008         (UNSPEC_MASKSTORE): Ditto.
8009         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8010         Merge from <sse>_movmsk<ssemodesuffix> and
8011         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
8012         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
8013         iterator.
8014         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8015         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8016         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8018 2011-04-18  Jan Hubicka  <jh@suse.cz>
8020         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8022         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8023         (want_inline_function_called_once_p): Break out the logic from
8024         ipa_inline.
8025         (edge_badness): Ensure that profile is not misupdated.
8026         (lookup_recursive_calls): Prioritize by call frequencies.
8027         (inline_small_functions): Move program size estimates here;
8028         actually process whole queue even when unit growth has been
8029         met. (to properly compute inline_failed reasons and for the
8030         case unit size decrease.) Revisit comments on recursive inlining.
8031         (ipa_inline): Remove unit summary code; first inline hot calls
8032         of functions called once, cold calls next.
8033         (order, nnodes): Remove unused variables.
8034         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8035         (GTFILES): Remove ipa-inline.c
8036         * sel-sched.c (fill_insns): Silence uninitialized var warning.
8038 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8040         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8042 2011-04-18  Jie Zhang  <jie@codesourcery.com>
8043             Richard Earnshaw  <rearnsha@arm.com>
8045         * arm.c (neon_builtin_type_bits): Remove.
8046         (typedef enum neon_builtin_mode): New.
8047         (T_MAX): Don't define.
8048         (typedef enum neon_builtin_datum): Remove bits, codes[],
8049         num_vars and base_fcode.  Add mode, code and fcode.
8050         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8051         VAR10): Change accordingly.
8052         (neon_builtin_data[]): Change accordingly
8053         (arm_init_neon_builtins): Change accordingly.
8054         (neon_builtin_compare): Remove.
8055         (locate_neon_builtin_icode): Remove.
8056         (arm_expand_neon_builtin): Change accordingly.
8058         * arm.h (enum arm_builtins): Move to ...
8059         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8061         * arm.c (arm_builtin_decl): Declare.
8062         (TARGET_BUILTIN_DECL): Define.
8063         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8064         (arm_builtin_decls[]): New.
8065         (arm_init_neon_builtins): Store builtin declarations in
8066         arm_builtin_decls[].
8067         (arm_init_tls_builtins): Likewise.
8068         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
8069         (arm_builtin_decl): New.
8071 2011-04-18  Richard Guenther  <rguenther@suse.de>
8073         * tree.c (upper_bound_in_type): Build properly canonicalized
8074         INTEGER_CSTs.
8075         (lower_bound_in_type): Likewise.
8077 2011-04-18  Richard Guenther  <rguenther@suse.de>
8079         * gimple.h (gimple_call_addr_fndecl): New function.
8080         (gimple_call_fndecl): Use it.
8081         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8082         for direct calls.
8083         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8084         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8086 2011-04-18  Richard Guenther  <rguenther@suse.de>
8088         PR middle-end/48650
8089         * tree.c (build_string): STRING_CST is now derived from tree_typed.
8091 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8093         PR lto/48492
8094         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8095         DECL_IN_CONSTANT_POOL without RTL.
8097 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
8098             Ira Rosen  <ira.rosen@linaro.org>
8100         PR target/48252
8101         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8102         to match neon_vzip/vuzp/vtrn_internal.
8103         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8104         outputs explicitly dependent on both inputs.
8105         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8107 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
8109         PR tree-optimization/48616
8110         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8111         whether the shift is by scalar or vector based on whether all SLP
8112         scalar stmts have the same rhs.
8114 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
8116         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8117         memory operands.
8119 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
8121         PR target/43700
8122         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8123         registers.
8125 2011-04-17  Jan Hubicka  <jh@suse.cz>
8127         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
8128         * cgrpahunit.c (cgraph_finalize_function): Do not set
8129         finalized_by_frontend.
8130         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8131         finalized_by_frontend.
8133 2011-04-17  Jan Hubicka  <jh@suse.cz>
8135         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8136         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8137         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
8138         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8139         method.
8140         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8141         gimple-fold.c
8142         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8144 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
8146         PR lto/48538
8147         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8148         is non-null before accessing it.
8149         (input_cgraph): Remove trailing spaces.
8151 2011-04-17  Revital Eres  <revital.eres@linaro.org>
8153         * params.def (sms-min-sc): New param flag.
8154         * modulo-sched.c (sms_schedule): Use it.
8155         * doc/invoke.texi (sms-min-sc): Document it.
8157 2011-04-17  Jan Hubicka  <jh@suse.cz>
8159         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8160         present, also set gimple_call_set_cannot_inline.
8161         * ipa-inline.c: Update toplevel comment.
8162         (MAX_TIME): Remove.
8163         (cgraph_clone_inlined_nodes): Fix linebreaks.
8164         (cgraph_check_inline_limits): Restructure to ...
8165         (caller_growth_limits): ... this one; be more tolerant
8166         on growth in nested inline chains; add explanatory comment;
8167         fix stack accounting thinko introduced by previous patch.
8168         (cgraph_default_inline_p): Remove.
8169         (report_inline_failed_reason): New function.
8170         (can_inline_edge_p): New function.
8171         (can_early_inline_edge_p): New function.
8172         (leaf_node_p): Move upwards in file.
8173         (want_early_inline_function_p): New function.
8174         (want_inline_small_function_p): New function.
8175         (want_inline_self_recursive_call_p): New function.
8176         (cgraph_edge_badness): Rename to ...
8177         (edge_badness) ... this one; fix linebreaks.
8178         (update_edge_key): Update call of edge_baddness; add
8179         detailed dump about queue updates.
8180         (update_caller_keys): Use can_inline_edge_p and
8181         want_inline_small_function_p.
8182         (cgraph_decide_recursive_inlining): Rename to...
8183         (recursive_inlining): Use can_inline_edge_p and
8184         want_inline_self_recursive_call_p; simplify and remove no longer
8185         valid FIXME.
8186         (cgraph_set_inline_failed): Remove.
8187         (add_new_edges_to_heap): Use can_inline_edge_p and
8188         want_inline_small_function_p.
8189         (cgraph_decide_inlining_of_small_functions): Rename to ...
8190         (inline_small_functions): ... this one; cleanup; use
8191         can/want predicates; cleanup debug ouput; work edges till fibheap
8192         is exhausted and do not stop once unit growth is reached; remove
8193         later loop processing remaining edges.
8194         (cgraph_flatten): Rename to ...
8195         (flatten_function): ... this one; use can_inline_edge_p
8196         and can_early_inline_edge_p predicates.
8197         (cgraph_decide_inlining): Rename to ...
8198         (ipa_inline): ... this one; remove unreachable nodes before
8199         inlining functions called once; simplify the pass.
8200         (cgraph_perform_always_inlining): Rename to ...
8201         (inline_always_inline_functions): ... this one; use
8202         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
8203         (cgraph_decide_inlining_incrementally): Rename to ...
8204         (early_inline_small_functions): ... this one; simplify
8205         using new predicates; cleanup; make dumps prettier.
8206         (cgraph_early_inlining): Rename to ...
8207         (early_inliner): newer inline regular functions into always-inlines;
8208         fix updating of call stmt summaries.
8209         (pass_early_inline): Update for new names.
8210         (inline_transform): Fix formating.
8211         (gate_cgraph_decide_inlining): Rename to ...
8212         (pass_ipa_inline): ... this one.
8213         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8214         * ipa-inline-analysis.c (dump_inline_summary): Update.
8215         (compute_inline_parameters): Do not compute disregard_inline_limits;
8216         look for mismatching arguments.
8217         (estimate_growth): Fix handlig of non-trivial self recursion.
8218         (inline_read_summary): Do not read info->disregard_inline_limits.
8219         (inline_write_summary): Do not write info->disregard_inline_limits.
8220         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
8221         and move all checks into can_inline_edge_p predicate; re-enable code
8222         comparing optimization levels.
8223         (expand_call_inline): Do not test inline_forbidden_into_p.
8224         * Makefile.in (ipa-inline.o): Update arguments.
8226 2011-04-17  Revital Eres  <revital.eres@linaro.org>
8228         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
8230 2011-04-17  Revital Eres  <revital.eres@linaro.org>
8232         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
8234 2011-04-17  Michael Matz  <matz@suse.de>
8236         PR tree-optimization/48622
8237         PR lto/48645
8238         * ipa-inline-analysis.c (inline_read_summary): Read size/time
8239         in same order as they're written.
8241 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8243         * config/pa/predicates.md: Reorganize and simplify predicates.
8244         Eliminate duplicate code checks.
8245         (arith_operand): Rename to arith14_operand
8246         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
8247         * config/pa/pa.md: Use renamed operands.
8248         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
8249         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
8250         arith11_operand, adddi3_operand, indexed_memory_operand,
8251         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
8252         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
8253         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
8254         move_dest_operand, move_src_operand, prefetch_cc_operand,
8255         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
8256         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
8257         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
8258         div_operand, int5_operand, movb_comparison_operator,
8259         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
8260         arith_double_operand, ireg_operand, lhs_lshift_operand,
8261         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
8262         integer_store_memory_operand): Likewise.
8263         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
8264         (integer_store_memory_operand, read_only_operand,
8265         function_label_operand, borx_reg_operand,
8266         non_hard_reg_operand): Likewise.
8267         (eq_neq_comparison_operator): Delete unused operator.
8268         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
8269         function_label_operand.
8270         (emit_move_sequence): Likewise.
8272 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
8274         * config/i386/sse.md (sseunpackmode): New mode attribute.
8275         (ssepackmode): Ditto.
8276         (vec_pack_trunc_<mode>): Macroize expander from
8277         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
8278         (vec_unpacks_lo_<mode>): Macroize expander from
8279         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8280         (vec_unpacks_hi_<mode>): Macroize expander from
8281         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8282         (vec_unpacku_lo_<mode>): Macroize expander from
8283         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8284         (vec_unpacku_hi_<mode>): Macroize expander from
8285         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8286         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
8287         ix86_expand_sse4_unpack.
8288         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
8290 2011-04-16  Jan Hubicka  <jh@suse.cz>
8292         * cgraphbuild.c: Include ipa-inline.h.
8293         (reset_inline_failed): Use initialize_inline_failed.
8294         * cgraph.c: Include ipa-inline.h.
8295         (cgraph_create_node_1): Do not initialize estimated_growth.
8296         (initialize_inline_failed): More to ipa-inline-analysis.c
8297         (dump_cgraph_node): Do not dump inline flags.
8298         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
8299         and disregard_inline_limits flags.
8300         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
8301         time, size, estimated_growth.
8302         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
8303         Update.
8304         * cgraphunit.c (cgraph_decide_is_function_needed): Use
8305         DECL_DISREGARD_INLINE_LIMITS.
8306         (cgraph_analyze_function): Do not initialize
8307         node->local.disregard_inline_limits.
8308         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8309         inlinable, versionable and disregard_inline_limits.
8310         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8311         cgraph_check_inline_limits, cgraph_default_inline_p,
8312         cgraph_edge_badness, update_caller_keys, update_callee_keys,
8313         add_new_edges_to_heap): Update.
8314         (cgraph_decide_inlining_of_small_function): Update; set
8315         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
8316         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
8317         cgraph_decide_inlining_incrementally): Update.
8318         * ipa-inline.h (inline_summary): Add inlinable, versionable,
8319         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
8320         time, size and estimated_growth parameters.
8321         (estimate_edge_growth): Update.
8322         (initialize_inline_failed): Declare.
8323         * ipa-split.c: Include ipa-inline.h
8324         (execute_split_functions): Update.
8325         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
8326         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
8327         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
8328         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
8329         estimated_growth to INT_MIN.
8330         (inline_node_duplication_hook): Likewise.
8331         (dump_inline_summary): Dump new fields.
8332         (compute_inline_parameters): Update.
8333         (estimate_edge_time, estimate_time_after_inlining,
8334         estimate_size_after_inlining, estimate_growth, inline_read_summary,
8335         inline_write_summary):
8336         (initialize_inline_failed): Move here from cgraph.c.
8337         * tree-sra.c: Include ipa-inline.h.
8338         (ipa_sra_preliminary_function_checks): Update.
8339         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
8340         ipa-inline.h.
8342 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
8344         * config/i386/sse.md (V16): New mode iterator.
8345         (VI1, VI8): Ditto.
8346         (AVXMODEQI, AVXMODEDI): Remove.
8347         (sse2, sse3): New mode attribute.
8348         (mov<mode>): Use V16 mode iterator.
8349         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
8350         (push<mode>1): Use V16 mode iterator.
8351         (movmisalign<mode>): Ditto.
8352         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8353         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
8354         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8355         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
8356         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
8357         avx_movdqu<avxmodesuffix>.
8358         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
8359         *avx_movdqu<avxmodesuffix>.
8360         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
8361         avx_lddqu<avxmodesuffix>.
8362         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
8363         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
8364         avx_movnt<AVXMODEDI:mode>.
8365         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
8366         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
8368 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
8370         PR target/48629
8371         * haifa-sched.c (prune_ready_list, schedule_block): Use
8372         sched_pressure_p rather than flag_sched_pressure.
8374 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
8376         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8377         cgraph_get_node instead of cgraph_get_create_node.
8379 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
8381         * cfgexpand.c (expand_debug_expr): Use
8382         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
8384 2011-04-15  Michael Matz  <matz@suse.de>
8386         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
8387         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
8388         * function.c (gimplify_parameters): Ditto.
8389         * gimplify.c (gimplify_vla_decl): Ditto.
8391         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
8392         (gimple_call_set_alloca_for_var): New inline function.
8393         (gimple_call_alloca_for_var_p): Ditto.
8394         * gimple.c (gimple_build_call_from_tree): Remember
8395         CALL_ALLOCA_FOR_VAR_P state.
8396         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
8398         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
8399         calls if they were for VLA objects.
8401 2011-04-15  Martin Jambor  <mjambor@suse.cz>
8403         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
8404         of ADR_EXPRs.
8406 2011-04-15  Martin Jambor  <mjambor@suse.cz>
8408         PR middle-end/48601
8409         * tree-emutls.c (lower_emutls_function_body): Call
8410         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
8411         result is non-NULL.
8413 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
8415         * c-decl.c (detect_field_duplicates): Call
8416         objc_detect_field_duplicates instead of objc_get_interface_ivars.
8418 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
8420         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
8421         * gimple.c (gimple_asm_clobbers_memory_p): Define.
8422         * ipa-pure-const.c (check_stmt): Call it.
8423         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
8425 2011-04-15  Richard Guenther  <rguenther@suse.de>
8427         PR tree-optimization/48290
8428         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
8429         Properly decide inhibiting propagation based on the valueized
8430         operand.  Do loop-closed SSA form preserving here ...
8431         (init_copy_prop): ... not here.
8433 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
8435         PR target/48612
8436         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
8437         (*ieee_smax<mode>3): Likewise.
8439 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8441         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
8442         Replace match_operand with match_dup for the third operand in
8443         these expanders.
8445 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
8447         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
8448         to track processing of conditionals.  Update all callers.
8449         (try_combine, simplify_if_then_else): Update.
8451 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
8453         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
8454         -fsched-pressure.
8456 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
8458         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
8459         instead of match_operand for operand 3.
8461 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
8463         * recog.h (insn_operand_data): Add an "allows_mem" field.
8464         * genoutput.c (output_operand_data): Initialize it.
8465         * optabs.c (maybe_legitimize_operand_same_code): New function.
8466         (maybe_legitimize_operand): Use it when matching the original
8467         op->value.
8469 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8471         * gimplify.c: Fix issues in comments throughout.
8472         (voidify_wrapper_expr): Fix long line.
8473         (build_stack_save_restore): Likewise.
8474         (gimplify_loop_expr): Likewise.
8475         (gimplify_compound_lval): Likewise.
8476         (gimplify_init_ctor_eval): Likewise.
8477         (gimplify_modify_expr_rhs): Likewise.
8478         (omp_notice_threadprivate_variable): Likewise.
8480 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8482         * cfgexpand.c (expand_call_stmt): Convert the function type to the
8483         original one if this is not a builtin function.
8485 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
8487         PR target/48605
8488         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
8489         offset it as needed based on top 2 bits in operands[3], change
8490         MEM mode to SFmode and mask those 2 bits away from operands[3].
8492 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
8494         * c-parser.c (c_parser_objc_protocol_definition): Updated for
8495         change from objc_declare_protocols() to objc_declare_protocol().
8497 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
8499         * config/i386/sse.md (sse4_1): New mode attribute.
8500         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
8501         avx_blend<ssemodesuffix><avxmodesuffix> and
8502         sse4_1_blend<ssemodesuffix> using VF mode iterator.
8503         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
8504         avx_blendv<ssemodesuffix><avxmodesuffix> and
8505         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
8506         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
8507         avx_dp<ssemodesuffix><avxmodesuffix> and
8508         sse4_1_dp<ssemodesuffix> using VF mode iterator.
8509         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
8510         (sse4_1_packusdw): Merge with *avx_packusdw.
8511         (sse4_1_pblendvb): Merge with *avx_pblendvb.
8512         (sse4_1_pblendw): Merge with *avx_pblendw.
8513         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
8514         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
8515         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
8516         VF mode iterator.
8517         (sse4_1_round<ssescalarmodesuffix>): Merge with
8518         *avx_round<ssescalarmodesuffix>.
8519         (aesenc): Merge with *avx_aesenc.
8520         (aesenclast): Merge with *avx_aesenclast.
8521         (aesdec): Merge with *avx_aesdec.
8522         (aesdeclast): Merge with *avx_aesdeclast.
8523         (pclmulqdq): Merge with *pclmulqdq.
8524         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
8525         New predicate.
8526         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
8528 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
8530         PR middle-end/48608
8531         * cfgexpand.c (get_decl_align_unit): Renamed to ...
8532         (align_local_variable): This.  Update DECL_ALIGN.
8533         (add_stack_var): Updated.
8534         (expand_one_stack_var): Likewise.
8536 2011-04-14  Richard Guenther  <rguenther@suse.de>
8538         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
8539         Remove.
8540         (dse_initialize_block_local_data, dse_leave_block,
8541         record_voperand_set, get_stmt_uid): Likewise.
8542         (dse_possible_dead_store_p): Allow any kind of killing stmt.
8543         (dse_optimize_stmt): Remove voperand set handling code.
8544         Simplify and improve to handle any kind of killing stmt.
8545         (dse_record_phi): Remove.
8546         (dse_enter_block): Simplify.
8547         (tree_ssa_dse): Likewise.
8548         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
8550 2011-04-14  Jan Hubicka  <jh@suse.cz>
8552         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
8553         * cgraph.h (struct inline_summary): Move to ipa-inline.h
8554         (cgraph_local_info): Remove inline_summary.
8555         * ipa-cp.c: Include ipa-inline.h.
8556         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
8557         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
8558         accesor.
8559         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
8560         (input_overwrite_node): Do not set inline summary.
8561         (input_node): Do not stream inline summary.
8562         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
8563         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
8564         growth; we do not have inline parameters computed for that anyway.
8565         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
8566         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
8567         (inline_summary_t): New type and VECtor.
8568         (debug_inline_summary, dump_inline_summaries): Declare.
8569         (inline_summary): Use VOCtor.
8570         (estimate_edge_growth): Kill hack computing call stmt size directly.
8571         * lto-section-in.c (lto_section_name): Add inline section.
8572         * ipa-inline-analysis.c: Include lto-streamer.h
8573         (node_removal_hook_holder, node_duplication_hook_holder): New holders
8574         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
8575         (inline_summary_vec): Define.
8576         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
8577         dump_inline_summaries): New functions.
8578         (estimate_function_body_sizes): Properly compute size/time of outgoing
8579         calls.
8580         (compute_inline_parameters): Alloc inline_summary; do not compute
8581         size/time of incomming calls.
8582         (estimate_edge_time): Avoid missing time summary hack.
8583         (inline_read_summary): Read inline summary info.
8584         (inline_write_summary): Write inline summary info.
8585         (inline_free_summary): Free all hooks and inline summary vector.
8586         * lto-streamer.h: Add LTO_section_inline_summary section.
8587         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
8588         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
8590 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
8592         * tree-vectorizer.h (vect_strided_store_supported): Add a
8593         HOST_WIDE_INT argument.
8594         (vect_strided_load_supported): Likewise.
8595         (vect_permute_store_chain): Return void.
8596         (vect_transform_strided_load): Likewise.
8597         (vect_permute_load_chain): Delete.
8598         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
8599         count argument.  Check that the count is a power of two.
8600         (vect_strided_load_supported): Likewise.
8601         (vect_permute_store_chain): Return void.  Update after above changes.
8602         Assert that the access is supported.
8603         (vect_permute_load_chain): Likewise.
8604         (vect_transform_strided_load): Return void.
8605         * tree-vect-stmts.c (vectorizable_store): Update calls after
8606         above interface changes.
8607         (vectorizable_load): Likewise.
8608         (vect_analyze_stmt): Don't check for strided powers of two here.
8610 2011-04-14  Richard Guenther  <rguenther@suse.de>
8612         PR tree-optimization/48590
8613         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8614         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8615         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
8616         BUILT_IN_STACK_SAVE.
8617         * tree-ssa-dce.c (propagate_necessity): Handle
8618         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8620 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
8622         * c-parser.c (c_parser_objc_class_declaration): Updated call to
8623         objc_declare_class.
8625 2011-04-14  Richard Guenther  <rguenther@suse.de>
8627         * tree.h (get_object_alignment_1): Declare.
8628         * builtins.c (get_object_alignment_1): Split out worker from ...
8629         (get_object_alignment): ... here.
8630         * fold-const.c (get_pointer_modulus_and_residue): Use
8631         get_object_alignment_1.
8633 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
8635         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
8636         type parameter.
8637         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
8638         parameter.  Generalise code to handle arrays as well as vectors.
8639         (vect_setup_realignment): Update accordingly.
8640         * tree-vect-stmts.c (vectorizable_store): Likewise.
8641         (vectorizable_load): Likewise.
8643 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
8645         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
8646         within the per-copy loop.
8648 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
8650         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
8651         in the dump file.
8653 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
8655         * doc/options.texi (Negative): Explicitly mention that the
8656         Negative chain must be circular.
8658 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
8660         * function.h (block_chainon): Declare.
8661         * function.c (block_chainon): Define.
8663 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
8664             Eric Weddington  <eric.weddington@atmel.com>
8665             Georg-Johann Lay  <avr@gjlay.de>
8667         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
8668         New Includes
8669         (avr_init_builtins, avr_expand_builtin,
8670         avr_expand_delay_cycles, avr_expand_unop_builtin,
8671         avr_expand_binop_builtin ): New functions.
8672         (avr_builtin_id): New enum
8673         (struct avr_builtin_description): New struct
8674         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
8675         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
8677         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
8678         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
8679         UNSPECV_DELAY_CYCLES): new enumeration values
8680         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
8681         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
8682         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
8683         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
8684         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
8685         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
8686         "fmulsu"): New insns
8688         * config/avr/avr-c.c: fix line endings
8689         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
8690         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
8691         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
8692         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
8693         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
8695         * doc/extend.texi (AVR Built-in Functions): New node
8696         (Target Builtins): Add documentation of AVR
8697         built-in functions.
8699 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
8701         PR target/44643
8702         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
8703         alone. Error if non-const data has attribute progmem.
8705 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
8707         * tree.h (struct tree_constructor): Include tree_typed instead of
8708         tree_common.
8709         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
8710         TS_TYPED instead of TS_COMMON.
8712 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
8714         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
8715         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
8716         (sse2_psadbw): Merge with *avx_psadbw.
8717         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
8718         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
8719         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
8720         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
8721         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
8722         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
8723         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
8724         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
8725         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
8726         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
8727         (ssse3_palignrti): Merge with *avx_palignrti.
8729 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
8731         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
8732         * tree-ssanames.c (fini_ssanames): VEC_free it.
8733         (make_ssa_name_fn): Update for VECness of free_ssanames.
8734         (release_ssa_name, release_dead_ssa_names): Likewise.
8735         * tree.h (struct tree_ssa_name): Include tree_typed instead of
8736         tree_common.
8737         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
8738         TS_TYPED instead of TS_COMMON.
8740 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
8742         * postreload-gcse.c (gcse_after_reload_main): Add calls to
8743         statistics_counter_event.
8744         * tree-ssa-copyrename.c (stats): Define.
8745         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
8746         statistics_counter_event.
8747         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
8748         (bswap_stats, widen_mul_stats): Define.
8749         (insert_reciprocals): Increment rdivs_inserted.
8750         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
8751         rfuncs_inserted.  Add calls to statistics_counter_event.
8752         (execute_cse_sincos_1): Increment inserted.
8753         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
8754         statistics_counter_event.
8755         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
8756         of bswap_stats.  Add calls to statistics_counter_event.
8757         (convert_mult_to_widen): Increment widen_mults_inserted.
8758         (convert_plusminus_to_widen): Increment maccs_inserted.
8759         (convert_mult_to_fma): Increment fmas_inserted.
8760         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
8761         calls to statistics_counter_event.
8763 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
8765         PR rtl-optimization/48455
8766         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
8767         `temp_costs->mem_cost'.
8769 2011-04-13  Jan Hubicka  <jh@suse.cz>
8771         * ipa-inline.h: New file.
8772         * ipa-inline-analysis.c: New file. Broken out of ...
8773         * ipa-inline.c: ... this file; update toplevel comment;
8774         include ipa-inline.h
8775         (inline_summary): Move to ipa-inline.h
8776         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
8777         ipa-inline-analysis.c.
8778         (cgraph_estimate_time_after_inlining): Rename to
8779         estiamte_time_after_inlining; move to ipa-inline-analysis.c
8780         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
8781         to estimate_edge_growth.
8782         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
8783         rename to estimate_size_after_inlining.
8784         (cgraph_mark_inline_edge): Update for new naming convention.
8785         (cgraph_check_inline_limits): Likewise.
8786         (cgraph_edge_badness): Likewise.
8787         (cgraph_decide_recursive_inlining): Likewise.
8788         (cgraph_decide_inlining_of_small_functions): Likewise.
8789         (cgraph_decide_inlining_incrementally): Likewise.
8790         (cgraph_estimate_growth): Rename to estimate_growth; move to
8791         ipa-inline-analysis.c.
8792         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
8793         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
8794         (compute_inline_parameters): Likewise.
8795         (compute_inline_parameters_for_current): Likewise.
8796         (pass_inline_parameters): Likewise.
8797         (inline_indirect_intraprocedural_analysis): Likewise.
8798         (analyze_function): Rename to inline_analyze_function; likewise.
8799         (add_new_function): Move to ipa-inline-analysis.c.
8800         (inline_generate_summary): Likewise.
8801         (inline_read_summary): Likewise.
8802         (inline_write_summary): Likewise.
8803         * Makefile.in (ipa-inline-analysis.c): New file.
8805 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8807         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
8808         * configure: Regenerate.
8810 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
8812         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
8813         instead of tree_common.
8814         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
8815         Likewise.
8816         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
8817         TS_TYPED rather than TS_COMMON.
8818         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
8820 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
8822         PR target/45263
8823         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
8824         r20 around calls of __tablejump_elpm__
8826 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
8828         PR middle-end/48591
8829         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
8830         NULL.
8831         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
8833 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
8835         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
8836         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
8837         (cfi_vec): New typedef.
8838         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
8839         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
8840         (cie_cfi_vec): New static variable.
8841         (cie_cfi_head): Delete.
8842         (add_cfi): Accept a cfi_vec * as first argument. All callers and
8843         declaration changed. Use vector rather than list operations.
8844         (new_cfi): Don't initialize the dw_cfi_next field.
8845         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
8846         rather than list operations.
8847         (lookup_cfa): Use vector rather than list operations.
8848         (output_cfis): New argument upto. Accept a cfi_vec rather than
8849         a dw_cfi_ref list head as argument. All callers changed.
8850         Iterate over the vector using upto as a maximum index.
8851         (output_all_cfis): New static function.
8852         (output_fde): Use vector rather than list operations. Use the
8853         new upto argument for output_cfis rather than manipulating a
8854         list.
8855         (dwarf2out_begin_prologue): Change initializations to match
8856         new struct members.
8857         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
8858         from the vector length rather than searching for the end of a list.
8859         Use output_all_cfis.
8860         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
8862 2011-04-13  Nick Clifton  <nickc@redhat.com>
8864         * config/rx/rx.md (movmemsi): Do not use this pattern when
8865         volatile pointers are involved.
8867 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
8869         * config/i386/sse.md (pinsrbits): Remove.
8870         (sse2_packsswb): Merge with *avx_packsswb.
8871         (sse2_packssdw): Merge with *avx_packssdw.
8872         (sse2_packuswb): Merge with *avx_packuswb.
8873         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
8874         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
8875         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
8876         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
8877         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
8878         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
8879         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
8880         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
8881         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
8882         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
8883         (sse2_loadld): Merge with *avx_loadld.
8884         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
8885         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
8886         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
8887         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
8888         (vec_concatv2di): Merge with *vec_concatv2di_avx.
8890 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
8892         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
8893         calling TREE_CHAIN.
8894         * print-tree.c (print_node): Likewise.
8895         * tree-inline.c (copy_tree_r): Likewise.
8896         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
8897         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
8898         instead of TS_COMMON.
8899         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
8900         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
8901         (copy_node_stat): Zero TREE_CHAIN only if necessary.
8902         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
8903         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
8904         ...and these...
8905         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
8906         * tree.h: ...here.
8907         (TREE_CHAIN): Check for a TS_COMMON structure.
8908         (TREE_TYPE): Check for a TS_TYPED structure.
8910 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
8912         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8913         cgraph_get_create_node instead of cgraph_node.
8915 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
8917         * c-parser.c (c_parser_initelt): Updated call to
8918         objc_build_message_expr.
8919         (c_parser_postfix_expression): Likewise.
8921 2011-04-12  Kai Tietz  <ktietz@redhat.com>
8923         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
8924         MASK_MS_BITFIELD_LAYOUT bit.
8926 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
8928         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
8929         assert it is always true.
8930         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
8931         moves.
8933 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
8935         * c-parser.c (c_lex_one_token): Rewritten conditional used when
8936         compiling Objective-C to be more efficient.
8938 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
8940         * opts-common.c (decode_cmdline_options_to_array): Remove variable
8941         argv_copied.
8943 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
8945         * recog.h, genoutput.c, optabs.c: Revert last patch.
8947 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8949         PR target/48090
8950         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
8952 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
8954         * recog.h (insn_operand_data): Add an "allows_mem" field.
8955         * genoutput.c (output_operand_data): Initialize it.
8956         * optabs.c (maybe_legitimize_operand_same_code): New function.
8957         (maybe_legitimize_operand): Use it when matching the original
8958         op->value.
8960 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
8962         * genpreds.c (process_define_predicate): Move most processing
8963         to gensupport.c.  Continue to validate the expression.
8964         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
8965         (process_define_predicate): Move processing to gensupport.c.
8966         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
8967         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
8968         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
8969         argument.
8970         (valid_predicate_name_p): New function, split out from old
8971         genpreds.c:process_define_predicate.
8972         (process_define_predicate): New function, combining code from
8973         old genpreds.c and genrecog.c functions.
8974         (process_rtx): Call it for DEFINE_PREDICATE and
8975         DEFINE_SPECIAL_PREDICATE.
8977 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
8979         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
8980         size of a '%A' memory reference.
8981         (T_DREG, T_QREG): New neon_builtin_type_bits.
8982         (arm_init_neon_builtins): Assert that the load and store operands
8983         are neon_struct_operands.
8984         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
8985         (NEON_ARG_MEMORY): New builtin_arg.
8986         (neon_dereference_pointer): New function.
8987         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
8988         Handle NEON_ARG_MEMORY.
8989         (arm_expand_neon_builtin): Update after above interface changes.
8990         Use NEON_ARG_MEMORY for loads and stores.
8991         * config/arm/predicates.md (neon_struct_operand): New predicate.
8992         * config/arm/iterators.md (V_two_elem): Tweak formatting.
8993         (V_three_elem): Use BLKmode for accesses that have no associated mode.
8994         (V_four_elem): Tweak formatting.
8995         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
8996         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
8997         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
8998         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
8999         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9000         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9001         (neon_vst4<mode>): Replace pointer operand with a memory operand.
9002         Use %A in the output template.
9003         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9004         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9005         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9006         the width of the memory access.  Remove post-increment.
9007         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9009 2011-04-12  Nick Clifton  <nickc@redhat.com>
9011         * config/v850/v850.c (expand_prologue): Do not use the CALLT
9012         instruction for interrupt handlers if the target is the basic V850
9013         architecture.
9014         (expand_epilogue): Likewise.
9016 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
9018         PR rtl-optimization/48549
9019         * combine.c (propagate_for_debug): Also stop after BB_END of
9020         this_basic_block.  Process LAST and just stop processing after it.
9021         (combine_instructions): If last_combined_insn has been deleted,
9022         set last_combined_insn to its PREV_INSN.
9024 2011-04-12  Richard Guenther  <rguenther@suse.de>
9026         PR tree-optimization/46076
9027         * gimple.h (struct gimple_statement_call): Add fntype field.
9028         (gimple_call_fntype): Adjust.
9029         (gimple_call_set_fntype): New function.
9030         * gimple.c (gimple_build_call_1): Set the call function type.
9031         * gimplify.c (gimplify_call_expr): Preserve the function
9032         type the frontend used for the call.
9033         (gimplify_modify_expr): Likewise.
9034         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9035         function type.
9036         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9037         function type.
9038         * tree-ssa.c (useless_type_conversion_p): Function pointer
9039         conversions are useless.
9041 2011-04-12  Martin Jambor  <mjambor@suse.cz>
9043         * cgraph.h (cgraph_node): Remove function declaration.
9044         (cgraph_create_node): Declare.
9045         (cgraph_get_create_node): Likewise.
9046         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9047         Updated all callers.
9048         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9049         the decl does not already exist.  Call cgraph_get_create_node instead
9050         of cgraph_node.
9051         (cgraph_get_create_node): New function.
9052         (cgraph_same_body_alias): Update comment.
9053         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9054         assert it does not return NULL.
9055         (cgraph_update_edges_for_call_stmt): Likewise.
9056         (cgraph_clone_edge): Likewise.
9057         (cgraph_create_virtual_clone): Likewise.
9058         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9059         instead of cgraph_node.
9060         (cgraph_add_new_function): Call cgraph_create_node or
9061         cgraph_get_create_node instead of cgraph_node.
9062         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9063         instead of cgraph_node.
9064         (record_eh_tables): Likewise.
9065         (mark_address): Likewise.
9066         (mark_load): Likewise.
9067         (build_cgraph_edges): Call cgraph_get_create_node instead
9068         of cgraph_node.
9069         (rebuild_cgraph_edges): Likewise.
9070         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9071         instead of cgraph_node.
9072         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9073         cgraph_node.
9074         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9075         cgraph_create_node instead of cgraph_node.
9076         * c-decl.c (finish_function): Call cgraph_get_create_node instead
9077         of cgraph_node.
9078         * lto-cgraph.c (input_node): Likewise.
9079         * lto-streamer-in.c (input_function): Likewise.
9080         * varasm.c (mark_decl_referenced): Likewise.
9081         (assemble_alias): Likewise.
9083 2011-04-12  Martin Jambor  <mjambor@suse.cz>
9085         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9086         instead of cgraph_node and assert it does not return NULL.
9087         * lto-streamer-in.c (lto_read_body): Likewise.
9088         * omp-low.c (new_omp_context): Likewise.
9089         (create_task_copyfn): Likewise.
9090         * tree-emutls.c (lower_emutls_function_body): Likewise.
9091         * matrix-reorg.c (transform_allocation_sites): Likewise.
9093 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
9095         PR c/48552
9096         * c-typeck.c (build_asm_expr): Error out on attempts to use
9097         void type outputs or inputs for constraints that allow reg or
9098         don't allow memory.
9100 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
9101             Richard Earnshaw  <rearnsha@arm.com>
9103         PR target/48250
9104         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9105         to use sign-magnitude offsets. Reject unsupported unaligned
9106         cases. Add detailed description in comments.
9107         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9108         condition from TARGET_32BIT to TARGET_ARM.
9110 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
9112         * tree.h (struct typed_tree): New.
9113         (struct tree_common): Include it instead of tree_base.
9114         (TREE_TYPE): Update for new location of type field.
9115         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9116         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9117         (union tree_node): Add typed field.
9118         * treestruct.def (TS_TYPED): New.
9119         * lto-streamer.c (check_handled_ts_structures): Handle it.
9120         * tree.c (MARK_TS_TYPED): New macro.
9121         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9123 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
9125         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9126         (force_nonfallthru): Do not alter the loop nest if no basic block
9127         was created.
9129 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
9131         * config/i386/sse.md (VI): New mode iterator.
9132         (SSEMODEI): Remove.
9133         (AVX256MODEI): Ditto.
9134         (AVXMODEF4P): Ditto.
9135         (avxvecpsmode): Ditto.
9136         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
9137         (sse2_andnot<mode>3): New expander.
9138         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9139         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
9140         (<any_logic:code><mode>3): Use VI mode iterator.
9141         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9142         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
9143         (*andnottf3): Handle AVX three-operand constraints.
9144         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9146 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
9147             Robert Millan  <rmh@gnu.org>
9149         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9150         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9151         GNU_USER_DYNAMIC_LINKER64): Define.
9152         (REG_NAME): Don't undefine.
9153         (MD_UNWIND_SUPPORT): Undefine.
9154         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9155         (REG_NAME): Don't undefine.
9156         (MD_UNWIND_SUPPORT): Undefine.
9157         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
9159 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
9161         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9162         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9164 2011-04-11  Xinliang David Li  <davidxl@google.com>
9166         * value-profile.c (check_ic_target): New function.
9167         (gimple_ic_transform): Sanity check indirect call target.
9168         * gimple-low.c (gimple_check_call_args): Interface change.
9169         (gimple_check_call_matching_types): New function.
9170         * tree-inline.c (tree_can_inline_p): Call new function.
9172 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
9174         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9175         tree-pretty-print.h & realmpfr.h.
9177 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
9179         PR middle-end/48464
9180         * ira.c (setup_pressure_classes): Fix typo in loop condition.
9181         (setup_allocno_and_important_classes): Ditto.
9183 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
9185         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9186         GNU_USER_DYNAMIC_LINKER.
9187         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9188         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9189         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9190         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9191         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9192         GNU_USER_TARGET_OS_CPP_BUILTINS.
9193         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9194         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9195         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9196         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9197         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9198         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9199         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9200         GNU_USER_TARGET_OS_CPP_BUILTINS.
9201         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9202         GNU_USER_DYNAMIC_LINKER.
9203         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9204         GNU_USER_TARGET_OS_CPP_BUILTINS.
9205         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9206         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9207         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9208         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9209         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9210         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9211         GNU_USER_DYNAMIC_LINKER64): Remove.
9212         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9213         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9214         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9215         GNU_USER_DYNAMIC_LINKER.
9216         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9217         GNU_USER_TARGET_OS_CPP_BUILTINS.
9218         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9219         GNU_USER_TARGET_OS_CPP_BUILTINS.
9220         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
9221         to GNU_USER_TARGET_OS_CPP_BUILTINS.
9222         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9223         GNU_USER_TARGET_OS_CPP_BUILTINS.
9224         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
9225         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
9226         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9227         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
9228         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9229         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9230         GNU_USER_DYNAMIC_LINKER.
9231         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9232         GNU_USER_TARGET_OS_CPP_BUILTINS.
9233         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
9234         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9235         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9236         GNU_USER_DYNAMIC_LINKER.
9237         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9238         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9239         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
9240         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9241         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9242         GNU_USER_DYNAMIC_LINKER.
9243         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
9244         GNU_USER_DYNAMIC_LINKERN32.
9245         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
9246         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
9247         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
9248         GNU_USER_DYNAMIC_LINKER32.
9249         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
9250         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9251         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9252         GNU_USER_DYNAMIC_LINKER.
9253         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9254         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9255         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
9256         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9257         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9258         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
9259         GNU_USER_DYNAMIC_LINKER32.
9260         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9261         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
9262         GNU_USER_DYNAMIC_LINKER.
9263         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
9264         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9265         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9266         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
9267         GNU_USER_DYNAMIC_LINKER64.
9268         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
9269         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9270         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9271         GNU_USER_DYNAMIC_LINKER.
9272         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
9273         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9274         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9275         GNU_USER_DYNAMIC_LINKER.
9276         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
9277         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9278         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9279         GNU_USER_DYNAMIC_LINKER32.
9280         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9281         GNU_USER_DYNAMIC_LINKER64.
9282         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9283         GNU_USER_DYNAMIC_LINKER64.
9284         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
9285         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9286         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
9287         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9288         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9290 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
9292         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
9293         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
9294         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
9295         GNU_USER_DYNAMIC_LINKER.
9296         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9297         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
9298         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
9299         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
9300         GNU_USER_DYNAMIC_LINKER64.
9301         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9302         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
9303         GNU_USER_LINK_EMULATION.
9304         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
9305         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
9306         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
9307         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
9308         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
9309         CPP_SPEC, CC1_SPEC): Remove.
9310         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
9311         (GNU_USER_DYNAMIC_LINKER): Define.
9312         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
9313         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
9314         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
9315         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
9316         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
9317         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
9318         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9319         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
9320         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
9321         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
9322         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
9323         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
9324         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
9325         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
9326         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
9327         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9328         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9329         GNU_USER_DYNAMIC_LINKER.
9330         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9331         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
9332         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9333         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
9334         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9335         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
9336         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
9337         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
9338         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
9339         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
9341 2011-04-11  Kai Tietz  <ktietz@redhat.com>
9343         PR target/9601
9344         PR target/11772
9345         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
9346         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
9347         comment.
9348         (ix86_is_msabi_thiscall): Removed.
9349         (ix86_is_type_thiscall): Likewise.
9350         (ix86_get_callcvt): New function.
9351         (ix86_comp_type_attributes): Simplify check.
9352         (ix86_function_regparm): Use ix86_get_callcvt for calling
9353         convention attribute checks.
9354         (ix86_return_pops_args): Likewise.
9355         (ix86_static_chain): Likewise.
9356         (x86_this_parameter): Likewise.
9357         (x86_output_mi_thunk): Likewise.
9358         (ix86_function_type_abi): Optimize check for types without attributes.
9359         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
9360         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
9361         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
9362         by flag-values.
9363         (IX86_BASE_CALLCVT): Helper macro.
9364         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9365         Use ix86_get_callcvt for calling convention attribute checks and avoid
9366         symbol-decoration for stdcall in TARGET_RTD case.
9367         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
9368         Likewise.
9369         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
9370         for declaration.
9372 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
9374         * config/i386/sse.md (VI_128): New mode iterator.
9375         (VI12_128): Rename from SSEMODE12.
9376         (VI14_128): Rename from SSEMODE14.
9377         (VI124_128): New mode iterator.
9378         (VI24_128): Rename from SSEMODE248.
9379         (VI248_128): Rename from SSEMODE248.
9380         (SSEMODE124C8): Remove.
9381         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9382         (*sse2_<plusminus_insn><mode>3): Merge with
9383         *avx_<plusminus_insn><mode>3.
9384         (*mulv8hi3): Merge with *avx_mulv8hi3.
9385         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
9386         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
9387         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
9388         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
9389         (ashr<mode>3): Merge with *avx_ashr<mode>3.
9390         (lshr<mode>3): Merge with *avx_lshr<mode>3.
9391         (ashl<mode>3): Merge with *avx_ashl<mode>3.
9392         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
9393         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
9394         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9395         (*<smaxmin:code>v8hi3): Ditto.
9396         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
9397         (*<smaxmin:code>v16qi3): Ditto.
9398         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
9399         (*sse2_eq<mode>3): Ditto.
9400         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
9401         (*sse2_gt<mode>3): Ditto.
9402         (vcondv2di): Split out of vcond<mode>.
9403         (vconduv2di): Split out of vcondu<mode>.
9405 2011-04-11  Richard Guenther  <rguenther@suse.de>
9407         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
9408         before calling tree_low_cst.
9410 2011-04-11  Richard Guenther  <rguenther@suse.de>
9412         * stor-layout.c (layout_type): Compute all array index size operations
9413         in the original type.
9414         (initialize_sizetypes): Add comment.
9415         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
9417 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
9419         * common.opt (Tbss=, Tdata=, Ttext=): New options.
9421 2011-04-11  Martin Jambor  <mjambor@suse.cz>
9423         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
9424         of cgraph_node, handle NULL return value.
9425         (cgraph_global_info): Likewise.
9426         (cgraph_rtl_info): Likewise.
9427         * tree-inline.c (estimate_num_insns): Likewise.
9428         * gimplify.c (unshare_body): Likewise.
9429         (unvisit_body): Likewise.
9430         (gimplify_body): Likewise.
9431         * predict.c (optimize_function_for_size_p): Likewise.
9432         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9433         (call_may_clobber_ref_p_1): Likewise.
9434         * varasm.c (function_section_1): Likewise.
9435         (assemble_start_function): Likewise.
9437 2011-04-11  Martin Jambor  <mjambor@suse.cz>
9439         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
9440         of cgraph_node.
9441         * final.c (rest_of_clean_state): Likewise.
9442         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
9443         * passes.c (pass_init_dump_file): Likewise.
9444         (execute_all_ipa_transforms): Likewise.
9445         (function_called_by_processed_nodes_p): Likewise.
9446         * predict.c (maybe_hot_frequency_p): Likewise.
9447         (probably_never_executed_bb_p): Likewise.
9448         (compute_function_frequency): Likewise.
9449         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
9450         (unnest_nesting_tree_1): Likewise.
9451         (lower_nested_functions): Likewise.
9452         * tree-optimize.c (execute_fixup_cfg): Likewise.
9453         (tree_rest_of_compilation): Likewise.
9454         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
9455         * tree-sra.c (ipa_early_sra): Likewise.
9456         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9457         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
9458         * ipa.c (record_cdtor_fn): Likewise.
9459         * ipa-inline.c (cgraph_early_inlining): Likewise.
9460         (compute_inline_parameters_for_current): Likewise.
9461         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9462         * ipa-pure-const.c (local_pure_const): Likewise.
9463         * ipa-split.c (split_function): Likewise.
9464         (execute_split_functions): Likewise.
9465         * cgraphbuild.c (build_cgraph_edges): Likewise.
9466         (rebuild_cgraph_edges): Likewise.
9467         (cgraph_rebuild_references): Likewise.
9468         (remove_cgraph_callee_edges): Likewise.
9469         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
9470         (verify_cgraph_node): Likewise.
9471         (cgraph_analyze_functions): Likewise.
9472         (cgraph_preserve_function_body_p): Likewise.
9473         (save_inline_function_body): Likewise.
9474         (save_inline_function_body): Likewise.
9475         * tree-inline.c (copy_bb): Likewise.
9476         (optimize_inline_calls): Likewise.
9478 2011-04-11  Martin Jambor  <mjambor@suse.cz>
9480         PR tree-optimization/48195
9481         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
9482         ipa_check_create_edge_args.
9483         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
9484         ipa_check_create_edge_args.
9485         * ipa-inline.c (inline_generate_summary): Do not call
9486         ipa_check_create_node_params and ipa_check_create_edge_args.
9487         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
9488         ipa_check_create_edge_args.
9490 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
9492         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
9493         instead of loop.
9494         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9495         * function.c (record_hard_reg_sets): Likewise.
9496         * ira.c (compute_regs_asm_clobbered): Likewise.
9497         * sched-deps.c (sched_analyze_1): Likewise.
9498         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
9500 2011-04-09  Xinliang David Li  <davidxl@google.com>
9502         PR tree-optimization/PR48484
9503         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
9504         has_valid_pred lazily
9506 2011-04-09  Duncan Sands  <baldrick@free.fr>
9508         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
9510 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
9512         * combine.c (combine_validate_cost): Adjust comments.  Set registered
9513         cost of I0 to zero at the end, if any.
9515 2011-04-08  Xinliang David Li  <davidxl@google.com>
9517         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
9518         to insane profile data.
9520 2011-04-08  Xinliang David Li  <davidxl@google.com>
9522         * ipa-cp.c (ipcp_update_profiling): Correct
9523          negative scale factor due to insane profile data.
9525 2011-04-08  Xinliang David Li  <davidxl@google.com>
9527         * final.c (dump_basic_block_info): New function.
9528         (final): Dump basic block.
9529         (final_scan_insn): Remove old dump.
9531 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
9533         PR target/47829
9534         * config.gcc (i386-*-freebsd): Disable unwind table generation for
9535         crtbegin/crtend.
9537 2011-04-08  Michael Matz  <matz@suse.de>
9539         PR middle-end/48389
9540         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
9541         functions.
9542         (rebuild_jump_labels): Call rebuild_jump_labels_1.
9543         * rtl.h (rebuild_jump_labels_chain): Declare.
9544         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
9545         insns inserted on edges.
9547 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
9549         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
9550         * config/arm/arm-arches.def: New.
9551         * config/arm/arm-opts.h: New.
9552         * config/arm/genopt.sh: New.
9553         * config/arm/arm-tables.opt: New (generated).
9554         * config/arm/arm.c (arm_handle_option, arm_target_help,
9555         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
9556         (all_architectures): Get most table contents from arm-arches.def.
9557         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
9558         arm_selected_tune here.
9559         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
9560         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
9561         (march=, mcpu=, mtune=): Use Enum and Var.
9562         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
9563         (arm.o): Update dependencies.
9565 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
9567         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
9568         of header_file.
9569         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
9570         (write_typed_alloc_defns): Likewise.
9571         (main): Calls write_typed_alloc_defns with output_header.
9573 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
9575         PR inline-asm/48435
9576         * ira-color.c (setup_profitable_hard_regs): Add comments.
9577         Don't take prohibited hard regs into account.
9578         (setup_conflict_profitable_regs): Rename to
9579         get_conflict_profitable_regs.
9580         (check_hard_reg_p): Check prohibited hard regs.
9582 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
9584         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
9585         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
9586         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
9588 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9590         PR target/48366
9591         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
9592         move from floating point to shift amount register.
9593         (emit_move_sequence): Remove secondary reload support for floating
9594         point to shift amount amount register copies.
9595         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
9596         amount register copies.
9597         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
9598         register, return false if mode isn't a scalar integer mode.
9599         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
9601 2011-04-08  Richard Guenther  <rguenther@suse.de>
9603         * gimple.c (gimple_call_flags): Remove kludge.
9605 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
9607         * sel-sched.c (sel_region_init): Move call to
9608         sel_setup_region_sched_flags after setup_current_loop_nest.
9610 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
9612         PR rtl-optimization/48272
9613         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
9614         init_insn_reg_pressure_info.  Adjust a caller.
9615         * sched-int.h (init_insn_reg_pressure_info): Declare.
9616         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
9617         when sched-pressure is enabled.
9619 2011-04-08  Richard Guenther  <rguenther@suse.de>
9621         * gimple.c (gimple_set_modified): Do not queue calls to
9622         MODIFIED_NORETURN_CALLS here ...
9623         * tree-ssa-operands.c (update_stmt_operands): ... but here.
9625 2011-04-08  Richard Guenther  <rguenther@suse.de>
9627         PR lto/48467
9628         * toplev.c (lang_dependent_init): Do not open asm_out_file
9629         in WPA mode, nor perform debug machinery initialization.
9630         (finalize): Do not unlink asm_out_file in WPA mode.
9632 2011-04-08  Richard Guenther  <rguenther@suse.de>
9634         * gimple.h (gimple_call_fntype): New function.
9635         (gimple_call_return_type): Use it.
9636         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
9637         * gimple-low.c (gimple_check_call_args): Likewise.
9638         * gimple.c (gimple_call_flags): Likewise.
9639         (gimple_call_arg_flags): Likewise.
9640         (gimple_call_return_flags): Likewise.
9641         * tree-cfg.c (verify_gimple_call): Likewise.
9642         (do_warn_unused_result): Likewise.
9643         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9644         * value-prof.c (gimple_ic_transform): Fix fndecl check.
9646 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
9648         PR rtl-optimization/48235
9649         * sel-sched.c (code_motion_process_successors): Recompute the last
9650         insn in basic block if control flow changed.
9651         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
9652         Update condition for ilist_remove.
9654 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
9656         PR rtl-optimization/48302
9657         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
9658         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
9659         it to record added preheader blocks.
9660         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
9661         on to sel_add_loop_preheaders.
9662         (sel_region_init): Move call to setup_current_loop_nest after
9663         sel_init_bbs.
9665 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
9667         PR target/48273
9668         * cfgloop.h (loop_has_exit_edges): New helper.
9669         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
9670         non-clonable.
9671         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
9672         that have no exit edges.
9674 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
9676         PR rtl-optimization/48442
9677         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
9678         all callers.  Adjust assert.
9680 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
9682         PR tree-optimization/48377
9683         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
9684         is_packed to true even for types with smaller TYPE_ALIGN than
9685         TYPE_SIZE.
9687 2011-04-08  Richard Guenther  <rguenther@suse.de>
9689         PR bootstrap/48513
9690         * doc/tm.texi: Re-generate.
9692 2011-04-08  Wei Guozhi  <carrot@google.com>
9694         PR target/47855
9695         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
9696         * config/arm/arm.c (arm_attr_length_push_multi): New function.
9697         * config/arm/arm.md (*push_multi): Change the length computation to
9698         call a C function.
9700 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
9702         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
9703         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
9704         * doc/tm.texi: Regenerate.
9705         * system.h (ASM_OUTPUT_BSS): Poison.
9706         * varasm.c (asm_output_bss): Remove function.
9707         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
9709         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
9710         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
9711         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
9712         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9713         Likewise.
9714         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9715         Likewise.
9716         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9717         Likewise.
9718         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9720 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
9722         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
9723         EnumValue lines.
9725 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
9727         * config/m68k/m68k.c (m68k_handle_option): Don't handle
9728         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
9729         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
9730         OPT_mcpu32.
9731         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9732         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
9733         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
9734         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
9735         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
9736         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
9737         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9738         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
9739         options.  Don't map other m68k options manually.  Don't handle
9740         old-style options as canonical.
9741         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9742         * doc/install.texi (m68k-*-*): Document binutils version requirement.
9744 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9746         * basic-block.h (force_nonfallthru): Move to...
9747         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
9748         (force_nonfallthru): ...here.
9749         * cfghooks.c (force_nonfallthru): New function.
9750         * cfgrtl.c (force_nonfallthru): Rename into...
9751         (rtl_force_nonfallthru): ...this.
9752         (commit_one_edge_insertion): Do not set AUX field.
9753         (commit_edge_insertions): Do not discover new basic blocks.
9754         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
9755         (cfg_layout_rtl_cfg_hooks): Likewise.
9756         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
9757         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
9758         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
9760 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
9762         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9763         Remove macros.
9765 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
9767         * config/i386/sse.md: Update copyright year.
9768         (avxcvtvecmode): Remove.
9769         (sse_movhlps): Merge with *avx_movhlps.
9770         (sse_movlhps): Merge with *avx_movlhps.
9771         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
9772         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
9773         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
9774         (sse_loadhps): Merge with *avx_loadhps.
9775         (sse_storelps): Merge with *avx_storelps.
9776         (sse_loadlps): Merge with *avx_loadlps.
9777         (sse_movss): Merge with *avx_movss.
9778         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
9779         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
9780         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
9781         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
9782         (vec_set<mode>_0): Ditto.
9783         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
9784         (sse4_1_insertps): Merge with *avx_insertps.
9785         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
9786         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
9787         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
9788         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
9789         (sse2_storehpd): Merge with *avx_storehpd.
9790         (sse2_loadhpd): Merge with *avx_loadhpd.
9791         (sse2_loadlpd): Merge with *avx_loadlpd.
9792         (sse2_movsd): Merge with *avx_movsd.
9793         (*vec_concatv2df): Merge with *vec_concatv2df.
9795 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
9797         PR debug/48343
9798         * combine.c (combine_instructions): Add last_combined_insn,
9799         update it if insn is after it, pass it to all try_combine calls.
9800         (try_combine): Add last_combined_insn parameter, pass it instead of
9801         i3 to propagate_for_debug.
9803 2011-04-07  Nick Clifton  <nickc@redhat.com>
9805         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
9806         to handle MDR <-> data register transfers.
9807         (movhi_internal): Likewise.
9809 2011-04-07  Alan Modra  <amodra@gmail.com>
9811         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
9812         previous stack info.
9814 2011-04-07  Tom de Vries  <tom@codesourcery.com>
9816         PR target/43920
9817         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
9818         flow_find_cross_jump.  Swap variables to implement backward replacement.
9819         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
9821 2011-04-07  Tom de Vries  <tom@codesourcery.com>
9823         PR target/43920
9824         * cfgcleanup.c (walk_to_nondebug_insn): New function.
9825         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
9826         and bb2.
9827         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
9828         src1 or src2.  Redirect edges to the last basic block.  Update
9829         frequency and count on multiple basic blocks in case of fallthru.
9831 2011-04-07  Tom de Vries  <tom@codesourcery.com>
9833         PR target/43920
9834         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
9835         function.
9836         (old_insns_match_p): Change return type.  Replace return false/true
9837         with return dir_none/dir_both.  Use can_replace_by.
9838         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
9839         direction from dir_p.  Register replacement direction in dir, last_dir
9840         and afterlast_dir.  Handle new return type of old_insns_match_p using
9841         merge_dir.  Return replacement direction in dir_p.
9842         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
9843         return type of old_insns_match_p.
9844         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
9845         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
9846         flow_find_cross_jump.
9847         * basic-block.h (enum replace_direction): New type.
9848         (flow_find_cross_jump): Add parameter to declaration.
9850 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
9852         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
9853         (AVXMODEDCVTPS2DQ): Ditto.
9854         (VEC_FLOAT_MODE): Ditto.
9855         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
9856         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9857         (<any_logic:code><mode>3): Use VF mode iterator.
9858         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
9859         Use VF mode iterator.
9860         (copysign<mode>3): Use VF mode iterator.
9861         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
9862         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9863         (*<any_logic:code><MODEF:mode>3): Merge with
9864         *avx_<any_logic:code><MODEF:mode>3.
9865         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
9866         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
9867         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
9868         (avx_cvtdq2ps<avxmodesuffix>): Remove.
9869         (sse2_cvtdq2ps): Use %v modifier.
9870         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
9871         (avx_cvtps2dq<avxmodesuffix>): Remove.
9872         (sse2_cvtps2dq): Use %v modifier.
9873         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
9874         (avx_cvttps2dq<avxmodesuffix>): Remove.
9875         (sse2_cvttps2dq): Use %v modifier.
9876         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
9877         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
9878         (sse2_cvtsd2siq): Fix insn template.
9879         (sse2_cvtsd2siq_2): Ditto.
9880         (sse2_cvttsd2siq): Ditto.
9881         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
9882         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
9884 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
9886         * gcov-io.c: Use GCC Runtime Library Exception.
9888 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
9890         PR debug/48466
9891         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
9892         as base_reg whatever register reg has been eliminated to, instead
9893         of hardcoding STACK_POINTER_REGNUM.
9895 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
9897         * doc/tm.texi.in: Document C target hooks as separate from general
9898         target hooks.
9899         * doc/tm.texi: Regenerate.
9900         * genhooks.c (struct hook_desc): Add docname field.
9901         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
9902         docname field.
9903         (hook_array): Include c-target.def.
9904         (emit_documentation): Use docname field in output.
9905         (emit_init_macros): Take docname argument.  Only emit definitions
9906         for hooks matching docname.
9907         (main): Expect additional arguments in all cases.  Pass argument
9908         to emit_init_macros.
9909         * target.def: Move initial macro definitions and comments to
9910         target-hooks-macros.h.
9911         (gcc_targetcm): Move to c-family/c-target.def.
9912         * target.h (targetcm): Move declaration to c-family/c-target.h.
9913         * targhooks.c (default_handle_c_option): Move to
9914         c-family/c-opts.c.
9915         * targhooks.h (default_handle_c_option): Move declaration to
9916         c-family/c-common.h.
9917         * target-hooks-macros.h: New file.
9918         * config.gcc (target_has_targetcm): Define and use to add to
9919         c_target_objs and cxx_target_objs.
9920         * config/default-c.c: New file.
9921         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
9922         of target.h and target-def.h.
9923         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
9924         (darwin_objc_construct_string, darwin_cfstring_ref_p,
9925         darwin_check_cfstring_format_arg): Make static.
9926         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9927         TARGET_STRING_OBJECT_REF_TYPE_P,
9928         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
9929         * config/darwin-protos.h (darwin_objc_construct_string,
9930         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
9931         declare.
9932         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9933         TARGET_STRING_OBJECT_REF_TYPE_P,
9934         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
9935         * config/t-darwin (darwin-c.o): Update dependencies.
9936         * system.h (TARGET_HAS_TARGETCM): Poison.
9937         * Makefile.in (TARGET_H): Update.
9938         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
9939         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
9940         (default-c.o): New target.
9941         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
9942         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
9943         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
9944         c-target.def.
9945         (build/genhooks.o): Update dependencies.
9947 2011-04-06  Richard Guenther  <rguenther@suse.de>
9949         * ipa-inline.c (enum inlining_mode): Remove.
9950         (cgraph_flatten): Use some other token.
9951         (cgraph_edge_early_inlinable_p): New function, split out from ...
9952         (cgraph_perform_always_inlining): New function, split out from ...
9953         (cgraph_decide_inlining_incrementally): ... here.
9954         (cgraph_mark_inline_edge): Adjust.
9955         (cgraph_early_inlining): Re-structure.
9956         (pass_early_inline): Require SSA form.
9958 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
9959             Julian Brown  <julian@codesourcery.com>
9960             Mark Shinwell  <shinwell@codesourcery.com>
9962         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
9963         LO_REGS only for Thumb-1.
9964         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
9965         be used in short instructions when optimising for size on Thumb-2.
9967 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
9969         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
9970         associated with user returns to be preserved.
9972 2011-04-06  Tristan Gingold  <gingold@adacore.com>
9974         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
9975         symbol_queue_size, DBXOUT_DECR_NESTING,
9976         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
9977         if XCOFF_DEBUGGING_INFO.
9979 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
9981         * config/i386/i386.md (attribute isa): New.
9982         (attribute enabled): New.
9983         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
9984         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
9985         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
9986         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
9987         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
9988         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9989         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
9990         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
9992         * config/i386/sse.md (VF): New mode iterator.
9993         (VF1): Ditto.
9994         (VF2): Ditto.
9995         (VF_128): Ditto.
9996         (SSEMODEF4): Remove.
9997         (attribute sse): Handle V8SF and V4DF modes.
9998         (<absneg:code><mode>2): Use VF mode iterator.
9999         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
10000         mode iterator.
10001         (<plusminus_insn><mode>3): Use VF mode iterator.
10002         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10003         Use VF mode iterator.
10004         (<sse>_vm<plusminus_insn><mode>3): Merge with
10005         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
10006         (mul<mode>3): Use VF mode iterator.
10007         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
10008         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
10009         mode iterator.
10010         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10011         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10012         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
10013         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
10014         mode iterator.
10015         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10016         Use VF1 mode iterator.
10017         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10018         (sqrt<VF2:mode>2): New expander.
10019         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10020         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10021         and sqrtv2df2.  Use VF mode iterator.
10022         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
10023         mode iterator.
10024         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10025         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10026         Use VF1 mode iterator.
10027         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10028         (<smaxmin:code><mode>3): Use VF mode iterator.
10029         (*<smaxmin:code><mode>3_finite): Merge with
10030         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
10031         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10032         (<sse>_vm<smaxmin:code><mode>2): Merge with
10033         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
10034         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
10035         mode iterator.
10036         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
10037         mode iterator.
10038         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10039         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10040         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10041         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10042         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
10043         VF mode iterator.
10044         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10045         Use VF_128 mode iterator.
10046         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
10047         mode iterator.
10048         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
10049         VF_128 mode iterator.
10050         (vcond<mode>): Use VF mode iterator.
10051         * config/i386/predicates.md (sse_comparison_operator): Merge with
10052         avx_comparison_float_operator.  Do not declare as special_predicate.
10053         * config/i386/i386.c (struct builtin_description): Update for renamed
10054         compare patterns.
10055         (ix86_expand_args_builtin): Ditto.
10056         (ix86_expand_sse_compare_mask): Ditto.
10058 2011-04-06  Richard Guenther  <rguenther@suse.de>
10060         * tree-inline.c (estimate_num_insns): For calls simply account
10061         for all passed arguments and a used return value.
10063 2011-04-06  Richard Guenther  <rguenther@suse.de>
10065         PR tree-optimization/47663
10066         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10067         call_stmt_time fields.
10068         (cgraph_edge_inlinable_p): Declare.
10069         (cgraph_edge_recursive_p): New inline function.
10070         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10071         (cgraph_clone_edge): Copy it.
10072         * ipa-inline.c (cgraph_estimate_edge_time): New function.
10073         Account for call stmt time.
10074         (cgraph_estimate_time_after_inlining): Take edge argument.
10075         (cgraph_estimate_edge_growth): Account call stmt size.
10076         (cgraph_estimate_size_after_inlining): Take edge argument.
10077         (cgraph_mark_inline_edge): Adjust.
10078         (cgraph_check_inline_limits): Likewise.
10079         (cgraph_recursive_inlining_p): Remove.
10080         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10081         (cgraph_decide_recursive_inlining): Take edge argument and
10082         adjust.
10083         (cgraph_decide_inlining_of_small_functions): Do not avoid
10084         diags for recursive inlining here.
10085         (cgraph_flatten): Adjust.
10086         (cgraph_decide_inlining_incrementally): Likewise.
10087         (estimate_function_body_sizes): Remove call cost handling.
10088         (compute_inline_parameters): Initialize caller edge call costs.
10089         (cgraph_estimate_edge_growth): New function.
10090         (cgraph_estimate_growth): Use it.
10091         (cgraph_edge_badness): Likewise.
10092         (cgraph_check_inline_limits): Take an edge argument.
10093         (cgraph_decide_inlining_of_small_functions): Adjust.
10094         (cgraph_decide_inlining): Likewise.
10095         * tree-inline.c (estimate_num_insns): Only account for call
10096         return value if it is used.
10097         (expand_call_inline): Avoid diagnostics on recursive inline
10098         functions here.
10099         * lto-cgraph.c (lto_output_edge): Output edge call costs.
10100         (input_edge): Input edge call costs.
10102 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10104         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10106 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
10108         * doc/invoke.texi (Spec Files): Fix typo.
10110 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
10112         * profile.c (branch_prob): Move declaration of local variable.  Remove
10113         obsolete ??? comment.  Expand the location explicitly instead of using
10114         the LOCATION_FILE and LOCATION_LINE macros.
10116 2011-04-06  Wei Guozhi  <carrot@google.com>
10118         PR target/47855
10119         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10120         (arm_cond_branch): Likewise.
10121         (arm_cond_branch_reversed): Likewise.
10122         (arm_jump): Likewise.
10123         (push_multi): Likewise.
10124         * config/arm/constraints.md (Py): New constraint.
10126 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10128         PR bootstrap/48471
10129         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10130         Move these...
10131         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10132         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10133         #ifdef DBX_DEBUGGING_INFO.
10135 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
10137         PR bootstrap/48403
10138         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10139         if old and new states differ.
10141 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
10143         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10144         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10145         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10146         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10147         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10148         mcfv4e): Use Alias.
10149         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10150         ColdFire options to -mcpu= options.
10152 2011-04-05  Jeff Law  <law@redhat.com>
10154         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10155         check if BB is a successor of LOOP->header and return
10156         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10158 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
10160         * cprop.c (struct reg_use): Remove.
10161         (reg_use_table): Make an array of RTX.
10162         (find_used_regs, constprop_register, local_cprop_pass,
10163         bypass_block): Simplify users of reg_use_table.
10164         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
10165         on one of the uses found by find_used_regs.
10167 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10169         PR bootstrap/48469
10170         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10171         declaration.
10173 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10175         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10176         as an rtx.
10177         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10179 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
10181         PR middle-end/48441
10182         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10184 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10186         * combine.c: Include obstack.h.
10187         (struct insn_link): Define.
10188         (uid_log_links): Adjust type.
10189         (FOR_EACH_LOG_LINK): New macro.
10190         (insn_link_obstack): Declare.
10191         (alloc_insn_link): Define.
10192         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
10193         type of link variables.
10194         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10195         (try_combine, record_promoted_values, distribute_notes): Likewise.
10196         (distribute_links): Likewise.  Tweak prototype.
10197         (clear_log_links): Delete.
10198         (adjust_for_new_dest): Call alloc_insn_link.
10199         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10201 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10203         * gcse.c (modify_mem_list): Convert to an array of VECs.
10204         (canon_modify_mem_list, compute_transp): Tweak formatting.
10205         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
10206         (load_killed_in_block_p): Likewise.
10207         (record_last_mem_set_info): Likewise.
10208         (clear_modify_mem_tables): Likewise.
10210 2011-04-05  Tom de Vries  <tom@codesourcery.com>
10212         PR middle-end/48461
10213         * function.c (emit_use_return_register_into_block): Only define if
10214         HAVE_return.
10216 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
10218         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
10220 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
10222         * config/rx/rx-opts.h: New.
10223         * config/rx/rx.c (rx_cpu_type): Remove.
10224         (rx_handle_option): Don't assert that global structures are in
10225         use.  Access variables via opts pointer.  Defer most handling of
10226         OPT_mint_register_.  Use error_at.
10227         (rx_option_override): Handle deferred OPT_mint_register_ here.
10228         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
10229         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
10230         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
10231         (rx_cpu_types): New Enum and EnumValue entries.
10232         (mint-register=): Use Defer and use Var accordingly.
10234 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10236         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
10237         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
10238         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
10239         Move these...
10240         (debug_free_queue, debug_nesting, symbol_queue_index):
10241         ...and these...
10242         * dbxout.c: ...to here.  Make static.
10244 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10246         * gcse.c (modify_pair): Define.  Define a VEC of it.
10247         (canon_modify_mem_list): Convert to an array of VECs.
10248         (free_insn_expr_list_list): Delete.
10249         (clear_modify_mem_tables): Call VEC_free instead.
10250         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
10251         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
10252         (canon_list_insert, compute_transp): Likewise.
10254 2011-04-05  Tom de Vries  <tom@codesourcery.com>
10256         PR target/43920
10257         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
10258         for size.
10260 2011-04-05  Tom de Vries  <tom@codesourcery.com>
10262         PR target/43920
10263         * function.c (emit_use_return_register_into_block): New function.
10264         (thread_prologue_and_epilogue_insns): Use
10265         emit_use_return_register_into_block.
10267 2011-04-05  Tom de Vries  <tom@codesourcery.com>
10269         PR target/43920
10270         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
10271         insn.
10273 2011-04-05  Tom de Vries  <tom@codesourcery.com>
10275         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
10277 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
10279         * config/arm/arm.md (define_constants for unspec): Replace with
10280         define_c_enum.
10281         (define_constants for unspecv): Replace with define_c_enum.
10282         * config/arm/neon.md (define_constants for unspec): Replace with
10283         define_c_enum.
10285 2011-04-04  Richard Henderson  <rth@redhat.com>
10287         PR bootstrap/48400
10288         * dwarf2out.c (output_line_info): Always emit line info from
10289         at least one section.
10290         (dwarf2out_init): Create text_section_line_info here ...
10291         (set_cur_line_info_table): ... not here.
10293 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
10295         PR target/48380
10296         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
10297         not called.
10299         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
10301 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
10303         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
10304         (expr_equiv_p): Remove.
10305         (insert_set_in_table): Look at <dest, src> pair instead of expr.
10306         (hash_scan_set): Update call to insert_set_in_table.
10307         (dump_hash_table): Dump <dest, src> pair.
10308         (lookup_set): Simplify.  Lookup <dest, src> pair.
10309         (compute_transp): Remove, fold heavily simplified code into...
10310         (compute_local_properties): ...here.  Expect COMP and TRANSP
10311         unconditionally.
10312         (find_avail_set): Take set directly from struct expr.
10313         (find_bypass-set): Likewise.
10314         (bypass_block): Likewise.
10315         (cprop_insn): Likewise.  Remove redundant INSN_P test.
10317         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
10318         checks on form of COND from find_implicit_sets to here.
10319         (find_implicit_sets): Cleanup control flow. Split critical edges
10320         if it exposes implicit sets.  Allocate/resize implicit_sets as
10321         necessary.
10322         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
10323         changed something.  Run df_analyze after find_implicit_sets if any
10324         edges were split.  Do not allocate implicit_sets here.
10326         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
10327         (gcse_obstack): Renamed to cprop_obstack.
10328         (GNEW, GNEWVEC, GNEWVAR): Remove.
10329         (gmalloc): Remove.
10330         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
10331         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
10332         (gcse_alloc): Likewise, and rename to cprop_alloc.
10333         (alloc_gcse_men, free_gcse_mem): Remove.
10334         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
10335         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
10336         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
10338         * cprop.c (oprs_not_set_p): Remove.
10339         (mark_set, mark_clobber): Remove.
10340         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
10341         (reg_not_set_p): New function.
10342         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
10343         (cprop_insn): Likewise.
10344         (cprop_jump): Use FOR_EACH_EDGE.
10346 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
10348         PR bootstrap/48403
10349         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
10350         (rank_for_schedule): Use scheduled_insns vector instead of
10351         last_scheduled_insn.
10352         (ok_for_early_queue_removal): Likewise.
10353         (queue_to_ready): Search forward in nonscheduled_insns_begin if
10354         we have a dbg_cnt.
10355         (choose_ready): Likewise.
10356         (commit_schedule): Use VEC_iterate.
10357         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
10358         a dbg_cnt, use it and ensure the first insn is in the ready list.
10359         (haifa_sched_init): Allocate scheduled_insns.
10360         (sched_extend_ready_list): Don't allocate it; reserve space.
10361         (haifa_sched_finish): Free it.
10363 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
10365         * optc-gen.awk: Always remove type from Variable entry before
10366         recording in var_seen.
10368 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
10370         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
10371         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
10372         call to tidy_fallthru_edges.
10374 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
10376         * doc/options.texi (ToLower): Document.
10377         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
10378         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
10379         * opts.h (cl_option): Add cl_tolower field.
10380         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
10381         arguments with lowercase strings.
10382         * config/rx/rx.opt (mcpu=): Add ToLower.
10383         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
10384         argument.
10386 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
10388         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
10390 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
10392         * config/vax/vax.c: Include reload.h.
10394 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
10396         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
10397         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10398         (sparc_preferred_reload_class): New function.
10400 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
10402         PR debug/48401
10403         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10404         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
10406 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
10408         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
10409         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
10411 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
10413         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
10414         (ASM_OUTPUT_ALIGNED_BSS): Define.
10416 2011-04-03  Michael Matz  <matz@suse.de>
10418         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
10419         and next_slot members.
10420         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
10421         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
10422         (lto_streamer_cache_append): Declare.
10423         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
10424         unsigned index, remove offset parameter, ensure that we append
10425         or update existing entries.
10426         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
10427         parameter, update next_slot for append.
10428         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
10429         parameter.
10430         (lto_streamer_cache_insert_at): Likewise.
10431         (lto_streamer_cache_append): New function.
10432         (lto_streamer_cache_lookup): Use unsigned index.
10433         (lto_streamer_cache_get): Likewise.
10434         (lto_record_common_node): Don't test tree_node_can_be_shared.
10435         (preload_common_node): Adjust call to lto_streamer_cache_insert.
10436         (lto_streamer_cache_delete): Don't free offsets member.
10437         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
10438         (lto_output_string_with_length): Use lto_output_data_stream.
10439         (lto_output_tree_header): Remove ix parameter, don't write it.
10440         (lto_output_builtin_tree): Likewise.
10441         (lto_write_tree): Adjust callers to above, don't track and write
10442         offset, write unsigned index.
10443         (output_unreferenced_globals): Don't emit all global vars.
10444         (write_global_references): Use unsigned indices.
10445         (lto_output_decl_state_refs): Likewise.
10446         (write_symbol): Likewise.
10447         * lto-streamer-in.c (lto_input_chain): Move earlier.
10448         (input_function): Use unsigned index.
10449         (input_alias_pairs): Don't read and then ignore all global vars.
10450         (lto_materialize_tree): Remove ix_p parameter, don't read index,
10451         don't pass it back, use lto_streamer_cache_append.
10452         (lto_register_var_decl_in_symtab): Use unsigned index.
10453         (lto_register_function_decl_in_symtab): Likewise.
10454         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
10455         index.
10456         (lto_get_builtin_tree): Don't read index, use
10457         lto_streamer_cache_append.
10458         (lto_read_tree): Adjust call to lto_materialize_tree.
10460         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
10461         don't use function calls in arguments to MIN.
10463         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
10464         twice.
10466         * gimple.c (gimple_type_leader_entry): Mark deletable.
10468 2011-04-03  Alan Modra  <amodra@gmail.com>
10470         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
10472 2011-04-03  Michael Matz  <matz@suse.de>
10474         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
10475         an integer.
10476         * tree.h (tree_decl_non_common.vindex): Adjust comment.
10478 2011-04-03  Michael Matz  <matz@suse.de>
10480         * cgraphbuild.c (record_reference): Canonicalize constructor values.
10481         * gimple-fold.c (canonicalize_constructor_val): Accept being called
10482         without function context.
10483         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
10484         current_function_decl and cfun.
10486 2011-04-03  Michael Matz  <matz@suse.de>
10488         * tree.c (decl_init_priority_insert): Don't create entry for
10489         default priority.
10490         (decl_fini_priority_insert): Ditto.
10491         (fields_compatible_p, find_compatible_field): Remove.
10492         * tree.h (fields_compatible_p, find_compatible_field): Remove.
10493         * gimple.c (gimple_compare_field_offset): Adjust block comment.
10495 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
10497         * combine.c (try_combine): Remove useless local variable.
10499 2011-04-03  Richard Guenther  <rguenther@suse.de>
10500             Ira Rosen  <ira.rosen@linaro.org>
10502         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
10503         non-variable offsets and compare the remaining bases of the two
10504         accesses instead of looking for exact same data-ref.
10506 2011-04-02  Kai Tietz  <ktietz@redhat.com>
10508         PR target/48416
10509         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
10511         * i386.c (ix86_is_msabi_thiscall): New helper function.
10512         (ix86_is_type_thiscall): New helper function.
10513         (ix86_comp_type_attributes): Handle thiscall for method-functions
10514         special.
10515         (init_cumulative_args): Likewise.
10516         (find_drap_reg): Likewise.
10517         (ix86_static_chain): Likewise.
10518         (x86_this_parameter): Likewise.
10519         (x86_output_mi_thunk): Likewise.
10521 2011-04-01  Olivier Hainque  <hainque@adacore.com>
10522             Nicolas Setton  <setton@adacore.com>
10523             Eric Botcazou  <ebotcazou@adacore.com>
10525         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
10526         (add_gnat_descriptive_type_attribute): New function.
10527         (gen_array_type_die): Call it.
10528         (gen_enumeration_type_die): Likewise.
10529         (gen_struct_or_union_type_die): Likewise.
10530         (modified_type_die): Likewise.
10531         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
10532         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
10533         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
10535 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
10537         PR bootstrap/48148
10538         * dwarf2out.c (resolve_addr): Don't call force_decl_die
10539         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
10541         Revert:
10542         2011-03-17  Richard Guenther  <rguenther@suse.de>
10544         PR bootstrap/48148
10545         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10546         origin for decls in other ltrans units.
10547         (input_varpool_node): Likewise.
10549 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
10551         PR middle-end/48335
10552         * expr.c (expand_assignment): Handle all possibilities
10553         if TO_RTX is CONCAT.
10554         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
10555         (store_split_bit_field): If SUBREG_REG (op0) or
10556         op0 itself has smaller mode than word, return it
10557         for offset 0 and const0_rtx for out-of-bounds stores.
10558         If word is const0_rtx, skip it.
10560 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
10562         * config/h8300/h8300.c (print_operand_address): Rename to...
10563         (h8300_print_operand_address): ...this. Make static. Adjust comments.
10564         Call h8300_print_operand and h8300_print_operand_address instead of
10565         print_operand and print_operand_address. Declare.
10566         (print_operand): Renake to...
10567         (h8300_print_operand): ...this. Make static. Adjust comments.
10568         Call h8300_print_operand instead of print_operand. Declare.
10569         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
10570         (h8300_register_move_cost): Likewise.
10571         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
10572         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
10573         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
10574         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
10575         * config/h8300/h8300-protos.h (print_operand): Delete.
10576         (print_operand_address): Delete.
10578 2011-04-01  Richard Henderson  <rth@redhat.com>
10580         PR 48400
10581         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
10582         in strict mode before dwarf4.  Re-order tests to early out
10583         before switching sections.
10585 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
10587         * config/h8300/constraints.md: New file.
10588         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
10589         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
10590         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
10591         * config/h8300/predicates.md (bit_operand): Likewise.
10592         (incdec_operand): Use satisfies_constraint_M and
10593         satisfies_constraint_O.  Don't use C code block.
10594         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
10595         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
10596         (compute_mov_length): Use satisfies_constraint_G.
10597         (fix_bit_operand): Use satisfies_constraint_U.
10598         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
10599         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
10600         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
10601         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
10602         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
10603         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
10604         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10605         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
10606         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
10607         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
10608         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
10609         (EXTRA_MEMORY_CONSTRAINT): Delete.
10611 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
10612             Michael Meissner  <meissner@linux.vnet.ibm.com>
10614         PR target/48262
10615         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
10616         operands, as per the specifications.
10618         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
10619         (vec_extract_evenv4sf): Ditto.
10620         (vec_extract_evenv8hi): Ditto.
10621         (vec_extract_evenv16qi): Ditto.
10622         (vec_extract_oddv4si): Ditto.
10624 2011-03-31  Mark Wielaard  <mjw@redhat.com>
10626         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
10627         high_pc attribute if the CU has no associated code. Only output
10628         DW_AT_entry_pc for CU if not generating strict dwarf and
10629         dwarf_version < 4.
10631 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
10633         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
10634         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
10635         out of ...
10636         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
10637         * final.c (final_start_function): Call the new function rather
10638         than using a NULL argument for dwarf2out_frame_debug.
10640         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
10641         that contains the prologue.
10643         * haifa-sched.c (queue_insn): New arg REASON.  All callers
10644         changed.  Print it in debugging output.
10646         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
10648         * sched-ebb.c (begin_schedule_ready): Remove second argument.
10649         Split most of the code into...
10650         (begin_move_insn): ... here.  New function.
10651         (ebb_sched_info): Add a pointer to it.
10652         * haifa-sched.c (scheduled_insns): New static variable.
10653         (sched_extend_ready_list): Allocate it.
10654         (schedule_block): Use it to record the order of scheduled insns.
10655         Perform RTL changes to move insns only after all scheduling
10656         decisions have been made.
10657         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
10658         begin_move_insn field.
10659         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10660         * sched-int.h (struct haifa_sched_info): Remove second argument
10661         from begin_schedule_ready hook.  Add new member begin_move_insn.
10662         * sched-rgn.c (begin_schedule_ready): Remove second argument.
10663         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
10665         * haifa-sched.c (prune_ready_list): New function, broken out of
10666         schedule_block.
10667         (schedule_block): Use it.
10669 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10671         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
10673 2011-04-01  Kai Tietz  <ktietz@redhat.com>
10675         * config.gcc (*-*-mingw*): Allow as option the
10676         posix threading model.
10677         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
10678         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
10679         definition.
10680         (CPP_SPEC): Add pthread/no-pthread handling.
10681         (LIB_SPEC): Likewise.
10682         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
10683         (LIB_SPEC): Likewise.
10684         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
10685         flag to pass -pthread option for shared libgcc build.
10686         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
10687         for shared libgcc build.
10688         * config/i386/t-mingw-pthread: New file.
10689         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
10690         New define to enable use of library pthread by default.
10691         * config/i386/mingw.opt (pthread): New driver option.
10692         (no-pthread): New driver option.
10693         * config/i386/cygming.opt: Make sure trailing empty line is retained.
10694         * config/i386/mingw-w64.opt: Likewise.
10696 2011-04-01  Gary Funck  <gary@intrepid.com>
10698         * c-decl.c (grokdeclarator): Fix formatting.
10700 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
10702         * expr.c (emit_block_move_via_movmem): Use n_generator_args
10703         instead of n_operands.
10704         (set_storage_via_setmem): Likewise.
10705         * optabs.c (maybe_gen_insn): Likewise.
10706         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
10707         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
10708         (mips_expand_builtin_direct): Likewise.
10709         * config/spu/spu.c (expand_builtin_args): Likewise.
10711 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
10713         * recog.h (insn_data_d): Add n_generator_args.
10714         * genoutput.c (data): Likewise.
10715         (output_insn_data): Print it.
10716         (max_opno, num_dups): Delete.
10717         (scan_operands): Just fill in "d->operand[...]".
10718         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
10720 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
10722         * gensupport.h (pattern_stats): New structure.
10723         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
10724         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
10725         (max_operand_1, max_operand_vec): Delete.
10726         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
10728 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
10730         * emit-rtl.c (emit_pattern_after_setloc): New function.
10731         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
10732         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
10733         (emit_pattern_after): New function.
10734         (emit_insn_after, emit_jump_insn_after): Call it.
10735         (emit_call_insn_after, emit_debug_insn_after): Likewise.
10736         (emit_pattern_before_setloc): New function.
10737         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
10738         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
10739         Likewise.
10740         (emit_pattern_before): New function.
10741         (emit_insn_before, emit_jump_insn_before): Call it.
10742         (emit_call_insn_before, emit_debug_insn_before): Likewise.
10744 2011-03-31  Richard Henderson  <rth@redhat.com>
10746         * dwarf2out.c (dw_separate_line_info_ref): Remove.
10747         (dw_separate_line_info_entry): Remove.
10748         (enum dw_line_info_opcode): New.
10749         (dw_line_info_entry): Use it.
10750         (dw_line_info_table, dw_line_info_table_p): New.
10751         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
10752         (line_info_table, line_info_label_num): Remove.
10753         (line_info_table_in_use): Remove.
10754         (separate_line_info_table): Remove.
10755         (separate_line_info_table_allocated): Remove.
10756         (separate_line_info_table_in_use): Remove.
10757         (LINE_INFO_TABLE_INCREMENT): Remove.
10758         (line_info_label_num): New.
10759         (cur_line_info_table): New.
10760         (text_section_line_info, cold_text_section_line_info): New.
10761         (separate_line_info): New.
10762         (SEPARATE_LINE_CODE_LABEL): Remove.
10763         (print_dwarf_line_table): Remove.
10764         (debug_dwarf): Don't dump it.
10765         (output_one_line_info_table): New.
10766         (output_line_info): Use it.
10767         (new_line_info_table): New.
10768         (set_cur_line_info_table): New.
10769         (dwarf2out_switch_text_section): Use it.
10770         (dwarf2out_begin_function): Likewise.
10771         (push_dw_line_info_entry): New.
10772         (dwarf2out_source_line): Rewrite for new line info tables.
10773         (dwarf2out_init): Remove dead initailizations.
10775 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
10777         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
10778         various flags.
10779         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
10780         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
10781         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
10782         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
10783         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
10784         * opt-functions.awk (flag_init, switch_bit_fields): New.
10785         (switch_flags): Don't handle flags moved to bit-fields.  Don't
10786         generate CL_MISSING_OK or CL_SAVE.
10787         * optc-gen.awk: Update to generate bit-field output as well as
10788         flags field.
10789         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
10790         bit-field instead of CL_REJECT_DRIVER flag.
10791         * opts-common.c (generate_canonical_option,
10792         decode_cmdline_option): Use bit-fields instead of CL_* flags.
10793         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
10794         instead of CL_REJECT_NEGATIVE flag.
10795         * toplev.c (print_switch_values): Use cl_report bit-field instead
10796         of CL_REPORT flag.
10798 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
10800         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
10801         a zero minimum index only if it is redundant.
10803 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
10805         PR rtl-optimization/48381
10806         * ira-color.c (assign_hard_reg): Use hard reg set intersection
10807         instead of ira_class_hard_reg_index for calculating conflicting
10808         hard registers.
10810 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
10812         * cprop.c: Clean up hash table building.
10813         (reg_avail_info): Remove.
10814         (oprs_available_p): Remove.
10815         (record_last_reg_set_info): Remove.
10816         (record_last_set_info): Remove.
10817         (reg_available_p): New function.
10818         (gcse_constant_p): Do not treat unfolded conditions as constants.
10819         (make_set_regs_unavailable): New function.
10820         (hash_scan_set): Simplify with new reg_available_p.
10821         (compute_hash_table_work): Traverse insns stream only once.
10822         Do not compute reg_avail_info. Traverse insns in reverse order.
10823         Record implicit sets after recording explicit sets from the block.
10825 2011-03-31  Michael Matz  <matz@suse.de>
10827         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
10829 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
10831         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
10832         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
10833         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10834         (h8300_mode_dependent_address_p): New function.
10835         (h8300_get_index): Make static.
10837 2011-03-31  Jeff Law  <law@redhat.com>
10839         * reload1.c (elimination_effects): Fix typo in recent change.
10841         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
10842         typo potentially leading to null pointer dereference.
10844         * caller-save.c (new_saved_hard_reg): Eliminate return value.
10845         (setup_save_areas): Corresponding changes to avoid useless
10846         assignments.
10848         * jump.c (reversed_comparison_code_parts): Avoid successive return
10849         statements when REVERSE_CONDITION is defined.
10851         * expr.c (expand_assignment): Avoid useless assignments.
10852         (expand_expr_real_1): Likewise.
10853         (expand_expr_real_2): Avoid useless statements.
10855         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
10857         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10859         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
10860         statements.
10862         * stmt.c (expand_expr_stmt): Avoid useless assignment.
10864 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
10866         PR target/47109
10867         * doc/tm.texi.in (TARGET_VERSION): Remove.
10868         * doc/tm.texi: Regenerate.
10869         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
10870         * collect2.c (main): Don't use TARGET_VERSION.
10871         * mips-tdump.c (main): Don't use TARGET_VERSION.
10872         * mips-tfile.c (main): Don't use TARGET_VERSION.
10873         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
10874         * config/rs6000/vxworksae.h: Remove.
10875         * config/alpha/alpha.h (TARGET_VERSION): Remove.
10876         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
10877         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
10878         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
10879         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10880         * config/arm/arm.h (TARGET_VERSION): Remove.
10881         * config/arm/coff.h (TARGET_VERSION): Remove.
10882         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
10883         * config/arm/elf.h (TARGET_VERSION): Remove.
10884         * config/arm/freebsd.h (TARGET_VERSION): Remove.
10885         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
10886         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
10887         * config/arm/pe.h (TARGET_VERSION): Remove.
10888         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
10889         * config/arm/semi.h (TARGET_VERSION): Remove.
10890         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
10891         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
10892         * config/arm/vxworks.h (TARGET_VERSION): Remove.
10893         * config/avr/avr.h (TARGET_VERSION): Remove.
10894         * config/bfin/bfin.h (TARGET_VERSION): Remove.
10895         * config/fr30/fr30.h (TARGET_VERSION): Remove.
10896         * config/frv/frv.h (TARGET_VERSION): Remove.
10897         * config/h8300/h8300.h (TARGET_VERSION): Remove.
10898         * config/i386/cygwin.h (TARGET_VERSION): Remove.
10899         * config/i386/darwin.h (TARGET_VERSION): Remove.
10900         * config/i386/darwin64.h (TARGET_VERSION): Remove.
10901         * config/i386/djgpp.h (TARGET_VERSION): Remove.
10902         * config/i386/freebsd.h (TARGET_VERSION): Remove.
10903         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
10904         * config/i386/gnu.h (TARGET_VERSION): Remove.
10905         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
10906         * config/i386/i386elf.h (TARGET_VERSION): Remove.
10907         * config/i386/linux.h (TARGET_VERSION): Remove.
10908         * config/i386/linux64.h (TARGET_VERSION): Remove.
10909         * config/i386/lynx.h (TARGET_VERSION): Remove.
10910         * config/i386/mingw32.h (TARGET_VERSION): Remove.
10911         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
10912         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
10913         * config/i386/netware.h (TARGET_VERSION): Remove.
10914         * config/i386/nto.h (TARGET_VERSION): Remove.
10915         * config/i386/openbsd.h (TARGET_VERSION): Remove.
10916         * config/i386/vxworks.h (TARGET_VERSION): Remove.
10917         * config/ia64/elf.h (TARGET_VERSION): Remove.
10918         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
10919         * config/ia64/hpux.h (TARGET_VERSION): Remove.
10920         * config/ia64/linux.h (TARGET_VERSION): Remove.
10921         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10922         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
10923         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10924         * config/lm32/lm32.h (TARGET_VERSION): Remove.
10925         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
10926         * config/m32c/m32c.h (TARGET_VERSION): Remove.
10927         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
10928         * config/m32r/m32r.h (TARGET_VERSION): Remove.
10929         * config/m68k/linux.h (TARGET_VERSION): Remove.
10930         * config/m68k/m68k.h (TARGET_VERSION): Remove.
10931         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
10932         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
10933         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
10934         * config/mep/mep.h (TARGET_VERSION): Remove.
10935         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
10936         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10937         * config/mips/iris6.h (MACHINE_TYPE): Remove.
10938         * config/mips/linux.h (TARGET_VERSION): Remove.
10939         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
10940         * config/mips/vxworks.h (TARGET_VERSION): Remove.
10941         * config/mmix/mmix.h (TARGET_VERSION): Remove.
10942         * config/mn10300/linux.h (TARGET_VERSION): Remove.
10943         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
10944         * config/pa/pa.h (TARGET_VERSION): Remove.
10945         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
10946         * config/picochip/picochip.h (TARGET_VERSION): Remove.
10947         * config/rs6000/aix.h (TARGET_VERSION): Remove.
10948         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
10949         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
10950         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
10951         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
10952         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
10953         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
10954         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
10955         * config/rs6000/linux.h (TARGET_VERSION): Remove.
10956         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
10957         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
10958         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
10959         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
10960         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
10961         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
10962         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
10963         * config/s390/linux.h (TARGET_VERSION): Remove.
10964         * config/s390/s390.h (TARGET_VERSION): Remove.
10965         * config/s390/tpf.h (TARGET_VERSION): Remove.
10966         * config/score/score.h (TARGET_VERSION): Remove.
10967         * config/sh/linux.h (TARGET_VERSION): Remove.
10968         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
10969         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
10970         * config/sh/sh.h (TARGET_VERSION): Remove.
10971         * config/sh/sh64.h (TARGET_VERSION): Remove.
10972         * config/sh/superh.h (TARGET_VERSION): Remove.
10973         * config/sh/vxworks.h (TARGET_VERSION): Remove.
10974         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
10975         * config/sparc/linux.h (TARGET_VERSION): Remove.
10976         * config/sparc/linux64.h (TARGET_VERSION): Remove.
10977         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
10978         TARGET_NAME32, TARGET_NAME): Remove.
10979         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
10980         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
10981         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
10982         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
10983         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
10984         * config/spu/spu.h (TARGET_VERSION): Remove.
10985         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
10986         * config/v850/v850.h (TARGET_VERSION): Remove.
10987         * config/vax/linux.h (TARGET_VERSION): Remove.
10988         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
10989         * config/xtensa/elf.h (TARGET_VERSION): Remove.
10990         * config/xtensa/linux.h (TARGET_VERSION): Remove.
10992 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
10994         PR target/48142
10995         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
10996         frame-related from frame-unrelated adjustments to the stack pointer.
10998 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
11000         * common.opt (fdebug-types-section): Move earlier.
11001         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11003 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
11005         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11006         var.
11008 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
11010         * tree.h (CASE_CHAIN): Define.
11011         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11012         (gimple_redirect_edge_and_branch): Likewise.
11014 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
11016         PR middle-end/48367
11017         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11018         calculation.
11020 2011-03-30  Jeff Law  <law@redhat.com>
11022         * PR bootstrap/48371
11023         * reload1.c (reload): Fix botch in last change.
11025         * reload.h (struct reload): Fix typo introduced in last change.
11027 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
11029         * config/arm/arm.opt (mhard-float, msoft-float): Mark
11030         Undocumented.  Remove help text.
11031         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11032         -mhard-float.
11034 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
11036         * doc/options.texi (NegativeAlias): Document.
11037         (Alias): Mention NegativeAlias.
11038         * opt-functions.awk: Handle NegativeAlias.
11039         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
11040         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11041         * opts.h (CL_NEGATIVE_ALIAS): Define.
11042         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11043         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11044         OPT_mspe_.
11045         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11046         Alias entries.
11047         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11048         mno-spe and mno-isel instead of mspe=no and -misel=no.
11050 2011-03-29  Mark Wielaard  <mjw@redhat.com>
11052         * common.opt (fdebug-types-section): New flag.
11053         * doc/invoke.texi: Document new -fno-debug-types-section flag.
11054         * dwarf2out.c (use_debug_types): New define.
11055         (struct die_struct): Mark die_id with GTY desc use_debug_types.
11056         (print_die): Guard output of type unit signatures using
11057         use_debug_types.
11058         (build_abbrev_table): Replace assert of dwarf_version >= 4
11059         with assert on use_debug_types.
11060         (size_of_die): Likewise.
11061         (unmark_dies): Likewise.
11062         (value_format): Decide AT_ref_external form on use_debug_types.
11063         (output_die): Replace dwarf_version version check guard with
11064         use_debug_types where appropriate.
11065         (modified_type_die): Likewise.
11066         (gen_reference_type_die): Likewise.
11067         (dwarf2out_start_source_file): Likewise.
11068         (dwarf2out_end_source_file): Likewise.
11069         (prune_unused_types_walk_attribs): Likewise.
11070         (dwarf2out_finish): Likewise.
11072 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
11074         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11076 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
11078         PR rtl-optimization/48332
11079         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11080         mode of input operand N and modeN to its actual mode.
11082 2011-03-30  Jeff Law  <law@redhat.com>
11084         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11085         define accessor macro.
11086         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11087         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11088         (reg_equiv_init): Likewise.
11089         (reg_equivs_size): New variable.
11090         (reg_equiv_init_size): Remove.
11091         (allocate_initial_values): Move prototype to here from....
11092         * integrate.h (allocate_initial_values): Remove prototype.
11093         * integrate.c: Include reload.h.
11094         (allocate_initial_values): Corresponding changes.
11095         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11096         (fix_reg_equiv_init, no_equiv): Corresponding changes.
11097         (update_equiv_regs): Corresponding changes.
11098         (ira): Corresponding changes.
11099         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11100         (push_secondary_reload): Corresponding changes.
11101         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11102         (make_memloc, find_reloads_address): Corresponding changes.
11103         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11104         (find_reloads_address_1): Corresponding changes.
11105         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11106         (refers_to_regno_for_reload_p): Corresponding changes.
11107         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11108         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11109         * reload1.c: Include ggc.h.
11110         (grow_reg_equivs): New function.
11111         (replace_pseudos_in, reload): Corresponding changes.
11112         (calculate_needs_all_insns, alter_regs): Corresponding changes.
11113         (eliminate_regs_1, elimination_effects): Corresponding changes.
11114         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11115         (delete_output_reload): Likewise.
11116         * caller-save.c (mark_referenced_regs): Corresponding changes.
11117         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11118         * frv/predicates.md (frv_load_operand): Corresponding changes.
11119         * microblaze/microblaze.c (double_memory_operand): Corresponding
11120         changes.
11121         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11122         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
11123         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
11124         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11125         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11126         changes.
11127         * pa/pa.c (emit_move_sequence): Corresponding changes.
11128         * vax/vax.c (nonindexed_address_p): Corresponding changes.
11130 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
11132         PR target/47551
11133         * config/arm/arm.c (coproc_secondary_reload_class): Handle
11134         structure modes.  Don't check neon_vector_mem_operand for
11135         vector or structure modes.
11137 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
11138             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11140         PR target/43590
11141         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11142         operand 1 and reshuffle the operands to match.
11143         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11145 2011-03-30  Christian Schüler  <cschueler@gmx.de>
11147         PR driver/48208
11148         * config/c.opt (F): Added 'Driver' to -F option.
11150         PR driver/48260
11151         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11152           handler function.
11153         * config/darwin.opt: Added '-arch' option.
11155 2011-03-30  Nick Clifton  <nickc@redhat.com>
11157         * config/rx/rx.md: Add peepholes and patterns to combine
11158         extending loads and simple arithmetic instructions.
11159         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
11160         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11161         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
11162         modes to use pre-decrement and post-increment addressing.
11163         (rx_is_restricted_memory_address): Add range checking of REG+INT
11164         addresses.
11165         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
11166         (rx_memory_move_cost): Adjust cost of stores.
11167         (rx_adjust_insn_length): New function.
11169 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
11171         PR c/48305
11172         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11173         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11174         matching arg00/arg01 types.
11176 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
11178         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11179         last_location to UNKNOWN_LOCATION.
11181 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11183         PR target/48349
11184         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11185         FLOAT_SSE_REGS.
11187 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
11188             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11190         PR bootstrap/48337
11191         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11192         Init(PROCESSOR_V7).
11193         (sparc_cpu): Likewise.
11194         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11195         PROCESSOR_V7.
11197 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11199         PR target/48336
11200         PR middle-end/48342
11201         PR rtl-optimization/48345
11202         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11203         hard regs for given mode from profitable regs when doing secondary
11204         allocation.
11206 2011-03-29  Jeff Law  <law@redhat.com>
11208         PR bootstrap/48327
11209         * tree-ssa-threadupdate.c (struct redirection_data): Remove
11210         do_not_duplicate field.
11211         (lookup_redirection_data): Corresponding changes.
11212         (create_duplicates): Always create a template block.
11213         (redirect_edges): Remove code which reused the original block
11214         when it was going to become unreachable code.
11215         (thread_block): Don't set do_not_duplicate field.
11217 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
11219         * lto-opts.c (register_user_option_p, lto_register_user_option):
11220         Make type argument unsigned.
11221         * lto-streamer.h (lto_register_user_option): Make type argument
11222         unsigned.
11223         * opth-gen.awk: Make CL_* macros unsigned.
11224         * opts-common.c (find_opt): Make lang_mask argument unsigned.
11225         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11226         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
11227         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
11228         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
11229         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
11230         (find_opt): Make lang_mask argument unsigned.
11232 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11234         PR rtl-optimization/48331
11235         PR rtl-optimization/48334
11236         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
11237         for any used algorithm.
11239 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11241         * ira-conflicts.c (build_object_conflicts): Add unused attribute
11242         to parent_max.
11244 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
11246         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
11247         (alpha_option_override): Don't set alpha_sr_alias_set.
11248         (emit_frame_store_1): Use gen_frame_mem rather than calling
11249         set_mem_alias_set.
11250         (alpha_expand_epilogue): Ditto.
11252 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
11254         PR tree-optimization/48290
11255         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
11256         vectorization, check that relevant phis in the basic block after
11257         the inner loop are really inner loop's exit phis.
11259 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
11261         PR debug/48190
11262         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
11263         (cached_dw_loc_list_def): New structure.
11264         (cached_dw_loc_list): New typedef.
11265         (cached_dw_loc_list_table): New variable.
11266         (cached_dw_loc_list_table_hash): New function.
11267         (cached_dw_loc_list_table_eq): Likewise.
11268         (add_location_or_const_value_attribute): Take a bool cache_p.
11269         Cache the list when the parameter is true.
11270         (gen_formal_parameter_die): Update caller.
11271         (gen_variable_die): Likewise.
11272         (dwarf2out_finish): Likewise.
11273         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
11274         while generating debug info for the decl.
11275         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
11276         (dwarf2out_init): Initialize cached_dw_loc_list_table.
11277         (resolve_addr): Cache the result of resolving a chain of
11278         location lists.
11280 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
11282         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
11283         conflict object hard regset nodes have intersecting hard reg sets.
11285         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
11286         after regstat_init_n_sets_and_refs.
11288         * ira.c: Add more comments at the top.
11289         (setup_stack_reg_pressure_class, setup_pressure_classes):
11290         Add comments how we compute the register pressure classes.
11291         (setup_allocno_and_important_classes): Add more comments.
11292         (setup_class_translate_array, reorder_important_classes)
11293         (setup_reg_class_relations): Add comments.
11295         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
11296         start of the file.
11298         * ira-color.c: Add 2011 to the Copyright line.
11299         (assign_hard_reg):  Add more comments.
11300         (improve_allocation): Ditto.
11302         * ira-costs.c: Add 2011 to the Copyright line.
11303         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
11304         comments.
11305         (setup_regno_cost_classes_by_mode): Ditto.
11307         Initial patches from ira-improv branch:
11309         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
11311         * ira-build.c (ira_create_object): Remove initialization of
11312         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
11313         (ira_create_allocno): Remove initialization of
11314         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
11315         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
11316         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11317         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
11318         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
11319         Initialize ALLOCNO_ADD_DATA.
11320         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
11321         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
11322         ALLOCNO_REG.
11323         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
11324         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
11326         * ira.c (ira_reallocate): Remove.
11327         (setup_pressure_classes): Call
11328         ira_init_register_move_cost_if_necessary.  Use
11329         ira_register_move_cost instead of ira_get_register_move_cost.
11330         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
11331         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
11333         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
11334         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11335         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
11336         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
11337         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
11338         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
11339         Fix formatting.
11340         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
11341         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11342         (struct allocno_color_data): New.
11343         (allocno_color_data_t): New typedef.
11344         (allocno_color_data): New definition.
11345         (ALLOCNO_COLOR_DATA): New macro.
11346         (struct object_color_data): New.
11347         (object_color_data_t): New typedef.
11348         (object_color_data): New definition.
11349         (OBJECT_COLOR_DATA): New macro.
11350         (update_copy_costs, calculate_allocno_spill_cost): Call
11351         ira_init_register_move_cost_if_necessary.  Use
11352         ira_register_move_cost instead of ira_get_register_move_cost.
11353         (move_spill_restore, update_curr_costs): Ditto.
11354         (allocno_spill_priority): Make it inline.
11355         (color_pass): Allocate and free allocno_color_dat and object_color_data.
11356         (struct coalesce_data, coalesce_data_t): New.
11357         (allocno_coalesce_data): New definition.
11358         (ALLOCNO_COALESCE_DATA): New macro.
11359         (merge_allocnos, coalesced_allocno_conflict_p): Use
11360         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
11361         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
11362         (coalesce_allocnos): Ditto.
11363         (setup_coalesced_allocno_costs_and_nums): Ditto.
11364         (collect_spilled_coalesced_allocnos): Ditto.
11365         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
11366         (setup_slot_coalesced_allocno_live_ranges): Ditto.
11367         (coalesce_spill_slots): Ditto.
11368         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
11369         free allocno_coalesce_data.
11371         * ira-conflicts.c: Fix formatting.
11372         (process_regs_for_copy): Call
11373         ira_init_register_move_cost_if_necessary.  Use
11374         ira_register_move_cost instead of ira_get_register_move_cost.
11375         (build_object_conflicts): Optimize.
11377         * ira-costs.c (record_reg_classes): Optimize.  Call
11378         ira_init_register_move_cost_if_necessary.  Use
11379         ira_register_move_cost, ira_may_move_in_cost, and
11380         ira_may_move_out_cost instead of ira_get_register_move_cost and
11381         ira_get_may_move_cost.
11382         (record_address_regs): Ditto.
11383         (scan_one_insn): Optimize.
11384         (find_costs_and_classes): Optimize.
11385         (process_bb_node_for_hard_reg_moves): Call
11386         ira_init_register_move_cost_if_necessary.  Use
11387         ira_register_move_cost instead of ira_get_register_move_cost.
11389         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
11390         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
11391         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
11392         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
11393         definitions.
11394         (ira_initiate_emit_data, ira_finish_emit_data)
11395         (create_new_allocno): New functions.
11396         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
11397         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
11398         Use ira_register_move_cost instead of ira_get_register_move_cost.
11400         * ira-int.h: Fix some comments.
11401         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
11402         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11403         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
11404         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
11405         add_data.
11406         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
11407         bitfield after mode.  Make hard_regno a short int.  Make
11408         hard_regno short.  Remove first_coalesced_allocno and
11409         next_coalesced_allocno.  Move mem_optimized_dest_p,
11410         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
11411         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
11412         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
11413         temp, colorable_p.  Add new member add_data.
11414         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
11415         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
11416         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
11417         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
11418         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
11419         (ALLOCNO_ADD_DATA): New macro.
11420         (ira_emit_data_t): New typedef.
11421         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
11422         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
11423         from struct ira_allocno.
11424         (ALLOCNO_EMIT_DATA): New macro.
11425         (ira_allocno_emit_data, allocno_emit_reg): New.
11426         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
11427         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
11428         (OBJECT_ADD_DATA): New macro.
11429         (ira_reallocate): Remove.
11430         (ira_initiate_emit_data, ira_finish_emit_data): New.
11431         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
11432         (ira_init_register_move_cost_if_necessary): New.
11433         (ira_object_conflict_iter_next): Merge into
11434         ira_object_conflict_iter_cond.
11435         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
11437         * ira-live.c (process_single_reg_class_operands): Call
11438         ira_init_register_move_cost_if_necessary.  Use
11439         ira_register_move_cost instead of ira_get_register_move_cost.
11441         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
11443         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
11445         * ira-costs.c: Fix formatting.
11446         (cost_classes, cost_classes_num): Remove.
11447         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
11448         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
11449         (cost_classes_del, cost_classes_htab): New.
11450         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
11451         (initiate_regno_cost_classes, setup_cost_classes): New.
11452         (setup_regno_cost_classes_by_aclass): New.
11453         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
11454         (record_reg_classes): Use regno_cost_classes instead of
11455         cost_classes.  Move checking opposite operand up.
11456         (record_address_regs): Use regno_cost_classes
11457         instead of cost_classes.
11458         (scan_one_insn): Ditto.  Use always general register.
11459         (print_allocno_costs): Use regno_cost_classes instead of
11460         cost_classes.
11461         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
11462         (find_costs_and_classes): Set up cost classes for each registers.
11463         Use also their mode for this.  Use regno_cost_classes instead of
11464         cost_classes.
11465         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
11466         cost_classes.
11467         (free_ira_costs, ira_init_costs): Don't use cost_classes.
11468         (ira_costs, ira_set_pseudo_classes): Call
11469         initiate_regno_cost_classes and finish_regno_cost_classes.
11471         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
11473         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
11475         * target.def (ira_cover_classes): Remove.
11477         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
11479         * doc/tm.texi.in: Ditto.
11481         * ira-conflicts.c: Remove mentioning cover classes from the file.
11482         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
11483         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
11485         * targhooks.c (default_ira_cover_classes): Remove.
11487         * targhooks.h (default_ira_cover_classes): Ditto.
11489         * haifa-sched.c: Remove mentioning cover classes from the file.
11490         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
11491         ira_pressure_classes and ira_pressure_classes_num instead of
11492         ira_reg_class_cover_size and ira_reg_class_cover.  Use
11493         sched_regno_pressure_class instead of sched_regno_cover_class.
11494         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
11495         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11497         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
11498         classes from the file.
11499         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
11500         (struct object_hard_regs, struct object_hard_regs_node): New.
11501         (struct ira_object): New members profitable_hard_regs,
11502         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
11503         (struct ira_allocno): Rename cover_class to aclass.  Rename
11504         cover_class_cost and updated_cover_class_cost to class_cost and
11505         updated_class_cost.  Remove splay_removed_p and
11506         left_conflict_size.  Add new members colorable_p.
11507         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
11508         (ALLOCNO_COLORABLE_P): New macro.
11509         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
11510         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
11511         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
11512         (OBJECT_...): Rename parameter C to O.
11513         (OBJECT_PROFITABLE_HARD_REGS): New macro.
11514         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
11515         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
11516         (struct target_ira_int): New members x_ira_max_memory_move_cost,
11517         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
11518         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
11519         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
11520         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
11521         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
11522         x_ira_reg_class_subunion.
11523         (ira_max_memory_move_cost, ira_max_register_move_cost)
11524         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
11525         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
11526         (ira_important_class_nums, ira_reg_class_superunion): New macros.
11527         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
11528         (ira_reg_class_union): Rename to ira_reg_class_subunion.
11529         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11530         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11531         (ira_tune_allocno_costs_and_cover_classes): Rename to
11532         ira_tune_allocno_costs.
11533         (ira_debug_hard_regs_forest): New.
11534         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
11535         (ira_object_conflict_iter_next): Fix comments.
11536         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
11537         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
11538         cover_class to aclass.
11539         (ira_allocate_and_accumulate_costs): Ditto.
11540         (ira_allocate_and_set_or_copy_costs): Ditto.
11542         * opts.c (decode_options): Remove ira_cover_class check.
11544         * ira-color.c: Remove mentioning cover classes from the file.  Use
11545         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
11546         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
11547         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
11548         (splay-tree.h): Remove include.
11549         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
11550         before copy_freq_compare_func.
11551         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
11552         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
11553         New definitions.
11554         (hard_regs_roots, hard_regs_node_vec): Ditto.
11555         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
11556         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
11557         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
11558         (create_new_object_hard_regs_node): Ditto.
11559         (add_new_object_hard_regs_node_to_forest): Ditto.
11560         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
11561         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
11562         Ditto.
11563         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
11564         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
11565         (remove_unused_object_hard_regs_nodes): Ditto.
11566         (enumerate_object_hard_regs_nodes): Ditto.
11567         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
11568         (object_hard_regs_subnode_t): Ditto.
11569         (struct object_hard_regs_subnode): Ditto.
11570         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
11571         (setup_object_hard_regs_subnode_index): Ditto.
11572         (get_object_hard_regs_subnodes_num): Ditto.
11573         (form_object_hard_regs_nodes_forest): Ditto.
11574         (finish_object_hard_regs_nodes_tree): Ditto.
11575         (finish_object_hard_regs_nodes_forest): Ditto.
11576         (allocnos_have_intersected_live_ranges_p): Rename to
11577         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
11578         (pseudos_have_intersected_live_ranges_p): Rename to
11579         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
11580         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
11581         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
11582         (update_copy_costs): Remove assert.  Skip cost update if the hard
11583         reg does not belong the class.
11584         (assign_hard_reg): Process only profitable hard regs.
11585         (uncolorable_allocnos_num): Make it scalar.
11586         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11587         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
11588         and ira_reg_class_max_nregs.
11589         (bucket_allocno_compare_func): Check frequency first.
11590         (sort_bucket): Add compare function as a parameter.
11591         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
11592         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
11593         (push_allocno_to_stack): Rewrite for checking new allocno
11594         colorability.
11595         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
11596         (push_only_colorable): Pass new parameter to sort_bucket.
11597         (push_allocno_to_spill): Remove.
11598         (allocno_spill_priority_compare): Make it inline and rewrite.
11599         (splay_tree_allocate, splay_tree_free): Remove.
11600         (allocno_spill_sort_compare): New function.
11601         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
11602         build and use splay tree.  Choose first allocno in uncolorable
11603         allocno bucket to spill.  Remove setting spill cost.
11604         (all_conflicting_hard_regs): Remove.
11605         (setup_allocno_available_regs_num): Check only profitable hard
11606         regs.  Print info about hard regs nodes.
11607         (setup_allocno_left_conflicts_size): Remove.
11608         (put_allocno_into_bucket): Don't call
11609         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
11610         (improve_allocation): New.
11611         (color_allocnos): Call setup_profitable_hard_regs,
11612         form_object_hard_regs_nodes_forest, improve_allocation,
11613         finish_object_hard_regs_nodes_forest.  Setup spill cost.
11614         (print_loop_title): Use pressure classes.
11615         (color_allocnso): Ditto.
11616         (do_coloring): Remove allocation and freeing splay_tree_node_pool
11617         and allocnos_for_spilling.
11618         (ira_sort_regnos_for_alter_reg): Don't setup members
11619         {first,next}_coalesced_allocno.
11620         (color): Remove allocating and freeing removed_splay_allocno_vec.
11621         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
11622         prohibited_class_mode_regs.
11624         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
11625         formatting.
11626         (update_allocno_pressure_excess_length): Use pressure classes.
11627         (inc_register_pressure, dec_register_pressure): Check for pressure
11628         class.
11629         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
11630         pressure class.  Use ira_reg_class_nregs instead of
11631         ira_reg_class_max_nregs.
11632         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
11633         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
11634         (single_reg_class): Use ira_reg_class_nregs instead of
11635         ira_reg_class_max_nregs.
11636         (process_bb_node_lives): Use pressure classes.
11638         * ira-emit.c: Remove mentioning cover classes from the file.  Use
11639         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
11640         (change_loop): Use pressure classes.
11641         (modify_move_list): Call ira_set_allocno_class instead of
11642         ira_set_allocno_cover_class.
11644         * ira-build.c: Remove mentioning cover classes from the file.  Use
11645         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
11646         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
11647         ALLOCNO_UPDATED_CLASS_COST instead of
11648         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
11649         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
11650         (ira_create_allocno): Remove initialization of
11651         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
11652         ALLOCNO_COLORABLE_P.
11653         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11654         Update conflict regs for the objects.
11655         (create_cap_allocno): Remove assert.  Don't propagate
11656         ALLOCNO_AVAILABLE_REGS_NUM.
11657         (ira_free_allocno_costs): New function.
11658         (finish_allocno): Change a part of code into call of
11659         ira_free_allocno_costs.
11660         (low_pressure_loop_node_p): Use pressure classes.
11661         (object_range_compare_func): Don't compare classes.
11662         (setup_min_max_conflict_allocno_ids): Ditto.
11664         * loop-invariant.c: Remove mentioning cover classes from the file.
11665         Use ira_pressure_classes and ira_pressure_classes_num instead of
11666         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
11667         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
11668         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11669         Use reg_allocno_class instead of reg_cover_class.
11670         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
11671         STACK_REG_COVER_CLASS.
11672         (get_regno_cover_class): Rename to get_regno_pressure_class.
11673         (move_loop_invariants): Initialize and finalize regstat.
11675         * ira.c: Remove mentioning cover classes from the file.  Add
11676         comments about coloring without cover classes.  Use ALLOCNO_CLASS
11677         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
11678         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
11679         setup_class_subset_and_memory_move_costs.
11680         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
11681         (setup_cover_and_important_classes): Rename to
11682         setup_allocno_and_important_classes.
11683         (setup_class_translate_array): New.
11684         (setup_class_translate): Call it for allocno and pressure classes.
11685         (cover_class_order): Rename to allocno_class_order.
11686         (comp_reg_classes_func): Use ira_allocno_class_translate instead
11687         of ira_class_translate.
11688         (reorder_important_classes): Set up ira_important_class_nums.
11689         (setup_reg_class_relations): Set up ira_reg_class_superunion.
11690         (print_class_cover): Rename to print_classes.  Add parameter.
11691         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11692         Print pressure classes too.
11693         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
11694         setup_reg_subclasses.
11695         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11696         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11697         (setup_prohibited_class_mode_regs): Use
11698         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
11699         (clarify_prohibited_class_mode_regs): New function.
11700         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
11701         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
11702         (ira_init_once): Initialize them.
11703         (free_register_move_costs): Process them.
11704         (ira_init): Move calls of find_reg_classes and
11705         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
11706         Call clarify_prohibited_class_mode_regs.
11707         (ira_no_alloc_reg): Remove.
11708         (too_high_register_pressure_p): Use pressure classes.
11710         * sched-deps.c: Remove mentioning cover classes from the file.
11711         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
11712         ira_pressure_classes and ira_pressure_classes_num instead of
11713         ira_reg_class_cover_size and ira_reg_class_cover.
11714         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
11715         sched_regno_pressure_class instead of sched_regno_cover_class.
11716         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
11717         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11719         * ira.h: Add 2010 to Copyright.
11720         (ira_no_alloc_reg): Remove external.
11721         (struct target_ira): Rename x_ira_hard_regno_cover_class,
11722         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
11723         x_ira_class_translate to x_ira_hard_regno_allocno_class,
11724         x_ira_allocno_classes_num, x_ira_allocno_classes, and
11725         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
11726         x_ira_pressure_classes, x_ira_pressure_class_translate, and
11727         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
11728         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
11729         x_ira_no_alloc_regs.
11730         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11731         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
11732         ira_allocno_classes_num and ira_allocno_classes.
11733         (ira_class_translate): Rename to ira_allocno_class_translate.
11734         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
11735         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
11736         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11737         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
11738         (ira_no_alloc_regs): New.
11740         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
11741         classes from the file.  Use ALLOCNO_CLASS instead of
11742         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
11743         ALLOCNO_COVER_CLASS_COST.
11744         (regno_cover_class): Rename to regno_aclass.
11745         (record_reg_classes): Use ira_reg_class_subunion instead of
11746         ira_reg_class_union.
11747         (record_address_regs): Check overflow.
11748         (scan_one_insn): Ditto.
11749         (print_allocno_costs): Print total mem cost fore regional allocation.
11750         (print_pseudo_costs): Use REG_N_REFS.
11751         (find_costs_and_classes): Use classes intersected with them on the
11752         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
11753         ira_reg_class_union.  Use ira_allocno_class_translate and
11754         regno_aclass instead of ira_class_translate and regno_cover_class.
11755         Modify code for finding regno_aclass.  Setup preferred classes for
11756         the next pass.
11757         (setup_allocno_cover_class_and_costs): Rename to
11758         setup_allocno_class_and_costs.  Use regno_aclass instead of
11759         regno_cover_class.  Use ira_set_allocno_class instead of
11760         ira_set_allocno_cover_class.
11761         (init_costs, finish_costs): Use regno_aclass instead of
11762         regno_cover_class.
11763         (ira_costs): Use setup_allocno_class_and_costs instead of
11764         setup_allocno_cover_class_and_costs.
11765         (ira_tune_allocno_costs_and_cover_classes): Rename to
11766         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
11767         by processing objects.  Use ira_reg_class_max_nregs instead of
11768         ira_reg_class_nregs.
11770         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
11772         * sched-int.h: Remove mentioning cover classes from the file.
11773         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
11775         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
11776         classes from the file.
11777         (struct reg_pref): Rename coverclass into allocnoclass.
11778         (reg_cover_class): Rename to reg_allocno_class.
11780         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
11782         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
11784         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
11786         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
11788         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
11790         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
11792         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
11794         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
11796         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
11798         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
11800         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
11801         (i386_ira_cover_classes): Ditto.
11803         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
11805         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
11807         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
11809         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
11811         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
11813         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
11815         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
11816         (mips_ira_cover_classes): Ditto.
11818         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
11820         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
11822         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
11824         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
11826         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
11828         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
11829         (IRA_COVER_CLASSES_VSX): Ditto.
11831         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
11832         (rs6000_ira_cover_classes): Ditto.
11834         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
11836         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
11838         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
11840         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
11842         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
11844         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
11846         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
11848         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
11850         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
11852         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
11854 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
11856         PR debug/48253
11857         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
11858         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
11859         dw_fde_unlikely_section_end_label, cold_in_std_section,
11860         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
11861         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
11862         fields.
11863         (output_fde): Use dw_fde_second_{begin,end} if second is
11864         true, otherwise dw_fde_{begin,end}.
11865         (output_call_frame_info): Test dw_fde_second_begin != NULL
11866         instead of dw_fde_switched_sections.
11867         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
11868         fields, initialize new fields.  Initialize in_std_section
11869         unconditionally from the first partition.
11870         (dwarf2out_end_epilogue): Don't override dw_fde_end when
11871         dw_fde_second_begin is non-NULL.
11872         (dwarf2out_switch_text_section): Stop initializing removed
11873         dw_fde_struct fields, initialize new fields, initialize
11874         also dw_fde_end here.  Set dw_fde_switch_cfi even when
11875         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
11876         (struct var_loc_list_def): Add last_before_switch field.
11877         (arange_table, arange_table_allocated, arange_table_in_use,
11878         ARANGE_TABLE_INCREMENT, add_arange): Removed.
11879         (size_of_aranges): Count !in_std_section and !second_in_std_section
11880         hunks in fdes, instead of looking at arange_table_in_use.
11881         (output_aranges): Add aranges_length argument, don't call
11882         size_of_aranges here.  Instead of using aranges_table*
11883         emit ranges for fdes when !in_std_section resp.
11884         !second_in_std_section.
11885         (dw_loc_list): Break ranges crossing section switch.
11886         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
11887         use dw_fde_second_end instead of dw_fde_end as end of last range.
11888         (gen_subprogram_die): Don't call add_arange.  Use
11889         dw_fde_{begin,end} for first partition and if switched
11890         section dw_fde_second_{begin,end} for the second.
11891         (var_location_switch_text_section_1,
11892         var_location_switch_text_section): New functions.
11893         (dwarf2out_begin_function): Initialize cold_text_section even
11894         when function_section () isn't text_section.
11895         (prune_unused_types): Don't walk arange_table.
11896         (dwarf2out_finish): Don't needlessly test
11897         flag_reorder_blocks_and_partition when testing cold_text_section_used.
11898         If info_section_emitted, call size_of_aranges and if it indicates
11899         non-empty .debug_aranges, call output_aranges with the computed
11900         size.  Stop using removed dw_fde_struct fields, use
11901         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
11902         for second.
11904         PR debug/48203
11905         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
11906         create ENTRY_VALUE if incoming or address of incoming's MEM
11907         is a hard REG.
11908         * dwarf2out.c (mem_loc_descriptor): Don't emit
11909         DW_OP_GNU_entry_value of DW_OP_fbreg.
11910         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
11911         on ENTRY_VALUE is able to find the canonical parameter VALUE.
11912         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
11913         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
11914         ENTRY_VALUE_EXPs.
11915         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
11916         is a REG_P or MEM_P with REG_P address, compute hash directly
11917         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
11918         (preserve_only_constants): Don't clear VALUES forwaring
11919         ENTRY_VALUE to some other VALUE.
11921 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
11923         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
11924         instead of GEN_INT.
11926 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
11928         * cfgexpand.c (expand_gimple_cond): Always set the source location and
11929         block before expanding the statement.
11930         (expand_gimple_stmt_1): Likewise.  Set them here...
11931         (expand_gimple_stmt): ...and not here.  Tidy.
11932         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
11933         unknown.
11935 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
11937         * Makefile.in: New rule for cprop.o.
11938         * gcse.c: Move constant/copy propagation to cprop.c.
11939         (compute_local_properties): Only handle expression tables.
11940         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
11941         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
11942         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
11943         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
11944         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
11945         compute_cprop_data, find_used_regs, try_replace_reg,
11946         find_avail_set, cprop_jump, constprop_register, cprop_insn,
11947         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
11948         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
11949         find_bypass_set, reg_killed_on_edge, bypass_block,
11950         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
11951         execute_rtl_cprop, pass_rtl_cprop): Move to...
11952         * cprop.c: ...here.  New file, constant/copy propagation for RTL
11953         moved from gcse.c to here with minor cleanups in duplicated code.
11955 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
11957         * config/i386/i386.c (flag_opts): Fix a typo in
11958         -mavx256-split-unaligned-store.
11960 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
11962         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11963         LIBCALL_VALUE): Remove macros.
11964         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11965         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11966         (h8300_function_value, h8300_libcall_value,
11967         h8300_function_value_regno_p): New functions.
11969 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
11971         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
11973 2011-03-28  Jeff Law  <law@redhat.com>
11975         * tree-ssa-threadupdate.c (redirect_edges): Call
11976         create_edge_and_update_destination_phis as needed.
11977         (create_edge_and_update_destination_phis): Accept new BB argument.
11978         All callers updated.
11979         (thread_block): Do not update the profile when threading around
11980         intermediate blocks.
11981         (thread_single_edge): Likewise.
11982         (determine_bb_domination_status): If BB is not a successor of the
11983         loop header, return NONDOMINATING.
11984         (register_jump_thread): Note when we register a jump thread around
11985         an intermediate block.
11986         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
11987         (thread_across_edge): Use it.
11989 2011-03-28  Tristan Gingold  <gingold@adacore.com>
11991         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
11992         when for_return is 2.
11994 2011-03-28  Jeff Law  <law@redhat.com>
11996         * var-tracking.c (canonicalize_values_mark): Delete unused
11997         lhs assignment.
11998         (canonicalize_values_star, set_variable_part): Likewise.
11999         (clobber_variable_part, delete_variable_part): Likewise.
12001 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
12003         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12005 2011-03-28  Martin Jambor  <mjambor@suse.cz>
12007         * tree-inline.c (expand_call_inline): Do not check that destination
12008         node is analyzed.
12009         (optimize_inline_calls): Assert that destination node is analyzed.
12010         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12011         not call tree_lowering_passes.
12012         * cgraph.h (cgraph_analyze_function): Declare.
12013         * cgraphunit.c (cgraph_analyze_function): Make public.
12015 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
12017         * config/sparc/sparc-opts.h: New.
12018         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12019         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12020         (sparc_option_override): Store processor_type enumeration rather
12021         than string in cpu_default.  Remove name and enumeration from
12022         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
12023         without using sparc_select.  Use target_flags_explicit instead of
12024         fpu_option_set.
12025         * config/sparc/sparc.h (enum processor_type): Move to
12026         sparc-opts.h.
12027         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12028         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12029         HeaderInclude entry.
12030         (mcpu=, mtune=): Use Var and Enum.
12031         (sparc_processor_type): New Enum and EnumValue entries.
12033 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12034             Iain Sandoe  <iains@gcc.gnu.org>
12036         PR target/48245
12037         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12039 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
12041         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12042         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12043         Insert new statements at it in lieu of STMT.
12044         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12045         * tree-vect-stmts.c (vectorizable_store): Likewise.
12046         (vectorizable_load): Likewise.
12048 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
12050         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12051         (divtf3): Ditto.
12052         (multf3): Ditto.
12053         (subtf3): Ditto.
12055 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12057         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12058         unaligned 256bit load/store.
12059         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12060         (*avx_movdqu<avxmodesuffix>): Likewise.
12062 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12064         PR target/48288
12065         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12066         * config/pa/pa.md (iordi3): Use new predicate in expander.
12067         (iorsi3): Likewise.
12069 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
12071         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12072         FUNCTION_VALUE_REGNO_P): Remove macros.
12073         * config/mips/mips-protos.h (mips_function_value): Remove.
12074         * config/mips/mips.c (mips_function_value): Rename to...
12075         (mips_function_value_1): ... this. Make static.  Handle receiving
12076         the function type in 'fn_decl_or_type' argument.
12077         (mips_function_value, mips_libcall_value,
12078         mips_function_value_regno_p): New function.
12079         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12080         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12082 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12084         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12085         and -mavx256-split-unaligned-store.
12086         (ix86_option_override_internal): Split 32-byte AVX unaligned
12087         load/store by default.
12088         (ix86_avx256_split_vector_move_misalign): New.
12089         (ix86_expand_vector_move_misalign): Use it.
12091         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12092         -mavx256-split-unaligned-store.
12094         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12095         256bit load/store.  Generate unaligned store on misaligned memory
12096         operand.
12097         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12098         256bit load/store.
12099         (*avx_movdqu<avxmodesuffix>): Likewise.
12101         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12102         -mavx256-split-unaligned-store.
12104 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
12106         PR target/38598
12107         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12108         Update commentary.
12110 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
12112         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12113         opno arguments with an expand_operand.  Use create_input_operand.
12114         (mips_prepare_builtin_target): Delete.
12115         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12116         functions.
12117         (mips_expand_builtin_direct): Use create_output_operand and
12118         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
12119         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
12120         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12122 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
12124         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12125         function.
12126         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12128 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
12130         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12131         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
12132         basic blocks and call commit_edge_insertions directly.
12133         (fixup_abnormal_edges): Move from here to...
12134         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
12135         on the edges and return whether some have actually been inserted.
12136         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12137         compensation code.
12139 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
12141         PR rtl-optimization/48144
12142         * sel-sched-ir.c (merge_history_vect): Factor out from ...
12143         (merge_expr_data): ... here.
12144         (av_set_intersect): Rename to av_set_code_motion_filter.
12145         Update all callers.  Call merge_history_vect when an expression
12146         is found in both sets.
12147         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12149 2011-03-26  Alan Modra  <amodra@gmail.com>
12151         * config/rs6000/predicates.md (word_offset_memref_op): Handle
12152         cmodel medium addresses.
12153         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12154         64-bit gpr loads and stores.
12155         (rs6000_secondary_reload_ppc64): New function.
12156         * config/rs6000/rs6000-protos.h: Declare it.
12157         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12159 2011-03-26  Alan Modra  <amodra@gmail.com>
12161         PR target/47487
12162         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12163         GNU Go in traceback table.
12165 2011-03-25  Richard Henderson  <rth@redhat.com>
12167         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12168         if there are exactly 6 operands.
12169         (set_storage_via_setmem): Similarly.
12171 2011-03-25  Kai Tietz  <ktietz@redhat.com>
12173         * collect2.c (write_c_file_stat): Handle backslash
12174         as right-hand directory separator.
12175         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12176         checking just for slash.
12177         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12178         instead of checking for trailing slash.
12179         * gcc.c (record_temp_file): Use filename_cmp instead
12180         of strcmp.
12181         (do_spec_1): Likewise.
12182         (replace_outfile_spec_function): Likewise.
12183         (is_directory): Use filename_ncmp instead of strncmp.
12184         (print_multilib_info): Likewise.
12185         * gcov.c (find_source): Use filename_cmp instead
12186         instead of strcmp.
12187         (make_gcov_file_name): Fix order of slash/backslash
12188         checks.
12189         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12190         (add_standard_paths): Likewise.
12191         * mips-tfile.c (saber_stop): Handle backslash.
12192         * prefix.c (update_path): Use filename_ncmp instead of
12193         strncmp.
12194         * profile.c (output_location): Use filename_cmp instead
12195         of strcmp.
12196         * read-md.c (handle_toplevel_file): Handle backslash.
12197         * tlink.c (frob_extension):  Likewise.
12198         * tree-cfg.c (same_line_p): Use filename_cmp instead of
12199         strcmp.
12200         * tree-dump.c (dequeue_and_dump): Handle backslash.
12201         * tree.c (get_file_function_name): Likewise.
12202         * gengtype.c (read_input_list): Likewise.
12203         (get_file_realbasename): Likewise.
12204         (get_output_file_with_visibility): Use filename_cmp
12205         instead of strcmp.
12207 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
12209         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12210         case to VFPv1.
12212 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
12214         * fold-const.c (expr_location_or): New function.
12215         (fold_truth_not_expr): Call it.
12217 2011-03-25  Jeff Law  <law@redhat.com>
12219         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
12220         va_end.
12221         * c-family/c-common.c (def_fn_type): Likewise.
12222         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12223         * emit-rtl.c (gen_rtvec): Likewise.
12224         * lto/lto-lang.c (def_fn_type): Likewise.
12226 2011-03-25  Richard Guenther  <rguenther@suse.de>
12228         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
12229         also generate copies.
12230         (fini_copy_prop): Handle constant values properly.
12232 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
12234         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
12235         mode size instead of bitsize with DWARF2_ADDR_SIZE.
12236         (hash_loc_operands, compare_loc_operands): Handle
12237         DW_OP_GNU_entry_value.
12239 2011-03-25  Kai Tietz  <ktietz@redhat.com>
12241         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
12242         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
12243         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
12244         comment and use macro TARGET_64BIT_MS_ABI instead.
12245         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
12246         and change default behavior for 32-bit MS_ABI.
12247         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
12248         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
12249         32-bit, too.
12250         (ix86_cfun_abi): Likewise.
12251         (ix86_maybe_switch_abi): Adjust comment.
12252         (init_cumulative_args): Check for bit-ness in MS_ABI case.
12253         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
12254         instead of checking for SYSV_ABI.
12255         (ix86_nsaved_sseregs): Likewise.
12256         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
12257         to 16 bytes.
12258         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
12259         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
12260         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
12261         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
12262         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
12264 2011-03-25  Richard Guenther  <rguenther@suse.de>
12266         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
12267         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12268         (verify_gimple): Remove.
12269         * tree-cfg.c (verify_gimple_call): Merge verification
12270         from verify_stmts.
12271         (verify_gimple_phi): Merge verification from verify_stmts.
12272         (verify_gimple_label): New function.
12273         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
12274         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12275         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
12276         (verify_stmts): Rename to verify_gimple_in_cfg.
12277         (verify_gimple_in_cfg): New function.
12278         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
12279         * tree-ssa.c (verify_ssa): Likewise.
12280         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
12282 2011-03-25  Richard Guenther  <rguenther@suse.de>
12284         * passes.c (init_optimization_passes): Add FRE pass after
12285         early SRA.
12287 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
12288             Andrew Stubbs  <ams@codesourcery.com>
12290         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
12291         for Cortex-A8.
12292         (arm_movdi_vfp_cortexa8): New pattern.
12293         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
12294         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
12295         instructions when tuning for Cortex-A8.  Set attribute "arch".
12296         * config/arm/arm.md: Move include arm-tune.md up a bit.
12297         (define_attr "arch"): Add "onlya8" and "nota8" values.
12298         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
12300 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
12302         PR bootstrap/48282
12303         Revert:
12304         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
12306         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12307         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
12308         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12309         * passes.c (init_optimization_passes): Move
12310         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12312 2011-03-25  Kai Tietz  <ktietz@redhat.com>
12314         * c-typeck.c (comptypes_internal): Replace target
12315         hook call of comp_type_attributes by version in tree.c file.
12316         * gimple.c (gimple_types_compatible_p_1): Likewise.
12317         * tree-ssa.c (useless_type_conversion_p): Likewise.
12318         * tree.c (build_type_attribute_qual_variant): Likewise.
12319         (attribute_value_equal): New static helper function.
12320         (comp_type_attributes): New function.
12321         (merge_attributes): Use attribute_value_equal for comparison.
12322         (attribute_list_contained): Likewise.
12323         * tree.h (comp_type_attributes): New prototype.
12325 2011-03-25  Richard Guenther  <rguenther@suse.de>
12327         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
12328         of complex types at -O0.
12329         (verify_gimple_assign_binary): Likewise.
12330         (verify_gimple_assign_ternary): Likewise.
12332 2011-03-24  Mark Wielaard  <mjw@redhat.com>
12334         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
12335         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
12337 2011-03-24  Mark Wielaard  <mjw@redhat.com>
12339         PR debug/48041
12340         * dwarf2out.c (output_abbrev_section): Only write table when
12341         abbrev_die_table_in_use > 1.
12343 2011-02-24  Richard Henderson  <rth@redhat.com>
12345         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
12346         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
12347         (alpha_expand_unaligned_load_words): Use extql.
12348         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
12349         (emit_insxl): Handle all modes for consistency.
12351 2011-02-24  Richard Henderson  <rth@redhat.com>
12353         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
12354         (alpha_expand_unaligned_load): Likewise.
12355         (alpha_expand_unaligned_store): Likewise.
12356         (alpha_expand_unaligned_load_words): Likewise.
12357         (alpha_expand_unaligned_store_words): Likewise.
12358         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
12359         (alpha_split_lock_test_and_set_12): Likewise.
12360         (print_operand, alpha_fold_builtin_extxx): Likewise.
12361         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
12362         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
12363         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
12364         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
12365         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
12366         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
12367         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
12368         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
12369         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
12370         (extwl, extll, extql): Similarly.
12371         (inswh, inslh, insqh): Similarly.
12372         (mskbl, mskwl, mskll, mskql): Similarly.
12373         (mskwh, msklh, mskqh): Similarly.
12375 2011-02-24  Richard Henderson  <rth@redhat.com>
12377         * config/alpha/alpha.md (attribute isa): Add er, ner.
12378         (attribute enabled): Handle them.
12379         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
12381 2011-02-24  Richard Henderson  <rth@redhat.com>
12383         * config/alpha/alpha.md (attribute isa): Add vms.
12384         (attribute enabled): Handle it.
12385         (*movsf): Merge *movsf_{nofix,fix,nofp}.
12386         (*movdf): Merge *movdf_{nofix,fix,nofp}.
12387         (*movtf): Rename from *movtf_internal for consistency.
12388         (*movsi): Merge with *movsi_nt_vms.
12389         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
12390         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
12391         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
12392         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
12394 2011-02-24  Richard Henderson  <rth@redhat.com>
12396         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
12397         (extendqisi2, extendhisi2): Likewise.
12398         (extendqidi2): Simplify BWX/non-BWX expansions.
12399         (extendhidi2): Similarly.
12401 2011-02-24  Richard Henderson  <rth@redhat.com>
12403         * config/alpha/alpha.md (attribute isa): New.
12404         (attribute enabled): New.
12405         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
12406         (zero_extendqisi2, zero_extendqidi2): Similarly.
12407         (zero_extendhisi2, zero_extendhidi2): Similarly.
12408         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
12410 2011-02-24  Richard Henderson  <rth@redhat.com>
12412         * config/alpha/predicates.md (input_operand): Revert last change;
12413         update comment to mention 32-bit VMS rather than Windows.
12415 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
12417         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12418         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
12419         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12420         * passes.c (init_optimization_passes): Move
12421         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12423 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
12425         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
12427 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
12429         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
12430         correctly.
12432 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
12434         PR debug/48204
12435         * simplify-rtx.c (simplify_const_unary_operation): Call
12436         real_convert when changing mode class with FLOAT_EXTEND.
12438 2011-03-24  Nick Clifton  <nickc@redhat.com>
12440         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
12441         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12442         * config/rx/rx.c (rx_option_override): Set align_jumps,
12443         align_loops and align_labels if not set by the user.
12444         (rx_align_for_label): New function.
12445         (rx_max_skip_for_label): New function.
12446         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
12447         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
12448         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
12449         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
12450         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
12452 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
12454         PR rtl-optimization/48263
12455         * optabs.c (expand_binop_directly): Reinstate convert_modes code
12456         and original commutative_p handling.  Use maybe_gen_insn.
12458 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12460         * reload.c (find_reloads_subreg_address): Add address_reloaded
12461         parameter and return true there if the full address has been
12462         reloaded.
12463         (find_reloads_toplev): Pass address_reloaded flag.
12464         (find_reloads_address_1): Don't use address_reloaded parameter.
12466 2011-03-24  Jeff Law  <law@redhat.com>
12468         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
12469         unused variable "ann".
12470         (remove_unused_locals): Likewise.
12472         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
12473         statement.
12475         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
12476         after it is freed.
12478 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12480         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
12481         for invalid symbolic addresses.
12482         (s390_secondary_reload): Don't use s390_check_symref_alignment for
12483         larl operands.
12485 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
12487         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
12488         the argument in calls to fold_truth_not_expr.
12490 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
12492         * tree.c (record_node_allocation_statistics): New function.
12493         (make_node_stat, copy_node_stat, build_string): Call it.
12494         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
12495         (build1_stat, build_omp_clause): Likewise.
12497 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
12499         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
12500         last commit.
12502 2011-03-24  Richard Guenther  <rguenther@suse.de>
12504         PR tree-optimization/48271
12505         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
12506         blocks that still exist.
12508 2011-03-24  Richard Guenther  <rguenther@suse.de>
12510         PR tree-optimization/48270
12511         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
12512         not free datarefs before ddrs.
12514 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
12516         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
12517         from the address built for a reference with variable offset.
12519 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
12521         PR target/48237
12522         * config/i386/i386.md (*movdf_internal_rex64): Do not split
12523         alternatives that can be handled with movq or movabsq insn.
12524         (*movdf_internal): Disable for !TARGET_64BIT.
12525         (*movdf_internal_nointeger): Ditto.
12526         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
12528 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
12530         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12531         (FUNCTION_ARG_ADVANCE): Likewise.
12532         * tm.texi.in: Change references to them to hook references.
12533         * tm.texi: Regenerate.
12534         * targhooks.c (default_function_arg): Eliminate check for target macro.
12535         (default_function_incoming_arg): Likewise.
12536         (default_function_arg_advance): Likewise.
12537         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12538         (function_arg_advance): Likewise.
12539         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12541 2011-03-24  Richard Guenther  <rguenther@suse.de>
12543         PR middle-end/48269
12544         * tree-object-size.c (addr_object_size): Do not double-account
12545         for MEM_REF offsets.
12547 2011-03-24  Diego Novillo  <dnovillo@google.com>
12549         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
12550         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
12551         (lto_input_data_block): Move from lto-opts.c.  Make extern.
12552         Update all users.
12553         (lto_input_string): Rename from input_string.  Make extern.
12554         Update all users.
12555         * lto-streamer-out.c (lto_output_string_with_length): Rename from
12556         output_string_with_length.
12557         Output 0 to indicate a non-NULL string.  Update all callers to
12558         not emit 0.
12559         (lto_output_string): Rename from output_string.  Make extern.
12560         Update all users.
12561         (lto_output_decl_state_streams): Make extern.
12562         (lto_output_decl_state_refs): Make extern.
12563         * lto-streamer.h (lto_input_string): Declare.
12564         (lto_input_data_block): Declare.
12565         (lto_output_string): Declare.
12566         (lto_output_string_with_length): Declare.
12567         (lto_output_decl_state_streams): Declare.
12568         (lto_output_decl_state_refs): Declare.
12570 2011-03-24  Richard Guenther  <rguenther@suse.de>
12572         PR tree-optimization/46562
12573         * tree.c (build_invariant_address): New function.
12574         * tree.h (build_invariant_address): Declare.
12575         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
12576         a renamed function moved ...
12577         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
12578         Take valueization callback parameter.
12579         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
12580         * gimple-fold.h: New file.
12581         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
12582         (ccp_fold, fold_const_aggregate_ref,
12583         fold_ctor_reference, fold_nonarray_ctor_reference,
12584         fold_array_ctor_reference, fold_string_cst_ctor_reference,
12585         get_base_constructor): Move ...
12586         * gimple-fold.c: ... here.
12587         (gimple_fold_stmt_to_constant_1): New function
12588         split out from ccp_fold.  Take a valueization callback parameter.
12589         Valueize all operands.
12590         (gimple_fold_stmt_to_constant): New wrapper function.
12591         (fold_const_aggregate_ref_1): New function split out from
12592         fold_const_aggregate_ref.  Take a valueization callback parameter.
12593         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
12594         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
12595         invariant POINTER_PLUS_EXPRs to invariant form.
12596         (vn_valueize): New function.
12597         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
12598         * tree-vrp.c (vrp_valueize): New function.
12599         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
12600         to fold statements to constants.
12601         * tree-ssa-pre.c (eliminate): Properly guard propagation of
12602         function declarations.
12603         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
12604         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
12606 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
12608         * config/h8300/predicates.md (jump_address_operand): Fix register
12609         mode check.
12611 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
12613         * doc/invoke.texi (max-stores-to-sink): Document.
12614         * params.h (MAX_STORES_TO_SINK): Define.
12615         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
12616         if either vectorization or if-conversion is disabled.
12617         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
12618         tree-vect-data-refs.c vect_equal_offsets.
12619         (dr_equal_offsets_p): New function.
12620         (find_data_references_in_bb): Remove static.
12621         * tree-data-ref.h (find_data_references_in_bb): Declare.
12622         (dr_equal_offsets_p): Likewise.
12623         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
12624         (vect_drs_dependent_in_basic_block): Update calls to
12625         vect_equal_offsets.
12626         (vect_check_interleaving): Likewise.
12627         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
12628         (cond_if_else_store_replacement): Rename to...
12629         (cond_if_else_store_replacement_1): ... this.  Change arguments and
12630         documentation.
12631         (cond_if_else_store_replacement): New function.
12632         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
12633         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
12635 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
12637         PR target/46934
12638         * config/arm/arm.md (casesi): Use the gen_int_mode() function
12639         to subtract lower bound instead of GEN_INT().
12641 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
12643         PR other/48179
12644         PR other/48221
12645         PR other/48234
12646         * doc/extend.texi (Alignment): Move section to match order in TOC.
12647         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
12648         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
12650 2011-03-23  Jeff Law  <law@redhat.com>
12652         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
12653         before removing the edge.
12655         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
12656         it may have been freed by redirect_branch_edge or
12657         redirect_edge_succ_nodup.
12659 2011-03-23  Richard Guenther  <rguenther@suse.de>
12661         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
12662         (check_va_list_escapes): Likewise.
12663         (check_all_va_list_escapes): Likewise.
12665 2011-03-23  Richard Guenther  <rguenther@suse.de>
12667         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
12668         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
12669         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
12670         (alias.o): Likewise.
12671         (ipa-type-escape.o): Remove.
12672         (ipa-struct-reorg.o): Likewise.
12673         (GTFILES): Remove ipa-struct-reorg.c.
12674         * alias.c: Do not include ipa-type-escape.h.
12675         * tree-ssa-alias.c: Likewise.
12676         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
12677         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
12678         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
12679         and ipa-type-escape passes.
12680         * tree-pass.h (pass_ipa_type_escape): Remove.
12681         (pass_ipa_struct_reorg): Likewise.
12682         * ipa-struct-reorg.h: Remove.
12683         * ipa-struct-reorg.c: Likewise.
12684         * ipa-type-escape.h: Likewise.
12685         * ipa-type-escape.c: Likewise.
12686         * doc/invoke.texi (-fipa-struct-reorg): Remove.
12687         (--param struct-reorg-cold-struct-ratio): Likewise.
12688         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12689         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12690         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
12692 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12694         * config/s390/2084.md: Enable all insn reservations also for z9_ec
12695         cpu attribute value.
12696         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
12697         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
12698         * config/s390/s390.c (processor_flags_table): New constant array.
12699         (s390_handle_arch_option): Remove.
12700         (s390_handle_option): Remove s390_handle_arch_option invocations
12701         and OPT_mwarn_framesize_ handling.
12702         (s390_option_override): Remove s390_handle_arch_option invocation.
12703         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
12704         warnings.
12705         * config/s390/s390.md (cpu attribute): Add z9_ec value.
12706         * config/s390/s390.opt (s390_tune, s390_arch)
12707         (march=): Replace s390_arch_option enum and values with
12708         processor_type.  Set variable name to s390_arch.  Set
12709         initialization value.
12710         (mtune=): Replace s390_arch_option with processor_type.  Set
12711         variable name to s390_tune.  Set initialization value.
12713 2011-03-23  Julian Brown  <julian@codesourcery.com>
12715         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
12716         accesses which are not naturally aligned.
12718 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
12720         PR target/47553
12721         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
12723 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
12725         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
12726         parameter from "int" to "enum insn_code".
12727         (expand_operand_type): New enum.
12728         (expand_operand): New structure.
12729         (create_expand_operand): New function.
12730         (create_fixed_operand, create_output_operand): Likewise
12731         (create_input_operand, create_convert_operand_to): Likewise.
12732         (create_convert_operand_from, create_address_operand): Likewise.
12733         (create_integer_operand): Likewise.
12734         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
12735         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12736         (expand_insn, expand_jump_insn): Likewise.
12737         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
12738         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
12739         (expand_movstr, expand_builtin___clear_cache): Likewise.
12740         (expand_builtin_lock_release): Likewise.
12741         * explow.c (allocate_dynamic_stack_space): Likewise.
12742         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
12743         and use the default handling in that case.
12744         * expmed.c (check_predicate_volatile_ok): Delete.
12745         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
12746         (emit_cstore): Likewise.
12747         * expr.c (emit_block_move_via_movmem): Likewise.
12748         (set_storage_via_setmem, expand_assignment): Likewise.
12749         (emit_storent_insn, try_casesi): Likewise.
12750         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
12751         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
12752         (expand_vec_shift_expr, expand_binop_directly): Likewise.
12753         (expand_twoval_unop, expand_twoval_binop): Likewise.
12754         (expand_unop_direct, emit_indirect_jump): Likewise.
12755         (emit_conditional_move, vector_compare_rtx): Likewise.
12756         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
12757         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
12758         (expand_sync_lock_test_and_set): Likewise.
12759         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
12760         (emit_unop_insn): Likewise.
12761         (expand_copysign_absneg): Change icode to an insn_code.
12762         (create_convert_operand_from_type): New function.
12763         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
12764         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12765         (expand_insn, expand_jump_insn): Likewise.
12766         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
12767         than const_int_operand for operand 2.
12769 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12771         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
12772         if possible.
12774 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
12776         * emit-rtl.c (emit_pattern_before_noloc): New function.
12777         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
12778         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
12779         (emit_pattern_after_noloc): New function.
12780         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
12781         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
12783 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
12785         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
12786         (__ffsDI2): Likewise.
12788 2011-03-22  Richard Henderson  <rth@redhat.com>
12790         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
12791         of !TARGET_ABI_OPEN_VMS.
12792         (alpha_trampoline_init, alpha_start_function): Likewise.
12793         (alpha_expand_epilogue, alpha_file_start): Likewise.
12794         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
12795         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
12796         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
12797         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
12798         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
12800 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12802         * config/s390/s390-opts.h: New.
12803         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
12804         s390_arch_flags, s390_warn_framesize, s390_stack_size,
12805         s390_stack_guard): Remove.
12806         (s390_handle_arch_option): Return void.  Take enum
12807         s390_arch_option value instead of string and searching array.
12808         (s390_handle_option): Don't assert that global structures are in
12809         use.  Access variables via opts pointer.  Use error_at.  Don't use
12810         sscanf for -mstack-guard= or -mstack-size=.  Update call to
12811         s390_handle_arch_option.
12812         (s390_option_override): Update call to s390_handle_arch_option.
12813         (s390_emit_prologue): Use %d format for s390_stack_size in
12814         diagnostic.  Use %wd for HOST_WIDE_INT.
12815         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
12816         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
12817         * config/s390/s390.opt (config/s390/s390-opts.h): New
12818         HeaderInclude entry.
12819         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
12820         s390_arch_flags, s390_warn_framesize): New Variable entries.
12821         (s390_arch_option): New Enum and EnumValue entries.
12822         (march=): Use Enum instead of Var.
12823         (mstack-guard=, mstack-size=): Use UInteger and Var.
12824         (mtune=): Use Enum.
12826 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12828         * config/score/score.c (score_handle_option): Don't assert that
12829         global structures are in use.  Access target_flags via opts
12830         pointer.  Use value of -march= option to determine target_flags
12831         settings.
12832         * config/score/score.opt (march=): Use Enum.
12833         (score_arch): New Enum and EnumValue entries.
12835 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12837         * config/mep/mep.c (option_mtiny_specified): Remove.
12838         (mep_option_override): Move register handling for -mivc2 from
12839         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
12840         instead of option_mtiny_specified.
12841         (mep_handle_option): Access target_flags via opts pointer.  Don't
12842         assert that global structures are in use.  Defer part of -mivc2
12843         handling and move it to mep_option_override.
12844         * config/mep/mep.opt (IVC2): New Mask entry.
12845         (mivc2): Use Var and Defer instead of Mask.
12847 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12849         * config/v850/v850-opts.h: New.
12850         * config/v850/v850.c (small_memory): Replace with
12851         small_memory_physical_max array.  Make that array static const.
12852         (v850_handle_memory_option): Take integer value of argument.  Take
12853         gcc_options pointer, option text and location.  Return void.
12854         Update for changes to small memory structures.
12855         (v850_handle_option): Access target_flags via opts pointer.  Don't
12856         assert that global structures are in use.  Update calls to
12857         v850_handle_memory_option.
12858         (v850_encode_data_area): Update references to small memory settings.
12859         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
12860         (enum small_memory_type): Move to v850-opts.h.
12861         * config/v850/v850.opt (config/v850/v850-opts.h): New
12862         HeaderInclude entry.
12863         (small_memory_max): New Variable entry.
12864         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
12865         (mtda, mzda): Likewise.
12867 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12869         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
12870         pointer.  Don't assert that global structures are in use.
12872 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12874         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
12875         via opts pointer.  Don't assert that global structures are in use.
12877 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12879         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
12880         (munix=93): Use Var.
12881         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
12882         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
12883         * config/pa/pa-opts.h: New.
12884         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
12885         (pa_handle_option): Don't assert that global structures are in
12886         use.  Access target_flags via opts pointer.  Don't handle
12887         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
12888         OPT_munix_98 here.
12889         (pa_option_override): Handle deferred OPT_mfixed_range_.
12891 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12893         * config/mn10300/mn10300-opts.h: New.
12894         * config/mn10300/mn10300.c (mn10300_processor,
12895         mn10300_tune_string): Remove.
12896         (mn10300_handle_option): Don't assert that global structures are
12897         in use.  Access mn10300_processor via opts pointer.  Don't handle
12898         OPT_mtune_ here.
12899         * config/mn10300/mn10300.h (enum processor_type): Move to
12900         mn10300-opts.h.
12901         (mn10300_processor): Remove.
12902         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
12903         HeaderInclude entry.
12904         (mn10300_processor): New Variable entry.
12905         (mtune=): Use Var.
12907 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12909         * config/microblaze/microblaze.c: Don't include opts.h.
12910         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
12911         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
12912         (mno-clearbss): Use Var and Warn.
12914 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12916         * config/m32r/m32r-opts.h: New.
12917         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
12918         (m32r_handle_option): Don't assert that global structures are in
12919         use.  Access target_flags and m32r_cache_flush_func via opts
12920         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
12921         OPT_mno_flush_trap here.
12922         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
12923         include of m32r-opts.h.
12924         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
12925         HeaderInclude entry.
12926         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
12927         (mmodel=): Use Enum and Var.
12928         (m32r_model): New Enum and EnumValue entries.
12929         (mno-flush-trap): Use Var.
12930         (msdata=): Use Enum and Var.
12931         (m32r_sdata): New Enum and EnumValue entries.
12933 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12935         * config/m32c/m32c.c: Don't include opts.h.
12936         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
12937         m32c_handle_option): Remove.
12938         (m32c_option_override): Check global_options_set.x_target_memregs
12939         instead of target_memregs_set.
12940         * config/m32c/m32c.h (target_memregs): Remove.
12941         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
12942         variable.
12944 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12946         * config/iq2000/iq2000-opts.h: New.
12947         * config/iq2000/iq2000.c: Don't include opts.h.
12948         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
12949         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
12950         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
12951         HeaderInclude entry.
12952         (iq2000_tune): New Variable entry.
12953         (march=): Add comment.  Use Enum.
12954         (iq2000_arch): New Enum and EnumValue entries.
12955         (mcpu=): Use Enum and Var.
12956         (iq2000_tune): New Enum and EnumValue entries.
12958 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12960         * config/ia64/ia64-opts.h: New.
12961         * config/ia64/ia64.c (ia64_tune): Remove.
12962         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
12963         here.  Use error_at.
12964         (ia64_option_override): Handle deferred OPT_mfixed_range_.
12965         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
12966         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
12967         HeaderInclude entry.
12968         (ia64_tune): New Variable entry.
12969         (mfixed-range=): Use Defer and Var.
12970         (mtune=): Use Enum and Var.
12971         (ia64_tune): New Enum and EnumValue entries.
12973 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12975         * config/frv/frv-opts.h: New.
12976         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
12977         frv-opts.h.
12978         (frv_cpu_type): Remove.
12979         * config/frv/frv.c: Don't include opts.h.
12980         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
12981         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
12982         (frv_cpu_type): New Variable entry.
12983         (frv_cpu): New Enum and EnumValue entries.
12985 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12987         * config/cris/cris.c (cris_handle_option): Access target_flags via
12988         opts pointer.  Don't assert that global structures are in use.
12989         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
12990         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
12992 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12994         * config/bfin/bfin-opts.h: New.
12995         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
12996         bfin_si_revision, bfin_workarounds): Remove.
12997         (bfin_cpus): Make static const.
12998         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
12999         not bfin_lib_id_given.
13000         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
13001         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
13002         pointer. Use error_at.  Don't assert that global structures are in use.
13003         * config/bfin/bfin.h: Include bfin-opts.h.
13004         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13005         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13006         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13007         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13008         entries.
13010 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13012         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13013         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13014         or -msoft-float here.
13015         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13016         -msoft-float and -mhard-float.
13017         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
13018         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13019         msoft-float.
13020         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13021         -msoft-float.
13022         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13023         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13024         not mhard-float.
13025         (LIBGCC_SPEC): Don't handle -msoft-float.
13026         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13027         -mhard-float.
13028         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13029         msoft-float.
13030         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13031         -mfloat-abi=*, not -msoft-float and -mhard-float.
13032         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13033         -msoft-float.
13034         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13035         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13036         mhard-float and msoft-float.
13037         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13038         mfloat-abi=soft in comments, not mhard-float and msoft-float.
13039         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13040         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13041         mhard-float.
13042         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13043         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13044         msoft-float.
13045         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13046         not mhard-float.
13047         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13048         not msoft-float.
13050 2011-03-22  Richard Henderson  <rth@redhat.com>
13052         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13053         TARGET_ABI_WINDOWS_NT.
13054         (alpha_output_function_end_prologue): Likewise.
13055         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13056         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13057         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13058         (trap, *movsi_nt_vms): Likewise.
13059         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13060         (*tablejump_osf_nt_internal): Remove.
13061         * config/alpha/predicates.md (input_operand): Only test Pmode.
13063 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13065         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13066         via opts pointer.  Use error_at.  Don't assert that global
13067         structures are in use.
13069 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13071         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13072         (ix86_handle_option): Access ix86_isa_flags and
13073         ix86_isa_flags_explicit via opts pointer.  Don't assert that
13074         global structures are in use.
13075         (ix86_function_specific_save, ix86_function_specific_restore):
13076         Update ix86_isa_flags_explicit field name.
13077         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13078         (ix86_isa_flags_explicit): Rename TargetSave entry to
13079         x_ix86_isa_flags_explicit.
13081 2011-03-22  Richard Henderson  <rth@redhat.com>
13083         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13084         (alpha_option_override, direct_return): Likewise.
13085         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13086         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13087         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13088         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13089         (alpha_expand_epilogue, alpha_end_function): Likewise.
13090         (alpha_init_libfuncs): Likewise.
13091         (struct machine_function): Remove unicosmk members.
13092         (print_operand) ['t']: Remove.
13093         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13094         unicosmk_output_module_name, unicosmk_output_common,
13095         current_section_align, unicosmk_output_text_section_asm_op,
13096         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13097         unicosmk_section_type_flags, unicosmk_unique_section,
13098         unicosmk_asm_named_section, unicosmk_insert_attributes,
13099         unicosmk_output_align, unicosmk_defer_case_vector,
13100         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13101         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13102         unicosmk_output_ssib, unicosmk_add_call_info_word,
13103         unicosmk_extern_head, unicosmk_output_default_externs,
13104         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13105         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13106         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13107         * config/alpha/alpha-protos.h: Update.
13108         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13109         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13110         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13111         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13112         (*mulsi_se, mulvsi3): Likewise.
13113         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13114         (*divmodsi_internal, call, call_value, realign): Likewise.
13115         (moddi3, umoddi3): Likewise; remove duplicate expander.
13116         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13117         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13118         (*movdi_nofix): Remove r/U alternative.
13119         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13120         * config/alpha/constraints.md ("U"): Remove.
13121         * config/alpha/predicates.md (call_operand"): Don't test
13122         TARGET_ABI_UNICOSMK.
13124 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13126         * target.def (handle_option): Take gcc_options and
13127         cl_decoded_option pointers and location_t.
13128         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13129         * doc/tm.texi: Regenerate.
13130         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13131         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13132         * lto-opts.c (lto_reissue_options): Generate option structure for
13133         targetm.handle_option call.
13134         * opts.c (target_handle_option): Update call to
13135         targetm.handle_option.  Remove assertions about values now passed
13136         down to hook.
13137         * targhooks.c (default_target_handle_option): New.
13138         * targhooks.h (default_target_handle_option): Declare.
13139         * config/alpha/alpha.c: Include opts.h.
13140         (alpha_handle_option): Update to new hook interface.
13141         * config/arm/arm.c: Include opts.h.
13142         (arm_handle_option): Update to new hook interface.
13143         * config/arm/t-arm (arm.o): Update dependencies.
13144         * config/bfin/bfin.c: Include opts.h.
13145         (bfin_handle_option): Update to new hook interface.
13146         * config/cris/cris.c: Include opts.h.
13147         (cris_handle_option): Update to new hook interface.
13148         * config/frv/frv.c: Include opts.h.
13149         (frv_handle_option): Update to new hook interface.
13150         * config/i386/i386.c: Include opts.h.
13151         (ix86_handle_option): Update to new hook interface.
13152         (ix86_valid_target_attribute_inner_p): Generate option structure
13153         for call to ix86_handle_option.
13154         * config/i386/t-i386 (i386.o): Update dependencies.
13155         * config/ia64/ia64.c: Include opts.h.
13156         (ia64_handle_option): Update to new hook interface.
13157         * config/ia64/t-ia64 (ia64.o): Update dependencies.
13158         * config/iq2000/iq2000.c: Include opts.h.
13159         (iq2000_handle_option): Update to new hook interface.
13160         * config/m32c/m32c.c: Include opts.h.
13161         (m32c_handle_option): Update to new hook interface.
13162         * config/m32r/m32r.c: Include opts.h.
13163         (m32r_handle_option): Update to new hook interface.
13164         * config/m68k/m68k.c: Include opts.h.
13165         (m68k_handle_option): Update to new hook interface.
13166         * config/mep/mep.c: Include opts.h.
13167         (mep_handle_option): Update to new hook interface.
13168         * config/microblaze/microblaze.c: Include opts.h.
13169         (microblaze_handle_option): Update to new hook interface.
13170         * config/mips/mips.c: Include opts.h.
13171         (mips_handle_option): Update to new hook interface.
13172         * config/mn10300/mn10300.c: Include opts.h.
13173         (mn10300_handle_option): Update to new hook interface.
13174         * config/pa/pa.c: Include opts.h.
13175         (pa_handle_option): Update to new hook interface.
13176         * config/pdp11/pdp11.c: Include opts.h.
13177         (pdp11_handle_option): Update to new hook interface.
13178         * config/rs6000/rs6000.c: Include opts.h.
13179         (rs6000_handle_option): Update to new hook interface.
13180         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13181         * config/rx/rx.c: Include opts.h.
13182         (rx_handle_option): Update to new hook interface.
13183         * config/s390/s390.c: Include opts.h.
13184         (s390_handle_option): Update to new hook interface.
13185         * config/score/score.c: Include opts.h.
13186         (score_handle_option): Update to new hook interface.
13187         * config/sh/sh.c: Include opts.h.
13188         (sh_handle_option): Update to new hook interface.
13189         * config/sparc/sparc.c: Include opts.h.
13190         (sparc_handle_option): Update to new hook interface.
13191         * config/v850/v850.c: Include opts.h.
13192         (v850_handle_option): Update to new hook interface.
13194 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13196         * gcc.c (driver_unknown_option_callback): Only permit and save
13197         unknown -Wno- options.
13198         (driver_wrong_lang_callback): Save options directly instead of via
13199         driver_unknown_option_callback.
13201 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
13203         * combine.c (simplify_set): Try harder to find the best CC mode when
13204         simplifying a nested COMPARE on the RHS.
13206 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13208         * config/alpha/gnu.h: Remove.
13209         * config/arc: Remove directory.
13210         * config/arm/netbsd.h: Remove.
13211         * config/arm/t-pe: Remove.
13212         * config/crx: Remove directory.
13213         * config/i386/netbsd.h: Remove.
13214         * config/m68hc11: Remove directory.
13215         * config/m68k/uclinux-oldabi.h: Remove.
13216         * config/mcore/mcore-pe.h: Remove.
13217         * config/mcore/t-mcore-pe: Remove.
13218         * config/netbsd-aout.h: Remove.
13219         * config/rs6000/gnu.h: Remove.
13220         * config/sh/sh-symbian.h: Remove.
13221         * config/sh/symbian-base.c: Remove.
13222         * config/sh/symbian-c.c: Remove.
13223         * config/sh/symbian-cxx.c: Remove.
13224         * config/sh/symbian-post.h: Remove.
13225         * config/sh/symbian-pre.h: Remove.
13226         * config/sh/t-symbian: Remove.
13227         * config/svr3.h: Remove.
13228         * config/vax/netbsd.h: Remove.
13229         * config.build: Don't handle i[34567]86-*-pe.
13230         * config.gcc: Remove handling of deprecations for most deprecated
13231         targets.
13232         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
13233         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
13234         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
13235         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
13236         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
13237         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
13238         Remove cases.
13239         * config.host: Don't handle i[34567]86-*-pe.
13240         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
13241         (ASM_SPEC32): Don't handle -mcall-gnu.
13242         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
13243         -mcall-gnu.
13244         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
13245         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
13246         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13247         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
13248         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
13249         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
13250         conditional on SYMBIAN.
13251         * configure.ac: Don't handle powerpc*-*-gnu*.
13252         * configure: Regenerate.
13253         * doc/extend.texi (interrupt attribute): Don't mention CRX.
13254         * doc/install-old.texi (m6811, m6812): Don't mention.
13255         * doc/install.texi (arc-*-elf*): Don't document multilib option.
13256         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
13257         (m68k-uclinuxoldabi): Don't mention.
13258         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
13259         Remove.
13260         (-mcall-gnu): Remove.
13261         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
13262         families): Remove constraint documentation.
13264 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
13266         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
13267         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
13268         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
13270 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
13272         PR target/48226
13273         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
13274         vector when peeking at the next token for vector, don't expand the
13275         keywords.
13277 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
13279         * config/avr/avr-protos.h (expand_epilogue): Change prototype
13280         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
13281         * config/avr/avr.c (init_cumulative_args)
13282         (avr_function_arg_advance): Use it.
13283         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
13284         sibcall epilogues.
13285         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
13286         (avr_function_ok_for_sibcall): ...this new function.
13287         (avr_lookup_function_attribute1): New static Function.
13288         (avr_naked_function_p, interrupt_function_p)
13289         (signal_function_p, avr_OS_task_function_p)
13290         (avr_OS_main_function_p): Use it.
13291         * config/avr/avr.md ("sibcall", "sibcall_value")
13292         ("sibcall_epilogue"): New expander.
13293         ("*call_insn", "*call_value_insn"): New insn.
13294         ("call_insn", "call_value_insn"): Remove
13295         ("call", "call_value", "epilogue"): Change expander to handle
13296         sibling calls.
13298 2011-03-21  Nick Clifton  <nickc@redhat.com>
13300         * doc/invoke.texi (Overall Options): Move closing brace to end of
13301         options list.
13302         (Optimization Options): Add missing @gol.
13303         (Directory Options): Likewise.
13304         (i386 and x86-64 Options): Likewise.
13305         (RS6000 and PowerPC Options): Likewise.
13306         (i386 and x86-64 Windows Options): Likewise.
13307         (V850 Options): Add text missing from descriptions.
13309 2011-03-22  Richard Henderson  <rth@redhat.com>
13311         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
13312         (avr_incoming_return_addr_rtx): New.
13313         (emit_push_byte): New.
13314         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
13315         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
13316         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
13317         (emit_pop_byte): New.
13318         (expand_epilogue): Use it.  Pop frame pointer by bytes.
13319         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
13320         (INCOMING_RETURN_ADDR_RTX): New.
13321         (INCOMING_FRAME_SP_OFFSET): New.
13322         (ARG_POINTER_CFA_OFFSET): New.
13323         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
13324         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
13325         (pophi): Remove.
13327         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
13329 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13331         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13332         (FUNCTION_ARG_ADVANCE): Likewise.
13333         * tm.texi.in: Change references to them to hook references.
13334         * tm.texi: Regenerate.
13335         * targhooks.c (default_function_arg): Eliminate check for target
13336         macro.
13337         (default_function_incoming_arg): Likewise.
13338         (default_function_arg_advance): Likewise.
13339         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13340         (function_arg_advance): Likewise.
13341         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13343 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13345         * tree.c (build_call_1): New function.
13346         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
13348 2011-03-22  Richard Guenther  <rguenther@suse.de>
13350         PR tree-optimization/48228
13351         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
13352         for single-arg PHIs.
13354 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
13356         PR rtl-optimization/48143
13357         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
13358         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
13359         sse2_cvtps2pd): Likewise.
13361 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13363         * recog.c (canonicalize_change_group): Use validate_unshare_change.
13365 2011-03-22  Richard Guenther  <rguenther@suse.de>
13367         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
13368         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
13369         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
13370         and REALIGN_LOAD_EXPR.
13371         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
13372         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
13373         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
13374         DOT_PROD_EXPR case ...
13375         (expand_expr_real_2): ... here.
13376         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
13377         and REALIGN_LOAD_EXPR.
13378         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
13379         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
13380         (vect_create_epilog_for_reduction): Likewise.
13381         (vectorizable_reduction): Likewise.
13382         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
13383         * tree-vect-stmts.c (vectorizable_load): Likewise.
13385 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
13387         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
13389 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13391         * config/s390/s390.c (s390_delegitimize_address): Fix offset
13392         handling for PLTOFF/GOTOFF.
13394 2011-03-22  Nick Clifton  <nickc@redhat.com>
13396         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
13397         trailing backslash from the end of the macro definition.
13399 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13401         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
13402         and PLT unspecs.
13404 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
13406         * expr.h (prepare_operand): Move to...
13407         * optabs.h (prepare_operand): ...here and change the insn code
13408         parameter from "int" to "enum insn_code".
13409         (insn_operand_matches): Declare.
13410         * expr.c (init_expr_target): Use insn_operand_matches.
13411         (compress_float_constant): Likewise.
13412         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
13413         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
13414         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
13415         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
13416         Likewise.
13417         (gen_cond_trap): Likewise.
13418         (prepare_operand): Likewise.  Change icode to an insn_code.
13419         (insn_operand_matches): New function.
13420         * reload.c (find_reloads_address_1): Use insn_operand_matches.
13421         * reload1.c (gen_reload): Likewise.
13422         * targhooks.c (default_secondary_reload): Likewise.
13424 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
13426         * config/alpha/alpha.md (unspec): New define_c_enum.
13427         (unspecv): Ditto.
13429 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
13431         PR debug/48214
13432         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
13433         between a call and its CALL_ARG_LOCATION note.
13435 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
13437         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
13439 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
13441         PR c/42544
13442         PR c/48197
13443         * c-common.c (shorten_compare): If primopN is first sign-extended
13444         to opN and then zero-extended to result type, set primopN to opN.
13446 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
13448         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
13449         for barrier handlers.
13451 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
13453         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
13454         UNSPEC constants to be in the unspec enumeration, and redefine
13455         all UNSPECV constants to be in the unspecv enumeration, so that
13456         dumps print which unspec/unspec_volatile this is.
13457         * config/rs6000/vector.md (UNSPEC_*): Ditto.
13458         * config/rs6000/paired.md (UNSPEC_*): Ditto.
13459         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
13460         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
13461         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
13463         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
13464         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
13465         UNSPECV_LWSYNC, since these are used as unspec_volatile.
13466         * config/rs6000/sync.md (isync, lwsync): Ditto.
13468 2011-03-21  Richard Guenther  <rguenther@suse.de>
13470         * params.def (lto-min-partition): Fix typo.
13472 2011-03-21  Richard Guenther  <rguenther@suse.de>
13474         PR c/47939
13475         * c-decl.c (grokdeclarator): Drop to the main variant only
13476         for array types.  Drop flag_gen_aux_info check.
13478 2011-03-21  Richard Guenther  <rguenther@suse.de>
13480         PR translation/47911
13481         * params.def (lto-partitions): Fix typo.
13482         (lto-min-partition): Fix wording.
13484 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
13486         * config/rs6000/t-freebsd: Remove duplication from file.
13488 2011-03-21  Richard Guenther  <rguenther@suse.de>
13490         PR middle-end/47661
13491         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
13493 2011-03-21  Richard Guenther  <rguenther@suse.de>
13495         PR lto/48210
13496         * params.def (lto-partitions): Require at least 1 partition.
13498 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13500         * gthr-solaris.h: Remove.
13501         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
13502         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
13503         (LIB_SPEC): Likewise.
13504         * config/sol2.opt (threads): Remove.
13505         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
13506         (sparc*-*-solaris2*): Likewise.
13507         * configure.ac (enable_threads): Enable solaris support.
13508         * configure: Regenerate.
13509         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
13510         * doc/install.texi (Configuration, --enable-threads=lib): Remove
13511         solaris.
13513 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13515         * config.gcc: Obsolete *-*-solaris2.8*.
13516         * doc/install.texi (Specific, *-*-solaris2*): Document it.
13518 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13520         PR bootstrap/48135
13521         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
13522         reference.  Solaris 8 perl works.
13524 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13526         PR bootstrap/48135
13527         * doc/install.texi (Prerequisites): Move jar etc. up.
13528         Explain support library version requirements.
13530 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13532         PR bootstrap/48135
13533         * doc/install.texi (Prerequisites): Move Perl to build
13534         requirements.  Always necessary on Solaris 2 with Sun ld.
13536 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13538         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
13539         binutils 2.21.
13540         (Specific, i?86-*-solaris2.[89]): Likewise.
13541         (Specific, i?86-*-solaris2.10): Likewise.
13542         (Specific, mips-sgi-irix6): Likewise.
13543         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
13544         Update for binutils 2.21.
13546 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13548         * configure.ac (gcc_cv_lto_plugin): Fix typo.
13549         Allow -fuse-linker-plugin for non-default plugin linker.
13550         * configure: Regenerate.
13552 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
13554         PR bootstrap/48167
13555         * gengtype.c (files_rules): Added rule for cp/parser.h.
13557 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
13559         PR target/48213
13560         * config/s390/s390.c (s390_delegitimize_address): Don't call
13561         lowpart_subreg if orig_x has BLKmode.
13563 2011-03-21  Kai Tietz  <ktietz@redhat.com>
13565         PR target/12171
13566         * doc/plugins.texi: Adjust documentation for plugin register_callback.
13567         * tree.h (attribute_spec): Add new member affects_type_identity.
13568         * attribs.c (empty_attribute_table): Adjust attribute_spec
13569         initializers.
13570         * config/alpha/alpha.c: Likewise.
13571         * config/arc/arc.c: Likewise.
13572         * config/arm/arm.c: Likewise.
13573         * config/avr/avr.c: Likewise.
13574         * config/bfin/bfin.c: Likewise.
13575         * config/crx/crx.c: Likewise.
13576         * config/darwin.h: Likewise.
13577         * config/h8300/h8300.c: Likewise.
13578         * config/i386/cygming.h: Likewise.
13579         * config/i386/i386.c: Likewise.
13580         * config/ia64/ia64.c: Likewise.
13581         * config/m32c/m32c.c: Likewise.
13582         * config/m32r/m32r.c: Likewise.
13583         * config/m68hc11/m68hc11.c: Likewise.
13584         * config/m68k/m68k.c: Likewise.
13585         * config/mcore/mcore.c: Likewise.
13586         * config/mep/mep.c: Likewise.
13587         * config/microblaze/microblaze.c: Likewise.
13588         * config/mips/mips.c: Likewise.
13589         * config/rs6000/rs6000.c: Likewise.
13590         * config/rx/rx.c: Likewise.
13591         * config/sh/sh.c: Likewise.
13592         * config/sol2.h: Likewise.
13593         * config/sparc/sparc.c: Likewise.
13594         * config/spu/spu.c: Likewise.
13595         * config/stormy16/stormy16.c: Likewise.
13596         * config/v850/v850.c: Likewise.
13598 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
13600         * simplify-rtx.c (simplify_binary_operation_1): Handle
13601         (xor (and A B) C) case when B and C are both constants.
13603 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
13605         * tree-dfa.c (add_referenced_var): Fix typo in comment.
13607 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
13609         PR bootstrap/48168
13610         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
13612 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
13614         PR rtl-optimization/48156
13615         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
13616         assume df and df_lr are not NULL.
13618 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13620         PR debug/48023
13621         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
13622         between a call and its CALL_ARG_LOCATION note.
13624 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
13626         PR debug/48178
13627         * config/sh/sh.c (find_barrier): Don't emit a constant pool
13628         between a call and its corresponding CALL_ARG_LOCATION note.
13630 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
13632         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
13633         instead of loop. Use HARD_REGISTER_NUM_P predicate.
13634         * haifa-sched.c (setup_ref_regs): Ditto.
13635         * caller-save.c (add_used_regs_1): Ditto.
13636         * dse.c (look_for_hardregs): Ditto.
13637         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
13638         * sched-rgn.c (check_live_1): Ditto.
13640 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
13642         * c-decl.c (diagnose_mismatched_decls): Give an error for
13643         redefining a typedef with variably modified type.
13645 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
13647         * c-decl.c (grokfield): Don't allow typedefs for structures or
13648         unions with no tag by default.
13649         * doc/extend.texi (Unnamed Fields): Update.
13651 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
13653         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13654         Rewrite using indirect functions.
13655         (lwp_slwpcb): Ditto.
13656         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
13657         (avx_vinsertf128<mode>): Ditto.
13659 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13661         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
13662         unspecs.
13664 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13666         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
13667         splitting between a call and its corresponding CALL_ARG_LOCATION note.
13669 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
13671         PR rtl-optimization/48170
13672         * gcse.c (hoist_code): Remove bogus asserts.
13674 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
13676         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
13677         computation for prologue/epilogue.
13679 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13681         * Makefile.in (check-consistency): Remove.
13683 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
13685         PR debug/48176
13686         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
13687         arange_table_in_use is 0, but either text_section_used or
13688         cold_text_section_used is true.  Don't call it if
13689         !info_section_emitted.
13691 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
13693         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
13694         FUNCTION_VALUE_REGNO_P): Remove.
13695         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
13696         Remove.
13697         * config/avr/avr.c (avr_ret_register): Make static inline.
13698         (avr_function_value_regno_p): New function.
13699         (avr_libcall_value): Make static. Add 'func' argument.
13700         (avr_function_value): Make static. Rename 'func' argument to
13701         'fn_decl_or_type', forward it to avr_libcall_value. Call
13702         avr_ret_register function instead of RET_REGISTER macro.
13703         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13705 2011-03-18  Jason Merrill  <jason@redhat.com>
13707         PR c++/23372
13708         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
13710 2011-03-18  Richard Guenther  <rguenther@suse.de>
13712         * doc/install.texi (--enable-gold): Remove.
13713         (--with-plugin-ld): Document.
13714         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
13716 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
13718         PR middle-end/47790
13719         * expr.c (optimize_bitfield_assignment_op): Revamp to work
13720         again after expansion changes.
13722 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
13724         * combine.c (try_combine): Do simplification only call of
13725         subst() on i2 even when i1 is present. Update comments.
13727 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
13729         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
13730         and UNSPEC_PCREL_SYMOFF.
13732 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13734         * config/s390/s390.md: Use define_c_enum for the unspec constant
13735         definitions.
13737 2011-03-18  Richard Henderson  <rth@redhat.com>
13738             Jakub Jelinek  <jakub@redhat.com>
13740         PR bootstrap/48161
13741         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
13742         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
13744 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
13746         PR middle-end/47725
13747         * combine.c (cant_combine_insn_p): Don't check zero/sign
13748         extended hard registers.
13750 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
13752         PR middle-end/47725
13753         * combine.c (cant_combine_insn_p): Check zero/sign extended
13754         hard registers.
13756 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
13758         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13759         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
13760         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
13761         Change return type to bool.
13762         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13764 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
13766         PR debug/48163
13767         * var-tracking.c (prepare_call_arguments): If CALL target
13768         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
13769         pc instead of looking it up using cselib_lookup and use
13770         Pmode for it if x has VOIDmode.
13771         * dwarf2out.c (gen_subprogram_die): If also both first and
13772         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
13774         PR debug/48163
13775         * function.c (assign_parms): For data.passed_pointer parms
13776         use MEM of data.entry_parm instead of data.entry_parm itself
13777         as DECL_INCOMING_RTL.
13778         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
13779         also when passed and declared mode is the same, DECL_RTL
13780         is a MEM with pseudo as address and DECL_INCOMING_RTL is
13781         a MEM too.
13783 2011-03-16  Jeff Law  <law@redhat.com>
13785         PR rtl-optimization/37273
13786         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13787         handle them like argument loads from stack slots.  Do not double
13788         count memory for memory constants and argument loads from stack slots.
13790 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
13792         PR debug/48160
13793         * var-tracking.c (prepare_call_arguments): Check SUBREG.
13795 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
13797         PR target/48171
13798         * config/i386/i386.opt: Add Save to -mavx and -mfma.
13800 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
13802         PR bootstrap/48153
13803         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
13804         if dwarf_strict.
13805         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
13806         Clear call_arg_locations and call_arg_loc_last always.
13808         PR middle-end/48152
13809         * var-tracking.c (prepare_call_arguments): If argument needs to be
13810         passed by reference, adjust argtype and mode.
13812 2011-03-17  Richard Guenther  <rguenther@suse.de>
13814         PR middle-end/48134
13815         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
13816         a value make sure to fold the statement.
13818 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
13820         PR target/43872
13821         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
13822         return condition with !cfun->calls_alloca.
13824 2011-03-17  Richard Guenther  <rguenther@suse.de>
13826         PR bootstrap/48148
13827         * lto-cgraph.c (input_overwrite_node): Clear the abstract
13828         origin for decls in other ltrans units.
13829         (input_varpool_node): Likewise.
13831 2011-03-17  Richard Guenther  <rguenther@suse.de>
13833         PR middle-end/48165
13834         * tree-object-size.c (compute_object_offset): Properly return
13835         the offset operand of MEM_REFs as sizetype.
13837 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
13839         PR rtl-optimization/48141
13840         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
13841         * dse.c: Include params.h.
13842         (active_local_stores_len): New variable.
13843         (add_wild_read, dse_step1): Clear it when setting active_local_stores
13844         to NULL.
13845         (record_store, check_mem_read_rtx): Decrease it when removing
13846         from the chain.
13847         (scan_insn): Likewise.  Increase it when adding to chain, if it
13848         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
13849         set active_local_stores to NULL before the addition.
13850         * Makefile.in (dse.o): Depend on $(PARAMS_H).
13852         PR rtl-optimization/48141
13853         * dse.c (record_store): If no positions are needed in an insn
13854         that cannot be deleted, at least unchain it from active_local_stores.
13856 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
13858         PR debug/47510
13859         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
13860         (lookup_type_die_strip_naming_typedef): ... here.
13861         (get_context_die): Use it.
13862         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
13863         the anonymous struct named by the naming typedef.
13865 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
13867         PR target/48154
13868         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
13869         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13871 2011-03-16  Jeff Law  <law@redhat.com>
13873         * tree-vrp.c (identify_jump_threads): Slightly simplify type
13874         check for operands of conditional.  Allow type to be a pointer.
13876 2011-03-16  Richard Guenther  <rguenther@suse.de>
13878         PR tree-optimization/48149
13879         * fold-const.c (fold_binary_loc): Fold
13880         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
13882 2011-03-16  Richard Guenther  <rguenther@suse.de>
13884         PR tree-optimization/26134
13885         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
13886         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
13887         (non_rewritable_mem_ref_base): Handle complex type component
13888         accesses, constrain offsets for vector and complex extracts
13889         more properly.
13891 2011-03-16  Richard Guenther  <rguenther@suse.de>
13893         PR tree-optimization/48146
13894         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
13895         operands avoiding the need for renaming.
13897 2011-03-16  Richard Guenther  <rguenther@suse.de>
13899         * gimple-fold.c (maybe_fold_reference): Open-code relevant
13900         constant folding.  Move MEM_REF canonicalization first.
13901         Rely on fold_const_aggregate_ref for initializer folding.
13902         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
13904 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
13906         PR middle-end/48136
13907         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13908         arg0/arg1 or their arguments are always fold converted to matching
13909         types.
13911         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
13912         to nargs.
13914 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13916         PR lto/46944
13917         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
13918         Handle in-tree gold.
13919         (ld_vers): Extract binutils version for gold.
13920         (gcc_cv_ld_hidden): Handle gold here.
13921         (gcc_cv_lto_plugin): Determine level of linker plugin support.
13922         * configure: Regenerate.
13923         * config.in: Regenerate.
13924         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
13925         -fuse-linker-plugin otherwise.
13926         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
13927         (LINK_COMMAND_SPEC): Use it.
13928         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
13930 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
13932         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
13933         * calls.c: Remove debug.h include.
13934         (emit_call_1): Don't call virtual_call_token debug hook.
13935         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
13936         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
13937         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
13938         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
13939         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
13940         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
13941         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
13942         dwarf2out_virtual_call): Remove.
13943         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
13944         copy_call_info and virtual_call hooks.
13945         (dwarf2out_init): Don't initialize vcall_insn_table,
13946         debug_dcall_section and debug_vcall_section.
13947         (prune_unused_types): Don't mark nodes from dcall_table.
13948         (dwarf2out_finish): Don't output dcall or vcall tables.
13949         * final.c (final_scan_insn): Don't call direct_call or
13950         virtual_call debug hooks.
13951         * debug.h (struct gcc_debug_hooks): Remove direct_call,
13952         virtual_call_token, copy_call_info and virtual_call hooks.
13953         (debug_nothing_uid): Remove prototype.
13954         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
13955         copy_call_info and virtual_call hooks.
13956         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13957         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
13958         * debug.c (do_nothing_debug_hooks): Likewise.
13959         (debug_nothing_uid): Remove.
13960         * doc/invoke.texi (-fenable-icf-debug): Remove.
13961         * common.opt (-fenable-icf-debug): Likewise.
13963         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
13964         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
13965         call's MEM.  Handle functions returning aggregate through a hidden
13966         first pointer.  For virtual calls add clobbered pc to call arguments
13967         chain.
13968         * dwarf2out.c (gen_subprogram_die): Emit
13969         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
13970         can't be emitted.
13972         PR debug/45882
13973         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
13974         * rtl.h (ENTRY_VALUE_EXP): Define.
13975         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
13976         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
13977         * print-rtl.c (print_rtx): Likewise.
13978         * gengtype.c (adjust_field_rtx_def): Likewise.
13979         * var-tracking.c (vt_add_function_parameter): Adjust
13980         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
13981         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
13982         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
13983         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
13984         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
13986         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
13987         Call var_location debug hook even on CALL_INSNs.
13988         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
13989         * rtl.def (ENTRY_VALUE): New.
13990         * dwarf2out.c: Include cfglayout.h.
13991         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13992         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
13993         (struct call_arg_loc_node): New type.
13994         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
13995         tail_call_site_count): New variables.
13996         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
13997         DW_TAG_GNU_call_site_parameter.
13998         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
13999         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14000         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14001         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14002         and DW_AT_GNU_all_source_call_sites.
14003         (mem_loc_descriptor): Handle ENTRY_VALUE.
14004         (add_src_coords_attributes): Don't add enything if
14005         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14006         (dwarf2out_abstract_function): Save and clear call_arg_location,
14007         call_site_count and tail_call_site_count around dwarf2out_decl call.
14008         (gen_call_site_die): New function.
14009         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14010         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14011         (dwarf2out_function_decl): Clear call_arg_locations,
14012         call_arg_loc_last, set call_site_count and tail_call_site_count
14013         to -1 and free block_map.
14014         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14015         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
14016         followed by any real instructions.
14017         (dwarf2out_begin_function): Set call_site_count and
14018         tail_call_site_count to 0.
14019         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14020         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14021         attempt to force a DIE for it and worst case remove the attribute.
14022         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14023         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14024         the decl itself.
14025         * var-tracking.c: Include tm_p.h.
14026         (vt_stack_adjustments): For calls call note_register_arguments.
14027         (argument_reg_set): New variable.
14028         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14029         ensure the VALUE is resolved.
14030         (call_arguments): New variable.
14031         (prepare_call_arguments): New function.
14032         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14033         (struct expand_loc_callback_data): Add ignore_cur_loc field.
14034         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14035         always use the best expression.
14036         (vt_expand_loc): Add ignore_cur_loc argument.
14037         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14038         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14039         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14040         note for all calls.
14041         (vt_add_function_parameter): Use cselib_lookup_from_insn.
14042         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14043         argument.  Don't call cselib_preserve_only_values and
14044         cselib_reset_table.
14045         (note_register_arguments): New function.
14046         (vt_initialize): Compute argument_reg_set.  Call
14047         vt_add_function_parameters before processing basic blocks instead of
14048         afterwards.  For calls call prepare_call_arguments before calling
14049         cselib_process_insn.
14050         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14051         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14052         (var-tracking.o): Depend on $(TM_P_H).
14053         * cfglayout.h (insn_scope): New prototype.
14054         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14055         * cfglayout.c (insn_scope): No longer static.
14056         * insn-notes.def (CALL_ARG_LOCATION): New.
14057         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14058         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14059         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14060         nothing for DECL_EXTERNAL BLOCK_VARS.
14062 2011-03-16  Alan Modra  <amodra@gmail.com>
14064         PR target/45844
14065         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14066         create invalid offset address for vsx splat insn.
14067         * config/rs6000/predicates.md (splat_input_operand): New.
14068         * config/rs6000/vsx.md (vsx_splat_*): Use it.
14070 2011-03-15  Xinliang David Li  <davidxl@google.com>
14072         PR c/47837
14073         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14074         (normalize_preds): New function.
14075         (is_use_properly_guarded): Normalize def predicates.
14077 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14079         PR target/46788
14080         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14081         in the output template.
14083 2011-03-15  Richard Guenther  <rguenther@suse.de>
14085         PR middle-end/47650
14086         * tree-pretty-print.c (dump_function_declaration): Properly
14087         dump unprototyped and varargs function types.
14089 2011-03-15  Richard Guenther  <rguenther@suse.de>
14091         PR tree-optimization/13954
14092         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14093         and friends.
14095 2011-03-15  Richard Guenther  <rguenther@suse.de>
14097         PR tree-optimization/48037
14098         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14099         selects into BIT_FIELD_REFs.
14100         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14101         vector select.
14103 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
14105         PR tree-optimization/48129
14106         * builtins.c (fold_builtin_snprintf): Convert to type of
14107         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14108         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14110 2011-03-15  Richard Guenther  <rguenther@suse.de>
14112         PR tree-optimization/41490
14113         * tree-ssa-dce.c (propagate_necessity): Handle returns without
14114         value but with VUSE.
14115         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14116         return statements.
14117         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14118         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14119         * tree-tailcall.c (find_tail_calls): Ignore returns.
14121 2011-03-15  Richard Guenther  <rguenther@suse.de>
14123         PR middle-end/48031
14124         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14125         or variable-indexed array accesses when in gimple form.
14127 2011-03-15  Richard Guenther  <rguenther@suse.de>
14129         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
14131 2011-03-15  Alan Modra  <amodra@gmail.com>
14133         PR target/48032
14134         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14135         presume symbol_refs without a symbol_ref_decl are suitably
14136         aligned, nor other trees we may see here.  Handle anchor symbols.
14137         (legitimate_constant_pool_address_p): Comment.  Add mode param.
14138         Check cmodel=medium addresses.  Adjust all calls.
14139         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14140         creating cmodel=medium optimized access to locals.
14141         * config/rs6000/constraints.md (R): Pass QImode to
14142         legitimate_constant_pool_address_p.
14143         * config/rs6000/predicates.md (input_operand): Pass mode to
14144         legitimate_constant_pool_address_p.
14145         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14146         Update prototype.
14148 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
14150         PR target/48053
14151         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14152         64-bit constants being loaded into registers other than GPRs such
14153         as loading 0 into a VSX register.
14155 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14157         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
14159 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
14161         PR middle-end/47917
14162         * builtins.c (fold_builtin_snprintf): New function.
14163         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14164         (fold_builtin_4): Likewise.
14166         PR middle-end/38878
14167         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14168         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
14169         and C - X == X also strip nops from +/-/p+ operand.
14170         When optimizing -X == C, fold C to arg0's type.
14172         PR debug/47946
14173         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14174         emit it as add_AT_int instead of add_AT_unsigned.
14176 2011-03-14  Tom Tromey  <tromey@redhat.com>
14178         * unwind-dw2.c: Include sys/sdt.h if it exists.
14179         (_Unwind_DebugHook): Use STAP_PROBE2.
14180         * config.in, configure: Rebuild.
14181         * configure.ac: Check for sys/sdt.h.
14183 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
14185         * config/i386/i386.md (ROUND_FLOOR): New constant.
14186         (ROUND_CEIL): Ditto.
14187         (ROUND_TRUNC): Ditto.
14188         (ROUND_MXCSR): Ditto.
14189         (ROUND_NO_EXC): Ditto.
14190         (rint<mode>2): Use new defines instead of numerical constants.
14191         (floor<mode>2): Ditto.
14192         (ceil<mode>2): Ditto.
14193         (btrunc<mode>2): Ditto.
14194         * config/i386/i386-builtin-types.def: Define ROUND function type
14195         aliases.
14196         * config/i386/i386.c (enum ix86_builtins): Add
14197         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14198         (struct builtin_description): Add
14199         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14200         (ix86_expand_sse_round): New static function.
14201         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14202         function types.
14203         (ix86_builtin_vectorized_function): Handle
14204         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14206 2011-03-14  Tom Tromey  <tromey@redhat.com>
14208         * c-parser.c (c_parser_asm_string_literal): Clear
14209         warn_overlength_strings.
14211 2011-03-14  Tom Tromey  <tromey@redhat.com>
14213         * c-parser.c (disable_extension_diagnostics): Save
14214         warn_overlength_strings.
14215         (restore_extension_diagnostics): Restore warn_overlength_strings.
14217 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
14219         * BASE-VER: Change to 4.7.0.
14221 2011-03-14  Richard Guenther  <rguenther@suse.de>
14223         PR middle-end/48098
14224         * tree.c (build_vector_from_val): Adjust assert to requirements
14225         and reality.
14227 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
14229         PR bootstrap/48102
14230         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
14232 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
14234         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
14235         terms of target_flags_explicit. Adjust copyright year.
14237         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
14238         * config/rs6000/t-freebsd: New file. Add override for
14239         LIB2FUNCS_EXTRA.
14241 2011-03-13  Chris Demetriou  <cgd@google.com>
14243         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
14244         (-fno-diagnostics-show-option): this, to reflect current default.
14245         (-Werror=): Update text about -fno-diagnostics-show-option.
14247 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
14249         PR target/48053
14250         * config/rs6000/predicates.md (easy_vector_constant_add_self,
14251         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
14252         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
14253         mode is not V2DImode or V2DFmode.
14254         (vspltis_constant): Do not handle V2DImode and V2DFmode.
14255         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
14256         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
14257         registers to 0.
14258         (movdi_internal64): Likewise.
14260 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
14262         PR tree-optimization/47127
14263         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
14264         parameter.
14265         (set_cloog_options): Same.
14266         (scop_to_clast): Same.
14267         (print_clast_stmt): Do not call cloog_state_malloc and
14268         cloog_state_free.
14269         (print_generated_program): Same.
14270         (gloog): Same.
14271         * graphite-clast-to-gimple.h (cloog_state): Declared.
14272         (scop_to_clast): Adjust declaration.
14273         * graphite.c (cloog_state): Defined here.
14274         (graphite_initialize): Call cloog_state_malloc.
14275         (graphite_finalize): Call cloog_state_free.
14277 2011-03-11  Jason Merrill  <jason@redhat.com>
14279         * attribs.c (lookup_attribute_spec): Take const_tree.
14280         * tree.h: Adjust.
14282 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
14284         * config/sparc/sparc.c (sparc_option_override): Use
14285         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
14287 2011-03-11  Richard Guenther  <rguenther@suse.de>
14289         PR tree-optimization/48067
14290         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
14291         multiplication result will be only used once on the target
14292         stmt.
14294 2011-03-11  Richard Guenther  <rguenther@suse.de>
14296         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
14298 2011-03-11  Richard Guenther  <rguenther@suse.de>
14300         PR lto/48073
14301         * tree.c (find_decls_types_r): Do not walk types only reachable
14302         from IDENTIFIER_NODEs.
14304 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
14306         PR middle-end/48044
14307         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
14308         all vnode->force_output nodes as needed.
14310 2011-03-11  Jason Merrill  <jason@redhat.com>
14312         PR c++/48069
14313         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
14314         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
14316 2011-03-11  Martin Jambor  <mjambor@suse.cz>
14318         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
14319         cgraph_node.
14321 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
14323         PR tree-optimization/48063
14324         * ipa-inline.c (cgraph_decide_inlining): Don't try to
14325         inline functions called once if !tree_can_inline_p (node->callers).
14327 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
14329         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
14330         extra_objs.
14331         * config/score/score3.c: Delete.
14332         * config/score/score3.h: Delete.
14333         * config/score/mul-div.S: Delete.
14334         * config/score/sfp-machine.h: Add new file.
14335         * config/score/constraints.md: Add new file.
14336         * config/score/t-score-softfp: Add new file.
14337         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
14338         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
14339         (score7_extra_constraint): Delete.
14340         (score7_option_override): Remove unused code.
14341         * config/score/score.c: Remove score3 and score5 define and code.
14342         * config/score/score.h: Remove score3 and score5 define and code.
14343         * config/score/score.md: Remove score3 template and unusual insn.
14344         * config/score/score.opt: Remove score3 and score5 options.
14346 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14348         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
14349         when _HPUX_SOURCE is defined.
14350         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
14352 2011-03-10  Jason Merrill  <jason@redhat.com>
14354         PR c++/48029
14355         * stor-layout.c (layout_type): Don't set structural equality
14356         on arrays of incomplete type.
14357         * tree.c (type_hash_eq): Handle comparing them properly.
14359 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
14361         PR debug/48043
14362         * config/s390/s390.c (s390_delegitimize_address): Make sure the
14363         result mode matches original rtl mode.
14365 2011-03-10  Nick Clifton  <nickc@redhat.com>
14367         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
14368         (andsi3, andsi3_flags): Fix timings for three operand alternative.
14370 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
14372         PR rtl-optimization/47866
14373         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
14374         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
14375         if target wasn't scalar.
14376         * function.c (assign_stack_temp_for_type): Assert that neither
14377         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
14378         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
14379         macro.
14380         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
14382 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14384         * config/s390/s390-protos.h (s390_label_align): New prototype.
14385         * config/s390/s390.c (s390_label_align): New function.
14386         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
14388 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
14390         PR target/47755
14391         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
14392         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
14393         (output_vec_const_move): Ditto.
14395 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
14397         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
14398         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
14399         * config/mips/mips.c (mips_preferred_reload_class): Make static.
14400         Change 'rclass' argument and result type to reg_class_t.
14401         (TARGET_PREFERRED_RELOAD_CLASS): Define.
14403 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
14405         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14406         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
14407         (TARGET_MEMORY_MOVE_COST): Define.
14408         (avr_register_move_cost, avr_memory_move_cost): New Functions.
14410 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
14412         PR debug/47881
14413         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
14414         removed anything.
14416         PR tree-optimization/48022
14417         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
14418         for EQ/NE_EXPR.
14420 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
14422         PR debug/47991
14423         * var-tracking.c (find_use_val): Return NULL for
14424         cui->sets && cui->store_p BLKmode MEMs.
14426 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
14428         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
14429         Remove.
14430         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
14431         xstormy16_print_operand_address): Remove.
14432         * config/stormy16/stormy16.c (xstormy16_print_operand,
14433         xstormy16_print_operand_address): Make static.
14434         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14436 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
14438         PR target/47862
14439         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
14440         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
14441         before definition.
14443 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
14445         PR bootstrap/48000
14446         * cfgloopmanip.c (fix_bb_placements): Return immediately
14447         if FROM is BASE_LOOP's header.
14449 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
14451         * gimplify.c (gimplify_function_tree): Fix building calls
14452         to __builtin_return_address.
14454 2011-03-07  Alan Modra  <amodra@gmail.com>
14456         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
14457         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
14458         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
14459         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
14460         return_mode args.
14461         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
14462         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
14463         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
14464         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
14465         * config/rs6000/rs6000.c
14466         (rs6000_elf_end_indicate_exec_stack): Rename to..
14467         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
14468         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
14469         (rs6000_file_start): ..here.
14470         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
14471         file scope variables.
14472         (call_ABI_of_interest): New function.
14473         (init_cumulative_args): Set above vars when function return value
14474         is a float, vector, or small struct.
14475         (rs6000_function_arg_advance_1): Likewise for function args.
14476         (rs6000_va_start): Set rs6000_passes_float if variable arg function
14477         references float args.
14479 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
14481         * doc/cfg.texi: Remove "See" before @ref.
14482         * doc/invoke.texi: Likewise.
14484 2011-03-05  Jason Merrill  <jason@redhat.com>
14486         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
14488 2011-03-05  Anthony Green  <green@moxielogic.com>
14490         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
14492 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
14494         PR rtl-optimization/47899
14495         * cfgloopmanip.c (fix_bb_placements): Fix first argument
14496         to flow_loop_nested_p when moving the loop upward.
14498 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
14500         PR target/47719
14501         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
14503 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
14505         PR tree-optimization/47967
14506         * ipa-cp.c (build_const_val): Return NULL instead of creating
14507         VIEW_CONVERT_EXPR for mismatching sizes.
14508         (ipcp_create_replace_map): Return NULL if build_const_val failed.
14509         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
14510         give up on versioning.
14512 2011-03-05  Alan Modra  <amodra@gmail.com>
14514         PR target/47986
14515         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14516         full cmodel medium/large lo_sum + high addresses.
14518 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14520         * config/s390/s390.c (s390_decompose_address): Reject non-literal
14521         pool references in UNSPEC_LTREL_OFFSET.
14523 2011-03-04  Jan Hubicka  <jh@suse.cz>
14525         PR lto/47497
14526         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
14527         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
14528         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
14529         Add node pointers.
14530         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
14531         cgraph_add_thunk): Add node pointers.
14532         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
14533         associated to right node.
14534         (input_node): Update use of cgraph_same_body_alias
14535         and cgraph_add_thunk.
14537 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
14539         * config/i386/i386.opt (mprefer-avx128): New flag.
14540         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
14541         modes when the flag -mprefer-avx128 is on.
14543 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
14545         * dwarf2out.c (compare_loc_operands): Fix address handling.
14547 2011-03-04  Alan Modra  <amodra@gmail.com>
14549         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
14551 2011-03-04  Richard Guenther  <rguenther@suse.de>
14553         PR middle-end/47968
14554         * expmed.c (extract_bit_field_1): Prefer vector modes that
14555         vec_extract patterns can handle.
14557 2011-03-04  Richard Guenther  <rguenther@suse.de>
14559         PR middle-end/47975
14560         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
14562 2011-03-04  Richard Henderson  <rth@redhat.com>
14564         * explow.c (emit_stack_save): Remove 'after' parameter.
14565         (emit_stack_restore): Likewise.
14566         * expr.h: Update to match.
14567         * builtins.c, calls.c, stmt.c: Likewise.
14568         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
14569         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
14570         * function.c (expand_function_end): Insert the emit_stack_save
14571         sequence before parm_birth_insn instead of after.
14573 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
14575         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
14576         (ssse3_pmaddubsw128): Ditto.
14577         (ssse3_pmaddubsw): Ditto.
14579 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
14581         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
14583 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
14585         PR c/47963
14586         * gimplify.c (omp_add_variable): Only call omp_notice_variable
14587         on TYPE_SIZE_UNIT if it is a DECL.
14589         PR debug/47283
14590         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
14591         first operand is not is_gimple_mem_ref_addr, try to fold it.
14592         If the operand still isn't is_gimple_mem_ref_addr, clear
14593         MEM_EXPR on op0.
14595 2011-03-03  Richard Guenther  <rguenther@suse.de>
14597         PR middle-end/47283
14598         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
14599         match comment.
14600         (refs_may_alias_p_1): For release branches return true if
14601         we are confused by our input.
14603 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14605         * config/s390/s390.c (s390_function_value): Rename to ...
14606         (s390_function_and_libcall_value): ... this.
14607         (s390_function_value): New function.
14608         (s390_libcall_value): New function.
14609         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
14610         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
14611         target macro definitions.
14612         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
14614 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
14616         * config/i386/freebsd64.h (CC1_SPEC): Define.
14617         * config/i386/linux64.h (CC1_SPEC): Define.
14618         * config/i386/x86-64.h (CC1_SPEC): Don't define.
14620 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
14622         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14623         Remove.
14624         * config/stormy16/stormy16.c: Include reload.h.
14625         (xstormy16_memory_move_cost): New function.
14626         (TARGET_MEMORY_MOVE_COST): Define.
14628 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
14630         PR rtl-optimization/47925
14631         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
14632         with side effects.  Remove the more-specific check for volatile asms.
14634 2011-03-02  Alan Modra  <amodra@gmail.com>
14636         PR target/47935
14637         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
14638         toc relative addresses for valid offsets.
14640 2011-03-01  Richard Guenther  <rguenther@suse.de>
14642         PR tree-optimization/47890
14643         * tree-vect-loop.c (get_initial_def_for_induction): Set
14644         related stmt properly.
14646 2011-03-01  Richard Guenther  <rguenther@suse.de>
14648         PR lto/47924
14649         * lto-streamer.c (lto_record_common_node): Also register
14650         the canonical type.
14652 2011-03-01  Richard Guenther  <rguenther@suse.de>
14654         PR lto/46911
14655         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14656         Do not stream DECL_ABSTRACT_ORIGIN.
14657         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14658         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14659         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14660         Do not stream DECL_ABSTRACT_ORIGIN.
14661         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14662         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14664 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
14666         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
14667         FUNCTION_VALUE_REGNO_P): Remove.
14668         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
14669         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
14670         Add 'outgoing' argument.
14671         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
14672         function.
14673         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14674         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14676 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
14678         PR debug/28047
14679         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
14680         (lookup_filename): Likewise.
14681         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
14683 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
14684             Jakub Jelinek  <jakub@redhat.com>
14686         PR middle-end/47893
14687         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
14688         (assign_stack_local_1): Change last argument type to int.
14689         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
14690         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
14691         don't record padding space into frame_space_list nor use those areas.
14692         (assign_stack_local): Adjust caller.
14693         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
14694         of assign_stack_local, pass 0 as last argument.
14695         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
14696         callers.
14698 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
14700         PR debug/47283
14701         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
14702         Use target address_mode and pointer_mode hooks instead of hardcoded
14703         Pmode and ptr_mode.  Handle some simple cases of extending if
14704         POINTERS_EXTEND_UNSIGNED < 0.
14705         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
14706         Call convert_debug_memory_address.
14707         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
14708         convert_debug_memory_address.
14710         PR middle-end/46790
14711         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
14712         * configure: Regenerated.
14713         * config.in: Regenerated.
14714         * varasm.c (default_function_section): Return NULL
14715         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
14717 2011-02-28  Martin Jambor  <mjambor@suse.cz>
14719         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
14720         the description to match the printed values.
14722 2011-02-28  Richard Guenther  <rguenther@suse.de>
14724         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
14725         of the copied scope tree.
14727 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14729         * doc/extend.texi (Function Attributes): Avoid deeply (and
14730         wrongly) nested tables.
14732 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
14734         PR middle-end/47903
14735         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
14736         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
14737         r isn't op0 nor op1.
14739 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
14741         * config/avr/avr.md: Remove magic comment for emacs.
14743 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
14745         PR target/45261
14746         * config/avr/avr.c (avr_option_override): Use error on bad options.
14747         (avr_help): New function.
14748         (TARGET_HELP): Define.
14750 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
14752         PR target/42240
14753         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
14754         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
14756 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
14758         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
14759         (ARM Options): Ditto.
14760         (i386 and x86-64 Options): Ditto.
14761         (RX Options): Ditto.
14762         (SPARC Options): Ditto.
14764 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
14766         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
14767         FreeBSD 6 and later.  Generally use cpu generic.
14769 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
14771         * doc/cpp.texi: Update copyright years.
14773 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
14775         PR target/46898
14776         * config/lm32/lm32.md (ashrsi3): Added needed variable.
14778 2011-02-25  Jon Beniston  <jon@beniston.com>
14780         PR target/46898
14781         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
14782         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
14783         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
14784         (lm32_block_move_inline): Add type cast to remove warning.
14785         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
14786         (gen_int_relational): Move declarations to start of function.
14788 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
14790         PR tree-optimization/45470
14791         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
14792         can throw internally only.
14793         * tree-vect-stmts.c (vectorizable_call): Likewise.
14795 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
14797         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
14798         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14799         * config/stormy16/stormy16-protos.h
14800         (xstormy16_preferred_reload_class): Remove.
14801         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
14802         static. Change 'rclass' argument and return type to reg_class_t.
14803         (TARGET_PREFERRED_RELOAD_CLASS,
14804         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14806 2011-02-24  Richard Guenther  <rguenther@suse.de>
14808         * lto-streamer-in.c (input_bb): Do not find referenced vars
14809         in debug statements.
14811 2011-02-23  Jason Merrill  <jason@redhat.com>
14813         * common.opt (fabi-version): Document v5 and v6.
14815 2011-02-23  Richard Guenther  <rguenther@suse.de>
14817         PR tree-optimization/47849
14818         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
14820 2011-02-23  Jie Zhang  <jie@codesourcery.com>
14822         * opts-common.c (decode_cmdline_option): Print empty string
14823         argument as "" in decoded->orig_option_with_args_text.
14824         * gcc.c (execute): Print empty string argument as ""
14825         in the verbose output.
14826         (do_spec_1): Keep empty string argument.
14828 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
14830         * config.gcc: Declare score-* and crx-* obsolete.
14832 2011-02-23  Jie Zhang  <jie@codesourcery.com>
14834         PR rtl-optimization/47763
14835         * web.c (web_main): Ignore naked clobber when replacing register.
14837 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
14839         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14840         Remove.
14842 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
14844         PR doc/47848
14845         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
14847 2011-02-22  Mike Stump  <mikestump@comcast.net>
14849         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
14850         assembler.
14851         * configure: Regenerate.
14853 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
14855         PR rtl-optimization/46002
14856         * ira-color.c (update_copy_costs): Change class intersection
14857         test to reg_class_contents[] test of 'hard_regno'.
14859 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
14861         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
14862         than Driver option.
14863         * config/hpux11.opt (mt): Likewise.
14864         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
14865         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
14866         * config/vax/elf.opt (mno-asm-pic): Likewise.
14867         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
14869 2011-02-21  Mike Stump  <mikestump@comcast.net>
14871         PR target/47822
14872         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
14873         tree so we can get save the type.
14874         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
14875         for CFString instead of trying to use past the end of the builtins.
14876         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
14877         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
14878         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
14879         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
14880         Rename to darwin_builtin_cfstring.
14881         (darwin_init_cfstring_builtins): Return the built type.
14883 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
14885         PR target/47840
14886         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
14887         (_mm256_insert_epi64): Use _mm_insert_epi64.
14889 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
14891         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14892         * config/stormy16/stormy16-protos.h
14893         (xstormy16_mode_dependent_address_p): Remove.
14894         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
14895         Make static. Change return type to bool. Change argument type to
14896         const_rtx. Remove dead code.
14897         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14899 2011-02-21  Richard Guenther  <rguenther@suse.de>
14901         PR lto/47820
14902         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14903         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14904         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
14905         TUs context.
14906         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14907         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14909 2011-02-20  Richard Guenther  <rguenther@suse.de>
14911         PR lto/47822
14912         * tree.c (free_lang_data_in_decl): Clean builtins from
14913         the TU decl BLOCK_VARS.
14915 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
14917         PR debug/47620
14918         PR debug/47630
14919         * haifa-sched.c (fix_tick_ready): Skip tick computation
14920         for debug insns.
14922 2011-02-19  Richard Guenther  <rguenther@suse.de>
14924         PR lto/47647
14925         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
14926         Remove lazy BLOCK_VARS streaming.
14927         (lto_input_ts_block_tree_pointers): Likewise.
14928         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
14930 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
14932         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
14934 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
14936         * config/i386/biarch32.h, config/i386/mach.h,
14937         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
14939 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
14941         PR target/47800
14942         * config/i386/i386.md (peephole2 for shift and plus): Use
14943         operands[1] original mode in the first insn.
14945 2011-02-18  Mike Stump  <mikestump@comcast.net>
14947         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
14949 2011-02-18  Jan Hubicka  <jh@suse.cz>
14951         PR middle-end/47788
14952         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
14953         to zero when the function is not inlinable at all.
14955 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14957         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
14958         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14959         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
14960         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
14961         * config/pa/t-pa64: Likewise.
14962         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14964 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
14966         PR driver/47787
14967         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
14969 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14971         PR target/47792
14972         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
14974 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
14976         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14977         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
14978         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
14979         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14980         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
14981         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
14982         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
14983         m32r_load_postinc_p, m32r_store_preinc_predec_p,
14984         m32r_legitimate_address_p): New functions.
14985         * config/m32r/constraints.md (constraint "S"): Don't use
14986         STORE_PREINC_PREDEC_P.
14987         (constraint "U"): Don't use LOAD_POSTINC_P.
14989 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
14991         PR rtl-optimization/46178
14992         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
14993         compute ira_hard_regno_cover_class[].
14995 2011-02-18  Richard Guenther  <rguenther@suse.de>
14997         PR lto/47798
14998         * lto-streamer.h (lto_global_var_decls): Declare.
14999         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15000         statics for global var processing.
15002 2011-02-18  Richard Guenther  <rguenther@suse.de>
15004         PR tree-optimization/47737
15005         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15006         edge dominance check.
15008 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
15010         PR debug/47780
15011         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15012         avoid invalid rtx sharing.
15014 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
15016         * doc/cpp.texi (Obsolete Features): Add background on the
15017         origin of assertions.
15019 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
15021         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
15022         objc_abi == 2.
15023         * config/darwin.c (output_objc_section_asm_op): Added support for
15024         ABI v1 and v2.
15025         (is_objc_metadata): New.
15026         (darwin_objc2_section): New.
15027         (darwin_objc1_section): New.
15028         (machopic_select_section): Added support for ABI v1 and v2.
15029         (darwin_emit_objc_zeroed): New.
15030         (darwin_output_aligned_bss): Detect objc metadata and treat it
15031         appropriately.
15032         (darwin_asm_output_aligned_decl_common): Same.
15033         (darwin_asm_output_aligned_decl_local): Same.
15034         * config/darwin-sections.def: Updated for ABI v1 and v2.
15035         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15036         compiling Objective-C code for the NeXT runtime, default to using
15037         ABI version 0 for 32-bit, and version 2 for 64-bit.
15039 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15041         * common.opt (optimize_fast): New Variable.
15042         * opts.c (default_options_optimization): Use opts->x_optimize_fast
15043         instead of local variable ofast.
15045 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
15047         * doc/invoke.texi (fobjc-abi-version): Documented.
15048         (fobjc-nilcheck): Documented.
15049         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15050         version.
15052 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15054         PR driver/47390
15055         * common.opt (export-dynamic): New Driver option.
15056         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15058 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15060         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15062 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
15063             Jan Hubicka  <jh@suse.cz>
15065         PR debug/47106
15066         PR debug/47402
15067         * cfgexpand.c (account_used_vars_for_block): Remove.
15068         (estimated_stack_frame_size): Use referenced vars.
15069         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15070         that were referenced in the original function.  Test src_fn
15071         rather than cfun.  Drop redundant get_var_ann.
15072         (setup_one_parameter): Drop redundant get_var_ann.
15073         (declare_return_variable): Likewise.
15074         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15075         (copy_arguments_for_versioning): Drop redundant get_var_ann.
15076         * ipa-inline.c (compute_inline_parameters): Do not compute
15077         disregard_inline_limits here.
15078         (compute_inlinable_for_current, pass_inlinable): New.
15079         (pass_inline_parameters): Require PROP_referenced_vars.
15080         * cgraphunit.c (cgraph_process_new_functions): Don't run
15081         compute_inline_parameters explicitly unless function is in SSA form.
15082         (cgraph_analyze_function): Set .disregard_inline_limits.
15083         * tree-sra.c (convert_callers): Compute inliner parameters
15084         only for functions already in SSA form.
15086 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15088         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15089         -mlittle-endian-data.
15091 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15093         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15094         -mno-fpu, not -fpu and -no-fpu.
15095         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15096         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15098 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
15100         PR target/43653
15101         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15102         input reload with PLUS RTX.
15104 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15106         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15107         of InverseVar(MDMX).
15109 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15111         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15112         --m4-340.
15114 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15116         * config/mn10300/mn10300.opt (mno-crt0): New.
15118 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15120         * config/m68k/uclinux.opt (static-libc): New Driver option.
15122 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15124         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15126 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15128         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15129         %{muser-extend-enabled}.
15131 2011-02-16  Richard Guenther  <rguenther@suse.de>
15133         PR tree-optimization/47738
15134         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15135         the TODO from tree_predictive_commoning.
15137 2011-02-15  Jeff Law  <law@redhat.com>
15139         Revert
15140         2011-01-25  Jeff Law  <law@redhat.com>
15142         PR rtl-optimization/37273
15143         * ira-costs.c (scan_one_insn): Detect constants living in memory and
15144         handle them like argument loads from stack slots.  Do not double
15145         count memory for memory constants and argument loads from stack slots.
15147 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
15149         PR middle-end/47725
15150         * combine.c (cant_combine_insn_p): Revert the last change.
15152 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
15154         PR target/47755
15155         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15156         mode for vector constants.  Remove code that checks for TImode.
15158 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
15160         PR debug/47106
15161         PR debug/47402
15162         * cgraph.h (compute_inline_parameters): Return void.
15163         * ipa-inline.c (compute_inline_parameters): Adjust.
15165 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
15167         PR debug/47106
15168         PR debug/47402
15169         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15170         rather than decl.
15171         * cfgexpand.c (estimated_stack_frame_size): Likewise.
15172         * ipa-inline.c (compute_inline_parameters): Adjust.
15174 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
15176         PR debug/47106
15177         PR debug/47402
15178         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15179         Adjust all users.  Pass FN to...
15180         * tree-flow-inline.h (first_referenced_var): ... this.  Add
15181         fn argument.
15182         * ipa-struct-reorg.c: Adjust.
15183         * tree-dfa.c: Adjust.
15184         * tree-into-ssa.c: Adjust.
15185         * tree-sra.c: Adjust.
15186         * tree-ssa-alias.c: Adjust.
15187         * tree-ssa-live.c: Adjust.
15188         * tree-ssa.c: Adjust.
15189         * tree-ssanames.c: Adjust.
15190         * tree-tailcall.c: Adjust.
15192 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
15194         PR debug/47106
15195         PR debug/47402
15196         * tree-flow.h (referenced_var_lookup): Add fn parameter.
15197         Adjust all callers.
15198         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15199         * tree-flow-inline.h: Adjust.
15200         * gimple-pretty-print.c: Adjust.
15201         * tree-into-ssa.c: Adjust.
15202         * tree-ssa.c: Adjust.
15203         * cfgexpand.c: Adjust.
15205 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
15207         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15208         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15209         (EXTRA_CONSTRAINT): Delete.
15210         * config/iq2000/constraints.md: New file.
15211         * config/iq2000/iq2000.md: Include it.
15212         (define_insn ""): Delete.
15213         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15214         unsupported constraint letters from patterns.
15215         (call_value, call_value_internal1): Likewise.
15216         (call_value_multiple_internal1): Likewise.
15218 2011-02-15  Nick Clifton  <nickc@redhat.com>
15220         * config/mn10300/mn10300.c: Include tm-constrs.h.
15221         (struct liw_data): New data structure describing an LIW candidate
15222         instruction.
15223         (extract_bundle): Use struct liw_data.  Allow small integer
15224         operands for some instructions.
15225         (check_liw_constraints): Use struct liw_data.  Remove swapped
15226         parameter.  Add comments describing the checks.  Fix bug when
15227         assigning the source of liw1 to the source of liw2.
15228         (liw_candidate): Delete.  Code moved into extract_bundle.
15229         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
15230         before swapping.
15231         * config/mn10300/predicates.md (liw_operand): New predicate.
15232         Allows registers and small integer constants.
15233         * config/mn10300/constraints.md (O): New constraint.  Accetps
15234         integers in the range -8 to +7 inclusive.
15235         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
15236         for moving a small integer into a register.  Give this alternative
15237         LIW attributes.
15238         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
15239         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
15240         using the J,K,L and M constraints,
15241         (liw): Remove SI mode on second operands to allow for HI and QI
15242         mode values.
15243         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
15244         instruction.
15246 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
15248         PR middle-end/47725
15249         * combine.c (cant_combine_insn_p): Check zero/sign extended
15250         hard registers.
15252 2011-02-15  Richard Guenther  <rguenther@suse.de>
15254         PR tree-optimization/47743
15255         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
15256         for a non-type-compatible VN lookup bail out.
15258 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
15260         * config/fr30/constraints.md: New file.
15261         * config/fr30/fr30.md: Include it.
15262         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
15263         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15264         (EXTRA_CONSTRAINT): Delete.
15266 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
15268         * config/frv/constraints.md: New file.
15269         * config/frv/predicates.md: Include it.
15270         * config/frv/frv.c (reg_class_from_letter): Delete.
15271         (frv_option_override): Don't initialize it.
15272         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
15273         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
15274         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
15275         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15276         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
15277         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15278         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
15279         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
15280         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
15281         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
15282         (REG_CLASS_FROM_CONSTRAINT): Delete.
15284 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
15286         PR middle-end/47581
15287         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
15288         if frame size is 0 in a leaf function.
15290 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15292         PR pch/14940
15293         * config/alpha/host-osf.c: New file.
15294         * config/alpha/x-osf: New file.
15295         * config.host (alpha*-dec-osf*): Use it.
15297 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
15299         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15300         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
15301         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
15302         (rx_mode_dependent_address_p): ...this. Make static. Change argument
15303         type to const_rtx.
15304         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15306 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
15308         * config/stormy16/constraints.md: New file.
15309         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
15310         Use satisfies_constraint_Q and satisfies_constraint_R.
15311         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
15312         Delete.
15313         (xstormy16_legitiamte_address_p): Declare.
15314         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
15315         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15316         (EXTRA_CONSTRAINT): Delete.
15317         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15318         Un-staticize.
15319         (xstormy16_extra_constraint_p): Delete.
15321 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
15323         PR tree-optimization/46494
15324         * loop-unroll.c (split_edge_and_insert): Adjust comment.
15325         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
15326         (pass_rtl_loop_done): Add TODO_verify_flow.
15327         * fwprop.c (pass_rtl_fwprop): Likewise.
15328         * modulo-sched.c (pass_sms): Likewise.
15329         * tree-ssa-dom.c (pass_dominator): Likewise.
15330         * tree-ssa-loop-ch.c (pass_ch): Likewise.
15331         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
15332         (pass_tree_loop_done): Likewise.
15333         * tree-ssa-pre.c (execute_pre): Likewise.
15334         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
15335         * tree-ssa-sink.c (pass_sink_code): Likewise.
15336         * tree-vrp.c (pass_vrp): Likewise.
15338 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
15340         * config/v850/constraints.md: New file.
15341         * config/v850/v850.md: Include it.
15342         * config/v850/predicates.md (reg_or_0_operand): Use
15343         satisfies_constraint_G.
15344         (special_symbolref_operand): Use satisfies_constraint_K.
15345         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
15346         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
15347         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
15348         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15349         (EXTRA_CONSTRAINT): Delete.
15350         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
15351         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
15352         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
15354 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
15356         PR target/47696
15357         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
15358         description.
15360 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
15362         * config/mcore/constraints.md: New file.
15363         * config/mcore/mcore.md: Include it.
15364         * config/mcore/mcore.c (reg_class_from_letter): Delete.
15365         * config/mcore/mcore.h (reg_class_from_letter): Delete.
15366         (REG_CLASS_FROM_LETTER): Delete.
15367         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
15368         insn_const_int_ok_for_constraint.
15369         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
15370         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
15371         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15372         (EXTRA_CONSTRAINT): Delete.
15374 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15376         PR ada/41929
15377         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
15378         (IS_SIGHANDLER): Define.
15379         (sparc64_is_sighandler): New function, split off from
15380         sparc64_fallback_frame_state.
15381         (sparc_is_sighandler): New function, split off from
15382         sparc_fallback_frame_state.
15383         (sparc64_fallback_frame_state): Merge with ...
15384         (sparc_fallback_frame_state): ... this into ...
15385         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
15386         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
15387         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
15388         stack instead of hardcoded offsets.
15390 2011-02-14  Andriy Gapon  <avg@freebsd.org>
15392         PR target/45808
15393         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
15395 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15397         * configure: Regenerate.
15399 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
15401         PR driver/45731
15402         * gcc.c (asm_options): Correct spec matching --target-help.
15404 2011-02-12  Martin Jambor  <mjambor@suse.cz>
15406         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
15407         to gimple call error.
15409 2011-02-12  Mike Stump  <mikestump@comcast.net>
15411         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
15412         comments in backslash regions.
15414 2011-02-12  Mike Stump  <mikestump@comcast.net>
15415             Jakub Jelinek  <jakub@redhat.com>
15416             Iain Sandoe  <iains@gcc.gnu.org>
15418         PR target/47324
15419         * dwarf2out.c (output_cfa_loc): When required, apply the
15420         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
15421         (output_loc_sequence): Likewise.
15422         (output_loc_operands_raw): Likewise.
15423         (output_loc_sequence_raw): Likewise.
15424         (output_cfa_loc): Likewise.
15425         (output_loc_list): Suppress register number adjustment when
15426         calling output_loc_sequence()
15427         (output_die): Likewise.
15429 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
15431         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15432         Remove macros.
15433         * config/xtensa/xtensa.c (xtensa_register_move_cost,
15434         xtensa_memory_move_cost): New functions.
15435         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
15437 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
15439         PR lto/47225
15440         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
15441         in the current directory.
15442         * configure: Rebuilt.
15444 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
15446         * config/darwin.c (darwin_override_options): Add a hunk missed
15447         from the commit of r168571.  Trim comment line lengths and
15448         correct indents of the preceding block.
15450 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
15452         * gcc.c (driver_handle_option): Concatenate the argument to -F with
15453         the switch.
15455 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
15457         * common.opt (nostartfiles): New Driver option.
15459 2011-02-11  Xinliang David Li  <davidxl@google.com>
15461         PR tree-optimization/47707
15462         * tree-chrec.c (convert_affine_scev): Keep type precision.
15464 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
15466         PR tree-optimization/47420
15467         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
15469 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
15471         PR rtl-optimization/47614
15472         * rtl.h (check_for_inc_dec): Declare.
15473         * dse.c (check_for_inc_dec): Externalize...
15474         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
15475         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
15477 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
15479         PR driver/47678
15480         * gcc.c (main): Do not compile inputs if there were errors in
15481         option handling.
15482         * opts-common.c (read_cmdline_option): Check for wrong language
15483         after other error checks.
15485 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
15487         * cgraph.c: Fix comment typos.
15488         * cgraph.h: Likewise.
15489         * cgraphunit.c: Likewise.
15490         * ipa-cp.c: Likewise.
15491         * ipa-inline.c: Likewise.
15492         * ipa-prop.c: Likewise.
15493         * ipa-pure-const.c: Likewise.
15494         * ipa-ref.c: Likewise.
15495         * ipa-reference.c: Likewise.
15497 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
15499         PR debug/47684
15500         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
15502 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15504         PR testsuite/47400
15505         * doc/sourcebuild.texi (Require Support): Document
15506         dg-require-ascii-locale.
15508 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
15510         * doc/lto.texi (Write summary): Fix missing parentheses.
15512 2011-02-10  DJ Delorie  <dj@redhat.com>
15514         * config/m32c/m32c.c (m32c_option_override): Disable
15515         -fcombine-stack-adjustments until flag value tracking and compare
15516         optimization can be rewritten.
15518 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
15520         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
15521         PROCESSOR_POWER7.
15522         (PROCESSOR_DEFAULT64): Likewise.
15524 2011-02-10  Richard Henderson  <rth@redhat.com>
15526         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
15527         change from 2011-02-03.
15528         * config/rx/rx.c (flags_from_code): Likewise.
15529         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
15530         is valid, n/pz otherwise.
15531         (rx_select_cc_mode): Return CCmode if Y is not zero.
15533 2011-02-10  Richard Guenther  <rguenther@suse.de>
15535         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
15537 2011-02-10  Richard Guenther  <rguenther@suse.de>
15539         PR tree-optimization/47677
15540         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
15542 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
15544         PR target/47665
15545         * combine.c (make_compound_operation): Only change shifts into
15546         multiplication for SCALAR_INT_MODE_P.
15548 2011-02-10  Jie Zhang  <jie@codesourcery.com>
15550         PR testsuite/47622
15551         Revert
15552         2011-02-05  Jie Zhang  <jie@codesourcery.com>
15553         PR debug/42631
15554         * web.c (entry_register): Don't clobber the number of the
15555         first uninitialized reference in used[].
15557 2011-02-09  Richard Guenther  <rguenther@suse.de>
15559         PR tree-optimization/47664
15560         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
15561         all edges again.
15563 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
15565         PR target/46481
15566         PR target/47032
15567         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
15568         PROCESSOR_POWER7.
15569         (PROCESSOR_DEFAULT64): Same.
15570         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
15572 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15574         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
15576 2011-02-09  Martin Jambor  <mjambor@suse.cz>
15578         PR middle-end/45505
15579         * tree-sra.c (struct access): New flags grp_scalar_read and
15580         grp_scalar_write.  Changed description of assignment read and write
15581         flags.
15582         (dump_access): Dump new flags, reorder all of them.
15583         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
15584         to detect multiple scalar reads.
15585         (analyze_access_subtree): Use the new scalar read write flags instead
15586         of the old flags.  Adjusted comments.
15588 2011-02-08  DJ Delorie  <dj@redhat.com>
15590         PR target/47548
15591         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
15592         patterns.
15594 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
15596         * config/m68k/uclinux.opt: New.
15597         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
15599 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
15601         * config/cris/elf.opt (sim): New Driver option.
15603 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
15605         * config/xtensa/elf.opt: New.
15606         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
15608 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
15610         * config/vax/elf.opt: New.
15611         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
15613 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
15615         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
15617 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
15619         * config/gnu-user.opt: New.
15620         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
15621         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
15622         *-*-uclinux*): Use gnu-user.opt.
15624 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
15626         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
15627         * config/i386/gnu.h (CPP_SPEC): Likewise.
15629 2011-02-08  Ian Lance Taylor  <iant@google.com>
15631         * common.opt (fcx-limited-range): Add SetByCombined flag.
15632         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
15633         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
15634         (fassociative-math, freciprocal-math): Likewise.
15635         (funsafe-math-optimizations): Likewise.
15636         * opth-gen.awk: Handle SetByCombined.
15637         * optc-gen.awk: Likewise.
15638         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
15639         (set_unsafe_math_optimizations_flags): Likewise.
15640         * doc/options.texi (Option properties): Document SetByCombined.
15642 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
15644         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
15645         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
15646         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
15647         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
15648         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
15650 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
15652         PR tree-optimization/46834
15653         PR tree-optimization/46994
15654         PR tree-optimization/46995
15655         * graphite-sese-to-poly.c (used_outside_reduction): New.
15656         (detect_commutative_reduction): Call used_outside_reduction.
15657         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
15658         translate_scalar_reduction_to_array only when at least one
15659         loop-phi/close-phi tuple has been detected.
15661 2011-02-08  Richard Guenther  <rguenther@suse.de>
15663         PR middle-end/47639
15664         * tree-vect-generic.c (expand_vector_operations_1): Update
15665         stmts here ...
15666         (expand_vector_operations): ... not here.  Cleanup EH info
15667         and the CFG if required.
15669 2011-02-08  Richard Guenther  <rguenther@suse.de>
15671         PR tree-optimization/47641
15672         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
15673         require type compatibility.
15675 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15677         * gimple-low.c (lower_function_body): Don't remove the location of
15678         the return statement here.
15679         (lower_gimple_return): Do it here instead but only if the return
15680         statement is actually used twice.
15682 2011-02-08  Richard Guenther  <rguenther@suse.de>
15684         PR tree-optimization/47632
15685         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
15686         unused up_to_stmt parameter, return whether cfg-cleanup is
15687         necessary, remove EH info properly.
15688         (forward_propagate_into_gimple_cond): Adjust caller.
15689         (forward_propagate_into_cond): Likewise.
15690         (forward_propagate_comparison): Likewise.
15691         (tree_ssa_forward_propagate_single_use_vars): Make
15692         forward_propagate_comparison case similar to the two others.
15694 2011-02-08  Nick Clifton  <nickc@redhat.com>
15696         * config/mn10300/mn10300.opt (mliw): New command line option.
15697         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
15698         (liw_bundling): New automaton.
15699         (liw): New attribute.
15700         (liw_op): New attribute.
15701         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
15702         (movsi_internal): Add LIW attributes.
15703         (andsi3): Likewise.
15704         (iorsi3): Likewise.
15705         (xorsi3): Likewise.
15706         (addsi3): Separate register and immediate alternatives.
15707         Add LIW attributes.
15708         (subsi3): Likewise.
15709         (cmpsi): Likewise.
15710         (aslsi3): Likewise.
15711         (lshrsi3): Likewise.
15712         (ashrsi3): Likewise.
15713         (liw): New pattern.
15714         * config/mn10300/mn10300.c (liw_op_names): New
15715         (mn10300_print_operand): Handle 'W' operand descriptor.
15716         (extract_bundle): New function.
15717         (check_liw_constraints): New function.
15718         (liw_candidate): New function.
15719         (mn10300_bundle_liw): New function.
15720         (mn10300_reorg): New function.
15721         (TARGET_MACHINE_DEPENDENT_REORG): Define.
15722         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
15723         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
15724         __LIW__ or __NO_LIW__.
15725         * doc/invoke.texi: Describe the -mliw command line option.
15727 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15729         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
15730         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15731         pthread_mutex_unlock): Remove.
15732         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
15733         * config/pa/t-pa64: Likewise.
15734         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
15735         shared libc if not linking against libpthread.
15736         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15738 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
15740         PR target/47558
15741         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
15742         on 10.6 and later to ensure that we always use the unwinder from
15743         the system.  Only add -no_compact_unwind when tarteting darwin
15744         10.6 or later.
15746 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
15748         PR target/46997
15749         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
15750         (vec_interleave_lowv2sf): Ditto.
15751         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
15752         (vec_extract_oddv2sf): Ditto.
15754 2011-02-07  Mike Stump  <mikestump@comcast.net>
15756         PR target/42333
15757         Add __ieee_divdc3 entry point.
15758         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
15759         entry point.
15760         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
15761         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
15762         * config/darwin.c (darwin_rename_builtins): Add.
15763         * config/darwin-protos.h (darwin_rename_builtins): Add.
15765 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
15767         PR target/47636
15768         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
15769         for the condition.
15771 2011-02-07  Mike Stump  <mikestump@comcast.net>
15773         * config/darwin.opt (mmacosx-version-min): Update default OS version.
15775 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
15777         PR target/47534
15778         * config/avr/libgcc.S (exit): Move .endfunc
15780 2011-02-07  Richard Guenther  <rguenther@suse.de>
15782         PR tree-optimization/47615
15783         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
15784         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
15785         (run_scc_vn): Initialize it.
15786         (visit_reference_op_load): Use it.
15787         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
15789 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15791         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
15792         DImode trapping arithmetic libfuncs.
15794 2011-02-07  Richard Guenther  <rguenther@suse.de>
15796         PR tree-optimization/47621
15797         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
15798         two duplicates ...
15799         (execute_update_addresses_taken): ... here.  Make it more
15800         conservative in what we accept.
15802 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
15804         * config/sparc/freebsd.h (ASM_SPEC): Define.
15805         * config/sparc/vxworks.h (ASM_SPEC): Define.
15807 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
15809         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15811 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
15813         * doc/invoke.texi: Remove reference to compiler internals from
15814         user documentation.
15816         * reg-notes.def: Remove REG_VALUE_PROFILE.
15817         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
15819 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
15821         PR middle-end/47610
15822         * varasm.c (default_section_type_flags): If decl is NULL,
15823         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
15825 2011-02-05  Jie Zhang  <jie@codesourcery.com>
15827         PR debug/42631
15828         * web.c (entry_register): Don't clobber the number of the
15829         first uninitialized reference in used[].
15831 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
15833         PR tree-optimization/46194
15834         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
15835         (build_classic_dist_vector_1): Do not represent classic distance
15836         vectors when the access functions are variating in different loops.
15838 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
15840         * config/mips/iris6.opt: New.
15841         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
15843 2011-02-04  Richard Henderson  <rth@redhat.com>
15844             Steve Ellcey  <sje@cup.hp.com>
15846         PR target/46997
15847         * config/ia64/predicates.md (mux1_brcst_element): New.
15848         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
15849         * config/ia64/ia64.c (ia64_unpack_assemble): New.
15850         (ia64_unpack_sign): New.
15851         (ia64_expand_unpack): Rewrite using new routines.
15852         (ia64_expand_widen_sum): Ditto.
15853         (ia64_expand_dot_prod_v8qi): Ditto.
15854         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
15855         routines, add endian check.
15856         (pmpy2_even): Rename from pmpy2_r, add endian check.
15857         (pmpy2_odd): Rename from pmpy2_l, add endian check.
15858         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
15859         (vec_widen_smult_hi_v4hi): Ditto.
15860         (vec_widen_umult_lo_v4hi): Ditto.
15861         (vec_widen_umult_hi_v4hi): Ditto.
15862         (mulv2si3): Change endian checks.
15863         (sdot_prodv4hi): Rewrite with new calls.
15864         (udot_prodv4hi): New.
15865         (vec_pack_ssat_v4hi): Add endian check.
15866         (vec_pack_usat_v4hi): Ditto.
15867         (vec_pack_ssat_v2si): Ditto.
15868         (max1_even): Rename from max1_r, add endian check.
15869         (max1_odd): Rename from max1_l, add endian check.
15870         (*mux1_rev): Format change.
15871         (*mux1_mix): Ditto.
15872         (*mux1_shuf): Ditto.
15873         (*mux1_alt): Ditto.
15874         (*mux1_brcst_v8qi): Use new predicate.
15875         (vec_extract_evenv8qi): Remove endian check.
15876         (vec_extract_oddv8qi): Ditto.
15877         (vec_interleave_lowv4hi): Format change.
15878         (vec_interleave_highv4hi): Ditto.
15879         (mix2_even): Rename from mix2_r, add endian check.
15880         (mix2_odd): Rename from mux2_l, add endian check.
15881         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
15882         (vec_extract_evenodd_helper): Format change.
15883         (vec_extract_evenv4hi): Remove endian check.
15884         (vec_extract_oddv4hi): Remove endian check.
15885         (vec_interleave_lowv2si): Format change.
15886         (vec_interleave_highv2si): Format change.
15887         (vec_initv2si): Remove endian check.
15888         (vecinit_v2si): Add endian check.
15889         (reduc_splus_v2sf): Add endian check.
15890         (reduc_smax_v2sf): Ditto.
15891         (reduc_smin_v2sf): Ditto.
15892         (vec_initv2sf): Remove endian check.
15893         (fpack): Add endian check.
15894         (fswap): Add endian check.
15895         (vec_interleave_highv2sf): Add endian check.
15896         (vec_interleave_lowv2sf): Add endian check.
15897         (fmix_lr): Add endian check.
15898         (vec_setv2sf): Format change.
15899         (*vec_extractv2sf_0_be): Use shift to extract operand.
15900         (*vec_extractv2sf_1_be): New.
15901         (vec_pack_trunc_v4hi): Add endian check.
15902         (vec_pack_trunc_v2si): Format change.
15904 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
15906         PR inline-asm/23200
15907         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
15908         do bb, locus and block comparison and disallow loads if it is not set.
15909         (stmt_is_replaceable_p): New function.
15910         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
15911         callers.
15912         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
15913         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
15914         SSA_NAME_DEF_STMT.
15915         * tree-flow.h (stmt_is_replaceable_p): New prototype.
15917 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
15919         * config/rs6000/xilinx.opt: New.
15920         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
15922 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
15924         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
15926 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
15928         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
15929         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15930         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
15931         secondary_reload_info, xtensa_secondary_reload): Remove.
15932         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
15933         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15934         (xtensa_preferred_reload_class): Make static. Change return and
15935         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
15936         Use CONST_DOUBLE_P predicate.
15937         (xtensa_preferred_output_reload_class): New function.
15938         (xtensa_secondary_reload): Make static.
15940 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
15942         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
15943         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
15944         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
15946 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
15948         PR middle-end/31490
15949         * output.h (SECTION_RELRO): Define.
15950         (SECTION_MACH_DEP): Adjust.
15951         (get_variable_section): New prototype.
15952         * varpool.c (varpool_finalize_named_section_flags): New function.
15953         (varpool_assemble_pending_decls): Call it.
15954         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
15955         * cgraphunit.c (cgraph_output_in_order): Call
15956         varpool_finalize_named_section_flags.
15957         * varasm.c (get_section): Allow section flags conflicts between
15958         relro and read-only sections if the section hasn't been declared yet.
15959         Set SECTION_OVERRIDE after diagnosing section type conflict.
15960         (get_variable_section): No longer static.
15961         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
15962         readonly sections that need relocations.
15963         (decl_readonly_section_1): New function.
15964         (decl_readonly_section): Use it.
15966         Revert:
15967         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
15968                     Steve Ellcey  <sje@cup.hp.com>
15970         PR middle-end/31490
15971         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
15972         if section attribute used.
15974 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
15976         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
15977         * config/darwin.c (SECTION_NO_ANCHOR): Define.
15978         (darwin_init_sections): Remove assertion.
15980 2011-02-03  Nick Clifton  <nickc@redhat.com>
15982         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
15983         lt and ge.
15984         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
15985         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
15986         instead of "n" and "pz".
15987         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
15988         CC_FLAG_S.
15990 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
15992         PR target/47312
15993         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
15994         fma, expand FMA_EXPR as fma{,f,l} call.
15996         PR lto/47274
15997         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
15998         copy them into a unsigned char variable and pass address of it to
15999         lto_output_data_stream.
16001         PR target/47564
16002         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16003         around backend_init_target and lang_dependent_init_target calls.
16004         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16005         (verify_cgraph_node): Don't call set_cfun here.  Use
16006         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16007         Set error_found for incorrectly represented calls to thunks.
16009 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
16011         PR debug/43092
16012         PR rtl-optimization/43494
16013         * rtl.h (for_each_inc_dec_fn): New type.
16014         (for_each_inc_dec): Declare.
16015         * rtlanal.c (struct for_each_inc_dec_ops): New type.
16016         (for_each_inc_dec_find_inc_dec): New fn.
16017         (for_each_inc_dec_find_mem): New fn.
16018         (for_each_inc_dec): New fn.
16019         * dse.c (struct insn_size): Remove.
16020         (replace_inc_dec, replace_inc_dec_mem): Remove.
16021         (emit_inc_dec_insn_before): New fn.
16022         (check_for_inc_dec): Use it, along with for_each_inc_dec.
16023         (canon_address): Pass mem modes to cselib_lookup.
16024         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
16025         (cselib_lookup_from_insn): Likewise.
16026         (cselib_subst_to_values): Likewise.
16027         * cselib.c (find_slot_memmode): New var.
16028         (cselib_find_slot): New fn.  Use it instead of
16029         htab_find_slot_with_hash everywhere.
16030         (entry_and_rtx_equal_p): Use find_slot_memmode.
16031         (autoinc_split): New fn.
16032         (rtx_equal_for_cselib_p): Rename and implement in terms of...
16033         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
16034         Deal with autoinc.  Special-case recursion into MEMs.
16035         (cselib_hash_rtx): Likewise.
16036         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
16037         address and MEM modes.
16038         (cselib_subst_to_values): Add memmode, pass it on.
16039         Deal with autoinc.
16040         (cselib_lookup): Add memmode argument, pass it on.
16041         (cselib_lookup_from_insn): Add memmode.
16042         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16043         (struct cselib_record_autoinc_data): New.
16044         (cselib_record_autoinc_cb): New fn.
16045         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
16046         mode to cselib_lookup.  Reset autoinced REGs here instead of...
16047         (cselib_process_insn): ... here.
16048         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16049         to cselib_lookup.
16050         (add_uses): Likewise, also to cselib_subst_to_values.
16051         (add_stores): Likewise.
16052         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
16053         cselib_subst_to_values.
16054         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
16055         * gcse.c (do_local_cprop): Adjusted.
16056         * postreload.c (reload_cse_simplify_set): Adjusted.
16057         (reload_cse_simplify_operands): Adjusted.
16058         * sel-sched-dump (debug_mem_addr_value): Pass mode.
16060 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
16062         PR tree-optimization/45122
16063         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16064         unsafe assumptions when there's more than one loop exit.
16066 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16068         PR target/47272
16069         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16070         Document using vector double with the load/store builtins, and
16071         that the load/store builtins always use Altivec instructions.
16073         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16074         to use altivec memory instructions, even on VSX.
16075         (vector_altivec_store_<mode>): Ditto.
16077         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16078         function.
16080         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16081         V2DF, V2DI support to load/store overloaded builtins.
16083         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16084         altivec load/store builtins for V2DF/V2DI types.
16086         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16087         set avoid indexed addresses on power6 if -maltivec.
16088         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16089         vector_altivec_load/vector_altivec_store builtins.
16090         (altivec_expand_st_builtin): Ditto.
16091         (altivec_expand_builtin): Add VSX memory builtins.
16092         (rs6000_init_builtins): Add V2DI types to internal types.
16093         (altivec_init_builtins): Add support for V2DF/V2DI altivec
16094         load/store builtins.
16095         (rs6000_address_for_altivec): Insure memory address is appropriate
16096         for Altivec.
16098         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16099         vec_vsx_ld and vec_vsx_st.
16100         (vsx_store_<mode>): Ditto.
16102         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16103         variables to hold long long types for VSX vector memory builtins.
16104         (RS6000_BTI_unsigned_long_long): Ditto.
16105         (long_long_integer_type_internal_node): Ditti.
16106         (long_long_unsigned_type_internal_node): Ditti.
16108         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16109         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16110         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16112         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16113         short cuts.
16114         (vec_vsx_st): Ditto.
16116 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
16118         * config/pa/pa-hpux10.opt: New.
16119         * config/hpux11.opt (pthread): New Driver option.
16120         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16121         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16123 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
16125         * config/ia64/vms.opt: New.
16126         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16128 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
16130         PR target/47580
16131         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16132         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16133         generator functions.
16134         (vsx_floatuns<VSi><mode>2): Ditto.
16135         (vsx_fix_trunc<mode><VSi>2): Ditto.
16136         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16138 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
16140         * config/i386/djgpp.opt (posix): New Driver option.
16142 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
16144         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16145         Move to the unsupported targets list.
16147 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
16149         PR rtl-optimization/47525
16150         * df-scan.c: Update copyright years.
16151         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16152         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16154 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16156         * config/i386/sysv4.h (TARGET_VERSION): Remove.
16157         (SUBTARGET_RETURN_IN_MEMORY): Remove.
16158         (ASM_OUTPUT_ASCII): Remove.
16159         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16161 2011-02-02  Jeff Law  <law@redhat.com>
16163         PR middle-end/47543
16164         * reload.c (find_reloads_address): Handle reg+d address where both
16165         components are invalid by reloading the entire address.
16167 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
16168             Richard Guenther  <rguenther@suse.de>
16170         PR tree-optimization/40979
16171         PR bootstrap/47044
16172         * passes.c (init_optimization_passes): After LIM call copy_prop
16173         and DCE to clean up.
16174         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16176 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
16178         PR tree-optimization/47576
16179         PR tree-optimization/47555
16180         * doc/invoke.texi (scev-max-expr-complexity): Documented.
16181         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16182         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16183         * tree-scalar-evolution.c (follow_ssa_edge): Use
16184         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16186 2011-02-02  Richard Guenther  <rguenther@suse.de>
16188         PR tree-optimization/47566
16189         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16191 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
16193         PR debug/47106
16194         PR debug/47402
16195         * tree-inline.c (declare_return_variable): Remove unused caller
16196         variable.
16198         PR debug/47106
16199         PR debug/47402
16200         * tree-flow-inline.h (clear_is_used, is_used_p): New.
16201         * cfgexpand.c (account_used_vars_for_block): Use them.
16202         * tree-nrv.c (tree_nrv): Likewise.
16203         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16204         (dump_scope_block): Likewise.
16205         (remove_unused_locals): Likewise.
16207         PR debug/47106
16208         PR debug/47402
16209         * tree-inline.c (declare_return_variable): Add result decl to
16210         local decls only once.
16211         * gimple-low.c (record_vars_into): Mark newly-created variables
16212         as referenced.
16214 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
16216         PR debug/47498
16217         PR debug/47501
16218         PR debug/45136
16219         PR debug/45130
16220         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16221         debug insns.
16222         (no_real_insns_p, schedule_block, set_priorities): Drop special
16223         treatment of boundary debug insns.
16224         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16225         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
16226         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16227         (BOUNDARY_DEBUG_INSN_P): Likewise.
16228         (SCHEDULE_DEBUG_INSN_P): Likewise.
16229         * sched-rgn.c (init_ready_list): Drop special treatment of
16230         boundary debug insns.
16231         * final.c (rest_of_clean_state): Clear notes' BB.
16233 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16235         * config/openbsd.opt (assert=): New Driver option.
16237 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16239         * config/i386/nto.opt: New.
16240         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
16242 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16244         * config/i386/netware.opt: New.
16245         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
16247 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16249         * config/interix.opt (posix): New Driver option.
16251 2011-02-01  DJ Delorie  <dj@redhat.com>
16253         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
16255         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
16256         class for A0/A1.
16258 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
16260         PR tree-optimization/47561
16261         * toplev.c (process_options): Print the Graphite flags.  Add
16262         flag_loop_flatten to the list of options requiring Graphite.
16264 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16266         * config/i386/cygming.opt (posix): New Driver option.
16268 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16270         * config/arm/vxworks.opt: New.
16271         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
16273 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16275         * config/alpha/elf.opt: New.
16276         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
16277         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
16279 2011-02-01  Richard Guenther  <rguenther@suse.de>
16281         PR tree-optimization/47559
16282         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
16283         store-motion on references that can throw.
16285 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
16287         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
16288         * tree-pass.h (TDF_CSELIB): New macro.
16289         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
16290         cselib_lookup): Check for it rather than for TDF_DETAILS.
16292 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
16294         PR driver/47547
16295         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
16296         is HOST_BIT_BUCKET.
16298         * opts.c (finish_options): Don't add x_aux_base_name if it is
16299         HOST_BIT_BUCKET.
16301 2011-02-01  Richard Guenther  <rguenther@suse.de>
16303         PR tree-optimization/47555
16304         Revert
16305         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
16307         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16309 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
16311         PR gcc/46692
16312         * config/lm32/t-lm32: Add multilib for all CPU options.
16314 2011-02-01  Richard Guenther  <rguenther@suse.de>
16316         PR tree-optimization/47541
16317         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
16318         sure to have a field at offset zero.
16320 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
16322         * config/arc/arc.opt (EB, EL): New Driver options.
16324 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
16326         * config/alpha/osf5.opt: New.
16327         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
16329 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
16331         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
16333 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
16335         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
16336         -floop-interchange.
16337         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
16338         is an alias of -floop-interchange and that it requires the
16339         Graphite infrastructure.
16340         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
16341         flag_loop_interchange based on the value of flag_tree_loop_linear.
16343 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
16344             Richard Guenther  <rguenther@suse.de>
16346         PR tree-optimization/47538
16347         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
16348         type instead of r1type, except for comparisons.  For right
16349         shifts and comparisons punt if there are mismatches in
16350         sizetype vs. non-sizetype types.
16352 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16354         * doc/sourcebuild.texi (Effective-Target Keywords): Document
16355         avx_runtime.
16357 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16359         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
16360         version number.
16361         * configure: Regenerate.
16363 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16365         * configure.ac (gcc_cv_ld_static_option): Define.
16366         (gcc_cv_ld_dynamic_option): Define.
16367         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
16368         instead.
16369         (HAVE_LD_STATIC_DYNAMIC): Update message.
16370         (LD_STATIC_OPTION): Define.
16371         (LD_DYNAMIC_OPTION): Define.
16372         * configure: Regenerate.
16373         * config.in: Regenerate.
16374         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
16375         HAVE_LD_STATIC_DYNAMIC]: Use them.
16377 2011-01-31  Nick Clifton  <nickc@redhat.com>
16379         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
16380         registers inside interrupt handlers if the handler is not a leaf
16381         function.
16383 2011-01-31  Nick Clifton  <nickc@redhat.com>
16385         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
16386         reg_renumber returning an INVALID_REGNUM.
16388 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
16390         PR libgcj/44341
16391         * doc/install.texi: Document host options discarded when cross
16392         configuring target libraries.
16394 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
16396         Reverted:
16397         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
16398         PR debug/45136
16399         PR debug/45130
16400         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16401         debug insns.
16402         (no_real_insns_p, schedule_block, set_priorities): Drop special
16403         treatment of boundary debug insns.
16404         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16405         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16406         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16407         (BOUNDARY_DEBUG_INSN_P): Likewise.
16408         (SCHEDULE_DEBUG_INSN_P): Likewise.
16409         * sched-rgn.c (init_ready_list): Drop special treatment of
16410         boundary debug insns.
16411         * final.c (rest_of_clean-state): Clear notes' BB.
16413 2011-01-31  Alan Modra  <amodra@gmail.com>
16415         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
16416         toc relative expressions as we do in print_operand_address.
16418 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
16420         * doc/extend.texi: Follow spelling conventions.
16421         * doc/invoke.texi: Fix a typo.
16423 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
16425         * config/hpux11.opt: New.
16426         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
16427         ia64*-*-hpux*): Use hpux11.opt.
16429 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
16431         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
16432         to tmake_file.
16434 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
16436         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
16437         support sites.
16439 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
16441         * doc/install.texi (Binaries): Remove outdated reference for
16442         Motorola 68HC11/68HC12 downloads.
16444 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
16446         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
16447         Drepper's paper.
16449 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
16451         PR bootstrap/47147
16452         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
16453         used by NetBSD.
16455 2011-01-28  Ahmad Sharif  <asharif@google.com>
16457         * value-prof.c (check_counter): Corrected error message.
16459 2011-01-29  Jie Zhang  <jie@codesourcery.com>
16461         * config/arm/arm.c (arm_legitimize_reload_address): New.
16462         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16463         arm_legitimize_reload_address.
16464         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
16466 2011-01-28  Ian Lance Taylor  <iant@google.com>
16468         * godump.c (go_define): Ignore macros whose definitions include
16469         two adjacent operands.
16471 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
16473         PR target/42894
16474         * varasm.c (force_const_mem): Store copy of x in desc->constant
16475         instead of x itself.
16476         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
16477         itself into REG_EQUAL note.
16479 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
16481         * config/freebsd.opt (posix, rdynamic): New Driver options.
16483 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16485         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
16486         -Bstatic/-Bdynamic.
16487         * configure: Regenerate.
16489 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
16491         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
16492         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
16494 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
16496         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
16497         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
16498         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16499         (s390_preferred_reload_class): Make static. Change return and
16500         'rclass' argument type to reg_class_t.
16502 2011-01-27  Jan Hubicka  <jh@suse.cz>
16504         PR middle-end/46949
16505         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
16506         (process_function_and_variable_attributes): Check defined weakrefs.
16508 2011-01-27  Martin Jambor  <mjambor@suse.cz>
16510         PR tree-optimization/47228
16511         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
16512         build_ref_for_offset.
16514 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16516         * config/spu/spu-elf.h (ASM_SPEC): Remove.
16518 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
16520         PR rtl-optimization/46856
16521         * postreload.c (reload_combine_recognize_const_pattern): Do not
16522         separate cc0 setter and user on cc0 targets.
16524 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
16526         PR c/43082
16527         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
16528         passed a VOID_TYPE expression, immediately emit an error and
16529         return error_mark_node.
16531 2011-01-26  Jeff Law  <law@redhat.com>
16533         PR rtl-optimization/47464
16534         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
16535         rather than may_trap_p as needed.
16537 2011-01-26  DJ Delorie  <dj@redhat.com>
16539         PR rtl-optimization/46878
16540         * combine.c (insn_a_feeds_b): Check for the implicit cc0
16541         setter/user dependency as well.
16543 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
16545         PR rtl-optimization/44469
16546         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
16547         after removing trivially dead basic blocks.
16549 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
16551         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
16552         * config/frv/frv.h (LINK_SPEC): Likewise.
16553         * config/i386/netware.h (LINK_SPEC): Likewise.
16554         * config/m68k/linux.h (ASM_SPEC): Likewise.
16555         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
16556         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16557         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16558         * config/sparc/linux.h (ASM_SPEC): Likewise.
16559         * config/sparc/linux64.h (ASM_SPEC): Likewise.
16560         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16562 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
16564         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
16565         * config/frv/frv.h (ASM_SPEC): Likewise.
16566         * config/m68k/linux.h (ASM_SPEC): Likewise.
16567         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16568         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
16569         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16570         * config/sparc/linux.h (ASM_SPEC): Likewise.
16571         * config/sparc/linux64.h (ASM_SPEC): Likewise.
16572         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16574 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
16576         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
16577         * config/frv/frv.h (LINK_SPEC): Likewise.
16578         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16580 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
16582         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
16583         * config/frv/frv.h (ASM_SPEC): Likewise.
16584         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
16585         * config/m68k/linux.h (ASM_SPEC): Likewise.
16586         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16587         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16588         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16589         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
16590         * config/sparc/linux.h (ASM_SPEC): Likewise.
16591         * config/sparc/linux64.h (ASM_SPEC): Likewise.
16592         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16593         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
16595 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
16597         PR target/46997
16598         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
16599         (*mux2): Ditto.
16600         (vec_extract_evenodd_help): Ditto.
16601         (vec_extract_evenv4hi): Ditto.
16602         (vec_extract_oddv4hi): Ditto.
16603         (vec_interleave_lowv2si): Ditto.
16604         (vec_interleave_highv2si): Ditto.
16605         (vec_extract_evenv2si): Ditto.
16606         (vec_extract_oddv2si: Ditto.
16607         (vec_pack_trunc_v2si): Ditto.
16609 2011-01-22  Jan Hubicka  <jh@suse.cz>
16611         PR target/47237
16612         * cgraph.h (cgraph_local_info): New field can_change_signature.
16613         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
16614         signature can change.
16615         (ipcp_estimate_growth): Call sequence simplify only if calle signature
16616         can change.
16617         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
16618         (cgraph_function_versioning): We can not change signature of functions
16619         that don't allow that.
16620         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
16621         (lto_input_node): Likewise.
16622         * ipa-inline.c (compute_inline_parameters): Compute
16623         local.can_change_signature.
16624         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
16625         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
16626         functions that can not change signature.
16627         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
16628         init_cumulative_args): Do not use local calling conventions
16629         for functions that can not change signature.
16631 2011-01-22  Jan Hubicka  <jh@suse.cz>
16633         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
16635 2011-01-26  Richard Guenther  <rguenther@suse.de>
16637         PR tree-optimization/47190
16638         * cgraphunit.c (process_common_attributes): New function.
16639         (process_function_and_variable_attributes): Use it.
16641 2011-01-26  Richard Guenther  <rguenther@suse.de>
16643         PR lto/47423
16644         * cgraphbuild.c (record_eh_tables): Record reference to personality
16645         function.
16647 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
16649         PR debug/45454
16650         * sel-sched.c (moveup_expr): Don't let debug insns prevent
16651         non-debug insns from moving up.
16653 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
16655         PR target/40125
16656         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
16657         t-dlldir{,-x} fragment for build and add it to tmake_file.
16658         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
16659         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
16660         * config/i386/t-dlldir: New file.
16661         (SHLIB_DLLDIR): Define.
16662         * config/i386/t-dlldir-x: New file.
16663         (SHLIB_DLLDIR): Define.
16664         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
16665         (SHLIB_INSTALL): Use it.
16667 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
16669         PR target/47246
16670         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
16671         lower bound of the allowed Thumb-2 coprocessor load/store
16672         index range to -256. Add explaining comment.
16674 2011-01-25  Ian Lance Taylor  <iant@google.com>
16676         * godump.c (go_define): Improve lexing of macro expansion to only
16677         accept expressions which match Go spec.
16679 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
16681         PR c++/43601
16682         * tree.c (handle_dll_attribute): Handle it.
16683         * doc/extend.texi (@item dllexport): Mention it.
16684         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
16686 2011-01-25  Ian Lance Taylor  <iant@google.com>
16688         PR tree-optimization/26854
16689         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
16690         (decl_jump_unsafe): Move higher in file, with no other change.
16691         (bind): Set has_jump_unsafe_decl if appropriate.
16692         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
16693         (check_earlier_gotos): Likewise.
16694         (c_check_switch_jump_warnings): Likewise.
16696 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
16698         * doc/invoke.texi (Warning Options): Add missing hyphen.
16699         (-fprofile-dir): Minor grammatical fixes.
16700         (-fbranch-probabilities): Likewise.
16702 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
16704         PR debug/45136
16705         PR debug/45130
16706         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16707         debug insns.
16708         (no_real_insns_p, schedule_block, set_priorities): Drop special
16709         treatment of boundary debug insns.
16710         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16711         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16712         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16713         (BOUNDARY_DEBUG_INSN_P): Likewise.
16714         (SCHEDULE_DEBUG_INSN_P): Likewise.
16715         * sched-rgn.c (init_ready_list): Drop special treatment of
16716         boundary debug insns.
16717         * final.c (rest_of_clean-state): Clear notes' BB.
16719 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16721         * Makefile.in (LAMBDA_H): Removed.
16722         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
16723         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
16724         lambda-trans.o, and tree-loop-linear.o.
16725         (lto-symtab.o): Remove dependence on LAMBDA_H.
16726         (tree-loop-linear.o): Remove rule.
16727         (lambda-mat.o): Same.
16728         (lambda-trans.o): Same.
16729         (lambda-code.o): Same.
16730         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
16731         (tree-vect-slp.o): Same.
16732         * hwint.h (gcd): Moved here.
16733         (least_common_multiple): Same.
16734         * lambda-code.c: Removed.
16735         * lambda-mat.c: Removed.
16736         * lambda-trans.c: Removed.
16737         * lambda.h: Removed.
16738         * tree-loop-linear.c: Removed.
16739         * lto-symtab.c: Do not include lambda.h.
16740         * omega.c (gcd): Removed.
16741         * passes.c (init_optimization_passes): Remove pass_linear_transform.
16742         * tree-data-ref.c (print_lambda_vector): Moved here.
16743         (lambda_vector_copy): Same.
16744         (lambda_matrix_copy): Same.
16745         (lambda_matrix_id): Same.
16746         (lambda_vector_first_nz): Same.
16747         (lambda_matrix_row_add): Same.
16748         (lambda_matrix_row_exchange): Same.
16749         (lambda_vector_mult_const): Same.
16750         (lambda_vector_negate): Same.
16751         (lambda_matrix_row_negate): Same.
16752         (lambda_vector_equal): Same.
16753         (lambda_matrix_right_hermite): Same.
16754         * tree-data-ref.h: Do not include lambda.h.
16755         (lambda_vector): Moved here.
16756         (lambda_matrix): Same.
16757         (dependence_level): Same.
16758         (lambda_transform_legal_p): Removed declaration.
16759         (lambda_collect_parameters): Same.
16760         (lambda_compute_access_matrices): Same.
16761         (lambda_vector_gcd): Same.
16762         (lambda_vector_new): Same.
16763         (lambda_vector_clear): Same.
16764         (lambda_vector_lexico_pos): Same.
16765         (lambda_vector_zerop): Same.
16766         (lambda_matrix_new): Same.
16767         * tree-flow.h (least_common_multiple): Removed declaration.
16768         * tree-parloops.c (lambda_trans_matrix): Moved here.
16769         (LTM_MATRIX): Same.
16770         (LTM_ROWSIZE): Same.
16771         (LTM_COLSIZE): Same.
16772         (LTM_DENOMINATOR): Same.
16773         (lambda_trans_matrix_new): Same.
16774         (lambda_matrix_vector_mult): Same.
16775         (lambda_transform_legal_p): Same.
16776         * tree-pass.h (pass_linear_transform): Removed declaration.
16777         * tree-ssa-loop.c (tree_linear_transform): Removed.
16778         (gate_tree_linear_transform): Removed.
16779         (pass_linear_transform): Removed.
16780         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
16781         flag_loop_interchange.
16783 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
16785         PR tree-optimization/47265
16786         PR tree-optimization/47443
16787         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
16788         if name still has some uses.
16790 2011-01-25  Martin Jambor  <mjambor@suse.cz>
16792         PR tree-optimization/47382
16793         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
16794         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
16796 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
16798         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
16799         sjlj_except_unwind_info.
16801 2011-01-25  Richard Guenther  <rguenther@suse.de>
16803         PR tree-optimization/47426
16804         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
16805         visible functions results escape.
16807 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
16809         PR target/45701
16810         * config/arm/arm.c (any_sibcall_uses_r3): New function.
16811         (arm_get_frame_offsets): Use it.
16813 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16814             Jakub Jelinek  <jakub@redhat.com>
16816         PR tree-optimization/47271
16817         * tree-if-conv.c (bb_postdominates_preds): New.
16818         (if_convertible_bb_p): Call bb_postdominates_preds.
16819         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
16820         (predicate_scalar_phi): Call bb_postdominates_preds.
16822 2011-01-25  Nick Clifton  <nickc@redhat.com>
16824         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
16825         * config/rx/rx.c (rx_function_value): Likewise.
16826         (rx_promote_function_mode): Likewise.
16827         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
16828         in order to make it legitimate.
16829         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
16830         make sure that the first operand is the same as the result register.
16831         (addsi3_unspec): Delete.
16832         (subdi3): Do not accept immediate operands.
16833         (subdi3_internal): Likewise.
16835 2011-01-25  Jeff Law  <law@redhat.com>
16837         PR rtl-optimization/37273
16838         * ira-costs.c (scan_one_insn): Detect constants living in memory and
16839         handle them like argument loads from stack slots.  Do not double
16840         count memory for memory constants and argument loads from stack slots.
16842 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
16844         PR tree-optimization/47427
16845         PR tree-optimization/47428
16846         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16847         coalesce if the new root var would be TREE_READONLY.
16849 2011-01-25  Richard Guenther  <rguenther@suse.de>
16851         PR middle-end/47414
16852         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
16853         correct type for TBAA.
16855 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16857         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
16858         (close_phi_written_to_memory): Call for_each_index with
16859         dr_indices_valid_in_loop.
16861 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16863         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
16864         when it is initialized.
16866 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16868         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
16869         call to graphite_find_data_references_in_stmt.
16870         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
16871         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
16872         call to graphite_find_data_references_in_stmt.
16873         (analyze_drs_in_stmts): Same.
16874         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
16875         in which the scalar analysis of indices is performed.
16876         (create_data_ref): Same.  Update call to dr_analyze_indices.
16877         (find_data_references_in_stmt): Update call to create_data_ref.
16878         (graphite_find_data_references_in_stmt): Same.
16879         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
16880         declaration.
16881         (create_data_ref): Same.
16882         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
16883         call to create_data_ref.
16885 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16887         * graphite-sese-to-poly.c (build_poly_scop): Move
16888         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
16890 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16892         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
16893         VAR_DECL, PARM_DECL, and RESULT_DECL.
16895 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16897         * graphite-dependences.c (reduction_dr_1): Allow several reductions
16898         in a reduction PBB.
16899         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
16900         that have already been marked as PBB_IS_REDUCTION.
16902 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16904         * graphite-scop-detection.c (same_close_phi_node): New.
16905         (remove_duplicate_close_phi): New.
16906         (make_close_phi_nodes_unique): New.
16907         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
16909 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16911         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
16912         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
16913         of both data references to be the same.
16915 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16917         * graphite-dependences.c (build_lexicographical_constraint): Remove
16918         the gdim parameter.
16919         (build_lexicographical_constraint): Adjust call to
16920         ppl_powerset_is_empty.
16921         (dependence_polyhedron): Same.
16922         (graphite_legal_transform_dr): Same.
16923         (graphite_carried_dependence_level_k): Same.
16924         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
16925         parameter.
16926         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
16928 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16930         * graphite-sese-to-poly.c
16931         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
16932         (close_phi_written_to_memory): New.
16933         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
16934         and unshare_expr.
16936 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16938         * doc/install.texi: Update the expected version number of PPL to 0.11.
16939         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
16940         #if PPL_VERSION_MINOR < 11.
16942 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16944         * graphite-dependences.c: Include graphite-cloog-util.h.
16945         (new_poly_ddr): Inlined into dependence_polyhedron.
16946         (free_poly_ddr): Moved close by new_poly_ddr.
16947         (dependence_polyhedron_1): Renamed dependence_polyhedron.
16948         Early return NULL when ppl_powerset_is_empty returns true.
16949         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
16950         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
16951         (graphite_legal_transform_dr): Call new_poly_ddr.
16952         (graphite_carried_dependence_level_k): Same.
16953         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
16954         (dot_transformed_deps_stmt_1): Removed.
16955         (dot_deps_stmt_1): Call dot_deps_stmt_2.
16956         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
16957         (dot_deps_1): Call dot_deps_2.
16958         * Makefile.in (graphite-dependences.o): Add missing dependence on
16959         graphite-cloog-util.h.
16961 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16963         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
16964         (build_lexicographical_constraint): Same.
16965         (dependence_polyhedron_1): Same.
16966         (graphite_legal_transform_dr): Same.
16967         (graphite_carried_dependence_level_k): Same.
16968         * graphite-ppl.c (ppl_powerset_is_empty): New.
16969         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
16970         * tree-data-ref.c (dump_data_reference): Print the basic block index.
16972 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16974         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
16975         the "a followed by b" relation and document it.
16977 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16979         * graphite-dependences.c (build_lexicographical_constraint): Stop the
16980         iteration when the bag of constraints is empty.
16982 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16984         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
16986 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16988         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
16989         nest and two loop depths as parameters.
16990         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
16991         lst_perfect_nestify.
16993 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
16995         * graphite-dependences.c (print_pddr): Call
16996         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
16998 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17000         * graphite-ppl.c (debug_gmp_value): New.
17001         * graphite-ppl.h (debug_gmp_value): Declared.
17003 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
17005         * doc/install.texi: Document availability of cloog-0.16.
17007 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
17009         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17010         invalid postdominance info.
17012 2011-01-24  Jan Hubicka  <jh@suse.cz>
17014         PR c/21659
17015         * doc/extend.texi (weak pragma): Drop claim that it must
17016         appear before definition.
17017         * varasm.c (merge_weak, declare_weak): Only sanity check
17018         that DECL is not output at a time it is declared weak.
17020 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
17022         * machmode.def: Fixed comments.
17024 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
17026         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17028 2011-01-24  Paul Koning  <ni1d@arrl.net>
17030         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
17031         WORDS_BIG_ENDIAN.
17033 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
17035         PR target/46519
17036         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17037         (block_info): Add scanned and prev.
17038         (move_or_delete_vzeroupper_2): Return if the basic block
17039         has been scanned and the upper 128bit state is unchanged
17040         from the last scan.
17041         (move_or_delete_vzeroupper_1): Return true if the exit
17042         state is changed.
17043         (move_or_delete_vzeroupper): Visit basic blocks using the
17044         work-list based algorithm based on vt_find_locations in
17045         var-tracking.c.
17047         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17049 2011-01-24  Nick Clifton  <nickc@redhat.com>
17051         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17052         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17053         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
17054         then define __v850e1__.
17055         * doc/invoke.texi: Document -mv850es.
17057 2011-01-24  Richard Henderson  <rth@redhat.com>
17059         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17060         compound unordered comparisons.
17061         * config/rx/rx.c (rx_split_fp_compare): Remove.
17062         * config/rx/rx-protos.h: Update.
17063         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17064         (cbranchsf4): Don't call rx_split_fp_compare.
17065         (*cbranchsf4): Use rx_split_cbranch.
17066         (*cmpsf): Don't accept "i" constraint.
17067         (*conditional_branch): Only valid after reload.
17068         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
17070 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17072         PR target/47385
17073         * config/rs6000/altivec.md (vector constant splitters): Add
17074         support for creating vector single precision constants if -mvsx is
17075         used and we would create the constant using Altivec primitives.
17077 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
17078             Richard Sandiford  <rdsandiford@googlemail.com>
17080         PR rtl-optimization/47166
17081         * reload1.c (emit_reload_insns): Disable the spill_reg_store
17082         mechanism for PRE_MODIFY and POST_MODIFY.
17083         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17084         reloadreg.
17086 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
17088         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17090 2011-01-22  Jan Hubicka  <jh@suse.cz>
17092         PR lto/47333
17093         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17095 2011-01-22  Jan Hubicka  <jh@suse.cz>
17097         PR tree-optimization/43884
17098         PR lto/44334
17099         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17100         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17102 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
17104         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17105         * config/s390/s390.c (s390_register_move_cost,
17106         s390_memory_move_cost): New.
17107         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17109 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17111         PR middle-end/47401
17112         * except.c (sjlj_assign_call_site_values): Move setting the
17113         crtl->uses_eh_lsda flag to ...
17114         (sjlj_mark_call_sites): ... here.
17115         (sjlj_emit_function_enter): Support NULL dispatch label.
17116         (sjlj_build_landing_pads): In a function with no landing pads
17117         that still has must-not-throw regions, generate code to register
17118         a personality function with empty LSDA.
17120 2011-01-21  Richard Henderson  <rth@redhat.com>
17122         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17124         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17126         * compare-elim.c: New file.
17127         * Makefile.in (OBJS-common): Add it.
17128         (compare-elim.o): New.
17129         * common.opt (fcompare-elim): New.
17130         * opts.c (default_options_table): Add OPT_fcompare_elim.
17131         * tree-pass.h (pass_compare_elim_after_reload): New.
17132         * passes.c (init_optimization_passes): Add it.
17133         * recog.h: Protect against re-inclusion.
17134         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17135         * doc/invoke.texi (-fcompare-elim): Document it.
17136         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17137         * doc/tm.texi: Rebuild.
17139 2011-01-22  Nick Clifton  <nickc@redhat.com>
17141         * config/rx/rx.md (cstoresf4): Pass comparison operator to
17142         rx_split_fp_compare.
17144 2011-01-22  Nick Clifton  <nickc@redhat.com>
17146         * config/rx/rx.md (UNSPEC_CONST): New.
17147         (deallocate_and_return): Wrap the amount popped off the stack in
17148         an UNSPEC_CONST in order to stop it being rejected by
17149         -mmax-constant-size.
17150         (pop_and_return): Add a "(return)" rtx.
17151         (call): Drop the immediate operand.
17152         (call_internal): Likewise.
17153         (call_value): Likewise.
17154         (call_value_internal): Likewise.
17155         (sibcall_internal): Likewise.
17156         (sibcall_value_internal): Likewise.
17157         (sibcall): Likewise.  Generate an explicit call using
17158         sibcall_internal.
17159         (sibcall_value): Likewise.
17160         (mov<>): FAIL if a constant operand is not legitimate.
17161         (addsi3_unpsec): New pattern.
17163         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
17164         (ok_for_max_constant): New function.
17165         (gen_safe_add): New function.
17166         (rx_expand_prologue): Use gen_safe_add.
17167         (rx_expand_epilogue): Likewise.
17168         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
17169         UNSPEC CONSTs.
17171 2011-01-21  Jeff Law  <law@redhat.com>
17173         PR tree-optimization/47053
17174         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17175         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17176         statements are deleted.
17177         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
17178         is nonempty, then purge dead edges and cleanup the CFG.
17180 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
17182         PR debug/47402
17183         Temporarily revert:
17184         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
17185         PR debug/47106
17186         * tree-dfa.c (create_var_ann): Mark variable as used.
17188 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
17190         PR middle-end/45566
17191         * except.c (convert_to_eh_region_ranges): Emit queued no-region
17192         notes from other section in hot/cold partitioning even if
17193         last_action is -3.  Increment call_site_base.
17195         PR rtl-optimization/47366
17196         * fwprop.c (forward_propagate_into): Return bool.  If
17197         any changes are made, -fnon-call-exceptions is used and
17198         REG_EH_REGION note is present, call purge_dead_edges
17199         and return true if it purged anything.
17200         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17201         any EH edges were purged.
17203 2011-01-21  Jeff Law  <law@redhat.com>
17205         PR rtl-optimization/41619
17206         * caller-save.c (setup_save_areas): Break out code to determine
17207         which hard regs are live across calls by examining the reload chains
17208         so that it is always used.
17209         Eliminate code which checked REG_N_CALLS_CROSSED.
17211 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
17213         PR tree-optimization/47355
17214         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
17215         NOP has non-debug uses beyond PHIs in new_bb.
17217 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
17219         PR debug/47106
17220         * cfgexpand.c (account_used_vars_for_block): Only account vars
17221         that are annotated as used.
17222         (estimated_stack_frame_size): Don't set TREE_USED.
17223         * tree-dfa.c (create_var_ann): Mark variable as used.
17225 2011-01-21  Richard Guenther  <rguenther@suse.de>
17227         PR middle-end/47395
17228         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
17230 2011-01-21  Richard Guenther  <rguenther@suse.de>
17232         PR tree-optimization/47365
17233         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
17234         (vn_reference_lookup_pieces): Adjust.
17235         (vn_reference_lookup): Likewise.
17236         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
17237         (vn_reference_lookup_3): Only look through kills if in
17238         VN_WALKREWRITE mode.
17239         (vn_reference_lookup_pieces): Adjust.
17240         (vn_reference_lookup): Likewise.
17241         (visit_reference_op_load): Likewise.
17242         (visit_reference_op_store): Likewise.
17243         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
17244         (compute_avail): Likewise.
17245         (eliminate): Likewise.
17247 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
17249         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
17250         DECL_IGNORED_P non-reg vars if they are used.
17252         PR tree-optimization/47391
17253         * varpool.c (const_value_known_p): Return false if
17254         decl is volatile.
17256 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
17258         PR bootstrap/47215
17259         * config/i386/i386.c (ix86_local_alignment): Handle
17260         case for va_list_type_node is nil.
17261         (ix86_canonical_va_list_type): Likewise.
17263 2011-01-21  Alan Modra  <amodra@gmail.com>
17265         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
17266         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
17268 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17270         * config/arm/arm.md (define_attr type): Rename f_load
17271         and f_store to f_fpa_load and f_fpa_store. Update.
17272         (write_conflict): Deal with rename fallout.
17273         (*push_fp_multi): Likewise.
17274         * config/arm/fpa.md (f_load): Use f_fpa_load.
17275         (f_store): Use f_fpa_store.
17276         (*movsf_fpa): Likewise.
17277         (*movdf_fpa): Likewise.
17278         (*movxf_fpa): Likewise.
17279         (*thumb2_movsf_fpa): Likewise.
17280         (*thumb2_movdf_fpa): Likewise.
17281         (*thumb2_movxf_fpa): Likewise.
17282         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
17283         f_loadd and f_stored.
17284         (*thumb2_movdi_vfp): Likewise.
17285         (*thumb2_movsf_vfp): Fix attribute to f_loads.
17286         (*thumb2_movsi_vfp): Likewise.
17287         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
17288         Use f_loads instead of f_load.
17289         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
17291 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
17293         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17294         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
17295         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17296         (xtensa_mode_dependent_address_p): New function.
17297         (constantpool_address_p): Make static. Change return type to bool.
17298         Change argument type to const_rtx. Use CONST_INT_P predicate.
17300 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
17302         PR debug/46583
17303         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
17305 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
17307         PR debug/47283
17308         * cfgexpand.c (expand_debug_expr): Instead of generating
17309         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
17310         etc. handling.
17312 2011-01-20  Richard Guenther  <rguenther@suse.de>
17314         PR middle-end/47370
17315         * tree-inline.c (remap_gimple_op_r): Recurse manually for
17316         the pointer operand of MEM_REFs.
17318 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
17320         PR tree-optimization/46130
17321         * ipa-split.c (consider_split): If return_bb contains non-virtual
17322         PHIs other than for retval or if split_function would not adjust it,
17323         refuse to split.
17325 2011-01-20  Richard Guenther  <rguenther@suse.de>
17327         PR tree-optimization/47167
17328         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17329         Revert previous change, only avoid enumeral type changes.
17331 2011-01-19  Mike Stump  <mikestump@comcast.net>
17333         * doc/tm.texi.in (BRANCH_COST): Englishify.
17334         * doc/tm.texi (BRANCH_COST): Likewise.
17336 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
17338         PR c++/47291
17339         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
17340         (gen_scheduled_generic_parms_dies): New functions.
17341         (gen_struct_or_union_type_die): Schedule template parameters DIEs
17342         generation for the end of CU compilation.
17343         (dwarf2out_finish): Generate template parameters DIEs here.
17345 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
17347         PR debug/46240
17348         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
17349         debug bind stmt on merge edges.
17351 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
17353         PR debug/47079
17354         PR debug/46724
17355         * function.c (instantiate_expr): Instantiate incoming rtl of
17356         implicit arguments, and recurse on VALUE_EXPRs.
17357         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
17358         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
17360 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
17362         * c-parser.c (c_parser_for_statement): Initialize
17363         collection_expression.
17365 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
17367         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
17369 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
17371         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
17372         (LINK_SHLIB_SPEC): Don't use %(link_path).
17373         (SUBTARGET_EXTRA_SPECS): Remove link_path.
17375 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
17377         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
17378         (NO_SHARED_LIB_SUPPORT): Remove.
17379         (LINK_SHLIB_SPEC): Remove one conditional definition.
17381 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
17383         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
17384         %{call_shared}.
17385         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
17386         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
17387         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
17388         %{call_shared} and conditionals on these options not being passed.
17389         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
17390         %{call_shared}.
17392 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
17394         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
17395         simplify.
17397         * ipa-split.c: Spelling fixes.
17399 2011-01-19  Richard Henderson  <rth@redhat.com>
17401         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
17402         (*mulsi3): Likewise.
17404         * longlong.h [__mn10300__] (count_leading_zeros): New.
17405         [__mn10300__] (umul_ppmm, smul_ppmm): New.
17406         [__mn10300__] (add_ssaaaa, subddmmss): New.
17407         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
17408         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
17410 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17412         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
17414 2011-01-19  Richard Henderson  <rth@redhat.com>
17416         * config/mn10300/mn10300.md (addsi3_flags): New.
17417         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
17418         (subsi3_flags, subc_internal, subdi3): New.
17419         (subdi3_internal, *subdi3_degenerate): New.
17420         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
17422         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
17423         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
17424         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
17425         * config/mn10300/mn10300-protos.h: Update.
17426         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
17427         (return_ret): Likewise.  Rename from return_internal_regs.
17428         (return_internal): Remove.
17430         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
17431         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
17432         (mn10300_legitimate_constant_p): Likewise.
17433         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
17434         (mn10300_frame_size): New.
17435         (mn10300_expand_prologue): Use it.
17436         (mn10300_expand_epilogue): Likewise.
17437         (mn10300_initial_offset): Likewise.
17438         * config/mn10300/mn10300-protos.h: Update.
17439         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
17440         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
17441         (prologue, epilogue, return_internal): Tidy output code.
17442         (mn10300_store_multiple_operation, return): Likewise.
17443         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
17444         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
17445         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
17446         (load_pic, am33_load_pic): New.
17447         (mn10300_load_pic0, mn10300_load_pic1): New.
17449         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
17450         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
17451         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
17452         (cc_flags_for_mode, cc_flags_for_code): New.
17453         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
17454         overflow flag is not valid.  Validate that the flags we need
17455         for the comparison are valid.
17456         (mn10300_output_cmp): Remove.
17457         (mn10300_output_add): New.
17458         (mn10300_select_cc_mode): Use cc_flags_for_code.
17459         (mn10300_split_cbranch): New.
17460         (mn10300_match_ccmode): New.
17461         (mn10300_split_and_operand_count): New.
17462         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
17463         to the function.
17464         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
17465         (addsi3): ... here.  Use mn10300_output_add.
17466         (*addsi3_flags): New.
17467         (*am33_subsi3, *mn10300_subsi3): Merge...
17468         (subsi3): ... here.  Use attribute isa.
17469         (*subsi3_flags): New.
17470         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
17471         when possible.
17472         (*am33_andsi3, *mn10300_andsi3): Merge...
17473         (andsi3): ... here.
17474         (*andsi3_flags): New.
17475         (andsi3 splitters): New.
17476         (*am33_iorsi3, *mn10300_iorsi3): Merge...
17477         (iorsi3): ... here.
17478         (*iorsi3_flags): New.
17479         (*am33_xorsi3, *mn10300_xorsi3): Merge...
17480         (xorsi3): ... here.
17481         (*xorsi3_flags): New.
17482         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
17483         (one_cmplsi2): ... here.
17484         (*one_cmplsi2_flags): New.
17485         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
17486         instead of "dax" in constraints.  Use mn10300_split_cbranch.
17487         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
17488         use matching constraints to eliminate a self-comparison.
17489         (*integer_conditional_branch): Rename from integer_conditional_branch.
17490         Use int_mode_flags to match CC_REG.
17491         (*cbranchsi4_btst, *btstsi): New.
17492         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
17493         mn10300_split_cbranch.
17494         (*am33_cmpsf): Rename from am33_cmpsf.
17495         (*float_conditional_branch): Rename from float_conditional_branch.
17496         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
17497         (zero_extendqisi2): ... here.
17498         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
17499         (zero_extendhisi2): ... here.
17500         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
17501         (extendqisi2): ... here.
17502         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
17503         (extendhisi2): ... here.
17504         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
17505         (ashlsi3): ... here.
17506         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
17507         (lshrsi3): ... here.
17508         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
17509         (ashrsi3): ... here.
17510         (consecutive add peephole): Remove.
17511         * config/mn10300/predicates.md (label_ref_operand): New.
17512         (int_mode_flags): New.
17513         (CCZN_comparison_operator): New.
17515         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
17516         (throughput_42_latency_43): New reservation.
17517         (mulsidi3, umulsidi3): New expanders.
17518         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
17519         the MDR register to allocation; separately allocate the low and
17520         high parts of the DImode result.
17521         (umulsidi3_internal): Similarly.
17522         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
17523         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
17524         (udivsi3, umodsi3): Remove.
17525         (udivmodsi4, divmodsi4): New expanders.
17526         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
17527         (*divmodsi4): Simiarly.
17528         (ext_internal): New.
17530         * config/mn10300/constraints.md ("z"): New constraint.
17531         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
17532         (FIXED_REGISTERS): Don't fix MDR.
17533         (CALL_USED_REGSITERS): Reformat nicely.
17534         (REG_ALLOC_ORDER): Add MDR.
17535         (enum regclass): Add MDR_REGS.
17536         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
17537         (IRA_COVER_CLASSES): Add MDR_REGS.
17538         (REGNO_REG_CLASS): Handle MDR_REG.
17539         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
17540         (mn10300_register_move_cost): Likewise.
17541         * config/mn10300/mn10300.md (MDR_REG): New.
17542         (*movsi_internal): Handle moves to/from MDR_REGS.
17544         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
17545         POST_MODIFY.
17546         (mn10300_secondary_reload): Tidy combination reload classes.
17547         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
17548         addresses for AM33.  Allow symbolic offsets for reg+imm.
17549         (mn10300_regno_in_class_p): New.
17550         (mn10300_legitimize_reload_address): New.
17551         * config/mn10300/mn10300.h (enum reg_class): Remove
17552         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
17553         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
17554         SP_OR_GENERAL_REGS.
17555         (REG_CLASS_NAMES): Update to match.
17556         (REG_CLASS_CONTENTS): Likewise.
17557         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
17558         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
17559         (REGNO_IN_RANGE_P): Remove.
17560         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
17561         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
17562         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
17563         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
17564         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
17565         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
17566         (REGNO_GENERAL_P): New.
17567         (HAVE_POST_MODIFY_DISP): New.
17568         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
17569         (LEGITIMIZE_RELOAD_ADDRESS): New.
17570         * config/mn10300/mn10300-protos.h: Update.
17572         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
17573         DATA_REGS for AM33 stack-pointer destination.
17574         (mn10300_preferred_output_reload_class): Likewise.
17575         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
17576         into a form appropriate for ...
17577         (TARGET_SECONDARY_RELOAD): New.
17578         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
17579         * config/mn10300/mn10300-protos.h: Update.
17580         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
17581         reload_insi; use the "A" constraint for the scratch; handle AM33
17582         moves of sp to non-address registers.
17584         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
17585         (*movqi_internal): ... here.
17586         (*am33_movhi, *mn10300_movhi): Merge into...
17587         (*movhi_internal): ... here.
17588         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
17589         as the source/destination of moves from/to SP.
17590         (movsf): Only allow for AM33-2.
17591         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
17592         any integer constant constraint.  Only allow for AM33-2.  Tidy
17593         all of the alternative outputs.
17594         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
17595         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
17596         for MN103.
17597         (udivsi3, umodsi3): New patterns for MN103 only.
17599 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
17601         * doc/tm.texi.in: Spell out that a lack of register class unions
17602         can lead to ICEs.
17603         * doc/tm.texi: Regenerate.
17605 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
17607         PR rtl-optimization/47337
17608         * dce.c (check_argument_store): New function.
17609         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
17611         PR tree-optimization/47290
17612         * tree-eh.c (infinite_empty_loop_p): New function.
17613         (cleanup_empty_eh): Use it.
17615 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
17617         PR target/46997
17618         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
17619         (a64_expand_widen_sum): Ditto.
17620         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
17621         (vec_extract_evenodd_help): Ditto.
17622         (vec_extract_evenv4hi): Ditto.
17623         (vec_extract_oddv4hi): Ditto.
17624         (vec_extract_evenv2si): Ditto.
17625         (vec_extract_oddv2si): Ditto.
17626         (vec_extract_evenv2sf): Ditto.
17627         (vec_extract_oddv2sf): Ditto.
17628         (vec_pack_trunc_v4hi: Ditto.
17629         (vec_pack_trunc_v2si): Ditto.
17630         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
17631         (vec_interleave_highv8qi): Ditto.
17632         (mix1_r): Ditto.
17633         (vec_extract_oddv8qi): Ditto.
17634         (vec_interleave_lowv4hi): Ditto.
17635         (vec_interleave_highv4hi): Ditto.
17636         (vec_interleave_lowv2si): Ditto.
17637         (vec_interleave_highv2si): Ditto.
17639 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17641         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
17642         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
17643         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
17644         (pa_c_mode_for_suffix): New.
17645         (TARGET_EXPAND_BUILTIN): Define.
17646         (TARGET_C_MODE_FOR_SUFFIX): Define.
17647         (pa_builtins): Define.
17648         (pa_init_builtins): Register __float128 type and init new support
17649         builtins.
17650         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
17651         * config/pa/quadlib.c (_U_Qfcopysign): New.
17653 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
17655         PR middle-end/46894
17656         * explow.c (allocate_dynamic_stack_space): Do not assume more than
17657         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
17658         are defined.
17660 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17662         PR tree-optimization/47179
17663         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
17664         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
17666 2011-01-18  Richard Guenther  <rguenther@suse.de>
17668         PR rtl-optimization/47216
17669         * emit-rtl.c: Include tree-flow.h.
17670         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
17671         of replicating it with different semantics.
17672         * Makefile.in (emit-rtl.o): Adjust.
17674 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17676         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
17677         (cortex_a9_dp): Handle neon types correctly.
17679 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
17681         PR rtl-optimization/47299
17682         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
17683         subtarget.  Use normal multiplication if both operands are constants.
17684         * expmed.c (expand_widening_mult): Don't try to optimize constant
17685         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
17686         before using it.
17688 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17690         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
17691         spacing after 'e.g.', typos, comma, hyphenation.
17693 2011-01-17  Richard Henderson  <rth@redhat.com>
17695         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
17696         (rx_restricted_mem_operand): New.
17697         (rx_shift_operand): Use register_operand.
17698         (rx_source_operand, rx_compare_operand): Likewise.
17699         * config/rx/rx.md (addsi3_flags): New expander.
17700         (adddi3): Rewrite as expander.
17701         (adc_internal, *adc_flags, adddi3_internal): New patterns.
17702         (subsi3_flags): New expander.
17703         (subdi3): Rewrite as expander.
17704         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
17706         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
17707         (rx_init_builtins): Remove sat builtin.
17708         (rx_expand_builtin): Likewise.
17709         * config/rx/rx.md (ssaddsi3): New.
17710         (*sat): Rename from sat.  Represent the CC_REG input.
17712         * config/rx/predicates.md (rshift_operator): New.
17713         * config/rx/rx.c (rx_expand_insv): Remove.
17714         * config/rx/rx-protos.h: Update.
17715         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
17716         operand to the canonical position.
17717         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
17718         (*bitclr, *bitclr_in_memory): Similarly.
17719         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
17720         (insv): Retain the zero_extract in the expansion.
17722         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
17723         (bswaphi2, bitinvert, revw): Likewise.
17725         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
17726         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
17727         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
17728         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
17729         (bitset, bitset_in_memory): Likewise.
17730         (bitinvert, bitinvert_in_memory): Likewise.
17731         (bitclr, bitclr_in_memory): Likewise.
17732         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
17733         (rx_strend, rx_cmpstrn): Likewise.
17734         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
17735         (bitop peep2 patterns): Remove.
17737         * config/rx/rx.c (rx_match_ccmode): New.
17738         * config/rx/rx-protos.h: Update.
17739         * config/rx/rx.md (abssi2): Clobber, don't set flags.
17740         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
17741         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
17742         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
17743         (fix_truncsfsi2, floatsisf2): Likewise.
17744         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
17745         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
17746         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
17747         (*subsi3_flags, *xorsi3_flags): New.
17749         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
17751         * config/rx/rx.c (rx_print_operand): Remove workaround for
17752         unsplit comparison operations.
17754         * config/rx/rx.md (movsicc): Split after reload.
17755         (*movsicc): Merge *movsieq and *movsine via match_operator.
17756         (*stcc): New pattern.
17758         * config/rx/rx.c (rx_float_compare_mode): Remove.
17759         * config/rx/rx.h (rx_float_compare_mode): Remove.
17760         * config/rx/rx.md (cstoresi4): Split after reload.
17761         (*sccc): New pattern.
17763         * config/rx/predicates.md (label_ref_operand): New.
17764         (rx_z_comparison_operator): New.
17765         (rx_zs_comparison_operator): New.
17766         (rx_fp_comparison_operator): New.
17767         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
17768         Validate that the flags are set properly for the comparison.
17769         (rx_gen_cond_branch_template): Remove.
17770         (rx_cc_modes_compatible): Remove.
17771         (mode_from_flags): New.
17772         (flags_from_code): Rename from flags_needed_for_conditional.
17773         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
17774         (rx_select_cc_mode): Likewise.
17775         (rx_split_fp_compare): New.
17776         (rx_split_cbranch): New.
17777         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
17778         (*cbranchsi4): Use match_operator and rx_split_cbranch.
17779         (*cbranchsf4): Similarly.
17780         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
17781         match_operator and rx_split_cbranch.
17782         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
17783         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
17784         (*cmpsi): Rename from cmpsi.
17785         (*tstsi): Rename from tstsi.
17786         (*cmpsf): Rename from cmpsf; use CC_Fmode.
17787         (*conditional_branch): Rename from conditional_branch.
17788         (*reveresed_conditional_branch): Remove.
17789         (b<code>): Remove expander.
17790         * config/rx/rx-protos.h: Update.
17792         * config/rx/rx.c (rx_compare_redundant): Remove.
17793         * config/rx/rx.md (cmpsi): Don't use it.
17794         * config/rx/rx-protos.h: Update.
17796         * config/rx/rx-modes.def (CC_F): New mode.
17797         * config/rx/rx.c (rx_select_cc_mode): New.
17798         * config/rx/rx.h (SELECT_CC_MODE): Use it.
17799         * config/rx/rx-protos.h: Update.
17801 2011-01-17  Richard Henderson  <rth@redhat.com>
17803         * except.c (dump_eh_tree): Fix stray ; after for statement.
17805 2011-01-17  Richard Guenther  <rguenther@suse.de>
17807         PR tree-optimization/47313
17808         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
17809         handling before copying the body.  Properly deal with
17810         by-reference result in SSA form.
17812 2011-01-17  Ian Lance Taylor  <iant@google.com>
17814         PR target/47219
17815         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
17816         (struct_value_alias_set): Don't define.
17817         (sparc_option_override): Don't set sparc_sr_alias_set and
17818         struct_value_alias_set.
17819         (save_or_restore_regs): Use gen_frame_mem rather than calling
17820         set_mem_alias_set.
17821         (sparc_struct_value_rtx): Likewise.
17823 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
17825         PR target/47318
17826         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
17827         (_mm_maskstore_pd): Likewise.
17828         (_mm_maskload_ps): Likewise.
17829         (_mm_maskstore_ps): Likewise.
17830         (_mm256_maskload_pd): Change mask to __m256i.
17831         (_mm256_maskstore_pd): Likewise.
17832         (_mm256_maskload_ps): Likewise.
17833         (_mm256_maskstore_ps): Likewise.
17835         * config/i386/i386-builtin-types.def: Updated.
17836         (ix86_expand_special_args_builtin): Likewise.
17838         * config/i386/i386.c (bdesc_special_args): Update
17839         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
17840         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
17841         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
17842         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
17844         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
17845         Use <avxpermvecmode> on mask register.
17846         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
17848 2011-01-17  Olivier Hainque  <hainque@adacore.com>
17849             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
17850             Eric Botcazou  <ebotcazou@adacore.com>
17852         PR target/46655
17853         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
17854         if <= USHRT_MAX in 32-bit mode.
17856 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17858         * doc/install.texi (Configuration, Specific): Wrap long
17859         lines in examples.  Allow line wrapping in long options
17860         and URLs where beneficial for PDF output.
17862 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
17864         * config/mips/mips.c (mips_classify_symbol): Don't return
17865         SYMBOL_PC_RELATIVE for nonlocal labels.
17867 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
17869         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
17871 2011-01-15  Jan Hubicka  <jh@suse.cz>
17873         PR tree-optimization/47276
17874         * ipa.c (function_and_variable_visibility): Do not try to mark alias
17875         declarations as needed.
17877 2011-01-15  Martin Jambor  <mjambor@suse.cz>
17879         * common.opt (fdevirtualize): New flag.
17880         * doc/invoke.texi (Option Summary): Document it.
17881         * opts.c (default_options_table): Add devirtualize flag.
17882         * ipa-prop.c (detect_type_change): Return immediately if
17883         devirtualize flag is not set.
17884         (detect_type_change_ssa): Likewise.
17885         (compute_known_type_jump_func): Likewise.
17886         (ipa_analyze_virtual_call_uses): Likewise.
17888 2011-01-14  Martin Jambor  <mjambor@suse.cz>
17890         PR tree-optimization/45934
17891         PR tree-optimization/46302
17892         * ipa-prop.c (type_change_info): New type.
17893         (stmt_may_be_vtbl_ptr_store): New function.
17894         (check_stmt_for_type_change): Likewise.
17895         (detect_type_change): Likewise.
17896         (detect_type_change_ssa): Likewise.
17897         (compute_complex_assign_jump_func): Check for dynamic type change.
17898         (compute_complex_ancestor_jump_func): Likewise.
17899         (compute_known_type_jump_func): Likewise.
17900         (compute_scalar_jump_functions): Likewise.
17901         (ipa_analyze_virtual_call_uses): Likewise.
17902         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
17904 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
17906         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
17907         * config/i386/i386.opt (msse5): New Alias.
17909 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
17911         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17912         * config/sparc/linux64.h (CC1_SPEC): Likewise.
17913         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17914         * config/sparc/sparc.h (CC1_SPEC): Likewise.
17916 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
17918         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
17919         -mcpu options.
17920         * config/sparc/linux64.h (CC1_SPEC): Likewise.
17921         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17922         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
17923         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
17924         Likewise.
17925         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
17927 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
17929         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
17931 2011-01-14  Mike Stump  <mikestump@comcast.net>
17933         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
17934         * config/fr30/fr30.md: Likweise
17935         (movsi_push): Likewise.
17936         (movsi_pop): Likewise.
17937         (enter_func): Likewise.
17938         * config/moxie/moxie.md (movsi_push): Likewise.
17939         (movsi_pop): Likewise.
17941 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
17943         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
17944         %{no_archive} %{exact_version}.
17945         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
17946         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
17947         %{no_archive} %{exact_version}.
17948         * config/mips/openbsd.h (LINK_SPEC): Likewise.
17949         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
17950         * config/mips/vxworks.h: Likewise.
17952 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
17954         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
17956 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
17958         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
17959         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
17961 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
17963         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
17964         -nodefaultlib.
17966 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
17968         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
17969         for mcpu not cpu.
17970         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
17971         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
17972         not cpu.
17973         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
17974         Don't handle -shlib.
17976 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
17978         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
17979         (CC1_SPEC): Don't handle -profile.
17981 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
17983         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
17984         * config/mips/mips.h (CC1_SPEC): Likewise.
17986 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
17988         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
17989         * config/mips/mips.h (CC1_SPEC): Likewise.
17991 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
17993         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
17994         * config/m32r/linux.h (LINK_SPEC): Likewise.
17995         * config/mips/linux.h (LINK_SPEC): Likewise.
17996         * config/mips/linux64.h (LINK_SPEC): Likewise.
17997         * config/sparc/linux.h (LINK_SPEC): Likewise.
17998         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
17999         LINK_SPEC): Likewise.
18000         * config/xtensa/linux.h (LINK_SPEC): Likewise.
18002 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18004         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18005         %{version:-v}.
18006         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18008 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18010         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18011         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18013 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18015         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18017 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18019         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18020         supports -Bstatic/-Bdynamic.
18021         * configure: Regenerate.
18023 2011-01-14  Jan Hubicka  <jh@suse.cz>
18024             Jack Howarth  <howarth@bromo.med.uc.edu>
18026         PR target/46037
18027         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18028         when checking debug_info_level. Test write_symbols instead of
18029         debug_hooks->var_location when setting flag_var_tracking_uninit.
18031 2011-01-14  Richard Guenther  <rguenther@suse.de>
18033         PR tree-optimization/47179
18034         * target.def (ref_may_alias_errno): New target hook.
18035         * targhooks.h (default_ref_may_alias_errno): Declare.
18036         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18037         (default_ref_may_alias_errno): New function.
18038         * target.h (struct ao_ref_s): Declare.
18039         * tree-ssa-alias.c: Include target.h.
18040         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18041         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18042         (targhooks.o): Likewise.
18043         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18044         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18046 2011-01-14  Richard Guenther  <rguenther@suse.de>
18048         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
18050 2011-01-14  Richard Guenther  <rguenther@suse.de>
18052         PR tree-optimization/47280
18053         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18054         return CFG changes.
18055         (tree_ssa_forward_propagate_single_use_vars): Deal with
18056         CFG changes from associate_plusminus.
18058 2011-01-14  Richard Guenther  <rguenther@suse.de>
18060         PR middle-end/47281
18061         Revert
18062         2011-01-11  Richard Guenther  <rguenther@suse.de>
18064         PR tree-optimization/46076
18065         * tree-ssa.c (useless_type_conversion_p): Conversions from
18066         unprototyped to empty argument list function types are useless.
18068 2011-01-14  Richard Guenther  <rguenther@suse.de>
18070         PR tree-optimization/47286
18071         * tree-ssa-structalias.c (new_var_info): Register variables are global.
18073 2011-01-14  Martin Jambor  <mjambor@suse.cz>
18075         PR middle-end/46823
18076         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18078 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
18080         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18081         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18082         * config/xtensa/xtensa.c (xtensa_libcall_value,
18083         xtensa_function_value_regno_p): New functions.
18084         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18086 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
18088         PR c++/47213
18089         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18090         PE specific hook.
18091         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18092         New function prototype.
18093         * config/i386/winnt.c (i386_pe_assemble_visibility):
18094         Warn only if attribute was specified by user.
18096 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
18098         PR target/47251
18099         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18100         floating point.
18101         (floatunsdidf2_fcfidu): Ditto.
18103 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18105         * config/s390/s390.c (print_operand_address): Replace 'error' with
18106         'output_operand_lossage'.
18107         (print_operand): Likewise.
18109 2011-01-13  Jeff Law  <law@redhat.com>
18111         PR rtl-optimization/39077
18112         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18113         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18114         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18115         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18116         * gcse.c (prune_insertions_deletions): New function.
18117         (compute_pre_data): Use it.
18119 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
18121         PR debug/PR46973
18122         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18123         static function.
18124         (prune_unused_types_mark): Use it.
18126 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
18128         PR rtl-optimization/45352
18129         * sel-sched.c: Update copyright years.
18130         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
18131         in the advancing loop when we have issued issue_rate insns.
18133 2011-01-12  Richard Henderson  <rth@redhat.com>
18135         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18136         (TARGET_MD_ASM_CLOBBERS): New.
18138         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18139         (TARGET_DELEGITIMIZE_ADDRESS): New.
18141         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18142         (clzsi2, *bsch): New patterns.
18144         * config/mn10300/mn10300.md (INT): New mode iterator.
18145         (*mov<INT>_clr): New pattern, and peep2 to generate it.
18147         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18148         flag_split_wide_types.
18150         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18151         (mn10300_trampoline_init): Rewrite without a template, an immediate
18152         load and a direct branch.
18153         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18155 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
18157         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18158         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18159         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18160         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18162 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
18164         PR debug/47209
18165         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18166         of type.
18168 2011-01-12  Jan Hubicka  <jh@suse.cz>
18170         PR driver/47244
18171         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18172         (PLUGIN_COND_CLOSE): New macro.
18173         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18175 2011-01-12  Richard Guenther  <rguenther@suse.de>
18177         PR lto/47259
18178         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18179         register variables in a MEM_REF.
18181 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
18183         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18184         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18185         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18186         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18187         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18188         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18189         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18190         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18191         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18192         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18193         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18194         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18195         * config/gnu-user.h: New.  Copied from linux.h.
18196         (LINUX_TARGET_STARTFILE_SPEC): Rename to
18197         GNU_USER_TARGET_STARTFILE_SPEC.
18198         (LINUX_TARGET_ENDFILE_SPEC): Rename to
18199         GNU_USER_TARGET_ENDFILE_SPEC.
18200         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18201         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18202         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18203         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18204         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18205         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18206         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18207         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18208         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18209         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18210         * config/arm/linux-eabi.h (CC1_SPEC): Use
18211         GNU_USER_TARGET_CC1_SPEC.
18212         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18213         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18214         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
18215         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
18216         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
18217         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
18218         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
18219         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
18221 2011-01-12  Richard Guenther  <rguenther@suse.de>
18223         PR other/46946
18224         * doc/invoke.texi (ffast-math): Document it is turned on
18225         with -Ofast.
18227 2011-01-12  Jan Hubicka  <jh@suse.cz>
18229         PR tree-optimization/47233
18230         * opts.c (common_handle_option): Disable ipa-reference with profile
18231         feedback.
18233 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18235         * c-parser.c (c_parser_objc_at_property_declaration): Improved
18236         error message.
18238 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18240         * c-parser.c (c_lex_one_token): Updated and reindented some
18241         comments.  No changes in code.
18243 2011-01-11  Ian Lance Taylor  <iant@google.com>
18245         * godump.c (go_output_var): Don't output the variable if there is
18246         already a type with the same name.
18248 2011-01-11  Ian Lance Taylor  <iant@google.com>
18250         * godump.c (go_format_type): Don't generate float80.
18252 2011-01-11  Richard Henderson  <rth@redhat.com>
18254         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
18255         declaration.  Rewrite for both speed and size.
18256         (mn10300_address_cost_1): Remove.
18257         (mn10300_register_move_cost): New.
18258         (mn10300_memory_move_cost): New.
18259         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
18260         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
18261         extensions, shifts, BSWAP, CLZ.
18262         (mn10300_wide_const_load_uses_clr): Remove.
18263         (TARGET_REGISTER_MOVE_COST): New.
18264         (TARGET_MEMORY_MOVE_COST): New.
18265         * config/mn10300/mn10300-protos.h: Update.
18266         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
18268         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
18269         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
18270         * config/mn10300/mn10300-protos.h: Update.
18271         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
18272         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
18273         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
18274         (*test_int_bitfield, *test_byte_bitfield): Remove.
18275         (*bit_test, *subreg_bit_test): Remove.
18276         * config/mn10300/predicates.md (const_8bit_operand): Remove.
18278         * config/mn10300/constraints.md ("c"): Rename from "A".
18279         ("A", "D"): New constraint letters.
18280         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
18281         (fmssf4, fnmasf4, fnmssf4): Likewise.
18283         * config/mn10300/mn10300.md (isa): New attribute.
18284         (enabled): New attribute.
18286         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
18287         (abssf2, negsf2): Define only for hardware fp.
18288         (sqrtsf2): Reformat.
18289         (addsf3, subsf3, mulsf3): Merge expander and insn.
18291         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
18292         (DEBUGGER_AUTO_OFFSET): Remove.
18293         (DEBUGGER_ARG_OFFSET): Remove.
18295         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
18296         Emit register stores with the same offsets as the hardware.
18297         (mn10300_store_multiple_operation): Don't check that the register
18298         save offsets are monotonic.
18299         * config/mn10300/mn10300-protos.h: Update.
18301         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
18303         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
18304         in terms of the value on the stack, not the MDR register.
18306 2011-01-11  Jan Hubicka  <jh@suse.cz>
18308         PR lto/45721
18309         PR lto/45375
18310         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
18311         (symbol_alias_set_destroy, symbol_alias_set_contains,
18312         propagate_aliases_backward): Declare.
18313         * lto-streamer-out.c (struct sets): New sturcture.
18314         (trivally_defined_alias): New function.
18315         (output_alias_pair_p): Rewrite.
18316         (output_unreferenced_globals): Fix output of alias pairs.
18317         (produce_symtab): Likewise.
18318         * ipa.c (function_and_variable_visibility): Set weak alias destination
18319         as needed in lto.
18320         * varasm.c (symbol_alias_set_t): Remove.
18321         (symbol_alias_set_destroy): Export.
18322         (propagate_aliases_forward, propagate_aliases_backward): New functions
18323         based on ...
18324         (compute_visible_aliases): ... this one; remove.
18325         (trivially_visible_alias): New
18326         (trivially_defined_alias): New.
18327         (remove_unreachable_alias_pairs): Rewrite.
18328         (finish_aliases_1): Reorganize code checking if alias is defined.
18329         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
18330         in LTO mode.
18332 2011-01-11  Richard Guenther  <rguenther@suse.de>
18334         PR tree-optimization/46076
18335         * tree-ssa.c (useless_type_conversion_p): Conversions from
18336         unprototyped to empty argument list function types are useless.
18338 2011-01-11  Richard Guenther  <rguenther@suse.de>
18340         PR middle-end/45235
18341         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
18342         volatile MEMs as MEM_READONLY_P.
18344 2011-01-11  Richard Guenther  <rguenther@suse.de>
18346         PR tree-optimization/47239
18347         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
18349 2011-01-11  Jeff Law  <law@redhat.com>
18351         PR tree-optimization/47086
18352         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
18353         IVs from statements that might throw.
18355 2011-01-10  Jan Hubicka  <jh@suse.cz>
18357         PR lto/45375
18358         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
18360 2011-01-10  Jan Hubicka  <jh@suse.cz>
18362         PR lto/45375
18363         * profile.c (read_profile_edge_counts): Ignore profile inconistency
18364         when correcting profile.
18366 2011-01-10  Jan Hubicka  <jh@suse.cz>
18368         PR lto/46083
18369         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
18370         DECL_FINI_PRIORITY.
18371         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
18372         Restore DECL_FINI_PRIORITY.
18374 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18376         * doc/gimple.texi: Fix quoting of multi-word return values in
18377         @deftypefn statements.  Ensure presence of return value.  Wrap
18378         overlong @deftypefn lines.
18379         (is_gimple_operand, is_gimple_min_invariant_address): Remove
18380         descriptions of removed functions.
18381         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
18382         of multi-word return value in @deftypefn statement.
18384 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18386         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
18387         (Conditional Expressions, Logical Operators)
18388         (Statement and operand traversals): Do not indent smallexample
18389         code.  Fix duplicate function argument in example.
18391 2011-01-10  Jeff Law  <law@redhat.com>
18393         PR tree-optimization/47141
18394         * ipa-split.c (split_function): Handle case where we are
18395         returning a value and the return block has a virtual operand phi.
18397 2011-01-10  Jan Hubicka  <jh@suse.cz>
18399         PR tree-optimization/47234
18400         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
18401         (pass_feedback_split_functions): Declare.
18402         * passes.c (init_optimization_passes): Add ipa-split as subpass of
18403         tree-profile.
18404         * ipa-split.c (gate_split_functions): Update comments; disable
18405         split-functions for profile_arc_flag and branch_probabilities.
18406         (gate_feedback_split_functions): New function.
18407         (execute_feedback_split_functions): New function.
18408         (pass_feedback_split_functions): New global var.
18410 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
18412         PR lto/46760
18413         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
18414         calling gimple_call_set_cannot_inline.
18416 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
18418         * config/darwin-sections.def: Remove unused section.
18420 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
18422         PR c++/47218
18423         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
18425 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
18427         PR objc/47232
18428         * c-parser.c (c_parser_declaration_or_fndef): Improved
18429         error message.
18431 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
18433         * config/i386/winnt.c (i386_pe_start_function): Make sure
18434         to switch back to function's section.
18436 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
18438         PR gcc/46902
18439         PR testsuite/46912
18440         * plugin.c: Move include of dlfcn.h from here...
18441         * system.h: ... to here.
18443 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18445         * doc/cpp.texi (C++ Named Operators): Fix markup for header
18446         file name.
18447         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
18448         two extra empty pages in PDF output.
18450 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
18452         PR objc/47078
18453         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
18454         for error recovery purposes behave as if it was not specified so
18455         that the default type is usd.
18457 2011-01-07  Jan Hubicka  <jh@suse.cz>
18459         PR tree-optmization/46469
18460         * ipa.c (function_and_variable_visibility): Clear needed flags on
18461         nodes with external decls; handle weakrefs merging correctly.
18463 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
18465         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
18466         not false.
18468 2011-01-07  Jan Hubicka  <jh@suse.cz>
18470         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
18471         and no longer claim that gold is required for linker plugin.
18472         * configure: Regenerate.
18473         * gcc.c (PLUGIN_COND): New macro.
18474         (LINK_COMMAND_SPEC): Use it.
18475         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
18476         * config.in (HAVE_LTO_PLUGIN): New.
18477         * configure.ac (--with-lto-plugin): New parameter; autodetect
18478         HAVE_LTO_PLUGIN.
18480 2011-01-07  Jan Hubicka  <jh@suse.cz>
18482         PR tree-optimization/46367
18483         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
18484         when we can update original.
18485         (cgraph_mark_inline_edge): Sanity check.
18486         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
18488 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18490         * config/spu/spu.h (ASM_COMMENT_START): Define.
18492 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
18494         PR driver/42445
18495         * gcc.c (%>S): New.
18496         (SWITCH_KEEP_FOR_GCC): Likewise.
18497         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
18498         (do_spec_1): Handle "%>".
18500         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
18502 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
18504         PR target/47201
18505         * config/i386/i386.c (ix86_delegitimize_address): If
18506         simplify_gen_subreg fails, return orig_x.
18508         PR bootstrap/47187
18509         * value-prof.c (gimple_stringop_fixed_value): Handle
18510         lhs of the call properly.
18512 2011-01-07  Jan Hubicka  <jh@suse.cz>
18514         PR lto/45375
18515         * lto-opt.c (lto_reissue_options): Set flag_shlib.
18517 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
18519         * target.def (function_switched_text_sections): New hook.
18520         * doc/tm.texi: Regenerated.
18521         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18522         * final.c (default_function_switched_text_sections): New.
18523         (final_scan_insn): Call function_switched_text_sections when a
18524         mid-function section change occurs.
18525         * output.h (default_function_switched_text_sections): Declare.
18526         * config/darwin-protos.h (darwin_function_switched_text_sections):
18527         Likewise.
18528         * config/darwin.c (darwin_function_switched_text_sections): New.
18529         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18531 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
18533         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
18534         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
18535         the secondary code fragment when outputting for DWARF == 2.
18537 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
18539         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18540         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
18541         Remove.
18542         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
18543         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18545 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
18547         PR debug/46704
18548         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
18549         when it is not empty.
18551 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
18553         Bobcat Enablement
18554         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
18555         (case ${target}): Add btver1.
18556         * config/i386/driver-i386.c (host_detect_local_cpu): Let
18557         -march=native recognize btver1 processors.
18558         * config/i386/i386-c.c (ix86_target_macros_internal): Add
18559         btver1 def_and_undef
18560         * config/i386/i386.c (struct processor_costs btver1_cost): New
18561         btver1 cost table.
18562         (m_BTVER1): New definition.
18563         (m_AMD_MULTIPLE): Includes m_BTVER1.
18564         (initial_ix86_tune_features): Add btver1 tune.
18565         (processor_target_table): Add btver1 entry.
18566         (static const char *const cpu_names): Add btver1 entry.
18567         (software_prefetching_beneficial_p): Add btver1.
18568         (ix86_option_override_internal): Add btver1 instruction sets.
18569         (ix86_issue_rate): Add btver1.
18570         (ix86_adjust_cost): Add btver1.
18571         * config/i386/i386.h (TARGET_BTVER1): New definition.
18572         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
18573         (enum processor_type): Add PROCESSOR_BTVER1.
18574         * config/i386/i386.md (define_attr "cpu"): Add btver1.
18576 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18578         PR target/43309
18579         * config/i386/i386.c (legitimize_tls_address)
18580         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
18581         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
18582         (tls_initial_exec_64_sun): New pattern.
18584 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
18586         * doc/invoke.texi (Overall Options): Improve wording and markup
18587         of the description of -wrapper.
18589 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
18591         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
18592         rdynamic, threads): New Driver options.
18594 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18596         PR target/38118
18597         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
18598         if coming from .tdata.
18599         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18601 2011-01-06  Jan Hubicka  <jh@suse.cz>
18603         PR lto/47188
18604         * collect2.c (main): Do not enable LTOmode when plugin is active.
18606 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18608         PR other/45915
18609         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
18610         --version output if supported.
18611         * configure: Regenerate.
18613 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
18615         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
18616         Driver options.
18618 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
18620         PR c/47150
18621         * c-convert.c (convert): When converting a complex expression
18622         other than COMPLEX_EXPR to a different complex type, ensure
18623         c_save_expr is called instead of save_expr, unless in_late_binary_op.
18624         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
18625         when converting COMPLEX_TYPE.
18627 2011-01-06  Ira Rosen  <irar@il.ibm.com>
18629         PR tree-optimization/47139
18630         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
18631         only the last reduction value is used outside the loop.  Update
18632         documentation.
18634 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
18636         * config/rtems.opt: New.
18637         * config.gcc (*-*-rtems*): Use rtems.opt.
18639 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
18641         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
18642         processors do not support 3DNow instructions.
18644 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18646         * config/spu/spu.c (spu_option_override): Set parameter
18647         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
18649 2011-01-05  Jan Hubicka  <jh@suse.cz>
18651         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
18652         at the command line.
18654 2011-01-05  Martin Jambor  <mjambor@suse.cz>
18656         PR lto/47162
18657         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
18658         deltas on streamed outgoing edges.
18659         (output_node_opt_summary): Output info for outgoing edges only when
18660         the node is in new parameter set.
18661         (output_cgraph_opt_summary): New parameter set, passed to the two
18662         aforementioned functions.  Update its forward declaration and its
18663         callee too.
18665 2011-01-05  Tom Tromey  <tromey@redhat.com>
18667         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
18668         operator to c_finish_omp_atomic.
18669         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
18670         (build_unary_op): Update.
18671         (build_modify_expr): Update.
18672         (build_asm_expr): Update.
18674 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18676         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
18677         newly inserted insns.
18678         (pad_bb): Likewise.
18679         (spu_emit_branch_hint): Likewise.
18680         (insert_hbrp_for_ilb_runout): Likewise.
18681         (spu_machine_dependent_reorg): Call df_finish_pass after
18682         schedule_insns returns.
18684 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18686         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
18688 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
18690         PR tree-optimization/47005
18691         * tree-sra.c (struct access): Add 'non_addressable' bit.
18692         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
18693         (decide_one_param_reduction): Return 0 if the parameter is passed by
18694         reference and one of the accesses in the group is non_addressable.
18696 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
18698         PR tree-optimization/47056
18699         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
18700         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
18701         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
18703 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
18705         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
18706         initializer.  Skip view conversions from aggregate types.
18708 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
18710         PR bootstrap/47055
18711         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
18713 2011-01-04  Philipp Thomas  <pth@suse.de>
18715         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
18716         obvious typo.
18718 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18720         * function.c (thread_prologue_and_epilogue_insns): Do not crash
18721         on empty epilogue sequences.
18723 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
18725         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
18726         non-static): New Driver options.
18728 2011-01-04  Jie Zhang  <jie@codesourcery.com>
18730         PR driver/47137
18731         * gcc.c (default_compilers[]): Set combinable field to 0
18732         for all assembly languages.
18734 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
18736         * config/mips/loongson3a.md: New file.
18737         * config/mips/mips.md: Include loongson3a.md.
18738         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
18739         TUNE_LOONGSON_3A.
18741 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
18743         PR middle-end/47017
18744         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
18745         instead of convert_memory_address_addr_space on the base expression.
18747 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18749         * config/spu/spu.c (spu_option_override): Update error text
18750         for bad -march= / -mtune= values.
18752 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18754         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
18755         if branch-hint optimization will be performed.
18757 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
18759         PR tree-optimization/47148
18760         * ipa-split.c (split_function): Convert arguments to
18761         DECL_ARG_TYPE if possible.
18763         PR tree-optimization/47155
18764         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
18765         when computing uns.
18767         PR rtl-optimization/47157
18768         * combine.c (try_combine): If undobuf.other_insn becomes
18769         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
18770         and set *new_direct_jump_p too.
18772 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
18774         PR tree-optimization/47021
18775         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
18777 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
18779         * gcc.c (process_command): Update copyright notice dates.
18780         * gcov.c (print_version): Likewise.
18781         * gcov-dump.c (print_version): Likewise.
18782         * mips-tfile.c (main): Likewise.
18783         * mips-tdump.c (main): Likewise.
18785 2011-01-03  Martin Jambor  <mjambor@suse.cz>
18787         PR tree-optimization/46801
18788         * tree-sra.c (type_internals_preclude_sra_p): Check whether
18789         aggregate fields start at byte boundary instead of the bit-field flag.
18791 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
18793         PR driver/47137
18794         * gcc.c (main): Revert revision 168407.
18796 2011-01-03  Martin Jambor  <mjambor@suse.cz>
18798         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
18800 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18802         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
18803         vector optab to expand vector/scalar shift, update gimple to vector.
18805 2011-01-03  Martin Jambor  <mjambor@suse.cz>
18807         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
18808         a thunk.
18810 2011-01-03  Martin Jambor  <mjambor@suse.cz>
18812         PR tree-optimization/46984
18813         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
18814         HOST_WIDE_INT.
18815         (cgraph_create_indirect_edge): Fixed line length.
18816         (cgraph_indirect_call_info): Declare.
18817         (cgraph_make_edge_direct) Update declaration.
18818         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
18819         (cgraph_create_indirect_edge): Use it.
18820         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
18821         callees.
18822         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
18823         the new thunk_delta representation.
18824         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
18825         HOST_WIDE_INT.
18826         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
18827         (ipa_read_indirect_edge_info): Likewise.
18828         * lto-cgraph.c (output_edge_opt_summary): New function.
18829         (output_node_opt_summary): Call it on all outgoing edges.
18830         (input_edge_opt_summary): New function.
18831         (input_node_opt_summary): Call it on all outgoing edges.
18833 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
18835         PR driver/47137
18836         * gcc.c (main): Don't check have_o when settting combine_inputs.
18838 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
18840         * regrename.c: Add general comment describing the pass.
18841         (struct du_head): Remove 'length' field.
18842         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
18843         (regrename_optimize): Do not sort chains.  Rework comments, add others.
18844         Force renaming to the preferred class (if any) in the first pass and do
18845         not consider registers that belong to it in the second pass.
18846         (create_new_chain): Do not set 'length' field.
18847         (scan_rtx_reg): Likewise.
18849 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
18851         PR tree-optimization/47140
18852         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
18853         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
18854         to bit_value_binop.
18856         PR rtl-optimization/47028
18857         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
18858         parm_birth_insn instead of at the beginning of first bb.
18860 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
18862         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
18863         Remove the word "see" before "@pxref".
18864         * doc/rtl.texi: Remove the word "see" before "@pxref".
18866 2011-01-01  Jan Hubicka  <jh@suse.cz>
18868         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
18869         memory.
18871 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
18873         PR target/38662
18874         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
18877 Copyright (C) 2011 Free Software Foundation, Inc.
18879 Copying and distribution of this file, with or without modification,
18880 are permitted in any medium without royalty provided the copyright
18881 notice and this notice are preserved.