Makefile.in (dg_target_exps): Set.
[gcc.git] / gcc / ChangeLog
1 2011-06-21 Jakub Jelinek <jakub@redhat.com>
2
3 * Makefile.in (dg_target_exps): Set.
4 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
5 instead of 7, try to divide it more evenly.
6
7 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
8
9 PR i386/49089
10 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
11 (avx256_split_unaligned_store): New definition.
12 (ix86_option_override_internal): Enable avx256 unaligned load/store
13 splitting only when avx256_split_unaligned_load/store is set.
14
15 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
16
17 * regrename.c (scan_rtx_reg): Handle the case where we write to an
18 open chain in a smaller mode without failing the entire block.
19
20 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
21
22 PR middle-end/47725
23 * combine.c (cant_combine_insn_p): Don't check zero/sign
24 extended hard registers.
25
26 2011-06-21 Alan Modra <amodra@gmail.com>
27
28 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
29 CONST high part large-toc address.
30 (rs6000_tls_referenced_p): Make static.
31 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
32
33 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
34
35 PR middle-end/47725
36 * combine.c (cant_combine_insn_p): Check zero/sign extended
37 hard registers.
38
39 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
40
41 PR target/49385
42 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
43 one of the operands is a register.
44
45 2011-06-20 Kai Tietz <ktietz@redhat.com>
46
47 * fold-const.c (fold_binary_loc): Add missing
48 folding for truth-not operations in combination
49 with binary and.
50
51 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
52
53 * regrename.c (do_replace): Don't update notes.
54
55 2011-06-20 Alan Modra <amodra@gmail.com>
56
57 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
58 of toc-relative address in CONST.
59 (rs6000_delegitimize_address): Recognize changed address.
60 (rs6000_legitimize_reload_address): Likewise.
61 (rs6000_emit_move): Don't force these constants to memory.
62 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
63 toc-relative address in CONST.
64 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
65 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
66
67 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
68
69 * longlong.h (count_leading_zeros): Use long long builtin for
70 x86-64.
71 (count_trailing_zeros): Likewise.
72
73 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
74
75 PR other/49325
76 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
77 .init_array can be used with .ctors on targets.
78 * configure: Regenerated.
79
80 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
81
82 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
83 if the element type is volatile.
84
85 2011-06-18 Jan Hubicka <jh@suse.cz>
86
87 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
88 extra name aliases.
89 (lto_symtab_resolve_can_prevail_p): Likewise.
90 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
91 * cgraphbuild.c (record_reference): Remove extra body alias code.
92 (mark_load): Likewise.
93 (mark_store): Likewise.
94 * cgraph.h (varpool_node): Remove extra_name filed;
95 add alias_of and extraname_alias.
96 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
97 (varpool_alias_aliased_node): New inline function.
98 (varpool_variable_node): New function.
99 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
100 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
101 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
102 (input_varpool_node): Likewise.
103 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
104 (varpool_externally_visible_p): Remove extra body alias code.
105 (function_and_variable_visibility): Likewise.
106 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
107 (ipa_pta_execute): Use it.
108 * varpool.c (varpool_remove_node): Remove extra name alias code.
109 (varpool_mark_needed_node): Likewise.
110 (varpool_analyze_pending_decls): Analyze aliases.
111 (assemble_aliases): New functoin.
112 (varpool_assemble_decl): Use it.
113 (varpool_create_variable_alias): New function.
114 (varpool_extra_name_alias): Rewrite.
115 (varpool_for_node_and_aliases): New function.
116
117 2011-06-18 Jakub Jelinek <jakub@redhat.com>
118
119 PR target/49411
120 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
121 last_arg_constant and last argument doesn't match its predicate,
122 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
123 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
124 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
125 spelling of error message.
126 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
127 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
128 const_0_to_255_operand instead of const_int_operand.
129
130 Revert:
131 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
132
133 * config/i386/sse.md (blendbits): Remove mode attribute.
134 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
135 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
136 Check integer value of operand 3 in insn constraint.
137
138 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
139
140 PR rtl-optimization/48542
141 * reload.c (find_equiv_reg): Stop looking when finding a
142 setjmp-type call.
143 * reload1.c (reload_as_needed): Invalidate all reload
144 registers when crossing a setjmp-type call.
145
146 2011-06-16 Jeff Law <law@redhat.com>
147
148 * tree-ssa-threadupdate.c (struct redirection_data): New field
149 intermediate_edge.
150 (THREAD_TARGET2): Define.
151 (redirection_data_eq): Also check that the intermediate edge is
152 equal.
153 (lookup_redirection_data): Drop useless argument. Extract the
154 outgoing_edge and intermediate edge from E. Callers updated.
155 (copy_phi_args, update_destination_phis): New functions.
156 (fix_duplicate_block_edges): Likewise.
157 (create_edge_and_update_destination_phis): Duplicate all the edges
158 hung off e->aux. Use copy_phi_args.
159 (create_duplicates): Use fix_duplicate_block_edges.
160 (fixup_template_block): Likewise.
161 (redirect_edges): If necessary, redirect the joiner block's incoming
162 edge to the duplicate of the joiner block.
163 (thread_block): Don't muck up loops when threading through a joiner
164 block.
165 (thread_through_loop_header): Handle threading through a joiner
166 block.
167 (mark_threaded_blocks, register_jump_thread): Likewise.
168 * tree-flow.h (register_jump_thread): Add new argument. Callers
169 updated.
170 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
171 (thread_across_edge): Handle threading through a joiner block.
172
173 2011-06-16 Martin Jambor <mjambor@suse.cz>
174
175 PR tree-optimization/49343
176 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
177 calculate offset, provide 2nd operand for the new COMPONENT_REF.
178
179 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
180
181 * config/darwin-protos.h (machopic_select_rtx_section): Move to
182 inside RTX_CODE ifdef.
183
184 2011-06-16 Tom de Vries <tom@codesourcery.com>
185
186 PR target/45098
187 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): Disallow
188 NULL pointer for pointer arithmetic.
189
190 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
191
192 PR target/49398
193 Revert.
194 2011-06-10 Wei Guozhi <carrot@google.com>
195
196 PR target/45335
197 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
198 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
199 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
200 related peephole2.
201 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
202 related peephole2.
203 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
204 (arm_legitimate_ldrd_p): New prototype.
205 (arm_output_ldrd): New prototype.
206 * config/arm/arm.c (arm_check_ldrd_operands): New function.
207 (arm_legitimate_ldrd_p): New function.
208 (arm_output_ldrd): New function.
209
210 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
211
212 PR middle-end/46500
213 * doc/tm.texi.in: Update Copyright date.
214 * doc/tm.texi: Regenerate.
215 * targhooks.c (default_setup_incoming_varargs): Replace
216 CUMULATIVE_ARGS* argument type with cumulative_args_t.
217 (default_pretend_outgoing_varargs_named): Likewise.
218 (hook_pass_by_reference_must_pass_in_stack): Likewise.
219 (hook_callee_copies_named): Likewise.
220 (default_function_arg_advance): Likewise.
221 (default_function_arg): Likewise.
222 (default_function_incoming_arg): Likewise.
223 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
224 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
225 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
226 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
227 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
228 * targhooks.h (default_setup_incoming_varargs): Likewise.
229 (default_pretend_outgoing_varargs_named): Likewise.
230 (hook_pass_by_reference_must_pass_in_stack): Likewise.
231 (hook_callee_copies_named): Likewise.
232 (default_function_arg_advance): Likewise.
233 (default_function_arg): Likewise.
234 (default_function_incoming_arg): Likewise.
235 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
236 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
237 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
238 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
239 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
240 * target.def (pass_by_reference): Likewise.
241 (setup_incoming_varargs, strict_argument_naming): Likewise.
242 (pretend_outgoing_varargs_named, callee_copies): Likewise.
243 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
244 (function_incoming_arg): Likewise.
245 * target.h: Don't include "tm.h" .
246 (cumulative_args_t): New typedef.
247 [GCC_TM_H] (get_cumulative_args): New static inline function.
248 [GCC_TM_H] (pack_cumulative_args): Likewise.
249 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
250 argument type with cumulative_args_t.
251 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
252 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
253 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
254 (frv_arg_partial_bytes, frv_function_arg): Likewise.
255 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
256 (frv_function_arg_1): Likewise.
257 * config/s390/s390.c (s390_pass_by_reference): Likewise.
258 (s390_function_arg_advance, s390_function_arg): Likewise.
259 * config/m32c/m32c.c (m32c_function_arg): Likewise.
260 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
261 (m32c_strict_argument_naming): Likewise.
262 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
263 (spu_function_arg_advance): Likewise.
264 (spu_setup_incoming_varargs): Likewise. Make static.
265 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
266 Remove prototype.
267 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
268 CUMULATIVE_ARGS* argument type with cumulative_args_t.
269 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
270 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
271 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
272 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
273 (mep_pass_by_reference, mep_function_arg): Likewise.
274 (mep_function_arg_advance): Likewise.
275 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
276 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
277 (m32r_function_arg, m32r_function_arg_advance): Likewise.
278 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
279 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
280 (ix86_function_arg, ix86_pass_by_reference): Likewise.
281 (ix86_setup_incoming_varargs): Likewise.
282 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
283 (sh_strict_argument_naming): Likewise.
284 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
285 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
286 (sh_function_arg_advance, sh_function_arg): Likewise.
287 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
288 (pdp11_function_arg_advance): Likewise.
289 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
290 Likewise.
291 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
292 * config/avr/avr.c (avr_function_arg): Likewise.
293 (avr_function_arg_advance): Likewise.
294 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
295 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
296 (xtensa_function_arg_1): Likewise.
297 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Likewise.
298 (xstormy16_function_arg): Likewise.
299 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
300 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
301 (fr30_function_arg_advance): Likewise.
302 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
303 (lm32_function_arg, lm32_function_arg_advance): Likewise.
304 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
305 (moxie_function_arg, moxie_function_arg_advance): Likewise.
306 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
307 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
308 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
309 (cris_function_arg, cris_function_incoming_arg): Likewise.
310 (cris_function_arg_advance, cris_function_arg_1): Likewise.
311 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
312 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
313 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
314 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
315 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
316 (mn10300_arg_partial_bytes): Likewise.
317 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
318 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
319 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
320 (ia64_function_arg_1): Likewise.
321 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
322 (m68k_function_arg): Likewise.
323 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
324 (rs6000_function_arg, setup_incoming_varargs): Likewise.
325 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
326 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
327 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
328 (picochip_arg_advance): Likewise.
329 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
330 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
331 (mcore_function_arg_advance): Likewise.
332 * config/score/score.c (score_pass_by_reference): Likewise.
333 (score_function_arg_advance): Likewise.
334 (score_arg_partial_bytes): Likewise. Make static.
335 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
336 * config/arm/arm.c (arm_arg_partial_bytes): Replace
337 CUMULATIVE_ARGS* argument type with cumulative_args_t.
338 (arm_function_arg, arm_function_arg_advance): Likewise.
339 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
340 * config/pa/pa.c (pa_pass_by_reference): Likewise.
341 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
342 (pa_function_arg): Likewise.
343 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
344 (mips_function_arg, mips_function_arg_advance): Likewise.
345 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
346 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
347 * config/vax/vax.c (vax_function_arg): Likewise.
348 (vax_function_arg_advance): Likewise.
349 * config/h8300/h8300.c (h8300_function_arg): Likewise.
350 (h8300_function_arg_advance): Likewise.
351 * config/v850/v850.c (v850_pass_by_reference): Likewise.
352 (v850_strict_argument_naming, v850_function_arg): Likewise.
353 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
354 (v850_setup_incoming_varargs): Likewise.
355 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
356 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
357 (mmix_function_arg, mmix_pass_by_reference): Likewise.
358 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
359 with const void *.
360 * config/bfin/bfin.c (setup_incoming_varargs): Replace
361 CUMULATIVE_ARGS* argument type with cumulative_args_t.
362 (bfin_function_arg_advance, bfin_function_arg): Likewise.
363 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
364 * calls.c (emit_call_1): Change type of args_so_far to
365 cumulative_args_t. Changed all callers.
366 (initialize_argument_information): Likewise.
367 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
368 * dse.c (get_call_args): Likewise.
369 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
370 * function.c (pass_by_reference, reference_callee_copied): Likewise.
371 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
372 New member args_so_far_v. Changed all users.
373 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
374 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
375 * config/mips/mips.c (mips_output_args_xfer): Likewise.
376 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
377 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
378 * config/microblaze/microblaze.c (microblaze_expand_prologue): Likewise.
379 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
380 m32r_pass_by_reference.
381
382 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
383
384 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
385 argument to be a VEC of statements.
386 * tree-vect-loop.c (vect_determine_vectorization_factor):
387 Remove the assert that pattern statements have to have their
388 vector type set.
389 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
390 Change the first argument to be a VEC of statements. Update
391 documentation.
392 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
393 (vect_handle_widen_mult_by_const): New function.
394 (vect_recog_widen_mult_pattern): Change the first argument to
395 be a VEC of statements. Update documentation. Check that the
396 constant is INTEGER_CST. Support multiplication by a constant
397 that fits an intermediate type - call
398 vect_handle_widen_mult_by_const.
399 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
400 call. Handle additional pattern statements if necessary.
401
402 2011-06-16 Nick Clifton <nickc@redhat.com>
403
404 PR target/49427
405 * config.gcc: Set cpu_type to v850 for any V850 architecture.
406 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
407 md_file, extra_modes, out_file and extra_options are these are all
408 deduced from cpu_type.
409
410 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
411
412 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
413 truncation mask to 63.
414
415 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
416
417 PR target/49313
418 PR target/29524
419 * longlong.h: Add AVR support:
420 (count_leading_zeros): New macro.
421 (count_trailing_zeros): New macro.
422 (COUNT_LEADING_ZEROS_0): New macro.
423 * config/avr/t-avr (LIB1ASMFUNCS): Add
424 _ffssi2, _ffshi2, _loop_ffsqi2,
425 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2,
426 _paritydi2, _paritysi2, _parityhi2,
427 _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
428 _bswapsi2, _bswapdi2,
429 _ashldi3, _ashrdi3, _lshrdi3
430 (LIB2FUNCS_EXCLUDE): Add _clz.
431 * config/avr/libgcc.S (XCALL): Move up in file.
432 (XJMP): New C Macro.
433 (DEFUN): New asm macro.
434 (ENDF): New asm macro.
435 (__ffssi2): New function.
436 (__ffshi2): New function.
437 (__loop_ffsqi2): New function.
438 (__ctzsi2): New function.
439 (__ctzhi2): New function.
440 (__clzdi2): New function.
441 (__clzsi2): New function.
442 (__clzhi2): New function.
443 (__paritydi2): New function.
444 (__paritysi2): New function.
445 (__parityhi2): New function.
446 (__parityqi2): New function.
447 (__popcounthi2): New function.
448 (__popcountsi2): New function.
449 (__popcountdi2): New function.
450 (__popcountqi2): New function.
451 (__bswapsi2): New function.
452 (__bswapdi2): New function.
453 (__ashldi3): New function.
454 (__ashrdi3): New function.
455 (__lshrdi3): New function.
456 Fix suspicous lines.
457
458 2011-06-16 Richard Guenther <rguenther@suse.de>
459
460 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
461 the same as x != 0.
462 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0 to
463 (bool) X & 1.
464 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
465 equality compares against zero for the lower bit.
466
467 2011-06-16 Jakub Jelinek <jakub@redhat.com>
468
469 PR tree-optimization/49419
470 * tree-vrp.c (execute_vrp): Call init_range_assertions
471 before estimate_numbers_of_iterations, call
472 free_number_of_iterations_estimates before calling
473 remove_range_assertions.
474
475 2011-06-16 Revital Eres <revital.eres@linaro.org>
476
477 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
478 (struct partial_schedule): Add rows_length field.
479 (verify_partial_schedule): Check rows_length.
480 (ps_insert_empty_row): Handle rows_length.
481 (create_partial_schedule): Likewise.
482 (free_partial_schedule): Likewise.
483 (reset_partial_schedule): Likewise.
484 (create_ps_insn): Remove rest_count argument.
485 (remove_node_from_ps): Update rows_length.
486 (add_node_to_ps): Update rows_length and call create_ps_insn
487 without passing row_rest_count.
488 (rotate_partial_schedule): Update rows_length.
489
490 2011-06-16 Revital Eres <revital.eres@linaro.org>
491
492 * ddg.c (add_intra_loop_mem_dep): New function.
493 (build_intra_loop_deps): Call it.
494
495 2011-06-13 Jeff Law <law@redhat.com>
496
497 * df-problems.c (df_lr_local_compute): Manually CSE
498 PIC_OFFSET_TABLE_REGNUM.
499 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
500 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
501
502 2011-06-13 Jan Hubicka <jh@suse.cz>
503
504 * cgraphunit.c (handle_alias_pairs): New function.
505 (cgraph_finalize_compilation_unit): Use it.
506 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
507 as externally visible.
508
509 2011-06-15 Richard Guenther <rguenther@suse.de>
510
511 * expr.c (expand_expr_real_2): Reduce all integral types to
512 bitfield precision.
513 (expand_expr_real_1): Likewise.
514
515 2011-06-15 Martin Jambor <mjambor@suse.cz>
516
517 PR tree-optimization/48613
518 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
519 ipa_node_params_vector is NULL.
520
521 2011-06-15 Jakub Jelinek <jakub@redhat.com>
522
523 PR debug/49382
524 * dwarf2out.c (dw_loc_list_node): Add force field.
525 (add_var_loc_to_decl): For PARM_DECL, attempt to keep
526 the incoming location in the list, even if it is modified
527 before first real insn.
528 (output_loc_list): Emit empty ranges with force flag set.
529 (dw_loc_list): If first range of a PARM_DECL is empty,
530 set force flag.
531
532 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
533
534 PR target/49349
535 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
536 (fence_to_rewind). Use it to notice when bookkeeping will be placed
537 above a fence. Update comments.
538 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
539 placed just above it. Do not allow NULL place_to_insert.
540
541 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
542
543 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
544 (slpeel_tree_peel_loop_to_edge): Don't call
545 remove_dead_stmts_from_loop.
546 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
547 remove irrelevant pattern statements. For irrelevant statements
548 check if it is the last statement of a detected pattern, use
549 corresponding pattern statement instead.
550 (destroy_loop_vec_info): No need to remove pattern statements,
551 only free stmt_vec_info.
552 (vect_transform_loop): For irrelevant statements check if it is
553 the last statement of a detected pattern, use corresponding
554 pattern statement instead.
555 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
556 pattern statements. Set basic block for the new statement.
557 (vect_pattern_recog): Update documentation.
558 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
559 operands of pattern statements.
560 (vectorizable_call): Fix printing. In case of a pattern statement
561 use the lhs of the original statement when creating a dummy
562 statement to replace the original call.
563 (vect_analyze_stmt): For irrelevant statements check if it is
564 the last statement of a detected pattern, use corresponding
565 pattern statement instead.
566 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
567 statements use gsi of the original statement.
568
569 2011-06-14 Joseph Myers <joseph@codesourcery.com>
570
571 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
572 common/common-target-def.h.
573 * target.def (default_target_flags, handle_option,
574 supports_split_stack, optimization_table, init_struct,
575 except_unwind_info, unwind_tables_default, have_named_sections):
576 Move to common/common-target.def.
577 * target.h (enum opt_levels, struct default_options): Move to
578 common/common-target.h.
579 * targhooks.c (default_except_unwind_info,
580 dwarf2_except_unwind_info, sjlj_except_unwind_info,
581 default_target_handle_option, empty_optimization_table): Move to
582 common/common-targhooks.c.
583 * targhooks.h (default_except_unwind_info,
584 dwarf2_except_unwind_info, sjlj_except_unwind_info,
585 default_target_handle_option, empty_optimization_table): Move to
586 common/common-targhooks.h.
587 * common/common-target-def.h: Include common/common-targhooks.h.
588 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
589 defined.
590 * common/common-target.def (handle_option, option_init_struct,
591 option_optimization_table, default_target_flags,
592 except_unwind_info, supports_split_stack, unwind_tables_default,
593 have_named_sections): Move from target.def.
594 (HOOK_PREFIX): Undefine at end of file.
595 * common/common-target.h: Include input.h.
596 (enum opt_levels, struct default_options): Move from target.h.
597 * common/common-targhooks.c, common/common-targhooks.h: New.
598 * config.gcc (target_has_targetm_common): Default to yes.
599 (moxie*): Set target_has_targetm_common=no.
600 (hppa*-*-*): Don't set target_has_targetm_common=yes.
601 * doc/tm.texi: Regenerate.
602 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
603 (C_TARGET_DEF_H): Add common/common-targhooks.h.
604 (GCC_OBJS): Remove vec.o.
605 (OBJS): Remove hooks.o and vec.o.
606 (OBJS-libcommon-target): Add vec.o, hooks.o and
607 common/common-targhooks.o.
608 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
609 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
610 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
611 cfglayout.o, $(out_object_file), $(common_out_object_file)):
612 Update dependencies.
613 (common/common-targhooks.o): New.
614 * common/config/default-common.c: Include tm.h. Add FIXME
615 comment.
616 * common/config/pa/pa-common.c: Include more headers. Take
617 copyright dates from pa.c.
618 (pa_option_optimization_table, pa_handle_option,
619 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
620 TARGET_HANDLE_OPTION): Move from pa.c.
621 * common/config/alpha/alpha-common.c,
622 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
623 common/config/bfin/bfin-common.c,
624 common/config/cris/cris-common.c,
625 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
626 common/config/h8300/h8300-common.c,
627 common/config/i386/i386-common.c,
628 common/config/ia64/ia64-common.c,
629 common/config/iq2000/iq2000-common.c,
630 common/config/lm32/lm32-common.c,
631 common/config/m32c/m32c-common.c,
632 common/config/m32r/m32r-common.c,
633 common/config/m68k/m68k-common.c,
634 common/config/mcore/mcore-common.c,
635 common/config/mep/mep-common.c,
636 common/config/microblaze/microblaze-common.c,
637 common/config/mips/mips-common.c,
638 common/config/mmix/mmix-common.c,
639 common/config/mn10300/mn10300-common.c,
640 common/config/pdp11/pdp11-common.c,
641 common/config/picochip/picochip-common.c,
642 common/config/rs6000/rs6000-common.c,
643 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
644 common/config/score/score-common.c, common/config/sh/sh-common.c,
645 common/config/sparc/sparc-common.c,
646 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
647 common/config/vax/vax-common.c,
648 common/config/xstormy16/xstormy16-common.c,
649 common/config/xtensa/xtensa-common.c: New.
650 * config/alpha/alpha.c: Include common/common-target.h.
651 (alpha_option_optimization_table, alpha_handle_option,
652 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
653 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
654 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
655 * config/arm/arm.c (arm_option_optimization_table,
656 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
657 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
658 arm-common.c.
659 * config/avr/avr.c (avr_option_optimization_table,
660 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
661 to avr-common.c.
662 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
663 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
664 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
665 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
666 * config/cris/cris.c (cris_option_optimization_table,
667 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
668 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
669 cris-common.c.
670 * config/fr30/fr30.c (fr30_option_optimization_table,
671 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
672 to fr30-common.c.
673 * config/frv/frv.c (frv_option_optimization_table,
674 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
675 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
676 * config/h8300/h8300.c (h8300_option_optimization_table,
677 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
678 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
679 * config/i386/i386-protos.h (ix86_handle_option): Declare.
680 * config/i386/i386.c: Include common/common-target.h.
681 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
682 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
683 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
684 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
685 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
686 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
687 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
688 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
689 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
690 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
691 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
692 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
693 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
694 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
695 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
696 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
697 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
698 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
699 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
700 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
701 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
702 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
703 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
704 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
705 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
706 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
707 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
708 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
709 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
710 ix86_option_optimization_table, ix86_option_init_struct,
711 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
712 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
713 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
714 i386-common.c.
715 * config/i386/t-i386 (i386.o): Update dependencies.
716 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
717 * config/ia64/ia64.c (ia64_option_optimization_table,
718 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
719 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
720 ia64_handle_option): Move to ia64-common.c.
721 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
722 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
723 * config/lm32/lm32.c (lm32_option_optimization_table,
724 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
725 to lm32-common.c.
726 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
727 m32c-common.c.
728 * config/m32r/m32r.c (m32r_option_optimization_table,
729 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
730 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
731 m32r_handle_option): Move to m32r-common.c.
732 (m32r_memory_move_cost): Remove comment referring to
733 TARGET_HANDLE_OPTION.
734 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
735 Move to m68k-common.c.
736 * config/mcore/mcore.c (mcore_option_optimization_table,
737 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
738 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
739 * config/mep/mep.c (mep_option_optimization_table,
740 mep_handle_option, TARGET_HANDLE_OPTION,
741 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
742 Move to mep-common.c.
743 * config/microblaze/microblaze.c
744 (microblaze_option_optimization_table,
745 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
746 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
747 * config/mips/mips.c (mips_handle_option,
748 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
749 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
750 mips-common.c.
751 * config/mmix/mmix.c (mmix_option_optimization_table,
752 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
753 Move to mmix-common.c.
754 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
755 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
756 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
757 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
758 * config/pa/pa.c: Include common/common-target.h.
759 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
760 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
761 pa_handle_option): Move to pa-common.c.
762 (pa_option_override): Use targetm_common.except_unwind_info.
763 (pa_asm_output_mi_thunk, pa_function_section): Use
764 targetm_common.have_named_sections.
765 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
766 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
767 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
768 pdp11_handle_option, pdp11_option_init_struct): Move to
769 pdp11-common.c.
770 * config/picochip/picochip.c (picochip_option_optimization_table,
771 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
772 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
773 * config/rs6000/rs6000.c: Include common/common-target.h.
774 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
775 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
776 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
777 rs6000_handle_option): Move to rs6000-common.c.
778 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
779 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
780 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
781 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
782 * config/s390/s390.c (processor_flags_table,
783 s390_option_optimization_table, s390_option_init_struct,
784 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
785 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
786 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
787 * config/s390/s390.h (processor_flags_table): Declare.
788 * config/score/score.c (score_option_optimization_table,
789 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
790 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
791 score_handle_option): Move to score-common.c.
792 * config/sh/sh.c (sh_option_optimization_table,
793 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
794 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
795 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
796 * config/sparc/sparc.c: Include common/common-target.h.
797 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
798 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
799 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
800 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
801 spu_option_init_struct): Move to spu-common.c.
802 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
803 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
804 * config/v850/v850.c (small_memory_physical_max,
805 v850_handle_memory_optionn v850_handle_option,
806 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
807 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
808 v850-common.c.
809 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
810 vax-common.c.
811 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
812 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
813 Move to xtensa-common.c.
814 * cfglayout.c: Include common/common-target.h.
815 (fixup_reorder_chain): Use targetm_common.have_named_sections.
816 * cfgrtl.c: Include common/common-target.h.
817 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
818 targetm_common.have_named_sections.
819 * dbxout.c: Include common/common-target.h.
820 (dbxout_function_end): Use targetm_common.have_named_sections.
821 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
822 targetm_common.except_unwind_info.
823 * dwarf2out.c: Include common/common-target.h.
824 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
825 dwarf2out_begin_prologue, dwarf2out_frame_init,
826 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
827 targetm_common.except_unwind_info.
828 * except.c: Include common/common-target.h.
829 (init_eh, finish_eh_generation,
830 output_one_function_exception_table): Use
831 targetm_common.except_unwind_info.
832 (switch_to_exception_section): Use
833 targetm_common.have_named_sections.
834 * explow.c: Include common/common-target.h.
835 * expr.c: Include common/common-target.h.
836 (build_personality_function): Use
837 targetm_common.except_unwind_info.
838 * function.c: Include common/common-target.h.
839 (expand_function_end): Use targetm_common.except_unwind_info.
840 * haifa-sched.c: Include common/common-target.h.
841 (sched_create_recovery_edges): Use
842 targetm_common.have_named_sections.
843 * lto-opts.c: Include common/common-target.h instead of target.h.
844 (lto_reissue_options): Use targetm_common.handle_option.
845 * opts.c: Include common/common-target.h.
846 (target_handle_option): Use targetm_common.handle_option.
847 (init_options_struct): Update comment referring to
848 targetm.target_option.optimization. Use
849 targetm_common.default_target_flags,
850 targetm_common.unwind_tables_default and
851 targetm_common.option_init_struct.
852 (default_options_optimization): Use
853 targetm_common.option_optimization_table.
854 (finish_options): Use targetm_common.except_unwind_info,
855 targetm_common.unwind_tables_default,
856 targetm_common.have_named_sections and
857 targetm_common.supports_split_stack.
858 * toplev.c: Include common/common-target.h.
859 (process_options): Use targetm_common.have_named_sections.
860 * tree-tailcall.c: Include common/common-target.h.
861 (suitable_for_tail_call_opt_p): Use
862 targetm_common.except_unwind_info.
863 * tree.c: Include common/common-target.h.
864 (build_common_builtin_nodes): Use
865 targetm_common.except_unwind_info.
866 * varasm.c: Include common/common-target.h.
867 (resolve_unique_section, hot_function_section,
868 default_function_section): Use targetm_common.have_named_sections.
869
870 2011-06-14 Easwaran Raman <eraman@google.com>
871
872 PR rtl-optimization/44194
873 * dse.c: Include tree-flow.h
874 (insn_info): Add new field non_frame_wild_read.
875 (group_info): Add new fields escaped_n and escaped_p.
876 (kill_on_calls): New variable.
877 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
878 (dse_step0): Initialize kill_on_calls.
879 (can_escape): New function.
880 (set_usage_bits): Add additional parameter; record information
881 about escaped locations.
882 (record_store): Pass EXPR corresponding to MEM to
883 set_usage_bits.
884 (dse_step2_nospill): Set kill_on_calls based on
885 group->escaped_n and group->escaped_n.
886 (add_wild_read): Refactor into...
887 (reset_active_stores): ... New function, and
888 (free_read_records): ... New function.
889 (add_non_frame_wild_read): New function.
890 (scan_insn): Call add_non_frame_wild_read on non-const calls.
891 (scan_reads_nospill): Handle instructions with
892 non_frame_wild_read.
893 (dse_step5_nospill): Call scan_reads_nospill for instructions
894 marked as non_frame_wild_read.
895 (dse_step7): Free escaped_n, escaped_p and kill_on_calls
896 bitmaps.
897
898 2011-06-14 Joseph Myers <joseph@codesourcery.com>
899
900 * common/common-target-def.h, common/common-target.def,
901 common/common-target.h, common/config/default-common.c,
902 common/config/pa/pa-common.c: New files.
903 * Makefile.in (common_out_file, common_out_object_file,
904 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
905 (OBJS-libcommon-target): Include $(common_out_object_file).
906 (prefix.o): Update dependencies.
907 ($(common_out_object_file), common/common-target-hooks-def.h,
908 s-common-target-hooks-def-h): New.
909 (s-tm-texi): Also check timestamp on common-target.def.
910 (build/genhooks.o): Update dependencies.
911 * config.gcc (common_out_file, target_has_targetm_common): Define.
912 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
913 TARGET_ALWAYS_STRIP_DOTDOT.
914 * configure.ac (common_out_object_file): Define.
915 (common_out_file, common_out_object_file): Substitute.
916 (common): Create directory.
917 * configure: Regenerate.
918 * doc/tm.texi.in (targetm_common): Document.
919 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
920 * doc/tm.texi: Regenerate.
921 * genhooks.c (hook_array): Also include common/common-target.def.
922 * prefix.c (tm.h): Don't include.
923 (common/common-target.h): Include.
924 (ALWAYS_STRIP_DOTDOT): Don't define.
925 (update_path): Use targetm_common.always_strip_dotdot instead of
926 ALWAYS_STRIP_DOTDOT.
927 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
928
929 2011-06-14 David Li <davidxl@google.com>
930
931 * passes.c (execute_function_todo): Remove TODO_dump_func.
932 (execute_one_pass): Remove TODO_dump_func.
933 (execute_function_dump): New function.
934 * tree-vrp.c: Remove TODO_dump_func.
935 * regrename.c: Remove TODO_dump_func.
936 * fwprop.c: Remove TODO_dump_func.
937 * tree-into-ssa.c: Remove TODO_dump_func.
938 * tree-complex.c: Remove TODO_dump_func.
939 * tracer.c: Remove TODO_dump_func.
940 * tree-loop-distribution.c: Remove TODO_dump_func.
941 * postreload-gcse.c: Remove TODO_dump_func.
942 * postreload.c: Remove TODO_dump_func.
943 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
944 * tree-tailcall.c: Remove TODO_dump_func.
945 * ipa-cp.c: Remove TODO_dump_func.
946 * final.c: Remove TODO_dump_func.
947 * tree-emutls.c: Remove TODO_dump_func.
948 * omp-low.c: Remove TODO_dump_func.
949 * tree-ssa-dse.c: Remove TODO_dump_func.
950 * tree-ssa-uncprop.c: Remove TODO_dump_func.
951 * auto-inc-dec.c: Remove TODO_dump_func.
952 * reorg.c: Remove TODO_dump_func.
953 * tree-ssa-copyrename.c: Remove TODO_dump_func.
954 * tree-ssa-ccp.c: Remove TODO_dump_func.
955 * compare-elim.c: Remove TODO_dump_func.
956 * mode-switching.c: Remove TODO_dump_func.
957 * modulo-sched.c: Remove TODO_dump_func.
958 * tree-call-cdce.c: Remove TODO_dump_func.
959 * cse.c: Remove TODO_dump_func.
960 * web.c: Remove TODO_dump_func.
961 * tree-stdarg.c: Remove TODO_dump_func.
962 * lto-streamer-out.c: Remove TODO_dump_func.
963 * tree-ssa-math-opts.c: Remove TODO_dump_func.
964 * tree-ssa-dom.c: Remove TODO_dump_func.
965 * tree-nrv.c: Remove TODO_dump_func.
966 * loop-init.c: Remove TODO_dump_func.
967 * gimple-low.c: Remove TODO_dump_func.
968 * ipa-inline.c: Remove TODO_dump_func.
969 * tree-ssa-sink.c: Remove TODO_dump_func.
970 * jump.c: Remove TODO_dump_func.
971 * ifcvt.c: Remove TODO_dump_func.
972 * tree-ssa-loop.c: Remove TODO_dump_func.
973 * recog.c: Remove TODO_dump_func.
974 * dse.c: Remove TODO_dump_func.
975 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
976 * matrix-reorg.c: Remove TODO_dump_func.
977 * tree-eh.c: Remove TODO_dump_func.
978 * regmove.c: Remove TODO_dump_func.
979 * function.c: Remove TODO_dump_func.
980 * tree-vectorizer.c: Remove TODO_dump_func.
981 * ipa-split.c: Remove TODO_dump_func.
982 * gcse.c: Remove TODO_dump_func.
983 * tree-if-conv.c: Remove TODO_dump_func.
984 * init-regs.c: Remove TODO_dump_func.
985 * tree-ssa-phiopt.c: Remove TODO_dump_func.
986 * implicit-zee.c: Remove TODO_dump_func.
987 * lower-subreg.c: Remove TODO_dump_func.
988 * bt-load.c: Remove TODO_dump_func.
989 * tree-dfa.c: Remove TODO_dump_func.
990 * except.c: Remove TODO_dump_func.
991 * emit-rtl.c: Remove TODO_dump_func.
992 * store-motion.c: Remove TODO_dump_func.
993 * cfgexpand.c: Remove TODO_dump_func.
994 * tree-cfgcleanup.c: Remove TODO_dump_func.
995 * cfgcleanup.c: Remove TODO_dump_func.
996 * tree-ssa-pre.c: Remove TODO_dump_func.
997 * tree-sra.c: Remove TODO_dump_func.
998 * tree-mudflap.c: Remove TODO_dump_func.
999 * tree-ssa-copy.c: Remove TODO_dump_func.
1000 * cfglayout.c: Remove TODO_dump_func.
1001 * tree-ssa-forwprop.c: Remove TODO_dump_func.
1002 * tree-ssa-dce.c: Remove TODO_dump_func.
1003 * ira.c: Remove TODO_dump_func.
1004 * tree-ssa.c: Remove TODO_dump_func.
1005 * integrate.c: Remove TODO_dump_func.
1006 * tree-optimize.c: Remove TODO_dump_func.
1007 * tree-ssa-phiprop.c: Remove TODO_dump_func.
1008 * tree-object-size.c: Remove TODO_dump_func.
1009 * combine.c: Remove TODO_dump_func.
1010 * bb-reorder.c: Remove TODO_dump_func.
1011 * cprop.c: Remove TODO_dump_func.
1012 * var-tracking.c: Remove TODO_dump_func.
1013 * tree-profile.c: Remove TODO_dump_func.
1014 * tree-vect-generic.c: Remove TODO_dump_func.
1015 * reg-stack.c: Remove TODO_dump_func.
1016 * sched-rgn.c: Remove TODO_dump_func.
1017 * tree-ssa-structalias.c: Remove TODO_dump_func.
1018 * tree-switch-conversion.c: Remove TODO_dump_func.
1019 * tree-cfg.c: Remove TODO_dump_func.
1020 * tree-ssa-reassoc.c: Remove TODO_dump_func.
1021 * combine-stack-adj.c: Remove TODO_dump_func.
1022 * dce.c: Remove TODO_dump_func.
1023 * tree-ssanames.c: Remove TODO_dump_func.
1024 * regcprop.c: Remove TODO_dump_func.
1025
1026 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
1027
1028 PR middle-end/47364
1029 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1030 and properly handle result not in Pmode.
1031
1032 2011-06-14 Robert Millan <rmh@gnu.org>
1033
1034 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1035 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1036 `config/linux.h'.
1037
1038 * config/i386/kfreebsd-gnu64.h: New file.
1039 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1040 with `i386/kfreebsd-gnu64.h'.
1041
1042 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1043 (GNU_USER_LINK_EMULATION64): New macros.
1044 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1045 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1046 of hardcoding `elf_i386' and `elf_x86_64'.
1047
1048 2011-06-14 Nick Clifton <nickc@redhat.com>
1049
1050 PR target/49403
1051 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1052
1053 PR target/49402
1054 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1055
1056 2011-06-14 Jakub Jelinek <jakub@redhat.com>
1057
1058 PR fortran/49103
1059 * tree.h (DECL_NONSHAREABLE): Define.
1060 (struct tree_decl_common): Change decl_common_unused to
1061 decl_nonshareable_flag.
1062 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1063 Ignore vars with DECL_NONSHAREABLE bit set.
1064 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1065 on stores to automatic aggregate vars.
1066
1067 PR rtl-optimization/49390
1068 Revert:
1069 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1070
1071 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1072 MEM_ALIAS_SET.
1073
1074 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
1075 Tom de Vries <tom@codesourcery.com>
1076
1077 PR target/45098
1078 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1079 Document changed semantics.
1080 (max_stmt_executions, max_stmt_executions_int): Declare.
1081 * tree-data-ref.c (estimated_loop_iterations)
1082 (estimated_loop_iterations_int): Move functions...
1083 * tree-ssa-loop-niter.c (estimated_loop_iterations)
1084 (estimated_loop_iterations_int): here.
1085 (record_estimate): Change nb_iterations_upper_bound and
1086 nb_iterations_estimate semantics.
1087 (max_stmt_executions, max_stmt_executions_int): New function.
1088 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1089 (max_stmt_executions_tree): this.
1090 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1091 estimated_loop_iterations_tree.
1092 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1093 max_stmt_executions_int instead of estimated_loop_iterations_int.
1094 * predict.c (predict_loops): Idem.
1095 * tree-parloops.c (parallelize_loops): Idem.
1096 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1097 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1098 (init_omega_for_ddr_1): Idem.
1099 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1100 (loop_prefetch_arrays): Idem
1101 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1102 max_stmt_executions instead of estimated_loop_iterations.
1103 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1104 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1105 instead of nb_iterations_upper_bound.
1106
1107 2011-06-13 Jan Hubicka <jh@suse.cz>
1108
1109 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1110
1111 2011-06-14 Richard Henderson <rth@redhat.com>
1112
1113 PR debug/48459
1114 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1115 (based_loc_descr): Assert it's true.
1116 (compute_frame_pointer_to_fb_displacement): Set it, rather than
1117 aborting immediately.
1118
1119 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
1120 Mingfeng Wu <mingfeng@faraday-tech.com>
1121
1122 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1123
1124 2011-06-13 Jan Hubicka <jh@suse.cz>
1125
1126 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1127
1128 2011-06-13 Jan Hubicka <jh@suse.cz>
1129
1130 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1131 similarly to DECL_COMDAT.
1132 * cgraphunit.c (cgraph_analyze_function): Likewise.
1133 * ipa.c (function_and_variable_visibility): Likewise.
1134
1135 2011-06-13 Jan Hubicka <jh@suse.cz>
1136
1137 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1138 BINFO_VIRTUALS when streaming for ltrans unit.
1139
1140 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
1141
1142 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1143 (movdi_internal64): Same.
1144
1145 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
1146
1147 PR target/44618
1148 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1149 a set of similar patterns, where the MATCH_OPERAND for the function
1150 argument is replaced with individual references to hardware registers.
1151 (save_fpregs_<mode>): Ditto
1152 (restore_gpregs_<mode>): Ditto
1153 (return_and_restore_gpregs_<mode>): Ditto
1154 (return_and_restore_fpregs_<mode>): Ditto
1155 (return_and_restore_fpregs_aix_<mode>): Ditto
1156
1157 2011-06-13 Jan Hubicka <jh@suse.cz>
1158
1159 * ipa-utils.c (postorder_stack): New structure.
1160 (ipa_reverse_postorder): Handle aliases.
1161
1162 2011-06-13 Jan Hubicka <jh@suse.cz>
1163
1164 * ipa-inline.c (reset_edge_caches): Walk aliases.
1165 (update_caller_keys): Do not test inlinability of aliases.
1166 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1167 (do_estimate_growth): Fix typo.
1168
1169 2011-06-13 Jan Hubicka <jh@suse.cz>
1170
1171 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1172 (can_remove_node_now_p): ... here; handle same comdat groups.
1173 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1174 (inline_call): Update use of can_remove_node_now_p.
1175
1176 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1177
1178 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
1179 condition to disallow non-identical memory locations.
1180 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1181 preference to bit manipulation instructions.
1182
1183 2011-06-13 Jan Hubicka <jh@suse.cz>
1184
1185 * cgraph.c (cgraph_for_node_thunks_and_aliases,
1186 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1187 (nonremovable_p): New function.
1188 (cgraph_can_remove_if_no_direct_calls_p): New function.
1189 (used_from_object_file_p): New functoin.
1190 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1191 references from aliases.
1192 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1193 * ipa-inline.c (check_caller_edge): New function.
1194 (want_inline_function_called_once_p): Use it; accept aliases called
1195 once, too.
1196 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1197
1198 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1199
1200 PR target/48454
1201 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1202 correctly for the case with Quad vectors.
1203
1204 2011-06-13 Jakub Jelinek <jakub@redhat.com>
1205 Ira Rosen <ira.rosen@linaro.org>
1206
1207 PR tree-optimization/49352
1208 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1209 all, make sure loop_use_stmt after the loop is a def stmt of a used
1210 SSA_NAME that is the only one defined inside of the loop. Don't
1211 check for COND_EXPR and GIMPLE_BINARY_RHS.
1212 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1213 check_reduction is true.
1214
1215 2011-06-11 Jan Hubicka <jh@suse.cz>
1216
1217 PR middle-end/49373
1218 * ipa.c (cgraph_externally_visible_p): Check resolution info.
1219
1220 2011-06-11 Jan Hubicka <jh@suse.cz>
1221
1222 PR middle-end/48836
1223 * ipa-inline-transform.c: Include tree-pass.h
1224 (inline_transform): Set TODO_update_ssa_only_virtuals.
1225 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1226
1227 2011-06-11 Jan Hubicka <jh@suse.cz>
1228
1229 PR middle-end/49378
1230 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1231 aliases and thunks.
1232
1233 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
1234
1235 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1236 Take number of iterations to peel into account for equally frequent
1237 misalignment values.
1238
1239 2011-06-11 Jan Hubicka <jh@suse.cz>
1240
1241 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
1242 aliases.
1243
1244 2011-06-11 Jan Hubicka <jh@suse.cz>
1245
1246 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
1247 args.
1248 (ipa_update_after_lto_read): Likewise.
1249 (ipa_write_node_info): Do not sream call_with_var_arguments.
1250 (ipa_read_node_info): Likewise.
1251
1252 2011-06-11 Jan Hubicka <jh@suse.cz>
1253
1254 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
1255
1256 2011-06-11 Jan Hubicka <jh@suse.cz>
1257
1258 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
1259 (lto_symtab_resolve_can_prevail_p): Likewise.
1260 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
1261 * cgraph.c (same_body_aliases_done): New global var.
1262 (cgraph_same_body_alias_1): Rename to ...
1263 (cgraph_create_function_alias): ... this one; reorg to new
1264 representation.
1265 (cgraph_same_body_alias): Use cgraph_create_function_alias;
1266 record references when asked to.
1267 (cgraph_add_thunk): Fix formating.
1268 (cgraph_get_node): Kill same body alias code.
1269 (cgraph_node_for_asm): Likewise.
1270 (cgraph_remove_same_body_alias): Remove.
1271 (cgraph_remove_node): Kill same body alias code.
1272 (cgraph_mark_address_taken_node): Mark also the aliased function
1273 as having address taken.
1274 (dump_cgraph_node): Dump same body aliases.
1275 (cgraph_for_node_thunks_and_aliases): Update for new alias
1276 representation.
1277 (cgraph_for_node_and_aliases): Likewise.
1278 * cgraph.h (same_body): Kll pointer.
1279 (same_body_alias): Update comment.
1280 (same_body_aliases_done): Declare.
1281 (cgraph_remove_same_body_alias): Remove declaration.
1282 (cgraph_create_function_alias): Declare.
1283 (cgraph_process_same_body_aliases): Declare.
1284 (cgraph_function_with_gimple_body_p): Check for alias.
1285 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
1286 (cgraph_alias_aliased_node): New function.
1287 (cgraph_function_node): Update for new aliases.
1288 (cgraph_function_or_thunk_node): Likewise.
1289 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
1290 (inline_call): Remove dead aliases.
1291 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
1292 name hack for same body aliases.
1293 (clone_of_p): Look through aliases.
1294 (verify_cgraph_node): Verify aliases.
1295 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
1296 (cgraph_process_same_body_aliases): New function.
1297 (process_function_and_variable_attributes): Disable weakref warning on
1298 alias.
1299 (cgraph_analyze_functions): Handle aliases.
1300 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
1301 (assemble_thunks): Rename to ...
1302 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
1303 (cgraph_expand_function): Remove alias output code.
1304 (cgraph_output_in_order): Skip aliases.
1305 (cgraph_preserve_function_body_p): Aliases don't need preserving.
1306 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
1307 (ipa_record_reference): Do not assert on alias references.
1308 (ipa_ref_has_aliases_p): New function.
1309 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
1310 (ipa_ref_has_aliases_p): Declare.
1311 * lto-cgraph.c (lto_output_node): Handle aliases.
1312 (input_node): Likewise.
1313 * lto-streamer-out.c (lto_output): Skip aliases.
1314 (produce_symtab): Kill same_body_alias code.
1315 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
1316 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
1317 * ipa-inline.c (update_caller_keys): Walk aliases.
1318 (inline_small_functions): Fix thinko in previous patch.
1319 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
1320 (function_and_variable_visibility): Do not walk same body aliases.
1321 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
1322 (ipa_pta_execute): Use it.
1323
1324 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1325
1326 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1327 (*vec_dupv2df): Rename from vec_dupv2df.
1328 (vec_dupv2df): New expander.
1329
1330 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1331
1332 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
1333
1334 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1335
1336 * config/i386/i386.md: Use default value in "isa" attribute.
1337 * config/i386/sse.md: Ditto.
1338 * config/i386/mmx.md: Ditto.
1339
1340 2011-06-10 Wei Guozhi <carrot@google.com>
1341
1342 PR target/45335
1343 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1344 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1345 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1346 related peephole2.
1347 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1348 related peephole2.
1349 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1350 (arm_legitimate_ldrd_p): New prototype.
1351 (arm_output_ldrd): New prototype.
1352 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1353 (arm_legitimate_ldrd_p): New function.
1354 (arm_output_ldrd): New function.
1355
1356 2011-06-10 David Li <davidxl@google.com>
1357
1358 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1359 * passes.c (passr_eq): New function.
1360 (create_pass_tab): New function.
1361 (pass_traverse): New function.
1362 (dump_one_pass): New function.
1363 (dump_pass_list): New function.
1364 (dump_passes): New function.
1365
1366 2011-06-10 Jan Hubicka <jh@suse.cz>
1367
1368 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
1369 setting the nothrow flag.
1370 * ipa-reference.c (propagate): Skip aliases.
1371 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
1372 (propagate_nothrow): Skip aliases; do not update cgraph.
1373 (local_pure_const): Do not update cgraph.
1374 * tree-profile.c (tree_profiling): Do fixup_cfg.
1375
1376 2011-06-10 Jan Hubicka <jh@suse.cz>
1377
1378 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
1379 (cgraph_local_node_p): ... here; handle aliases.
1380 (has_addr_references_p): Break out from ...;
1381 (cgraph_remove_unreachable_nodes) ... here.
1382
1383 2011-06-10 Jan Hubicka <jh@suse.cz>
1384
1385 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
1386 * common.opt (flag_inline_functions_called_once): Do not
1387 initialize to 1.
1388
1389 2011-06-10 Jan Hubicka <jh@suse.cz>
1390
1391 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
1392 (ipcp_initialize_node_lattices): Do not deal with aliases;
1393 Do not try to propagate through thunks.
1394 (ipcp_change_tops_to_bottom): Do not deal with aliases.
1395
1396 2011-06-10 Jan Hubicka <jh@suse.cz>
1397
1398 * ipa-prop.c (ipa_write_node_info): Stream jump functions
1399 for indirect calls.
1400 (ipa_read_node_info): Likewise.
1401
1402 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1403
1404 PR lto/49302
1405 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
1406 (build_and_insert_call): Likewise.
1407 (build_and_insert_ref): New.
1408 (gimple_expand_builtin_pow): Minor cleanup.
1409 (gimple_expand_builtin_cabs): New.
1410 (execute_cse_sincos): Add case for BUILT_IN_CABS.
1411
1412 2011-06-10 Jan Hubicka <jh@suse.cz>
1413
1414 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
1415 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
1416 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
1417 (ipcp_propagate_stage): Skip aliases when propagating.
1418 (ipcp_need_redirect_p): Skip aliases.
1419 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
1420 collect_callers_of_node.
1421 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
1422 for aliases.
1423 (ipa_compute_jump_functions): Look through aliases.
1424
1425 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1426
1427 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
1428
1429 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1430
1431 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
1432 Adjust comments.
1433 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
1434
1435 2011-06-10 Jan Hubicka <jh@suse.cz>
1436
1437 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
1438 Update call of gimple_get_virt_method_for_binfo.
1439 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
1440 refuse_thunks parameter.
1441 (gimple_fold_call): Update.
1442 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
1443
1444 2011-06-10 Jan Hubicka <jh@suse.cz>
1445
1446 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
1447 (not_all_callers_have_enough_arguments_p): ... this one; turn into
1448 worker for cgraph_for_node_and_aliases.
1449 (convert_callers_for_node): Break out from ...
1450 (convert_callers): ... here.
1451 (modify_function): Use collect_callers_of_node.
1452 (ipa_early_sra): Use cgraph_for_node_and_aliases.
1453
1454 2011-06-10 Richard Guenther <rguenther@suse.de>
1455
1456 PR tree-optimization/49361
1457 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
1458 when not already in gimple form.
1459
1460 2011-06-10 Richard Guenther <rguenther@suse.de>
1461
1462 PR bootstrap/49344
1463 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
1464 FOR_EACH_PHI_OR_STMT_USE.
1465
1466 2011-06-10 Jan Hubicka <jh@suse.cz>
1467
1468 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
1469 (clone_inlined_nodes): ... here.
1470 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
1471 to real destination prior inlining.
1472 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1473 can_early_inline_edge_p, want_early_inline_function_p,
1474 want_early_inline_function_p, want_inline_small_function_p,
1475 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
1476 edge_badness, update_all_callee_keys, lookup_recursive_calls,
1477 add_new_edges_to_heap, inline_small_functions, flatten_function,
1478 inline_always_inline_functions, early_inline_small_functions): Use
1479 cgraph_function_or_thunk_node.
1480 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
1481 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
1482 (do_estimate_edge_growth_1): Break out from ...
1483 (do_estimate_growth) ... here; walk aliases.
1484 (inline_generate_summary): Skip aliases.
1485
1486 2011-06-10 Richard Guenther <rguenther@suse.de>
1487
1488 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
1489 forward when combining, visit inserted stmts when a stmt was changed.
1490
1491 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
1492
1493 * tree.h (error_operand_p): Add.
1494 * dbxout.c (dbxout_type_fields): Use the latter.
1495 * c-decl.c (add_stmt): Likewise.
1496 * gimplify.c (omp_add_variable, omp_notice_variable,
1497 gimplify_scan_omp_clauses): Likewise.
1498
1499 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
1500
1501 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
1502 when a value is actually passed in regs.
1503
1504 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
1505 Laurent Rougé <laurent.rouge@menta.fr>
1506
1507 * doc/invoke.texi (SPARC options): Add -mflat.
1508 * config/sparc/sparc.opt: Likewise.
1509 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
1510 (sparc_flat_expand_prologue): Declare.
1511 (sparc_flat_expand_epilogue): Likewise.
1512 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
1513 (CPP_ENDIAN_SPEC): Replace with...
1514 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
1515 (CPP_SPEC): Adjust to above change.
1516 (EXTRA_SPECS): Likewise.
1517 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
1518 (INCOMING_REGNO): Likewise.
1519 (OUTGOING_REGNO): Likewise.
1520 (LOCAL_REGNO): Likewise.
1521 (SETUP_FRAME_ADDRESSES): Likewise.
1522 (FIXED_REGISTERS): Set 0 for %fp.
1523 (CALL_USED_REGISTERS): Likewise.
1524 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
1525 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
1526 (RETURN_ADDR_REGNUM): Define.
1527 (RETURN_ADDR_RTX): Use it.
1528 (INCOMING_RETURN_ADDR_REGNUM): Define.
1529 (INCOMING_RETURN_ADDR_RTX): Use it.
1530 (DWARF_FRAME_RETURN_COLUMN): Likewise.
1531 (EH_RETURN_REGNUM): Define.
1532 (EH_RETURN_STACKADJ_RTX): Use it.
1533 (EH_RETURN_HANDLER_RTX): Delete.
1534 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
1535 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
1536 Delete.
1537 (struct machine_function): Add frame_size, apparent_frame_size,
1538 frame_base_reg, frame_base_offset, n_global_fp_regs and
1539 save_local_in_regs_p fields.
1540 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
1541 sparc_frame_base_offset, sparc_n_global_fp_regs,
1542 sparc_save_local_in_regs_p): New macros.
1543 (sparc_option_override): Error out if -fcall-saved-REG is specified
1544 for Out registers.
1545 (eligible_for_restore_insn): Fix formatting.
1546 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
1547 (eligible_for_sibcall_delay): Likewise.
1548 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
1549 (sparc_legitimate_address_p): Adjust to above change.
1550 (save_global_or_fp_reg_p): New predicate.
1551 (return_addr_reg_needed_p): Likewise.
1552 (save_local_or_in_reg_p): Likewise.
1553 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
1554 (SORR_SAVE, SORR_RESTORE): Delete.
1555 (sorr_pred_t): New typedef.
1556 (sorr_act_t): New enum.
1557 (save_or_restore_regs): Rename to...
1558 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
1559 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
1560 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
1561 mechanism. Add CFI information for double-word saves in 32-bit mode.
1562 (emit_adjust_base_to_offset): New function extracted from...
1563 (emit_save_or_restore_regs): ...this. Rename the rest to...
1564 (emit_save_or_restore_regs_global_fp_regs): ...this.
1565 (emit_save_or_restore_regs_local_in_regs): New function.
1566 (gen_create_flat_frame_[123]): New functions.
1567 (sparc_expand_prologue): Use SIZE local variable. Adjust.
1568 (sparc_flat_expand_prologue): New function.
1569 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
1570 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
1571 (sparc_flat_expand_epilogue): New function.
1572 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
1573 (output_return): Likewise.
1574 (output_sibcall): Likewise.
1575 (sparc_output_mi_thunk): Likewise.
1576 (sparc_frame_pointer_required): Likewise.
1577 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
1578 function optimization.
1579 * config/sparc/sparc.md (flat): New attribute.
1580 (prologue): Add TARGET_FLAT handling.
1581 (save_register_window): Disable if TARGET_FLAT.
1582 (create_flat_frame_[123]): New patterns.
1583 (epilogue): Add TARGET_FLAT handling.
1584 (sibcall_epilogue): Likewise.
1585 (eh_return): New expander.
1586 (eh_return_internal): New insn and splitter.
1587 (return_internal): Add TARGET_FLAT handling.
1588 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
1589 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
1590 (nonlocal_goto): Add TARGET_FLAT handling.
1591 * config/sparc/t-elf: Add -mflat multilib.
1592 * config/sparc/t-leon: Likewise.
1593
1594 2011-06-10 Jan Hubicka <jh@suse.cz>
1595
1596 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
1597 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
1598 (self_recursive_p): Use cgraph_function_node.
1599 (propagate_pure_const): Likewise.
1600 (propagate_nothrow): Likewise.
1601 * ipa-reference.c (ipa_reference_get_not_read_global): Use
1602 cgraph_function_node.
1603 (propagate_bits): Likewise.
1604 (propagate): Likewise.
1605
1606 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1607 Richard Earnshaw <rearnsha@arm.com>
1608
1609 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
1610 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
1611 (*thumb2_movdi_vfp): Delete.
1612 (*arm_movdi_vfp_cortexa8): Delete.
1613 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
1614 (*movdi_vfp_cortexa8): Likewise.
1615
1616 2011-06-10 Richard Guenther <rguenther@suse.de>
1617
1618 * stor-layout.c (initialize_sizetypes): Give names to all
1619 sizetype kinds.
1620
1621 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
1622
1623 PR tree-optimization/49318
1624 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
1625 irrelevant pattern statements.
1626
1627 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1628
1629 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
1630
1631 PR bootstrap/49354
1632 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
1633 to last assignment.
1634
1635 2011-06-09 Jan Hubicka <jh@suse.cz>
1636
1637 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
1638 do not recompute reachable flag.
1639 (cgraph_finalize_function, cgraph_analyze_functions): Set
1640 redefined_extern_inline here.
1641
1642 2011-06-09 Jan Hubicka <jh@suse.cz>
1643
1644 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
1645 (cgraph_only_called_directly_p): ... this one; bring offline.
1646 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1647 varpool_used_from_object_file_p): Drop names from the declaratoin.
1648 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
1649 collect_callers_of_node): New.
1650 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
1651 (cgraph_edge_recursive_p): Use cgraph_function_node.
1652 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
1653 (cgraph_node_cannot_be_local_p_1): Break out from ...
1654 (cgraph_node_can_be_local_p): ... here; walk aliases.
1655 (cgraph_for_node_thunks_and_aliases): New function.
1656 (cgraph_for_node_and_aliases): New function.
1657 (cgraph_make_node_local_1): Break out from ...
1658 (cgraph_make_node_local) ... here; use
1659 cgraph_for_node_thunks_and_aliases.
1660 (cgraph_set_nothrow_flag_1): Break out from ...
1661 (cgraph_set_nothrow_flag) ... here;
1662 use cgraph_for_node_thunks_and_aliases.
1663 (cgraph_set_const_flag_1): Break out from ...
1664 (cgraph_set_const_flag) ... here;
1665 use cgraph_for_node_thunks_and_aliases.
1666 (cgraph_set_pure_flag_1): Break out from ...
1667 (cgraph_set_pure_flag) ... here;
1668 use cgraph_for_node_thunks_and_aliases.
1669 (cgraph_propagate_frequency_1): Break out from ...
1670 (cgraph_propagate_frequency) ... here; use
1671 cgraph_for_node_thunks_and_aliases.
1672 (cgraph_used_from_object_file_p): Do not care about aliases.
1673 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
1674 New functions.
1675 (collect_callers_of_node_1, collect_callers_of_node): New functions.
1676
1677 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1678
1679 PR rtl-optimization/49154
1680 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
1681 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
1682 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
1683 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
1684 * config/cris/cris.h (cris_register_move_cost): Remove
1685 !TARGET_V32 code. Tweak comments.
1686
1687 2011-06-09 Jan Hubicka <jh@suse.cz>
1688
1689 * cgraphbuild.c (record_eh_tables): Mark personality function as having
1690 address taken.
1691
1692 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1693
1694 PR rtl-optimization/49154
1695 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
1696 is a matching slot in the hashtable, assign it to classes_ptr.
1697
1698 PR rtl-optimization/49154
1699 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
1700 register classes.
1701 * doc/tm.texi: Regenerate.
1702
1703 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1704
1705 PR target/49307
1706 * config/sh/sh.md (UNSPEC_CHKADD): New.
1707 (chk_guard_add): New define_insn_and_split.
1708 (symGOT_load): Use chk_guard_add instead of blockage.
1709
1710 2011-06-09 Kai Tietz <ktietz@redhat.com>
1711
1712 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
1713
1714 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1715
1716 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1717
1718 2011-06-09 Wei Guozhi <carrot@google.com>
1719
1720 PR target/46975
1721 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
1722 (peephole2 for conditional move): Generate 16 bit instructions.
1723
1724 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
1725
1726 * config/i386/i386.md (*movdi_internal_rex64): Merge
1727 alternatives 6 and 8.
1728
1729 2011-06-09 David Li <davidxl@google.com>
1730
1731 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1732 * passes.c (passr_eq): New function.
1733 (create_pass_tab): New function.
1734 (pass_traverse): New function.
1735 (dump_one_pass): New function.
1736 (dump_pass_list): New function.
1737 (dump_passes): New function.
1738
1739 2011-06-09 David Li <davidxl@google.com>
1740
1741 * tree-complex.c (tree_lower_complex): Gate cleanup.
1742 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
1743 (execute_optimize_stdarg): Ditto.
1744 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
1745 (execute_cleanup_eh_1): Ditto.
1746 (execute_cleanup_eh): Ditto.
1747 * gcse.c (gate_rtl_pre): Ditto.
1748 (execute_rtl_pre): Ditto.
1749 * except.c (finish_eh_generation): Ditto.
1750 (convert_to_eh_region_ranges): Ditto.
1751 * cprop.c (one_cprop_pass): Ditto.
1752
1753 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
1754
1755 PR target/48673
1756 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
1757 in all basic blocks.
1758
1759 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1760
1761 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
1762 (HAVE_ENABLE_EXECUTE_STACK): Define.
1763 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
1764 (HAVE_ENABLE_EXECUTE_STACK): Define.
1765 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
1766 (HAVE_ENABLE_EXECUTE_STACK): Define.
1767 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
1768 (ENABLE_EXECUTE_STACK): Remove.
1769 (HAVE_ENABLE_EXECUTE_STACK): Define.
1770 [IN_LIBGCC2]: Don't include <windows.h>.
1771 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1772 (HAVE_ENABLE_EXECUTE_STACK): Define.
1773 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
1774 (HAVE_ENABLE_EXECUTE_STACK): Define.
1775 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
1776 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
1777 (HAVE_ENABLE_EXECUTE_STACK): Define.
1778 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
1779 (HAVE_ENABLE_EXECUTE_STACK): Define.
1780 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
1781 (HAVE_ENABLE_EXECUTE_STACK): Define.
1782 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1783 (HAVE_ENABLE_EXECUTE_STACK): Define.
1784 * config/alpha/alpha.c (alpha_trampoline_init): Test
1785 HAVE_ENABLE_EXECUTE_STACK.
1786 * config/i386/i386.c (ix86_trampoline_init): Likewise.
1787 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1788 (sparc64_initialize_trampoline): Likewise.
1789 * libgcc2.c [L_enable_execute_stack]: Remove.
1790 * system.h (ENABLE_EXECUTE_STACK): Poison.
1791 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
1792 * doc/tm.texi: Regenerate.
1793 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
1794
1795 2011-06-09 Jakub Jelinek <jakub@redhat.com>
1796
1797 PR middle-end/49308
1798 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
1799 variable. After resetting and rescanning insn continue with previous
1800 statement.
1801
1802 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1803
1804 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
1805 (gcc_cv_ld_hidden): Likewise.
1806 * configure: Regenerate.
1807 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
1808 (ix86_stack_protect_fail): Mark unused.
1809 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
1810 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
1811 [TARGET_MACHO]: Don't define.
1812 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
1813 (TARGET_STACK_PROTECT_FAIL): Likewise.
1814 (rs6000_stack_protect_fail): Mark unused.
1815 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
1816 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
1817
1818 2011-06-08 Andi Kleen <ak@linux.intel.com>
1819
1820 * varasm.c (get_section): Print location of other conflict
1821 for section conflicts.
1822
1823 2011-06-08 Andi Kleen <ak@linux.intel.com>
1824
1825 * config/i386/driver-i386.c (host_detect_local_cpu):
1826 Add model 0x2d Intel CPU.
1827
1828 2011-06-08 Andi Kleen <ak@linux.intel.com>
1829
1830 * reginfo.c (global_regs_decl): Add.
1831 (globalize_reg): Add decl parameter. Compute location. Pass location
1832 to warnings and add inform. Store decl in global_regs_decl.
1833 * rtl.h (globalize_reg): Update prototype.
1834 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
1835
1836 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
1837
1838 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
1839
1840 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1841
1842 PR target/49305
1843 * config/sh/predicates.md (general_movsrc_operand): Check
1844 mode for memory with indexed address for QI and HImode.
1845 (general_movdst_operand): Likewise.
1846
1847 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
1848
1849 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
1850
1851 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
1852
1853 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
1854 (num_ssa_operands): Likewise.
1855 (op_iter_init_phiuse): Forward-declare.
1856 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
1857
1858 2011-06-08 Nick Clifton <nickc@redhat.com>
1859
1860 * doc/invoke.texi (ARM Options): Update description of
1861 -mthumb-interwork.
1862
1863 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1864
1865 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1866 unknown Intel family 0x6 CPUs.
1867
1868 2011-06-08 Martin Jambor <mjambor@suse.cz>
1869
1870 * tree-sra.c (mark_rw_status): Removed.
1871 (analyze_access_subtree): New parameter parent instead of
1872 mark_read and mark_write, propagate from that.
1873
1874 2011-06-08 Julian Brown <julian@codesourcery.com>
1875
1876 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
1877 for double-precision helper functions in hard-float mode if only
1878 single-precision arithmetic is supported in hardware.
1879
1880 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
1881
1882 PR rtl-optimization/49303
1883 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
1884 code_motion_path_driver returned 0 or 1.
1885 (sel_region_finish): Clear h_d_i_d.
1886
1887 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1888
1889 * config/sh/sh.c (prepare_move_operands): Set pic register
1890 appropriately for global and local dynamic tls models even
1891 if flag_pic is unset.
1892
1893 2011-06-07 Jason Merrill <jason@redhat.com>
1894
1895 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
1896
1897 2011-06-07 Xinliang David Li <davidxl@google.com>
1898 * passes.c (enable_disable_pass): Handle assembler name.
1899 (is_pass_explicitly_enabled_or_disabled): Ditto.
1900
1901 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1902
1903 PR tree-optimization/48497
1904 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
1905
1906 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1907
1908 PR tree-optimization/46728
1909 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
1910 to use gimple_val_nonnegative_real_p.
1911 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
1912 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
1913
1914 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
1915
1916 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
1917
1918 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
1919
1920 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
1921 constant vectors.
1922
1923 2011-06-07 Richard Guenther <rguenther@suse.de>
1924
1925 * stor-layout.c (initialize_sizetypes): Initialize all
1926 sizetypes based on target definitions.
1927 (set_sizetype): Remove.
1928 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
1929 * tree.h (set_sizetype): Remove.
1930
1931 2011-06-07 Nick Clifton <nickc@redhat.com>
1932
1933 * config.gcc: Unify V850 architecture options and add support for
1934 newer V850 architectures.
1935 * config/v850/t-v850e: Delete.
1936
1937 2011-06-07 Richard Guenther <rguenther@suse.de>
1938
1939 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
1940 Call set_sizetype from here.
1941
1942 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
1943
1944 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
1945 (*maddhisi4tb, *maddhisi4tt): New define_insns.
1946
1947 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
1948 Andrew Stubbs <ams@codesourcery.com>
1949
1950 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
1951 multiplies.
1952 * doc/md.texi (Canonicalization of Instructions): Document widening
1953 multiply canonicalization.
1954
1955 2011-06-07 Jakub Jelinek <jakub@redhat.com>
1956
1957 PR gcov-profile/49299
1958 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1959
1960 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
1961
1962 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
1963 a pointer.
1964 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
1965 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
1966 vect_recog_pow_pattern): Likewise.
1967 (vect_pattern_recog_1): Remove declaration.
1968 (widened_name_p): Remove declaration. Add new argument to specify
1969 whether to check that both types are either signed or unsigned.
1970 (vect_recog_widen_mult_pattern): Update documentation. Handle
1971 unsigned patterns and multiplication by constants.
1972 (vect_pattern_recog_1): Update vect_recog_func references. Use
1973 statement information from the statement returned from pattern
1974 detection functions.
1975 (vect_pattern_recog): Update vect_recog_func reference.
1976 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
1977 multiplication by a constant use the type of the other operand.
1978
1979 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
1980
1981 PR rtl-optimization/49145
1982 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
1983
1984 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1985
1986 PR debug/49262
1987 * dwarf2out.c (native_encode_initializer): Decrement count in each
1988 iteration.
1989
1990 PR debug/49294
1991 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
1992 non-MODE_INT modes.
1993
1994 PR c++/49264
1995 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1996 if stmt folded into nothing.
1997 * tree-inline.c (fold_marked_statements): If a builtin at the end of
1998 a bb folded into nothing, just update cgraph edges and move to next bb.
1999 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2000 to be NULL. Don't compute count and frequency if new_call is NULL.
2001
2002 2011-06-04 Diego Novillo <dnovillo@google.com>
2003
2004 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2005 (cgraph.o): Likewise.
2006 (cgraphunit.o): Likewise.
2007 * cgraphunit.c: Include lto-streamer.h
2008 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2009 if LTO is enabled.
2010 * lto-streamer-in.c (unpack_value_fields): Call
2011 streamer_hooks.unpack_value_fields if set.
2012 (lto_materialize_tree): For unhandled nodes, first try to
2013 call lto_streamer_hooks.alloc_tree, if it exists.
2014 (lto_input_ts_decl_common_tree_pointers): Move reading of
2015 DECL_INITIAL to lto_streamer_read_tree.
2016 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2017 (lto_streamer_read_tree): New.
2018 (lto_reader_init): Rename from lto_init_reader.
2019 Move initialization code to lto/lto.c.
2020 * lto-streamer-out.c (pack_value_fields): Call
2021 streamer_hooks.pack_value_fields if set.
2022 (lto_output_tree_ref): For tree nodes that are not normally indexable,
2023 call streamer_hooks.indexable_with_decls_p before giving up.
2024 (lto_output_ts_decl_common_tree_pointers): Move handling
2025 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2026 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2027 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
2028 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
2029 (lto_streamer_write_tree): New.
2030 (lto_output): Call lto_streamer_init directly.
2031 (lto_writer_init): Remove.
2032 * lto-streamer.c (streamer_hooks): New.
2033 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2034 instead of lto_preload_common_nodes.
2035 (lto_is_streamable): Move from lto-streamer.h
2036 (lto_streamer_hooks_init): New.
2037 (streamer_hooks): New.
2038 (streamer_hooks_init): New.
2039 * lto-streamer.h (struct output_block): Forward declare.
2040 (struct lto_input_block): Likewise.
2041 (struct data_in): Likewise.
2042 (struct bitpack_d): Likewise.
2043 (struct streamer_hooks): Declare.
2044 (streamer_hooks): Declare.
2045 (lto_streamer_hooks_init): Declare.
2046 (lto_streamer_write_tree): Declare.
2047 (lto_streamer_read_tree): Declare.
2048 (streamer_hooks_init): Declare.
2049 (lto_is_streamable): Move to lto-streamer.c
2050
2051 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2052
2053 * longlong.h (smul_ppmm): The resulting register pair contains the
2054 higher order word first.
2055
2056 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2057
2058 PR tree-optimization/46728
2059 * builtins.c (powi_table): Remove.
2060 (powi_lookup_cost): Remove.
2061 (powi_cost): Remove.
2062 (expand_powi_1): Remove.
2063 (expand_powi): Remove.
2064 (expand_builtin_pow_root): Remove.
2065 (expand_builtin_pow): Remove.
2066 (expand_builtin_powi): Eliminate handling of constant exponent.
2067 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
2068
2069 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2070
2071 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2072
2073 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2074
2075 * dce.c (reset_unmarked_insns_debug_uses): New.
2076 (delete_unmarked_insns): Skip debug insns.
2077 (prescan_insns_for_dce): Likewise.
2078 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2079 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2080 active reg can be found.
2081 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
2082 (convert_regs_1): Use it.
2083
2084 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2085
2086 * tree-pretty-print.c (dump_function_header): Add flags.
2087 Don't dump decl_uid with nouid.
2088 * tree-pretty-print.h (dump_function_header): Adjust.
2089 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2090 * passes.c (pass_init_dump_file): Pass dump_flags on.
2091 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2092
2093 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2094
2095 PR bootstrap/49270
2096 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2097
2098 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
2099
2100 PR tree-optimization/49243
2101 * calls.c (setjmp_call_p): Also check if fndecl has the
2102 returns_twice attribute.
2103
2104 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2105
2106 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2107 -ffast-math etc.
2108
2109 2011-06-06 Richard Henderson <rth@redhat.com>
2110 Georg-Johann Lay <avr@gjlay.de>
2111
2112 PR target/42210
2113 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2114 New predicates.
2115 * config/avr/avr.md ("insv"): New insn expander.
2116 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2117 "*insv.not.io", "*insv.reg"): New insns.
2118
2119 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
2120
2121 PR target/49285
2122 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2123 to nonimmediate_operand from memory_operand for the operand that is to
2124 be forced to memory by the expander. Lose the constraints.
2125
2126 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
2127
2128 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2129 EH return when delayed branches are disabled.
2130
2131 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
2132
2133 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2134 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
2135 calculation.
2136 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2137 Simplify MODE_V1DF and MODE_V2SF handling.
2138 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2139 Simplify MODE_SF handling.
2140
2141 2011-06-04 Jan Hubicka <jh@suse.cz>
2142
2143 PR tree-optimization/48893
2144 PR tree-optimization/49091
2145 PR tree-optimization/49179
2146 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2147 Bounds check.
2148
2149 2011-06-04 Jan Hubicka <jh@suse.cz>
2150
2151 PR lto/48954
2152 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2153 bitmaps.
2154
2155 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
2156
2157 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2158
2159 2011-06-04 Jakub Jelinek <jakub@redhat.com>
2160
2161 PR target/49281
2162 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2163 to be strictly smaller than 1 << shiftcount.
2164
2165 2011-06-04 Jan Hubicka <jh@suse.cz>
2166
2167 PR tree-optimize/48929
2168 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2169 of empty predicate.
2170
2171 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
2172
2173 PR debug/48333
2174 * calls.c (emit_call_1): Prefer the __builtin declaration of
2175 builtin functions.
2176
2177 2011-06-03 Diego Novillo <dnovillo@google.com>
2178
2179 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2180 (lto_input_tree_pointers): Likewise.
2181 * lto-streamer-out.c (pack_value_fields): Likewise.
2182 (lto_output_tree_pointers): Likewise.
2183 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2184 and OPTIMIZATION_NODE.
2185
2186 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2187
2188 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2189 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2190 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2191 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2192 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2193 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2194 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2195 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2196 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2197 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2198 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2199 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2200 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2201 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2202 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2203 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2204 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2205 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2206 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2207 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2208 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2209 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2210 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2211 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2212 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2213 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2214 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2215 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2216 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2217 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2218 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2219 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2220 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2221 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2222 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2223 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2224 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2225 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2226 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2227 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2228 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2229 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2230 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2231 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2232 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2233 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2234 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2235 * system.h (MD_UNWIND_SUPPORT): Poison.
2236 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2237 * doc/tm.texi: Regenerate.
2238 * unwind-dw2.c: Include md-unwind-support.h instead of
2239 MD_UNWIND_SUPPORT.
2240 * config/ia64/unwind-ia64.c: Likewise.
2241 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2242
2243 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
2244
2245 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
2246
2247 2011-06-03 Richard Henderson <rth@redhat.com>
2248 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2249
2250 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
2251 (sigill_hdlr): Correct insn, insn size.
2252 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
2253
2254 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2255
2256 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
2257 t-slibgcc-dummy.
2258 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
2259 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
2260 * config/mips/t-iris: Remove.
2261 * config/mips/t-irix6: New file.
2262 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
2263
2264 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2265
2266 * Makefile.in (LIB2ADDEHDEP): Remove.
2267 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
2268 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
2269 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
2270 * config/t-darwin (LIB2ADDEHDEP): Remove.
2271 * config/t-freebsd (LIB2ADDEHDEP): Remove.
2272 * config/t-linux (LIB2ADDEHDEP): Remove.
2273
2274 2011-06-03 Diego Novillo <dnovillo@google.com>
2275
2276 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
2277 (lto_register_var_decl_in_symtab): Likewise.
2278 (lto_register_function_decl_in_symtab): Likewise.
2279 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
2280 logic to uniquify_nodes.
2281
2282 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2283
2284 * config/alpha/t-osf5: Remove.
2285 * config/alpha/t-osf-pthread: Remove.
2286 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
2287 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
2288
2289 2011-06-03 Julian Brown <julian@codesourcery.com>
2290
2291 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
2292 (strongarm1110): Use strongarm tuning.
2293 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
2294 * config/arm/arm.c (arm_strongarm_tune): New.
2295 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2296 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
2297 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
2298 setting, using previous defaults or 1 for Cortex-A5.
2299 (arm_option_override): Set max_insns_skipped from current tuning.
2300
2301 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
2302
2303 * doc/install.texi (Options specification): Document --with-specs.
2304
2305 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2306
2307 * config/arm/neon.md (orndi3_neon): Actually split it.
2308
2309 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2310
2311 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
2312 * var-tracking.c (reverse_op): Limite recurse depth to 5.
2313
2314 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2315
2316 PR debug/47590
2317 * target.def (delay_sched2, delay_vartrack): New.
2318 * doc/tm.texi.in: Update.
2319 * doc/tm.texi: Rebuild.
2320 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
2321 * var-tracking.c (gate_handle_var_tracking): Likewise.
2322 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
2323 (bfin_flag_var_tracking): Drop.
2324 (output_file_start): Don't save and override flag_var_tracking.
2325 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
2326 (bfin_reorg): Test original variables.
2327 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2328 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
2329 (ia64_flag_var_tracking): Drop.
2330 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2331 (ia64_file_start): Don't save and override flag_var_tracking.
2332 (ia64_override_options_after_change): Ditto
2333 flag_schedule_insns_after_reload.
2334 (ia64_reorg): Test original variables.
2335 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
2336 (picochip_flag_var_tracking): Drop.
2337 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2338 (picochip_option_override): Don't save and override
2339 flag_schedule_insns_after_reload.
2340 (picochip_asm_file_start): Ditto flag_var_tracking.
2341 (picochip_reorg): Test original variables.
2342 * config/spu/spu.c (spu_flag_var_tracking): Drop.
2343 (TARGET_DELAY_VARTRACK): Define.
2344 (spu_var_tracking): New.
2345 (spu_machine_dependent_reorg): Call it.
2346 (asm_file_start): Don't save and override flag_var_tracking.
2347
2348 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
2349
2350 PR target/49163
2351 * config/sh/predicates.md (general_movsrc_operand): Return 0
2352 for memory and memory subreg of which address is an invalid
2353 indexed address for QI and HImode.
2354 (general_movdst_operand): Likewise.
2355
2356 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2357
2358 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
2359 edges only, when there is a non-local label in the function.
2360 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
2361
2362 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2363
2364 * config/i386/constraints.md (Y3): New register constraint.
2365 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
2366 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
2367 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
2368 *sse2_interleave_lowv2df.
2369
2370 2011-06-02 Julian Brown <julian@codesourcery.com>
2371
2372 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
2373 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
2374 (arm_cortex_a5_tune): New.
2375
2376 2011-06-02 Julian Brown <julian@codesourcery.com>
2377
2378 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
2379 * config/arm/arm.c (arm_default_branch_cost): New.
2380 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2381 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
2382 (arm_fa726_tune): Set branch_cost field using
2383 arm_default_branch_cost.
2384 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
2385 current_tune structure.
2386 * dojump.c (tm_p.h): Include file.
2387
2388 2011-06-02 Julian Brown <julian@codesourcery.com>
2389
2390 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
2391 tuning.
2392 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
2393 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
2394 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
2395 field.
2396 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
2397 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
2398 (arm_fa726te_tune): Add prefer_constant_pool setting.
2399 (arm_v6t2_tune, arm_cortex_tune): New.
2400 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
2401 prefer_constant_pool setting.
2402
2403 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2404
2405 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
2406 switch statement.
2407 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
2408 (*movdf_internal) <case 6,7,8>: Ditto.
2409
2410 * config/i386/constraints.md (Y4): New register constraint.
2411 * config/i386/sse.md (vec_set<mode>_0): Merge with
2412 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
2413 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
2414 *vec_extractv2di_1_sse.
2415 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
2416 and *vec_concatv2di_rex64_sse.
2417
2418 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
2419
2420 PR target/48807
2421 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
2422 of cgraph_local_info for null before attempting to use it.
2423
2424 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2425
2426 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
2427 (current_function_dynamic_alloc_count): Delete.
2428 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
2429 (expand_builtin_nonlocal_goto): Remove obsolete comment.
2430 (expand_builtin_update_setjmp_buf): Remove dead code.
2431 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
2432 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
2433 support.
2434 * function.c (instantiate_virtual_regs): Likewise.
2435 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
2436 for a block with a single abnormal incoming edge.
2437 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
2438 (SETJMP_VIA_SAVE_AREA): Delete.
2439 * config/sparc/sparc-protos.h (load_got_register): Declare.
2440 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2441 (load_got_register): Make global.
2442 (sparc_frame_pointer_required): Add 'static'.
2443 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
2444 (sparc_builtin_setjmp_frame_value): New function.
2445 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
2446 (save_stack_nonlocal): New expander.
2447 (restore_stack_nonlocal): Likewise.
2448 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
2449 (nonlocal_goto_internal): New insn.
2450 (goto_handler_and_restore): Delete.
2451 (builtin_setjmp_setup): Likewise.
2452 (do_builtin_setjmp_setup): Likewise.
2453 (setjmp): Likewise.
2454 (builtin_setjmp_receiver): New expander.
2455
2456 2011-06-01 David Li <davidxl@google.com>
2457
2458 PR middle-end/49261
2459 * tree-pretty-print.c (dump_function_header): Format cleanup.
2460
2461 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
2462
2463 PR target/49238
2464 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
2465 needed when original operands are used for msw_skip comparison.
2466
2467 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2468
2469 PR debug/49250
2470 * var-tracking.c (add_uses, add_stores): Don't call
2471 cselib_subst_to_values on ENTRY_VALUE.
2472
2473 2011-06-01 Diego Novillo <dnovillo@google.com>
2474
2475 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
2476 output_record_start with LTO_null instead of output_zero.
2477 (lto_output_ts_binfo_tree_pointers): Likewise.
2478 (lto_output_tree): Likewise.
2479 (output_eh_try_list): Likewise.
2480 (output_eh_region): Likewise.
2481 (output_eh_lp): Likewise.
2482 (output_eh_regions): Likewise.
2483 (output_bb): Likewise.
2484 (output_function): Likewise.
2485 (output_unreferenced_globals): Likewise.
2486 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
2487 instead of NUM_TREE_CODES.
2488 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
2489 (lto_output_int_in_range): Change << to >> when shifting VAL.
2490
2491 2011-06-01 Diego Novillo <dnovillo@google.com>
2492
2493 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
2494 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
2495
2496 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2497
2498 PR target/45074
2499 * optabs.h (valid_multiword_target_p): Declare.
2500 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
2501 doing multi-word operations.
2502 * optabs.c (expand_binop): Likewise.
2503 (expand_doubleword_bswap): Likewise.
2504 (expand_absneg_bit): Likewise.
2505 (expand_unop): Likewise.
2506 (expand_copysign_bit): Likewise.
2507 (multiword_target_p): New function.
2508
2509 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2510
2511 PR rtl-optimization/48830
2512 PR rtl-optimization/48808
2513 PR rtl-optimization/48792
2514 * reload.c (push_reload): Check contains_reg_of_mode.
2515 * reload1.c (strip_paradoxical_subreg): New function.
2516 (gen_reload_chain_without_interm_reg_p): Use it to handle
2517 paradoxical subregs.
2518 (emit_output_reload_insns, gen_reload): Likewise.
2519
2520 2011-06-01 David Li <davidxl@google.com>
2521
2522 * predict.c : Change pass name
2523 * ipa.c: Ditto.
2524 * dce.c: Ditto.
2525 * tree-profile.c: Ditto.
2526 * except.c: Ditto.
2527
2528 2011-06-01 David Li <davidxl@google.com>
2529
2530 * tree-pretty-print.c (dump_function_header): New function.
2531 * final.c (rest_of_clean_state): Use header dumper.
2532 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
2533 * passes.c (pass_init_dump_file): Use header dumper.
2534
2535 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2536
2537 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
2538 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
2539 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
2540 New functions.
2541 (mem_loc_descriptor): Use them.
2542
2543 * var-tracking.c (create_entry_value): New function.
2544 (vt_add_function_parameter): Use it.
2545
2546 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2547
2548 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
2549 Include <signal.h>, <ucontext.h>.
2550 (sigill_caught): Define.
2551 (sigill_hdlr): New function.
2552 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
2553 insns can be executed.
2554 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
2555 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
2556
2557 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2558
2559 * config/t-slibgcc-darwin: Move to ...
2560 * config/t-slibgcc-dummy: ... this. Clarify comments.
2561 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
2562 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
2563 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
2564 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
2565 Remove i386/t-crtstuff from tmake_file.
2566 (i[34567]86-*-solaris2*): Remove t-svr4,
2567 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
2568 t-slibgcc-dummy.
2569 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
2570 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
2571 sparc/t-crtfm from tmake_file.
2572 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
2573 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
2574 Remove extra_parts.
2575 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
2576 * config/i386/t-nwld (SHLIB_LINK): Remove.
2577 * config/i386/t-rtems-i386: Rename to ...
2578 * config/i386/t-rtems: ... this.
2579 ($(T)crti.o, $(T)crtn.o): Remove.
2580 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
2581 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
2582 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
2583 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
2584 EXTRA_MULTILIB_PARTS): Remove.
2585 * config/sparc/t-sol2-64: Likewise.
2586 * config/sparc/t-sol2: Remove.
2587 * config/sparc/t-crtin: Remove.
2588 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
2589 * config/i386/gmon-sol2.c: Remove.
2590 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
2591 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
2592 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
2593 * config/i386/sol2-gc1.asm: Remove.
2594 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
2595 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
2596 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
2597 * config/t-slibgcc-sld: Remove.
2598
2599 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2600
2601 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
2602 base_type_for_mode with op_mode instead of mode.
2603
2604 2011-06-01 Paul Brook <paul@cpodesourcery.com>
2605
2606 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
2607 Cortex-A15.
2608 * config/arm/arm-tune.md: Regenerate.
2609 * config/arm/arm-tables.opt: Regenerate.
2610 * config/arm/arm.c (FL_DIV): Rename...
2611 (FL_THUMB_DIV): ... to this.
2612 (FL_ARM_DIV): Define.
2613 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
2614 (arm_arch_hwdiv): Remove.
2615 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
2616 (arm_issue_rate): Add cortexr5.
2617 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
2618 __ARM_ARCH_EXT_IDIV__.
2619 (TARGET_IDIV): Define.
2620 (arm_arch_hwdiv): Remove.
2621 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
2622 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
2623 (divsi3, udivsi3): New patterns.
2624 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
2625 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
2626
2627 2011-06-01 Martin Jambor <mjambor@suse.cz>
2628
2629 * ipa-utils.c (ipa_dfs_info): New field scc_no.
2630 * ipa-utils.c (searchc): Set scc_no.
2631
2632 2011-06-01 Martin Jambor <mjambor@suse.cz>
2633
2634 * ipa-utils.c (searchc_env): New field allow_overwritable.
2635 (searchc): do not ignore edges to overwritable nodes if indicated
2636 by env->allow_overwritable.
2637 (ipa_reduced_postorder): Set env.allow_overwritable.
2638
2639 2011-06-01 Richard Guenther <rguenther@suse.de>
2640
2641 * tree.c (free_lang_data): Do not reset boolean_type_node nor
2642 char_type_node.
2643 * lto-streamer.c (lto_record_common_node): Take node pointer,
2644 do not register types.
2645 (lto_preload_common_nodes): Explicitly skip preloading nodes
2646 that differ between frontends.
2647
2648 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2649
2650 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
2651 NON_FLOAT_REGS.
2652
2653 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2654
2655 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
2656 parameter value for dump. Dump cost on outermost call only.
2657 (rs6000_memory_move_cost): Dump cost on outermost call only.
2658
2659 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2660
2661 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
2662 DW_OP_GNU_convert ops.
2663
2664 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
2665 cselib_preserve_constants.
2666 (cselib_lookup_1): If cselib_preserve_constants,
2667 a new VALUE is being created for REG and there is a VALUE for the
2668 same register in wider mode, add another loc with lowpart SUBREG of
2669 the wider VALUE.
2670 (cselib_subst_to_values): Handle ENTRY_VALUE.
2671 * var-tracking.c (replace_expr_with_values): Return NULL for
2672 ENTRY_VALUE too.
2673 * dwarf2out.c (convert_descriptor_to_signed): New function.
2674 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
2675 instead of two shifts.
2676 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
2677 the right mode if needed.
2678 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
2679 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
2680 convert_descriptor_to_signed.
2681 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
2682 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
2683
2684 PR target/48688
2685 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
2686
2687 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2688
2689 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
2690 of X87MODEI12 and SWI48x instead of SSEMODEI24.
2691 (SWI248x): New mode iterator, rename from X87MODEI.
2692 (X87MODEI): Remove mode iterator.
2693 (X87MODEI12): Ditto.
2694 (SSEMODEI24): Ditto.
2695
2696 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2697
2698 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
2699 * doc/invoke.texi: Document max-vartrack-expr-depth.
2700 * var-tracking.c (EXPR_DEPTH): New.
2701 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
2702
2703 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2704
2705 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
2706 * config/i386/sse.md: Add n to negated FMA pattern names.
2707
2708 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2709
2710 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
2711
2712 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2713
2714 * gengtype-state.c (read_state_params_structs): Initialize previous.
2715
2716 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2717
2718 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
2719 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
2720
2721 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2722
2723 * config/i386/i386.md (*movtf_internal): Avoid allocating general
2724 registers. Penalize F*r->o alternative to prevent partial memory
2725 stalls. Slightly penalize *roF->*r alternative. Generate SSE
2726 CONST_DOUBLE immediates when optimizing function for size. Do not move
2727 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2728 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
2729 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
2730 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
2731 alternatives.
2732 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
2733
2734 (fp_register_operand splitters): Use fp_register_operand
2735 constraint. Do not use FP_REG_P in insn condition.
2736 (any_fp_register_operand splitters): Use any_fp_register_operand
2737 constraint. Do not use ANY_FP_REG_P in insn condition.
2738
2739 2011-05-31 Jan Hubicka <jh@suse.cz>
2740
2741 * cgraph.h (cgraph_inline_failed_t): Give enum a name
2742 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
2743 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
2744 (lto_output_edge): Use output_enum and var_len_unsigned.
2745 (lto_output_varpool_node): Likewise.
2746 (input_overwrite_node): Do not take resolution parameter;
2747 extract it from a bitpack.
2748 (input_node): Do not read resolution; use input_enum and
2749 var_len_unsigned.
2750 (input_varpool_node): Likewise.
2751 (input_edge): Likewise.
2752 (input_cgraph_1): Likewise.
2753
2754 2011-05-31 Richard Guenther <rguenther@suse.de>
2755
2756 * gimple.c (gimple_register_canonical_type): Do not register
2757 any types via gimple_register_type.
2758
2759 2011-05-31 Jan Hubicka <jh@suse.cz>
2760
2761 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
2762 of thunks.
2763
2764 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2765
2766 PR rtl-optimization/49235
2767 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
2768 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
2769
2770 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
2771
2772 PR tree-optimization/49093
2773 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2774 data references.
2775
2776 2011-05-31 Dodji Seketeli <dodji@redhat.com>
2777
2778 PR debug/49047
2779 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
2780 for concrete functions containing the code of cloned functions.
2781
2782 2011-05-31 Richard Guenther <rguenther@suse.de>
2783
2784 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
2785 to ...
2786 (forward_propagate_into_comparison_1): ... this.
2787 (forward_propagate_comparison): Rename to ...
2788 (forward_propagate_into_comparison): ... this. Split out
2789 real forward propagation code to ...
2790 (forward_propagate_comparison): ... this.
2791 (forward_propagate_into_gimple_cond): Remove looping.
2792 (forward_propagate_into_cond): Likewise.
2793 (simplify_not_neg_expr): Return whether we have done something.
2794 (simplify_gimple_switch): Likewise.
2795 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
2796 (ssa_forward_propagate_and_combine): ... this. Re-structure
2797 to do a forward forward-propagation walk on BBs and a backward
2798 stmt combining walk on BBs. Consistently re-scan changed statements.
2799 (pass_forwprop): Adjust.
2800
2801 2011-05-30 Ian Lance Taylor <iant@google.com>
2802
2803 * godump.c (go_format_type): Correct length of name added to
2804 obstack for anonymous field.
2805
2806 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
2807
2808 PR target/49186
2809 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
2810 part of the second operand is 0.
2811
2812 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
2813
2814 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
2815 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
2816 to memory for !TARGET_MEMORY_MISMATCH_STALL.
2817 (*movdf_internal_rex64): Do not penalize F->r alternative.
2818 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
2819 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
2820 when optimizing function for size. Do not move CONST_DOUBLEs
2821 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2822 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
2823 SUBREGs. Do not check for MEM_P operands in the insn condition,
2824 check for ANY_FP_REGNO_P instead.
2825 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
2826 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
2827 function for speed.
2828 * config/i386/i386.c (ix86_option_override_internal): Do not
2829 set TARGET_INTEGER_DFMODE_MOVES here.
2830
2831 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
2832
2833 PR target/49168
2834 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
2835
2836 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2837
2838 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
2839 DW_TAG_rvalue_reference_type even for
2840 -gdwarf-4 -fno-debug-types-section.
2841
2842 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2843
2844 PR tree-optimization/46728
2845 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
2846 (build_and_insert_binop): New.
2847 (gimple_expand_builtin_pow): Reorder args for
2848 build_and_insert_call; use build_and_insert_binop; add more
2849 optimizations for fractional exponents.
2850
2851 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2852
2853 PR bootstrap/49190
2854
2855 Revert:
2856 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2857
2858 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2859 tree_common.
2860 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2861 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2862 TS_BASE instead of TS_COMMON.
2863 * varasm.c (assemble_name): Remove assert.
2864
2865 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
2866
2867 * config.gcc: Keep obselete list sorted.
2868
2869 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2870 Eric Botcazou <ebotcazou@adacore.com>
2871
2872 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
2873 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
2874 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
2875 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
2876 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
2877
2878 2011-05-30 Richard Guenther <rguenther@suse.de>
2879
2880 * gimple.c (gimple_types_compatible_p_1): Compare record
2881 and union type members properly.
2882
2883 2011-05-30 Richard Guenther <rguenther@suse.de>
2884
2885 PR tree-optimization/49210
2886 * ipa-split.c (split_function): Care for the case where the call
2887 result is not trivially convertible to the result holding variable.
2888
2889 2011-05-30 Richard Guenther <rguenther@suse.de>
2890
2891 PR tree-optimization/49218
2892 * tree-vrp.c (adjust_range_with_scev): Properly check whether
2893 overflow occured.
2894
2895 2011-05-30 Richard Guenther <rguenther@suse.de>
2896
2897 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
2898 New function split out from ...
2899 (forward_propagate_into_gimple_cond): ... here. Adjust.
2900 (forward_propagate_into_cond): Likewise.
2901 (forward_propagate_comparison): Also propagate into
2902 comparisons on assignment RHS. Change return value to
2903 behave similar to forward_propagate_into_cond.
2904 (tree_ssa_forward_propagate_single_use_vars): Handle
2905 strict-overflow warnings properly for forward_propagate_comparison.
2906
2907 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2908
2909 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
2910 from plugin linker.
2911 * configure: Regenerate.
2912
2913 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
2914
2915 PR tree-optimization/49199
2916 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
2917 non-reduction operands are either defined in the loop or by induction.
2918
2919 2011-05-29 Xinliang David Li <davidxl@google.com>
2920
2921 * opts-global.c (handle_common_deferred_options): Handle new options.
2922 * passes.c (register_one_dump_file): Call register_pass_name.
2923 (execute_one_pass): Check explicit enable/disable flag.
2924 (passr_hash): New function.
2925 (passr_eq): Ditto.
2926 (register_pass_name): Ditto.
2927 (get_pass_by_name): Ditto.
2928 (pass_hash): Ditto.
2929 (pass_eq): Ditto.
2930 (enable_pass): Ditto.
2931 (disable_pass): Ditto.
2932 (is_pass_explicitly_enabled_or_disabled): Ditto.
2933
2934 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
2935
2936 * config/i386/i386.md (*movoi_internal_avx): Use
2937 standard_sse_constant_opcode for alternative 0.
2938 (*movti_internal_sse): Ditto.
2939 (*movti_internal_rex64): Use standard_sse_constant_opcode for
2940 alternative 2.
2941 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
2942 sselog1 type moves.
2943 (*movsi_internal): Ditto.
2944 (*movdi_internal): Ditto. Add ssecvt type moves.
2945
2946 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
2947
2948 PR target/48830
2949 * rtlanal.c (simplify_subreg_regno): Adjust comment.
2950
2951 2011-05-29 Jakub Jelinek <jakub@redhat.com>
2952
2953 PR rtl-optimization/49095
2954 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
2955 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
2956
2957 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2958
2959 PR target/43995
2960 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
2961 recurse_p argument. Only follow register copies if it is set,
2962 and prevent mips_find_pic_call_symbol from recursing.
2963 (mips_find_pic_call_symbol): Add a recurse_p argument.
2964 Pass it to mips_pic_call_symbol_from_set.
2965 (mips_annotate_pic_calls): Update accordingly.
2966
2967 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2968
2969 * emit-rtl.c (try_split): Use a loop to search for
2970 NOTE_INSN_CALL_ARG_LOCATIONs.
2971
2972 2011-05-29 Richard Guenther <rguenther@suse.de>
2973
2974 PR tree-optimization/49217
2975 * ipa-pure-const.c (propagate_pure_const): Fix typos.
2976
2977 2011-05-28 Jan Hubicka <jh@suse.cz>
2978
2979 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
2980 length.
2981 (string_slot_free): Remove
2982 (create_output_block): Initialize obstack.
2983 (destroy_output_block): Free obstack.
2984 (lto_string_index): Add PERSISTENT parameter; do not duplicate
2985 the string unless it needs to be added into the hash.
2986 (lto_output_string_with_length): Add persistent attribute;
2987 handle NULL strings.
2988 (lto_output_string): Add PERSISTENT parameter.
2989 (output_string_cst, output_identifier): Simplify.
2990 (lto_output_location_bitpack): Update.
2991 (lto_output_builtin_tree): Update.
2992 * lto-streamer.h (struct output_block): Add obstack.
2993 (lto_output_string, lto_output_string_with_length): Remove
2994 declarations; functions are static now.
2995
2996 2011-05-28 Jan Hubicka <jh@suse.cz>
2997
2998 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
2999 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3000 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3001 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3002 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3003 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3004 unpack_ts_decl_with_vis_value_fields,
3005 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3006 lto_get_builtin_tree): Use enum and variable length i/o.
3007 * basic-block.h (profile_status_d): Add PROFILE_LAST.
3008 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3009 New functions.
3010 (bp_pack_enum, bp_unpack_enum): New macros.
3011
3012 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3013
3014 * genrecog.c: Remove redundant forward declarations.
3015
3016 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3017
3018 * config.gcc: Deprecate mips*-*-openbsd*.
3019
3020 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3021
3022 PR bootstrap/49195
3023 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3024 for match_op_dup.
3025
3026 2011-05-27 Andrew Pinski <pinskia@gmail.com>
3027
3028 PR middle-end/48981
3029 * gengtype.c (vec_prefix_type): New function.
3030 (note_def_vec): Use vec_prefix_type and change the length
3031 attribute to be based on the prefix.
3032 * vec.c: Include coretypes.h before vec.h.
3033 (struct vec_prefix): Remove.
3034 (vec_gc_p_reserve): Change the offsetof to sizeof.
3035 (vec_gc_p_reserve_exact): Likewise.
3036 (vec_heap_p_reserve): Likewise.
3037 (vec_heap_p_reserve_exact): Likewise.
3038 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3039 (vec_stack_p_reserve): Change the offsetof to sizeof.
3040 (vec_stack_p_reserve_exact): Likewise.
3041 * vec.h (struct vec_prefix): New struct definition.
3042 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3043 (VEC_T_GTY(T,B)): Likewise.
3044 (DEF_VEC_FUNC_P(T)): Use prefix field.
3045 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3046 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3047
3048 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3049
3050 PR tree-optimization/46728
3051 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3052 (powi_as_mults): Add gimple_set_location.
3053 (build_and_insert_call): New.
3054 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3055 0.5, 0.25, 0.75, 1./3., or 1./6.
3056
3057 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
3058
3059 * doc/contrib.texi: Update copyright years.
3060 (Contributors): Add Zdenek Sojka.
3061
3062 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3063
3064 * c-decl.c (c_push_function_context): Copy the current statement
3065 list stack.
3066 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3067 (finish_struct): Call building_stmt_list_p instead of checking
3068 cur_stmt_list.
3069 * c-parser.c (c_parser_postfix_expression): Likewise.
3070 * c-typeck.c (c_end_compound_stmt): Likewise.
3071 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3072 * tree-iterator.c (stmt_list_cache): Change to a VEC.
3073 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3074 (free_stmt_list): Likewise.
3075 * tree.h (struct tree_statement_list): Include typed_tree instead
3076 of tree_common.
3077 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3078 as TS_TYPED instead of TS_COMMON.
3079
3080 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3081 Uros Bizjak <ubizjak@gmail.com>
3082
3083 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3084 (HAVE_AS_IX86_TLSGDPTL): Define.
3085 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3086 (HAVE_AS_IX86_TLSLDMPLT): Define.
3087 * configure: Regenerate.
3088 * config.in: Regenerate.
3089 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3090 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3091 TARGET_SUN_TLS, use @tlsgdplt or @plt.
3092 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3093 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3094 @tlsldmplt or @plt.
3095 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3096
3097 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3098
3099 * sched-int.h (struct _haifa_deps_insn_data): New members cond
3100 and reverse_cond.
3101 (INSN_COND, INSN_REVERSE_COND): New macros.
3102 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3103 once.
3104 (sched_get_condition_with_rev): Cache the results, and look them up
3105 if possible.
3106 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3107 are clobbered by the current insn.
3108 * target.def (exposed_pipline): New sched data hook.
3109 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3110 * doc/tm.texi: Regenerate.
3111
3112 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3113
3114 PR tree-optimization/49170
3115 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
3116 sincos or cexp.
3117
3118 2011-05-27 Richard Guenther <rguenther@suse.de>
3119
3120 PR middle-end/49189
3121 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3122 of comparisons.
3123
3124 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3125
3126 * haifa-sched.c (sched_scan_info): Remove.
3127 (schedule_block): Call sched_extend_luids rather than sched_init_luids
3128 with NULL args.
3129 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3130 Remove functions.
3131 (sched_scan): Remove.
3132 (sched_extend_luids): Renamed from luids_extend_insn and no longer
3133 static. All callers changed.
3134 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3135 static. All callers changed.
3136 (sched_init_luids): Remove all arguments except the first. All
3137 callers changed. Don't use sched_scan.
3138 (haifa_init_h_i_d): Likewise.
3139 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3140 manually rather than using sched_init_luids. Likewise with
3141 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3142 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3143 rather than sched_init_luids with NULL args.
3144 * sel-sched-ir.c (new_insns): Remove variable.
3145 (sched_scan): New static function, previously in haifa-sched.c. Remove
3146 all arguments but the first two; all callers changed.
3147 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3148 rather than sched_init_luids.
3149 (sel_init_bbs): Remove second argument. All callers changed.
3150 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3151 with NULL arguments.
3152 (create_insn_rtx_from_pattern): Likewise.
3153 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3154 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3155 (sched_init_insn_luid, sched_extend_luids): Declare.
3156 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3157 declarations.
3158
3159 2011-05-27 Richard Guenther <rguenther@suse.de>
3160
3161 PR middle-end/49177
3162 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3163 A CMP B ? (T) true : (T) false for non-integral types T again.
3164
3165 2011-05-27 Jan Hubicka <jh@suse.cz>
3166
3167 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3168 so 0 means NULL string.
3169 (lto_output_string_with_length): ... here.
3170 (lto_output_string, output_string_cst, output_identifier): Update
3171 handling of NULL strings.
3172 (lto_output_location_bitpack): New function.
3173 (lto_output_location): Use it.
3174 (lto_output_tree_ref): Use output_record_start.
3175 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3176 len values.
3177 * lto-streamer-in.c (string_for_index): Break out from ...; offset
3178 values by 1.
3179 (input_string_internal): ... here;
3180 (input_string_cst, input_identifier, lto_input_string): Update handling
3181 of NULL strings.
3182 (lto_input_location_bitpack): New function
3183 (lto_input_location): Use it.
3184 (unpack_ts_type_common_value_fields): Pack align & alias in var len
3185 values.
3186 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3187 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3188 (bp_pack_value): Sanity check the value range.
3189 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3190 New functions.
3191 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3192 New functions.
3193
3194 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
3195
3196 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3197 call_arg_location instructions down the floor.
3198
3199 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
3200
3201 PR rtl-optimization/49154
3202 * ira.c (setup_pressure_classes): Process class without sublcasses
3203 as a candidate for pressure classes.
3204
3205 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
3206
3207 PR rtl-optimization/48575
3208 * genrecog.c (position_type): New enum.
3209 (position): New structure.
3210 (decision): Use position structure instead of a string.
3211 (root_pos, peep2_insn_pos_list): New variables.
3212 (next_position, compare_positions): New functions.
3213 (new_decision): Use position structures instead of strings.
3214 (maybe_both_true): Likewise.
3215 (change_state): Likewise.
3216 (write_tree): Likewise.
3217 (make_insn_sequence): Likewise.
3218
3219 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3220
3221 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3222 TS_BASE instead of TS_COMMON.
3223 (find_decls_types_r): Check for TS_TYPED structure before looking at
3224 TREE_TYPE.
3225 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3226 Add chain field.
3227 (BLOCK_CHAIN): Use new chain field.
3228
3229 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
3230
3231 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3232 moves expensive on Power7 also.
3233
3234 2011-05-26 Richard Guenther <rguenther@suse.de>
3235
3236 * fold-const.c (fold_unary_loc): Remove bogus code.
3237
3238 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3239
3240 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3241 tree_common.
3242 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3243 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3244 TS_BASE instead of TS_COMMON.
3245 * varasm.c (assemble_name): Remove assert.
3246
3247 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3248
3249 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
3250 substituted first.
3251 * libgcc-std.ver: Delete file.
3252
3253 2011-05-26 Richard Guenther <rguenther@suse.de>
3254
3255 PR tree-optimization/48702
3256 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
3257 only when we know the base address is within bounds.
3258 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
3259 assume the base address of TARGET_MEM_REFs is in bounds.
3260
3261 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3262
3263 PR target/49099
3264 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
3265 declaration in TARGET_SOLARIS.
3266
3267 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
3268
3269 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
3270 The instruction is then expanded explicitly.
3271 (supported_compare): Callable instruction.
3272 (compare): Likewise.
3273
3274 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3275
3276 PR c++/49165
3277 * gimplify.c (shortcut_cond_r): Don't special case
3278 COND_EXPRs if they have void type on one of their arms.
3279
3280 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3281
3282 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
3283 to reduce duplication, and to achieve a slightly more logical order
3284 of operations.
3285
3286 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3287
3288 PR tree-optimization/49161
3289 * tree-vrp.c (struct case_info): New type.
3290 (compare_case_labels): Sort case_info structs instead of
3291 trees, and not primarily by CASE_LABEL uids but by
3292 label_for_block indexes.
3293 (find_switch_asserts): Put case labels into struct case_info
3294 array instead of TREE_VEC, adjust sorting, compare label_for_block
3295 values instead of CASE_LABELs.
3296
3297 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3298
3299 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
3300 ("orndi3_neon"): Likewise.
3301 ("bic<mode>3_neon"): Likewise.
3302
3303 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
3304
3305 PR tree-optimization/49038
3306 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
3307 Ensure at least one epilogue iteration if required by data
3308 accesses with gaps.
3309 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3310 to mark loops that require peeling for gaps.
3311 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
3312 (vect_get_known_peeling_cost): Take peeling for gaps into
3313 account.
3314 (vect_transform_loop): Generate epilogue if required by data
3315 access with gaps.
3316 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
3317 loop as requiring an epilogue if there are gaps in the end of
3318 the strided group.
3319
3320 2011-05-25 Ian Lance Taylor <iant@google.com>
3321
3322 * godump.c (go_format_type): Output the first field with a usable
3323 Go type, if any.
3324
3325 2011-05-25 Ian Lance Taylor <iant@google.com>
3326
3327 * godump.c (go_format_type): Check for invalid type names, pointer
3328 target types, and struct field types.
3329
3330 2011-05-25 Jason Merrill <jason@redhat.com>
3331
3332 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
3333
3334 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
3335
3336 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
3337
3338 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3339
3340 * config/i386/i386.md (*movqi_extv_1)): Put back
3341 "register_operand" check in "type" calculation.
3342 (*movqi_extzv_2): Likewise.
3343
3344 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3345
3346 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
3347
3348 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3349
3350 PR bootstrap/49160
3351 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
3352 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
3353 __divxc3, __divtc3): Wrap definitions in #ifndef.
3354
3355 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3356
3357 PR target/49142
3358 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
3359 "register_operand" check and replace q_regs_operand with
3360 QIreg_operand in "type" calculation.
3361 (*movqi_extv_1): Likewise.
3362 (*movqi_extzv_2_rex64): Likewise.
3363 (*movqi_extzv_2): Likewise.
3364
3365 * config/i386/predicates.md (QIreg_operand): New.
3366
3367 2011-05-25 Richard Guenther <rguenther@suse.de>
3368
3369 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
3370 type-based offset disambiguation, streamline MEM_REF and
3371 TARGET_MEM_REF handling.
3372
3373 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3374
3375 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
3376 (bdesc_special_args): Add pause intrinsic.
3377
3378 * config/i386/i386.md (UNSPEC_PAUSE): New.
3379 (pause): Likewise.
3380 (*pause): Likewise.
3381 * config/i386/ia32intrin.h (__pause): Likewise.
3382
3383 * doc/extend.texi (X86 Built-in Functions): Add documentation for
3384 pause intrinsic.
3385
3386 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3387
3388 PR tree-optimization/46728
3389 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
3390 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
3391
3392 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
3393
3394 * tree.h (struct tree_exp): Inherit from struct tree_typed.
3395 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
3396 instead of TS_COMMON.
3397
3398 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3399
3400 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
3401 LIBGCC2_GNU_PREFIX is defined.
3402 (__N): New macro.
3403 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
3404 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
3405 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
3406 __clz_tab): Define using __N.
3407 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
3408 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
3409 * target.def (libfunc_gnu_prefix): New hook.
3410 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
3411 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
3412 * doc/tm.texi: Regenerate.
3413 * system.h (LIBGCC2_GNU_PREFIX): Poison.
3414 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
3415 account.
3416 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
3417 (init_optabs): Likewise for the bswap libfuncs.
3418 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
3419 and divide.
3420 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
3421 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
3422 * libgcc-std.ver: Remove.
3423 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
3424 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
3425 libgcc-std.ver.
3426 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3427 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
3428 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
3429 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
3430 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
3431 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3432 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3433 * config/fixed-bit.h (FIXED_OP): Define differently depending on
3434 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
3435 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
3436
3437 2011-05-25 Jan Hubicka <jh@suse.cz>
3438
3439 * lto-streamer-out.c (output_record_start): Use lto_output_enum
3440 (lto_output_tree): Use output_record_start.
3441 * lto-streamer-in.c (input_record_start): Use lto_input_enum
3442 (lto_get_pickled_tree): Use input_record_start.
3443 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
3444 (lto_value_range_error): New function.
3445 * lto-streamer.h (lto_value_range_error): Declare.
3446 (lto_output_int_in_range, lto_input_int_in_range): New functions.
3447 (lto_output_enum, lto_input_enum): New macros.
3448
3449 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
3450
3451 * common.opt (flag_stack_usage_info): New variable.
3452 (-Wstack-usage): New option.
3453 * doc/invoke.texi (Warning options): Document -Wstack-usage.
3454 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
3455 <OPT_fstack_usage>: Likewise.
3456 * toplev.c (output_stack_usage): Handle -Wstack-usage.
3457 * calls.c (expand_call): Test flag_stack_usage_info variable instead
3458 of flag_stack_usage.
3459 (emit_library_call_value_1): Likewise.
3460 * explow.c (allocate_dynamic_stack_space): Likewise.
3461 * function.c (instantiate_virtual_regs ): Likewise.
3462 (prepare_function_start): Likewise.
3463 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
3464 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
3465 * config/arm/arm.c (arm_expand_prologue): Likewise.
3466 (thumb1_expand_prologue): Likewise.
3467 * config/avr/avr.c (expand_prologue): Likewise.
3468 * config/i386/i386.c (ix86_expand_prologue): Likewise.
3469 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
3470 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
3471 * config/mips/mips.c (mips_expand_prologue): Likewise.
3472 * config/pa/pa.c (hppa_expand_prologue): Likewise.
3473 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3474 * config/s390/s390.c (s390_emit_prologue): Likewise.
3475 * config/sh/sh.c (sh_expand_prologue): Likewise.
3476 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3477 * config/spu/spu.c (spu_expand_prologue): Likewise.
3478
3479 2011-05-25 Richard Guenther <rguenther@suse.de>
3480
3481 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
3482 (gimple_canonical_types_compatible_p): Likewise.
3483
3484 2011-05-25 Jan Hubicka <jh@suse.cz>
3485
3486 PR middle-end/49062
3487 * ipa.c (function_and_variable_visibility): Only add to same
3488 comdat group list if DECL_ONE_ONLY.
3489
3490 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
3491
3492 PR rtl-optimization/49014
3493 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
3494
3495 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3496
3497 PR target/49128
3498 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3499
3500 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3501
3502 PR rtl-optimization/48757
3503 * ira-build.c (loop_with_eh_edge_p): Rename to
3504 loop_with_complex_edge_p, check edges on complexity, make function
3505 conditional.
3506 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
3507 conditional.
3508
3509 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3510
3511 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
3512 force flag_ira_share_save_slots to 0.
3513
3514 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3515
3516 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
3517 (vt_initialize): Set PROLOGUE_BB unconditionally.
3518 Add block comment about CFA_BASE_RTX machinery.
3519 Reset FP_CFA_OFFSET to -1 on all invalid paths.
3520 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
3521
3522 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
3523
3524 PR objc/48187
3525 * c-parser.c (c_parser_objc_class_instance_variables): More robust
3526 parsing of syntax error in ObjC instance variable lists. In
3527 particular, avoid an infinite loop if there is a stray ']'.
3528 Updated error message.
3529
3530 2011-05-24 Ian Lance Taylor <iant@google.com>
3531
3532 * godump.c (go_define): Don't accept a string immediately after
3533 another operand.
3534
3535 2011-05-24 Ian Lance Taylor <iant@google.com>
3536
3537 * godump.c (struct godump_container): Add invalid_hash field.
3538 (go_format_type): Return false if type is found in invalid_hash.
3539 (go_output_typedef): Add invalid type to invalid_hash.
3540 (go_finish): Create and delete invalid_hash.
3541
3542 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3543
3544 PR tree-optimization/46728
3545 * tree-ssa-math-opts.c (powi_table): New.
3546 (powi_lookup_cost): New.
3547 (powi_cost): New.
3548 (powi_as_mults_1): New.
3549 (powi_as_mults): New.
3550 (gimple_expand_builtin_powi): New.
3551 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
3552 (gate_cse_sincos): Remove sincos/cexp restriction.
3553
3554 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3555
3556 PR target/3746
3557 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
3558 mips-tdump native.
3559 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
3560 * mips-tdump.c: Likewise.
3561
3562 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
3563
3564 PR target/49128
3565 * config/i386/driver-i386.c (host_detect_local_cpu): Always
3566 add -mno-XXX. Handle FMA.
3567
3568 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3569
3570 PR rtl-optimization/48633
3571 * ira-build.c (loop_with_eh_edge_p): New function.
3572 (mark_loops_for_removal): Use it.
3573
3574 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3575
3576 PR rtl-optimization/48971
3577 * ira.c (setup_pressure_classes): Don't check register move cost
3578 for classes with one registers. Don't add pressure class if there
3579 is a pressure class with the same available hard registers.
3580 Check contains_reg_of_mode. Fix a typo in collecting
3581 temp_hard_regset. Ignore hard registers not belonging to a class.
3582
3583 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
3584
3585 PR target/49133
3586 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
3587
3588 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3589 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3590
3591 PR gcov-profile/48845
3592 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
3593
3594 2011-05-24 Richard Guenther <rguenther@suse.de>
3595
3596 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
3597 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
3598 (gimple_types_compatible_p_1): Adjust.
3599 (iterative_hash_canonical_type): Do not bother about complete vs.
3600 incomplete types.
3601 (gimple_canonical_types_compatible_p): Likewise.
3602
3603 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3604
3605 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
3606
3607 2011-05-24 Richard Guenther <rguenther@suse.de>
3608
3609 PR bootstrap/49078
3610 * gimple.c (gimple_register_canonical_type): Revert
3611 previous change.
3612 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
3613 does not for a tree for the case where it matters. Cache
3614 pointer-type alias-sets.
3615
3616 2011-05-24 Joseph Myers <joseph@codesourcery.com>
3617
3618 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
3619 (OBJS): Remove options.o, opts-common.o and prefix.o.
3620 (OBJS-libcommon-target): New.
3621 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
3622 (BACKEND): Include libcommon-target.a.
3623 (MOSTLYCLEANFILES): Include libcommon-target.a.
3624 (libcommon-target.a): New.
3625 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
3626 prefix.o.
3627
3628 2011-05-23 Joseph Myers <joseph@codesourcery.com>
3629
3630 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
3631 parts of output shared with the driver.
3632 * optc-gen.awk: Don't generate parts of output not shared with the
3633 driver.
3634 * opth-gen.awk: Remove GCC_DRIVER conditionals.
3635 * doc/options.texi (SourcerInclude): Mention options-save.c.
3636 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
3637 (OBJS): Add options-save.o.
3638 (options-save.c, options-save.o): New.
3639 (options.o): Update dependencies.
3640 (gcc-options.o): Remove.
3641 (mostlyclean): Remove options-save.c.
3642
3643 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3644
3645 PR debug/49032
3646 * dbxout.c: Include cgraph.h.
3647 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
3648 and without value expr, return NULL if no varpool node exists for
3649 it or if it is not needed.
3650 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
3651
3652 PR c/49120
3653 * c-decl.c (start_decl): Convert expr to void_type_node.
3654
3655 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
3656
3657 PR rtl-optimization/48826
3658 * emit-rtl.c (try_split): When splitting a call that is followed
3659 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
3660
3661 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3662
3663 * cfgexpand.c (expand_debug_expr): For unused non-addressable
3664 parameters passed in memory prefer using DECL_INCOMING_RTL over
3665 the pseudos it will be copied into.
3666
3667 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
3668
3669 PR target/47315
3670 * config/i386/i386.c (ix86_option_override_internal): Save the
3671 initial options after checking vzeroupper.
3672
3673 2011-05-23 David Li <davidxl@google.com>
3674
3675 PR tree-optimization/48988
3676 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3677 Initialize has_valid_pred for each pred chain.
3678
3679 2011-05-23 Richard Guenther <rguenther@suse.de>
3680
3681 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
3682 (iterative_hash_gimple_type): Always hash type names.
3683
3684 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3685
3686 * c-typeck.c (build_function_call_vec): Tweak call to
3687 check_function_arguments.
3688
3689 2011-05-23 Richard Guenther <rguenther@suse.de>
3690
3691 PR tree-optimization/49115
3692 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
3693 is not necessarily carried out, do not claim it kills the ref.
3694 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3695
3696 2011-05-23 Richard Guenther <rguenther@suse.de>
3697
3698 PR middle-end/15419
3699 * builtins.c (fold_builtin_memory_op): Be less restrictive about
3700 what pointer types we accept for folding.
3701
3702 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3703
3704 * gthr-gnat.c: Remove.
3705 * gthr-gnat.h: Remove.
3706 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
3707 * config/t-freebsd (LIB2ADDEH): Likewise.
3708 * config/t-linux (LIB2ADDEH): Likewise.
3709 * config/t-sol2 (LIB2ADDEH): Likewise.
3710 * config/ia64/t-vms (LIB2ADDEH): Likewise.
3711 * configure.ac (target_thread_file): Remove gnat handling.
3712 * configure: Regenerate.
3713 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
3714
3715 2011-05-23 Tristan Gingold <gingold@adacore.com>
3716 Eric Botcazou <ebotcazou@adacore.com>
3717
3718 * gcov.c (create_file_names): If no object directory is specified,
3719 keep the directory of the file.
3720
3721 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3722
3723 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
3724 * configure: Regenerate.
3725
3726 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3727
3728 PR middle-end/48973
3729 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
3730 failed and the comparison has a single bit signed type, use
3731 constm1_rtx instead of const1_rtx for true value.
3732 (do_store_flag): If ops->type is single bit signed type, disable
3733 signel bit test optimization and pass -1 instead of 1 as last
3734 parameter to emit_store_flag_force.
3735
3736 2011-05-23 Tom de Vries <tom@codesourcery.com>
3737
3738 PR target/45098
3739 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
3740 function.
3741 (infer_loop_bounds_from_undefined): Use new function.
3742
3743 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3744
3745 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
3746 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
3747 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
3748 and -O0 otherwise.
3749 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
3750
3751 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3752
3753 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
3754 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
3755 returns true.
3756
3757 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3758
3759 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
3760
3761 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3762
3763 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
3764 UNSPEC_MOVE_PIC pattern.
3765
3766 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3767
3768 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
3769 (sparc-*-rtems*): Likewise.
3770 (sparc64-*-elf*): Likewise.
3771 (sparc64-*-rtems*): Likewise.
3772 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
3773 * config/sparc/t-crtin: New file.
3774 * config/sparc/t-sol2 (crti.o): Delete rule.
3775 (crtn.o): Likewise.
3776 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
3777 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
3778 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
3779 (ENDFILE_SPEC): Add crtn.o.
3780
3781 2011-05-22 Tom de Vries <tom@codesourcery.com>
3782
3783 PR middle-end/48689
3784 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
3785 CODE_CONTAINS_STRUCT (TS_COMMON).
3786
3787 2011-05-22 Jakub Jelinek <jakub@redhat.com>
3788
3789 PR middle-end/49029
3790 * expmed.c (extract_fixed_bit_field): Test whether target can be used
3791 only after deciding which mode to use.
3792
3793 2011-05-22 Tom de Vries <tom@codesourcery.com>
3794
3795 PR target/45098
3796 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
3797 for call to get_shiftadd_cost.
3798
3799 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
3800
3801 PR target/49104
3802 * config/i386/cpuid.h (bit_MMXEXT): New define.
3803
3804 2011-05-22 Nick Clifton <nickc@redhat.com>
3805
3806 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
3807 initialisation of non-existant args[2] element. Use args[] array
3808 not arg[] array to pass arguments to build_function_type_list.
3809
3810 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
3811
3812 PR tree-optimization/49087
3813 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
3814
3815 2011-05-21 Jason Merrill <jason@redhat.com>
3816
3817 PR c++/49092
3818 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
3819 static storage duration.
3820
3821 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3822
3823 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
3824 frame pointer.
3825
3826 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3827
3828 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
3829 false if there are call-saved registers here...
3830 (sparc_can_use_return_insn_p): ...but here instead.
3831 (save_or_restore_regs): Fix thinko.
3832 (sparc_expand_prologue): Use current_function_is_leaf.
3833 (sparc_frame_pointer_required): Likewise.
3834
3835 2011-05-21 Nick Clifton <nickc@redhat.com>
3836
3837 PR target/49098
3838 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
3839
3840 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
3841
3842 * gengtype.c (walk_type): Implemented "atomic" GTY option.
3843 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
3844
3845 2011-05-21 Joseph Myers <joseph@codesourcery.com>
3846
3847 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
3848 * optc-gen.awk: Move common code to opt-read.awk.
3849 * opth-gen.awk: Likewise.
3850 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
3851
3852 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
3853
3854 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
3855
3856 2011-05-20 Tom de Vries <tom@codesourcery.com>
3857
3858 PR target/45098
3859 * tree-ssa-loop-ivopts.c: Include expmed.h.
3860 (get_shiftadd_cost): New function.
3861 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
3862
3863 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3864
3865 PR bootstrap/49086
3866 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
3867 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
3868
3869 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3870
3871 * Makefile.in: Update comment referring to $(OBJS-common).
3872
3873 2011-05-20 Ian Lance Taylor <iant@google.com>
3874
3875 * godump.c (go_output_typedef): Put enum constants in the macro
3876 hash table to avoid duplicate Go const definitions.
3877
3878 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3879
3880 * Makefile.in (LIBDEPS): Add libcommon.a.
3881 (LIBS): Likewise.
3882 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
3883 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
3884 pretty-print.o and version.o.
3885 (OBJS-libcommon): New.
3886 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
3887 (BACKEND): Add libcommon.a.
3888 (MOSTLYCLEANFILES): Likewise.
3889 (libcommon.a): New.
3890 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
3891 (cpp$(exeext)): Likewise.
3892 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
3893 pretty-print.o and input.o.
3894 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
3895 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
3896 (errors.o): Remove.
3897 (mips-tfile): Don't explicitly use version.o.
3898 (mips-tdump): Likewise.
3899 (gcov.o): Depend on $(DIAGNOSTIC_H).
3900 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
3901 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
3902 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
3903 * gcov-dump.c: Include intl.h and diagnostic.h.
3904 (main): Initialize diagnostics.
3905 * gcov.c: Include diagnostic.h.
3906 (fnotice): Remove.
3907 (main): Initialize diagnostics.
3908 * lto-wrapper.c: Include diagnostic.h.
3909 (main): Initialize diagnostics.
3910
3911 2011-05-20 Michael Matz <matz@suse.de>
3912
3913 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
3914
3915 2011-05-20 Michael Matz <matz@suse.de>
3916 Richard Guenther <rguenther@suse.de>
3917
3918 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
3919 use lto_streamer_cache_append directly instead of returning a VEC.
3920 (preload_common_node): Remove.
3921 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
3922 track seen nodes.
3923 (lto_streamer_cache_create): Call lto_preload_common_nodes.
3924
3925 2011-05-20 Richard Guenther <rguenther@suse.de>
3926
3927 PR tree-optimization/49079
3928 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
3929 MEM_REFs correctly for the trailing array access detection.
3930 Special case constants the same way as decls for overall size
3931 constraining.
3932
3933 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
3934
3935 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
3936 argument expansion.
3937
3938 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3939
3940 PR tree-optimization/49073
3941 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
3942 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
3943 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
3944
3945 2011-05-20 Richard Guenther <rguenther@suse.de>
3946
3947 PR middle-end/48849
3948 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
3949 of pointer types the same way the middle-end does.
3950
3951 2011-05-20 Richard Guenther <rguenther@suse.de>
3952
3953 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
3954 or pointer-to chains. Delay all fixup to uniquify_nodes.
3955
3956 2011-05-19 Quentin Neill <quentin.neill@amd.com>
3957
3958 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
3959 (fma4_fmaddsub): Likewise
3960
3961 2011-05-19 Jan Hubicka <jh@suse.cz>
3962
3963 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
3964 (GIMPLE_TYPE_PAIR_SIZE): New macro.
3965 (type_pair_cache): New static var.
3966 (lookup_type_pair): Use fixed sized custom hash; make inline.
3967 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
3968 calls of lookup_type_pair.
3969 (print_gimple_types_stats): Remove cache stats.
3970 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
3971 and gtc_ob.
3972
3973 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
3974
3975 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
3976 when TARGET_RDRND is active.
3977 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
3978 Generate dummy SImode target register when target is NULL.
3979
3980 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3981
3982 * config/arm/arm-fpus.def: New.
3983 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
3984 arm-fpus.def.
3985 * config/arm/arm-tables.opt: Regenerate.
3986 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
3987 (arm_option_override): Don't decode FPU name to string here.
3988 * config/arm/arm.opt (mfpu=): Use Enum.
3989 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
3990 Update dependencies.
3991
3992 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3993
3994 * collect2.c: Include diagnostic.h.
3995 (fatal_perror, fatal, error, fancy_abort): Remove.
3996 (main): Set progname. Call xmalloc_set_program_name and
3997 diagnostic_initialize.
3998 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
3999 scan_libraries, resolve_lib_name): Call fatal_error instead of
4000 fatal and fatal_perror.
4001 * collect2.h (error, fatal, fatal_perror): Don't declare.
4002 * tlink.c: Include diagnostic-core.h.
4003 (recompile_files): Call fatal_error instead of fatal_perror.
4004 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4005 pretty-print.o and input.o.
4006 (collect2.o, tlink.o): Update dependencies.
4007
4008 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4009
4010 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4011
4012 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4013
4014 PR target/40483
4015 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4016 COMDAT group syntax, both SPARC and x86 variants.
4017 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4018 * configure: Regenerate.
4019 * config/sol2.h (TARGET_SOLARIS): Define.
4020 (PUSHSECTION_FORMAT): Remove.
4021 (SECTION_NAME_FORMAT): Define.
4022 * config/sol2.c: Include hashtab.h.
4023 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4024 expansion, using SECTION_NAME_FORMAT.
4025 (solaris_comdat_htab): New variable.
4026 (struct comdat_entry): Define.
4027 (comdat_hash): New function.
4028 (comdat_eq): New function.
4029 (solaris_elf_asm_comdat_section): New function.
4030 (solaris_define_comdat_signature): New function.
4031 (solaris_code_end): New function.
4032 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4033 (solaris_code_end): Declare.
4034 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4035 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4036 solaris_code_end.
4037 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4038 Remove ATTRIBUTE_UNUSED.
4039 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4040 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
4041 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
4042 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4043 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4044 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4045 (PUSHSECTION_FORMAT): Remove.
4046 (SECTION_NAME_FORMAT): Redefine.
4047
4048 2011-05-19 Kai Tietz <ktietz@redhat.com>
4049
4050 * tree-cfg.c (verify_gimple_assign_binary): Barf on
4051 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4052 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4053
4054 2011-05-19 Anatoly Sokolov <aesok@post.ru>
4055 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4056
4057 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4058
4059 2011-05-19 Richard Guenther <rguenther@suse.de>
4060
4061 PR middle-end/48985
4062 * tree-object-size.c (addr_object_size): If the pointed-to
4063 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4064
4065 2011-05-19 Richard Guenther <rguenther@suse.de>
4066
4067 * gimple.c (gimple_types_compatible_p_1): Compare names of
4068 the types themselves.
4069 (iterative_hash_gimple_type): And hash them that way.
4070 (gimple_register_type_1): If we register a main variant properly
4071 initialize the leader to ourselves.
4072
4073 2011-05-19 Tom de Vries <tom@codesourcery.com>
4074
4075 PR target/45098
4076 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4077 get_loop_invariant_expr_id.
4078 (get_loop_invariant_expr_id): Use get_expr_id.
4079 (parm_decl_cost): New function.
4080 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4081 Improve bound cost estimation. Use different inv_expr_id for elim and
4082 express cases.
4083
4084 2011-05-19 Tom de Vries <tom@codesourcery.com>
4085
4086 PR target/45098
4087 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4088 cost_base.cost == 0.
4089
4090 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
4091
4092 PR target/49002
4093 * config/i386/sse.md
4094 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4095 load cast.
4096
4097 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4098
4099 PR tree-optimization/49039
4100 * tree-vrp.c (extract_range_from_binary_expr): For
4101 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4102 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4103
4104 2011-05-18 Tom de Vries <tom@codesourcery.com>
4105
4106 PR target/45098
4107 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4108
4109 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
4110
4111 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4112 (*tls_global_dynamic_64): Ditto.
4113 (*tls_local_dynamic_base_32_gnu): Ditto.
4114 (*tls_local_dynamic_base_64): Ditto.
4115 (tls_initial_exec_64_sun): Ditto.
4116
4117 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
4118
4119 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4120 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4121 bf592-none.
4122 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4123 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4124 * config/bfin/bfin.c (bfin_cpus): Add bf592.
4125 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4126 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4127 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4128 * config/bfin/elf.h (LIB_SPEC): Add bf592.
4129
4130 2011-05-18 Joseph Myers <joseph@codesourcery.com>
4131
4132 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4133 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4134 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4135 target_thread_pointer, arm_structure_size_boundary, struct
4136 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4137 struct abi_name, arm_all_abis): Remove.
4138 (arm_option_override) Don't process most enumerated option values here.
4139 Don't process target_fpe_name here. Work with integer not string for
4140 structure size boundary; use separate diagnostics for each case.
4141 * config/arm/arm.h (enum float_abi_type, enum
4142 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4143 to arm-opts.h.
4144 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4145 arm_structure_size_boundary): Remove.
4146 * config/arm/arm.opt (mabi=): Use Enum and Init.
4147 (arm_abi_type): New Enum and EnumValue entries.
4148 (mfloat-abi=): Use Enum and Init.
4149 (float_abi_type): New Enum and EnumValue entries.
4150 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
4151 (mfp16-format=): Use Enum and Init.
4152 (arm_fp16_format_type): New Enum and EnumValue entries.
4153 (mstructure-size-boundary=): Use UInteger and Init.
4154 (mtp=): Use Enum and Init.
4155 (arm_tp_type): New Enum and EnumValue entries.
4156
4157 2011-05-18 Richard Guenther <rguenther@suse.de>
4158
4159 PR tree-optimization/49018
4160 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4161 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4162 gimple_has_side_effects.
4163
4164 2011-05-18 Richard Guenther <rguenther@suse.de>
4165
4166 * gimple.c (gimple_register_type_1): New function, split out from ...
4167 (gimple_register_type): ... here. Avoid infinite recursion.
4168
4169 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4170
4171 PR tree-optimization/41881
4172 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4173 reduction_chains along with a macro for its access.
4174 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4175 (destroy_loop_vec_info): Free reduction chains.
4176 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4177 (vect_is_slp_reduction): New function.
4178 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4179 (vect_create_epilog_for_reduction): Support SLP reduction chains.
4180 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4181 definition types for reduction chains.
4182 (vect_supported_load_permutation_p): Don't allow permutations for
4183 reduction chains.
4184 (vect_analyze_slp_instance): Support reduction chains.
4185 (vect_analyze_slp): Try to build SLP instance from reduction chains.
4186 (vect_get_constant_vectors): Handle reduction chains.
4187 (vect_schedule_slp_instance): Mark the first statement of the
4188 reduction chain as reduction.
4189
4190 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4191
4192 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4193 names for group elements access.
4194 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4195 reduction chains as well. Remove data reference and interleaving
4196 related words from the fields names.
4197 * tree-vect-loop.c (vect_transform_loop): Use new names for group
4198 elements access.
4199 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4200 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4201 vect_update_interleaving_chain, vect_same_range_drs,
4202 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4203 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4204 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4205 vect_analyze_group_access, vect_analyze_data_ref_access,
4206 vect_create_data_ref_ptr, vect_transform_strided_load,
4207 vect_record_strided_load_vectors): Likewise.
4208 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4209 vect_model_load_cost, vectorizable_store, vectorizable_load,
4210 vect_remove_stores, new_stmt_vec_info): Likewise.
4211 * tree-vect-slp.c (vect_build_slp_tree,
4212 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4213
4214 2011-05-18 Richard Guenther <rguenther@suse.de>
4215
4216 PR middle-end/48989
4217 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4218 operand verification.
4219 (verify_gimple_assign_binary): Likewise.
4220 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4221 to non-1-precision BOOLEAN_TYPEs.
4222
4223 2011-05-18 Tom de Vries <tom@codesourcery.com>
4224
4225 PR target/45098
4226 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4227
4228 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4229
4230 PR tree-optimization/49000
4231 * tree-ssa.c (execute_update_addresses_taken): Call
4232 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
4233 be rewritten and decl has been marked for renaming, reset
4234 the debug stmt.
4235
4236 2011-05-17 Joseph Myers <joseph@codesourcery.com>
4237
4238 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4239 enum_opts_set when testing if attributes have set -mfpmath=.
4240
4241 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
4242
4243 * config/mips/mips.c (mips_handle_option): Remove unused variable.
4244
4245 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4246
4247 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
4248 info->entry with 0
4249 * tree-inline.c (maybe_inline_call_in_expr): Initialize
4250 id.transform_lang_insert_block with NULL.
4251
4252 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4253
4254 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4255 (output_fp_compare): Change args 3 and 4 to bool.
4256 (ix86_expand_call): Change arg 6 to bool.
4257 (ix86_attr_length_immediate_default): Change arg 2 to bool.
4258 (ix86_attr_length_vex_default): Change arg 3 to bool.
4259 * config/i386/i386.md: Update all uses.
4260 * config/i386/i386.c: Ditto.
4261 (ix86_flags_dependent): Change return type to bool.
4262
4263 2011-05-17 Richard Guenther <rguenther@suse.de>
4264
4265 * gimple.c (type_hash_pair_compare): Fix comparison.
4266
4267 2011-05-17 Richard Guenther <rguenther@suse.de>
4268
4269 * gimple.c (iterative_hash_gimple_type): Simplify singleton
4270 case some more, fix final hash value of the non-singleton case.
4271
4272 2011-05-17 Richard Guenther <rguenther@suse.de>
4273
4274 PR bootstrap/49013
4275 Revert
4276 2011-05-16 Richard Guenther <rguenther@suse.de>
4277
4278 * gimple.c (gimple_types_compatible_p_1): Use names of the
4279 type itself, not its main variant.
4280 (iterative_hash_gimple_type): Likewise.
4281
4282 2011-05-17 Richard Guenther <rguenther@suse.de>
4283
4284 * gimple.c (gimple_register_canonical_type): Use the main-variant
4285 leader for computing the canonical type.
4286
4287 2011-05-17 Nick Clifton <nickc@redhat.com>
4288
4289 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
4290 moves.
4291
4292 * config/rx/rx.md: Add peephole to remove redundant extensions
4293 after loads.
4294 (bitset_in_memory): Use rx_restricted_mem_operand.
4295 (bitinvert_in_memory): Likewise.
4296 (bitclr_in_memory): Likewise.
4297
4298 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
4299 Nick Clifton <nickc@redhat.com>
4300
4301 * config/rx/rx.md: Add peepholes to match a register move followed
4302 by a comparison of the moved register. Replace these with an
4303 addition of zero that does both actions in one instruction.
4304
4305 2011-05-17 Jakub Jelinek <jakub@redhat.com>
4306
4307 PR target/48986
4308 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
4309 predicate to allow CONST_INT.
4310 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
4311
4312 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4313
4314 * opts-common.c (opt_enum_arg_to_value): New.
4315 * opts.h (opt_enum_arg_to_value): Declare.
4316 * config/i386/i386.opt (fpmath): Remove.
4317 (mfpmath=): Use Enum, Init and Save.
4318 (fpmath_unit): New Enum and EnumValue entries.
4319 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
4320 name for function fpmath state.
4321 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
4322 * config/i386/i386.c: Include diagnostic.h.
4323 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
4324 (ix86_target_string): Take enum fpmath_unit value instead of string.
4325 (ix86_debug_options): Update call to ix86_target_string.
4326 (ix86_option_override_internal): Don't process fpmath strings here.
4327 (x86_function_specific_save, ix86_function_specific_restore):
4328 Don't handle fpmath state specially.
4329 (ix86_function_specific_print): Pass fpmath state to
4330 ix86_target_string instead of printing in this function.
4331 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
4332 Handle enum attributes.
4333 (IX86_ATTR_ENUM, ix86_opt_enum): New.
4334 (ix86_valid_target_attribute_tree): Update option_strings
4335 handling. Handle fpmath as enum option.
4336 (ix86_can_inline_p): Update field names for function fpmath state.
4337 (ix86_expand_builtin): Update call to ix86_target_string.
4338 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
4339 (ix86_fpmath): Remove.
4340 * config/i386/t-i386 (i386.o): Update dependencies.
4341
4342 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4343
4344 PR preprocessor/48677
4345 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
4346 from decoded_options[0], not from itself.
4347
4348 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
4349
4350 * config/i386/constraints.md (z): New constraint.
4351 * config/i386/i386.c (c): New mode attribute.
4352 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
4353 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
4354 constraint for operand 0.
4355 (*call_vzeroupper): Ditto.
4356 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
4357 (*call_rex64_ms_sysv_vzeroupper): Ditto.
4358 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
4359 Use "lzm" constraint for operand 0.
4360 (*call_pop_vzeroupper): Ditto.
4361 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
4362 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
4363 constraint for operand 0.
4364 (*sibcall_vzeroupper): Ditto.
4365 (*sibcall_rex64_ms_sysv): Ditto.
4366 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
4367 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
4368 *sibcall_pop_1. Use "Uz" constraint for operand 0.
4369 (*sibcall_pop_vzeroupper): Ditto.
4370 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
4371 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
4372 mode iterator. Use "<c>zm" constraint for operand 1.
4373 (*call_value_vzeroupper): Ditto.
4374 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
4375 for operand 1.
4376 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
4377 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
4378 *call_value_pop_1. Use "lzm" constraint for operand 1.
4379 (*call_value_pop_vzeroupper): Ditto.
4380 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
4381 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
4382 mode iterator. Use "Uz" constraint for operand 1.
4383 (*sibcall_value_vzeroupper): Ditto.
4384 (*sibcall_value_rex64_ms_sysv): Ditto.
4385 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
4386 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
4387 constraint for operand 1.
4388 (*sibcall_value_pop_vzeroupper): Ditto.
4389 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
4390 and "z" constraint for operand 2.
4391 (*tls_global_dynamic_32_gnu): Ditto.
4392 (*tls_local_dynamic_base_32_gnu): Ditto.
4393 (*tls_local_dynamic_base_64): Ditto.
4394 (*tls_local_dynamic_32_once): Ditto.
4395 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
4396 Update all callers.
4397 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
4398
4399 2011-05-16 Richard Guenther <rguenther@suse.de>
4400
4401 * gimple.c (gimple_types_compatible_p_1): Use names of the
4402 type itself, not its main variant.
4403 (iterative_hash_gimple_type): Likewise.
4404
4405 2011-05-16 Richard Guenther <rguenther@suse.de>
4406
4407 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
4408 always visit pointer target and function result and argument types.
4409
4410 2011-05-16 Jason Merrill <jason@redhat.com>
4411
4412 PR c++/48999
4413 * tree-inline.c (copy_statement_list): Put back recursion.
4414
4415 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4416
4417 PR target/27663
4418 PR target/41076
4419 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
4420 * config/avr/avr.md ("*ior<mode>qi.byte0",
4421 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
4422
4423 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4424
4425 PR target/45099
4426 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
4427 register is needed for a function argument.
4428
4429 2011-05-16 Richard Guenther <rguenther@suse.de>
4430
4431 * gimple.c (struct type_hash_pair): New type.
4432 (type_hash_pair_compare): New function.
4433 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
4434
4435 2011-05-16 Revital Eres <revital.eres@linaro.org>
4436
4437 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
4438
4439 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4440
4441 * config/i386/i386.md (floating point move splitters): Fix
4442 usage of standard_80387_constant_p.
4443 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
4444
4445 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4446
4447 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
4448
4449 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
4450
4451 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
4452 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
4453 (tree_ssa_lim_finalize): Likewise.
4454
4455 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
4456
4457 * config/i386/constraint.md (Yd, Yx): New register constraints.
4458 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
4459 Yd conditional register constraint.
4460 (*movtf_internal): Use standard_sse_constant_opcode.
4461 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
4462 Yx conditional register constraint.
4463 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
4464 Yd conditional register constraint. Use standard_sse_constant_p to
4465 check for valid SSE constants and call standard_sse_constant_opcode to
4466 output SSE insn.
4467 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
4468 constants and call standard_sse_constant_opcode to output SSE insn.
4469 * config/i386/i386.c (ix86_option_ovverride_internal): Set
4470 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
4471 optimize_size is set.
4472 (standard_sse_constant_opcode): Output conditional AVX insn templates.
4473
4474 2011-05-14 Tobias Burnus <burnus@net-b.de>
4475
4476 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
4477
4478 2011-05-13 Martin Jambor <mjambor@suse.cz>
4479
4480 * ipa-prop.c (ipa_cst_from_jfunc): New function.
4481 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
4482 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
4483 (evaluate_conditions_for_ipcp_clone): Removed.
4484 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
4485 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
4486 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
4487
4488 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
4489
4490 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
4491 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
4492 lieu of MAY_HAVE_DEBUG_STMTS.
4493 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
4494 debug statements if !MAY_HAVE_DEBUG_STMTS.
4495
4496 2011-05-13 Martin Thuresson <martint@google.com>
4497
4498 PR gcov-profile/47793
4499 * libgcov.c (gcov_exit): Support relative profile paths.
4500 * doc/invoke.texi (-fprofile-dir): Update for above change.
4501
4502 2011-05-13 Richard Guenther <rguenther@suse.de>
4503
4504 * gimple.c (gimple_canonical_types_compatible_p): Do not use
4505 type-pair caching, do not compare hashes.
4506
4507 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
4508
4509 PR middle-end/48965
4510 * tree-cfg.c (edge_to_cases_cleanup): Return true.
4511 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
4512
4513 2011-05-13 Kai Tietz <ktietz@redhat.com>
4514
4515 * gimplify.c (gimplify_expr): Make sure operand is boolified.
4516 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
4517 compatible type for TRUTH_NOT_EXPR.
4518
4519 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
4520
4521 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
4522 (ix86_hard_regno_mode_ok): Change return value to bool. Use
4523 can_create_pseudo_p ().
4524
4525 2011-05-13 Richard Guenther <rguenther@suse.de>
4526
4527 PR lto/48978
4528 * gimple.c (iterative_hash_gimple_type): Revert change in
4529 pointer target and function result and argument hashing.
4530
4531 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
4532
4533 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
4534 (*movxf_internal_nointeger): Ditto.
4535 (*movdf_internal_rex64): Ditto.
4536 (*movdf_internal): Ditto.
4537 (*movdf_internal_nointeger): Ditto.
4538 (*movsf_internal): Ditto.
4539 (sincos splitters): Use can_create_pseudo ().
4540
4541 2011-05-13 Joseph Myers <joseph@codesourcery.com>
4542
4543 * config/i386/i386-opts.h: New.
4544 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
4545 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
4546 ix86_section_threshold): Remove.
4547 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
4548 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
4549 OPT_mbranch_cost_.
4550 (ix86_option_override_internal): Don't decode strings for options
4551 other than -march=, -mtune= and -mfpmath=. Don't allow for
4552 __attribute__ uses in remaining diagnostics for options with
4553 string arguments. Don't check for integer arguments being negative.
4554 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
4555 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
4556 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
4557 ix86_branch_cost, ix86_section_threshold): Remove.
4558 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
4559 HeaderInclude.
4560 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
4561 but not Var.
4562 (masm=): Use Enum and Init.
4563 (asm_dialect): New Enum and EnumValue entries.
4564 (mbranch-cost=): Use UInteger.
4565 (mlarge-data-threshold=): Use UInteger and Init.
4566 (mcmodel=): Use Enum and Init.
4567 (cmodel): New Enum and EnumValue entries.
4568 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
4569 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
4570 mregparm=): Use UInteger.
4571 (mstringop-strategy=): Use Enum and Init.
4572 (stringop_alg): New Enum and EnumValue entries.
4573 (mtls-dialect=): Use Enum and Init.
4574 (tls_dialect): New Enum and EnumValue entries.
4575 (mabi=): Use Enum and Init.
4576 (calling_abi): New Enum and EnumValue entries.
4577 (mveclibabi=): Use Enum and Init.
4578 (ix86_veclibabi): New Enum and EnumValue entries.
4579
4580 2011-05-13 Nick Clifton <nickc@redhat.com>
4581
4582 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
4583 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
4584
4585 2011-05-13 Kai Tietz <ktietz@redhat.com>
4586
4587 PR middle-end/48984
4588 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
4589 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
4590 (gimple_boolify): Check for cast for boolean_type_node instead for
4591 BOOLEAN_TYPE.
4592
4593 2011-05-13 Richard Guenther <rguenther@suse.de>
4594
4595 PR tree-optimization/48172
4596 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
4597 multiplying by number of iterations for equal step.
4598 (vect_create_cond_for_alias_checks): Likewise.
4599
4600 2011-05-13 Andreas Schwab <schwab@redhat.com>
4601
4602 * configure.ac: Use AS_HELP_STRING throughout.
4603 * configure: Regenerate.
4604
4605 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
4606
4607 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
4608 (ix86_emit_restore_regs_using_mov): Likewise.
4609 (ix86_emit_restore_sse_regs_using_mov): Likewise.
4610
4611 2011-05-12 Anatoly Sokolov <aesok@post.ru>
4612
4613 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
4614 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
4615 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
4616 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
4617 RTX_OK_FOR_OLO10_P): ...here.
4618 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
4619 SYMBOLIC_CONST.
4620
4621 2011-05-12 Kai Tietz <ktietz@redhat.com>
4622
4623 * gimplify.c (gimple_boolify): Re-boolify expression
4624 arguments even if expression type is of kind BOOLEAN_TYPE.
4625 (gimplify_boolean_expr): Removed.
4626 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
4627 and XOR. Additional take care that we keep expression's type.
4628 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
4629 of TRUTH_AND|OR|XOR_EXPR.
4630
4631 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4632
4633 PR tree-optimization/48975
4634 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
4635 on all bbs here and free and clear ifc_bbs at the end.
4636
4637 2011-05-12 Richard Guenther <rguenther@suse.de>
4638
4639 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
4640 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
4641 until after simple checks.
4642 (gimple_types_compatible_p): Likewise.
4643 (iterative_hash_gimple_type): Always hash pointer targets
4644 and function return and argument types.
4645 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
4646 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
4647 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
4648 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
4649 completely in the simple compare section.
4650 (gimple_register_canonical_type): Query the cache again after
4651 registering.
4652
4653 2011-05-12 Richard Guenther <rguenther@suse.de>
4654
4655 PR tree-optimization/48172
4656 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
4657 the number of iterations from the segment size calculation.
4658 (vect_create_cond_for_alias_checks): Adjust.
4659
4660 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4661
4662 PR debug/48967
4663 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
4664 if validate_subreg fails.
4665
4666 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
4667
4668 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
4669 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
4670 early.
4671
4672 2011-05-12 DJ Delorie <dj@redhat.com>
4673
4674 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
4675 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
4676 created builtin into rx_builtins array.
4677 (rx_builtin_decl): New function.
4678 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
4679
4680 2011-05-12 DJ Delorie <dj@redhat.com>
4681 Nick Clifton <nickc@redhat.com>
4682
4683 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
4684 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
4685 (rx_is_legitimate_address): Add pre-decrement and post-increment
4686 addressing in HImode and QImode. Fix test for out of range
4687 REG+INT addressing.
4688 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
4689 (rx_align_for_label): Test label before extracting its usage count.
4690 (rx_adjust_insn_lengths): Fix selection of insn codes.
4691 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
4692
4693 2011-05-11 Jason Merrill <jason@redhat.com>
4694
4695 * tree.c (type_hash_canon): Use struct tree_type_non_common.
4696
4697 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4698
4699 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
4700 reindent the subsequent block.
4701
4702 2011-05-11 Satoru Takabayashi <satorux@google.com>
4703 Paul Pluzhnikov <ppluzhnikov@google.com>
4704
4705 * doc/install.texi (Configuration): Document --with-linker-hash-style.
4706 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
4707 * config.in: Add LINKER_HASH_STYLE.
4708 * configure.ac: Add --with-linker-hash-style.
4709 * configure: Regenerate.
4710
4711 2011-05-11 Richard Guenther <rguenther@suse.de>
4712
4713 PR middle-end/48964
4714 * gimple.c (iterative_hash_canonical_type): Fix typo.
4715
4716 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
4717
4718 * config/i386/i386.c (legitimize_tls_address)
4719 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4720 expanders directly for TARGET_GNU2_TLS. Determine pic and
4721 __tls_get_addr symbol reference here. Update call to
4722 gen_tls_global_dynamic_{32,64} for added arguments.
4723 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4724 expanders directly for TARGET_GNU2_TLS. Determine
4725 __tls_get_addr symbol reference here. Update call to
4726 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
4727 unique UNSPEC REG_EQUIV to libcall block.
4728 (ix86_tls_get_addr): Declare static.
4729 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
4730 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
4731 Do not determine pic and __tls_get_addr symbol reference here. Do not
4732 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
4733 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
4734 (tls_global_dynamic_64): Add operand 2. Do not determine
4735 __tls_get_addr symbol reference here. Do not call
4736 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
4737 (tls_local_dynamic_base64): Ditto for operand 1.
4738
4739 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4740
4741 * function.c (expand_function_start): Initialize stack_check_probe_note
4742 only if the generic stack checking mechanism is used.
4743
4744 2011-05-11 Richard Guenther <rguenther@suse.de>
4745
4746 PR tree-optimization/15256
4747 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
4748 (A & B) | C, combine (A op CST1) op CST2.
4749 (tree_ssa_forward_propagate_single_use_vars): Only bother to
4750 visit assigns that have uses.
4751
4752 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
4753
4754 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
4755 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
4756 (unpack_ts_type_common_value_fields): ...this. Update comment.
4757 (unpack_value_fields): Adjust for renaming.
4758 (lto_input_ts_type_tree_pointers): Split into...
4759 (lto_input_ts_type_common_tree_pointer): ...this and...
4760 (lto_input_ts_type_non_common_tree_pointers): ...this.
4761 (lto_input_tree_pointers): Adjust for above split.
4762 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
4763 (pack_ts_type_common_value_fields): ...this. Update comment.
4764 (lto_output_ts_type_tree_pointers): Split into...
4765 (lto_output_ts_type_common_tree_pointers): ...this and...
4766 (lto_output_ts_type_non_common_tree_pointers): ...this.
4767 (lto_output_tree_pointers): Adjust for above split.
4768 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
4769 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
4770 * stor-layout.c (vector_type_mode): Adjust location of mode field.
4771 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
4772 Define.
4773 (struct tree_type): Split into...
4774 (struct tree_type_common: ...this and...
4775 (struct tree_type_with_lang_specific): ...this and...
4776 (struct tree_type_non_common): ...this. Adjust accessor macros
4777 accordingly.
4778 (TYPE_VALUES_RAW): Define.
4779 (union tree_node): Update for above changes.
4780 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
4781 TS_TYPE_NON_COMMON.
4782 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
4783 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
4784 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
4785 * treestructu.def (TS_TYPE): Remove.
4786 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
4787 Define.
4788
4789 2011-05-11 Jakub Jelinek <jakub@redhat.com>
4790
4791 PR debug/48159
4792 * tree-ssa.c (reset_debug_uses): New function.
4793 * tree-flow.h (reset_debug_uses): New prototype.
4794 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
4795 * tree-loop-distribution.c (generate_loops_for_partition): Call
4796 reset_debug_uses on the stmts that will be removed. Keep around
4797 all debug stmts, don't count them as bits in partition bitmap.
4798 (generate_builtin): Don't count debug stmts or labels as bits in
4799 partition bitmap.
4800
4801 2011-05-11 Richard Guenther <rguenther@suse.de>
4802
4803 * gimple.c (gimple_type_hash_1): Merge with ...
4804 (gimple_type_hash): ... this.
4805 (gtc_visit): Remove mode parameter and simplify accordingly.
4806 (gimple_types_compatible_p_1): Likewise.
4807 (gimple_types_compatible_p): Likewise.
4808 (iterative_hash_gimple_type): Likewise.
4809 (visit): Likewise.
4810 (gimple_type_eq): Adjust.
4811
4812 2011-05-11 Revital Eres <revital.eres@linaro.org>
4813
4814 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
4815 enters the branch create an anti edge in the opposite direction
4816 to prevent the creation of reg-moves.
4817 * modulo-sched.c: Adjust comment to reflect the fact we are
4818 scheduling closing branch.
4819 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
4820 (stage_count): New field in struct partial_schedule.
4821 (calculate_stage_count): New function.
4822 (normalize_sched_times): Rename to reset_sched_times and handle
4823 incrementing the sched time of the nodes by a constant value
4824 passed as parameter.
4825 (duplicate_insns_of_cycles): Skip closing branch.
4826 (sms_schedule_by_order): Schedule closing branch.
4827 (ps_insn_find_column): Handle closing branch.
4828 (sms_schedule): Call reset_sched_times and adjust the code to
4829 support scheduling of the closing branch.
4830 (ps_insert_empty_row): Update calls to normalize_sched_times
4831 and rotate_partial_schedule functions.
4832
4833 2011-05-11 Richard Guenther <rguenther@suse.de>
4834
4835 PR middle-end/48953
4836 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
4837
4838 2011-05-11 Joseph Myers <joseph@codesourcery.com>
4839
4840 * opts.c (finish_options): Move warning settings from process_options.
4841 * toplev.c (process_options): Move warning settings to finish_options.
4842
4843 2011-05-11 Richard Guenther <rguenther@suse.de>
4844
4845 PR tree-optimization/18041
4846 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
4847 (simplify_bitwise_binary): ... this. Handle operand conversions
4848 by applying them to the result instead.
4849 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
4850
4851 2011-05-11 Richard Guenther <rguenther@suse.de>
4852
4853 * gimple.c (gimple_canonical_types_compatible_p): Split out
4854 from gimple_types_compatible_p and friends. Do not recurse
4855 to pointed-to types.
4856 (gimple_canonical_type_eq): Use it.
4857 (iterative_hash_canonical_type): Split out from
4858 iterative_hash_gimple_type and friends. Do not recurse
4859 to pointed-to types.
4860 (gimple_canonical_type_hash): Use it, allocate the hash here.
4861
4862 2011-05-11 Revital Eres <revital.eres@linaro.org>
4863
4864 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
4865 recognizing doloop.
4866
4867 2011-05-11 Revital Eres <revital.eres@linaro.org>
4868
4869 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
4870 instead of PREV_INSN.
4871
4872 2011-05-11 Revital Eres <revital.eres@linaro.org>
4873
4874 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
4875 * loop-doloop.c (doloop_condition_get): Likewise.
4876 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
4877 (doloop_end): New.
4878 * config/arm/arm.md (*addsi3_compare0): Remove "*".
4879
4880 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4881
4882 * tree.def (CASE_LABEL_EXPR): Add an operand.
4883 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
4884
4885 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4886
4887 * c-decl.c (c_override_global_bindings_to_false): Remove.
4888 (global_bindings_p): Don't check
4889 c_override_global_bindings_to_false.
4890 * c-tree.h (c_override_global_bindings_to_false): Remove.
4891 * c-typeck.c (composite_type): Don't set
4892 c_override_global_bindings_to_false.
4893
4894 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4895
4896 PR target/48857, 48495
4897 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
4898 (VSX_MODE): Ditto.
4899 (VSX_MOVE_MODE): Ditto.
4900 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
4901 VSX vector types. Add V2DImode.
4902 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
4903 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
4904 (MODES_TIEABLE_P): Ditto.
4905
4906 * config/rs6000/rs6000.c (rs6000_emit_move): Use
4907 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
4908 VSX_VECTOR_MODE.
4909 (init_cumulative_args): Ditto.
4910 (rs6000_function_arg_boundary): Ditto.
4911 (rs6000_function_arg_advance_1): Ditto.
4912 (rs6000_function_arg): Ditto.
4913 (rs6000_function_ok_for_sibcall): Ditto.
4914 (emit_frame_save): Ditto.
4915 (rs6000_function_value): Ditto.
4916 (rs6000_libcall_value): Ditto.
4917
4918 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4919
4920 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4921 i386/darwin-lib.h to $libgcc_tm_file.
4922 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
4923
4924 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4925
4926 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
4927
4928 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4929
4930 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
4931 * config/rs6000/rs6000-tables.opt: New file (generated).
4932 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
4933 rs6000/rs6000-tables.opt to extra_options.
4934 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
4935 * config/rs6000/rs6000.c (rs6000_select): Remove.
4936 (processor_target_table): Move contents to rs6000-cpus.def.
4937 (darwin_rs6000_override_options): Check
4938 global_options_set.x_rs6000_cpu_index instead of
4939 rs6000_select[1].string.
4940 (rs6000_option_override_internal): Likewise.
4941 (rs6000_handle_option): Don't assert that global structures are in
4942 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
4943 (rs6000_default_cpu): New variable.
4944 (rs6000_file_start): Set it instead of local default_cpu. Check
4945 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
4946 global_options_set.x_rs6000_tune_index instead of rs6000_select.
4947 (rs6000_darwin_file_start): Check rs6000_default_cpu and
4948 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
4949 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
4950 rs6000_select): Remove.
4951 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
4952 Remove.
4953 (mcpu=, mtune=): Use Var, Init, Enum and Save.
4954 * config/rs6000/t-rs6000
4955 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
4956 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4957 global_options_set.x_rs6000_cpu_index instead of
4958 rs6000_select[1].string.
4959 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4960 global_options_set.x_rs6000_cpu_index instead of
4961 rs6000_select[1].string.
4962
4963 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4964
4965 * config.gcc (libgcc_tm_file): Define instead of including files
4966 from ../../libgcc/config/ in tm_file.
4967 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
4968 * configure: Regenerate.
4969 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
4970 libgcc_tm.h, cs-libgcc_tm.h): New.
4971 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
4972 (clean): Remove libgcc_tm.h.
4973 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
4974 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
4975 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
4976
4977 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
4978
4979 PR target/48896
4980 * config/avr/avr.c (avr_ret_register): Return unsigned int
4981 instead of int.
4982 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
4983 it to avr_libcall_value.
4984 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
4985 expand_expr.
4986 (avr_expand_binop_builtin): Ditto.
4987 (avr_expand_unop_builtin): Ditto.
4988
4989 2011-05-10 DJ Delorie <dj@redhat.com>
4990
4991 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
4992 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
4993 * config/rx/rx.c (rx_align_for_label): Add label and
4994 uses_threshold parameters. Do not align when the label is not
4995 used enough.
4996 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
4997
4998 2011-05-10 Richard Guenther <rguenther@suse.de>
4999
5000 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5001 a series of conversions and apply foldings similar to what
5002 fold-const does.
5003 (tree_ssa_forward_propagate_single_use_vars): Call it.
5004
5005 2011-05-10 Jakub Jelinek <jakub@redhat.com>
5006
5007 PR tree-optimization/48611
5008 PR tree-optimization/48794
5009 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5010 referenced from RESX or EH_DISPATCH arguments.
5011
5012 PR debug/48928
5013 * dfp.c (decimal_to_decnumber): Handle conversion from
5014 dconst{1,2,m1,half}.
5015
5016 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5017
5018 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5019 for !flag_prefer_avx128.
5020 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5021
5022 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5023
5024 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5025 (fold_ternary_loc): Use expr_location_or.
5026
5027 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
5028
5029 PR debug/48853
5030 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5031 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5032 Pmode and mem_mode is not VOIDmode.
5033
5034 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
5035
5036 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5037 TYPE_QUAL_RESTRICT): Convert to enum.
5038
5039 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5040
5041 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5042 (const_pow2_1_to_8_operand): Ditto.
5043 (const_pow2_1_to_128_operand): Ditto.
5044 (const_pow2_1_to_32768_operand): Ditto.
5045 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5046 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
5047 in insn constraint to check integer value of operand 3.
5048 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5049
5050 (PINSR_MODE): New mode iterator.
5051 (sse2p4_1): New mode attribute.
5052 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5053 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5054 iterator. Use const_int_operand instead of
5055 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
5056 exact_log2 in insn constraint to check integer value of operand 3.
5057
5058 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5059
5060 * config/i386/sse.md (blendbits): Remove mode attribute.
5061 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5062 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5063 Check integer value of operand 3 in insn constraint.
5064
5065 2011-05-09 Richard Guenther <rguenther@suse.de>
5066
5067 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5068 for diagnostics.
5069 (lto_symtab_merge): Likewise. Do not register types here.
5070 (lto_symtab_merge_decls_2): Likewise.
5071 (lto_symtab_merge_decls_1): Likewise.
5072 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5073 * gimple.c (enum gtc_mode): Declare.
5074 (gimple_types_compatible_p): Make static.
5075
5076 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5077
5078 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5079 temporary register to match Pmode.
5080
5081 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5082
5083 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5084 and *vec_concatv4si_1_avx.
5085
5086 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5087
5088 PR rtl-optimization/48927
5089 * ira-conflicts.c (commutative_constraint_p): Use
5090 recog_data.alternative_enabled_p to disable alternatives where
5091 "enabled" attribute is false.
5092 (get_dup_num): Ditto.
5093 * ira-lives.c (single_reg_class): Ditto.
5094 (ira_implicitly_set_insn_hard_regs): Ditto.
5095
5096 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5097
5098 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5099 (dataflow_set_preserve_mem_locs): Likewise.
5100
5101 2011-05-09 Philipp Thomas <pth@suse.de>
5102
5103 * config/mep/mep.c (mep_validate_vliw): Syntax description
5104 should not be translated.
5105
5106 2011-05-09 Joseph Myers <joseph@codesourcery.com>
5107
5108 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5109 * config/mips/mips-tables.opt: New file (generated).
5110 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5111 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5112 MIPS_ARCH_OPTION_NATIVE): Define.
5113 * config/mips/mips.c (mips_cpu_info_table): Move contents to
5114 mips-cpus.def.
5115 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5116 mips_parse_cpu): Remove.
5117 (mips_cpu_info_from_opt, mips_default_arch): New.
5118 (mips_handle_option): Don't assert that global structures are in
5119 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5120 (mips_option_override): Use new variables and functions to set
5121 state of these options. Use strcmp to check for individual CPU names.
5122 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5123 definition.
5124 * config/mips/mips.opt (march=): Use ToLower and Enum.
5125 (mips): Use ToLower, Enum and Var.
5126 (mtune=): Use ToLower and Enum.
5127 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5128
5129 2011-05-08 Jan Hubicka <jh@suse.cz>
5130
5131 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5132 Arrange type pairs to be UID ordered.
5133 (gimple_lookup_type_leader): Make inline.
5134
5135 2011-05-09 Nick Clifton <nickc@redhat.com>
5136
5137 PR target/48899
5138 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5139 PROCESSOR_DEFAULT.
5140
5141 PR target/48897
5142 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5143 variable 's'.
5144
5145 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
5146
5147 * combine.c (simplify_comparison): Abstract out parts into...
5148 (simplify_compare_const): ... new function.
5149 (try_combine): Generalize parallel arithmetic/compare combining
5150 to call simplify_compare_const() and CANONICALIZE_COMPARE().
5151
5152 2011-05-08 Jan Hubicka <jh@suse.cz>
5153
5154 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
5155 (cgraph_create_virtual_clone): Call hooks once virtual clone
5156 is finished.
5157 * cgraph.h (cgraph_clone_node): Update prototype.
5158 * ipa-cp.c (ipcp_estimate_growth): Use
5159 estimate_ipcp_clone_size_and_time.
5160 * ipa-inline-transform.c (clone_inlined_nodes): Update.
5161 * lto-cgraph.c (input_node): Update.
5162 * ipa-inline.c (recursive_inlining): Update.
5163 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5164 (evaluate_conditions_for_known_args): Break out from ...
5165 (evaluate_conditions_for_edge): ... here.
5166 (evaluate_conditions_for_ipcp_clone): New function.
5167 (inline_node_duplication_hook): Update clone summary based
5168 on parameter map.
5169 (estimate_callee_size_and_time): Rename to ...
5170 (estimate_node_size_and_time): take NODE instead of EDGE;
5171 take POSSIBLE_TRUTHS as argument.
5172 (estimate_callee_size_and_time): Update.
5173 (estimate_ipcp_clone_size_and_time): New function.
5174 (do_estimate_edge_time): Update.
5175
5176 2011-05-08 Richard Guenther <rguenther@suse.de>
5177
5178 PR middle-end/48908
5179 PR middle-end/48905
5180 * expmed.c (expand_shift_1): Compute adjusted constant shift
5181 amount manually.
5182
5183 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5184
5185 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5186
5187 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5188
5189 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5190
5191 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5192
5193 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5194
5195 2011-05-07 Jan Hubicka <jh@suse.cz>
5196
5197 * ipa-inline-transform.c (inline_call): Account when program size
5198 decreases.
5199 * ipa-inline.c (relative_time_benefit): New function.
5200 (edge_badness): Reorganize to be power 2 based; fix thinko when
5201 computing badness for negative growth; update comments to match
5202 reality; better dumps.
5203
5204 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
5205
5206 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5207 type to bool and adjust comment.
5208 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5209 (fold_mathfn_compare): Remove calls to global_bindings_p.
5210 (fold_inf_compare): Likewise.
5211 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5212 * c-tree.h (global_bindings_p): Adjust prototype.
5213 * c-decl.c (global_bindings_p): Return bool and simplify.
5214
5215 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
5216
5217 PR tree-optimization/48837
5218 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5219 when accumulator transformation is performed.
5220
5221 2011-05-06 Jan Hubicka <jh@suse.cz>
5222
5223 * i386.h (ix86_tune_indices): Add
5224 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
5225 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
5226 * i386.c (initial_ix86_tune_features): Add
5227 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5228 (software_prefetching_beneficial_p): Remove predicate.
5229 (ix86_option_override_internal): Use new macro.
5230
5231 2011-05-06 Jan Hubicka <jh@suse.cz>
5232
5233 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5234
5235 2011-05-06 Jan Hubicka <jh@suse.cz>
5236
5237 * cgraph.c (cgraph_add_thunk): Create real function node instead
5238 of alias node; finalize it and mark needed/reachale; arrange visibility
5239 to be right and add it into the corresponding same comdat group list.
5240 (dump_cgraph_node): Dump thunks.
5241 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
5242 cgraph_function_with_gimple_body_p,
5243 cgraph_first_function_with_gimple_body,
5244 cgraph_next_function_with_gimple_body): New functions.
5245 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
5246 New macros.
5247 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
5248 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5249 * cgraphunit.c (cgraph_finalize_function): Only look into possible
5250 devirtualization when optimizing.
5251 (verify_cgraph_node): Verify thunks.
5252 (cgraph_analyze_function): Analyze thunks.
5253 (cgraph_mark_functions_to_output): Output thunks only in combination
5254 with function they are assigned to.
5255 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
5256 alias into normal node.
5257 (assemble_thunks): New functoin.
5258 (cgraph_expand_function): Use it.
5259 * lto-cgraph.c (lto_output_node): Stream thunks.
5260 (input_overwrite_node): Stream in thunks.
5261 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
5262 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
5263 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
5264 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
5265 (inline_analyze_function): Do not care about thunk jump functions.
5266 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
5267 * ipa-prop.c (ipa_prop_write_jump_functions): Use
5268 cgraph_function_with_gimple_body_p.
5269 * passes.c (do_per_function_toporder): Use
5270 cgraph_function_with_gimple_body_p.
5271 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5272 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
5273 (function_called_by_processed_nodes_p): Likewise.
5274
5275 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5276
5277 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
5278 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
5279 entries.
5280 (mabi=): Replace with separate entries for mabi=altivec,
5281 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
5282 mabi=ieeelongdouble and mabi=ibmlongdouble.
5283 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
5284 check for -mabi=spe without SPE ABI support here.
5285 (rs6000_handle_option): Replace OPT_mabi_ handling with
5286 OPT_mabi_altivec and OPT_mabi_spe handling.
5287
5288 2011-05-06 Cary Coutant <ccoutant@google.com>
5289
5290 * dwarf2out.c (contains_subprogram_definition): New function.
5291 (should_move_die_to_comdat): Call it.
5292
5293 2011-05-06 Jeff Law <law@redhat.com>
5294
5295 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
5296 remove_ctrl_stmt_and_useless_edges.
5297 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
5298 (fixup_template_block, thread_single_edge): Likewise.
5299 (mark_threaded_blocks): Use THREAD_TARGET.
5300
5301 2011-05-06 Alan Modra <amodra@gmail.com>
5302
5303 PR target/48900
5304 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5305 const0_rtx as the arg to the dummy __tls_get_addr libcall.
5306
5307 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5308
5309 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
5310 constraint modifier to "r".
5311
5312 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5313
5314 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
5315 fall through for OPT_mcmodel_.
5316
5317 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5318
5319 * config/s390/s390.c (s390_asm_trampoline_template): Comment
5320 instruction sizes.
5321 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
5322
5323 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5324
5325 PR target/47930
5326 * config/arm/arm.opt (marm): Document it.
5327 (mthumb): Reject negative variant.
5328
5329 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5330
5331 PR target/48898
5332 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5333 Fix typo in "ccvt" variable name.
5334
5335 2011-05-06 Tristan Gingold <gingold@adacore.com>
5336
5337 PR target/48895
5338 * config/vms/vms-ar.c (main): Remove cwd variable.
5339
5340 2011-05-06 Jakub Jelinek <jakub@redhat.com>
5341
5342 PR debug/48902
5343 * var-tracking.c (prepare_call_arguments): Move else before #endif.
5344
5345 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5346
5347 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
5348 * gimplify.c (gimplify_switch_expr): Likewise.
5349 * omp-low.c (expand_omp_sections): Likewise.
5350 * tree-eh.c (lower_try_finally_switch): Likewise.
5351 (lower_eh_dispatch): Likewise.
5352 * tree.h (build_case_label): Declare.
5353 * tree.c (build_case_label): Define.
5354
5355 2011-05-05 Jason Merrill <jason@redhat.com>
5356
5357 PR c++/40975
5358 * tree-inline.c (copy_tree_r): Use copy_statement_list.
5359 (copy_statement_list): Don't recurse.
5360 * stor-layout.c (copy_self_referential_tree_r): Don't allow
5361 STATEMENT_LIST.
5362
5363 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5364
5365 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
5366 through from -mfpu= handling.
5367 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
5368
5369 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
5370
5371 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
5372 POST_MODIFY.
5373
5374 2011-05-05 Steve Ellcey <sje@cup.hp.com>
5375
5376 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
5377 for 11.31.
5378 (hppa[12]*-*-hpux11*): Ditto.
5379 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
5380 * config/ia64/hpux-unix2003.h: New.
5381 * config/pa/pa-hpux1131.opt: New.
5382 * config/pa/pa-hpux1131.h: New.
5383 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
5384 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
5385 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
5386
5387 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5388
5389 PR debug/48853
5390 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
5391 instead of mode as 3rd argument to recursive call.
5392 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
5393 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
5394 VOIDmode.
5395 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
5396 don't give up if mode is Pmode and mem_mode is not VOIDmode.
5397 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
5398 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
5399
5400 2011-05-05 Julian Brown <julian@codesourcery.com>
5401
5402 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
5403 parenthesis in D-register case.
5404
5405 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5406
5407 * opt-functions.awk (var_type_struct): Handle Enum options.
5408 * optc-gen.awk: Don't check range of variables of character type.
5409 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
5410 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
5411 rs6000_sdata_name, rs6000_explicit_options): Remove.
5412 (rs6000_option_override_internal): Check for -malign-power here.
5413 Use global_options_set instead of rs6000_explicit_options.
5414 (rs6000_parse_fpu_option): Remove.
5415 (rs6000_handle_option): Access variables via opts and opts_set
5416 pointers. Use error_at and warning_at. Add fall-through
5417 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
5418 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
5419 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
5420 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
5421 here. Don't use rs6000_parse_fpu_option.
5422 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
5423 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
5424 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
5425 (mrecip=): Use Var.
5426 (mspe): Use Var and Save.
5427 (mtraceback=): Use Enum and Var.
5428 (rs6000_traceback_type): New Enum and EnumValue entries.
5429 (mfloat-gprs=): Use Enum, Var and Save.
5430 (rs6000_float_gprs): New Enum and EnumValue entries.
5431 (mlong-double-): use Var and Save.
5432 (msched-costly-dep=, minsert-sched-nops=): Use Var.
5433 (malign-): Use Enum and Var.
5434 (rs6000_alignment_flags): New Enum and EnumValue entries.
5435 (mfpu=): Use Enum.
5436 (fpu_type_t): New Enum and EnumValue entries.
5437 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5438 global_options_set instead of rs6000_explicit_options.
5439 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5440 global_options_set instead of rs6000_explicit_options.
5441 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5442 global_options_set instead of rs6000_explicit_options.
5443 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5444 global_options_set instead of rs6000_explicit_options.
5445 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
5446 global_options_set instead of rs6000_explicit_options.
5447 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5448 global_options_set instead of rs6000_explicit_options.
5449 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
5450 definition.
5451 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5452 global_options_set instead of rs6000_explicit_options.
5453 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
5454 (rs6000_cmodel): New Enum and EnumValue entries.
5455 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5456 global_options_set instead of rs6000_explicit_options.
5457 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
5458 (mtls-size=): Use Enum and Var.
5459 (rs6000_tls_size): New Enum and EnumValue entries.
5460
5461 2011-05-05 Michael Matz <matz@suse.de>
5462
5463 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
5464 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
5465 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
5466 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
5467 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
5468 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
5469 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
5470 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
5471 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
5472 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
5473 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
5474 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
5475 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
5476 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
5477 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
5478 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
5479
5480 2011-05-05 Richard Guenther <rguenther@suse.de>
5481
5482 * expmed.c (expand_variable_shift): Rename to ...
5483 (expand_shift_1): ... this. Take an expanded shift amount.
5484 For rotates recurse directly not building trees for the shift amount.
5485 (expand_variable_shift): Wrap around expand_shift_1.
5486 (expand_shift): Adjust.
5487
5488 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5489
5490 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
5491
5492 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
5493
5494 * tree.h (get_pending_sizes): Remove prototype.
5495 (put_pending_size): Likewise.
5496 (put_pending_sizes): Likewise.
5497 * stor-layout.c (pending_sizes): Delete.
5498 (get_pending_sizes): Likewise.
5499 (put_pending_size): Likewise.
5500 (put_pending_sizes): Likewise.
5501 (variable_size): Do not call put_pending_size and tidy up.
5502 * function.h (struct function): Remove dont_save_pending_sizes_p.
5503 * lto-streamer-in.c (input_function): Do not stream it.
5504 * lto-streamer-out.c (output_function): Likewise.
5505 * tree-inline.c (initialize_cfun): Do not copy it.
5506 * c-decl.c (store_parm_decls): Do not set it.
5507 * omp-low.c (create_task_copyfn): Likewise.
5508 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5509
5510 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
5511
5512 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
5513 conditions.
5514 (*movdf_internal): Ditto.
5515 (*movdf_internal_nointeger): Ditto.
5516 (*movsf_internal): Ditto.
5517
5518 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5519
5520 * c-decl.c (finish_decl): Don't call get_pending_sizes.
5521 (grokparm): Add parameter expr. Pass it to grokdeclarator.
5522 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
5523 (c_variable_size): Remove.
5524 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
5525 call put_pending_sizes.
5526 (get_parm_info): Add parameter expr. Use it to set
5527 arg_info->pending_sizes.
5528 (store_parm_decls): Use arg_info->pending_sizes instead or calling
5529 get_pending_sizes.
5530 * c-parser.c (c_parser_parms_declarator): Update call to
5531 c_parser_parms_list_declarator.
5532 (c_parser_parms_list_declarator): Take parameter expr. Update
5533 call to push_parm_decl. Update recursive call. Don't call
5534 get_pending_sizes. Update calls to get_parm_info.
5535 (c_parser_objc_method_definition): Update calls to
5536 c_parser_objc_method_decl and objc_start_method_definition.
5537 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
5538 (c_parser_objc_method_decl): Add parameter expr. Update call to
5539 grokparm.
5540 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
5541 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
5542 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
5543
5544 2011-05-05 Michael Hope <michael.hope@linaro.org>
5545
5546 PR pch/45979
5547 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
5548 __ARM_EABI__ hosts.
5549
5550 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5551
5552 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
5553 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5554 (spu_output_mi_thunk): New function.
5555
5556 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5557
5558 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
5559 targetm.asm_out.print_operand.
5560 * config/sol2.c: Include target.h.
5561
5562 2011-05-04 Jan Hubicka <jh@suse.cz>
5563
5564 * ipa-inline.c (reset_edge_caches): New function.
5565 (update_caller_keys): Add check_inlinablity_for; do not
5566 reset edge caches; remove now unnecesary loop.
5567 (update_callee_keys): Add comments; reset node_growth_cache of callee.
5568 (update_all_callee_keys): Likewise.
5569 (inline_small_functions): Sanity check cache; update code
5570 recomputing it.
5571
5572 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
5573
5574 PR rtl-optimization/47612
5575 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
5576 as the last insn of the sequence to be moved.
5577
5578 2011-05-04 Tobias Burnus <burnus@net-b.de>
5579
5580 PR fortran/48864
5581 * doc/invoke.texi (Ofast): Document that it
5582 enables Fortran's -fno-protect-parens.
5583
5584 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5585
5586 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
5587
5588 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
5589
5590 * stor-layout.c (variable_size): Do not issue errors.
5591
5592 2011-05-04 Richard Guenther <rguenther@suse.de>
5593
5594 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
5595 for array-ref indices.
5596 (tree_coverage_counter_addr): Likewise.
5597 (build_fn_info_type): Use size_int for index types.
5598 (build_gcov_info): Likewise.
5599
5600 2011-05-04 Richard Guenther <rguenther@suse.de>
5601
5602 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
5603 to build_int_cst.
5604 * c-typeck.c (really_start_incremental_init): Use bitsize_int
5605 for constructor indices.
5606 (push_init_level): Likewise.
5607
5608 2011-05-04 Richard Guenther <rguenther@suse.de>
5609
5610 * explow.c (promote_mode): Move variable declarations before code.
5611
5612 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5613
5614 * tree.h (build_function_type_array): Declare.
5615 (build_varargs_function_type_array): Declare.
5616 (build_function_type_vec, build_varargs_function_type_vec): Define.
5617 * tree.c (build_function_type_array_1): New function.
5618 (build_function_type_array): New function.
5619 (build_varargs_function_type_array): New function.
5620
5621 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
5622
5623 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
5624 before setting STMT_VINFO_TYPE.
5625
5626 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5627
5628 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
5629 instead of spu_pass_by_reference.
5630
5631 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5632
5633 * calls.c (emit_library_call_value_1): Invoke
5634 promote_function_mode hook on libcall arguments.
5635 * explow.c (promote_function_mode, promote_mode): Handle TYPE
5636 argument being NULL.
5637 * targhooks.c (default_promote_function_mode): Lisewise.
5638 * config/s390/s390.c (s390_promote_function_mode): Likewise.
5639 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
5640
5641 * doc/tm.texi: Document that TYPE argument might be NULL.
5642
5643 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5644
5645 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
5646
5647 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5648
5649 From Bernd Schmidt
5650 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
5651
5652 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5653
5654 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
5655 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
5656 Move ...
5657 * mips-tfile.c: ... here.
5658 Don't include coretypes.h, tm.h, filenames.h.
5659 (saber_stop): Remove definition and all calls.
5660 [__SABER__]: Remove.
5661 (__LINE__): Remove default.
5662 (Size_t, Ptrdiff_t): Remove definitions.
5663 Replace by size_t, ptrdiff_t.
5664 [!MIPS_DEBUGGING_INFO]: Remove.
5665 (SHASH_SIZE, THASH_SIZE): Remove defaults.
5666 (progname): Add const.
5667 (STATIC): Remove.
5668 Replace all uses by static.
5669 (ALIGN_SYMTABLE_OFFSET): Remove default.
5670 * mips-tdump.c: Don't include coretypes.h, tm.h.
5671 Remove !MIPS_IS_STAB guard.
5672 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
5673 $(TM_H), filenames.h dependencies.
5674 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
5675
5676 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5677
5678 From Jie Zhang
5679 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
5680 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5681
5682 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5683
5684 From Bernd Schmidt
5685 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
5686 account and save/restore RETS.
5687 (PROFILE_BEFORE_PROLOGUE): Define.
5688 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
5689 the push insn to use predecrement.
5690
5691 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5692
5693 From Jie Zhang
5694 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
5695
5696 2011-05-04 Nick Clifton <nickc@redhat.com>
5697
5698 * config/mn10300/mn10300.c: Include cfgloop.h.
5699 (DUMP): New macro.
5700 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
5701 Lcc or a FLcc insn into the instruction stream.
5702 (mn10300_block_contains_call): New function. Returns true if the
5703 given basic block contains a CALL insn.
5704 (mn10300_loop_contains_call_insn): New function. Returns true if
5705 the given loop contains a CALL insn.
5706 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
5707 to use the SETLB and Lcc or FLcc insns.
5708 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
5709 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
5710 * config/mn10300/mn10300.opt (msetlb): New option. Used to
5711 disable the SETLB optimization.
5712 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
5713 __SETLB__ or __NO_SETLB__.
5714 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
5715 (movsf_internal): Handle MDR register.
5716 (cmpsi): Make visible.
5717 (setlb): New pattern.
5718 (Lcc): New pattern.
5719 (FLcc): New pattern.
5720
5721 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5722
5723 PR target/48860
5724 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
5725 for reg<->xmm moves.
5726 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
5727 (vec_concatv2di_rex64_sse): Ditto.
5728 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
5729 (*vec_extractv2di_1_rex64): Ditto.
5730
5731 Revert:
5732 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5733
5734 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5735 reg<->xmm moves.
5736 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
5737
5738 2011-05-04 Richard Guenther <rguenther@suse.de>
5739
5740 * tree.h (int_const_binop): Remove notrunc argument.
5741 * fold-const.c (int_const_binop): Remove notrunc argument. Always
5742 create integer constants that are properly truncated.
5743 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
5744 (const_binop): Remove zero notrunc argument to int_const_binop.
5745 (size_binop_loc): Likewise.
5746 (fold_div_compare): Likewise.
5747 (maybe_canonicalize_comparison_1): Likewise.
5748 (fold_comparison): Likewise.
5749 (fold_binary_loc): Likewise.
5750 (multiple_of_p): Likewise.
5751 * expr.c (store_constructor): Likewise.
5752 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5753 (maybe_fold_stmt_addition): Likewise.
5754 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
5755 * stor-layout.c (layout_type): Likewise.
5756 * tree-data-ref.c (tree_fold_divides_p): Likewise.
5757 * tree-sra.c (build_ref_for_offset): Likewise.
5758 (build_user_friendly_ref_for_offset): Likewise.
5759 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
5760 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5761 * tree-ssa-loop-niter.c (inverse): Likewise.
5762 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5763 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
5764 * tree-switch-conversion.c (check_range): Likewise.
5765 (build_constructors): Likewise.
5766 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5767 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
5768 (extract_range_from_assert): Likewise.
5769 (vrp_int_const_binop): Likewise.
5770 (extract_range_from_binary_expr): Likewise.
5771 (extract_range_from_unary_expr): Likewise.
5772 (check_array_ref): Likewise.
5773 (find_case_label_range): Likewise.
5774 (simplify_div_or_mod_using_ranges): Likewise.
5775 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
5776 comparing case labels for merging.
5777
5778 2011-05-03 Mark Wielaard <mjw@redhat.com>
5779
5780 * dwarf2out.c (debug_str_hash_forced): Removed.
5781 (gen_label_for_indirect_string): Removed.
5782 (get_debug_string_label): Removed.
5783 (AT_string_form): Generate label directly.
5784 (output_indirect_string): Test indirect_string_node for
5785 DW_FORM_strp instead of checking label and refcount.
5786 (prune_indirect_string): Removed.
5787 (prune_unused_types): Don't check debug_str_hash_forced or
5788 call prune_indirect_string.
5789
5790 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5791
5792 PR other/48093
5793 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
5794
5795 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5796
5797 PR debug/47994
5798 PR debug/47919
5799 * combine.c (try_combine): Skip debug insns at m_split tests.
5800
5801 2011-04-26 Mark Wielaard <mjw@redhat.com>
5802
5803 PR42288
5804 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
5805 when info_section_emitted.
5806
5807 2011-05-03 Joseph Myers <joseph@codesourcery.com>
5808
5809 * config/mips/mips-opts.h: New.
5810 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
5811 to mips-opts.h.
5812 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
5813 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
5814 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
5815 via opts pointer.
5816 * config/mips/mips.h (enum mips_code_readable_setting): Move to
5817 mips-opts.h.
5818 (mips_abi, mips_code_readable): Don't declare.
5819 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
5820 (mabi=): Use Enum and Var.
5821 (mips_abi): New Enum and EnumValue entries.
5822 (mcode-readable=): Use Enum and Var.
5823 (mips_code_readable_setting): New Enum and EnumValue entries.
5824 (mr10k-cache-barrier=): Use Enum and Var.
5825 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
5826
5827 2011-05-03 Jan Hubicka <jh@suse.cz>
5828
5829 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
5830 replace hash by pointer map.
5831 (cgraph_node_set_element_def, cgraph_node_set_element,
5832 const_cgraph_node_set_element, varpool_node_set_element_def,
5833 varpool_node_set_element, const_varpool_node_set_element): Remove.
5834 (free_cgraph_node_set, free_varpool_node_set): New function.
5835 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
5836 * tree-emutls.c: Free varpool node set.
5837 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
5838 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5839 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
5840 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5841 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
5842 Move here from ipa.c; implement using pointer_map
5843 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
5844 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5845 debug_cgraph_node_set, varpool_node_set_new,
5846 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5847 dump_varpool_node_set, debug_varpool_node_set):
5848 Move to ipa-uitls.c.
5849 * passes.c (ipa_write_summaries): Update.
5850
5851 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5852
5853 From Mike Frysinger:
5854 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
5855 bf542/bf544/bf547/bf548/bf549.
5856
5857 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5858
5859 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
5860
5861 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5862
5863 From Bernd Schmidt:
5864 * config/bfin/bfin.md (MOVCC): New mode_macro.
5865 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
5866 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
5867 comments from generated assembly.
5868
5869 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5870
5871 From Bernd Schmidt
5872 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
5873 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
5874 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
5875 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
5876 * config/bfin/lib1funcs.asm (___muldi3): New function.
5877
5878 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5879
5880 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
5881 build_function_type_list instead of build_function_type.
5882 Rearrange initialization of `args' to do so.
5883
5884 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5885
5886 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
5887 instead of build_function_type.
5888
5889 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5890
5891 * config/rs6000/rs6000.c (spe_init_builtins): Call
5892 build_function_type_list instead of build_function_type.
5893 (paired_init_builtins, altivec_init_builtins): Likewise.
5894 (builtin_function_type): Likewise.
5895
5896 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5897
5898 * config/sh/sh.c (sh_media_init_builtins): Call
5899 build_function_type_list instead of build_function_type.
5900
5901 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5902
5903 * config/sparc/sparc.c (sparc_file_end): Call
5904 build_function_type_list instead of build_function_type.
5905
5906 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5907
5908 * config/alpha/alpha.c (alpha_init_builtins): Call
5909 build_function_type_list instead of build_function_type.
5910
5911 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5912
5913 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
5914 build_function_type_list instead of build_function_type.
5915
5916 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5917
5918 * config/iq2000/i2000.c (iq2000_init_builtins): Call
5919 build_function_type_list instead of build_function_type.
5920 Delete `endlink' variable.
5921
5922 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5923
5924 * config/avr/avr.c (avr_init_builtins): Call
5925 build_function_type_list instead of build_function_type.
5926
5927 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5928
5929 * config/picochip/picochip.c (picochip_init_builtins): Call
5930 build_function_type_list instead of build_function_type.
5931 Delete `endlink' variable.
5932
5933 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5934
5935 * config/bfin/bfin.c (bfin_init_builtins): Call
5936 build_function_type_list instead of build_function_type.
5937
5938 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5939
5940 From Bernd Schmidt
5941 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
5942 that's not CONST_INT. Seemingly redundant check is due to PR39768.
5943
5944 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5945
5946 From Jie Zhang:
5947 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
5948 libbffastfp overrides libgcc when -mfast-fp.
5949
5950 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5951
5952 Originally from Bernd Schmidt
5953 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
5954 * config/bfin/bfin.c (override_options): Test it and error if
5955 TARGET_FDPIC.
5956
5957 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5958
5959 Originally From Bernd Schmidt
5960 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
5961 FD-PIC.
5962
5963 2011-05-03 Jeff Law <law@redhat.com>
5964
5965 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
5966 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
5967 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
5968 than accessing AUX field directly. Free the AUX field before
5969 clearing it.
5970 (thread_block, thread_through_loop_header): Likewise.
5971 (thread_single_edge, mark_threaded_blocks): Likewise.
5972 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
5973 (register_jump_thread): Do not attempt to thread to a NULL edge.
5974
5975 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5976
5977 * function.c (init_function_start): Call decide_function_section.
5978 * varasm.c (decide_function_section): New function.
5979 (assemble_start_function): When not using
5980 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
5981 or first_function_block_is_cold.
5982 * rtl.h (decide_function_section): Declare.
5983
5984 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5985 Jakub Jelinek <jakub@redhat.com>
5986
5987 PR target/48774
5988 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
5989 only succeed if req_mode is the same as set_mode.
5990
5991 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5992
5993 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
5994 * genemit.c (gen_exp): Handle RETURN.
5995 * emit-rtl.c (verify_rtx_sharing): Likewise.
5996 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
5997 * rtl.c (copy_rtx): RETURN is shared.
5998 * rtl.h (enum global_rtl_index): Add GR_RETURN.
5999 (ret_rtx): New.
6000 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6001 * config/s390/s390.c (s390_emit_epilogue): Likewise.
6002 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6003 * config/cris/cris.c (cris_expand_return): Likewise.
6004 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6005 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6006 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6007 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6008 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6009 Likewise.
6010 * config/v850/v850.c (expand_epilogue): Likewise.
6011 * config/bfin/bfin.c (bfin_expand_call): Likewise.
6012 * config/arm/arm.md (epilogue): Likewise.
6013 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6014 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6015 variable to ret_reg.
6016
6017 2011-05-03 Richard Guenther <rguenther@suse.de>
6018
6019 PR lto/48846
6020 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6021 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6022 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6023
6024 2011-05-03 Richard Guenther <rguenther@suse.de>
6025
6026 * c-decl.c (grokdeclarator): Instead of looking at
6027 TREE_OVERFLOW check if the constant fits in the index type.
6028
6029 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6030
6031 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6032 (vec_store_lanes<mode><mode>): Likewise.
6033
6034 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6035
6036 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6037 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6038 convert_optab_index values.
6039 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6040 * genopinit.c (optabs): Initialize the new optabs.
6041 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6042 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6043 (expand_STORE_LANES): New functions.
6044 * tree.h (build_array_type_nelts): Declare.
6045 * tree.c (build_array_type_nelts): New function.
6046 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6047 (vect_model_load_cost): Likewise.
6048 (vect_store_lanes_supported, vect_load_lanes_supported)
6049 (vect_record_strided_load_vectors): Declare.
6050 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6051 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6052 (vect_transform_strided_load): Split out statement recording into...
6053 (vect_record_strided_load_vectors): ...this new function.
6054 * tree-vect-stmts.c (create_vector_array, read_vector_array)
6055 (write_vector_array, create_array_ref): New functions.
6056 (vect_model_store_cost): Add store_lanes_p argument.
6057 (vect_model_load_cost): Add load_lanes_p argument.
6058 (vectorizable_store): Try to use store-lanes functions for
6059 interleaved stores.
6060 (vectorizable_load): Likewise load-lanes and loads.
6061 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6062 to vect_model_store_cost.
6063 (vect_build_slp_tree): Likewise vect_model_load_cost.
6064
6065 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6066
6067 * hooks.h (hook_bool_mode_uhwi_false): Declare.
6068 * hooks.c (hook_bool_mode_uhwi_false): New function.
6069 * target.def (array_mode_supported_p): New hook.
6070 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6071 * doc/tm.texi: Regenerate.
6072 * stor-layout.c (mode_for_array): New function.
6073 (layout_type): Use it.
6074 * config/arm/arm.c (arm_array_mode_supported_p): New function.
6075 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6076
6077 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
6078
6079 PR target/48723
6080 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6081 for -fstack-check if the size to allocate is negative.
6082
6083 2011-05-02 Lawrence Crowl <crowl@google.com>
6084
6085 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6086 (timevar_cond_start): New for starting a timer only when it is not
6087 already running.
6088 (timevar_cond_stop): New for stopping a timer when it was not already
6089 running.
6090
6091 * timevar.c (timevar_stop): Enable start/stop timers to start again.
6092 (timevar_cond_start): New as above.
6093 (timevar_cond_stop): New as above.
6094
6095 * timevar.def: Add start/stop timers for compiler phases,
6096 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6097 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6098 and TV_PHASE_FINALIZE.
6099 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6100 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6101 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6102 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6103 Make unused TV_OVERLOAD into a start/stop timer.
6104
6105 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6106 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6107 to indicate that they are start/stop timers.
6108
6109 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6110 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6111 Move initialization to do_compile.
6112 (do_compile): Add initialization from above.
6113 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6114
6115 * c-decl.c (c_write_global_declarations): Add start/stop of
6116 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6117
6118 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6119 or TV_PARSE_INLINE, as appropriate.
6120 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6121 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6122
6123 2011-05-02 Jason Merrill <jason@redhat.com>
6124
6125 PR c++/40975
6126 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6127
6128 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
6129
6130 PR c/35445
6131 * c-decl.c (finish_decl): Only create a composite if the types are
6132 compatible.
6133
6134 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6135
6136 * config/fr30/fr30-protos.h (Mmode): Don't define.
6137 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
6138 definition where used.
6139 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6140 define. Expand definitions where used.
6141 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6142 Expand definitions where used.
6143 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6144 rx_function_arg, rx_function_arg_advance,
6145 rx_function_arg_boundary): Expand definitions of those macros.
6146 * config/v850/v850-protos.h (Mmode): Don't define. Expand
6147 definition where used.
6148
6149 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6150
6151 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6152 reg<->xmm moves.
6153 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6154 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
6155 with *movv2sf_internal_rex64_avx.
6156 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6157 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6158 Use %v prefix in insn mnemonic to handle TARGET_AVX.
6159 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
6160 "vex" in "prefix" attribute calculation.
6161 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
6162
6163 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
6164
6165 PR target/47951
6166 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6167 inputs match the output.
6168
6169 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
6170
6171 PR target/47955
6172 * config/m68k/m68k.c (m68k_expand_prologue): Set
6173 current_function_static_stack_size.
6174
6175 2011-05-02 Jan Hubicka <jh@suse.cz>
6176
6177 * lto-streamer.c (lto_streamer_cache_insert_1,
6178 lto_streamer_cache_lookup, lto_streamer_cache_create,
6179 lto_streamer_cache_delete): Use pointer map instead of hashtable.
6180 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6181
6182 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6183
6184 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6185 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6186 config/m68k/t-opts: New files.
6187 * config/m68k/m68k-tables.opt: New file (generated).
6188 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6189 extra_options and m68k/t-opts to tmake_file.
6190 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6191 (all_isas): Initialize using m68k-isas.def.
6192 (all_microarchs): Initialize using m68k-microarchs.def.
6193 (m68k_find_selection): Remove.
6194 (m68k_handle_option): Don't assert that global structures are in
6195 use. Use error_at. Access variables via opts pointer. Don't
6196 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
6197 directly for -m68020-40 and -m68020-60.
6198 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6199 m68k_tune_entry here.
6200 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6201 to m68k-opts.h.
6202 (m68k_library_id_string): Remove declaration.
6203 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
6204 (m68k_library_id_string): New Variable.
6205 (march=, mcpu=, mtune=): Use Enum and Var.
6206
6207 2011-05-02 Richard Guenther <rguenther@suse.de>
6208
6209 * varasm.c (output_constructor_regular_field): Compute zero-based
6210 index with double-ints. Make sure to ICE instead of producing
6211 wrong code.
6212 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6213 in asserts. Properly use a signed type.
6214
6215 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6216
6217 * config/i386/sse.md (V): New mode iterator.
6218 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
6219 TARGET_SSE2.
6220 (V_256): Rename from AVX256MODE.
6221 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
6222 condition to all users.
6223 (VF1): Ditto.
6224 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
6225 condition to all users.
6226 (VF_128): Make V4SF mode unconditional.
6227 (VF_256): Rename from AVX256MODEF2P.
6228 (VI4F_128): Rename from SSEMODE4S.
6229 (VI8F_128): Rename from SSEMODE2D.
6230 (VI4F_256): Rename from AVX256MODE8P.
6231 (VI8F_256): Rename from AVX256MODE4P.
6232 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6233 (ssescalarmodesuffix): Remove SF and DF modes.
6234 (SSEMODE124): Remove.
6235 (SSEMODE1248): Ditto.
6236 (SSEMODEF2P): Ditto.
6237 (AVXMODEF2P): Ditto.
6238 (AVXMODEFDP): Ditto.
6239 (AVXMODEFSP): Ditto.
6240 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
6241 unconditional.
6242 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
6243 unconditional.
6244 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
6245 xop_pcmov_<mode>256. Use V mode iterator.
6246
6247 Adjust RTX patterns globally for renamed mode attributes.
6248
6249 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6250
6251 * haifa-sched.c (sched_emit_insn): Emit insn before first
6252 non-scheduled insn. Inform back-end about new insn. Add
6253 new insn to scheduled_insns list.
6254
6255 2011-05-02 Richard Guenther <rguenther@suse.de>
6256
6257 PR tree-optimization/48822
6258 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
6259 (process_scc): Indicate which iteration we start.
6260
6261 2011-05-02 Jan Hubicka <jh@suse.cz>
6262
6263 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
6264 (lto_section_overrun): New.
6265 * lto-section-out.c (append_block): Rename to ...
6266 (lto_append_block): ... this one; export.
6267 (lto_output_1_stream): Move lto lto-streamer.h
6268 (lto_output_data_stream): Update.
6269 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
6270 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
6271 functions.
6272
6273 2011-05-02 Richard Guenther <rguenther@suse.de>
6274
6275 * tree.c (tree_code_counts): New global array.
6276 (record_node_allocation_statistics): Count individual tree codes.
6277 (dump_tree_statistics): Dump individual code stats.
6278
6279 2011-05-01 Jan Hubicka <jh@suse.cz>
6280
6281 * ipa-inline.c (caller_growth_limits): Fix thinko when
6282 looking for largest stack frame.
6283 * ipa-inline.h (dump_inline_summary): Declare.
6284 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
6285 on stack usage.
6286 (dump_inline_summary): Export.
6287 (debug_inline_summary): Declare as DEBUG_FUNCTION.
6288
6289 2011-05-01 Anatoly Sokolov <aesok@post.ru>
6290
6291 * reginfo.c (memory_move_cost): Change rclass argument type form
6292 'enum reg_class' to reg_class_t.
6293 * reload.h (memory_move_cost): Update prototype.
6294 * postreload.c reload_cse_simplify_set): Change type dclass var to
6295 reg_class_t.
6296 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
6297 Update prototype.
6298 (ira_allocate_and_set_costs): Change aclass argument type form
6299 'enum reg_class' to reg_class_t.
6300 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6301 Change aclass argument type to reg_class_t.
6302 (update_conflict_hard_reg_costs): Change type aclass and pref vars
6303 to reg_class_t.
6304 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
6305 memory_move_cost call.
6306
6307 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
6308 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
6309 Change type tmp var to reg_class_t.
6310
6311 2011-04-30 Jan Hubicka <jh@suse.cz>
6312
6313 * ipa-inline.c (can_inline_edge_p): Disregard limits when
6314 inlining into function with flatten attribute.
6315 (want_inline_small_function_p): Be more realistic about inlining
6316 cold calls where callee size grows.
6317
6318 2011-04-30 Jan Hubicka <jh@suse.cz>
6319
6320 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
6321 flags.
6322
6323 2011-04-30 Anatoly Sokolov <aesok@post.ru>
6324
6325 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6326 PRINT_OPERAND_PUNCT_VALID_P): Remove.
6327 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
6328 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
6329 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6330 (print_operand): Rename to...
6331 (sparc_print_operand): ...this. Make static. Adjust
6332 sparc_print_operand function call.
6333 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
6334 functions.
6335
6336 2011-04-30 Jan Hubicka <jh@suse.cz>
6337
6338 PR middle-end/48752
6339 * ipa-inline.c (early_inliner): Disable when doing late
6340 addition of function.
6341
6342 2011-04-30 Jakub Jelinek <jakub@redhat.com>
6343
6344 * dwarf2out.c (get_address_mode): New inline.
6345 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
6346 if not dwarf_strict emit
6347 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
6348 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
6349 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
6350 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
6351 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
6352 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
6353 mem_loc_descriptor callers.
6354 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6355 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
6356 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
6357 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
6358 (base_types): New variable.
6359 (get_base_type_offset, calc_base_type_die_sizes,
6360 base_type_for_mode, mark_base_types, base_type_cmp,
6361 move_marked_base_types): New functions.
6362 (calc_die_sizes): Assert that die_offset is 0 or equal to
6363 next_die_offset.
6364 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
6365 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
6366 callers. If not dwarf_strict, call mem_loc_descriptor even for
6367 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
6368 (gen_subprogram_die): Don't give up on call site parameters
6369 with non-integral or large integral modes. Adjust
6370 mem_loc_descriptor callers.
6371 (prune_unused_types): Call prune_unused_types_mark on base_types
6372 vector entries.
6373 (resolve_addr): Call mark_base_types.
6374 (dwarf2out_finish): Call move_marked_base_types.
6375
6376 PR tree-optimization/48809
6377 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
6378 type.
6379 (gen_inbound_check): Don't compute index_expr - range_min in utype
6380 again, instead reuse SSA_NAME initialized in build_arrays.
6381 Remove two useless gsi_for_stmt calls.
6382
6383 2011-04-29 Jeff Law <law@redhat.com>
6384
6385 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
6386
6387 2011-04-29 Martin Jambor <mjambor@suse.cz>
6388
6389 * cgraph.h (cgraph_postorder): Remove declaration.
6390 * ipa-utils.h (ipa_free_postorder_info): Declare.
6391 (ipa_reverse_postorder): Likewise.
6392 * cgraphunit.c: Include ipa-utils.h.
6393 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
6394 * ipa-inline.c: Include ipa-utils.h.
6395 (ipa_inline): Update call to ipa_reverse_postorder.
6396 * ipa-pure-const.c (propagate_pure_const): Update call to
6397 ipa_reduced_postorder and ipa_print_order. Call
6398 ipa_free_postorder_info to clean up.
6399 (propagate_nothrow): Likewise.
6400 * ipa-reference.c (propagate): Removed a useless call to
6401 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
6402 and ipa_print_order. Call ipa_free_postorder_info to clean up.
6403 * ipa.c: Include ipa-utils.h.
6404 (ipa_profile): Update call to ipa_reverse_postorder.
6405 (cgraph_postorder): Moved to...
6406 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
6407 (ipa_utils_print_order): Renamed to ipa_print_order.
6408 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
6409 comments.
6410 (ipa_free_postorder_info): New function.
6411 * passes.c: Include ipa-utils.h.
6412 (do_per_function_toporder): Update call to ipa_reverse_postorder.
6413 (ipa_write_summaries): Likewise.
6414 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
6415 (cgraphunit.o): Likewise.
6416 (ipa.o): Likewise.
6417 (ipa-inline.o): Likewise.
6418
6419 2011-04-29 Jan Hubicka <jh@suse.cz>
6420
6421 * gcc.dg/tree-ssa/inline-10.c: New testcase.
6422 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
6423 * ipa-inline.h (clause_t): Turn into unsigned int.
6424 * ipa-inline-analysis.c (add_clause): Do more simplification.
6425 (and_predicates): Shortcut more cases.
6426 (predicates_equal_p): Move forward; check that clauses are properly
6427 ordered.
6428 (or_predicates): Shortcut more cases.
6429 (edge_execution_predicate): Rewrite as...
6430 (set_cond_stmt_execution_predicate): ... this function; handle
6431 __builtin_constant_p.
6432 (set_switch_stmt_execution_predicate): New .
6433 (compute_bb_predicates): New.
6434 (will_be_nonconstant_predicate): Update TODO.
6435 (estimate_function_body_sizes): Use compute_bb_predicates
6436 and free them later, always try to estimate if stmt is constant.
6437 (estimate_time_after_inlining, estimate_size_after_inlining):
6438 Gracefully handle optimized out edges.
6439 (read_predicate): Fix off by one error.
6440
6441 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
6442
6443 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
6444
6445 2011-04-27 Xinliang David Li <davidxl@google.com>
6446
6447 * tree-profile.c (init_ic_make_global_vars): Set
6448 tls attribute on ic vars.
6449 * coverage.c (coverage_end_function): Initialize
6450 function_list with zero.
6451
6452 2011-04-29 Richard Guenther <rguenther@suse.de>
6453
6454 * builtins.c (fold_builtin_classify_type): Use integer_type_node
6455 for the type of the result.
6456 (fold_builtin_isascii): Likewise.
6457 (fold_builtin_toascii): Use integer_type_node where appropriate.
6458 (fold_builtin_logb): Likewise.
6459 (fold_builtin_frexp): Likewise.
6460 (fold_builtin_strstr): Likewise.
6461 (fold_builtin_strpbrk): Likewise.
6462 (fold_builtin_fputs): Likewise.
6463 (fold_builtin_sprintf): Likewise.
6464 (fold_builtin_snprintf): Likewise.
6465 (fold_builtin_printf): Likewise.
6466 (do_mpfr_remquo): Use a proper type for the assigned constant.
6467 (do_mpfr_lgamma_r): Likewise.
6468 * dwarf2out.c (resolve_one_addr): Use size_int.
6469 * except.c (init_eh): Likewise.
6470 (assign_filter_values): Use integer_type_node for filter values.
6471 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
6472 indices.
6473 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
6474 for EH region numbers.
6475 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
6476 for the shift amount.
6477
6478 2011-04-29 Richard Guenther <rguenther@suse.de>
6479
6480 * expr.h (expand_shift): Rename to ...
6481 (expand_variable_shift): ... this.
6482 (expand_shift): Take a constant shift amount.
6483 * expmed.c (expand_shift): Rename to ...
6484 (expand_variable_shift): ... this.
6485 (expand_shift): New wrapper around expand_variable_shift.
6486 * expr.c (convert_move, emit_group_load_1, emit_group_store,
6487 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
6488 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
6489 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
6490 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
6491 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
6492 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
6493 emit_store_flag_1, emit_store_flag): Likewise.
6494 * builtins.c (expand_builtin_signbit): Likewise.
6495 * calls.c (load_register_parameters): Likewise.
6496 * function.c (assign_parm_setup_block): Likewise.
6497 * lower-subreg.c (resolve_shift_zext): Likewise.
6498 * optabs.c (widen_bswap, expand_abs_nojump,
6499 expand_one_cmpl_abs_nojump, expand_float): Likewise.
6500 * spu/spu.c (spu_expand_extv): Likewise.
6501 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6502
6503 2011-04-29 Richard Guenther <rguenther@suse.de>
6504
6505 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
6506 for the remapped region number.
6507 * predict.c (build_predict_expr): Use integer_type_node for the
6508 predict kind.
6509 * fold-const.c (fold_binary_loc): Use integer_type_node for
6510 the shift amount. Use a proper type for the PLUS_EXPR operand.
6511
6512 2011-04-29 Michael Matz <matz@suse.de>
6513
6514 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
6515 other trees that just builtins.
6516 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
6517
6518 2011-04-29 Richard Guenther <rguenther@suse.de>
6519
6520 * tree-nested.c (get_trampoline_type): Use size_int.
6521 (get_nl_goto_field): Likewise.
6522 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
6523 for all indexes.
6524 (lower_eh_constructs_2): Likewise.
6525 (lower_resx): Likewise.
6526 (lower_eh_dispatch): Likewise.
6527 * tree-mudflap.c (mf_build_string): Use size_int.
6528 (mudflap_register_call): Use integer_type_node for the flag.
6529 (mudflap_enqueue_constant): Use size_int.
6530 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
6531 instead of rebuilding it.
6532
6533 2011-04-29 Richard Guenther <rguenther@suse.de>
6534
6535 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
6536 Handle OBJ_TYPE_REF.
6537 (find_func_aliases_for_call): Use it more consistently.
6538
6539 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
6540
6541 * haifa-sched.c (last_nondebug_scheduled_insn): New.
6542 (rank_for_schedule): Use it.
6543 (schedule_block): Set it.
6544
6545 2011-04-28 David Li <davidxl@google.com>
6546
6547 * tree.c (crc32_string): Use crc32_byte.
6548 (crc32_byte): New function.
6549 * tree.h (crc32_byte): New function.
6550 * gcov.c (read_graph_file): Handle new cfg_cksum.
6551 (read_count_file): Ditto.
6552 * profile.c (instrument_values): Ditto.
6553 (get_exec_counts): Ditto.
6554 (read_profile_edge_counts): Ditto.
6555 (compute_branch_probabilities): Ditto.
6556 (compute_value_histograms): Ditto.
6557 (branch_prob): Ditto.
6558 (end_branch_prob): Ditto.
6559 * coverage.c (read_counts_file): Ditto.
6560 (get_coverage_counts): Ditto.
6561 (tree_coverage_counter_addr): Ditto.
6562 (coverage_checksum_string): Ditto.
6563 (coverage_begin_output): Ditto.
6564 (coverage_end_function): Ditto.
6565 (build_fn_info_type): Ditto.
6566 (build_fn_info_value): Ditto.
6567 * libgcov.c (gcov_exit): Ditto.
6568 * gcov-dump.c (tag_function): Ditto.
6569 (compute_checksum): Remove.
6570
6571 2011-04-29 Alan Modra <amodra@gmail.com>
6572
6573 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6574 unspec plus offset. Tidy macho code.
6575
6576 2011-04-29 Martin Jambor <mjambor@suse.cz>
6577
6578 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
6579 node instead of a decl. Update all callers.
6580 * cgraph.h: Update declaration.
6581
6582 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
6583
6584 PR tree-optimization/48765
6585 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
6586 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
6587 to indicate if loop aware SLP is being used. Scan the statements
6588 and update the vectorization factor according to the type of
6589 vectorization before statement analysis.
6590 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
6591 pass it to vect_analyze_loop_operations.
6592 (vectorizable_reduction): Set number of copies to 1 in case of pure
6593 SLP statement.
6594 * tree-vect-stmts.c (vectorizable_conversion,
6595 vectorizable_assignment, vectorizable_shift,
6596 vectorizable_operation, vectorizable_type_demotion,
6597 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
6598 Likewise.
6599 (vectorizable_condition): Move the check that it is not SLP
6600 vectorization before the number of copies check.
6601 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
6602 to vectorize the loop using SLP.
6603
6604 2011-04-28 Jakub Jelinek <jakub@redhat.com>
6605
6606 PR middle-end/48597
6607 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
6608 inline asm.
6609
6610 2011-04-28 Joseph Myers <joseph@codesourcery.com>
6611
6612 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
6613 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
6614 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6615 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6616 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
6617 linux*.h headers.
6618 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6619 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6620 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6621 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6622 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6623 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
6624 REG_NAME.
6625 * config/i386/linux.h (REG_NAME): Don't define.
6626 * config/i386/linux64.h (REG_NAME): Don't define.
6627 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
6628 Undefine before defining.
6629
6630 2011-04-28 Jan Hubicka <jh@suse.cz>
6631
6632 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
6633 nonconstant_names array.
6634 (estimate_function_body_sizes): Build nonconstant_names array; handle
6635 BUILT_IN_CONSTANT_P.
6636
6637 2011-04-28 Richard Guenther <rguenther@suse.de>
6638
6639 PR bootstrap/48804
6640 Revert
6641 2011-04-28 Richard Guenther <rguenther@suse.de>
6642
6643 * tree-ssa-structalias.c (solve_constraints): Build succ graph
6644 as late as possible.
6645
6646 2011-04-28 Richard Guenther <rguenther@suse.de>
6647
6648 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
6649 (debug_constraint): Do it here.
6650 (dump_constraints): And here.
6651 (rewrite_constraints): And here.
6652 (dump_constraint_edge): Remove.
6653 (dump_constraint_graph): Rewrite to produce DOT output.
6654 (solve_constraints): Build succ graph as late as possible.
6655 Dump constraint graphs before and after solving.
6656
6657 2011-04-28 Richard Guenther <rguenther@suse.de>
6658
6659 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6660 New function split out from ...
6661 (find_func_aliases): ... here. Call it.
6662 (find_func_aliases_for_call): Likewise.
6663
6664 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6665
6666 * internal-fn.h (internal_fn_name_array): Declare.
6667 (internal_fn_flags_array): Likewise.
6668
6669 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6670
6671 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
6672 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
6673 Move from sse.md.
6674 (ssemodefsuffix): Remove.
6675 (ssevecmodesuffix): New mode attribute.
6676 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
6677 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
6678 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
6679 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
6680 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
6681 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
6682 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
6683 ssemodesuffix mode attribute.
6684 (float splitters): Use ssevecmodesuffix mode attribute.
6685 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
6686 (sseinsmode): Rename from avxvecmode.
6687 (avxsizesuffix): Rename from avxmodesuffix.
6688 (sseintvecmode): Rename from avxpermvecmode.
6689 (ssedoublevecmode): Rename from ssedoublesizemode.
6690 (ssehalfvecmode): Rename from avxhalfvecmode.
6691 (ssescalarmode): Rename from avxscalarmode.
6692 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
6693 templates for ssemodesuffix mode attribute.
6694 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
6695 mode attribute.
6696
6697 Adjust RTX patterns globally for renamed mode attributes.
6698
6699 2011-04-27 Jan Hubcika <jh@suse.cz>
6700
6701 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
6702 * ipa-inline-analysis.c: Include alloc-pool.h.
6703 (edge_predicate_pool): New.
6704 (trye_predicate_p): New function
6705 (false_predicate_p): New function.
6706 (add_clause): Sanity check that false clauses are "optimized";
6707 never add clauses to predicate that is already known to be false.
6708 (and_predicate): Use flase_predicate_p.
6709 (evaulate_predicate): Rename to ...
6710 (evaluate_predicate): ... this one; update all callers; assert
6711 that false is not listed among possible truths.
6712 (dump_predicate): Use true_predicate_p.
6713 (account_size_time): Use false_predicate_p.
6714 (evaulate_conditions_for_edge): Rename to ...
6715 (evaluate_conditions_for_edge) ... this one.
6716 (edge_set_predicate): New function.
6717 (inline_edge_duplication_hook): Duplicate edge predicates.
6718 (inline_edge_removal_hook): Free edge predicates.
6719 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
6720 (dump_inline_summary): Update.
6721 (estimate_function_body_sizes): Set edge predicates.
6722 (estimate_calls_size_and_time): Handle predicates.
6723 (estimate_callee_size_and_time): Update.
6724 (remap_predicate): Add toplev_predicate; update comment.
6725 (remap_edge_predicates): New function.
6726 (inline_merge_summary): Compute toplev predicate; update.
6727 (read_predicate): New function.
6728 (read_inline_edge_summary): Use it.
6729 (inline_read_section): Likewise.
6730 (write_predicate): New function.
6731 (write_inline_edge_summary): Use it.
6732 (inline_write_summary): Likewise.
6733 (inline_free_summary): Free alloc pool and edge summary vec.
6734
6735 2011-04-27 Richard Guenther <rguenther@suse.de>
6736
6737 * tree-ssa-structalias.c (changed_count): Remove.
6738 (changed): Use a bitmap.
6739 (unify_nodes): Adjust.
6740 (do_sd_constraint): Likewise.
6741 (do_ds_constraint): Likewise.
6742 (do_complex_constraint): Likewise.
6743 (solve_graph): Likewise.
6744
6745 2011-04-27 Jan Hubicka <jh@suse.cz>
6746
6747 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
6748
6749 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6750
6751 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
6752 (avx_vperm2f128_*_operand): Ditto.
6753 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
6754 Use avx_vpermilp_parallel in insn condition.
6755 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
6756 Use avx_vperm2f128_parallel in insn condition.
6757
6758 2011-04-27 Richard Guenther <rguenther@suse.de>
6759
6760 * Makefile.in (tree-ssa-structalias.o): Remove
6761 gt-tree-ssa-structalias.h dependency.
6762 (GTFILES): Remove tree-ssa-structalias.c.
6763 * tree.c (allocate_decl_uid): New function.
6764 (make_node_stat): Use it.
6765 (copy_node_stat): Likewise.
6766 * tree.h (allocate_decl_uid): Declare.
6767 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
6768 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
6769 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
6770 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
6771 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
6772 (struct heapvar_map): Likewise.
6773 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
6774 heapvar_insert): Likewise.
6775 (make_heapvar_for): Rename to ...
6776 (make_heapvar): ... this. Simplify.
6777 (fake_var_decl_obstack): New global var.
6778 (build_fake_var_decl): New function.
6779 (make_constraint_from_heapvar): Adjust.
6780 (handle_lhs_call): Likewise.
6781 (create_function_info_for): Likewise.
6782 (intra_create_variable_infos): Likewise.
6783 (init_alias_vars): Allocate fake_var_decl_obstack.
6784 (init_alias_heapvars, delete_alias_heapvars): Remove.
6785 (compute_points_to_sets): Do not call init_alias_heapvars.
6786 (ipa_pta_execute): Likewise.
6787 (delete_points_to_sets): Free fake_var_decl_obstack.
6788
6789 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6790
6791 * config/spu/divmovti4.c (union qword_UTItype): New data type.
6792 (si_from_UTItype, si_to_UTItype): New functions.
6793 (__udivmodti4): Use them to implement type-punning.
6794 * config/spu/multi3.c (union qword_TItype): New data type.
6795 (si_from_TItype, si_to_TItype): New functions.
6796 (__multi3): Use them to implement type-punning.
6797
6798 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6799
6800 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
6801
6802 2011-04-27 Jan Hubicka <jh@suse.cz>
6803
6804 * ipa-prop.c (function_insertion_hook_holder): New holder.
6805 (ipa_add_new_function): New function.
6806 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
6807 Register/deregister holder.
6808
6809 2011-04-27 Richard Guenther <rguenther@suse.de>
6810
6811 PR tree-optimization/48772
6812 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
6813
6814 2011-04-27 Richard Guenther <rguenther@suse.de>
6815
6816 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
6817 TARGET_MEM_REF handling.
6818
6819 2011-04-27 Nick Clifton <nickc@redhat.com>
6820
6821 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
6822 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
6823 (REG_CLASS_NAMES): Likewise.
6824 (REG_CLASS_CONTENTS): Likewise.
6825 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6826 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6827 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
6828 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
6829 (EVEN_REGS): New macro. Alias for QUAD_REGS.
6830 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
6831 duplicate register classes.
6832 (frv_class_likely_spilled_p): Likewise.
6833 (frv_register_move_cost): Likewise.
6834
6835 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
6836 end of the regno_reg_class array.
6837
6838 2011-04-27 Jakub Jelinek <jakub@redhat.com>
6839
6840 PR c/48742
6841 * c-typeck.c (build_binary_op): Don't wrap arguments if
6842 int_operands is true.
6843
6844 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
6845
6846 PR target/48767
6847 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
6848 targetm.calls.must_pass_in_stack for void type.
6849
6850 2011-04-26 Jan Hubicka <jh@suse.cz>
6851
6852 * cgraphbuild.c (build_cgraph_edges): Update call
6853 of cgraph_create_edge and cgraph_create_indirect_edge.
6854 * cgraph.c (cgraph_create_edge_including_clones,
6855 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
6856 cgraph_update_edges_for_call_stmt_node): Do not take nest
6857 argument; do not initialize call_stmt_size/time.
6858 (dump_cgraph_node): Do not dump nest.
6859 (cgraph_clone_edge): Do not take loop_nest argument;
6860 do not propagate it; do not clone call_stmt_size/time.
6861 (cgraph_clone_node): Likewise.
6862 (cgraph_create_virtual_clone): Update.
6863 * cgraph.h (struct cgraph_edge): Remove
6864 call_stmt_size/call_stmt_time/loop_nest.
6865 (cgraph_create_edge, cgraph_create_indirect_edge,
6866 cgraph_create_edge_including_clones, cgraph_clone_node): Update
6867 prototype.
6868 * tree-emutls.c (gen_emutls_addr): Update.
6869 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
6870 loop_nest; handle indirect calls, too.
6871 (clone_inlined_nodes): Do not care about updating inline summaries.
6872 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
6873 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
6874 stream call_stmt_size/call_stmt_time/loop_nest.
6875 * ipa-inline.c (edge_badness): Update.
6876 (ipa_inline): dump summaries after inlining.
6877 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
6878 New.
6879 (inline_edge_summary): New function.
6880 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
6881 (inline_edge_removal_hook): Handle edge summaries.
6882 (inline_edge_duplication_hook): New hook.
6883 (inline_summary_alloc): Alloc hooks.
6884 (initialize_growth_caches): Do not register removal hooks.
6885 (free_growth_caches); Do not free removal hook.
6886 (dump_inline_edge_summary): New function.
6887 (dump_inline_summary): Use it.
6888 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
6889 (inline_update_callee_summaries): New function.
6890 (inline_merge_summary): Use it.
6891 (do_estimate_edge_time, do_estimate_edge_growth): Update.
6892 (read_inline_edge_summary): New function.
6893 (inline_read_section): Use it.
6894 (write_inline_edge_summary): New function.
6895 (inline_write_summary): Use it.
6896 (inline_free_summary): Free edge new holders.
6897 * tree-inline.c (copy_bb): Update.
6898
6899 2011-04-26 Jason Merrill <jason@redhat.com>
6900
6901 * tree-eh.c (lower_try_finally_switch): Create the label along with
6902 the CASE_LABEL_EXPR.
6903
6904 2011-04-26 David S. Miller <davem@davemloft.net>
6905 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6906
6907 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
6908 * configure: Regenerate.
6909
6910 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6911
6912 PR target/48258
6913 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
6914 reduction.
6915 (VEC_reduc): New code iterator and splitters for vector reduction.
6916 (VEC_reduc_name): Ditto.
6917 (VEC_reduc_rtx): Ditto.
6918 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
6919 (reduc_<VEC_reduc_name>_v4sf): Ditto.
6920
6921 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6922 support for extracting SF on VSX.
6923
6924 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
6925 generating xscvspdp.
6926 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
6927 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
6928 double add, minimum, maximum vector reduction.
6929 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
6930 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
6931 optimize double vector reduction.
6932 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
6933
6934 2011-04-26 Joseph Myers <joseph@codesourcery.com>
6935
6936 * config/fr30/fr30.h (inhibit_libc): Don't define.
6937 * config/m32r/m32r-protos.h: Correct comment.
6938 * config/v850/v850.h (GHS_default_section_names,
6939 GHS_current_section_names): Use tree, not union tree_node *.
6940
6941 2011-04-26 Xinliang David Li <davidxl@google.com>
6942
6943 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
6944 * c-family/c-opts.c (c_common_handle_option): Set
6945 warn_maybe_uninitialized.
6946 * opts.c (common_handle_option): Ditto.
6947 * common.opt: New option.
6948 * tree-ssa.c (warn_uninit): Add one more parameter.
6949 (warn_uninitialized_var): Pass warning code.
6950 * tree-flow.h: Interface change.
6951
6952 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6953
6954 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
6955 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
6956 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
6957
6958 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6959
6960 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
6961 * config/mips/mips.opt (mmips-tfile): Remove.
6962
6963 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
6964 mips-tdump reference to ...
6965 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
6966 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
6967 reference by Tru64 UNIX.
6968
6969 2011-04-26 Jakub Jelinek <jakub@redhat.com>
6970
6971 PR debug/48768
6972 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
6973 is error_mark_node, set value to NULL.
6974
6975 PR tree-optimization/48734
6976 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
6977 if return value from maybe_fold_*_comparsions isn't something
6978 the code is prepared to handle.
6979
6980 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
6981
6982 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
6983 mode check.
6984 (ext_QIreg_nomode_operands): Remove.
6985 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
6986 (*andsi_1): Ditto.
6987 (*andhi_1): Ditto.
6988
6989 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
6990
6991 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
6992
6993 2011-04-26 Richard Guenther <rguenther@suse.de>
6994
6995 * c-typeck.c (build_unary_op): Do not expand array-refs via
6996 pointer arithmetic. Only adjust qualifiers for function types.
6997
6998 2011-04-26 Richard Guenther <rguenther@suse.de>
6999
7000 PR middle-end/48694
7001 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7002 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
7003 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
7004 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
7005
7006 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7007
7008 * doc/extend.texi: Document __underlying_type.
7009
7010 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
7011
7012 * config/rs6000/titan.md (automata_option "progress"): Remove.
7013
7014 2011-04-25 Jeff Law <law@redhat.com>
7015
7016 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7017
7018 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7019
7020 * system.h (ENUM_BITFIELD): Remove.
7021
7022 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
7023 Eric Botcazou <ebotcazou@adacore.com>
7024
7025 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7026 for STORE_FLAG_VALUE==-1 case.
7027
7028 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
7029
7030 PR target/43804
7031 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7032 LEGITIMATE_PIC_OPERAND_P.
7033
7034 2011-04-24 Jan Hubicka <jh@suse.cz>
7035
7036 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7037 WPA hack.
7038 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7039 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7040 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
7041 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7042 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7043 Sanity check predicate length.
7044 (remap_predicate): Likewise; sanity check jump functions.
7045 (inline_read_section, inline_write_summary): Sanity check
7046 predicate length.
7047
7048 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7049
7050 PR other/48748
7051 * doc/extend.texi (Type Traits): Document __is_standard_layout,
7052 __is_literal_type, and __is_trivial; update throughout about
7053 possibly cv-qualified void types.
7054
7055 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
7056
7057 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7058 testsuite and make it version agnostic.
7059
7060 2011-04-22 Jan Hubicka <jh@suse.cz>
7061
7062 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7063
7064 2011-04-23 Jakub Jelinek <jakub@redhat.com>
7065
7066 PR c/48685
7067 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7068 to VOID_TYPE even around MODIFY_EXPR.
7069
7070 2011-04-22 Mike Stump <mikestump@comcast.net>
7071
7072 * gensupport.c (read_md_rtx): Fix typo in comment.
7073 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7074 comment.
7075
7076 2011-04-22 Jan Hubicka <jh@suse.cz>
7077
7078 * gengtype.c (open_base_files): Add ipa-inline.h include.
7079 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7080 ipa-prop.c; update all uses.
7081 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7082 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7083 merge summary of inlined function into former caller.
7084 * ipa-inline.c (max_benefit): Remove.
7085 (edge_badness): Compensate for removal of benefits.
7086 (update_caller_keys): Use
7087 reset_node_growth_cache/reset_edge_growth_cache.
7088 (update_callee_keys): Likewise.
7089 (update_all_callee_keys): Likewise.
7090 (inline_small_functions): Do not collect max_benefit; do not reset
7091 estimated_growth; call free_growth_caches and initialize_growth_caches.
7092 * ipa-inline.h (struct condition, type clause_t, struct predicate,
7093 struct size_time_entry): New structures.
7094 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7095 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7096 and estimated_growth.
7097 (edge_growth_cache_entry): New structure.
7098 (node_growth_cache, edge_growth_cache): New global vars.
7099 (estimate_growth): Turn into inline.
7100 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7101 initialize_growth_caches, free_growth_caches): Declare.
7102 (estimate_edge_growth): Rewrite.
7103 (estimate_edge_time): Implement as inline cache lookup.
7104 (reset_node_growth_cache, reset_edge_growth_cache): New inline
7105 functions.
7106 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7107 (NUM_CONDITIONS): New constant.
7108 (predicate_conditions): New enum.
7109 (IS_NOT_CONSTANT): New constant.
7110 (edge_removal_hook_holder): New var.
7111 (node_growth_cache, edge_growth_cache): New global vars.
7112 (true_predicate, single_cond_predicate, false_predicate,
7113 not_inlined_predicate, add_condition, add_clause, and_predicates,
7114 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7115 dump_clause, dump_predicate, account_size_time,
7116 evaulate_conditions_for_edge): New functions.
7117 (inline_summary_alloc): Move to heap.
7118 (inline_node_removal_hook): Clear condition and entry vectors.
7119 (inline_edge_removal_hook): New function.
7120 (initialize_growth_caches, free_growth_caches): New function.
7121 (dump_inline_summary): Update.
7122 (edge_execution_predicate): New function.
7123 (will_be_nonconstant_predicate): New function.
7124 (estimate_function_body_sizes): Compute BB and constantness predicates.
7125 (compute_inline_parameters): Do not clear estimated_growth.
7126 (estimate_edge_size_and_time): New function.
7127 (estimate_calls_size_and_time): New function.
7128 (estimate_callee_size_and_time): New function.
7129 (remap_predicate): New function.
7130 (inline_merge_summary): New function.
7131 (do_estimate_edge_time): New function based on...
7132 (estimate_edge_time): ... this one.
7133 (do_estimate_edge_growth): New function.
7134 (do_estimate_growth): New function based on....
7135 (estimate_growth): ... this one.
7136 (inline_analyze_function): Analyze after deciding on jump functions.
7137 (inline_read_section): New function.
7138 (inline_read_summary): Use it.
7139 (inline_write_summary): Write all the new data.
7140 * ipa-prop.c (ipa_get_param_decl_index): Export.
7141 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
7142 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7143 Declare.
7144 (ipa_get_lattice): Move here from ipa-cp.c
7145 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7146 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7147 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7148 cgraph_edge_inlinable_p): Remove.
7149 * cgraphunit.c: Include ipainline.h
7150 (cgraph_process_new_functions): Update call of
7151 compute_inline_parameters.
7152
7153 2011-04-22 Richard Guenther <rguenther@suse.de>
7154
7155 * tree.c (build_int_cst): Properly create canonicalized integer
7156 constants.
7157 (build_int_cst_type): Remove scary comments.
7158
7159 2011-04-22 Xinliang David Li <davidxl@google.com>
7160
7161 * toplev.c (process_options): Enable -Werror=coverage-mismatch
7162 by default when -Wno-error is not specified.
7163 * opts-global.c (decode_options): Remove call to
7164 control_warning_options.
7165
7166 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7167
7168 PR tree-optimization/48717
7169 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7170 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7171
7172 2011-04-22 Joseph Myers <joseph@codesourcery.com>
7173
7174 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
7175 definition where used.
7176
7177 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7178
7179 PR c/48716
7180 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7181 TREE_STATIC variables declared inside of some OpenMP construct.
7182
7183 2011-04-22 Martin Jambor <mjambor@suse.cz>
7184
7185 PR middle-end/48585
7186 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
7187
7188 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
7189
7190 PR c/36750
7191 * c-typeck.c (pop_init_level): Do not warn about initializing
7192 with ` = {0}'.
7193
7194 2011-04-22 Alan Modra <amodra@gmail.com>
7195
7196 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7197 when returning call_cookie.
7198 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7199 pointers, to functions with no more vector args than the current
7200 function, and some non-local calls for ABI_V4.
7201 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7202 sibcall_nonlocal_aix64): Combine to ..
7203 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
7204 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7205 (sibcall_value_nonlocal_aix<mode>): ..likewise.
7206 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7207 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
7208 operand.
7209 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7210 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7211 sibcall_value_symbolic_64): Delete.
7212
7213 2011-04-21 Xinliang David Li <davidxl@google.com>
7214
7215 * cgraph.h: Remove pid.
7216 * cgraph.c: Remove pid.
7217 * value-prof.c (init_node_map): New function.
7218 (del_node_map): New function.
7219 (find_func_by_funcdef_no): New function.
7220 (gimple_ic_transform): Call new function.
7221 * cgraphunit.c (cgraph_finalize_function): Remove pid.
7222 * function.c (get_last_funcdef_no): New function.
7223 * function.h (get_last_funcdef_no): New function.
7224 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7225 to libgcov function.
7226 (tree-profiling): Call node map init and delete function.
7227
7228 2011-04-21 Ian Lance Taylor <iant@google.com>
7229
7230 * godump.c (go_format_type): Use exported Go name for anonymous
7231 field name.
7232
7233 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7234
7235 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7236 Call builtin_function_type_list instead of builtin_function_type.
7237 (UNARY, BINARY, TRINARY, QUAD): Likewise.
7238
7239 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7240
7241 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
7242 build_function_type_list instead of build_function_type.
7243 Delete variable `endlink'.
7244
7245 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7246
7247 * config/s390/s390.c (s390_init_builtins): Call
7248 build_function_type_list instead of build_function_type.
7249
7250 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7251
7252 * config/ia64/ia64.c (ia64_init_builtins): Call
7253 build_function_type_list instead of builtin_function_type.
7254
7255 2011-04-21 Easwaran Raman <eraman@google.com>
7256
7257 * cfgexpand.c (stack_var): Remove OFFSET...
7258 (add_stack_var): ...and its reference here...
7259 (expand_stack_vars): ...and here.
7260 (stack_var_cmp): Sort by descending order of size.
7261 (partition_stack_vars): Change heuristic.
7262 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
7263 (dump_stack_var_partition): Add newline after each partition.
7264
7265 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
7266 Jeff Law <law@redhat.com>
7267
7268 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
7269 * gengtype.c (matching_file_name_substitute): Likewise.
7270
7271 2011-04-21 Richard Guenther <rguenther@suse.de>
7272
7273 PR lto/48703
7274 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
7275
7276 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
7277
7278 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7279
7280 2011-04-21 Richard Guenther <rguenther@suse.de>
7281
7282 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
7283 file name.
7284
7285 2011-04-21 Richard Guenther <rguenther@suse.de>
7286
7287 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7288 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
7289 Use DECL_P, not SSA_VAR_P.
7290 (ptr_derefs_may_alias_p): Likewise.
7291 (ptr_deref_may_alias_ref_p_1): Likewise.
7292 (decl_refs_may_alias_p): Likewise.
7293 (refs_may_alias_p_1): Likewise.
7294 (ref_maybe_used_by_call_p_1): Likewise.
7295 (call_may_clobber_ref_p_1): Likewise.
7296 (indirect_ref_may_alias_decl_p): Assume indirect refrences
7297 are either MEM_REF or TARGET_MEM_REF.
7298 (indirect_refs_may_alias_p): Likewise.
7299 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
7300 for MEM_EXPR of indirect calls.
7301
7302 2011-04-21 Tristan Gingold <gingold@adacore.com>
7303
7304 * vmsdbgout.c (write_srccorr): Compute file length from the string.
7305 (dst_file_info_struct): Remove flen field.
7306 (lookup_filename): Remove code that set flen field.
7307
7308 2011-04-21 Tristan Gingold <gingold@adacore.com>
7309
7310 * config/ia64/ia64.c (ia64_start_function): Add a guard.
7311
7312 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
7313
7314 PR target/48708
7315 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
7316 vec_extract and vec_concat for non-SSE4_1 targets.
7317
7318 2011-04-21 Richard Guenther <rguenther@suse.de>
7319
7320 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
7321 return statements.
7322
7323 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7324
7325 * config/i386/cygming.h (union tree_node, TREE): Don't define or
7326 undefine.
7327 (FILE): Don't undefine.
7328
7329 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7330
7331 * config/alpha/alpha.c (struct machine_function): Use rtx, not
7332 struct rtx_def *.
7333 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
7334 struct rtx_def *.
7335 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
7336 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
7337 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
7338 rtx_def *.
7339 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
7340 definitions where used.
7341 * config/microblaze/microblaze.h (struct microblaze_args): Use
7342 rtx, not struct rtx_def *.
7343 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
7344 rtx_def *.
7345 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
7346 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
7347 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
7348 not struct rtx_def *.
7349 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
7350 struct rtx_def *.
7351 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
7352 rtx_def *.
7353 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
7354
7355 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7356
7357 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
7358 operand_equal_p to compare DR_BASE_ADDRESSes.
7359 (vect_check_interleaving): Likewise.
7360
7361 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7362
7363 PR target/46329
7364 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
7365 for all Neon struct constants.
7366
7367 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7368
7369 * target.def (legitimate_constant_p): New hook.
7370 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
7371 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
7372 * doc/tm.texi: Regenerate.
7373 * hooks.h (hook_bool_mode_rtx_true): Declare.
7374 * hooks.c (hook_bool_mode_rtx_true): Define.
7375 * system.h (LEGITIMATE_CONSTANT_P): Poison.
7376 * calls.c (precompute_register_parameters): Replace uses of
7377 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
7378 (emit_library_call_value_1): Likewise.
7379 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
7380 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
7381 * ira-costs.c (scan_one_insn): Likewise.
7382 * recog.c (general_operand, immediate_operand): Likewise.
7383 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
7384 * reload1.c (init_eliminable_invariants): Likewise.
7385
7386 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
7387 mode argument.
7388 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
7389 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
7390 argument.
7391 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7392 * config/alpha/predicates.md (input_operand): Update call to
7393 alpha_legitimate_constant_p.
7394
7395 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
7396 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
7397 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
7398 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7399 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
7400 (arm_legitimate_constant_p): New functions.
7401 (arm_cannot_force_const_mem): Make static.
7402
7403 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
7404
7405 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
7406 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
7407 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
7408 instead of bfin_legitimate_constant_p.
7409 (bfin_legitimate_constant_p): Make static. Add a mode argument.
7410 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7411
7412 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
7413
7414 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
7415
7416 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
7417 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
7418 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7419 (frv_legitimate_constant_p): Make static. Add a mode argument.
7420
7421 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
7422 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
7423 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
7424
7425 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
7426 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
7427 * config/i386/i386.c (legitimate_constant_p): Rename to...
7428 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
7429 argument.
7430 (ix86_cannot_force_const_mem): Update accordingly.
7431 (ix86_legitimate_address_p): Likewise.
7432 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7433 * config/i386/i386.md: Update commentary.
7434
7435 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
7436 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
7437 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7438 (ia64_legitimate_constant_p): Make static. Add a mode argument.
7439
7440 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
7441
7442 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
7443 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
7444 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7445 (lm32_legitimate_constant_p): Make static. Add a mode argument.
7446
7447 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
7448 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
7449 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
7450
7451 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
7452 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7453 (m32r_legitimate_constant_p): New function.
7454
7455 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
7456 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
7457 LEGITIMATE_CONSTANT_P.
7458 (LEGITIMATE_CONSTANT_P): Delete.
7459 * config/m68k/m68k.c (m68k_expand_prologue): Call
7460 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
7461 (m68k_legitimate_constant_p): New function.
7462 * config/m68k/m68k.md: Update comments.
7463
7464 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
7465 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7466 (mcore_legitimate_constant_p): New function.
7467
7468 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
7469 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
7470 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
7471 Add a mode argument.
7472 (mep_legitimate_address): Update accordingly.
7473 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7474
7475 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
7476 Delete.
7477 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
7478 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
7479 static. Check OP's mode for VOIDmode.
7480 (microblaze_legitimate_constant_p): New function.
7481 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7482
7483 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
7484 * config/mips/mips.c (mips_legitimate_constant_p): New function.
7485 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
7486 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7487 * config/mips/predicates.md: Update comments.
7488
7489 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
7490 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
7491 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7492 (mmix_legitimate_constant_p): Make static, return a bool, and take
7493 a mode argument.
7494 (mmix_print_operand_address): Update accordingly.
7495
7496 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
7497 Delete.
7498 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
7499 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
7500 static. Add a mode argument.
7501 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7502
7503 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
7504
7505 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
7506 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7507 (pa_legitimate_constant_p): New function.
7508
7509 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
7510
7511 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
7512 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7513 (pdp11_legitimate_constant_p): New function.
7514
7515 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
7516 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7517 (rs6000_legitimate_constant_p): New function.
7518
7519 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
7520 (rx_legitimate_constant_p): ...this.
7521 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
7522 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
7523 (rx_legitimate_constant_p): ...this.
7524 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7525 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
7526
7527 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
7528 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
7529 * config/s390/s390.c (legitimate_constant_p): Rename to...
7530 (s390_legitimate_constant_p): ...this. Make static, return a bool,
7531 and add a mode argument.
7532 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7533
7534 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
7535
7536 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
7537 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7538 (sh_legitimate_constant_p): New function.
7539
7540 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
7541 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
7542 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7543 (legitimate_constant_p): Rename to...
7544 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
7545 argument.
7546 (constant_address_p): Update accordingly.
7547
7548 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
7549 argument and return a bool.
7550 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
7551 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7552 (spu_legitimate_constant_p): Add a mode argument and return a bool.
7553 (spu_rtx_costs): Update accordingly.
7554 * config/spu/predicates.md (vec_imm_operand): Likewise.
7555
7556 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
7557
7558 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
7559 * config/v850/v850.c (v850_legitimate_constant_p): New function.
7560 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7561
7562 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
7563 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
7564 * config/vax/vax.c (legitimate_constant_p): Likewise.
7565
7566 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
7567 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7568 (xtensa_legitimate_constant_p): New function.
7569
7570 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7571
7572 * target.def (cannot_force_const_mem): Add a mode argument.
7573 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
7574 * doc/tm.texi: Regenerate.
7575 * hooks.h (hook_bool_mode_rtx_false): Declare.
7576 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
7577 (hook_bool_mode_const_rtx_true): Likewise.
7578 (hook_bool_mode_rtx_false): New function.
7579 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
7580 to be non-VOID. Update call to cannot_force_const_mem.
7581 (find_reloads): Update accordingly.
7582 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
7583 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
7584 argument.
7585 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
7586 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
7587 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
7588 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
7589 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
7590 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
7591 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
7592 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7593 (m68k_cannot_force_const_mem): ...this new function.
7594 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
7595 argument.
7596 (mips_const_insns, mips_legitimize_const_move): Update calls.
7597 (mips_secondary_reload_class): Likewise.
7598 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7599 (pa_cannot_force_const_mem): ...this new function.
7600 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
7601 (rs6000_cannot_force_const_mem): ...this new function.
7602 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
7603 argument.
7604 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
7605 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
7606 to...
7607 (xtensa_cannot_force_const_mem): ...this new function.
7608
7609 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7610
7611 * config/mips/mips.c (mips16_build_function_stub): Call
7612 build_function_type_list instead of build_function_type.
7613 (mips16_build_call_stub): Likewise.
7614
7615 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7616
7617 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
7618 instead of build_function_type.
7619
7620 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7621
7622 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
7623 instead of build_function_type.
7624
7625 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
7626
7627 PR target/48678
7628 * config/i386/i386.md (insv): Change operand 0 constraint to
7629 "register_operand". Change operand 1 and 2 constraint to
7630 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
7631 * config/i386/sse.md (sse4_1_pinsrb): Export.
7632 (sse2_pinsrw): Ditto.
7633 (sse4_1_pinsrd): Ditto.
7634 (sse4_1_pinsrq): Ditto.
7635 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
7636 * config/i386/i386.c (ix86_expand_pinsr): New.
7637
7638 2011-04-20 Easwaran Raman <eraman@google.com>
7639
7640 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
7641 containing union type only with -fstrict-aliasing.
7642
7643 2011-04-20 Jim Meyering <meyering@redhat.com>
7644
7645 Remove useless if-before-free tests.
7646 * calls.c (expand_call, save_area): Likewise.
7647 * cfgcleanup.c (try_forward_edges): Likewise.
7648 * collect2.c (collect_execute): Likewise.
7649 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
7650 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7651 * coverage.c (coverage_checksum_string): Likewise.
7652 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
7653 * cselib.c (cselib_init): Likewise.
7654 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
7655 (df_set_clean_cfg): Likewise.
7656 * function.c (free_after_compilation): Likewise.
7657 * gcc.c (do_spec_1, main): Likewise.
7658 * gcov.c (create_file_names): Likewise.
7659 * gensupport.c (identify_predicable_attribute): Likewise.
7660 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
7661 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
7662 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
7663 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
7664 * ipa-pure-const.c (local_pure_const): Likewise.
7665 * ipa-reference.c (propagate): Likewise.
7666 * ira-costs.c (free_ira_costs): Likewise.
7667 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
7668 * matrix-reorg.c (mat_free): Likewise.
7669 * prefix.c (get_key_value): Likewise.
7670 * profile.c (compute_value_histograms): Likewise.
7671 * reload1.c (free_reg_equiv): Likewise.
7672 * sched-deps.c (free_deps): Likewise.
7673 * sel-sched-ir.c (fence_clear): Likewise.
7674 * sese.c (set_rename, if_region_set_false_region): Likewise.
7675 * tree-data-ref.c (free_rdg): Likewise.
7676 * tree-eh.c (lower_try_finally): Likewise.
7677 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
7678 * tree-ssa-live.c (delete_var_map): Likewise.
7679 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
7680 * tree-ssa-pre.c (phi_trans_add): Likewise.
7681
7682 2011-04-20 Jakub Jelinek <jakub@redhat.com>
7683
7684 PR tree-optimization/48611
7685 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
7686 beyond ERT_MUST_NOT_THROW region.
7687
7688 2011-04-20 Catherine Moore <clm@codesourcery.com>
7689
7690 * config/mips/mips.opt (mfix-24k): New.
7691 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
7692 * config/mips/mips.md (length): Increase by 4 for stores if
7693 fixing 24K errata.
7694 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
7695 all noreorder if fixing 24K errata.
7696 * doc/invoke.texi: Document mfix-24k.
7697
7698 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
7699
7700 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
7701 quad-word modes, reduce to 9-bit index range when above 1016 limit.
7702
7703 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7704
7705 * config/arm/arm.c (arm_gen_constant): Move movw support ....
7706 (const_ok_for_op): ... to here.
7707
7708 2011-04-20 Kai Tietz <ktietz@redhat.com>
7709
7710 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
7711 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
7712
7713 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7714
7715 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
7716
7717 2011-04-20 Richard Guenther <rguenther@suse.de>
7718
7719 PR tree-optimization/47892
7720 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
7721 are if-convertible.
7722
7723 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
7724
7725 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
7726
7727 2011-04-20 Tristan Gingold <gingold@adacore.com>
7728
7729 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
7730
7731 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
7732
7733 PR target/18145
7734
7735 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
7736 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
7737 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7738 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
7739 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
7740
7741 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
7742 New prototype.
7743
7744 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
7745 (avr_asm_named_section, avr_asm_output_aligned_common,
7746 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
7747 New functions to update...
7748 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
7749 (avr_asm_init_sections): Overwrite section callbacks for
7750 data_section, bss_section.
7751 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
7752 from here to...
7753 (avr_file_end): ...here.
7754
7755 2011-04-20 Richard Guenther <rguenther@suse.de>
7756
7757 PR middle-end/48695
7758 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
7759 objects and types here. Adjust for their offset before comparing.
7760
7761 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7762
7763 * tree-vect-stmts.c (vectorizable_store): Only chain one related
7764 statement per copy.
7765
7766 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7767
7768 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
7769 (GIMPLE_H): Include $(INTERNAL_FN_H).
7770 (OBJS-common): Add internal-fn.o.
7771 (internal-fn.o): New rule.
7772 * internal-fn.def: New file.
7773 * internal-fn.h: Likewise.
7774 * internal-fn.c: Likewise.
7775 * gimple.h: Include internal-fn.h.
7776 (GF_CALL_INTERNAL): New gf_mask.
7777 (gimple_statement_call): Put fntype into a union with a new
7778 internal_fn field.
7779 (gimple_build_call_internal): Declare.
7780 (gimple_build_call_internal_vec): Likewise.
7781 (gimple_call_same_target_p): Likewise.
7782 (gimple_call_internal_p): New function.
7783 (gimple_call_internal_fn): Likewise.
7784 (gimple_call_fntype): Return null for internal calls.
7785 (gimple_call_set_fntype): Assert that the function is not internal.
7786 (gimple_call_set_fn): Likewise.
7787 (gimple_call_set_fndecl): Likewise.
7788 (gimple_call_set_internal_fn): New function.
7789 (gimple_call_addr_fndecl): Handle null functions.
7790 (gimple_call_return_type): Likewise null types.
7791 * gimple.c (gimple_build_call_internal_1): New function.
7792 (gimple_build_call_internal): Likewise.
7793 (gimple_build_call_internal_vec): Likewise.
7794 (gimple_call_same_target_p): Likewise.
7795 (gimple_call_flags): Handle calls to internal functions.
7796 (gimple_call_fnspec): New function.
7797 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
7798 (gimple_has_side_effects): Handle null functions.
7799 (gimple_rhs_has_side_effects): Likewise.
7800 (gimple_call_copy_skip_args): Handle calls to internal functions.
7801 * cfgexpand.c (expand_call_stmt): Likewise.
7802 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
7803 * gimple-fold.c (gimple_fold_call): Handle null functions.
7804 (gimple_fold_stmt_to_constant_1): Don't fold
7805 calls to internal functions.
7806 * gimple-low.c (gimple_check_call_args): Handle calls to internal
7807 functions.
7808 * gimple-pretty-print.c (dump_gimple_call): Likewise.
7809 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
7810 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
7811 (do_warn_unused_result): Likewise.
7812 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
7813 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
7814 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
7815 the target of a call.
7816 (initialize_hash_element): Update accordingly.
7817 (hashable_expr_equal_p): Use gimple_call_same_target_p.
7818 (iterative_hash_hashable_expr): Handle calls to internal functions.
7819 (print_expr_hash_elt): Likewise.
7820 * tree-ssa-pre.c (can_value_number_call): Likewise.
7821 (eliminate): Handle null functions.
7822 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
7823 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
7824 (find_func_aliases): Likewise.
7825 * value-prof.c (gimple_ic_transform): Likewise.
7826 (gimple_indirect_call_to_profile): Likewise.
7827 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7828 * lto-streamer-out.c (output_gimple_stmt): Likewise.
7829
7830 2011-04-19 Jan Hubicka <jh@suse.cz>
7831
7832 * ipa-inline-transform.c (save_inline_function_body): Add comments.
7833 * ipa-inline.c (inline_small_functions): Compute summaries first,
7834 populate heap later.
7835
7836 2011-04-19 Jan Hubicka <jh@suse.cz>
7837
7838 * cgraph.h (save_inline_function_body): Remove.
7839 * ipa-inline-transform.c: New file, broke out of...
7840 * ipa-inline.c: ... this one; Update toplevel comment.
7841 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
7842 make global.
7843 (update_noncloned_frequencies): Move to ipa-inline-transform.c
7844 (cgraph_mark_inline_edge): Rename to inline_call; move to
7845 ipa-inline-transform.c.
7846 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
7847 move to ipa-inline-transform.c
7848 (recursive_inlining, inline_small_functions, flatten_function,
7849 ipa_inline, inline_always_inline_functions,
7850 early_inline_small_functions): Update.
7851 (inline_transform): Move to ipa-inline-transform.c.
7852 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
7853 Declare.
7854 * Makefile.in (ipa-inline-transform.o): New file.
7855 * cgraphunit.c (save_inline_function_body): Move to
7856 ipa-inline-transform.c
7857
7858 2011-04-19 DJ Delorie <dj@redhat.com>
7859
7860 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
7861 registers if we already know there aren't any.
7862 (m32c_emit_epilogue): Don't emit a barrier here.
7863 (m32c_emit_eh_epilogue): Likewise.
7864 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
7865 operands at expand time.
7866 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
7867 int" wchar type.
7868 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
7869 duplicates. Provide aliases instead.
7870 * config/m32c/prologue.md (eh_return): Emit a barrier here.
7871 (eh_epilogue): Add a "(return)" here as a hint to other parts of
7872 the compiler.
7873
7874 2011-04-19 Anatoly Sokolov <aesok@post.ru>
7875
7876 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
7877 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
7878 (general_or_i64_p, sparc_register_move_cost): New function.
7879
7880 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7881
7882 * doc/install.texi (Configuration, --enable-threads): Remove mach.
7883 Add lynx, mipssde. Sort table.
7884
7885 2011-04-19 Xinliang David Li <davidxl@google.com>
7886
7887 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
7888 not negative.
7889
7890 2011-04-19 Jakub Jelinek <jakub@redhat.com>
7891
7892 PR target/48678
7893 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
7894 is a SUBREG with non-MODE_INT mode inside of it.
7895
7896 2011-04-19 Martin Jambor <mjambor@suse.cz>
7897
7898 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
7899 also according to actual contants.
7900 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
7901 (gimple_fold_call): Use it.
7902 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
7903
7904 2011-04-19 Martin Jambor <mjambor@suse.cz>
7905
7906 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
7907 non-pointer assignments.
7908
7909 2011-04-19 Martin Jambor <mjambor@suse.cz>
7910
7911 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
7912 account anc_offset and otr_type from the indirect edge info.
7913 * ipa-prop.c (get_ancestor_addr_info): New function.
7914 (compute_complex_ancestor_jump_func): Assignment analysis moved to
7915 get_ancestor_addr_info, call it.
7916 (ipa_note_param_call): Do not initialize information about polymorphic
7917 calls, return the indirect call graph edge. Remove the last
7918 parameter, adjust all callers.
7919 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
7920 parameters. Initialize polymorphic information in the indirect edge.
7921
7922 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7923
7924 PR lto/48148
7925 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
7926 the types if they have different enumeration identifiers.
7927
7928 2011-04-19 Jan Hubicka <jh@suse.cz>
7929
7930 * cgraph.h (cgraph_optimize_for_size_p): Declare.
7931 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
7932 * predict.c (cgraph_optimize_for_size_p): Break out from ...
7933 (optimize_function_for_size_p) ... here.
7934
7935 2011-04-19 Richard Guenther <rguenther@suse.de>
7936
7937 PR lto/48207
7938 * tree.c (free_lang_data): Do not reset the decl-assembler-name
7939 langhook.
7940
7941 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7942
7943 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
7944 if DECL_NO_INLINE_WARNING_P is set on the function.
7945
7946 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
7947
7948 PR fortran/47976
7949 * reload1.c (inc_for_reload): Return void. All callers changed.
7950 (emit_input_reload_insns): Don't try to delete previous output
7951 reloads to a register, or record spill_reg_store for autoincs.
7952
7953 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
7954
7955 * gengtype.h: Updated copyright year.
7956 (struct input_file_st): Add inpisplugin field.
7957 (type_fileloc): New function.
7958 * gengtype.c
7959 (write_typed_struct_alloc_def): Add gcc_assert.
7960 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
7961 (write_typed_alloc_defns): Don't output for plugin files.
7962 (input_file_by_name): Clear inpisplugin field.
7963 (main): Set inpisplugin field for plugin files.
7964
7965 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
7966
7967 * gengtype-state.c (string_eq): New.
7968 (read_state): Use string_eq instead of strcmp when creating the
7969 state_ident_tab.
7970
7971 2011-04-19 Wei Guozhi <carrot@google.com>
7972
7973 PR target/47855
7974 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
7975 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
7976 linkage.
7977 * config/arm/constraints.md (Uu): New constraint.
7978 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
7979
7980 2011-04-19 Tristan Gingold <gingold@adacore.com>
7981
7982 * config.gcc (-*-*-*vms): Added.
7983 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
7984 definitions moved.
7985 * config/vms/vms-ld.c: New file.
7986 * config/vms/vms-ar.c: New file.
7987 * config/vms/t-vmsnative: New file.
7988
7989 2011-04-18 Xinliang David Li <davidxl@google.com>
7990
7991 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
7992
7993 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7994
7995 PR middle-end/48661
7996 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
7997 if TREE_TYPE (v) is non-NULL.
7998
7999 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8000 gimple_get_virt_mehtod_for_binfo.
8001 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8002 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8003 callers.
8004 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8005
8006 2011-04-18 Michael Matz <matz@suse.de>
8007 Steve Ellcey <sje@cup.hp.com>
8008
8009 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8010 use its mode as source mode if it isn't VOIDmode.
8011
8012 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
8013
8014 * doc/passes.texi: Fill crossref nodes.
8015
8016 2011-04-18 Jim Meyering <meyering@redhat.com>
8017
8018 Fix doubled-word typos in comments and strings
8019 * config/alpha/vms-unwind.h: s/for for/for/
8020 * config/arm/unwind-arm.h: Likewise.
8021 * config/microblaze/microblaze.c: Likewise.
8022 * config/sh/constraints.md: s/in in/in/
8023 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8024
8025 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
8026
8027 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8028 (AVX_FLOAT_MODE_P): Ditto.
8029 (AVX128_VEC_FLOAT_MODE_P): Ditto.
8030 (AVX256_VEC_FLOAT_MODE_P): Ditto.
8031 (AVX_VEC_FLOAT_MODE_P): Ditto.
8032 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8033 (UNSPEC_MASKSTORE): Ditto.
8034 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8035 Merge from <sse>_movmsk<ssemodesuffix> and
8036 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
8037 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
8038 iterator.
8039 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8040 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8041 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8042
8043 2011-04-18 Jan Hubicka <jh@suse.cz>
8044
8045 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8046
8047 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8048 (want_inline_function_called_once_p): Break out the logic from
8049 ipa_inline.
8050 (edge_badness): Ensure that profile is not misupdated.
8051 (lookup_recursive_calls): Prioritize by call frequencies.
8052 (inline_small_functions): Move program size estimates here;
8053 actually process whole queue even when unit growth has been
8054 met. (to properly compute inline_failed reasons and for the
8055 case unit size decrease.) Revisit comments on recursive inlining.
8056 (ipa_inline): Remove unit summary code; first inline hot calls
8057 of functions called once, cold calls next.
8058 (order, nnodes): Remove unused variables.
8059 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8060 (GTFILES): Remove ipa-inline.c
8061 * sel-sched.c (fill_insns): Silence uninitialized var warning.
8062
8063 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8064
8065 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8066
8067 2011-04-18 Jie Zhang <jie@codesourcery.com>
8068 Richard Earnshaw <rearnsha@arm.com>
8069
8070 * arm.c (neon_builtin_type_bits): Remove.
8071 (typedef enum neon_builtin_mode): New.
8072 (T_MAX): Don't define.
8073 (typedef enum neon_builtin_datum): Remove bits, codes[],
8074 num_vars and base_fcode. Add mode, code and fcode.
8075 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8076 VAR10): Change accordingly.
8077 (neon_builtin_data[]): Change accordingly
8078 (arm_init_neon_builtins): Change accordingly.
8079 (neon_builtin_compare): Remove.
8080 (locate_neon_builtin_icode): Remove.
8081 (arm_expand_neon_builtin): Change accordingly.
8082
8083 * arm.h (enum arm_builtins): Move to ...
8084 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8085
8086 * arm.c (arm_builtin_decl): Declare.
8087 (TARGET_BUILTIN_DECL): Define.
8088 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8089 (arm_builtin_decls[]): New.
8090 (arm_init_neon_builtins): Store builtin declarations in
8091 arm_builtin_decls[].
8092 (arm_init_tls_builtins): Likewise.
8093 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
8094 (arm_builtin_decl): New.
8095
8096 2011-04-18 Richard Guenther <rguenther@suse.de>
8097
8098 * tree.c (upper_bound_in_type): Build properly canonicalized
8099 INTEGER_CSTs.
8100 (lower_bound_in_type): Likewise.
8101
8102 2011-04-18 Richard Guenther <rguenther@suse.de>
8103
8104 * gimple.h (gimple_call_addr_fndecl): New function.
8105 (gimple_call_fndecl): Use it.
8106 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8107 for direct calls.
8108 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8109 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8110
8111 2011-04-18 Richard Guenther <rguenther@suse.de>
8112
8113 PR middle-end/48650
8114 * tree.c (build_string): STRING_CST is now derived from tree_typed.
8115
8116 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8117
8118 PR lto/48492
8119 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8120 DECL_IN_CONSTANT_POOL without RTL.
8121
8122 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
8123 Ira Rosen <ira.rosen@linaro.org>
8124
8125 PR target/48252
8126 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8127 to match neon_vzip/vuzp/vtrn_internal.
8128 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8129 outputs explicitly dependent on both inputs.
8130 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8131
8132 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8133
8134 PR tree-optimization/48616
8135 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8136 whether the shift is by scalar or vector based on whether all SLP
8137 scalar stmts have the same rhs.
8138
8139 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
8140
8141 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8142 memory operands.
8143
8144 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
8145
8146 PR target/43700
8147 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8148 registers.
8149
8150 2011-04-17 Jan Hubicka <jh@suse.cz>
8151
8152 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
8153 * cgrpahunit.c (cgraph_finalize_function): Do not set
8154 finalized_by_frontend.
8155 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8156 finalized_by_frontend.
8157
8158 2011-04-17 Jan Hubicka <jh@suse.cz>
8159
8160 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8161 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8162 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
8163 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8164 method.
8165 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8166 gimple-fold.c
8167 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8168
8169 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
8170
8171 PR lto/48538
8172 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8173 is non-null before accessing it.
8174 (input_cgraph): Remove trailing spaces.
8175
8176 2011-04-17 Revital Eres <revital.eres@linaro.org>
8177
8178 * params.def (sms-min-sc): New param flag.
8179 * modulo-sched.c (sms_schedule): Use it.
8180 * doc/invoke.texi (sms-min-sc): Document it.
8181
8182 2011-04-17 Jan Hubicka <jh@suse.cz>
8183
8184 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8185 present, also set gimple_call_set_cannot_inline.
8186 * ipa-inline.c: Update toplevel comment.
8187 (MAX_TIME): Remove.
8188 (cgraph_clone_inlined_nodes): Fix linebreaks.
8189 (cgraph_check_inline_limits): Restructure to ...
8190 (caller_growth_limits): ... this one; be more tolerant
8191 on growth in nested inline chains; add explanatory comment;
8192 fix stack accounting thinko introduced by previous patch.
8193 (cgraph_default_inline_p): Remove.
8194 (report_inline_failed_reason): New function.
8195 (can_inline_edge_p): New function.
8196 (can_early_inline_edge_p): New function.
8197 (leaf_node_p): Move upwards in file.
8198 (want_early_inline_function_p): New function.
8199 (want_inline_small_function_p): New function.
8200 (want_inline_self_recursive_call_p): New function.
8201 (cgraph_edge_badness): Rename to ...
8202 (edge_badness) ... this one; fix linebreaks.
8203 (update_edge_key): Update call of edge_baddness; add
8204 detailed dump about queue updates.
8205 (update_caller_keys): Use can_inline_edge_p and
8206 want_inline_small_function_p.
8207 (cgraph_decide_recursive_inlining): Rename to...
8208 (recursive_inlining): Use can_inline_edge_p and
8209 want_inline_self_recursive_call_p; simplify and remove no longer
8210 valid FIXME.
8211 (cgraph_set_inline_failed): Remove.
8212 (add_new_edges_to_heap): Use can_inline_edge_p and
8213 want_inline_small_function_p.
8214 (cgraph_decide_inlining_of_small_functions): Rename to ...
8215 (inline_small_functions): ... this one; cleanup; use
8216 can/want predicates; cleanup debug ouput; work edges till fibheap
8217 is exhausted and do not stop once unit growth is reached; remove
8218 later loop processing remaining edges.
8219 (cgraph_flatten): Rename to ...
8220 (flatten_function): ... this one; use can_inline_edge_p
8221 and can_early_inline_edge_p predicates.
8222 (cgraph_decide_inlining): Rename to ...
8223 (ipa_inline): ... this one; remove unreachable nodes before
8224 inlining functions called once; simplify the pass.
8225 (cgraph_perform_always_inlining): Rename to ...
8226 (inline_always_inline_functions): ... this one; use
8227 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
8228 (cgraph_decide_inlining_incrementally): Rename to ...
8229 (early_inline_small_functions): ... this one; simplify
8230 using new predicates; cleanup; make dumps prettier.
8231 (cgraph_early_inlining): Rename to ...
8232 (early_inliner): newer inline regular functions into always-inlines;
8233 fix updating of call stmt summaries.
8234 (pass_early_inline): Update for new names.
8235 (inline_transform): Fix formating.
8236 (gate_cgraph_decide_inlining): Rename to ...
8237 (pass_ipa_inline): ... this one.
8238 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8239 * ipa-inline-analysis.c (dump_inline_summary): Update.
8240 (compute_inline_parameters): Do not compute disregard_inline_limits;
8241 look for mismatching arguments.
8242 (estimate_growth): Fix handlig of non-trivial self recursion.
8243 (inline_read_summary): Do not read info->disregard_inline_limits.
8244 (inline_write_summary): Do not write info->disregard_inline_limits.
8245 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
8246 and move all checks into can_inline_edge_p predicate; re-enable code
8247 comparing optimization levels.
8248 (expand_call_inline): Do not test inline_forbidden_into_p.
8249 * Makefile.in (ipa-inline.o): Update arguments.
8250
8251 2011-04-17 Revital Eres <revital.eres@linaro.org>
8252
8253 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
8254
8255 2011-04-17 Revital Eres <revital.eres@linaro.org>
8256
8257 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
8258
8259 2011-04-17 Michael Matz <matz@suse.de>
8260
8261 PR tree-optimization/48622
8262 PR lto/48645
8263 * ipa-inline-analysis.c (inline_read_summary): Read size/time
8264 in same order as they're written.
8265
8266 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8267
8268 * config/pa/predicates.md: Reorganize and simplify predicates.
8269 Eliminate duplicate code checks.
8270 (arith_operand): Rename to arith14_operand
8271 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
8272 * config/pa/pa.md: Use renamed operands.
8273 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
8274 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
8275 arith11_operand, adddi3_operand, indexed_memory_operand,
8276 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
8277 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
8278 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
8279 move_dest_operand, move_src_operand, prefetch_cc_operand,
8280 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
8281 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
8282 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
8283 div_operand, int5_operand, movb_comparison_operator,
8284 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
8285 arith_double_operand, ireg_operand, lhs_lshift_operand,
8286 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
8287 integer_store_memory_operand): Likewise.
8288 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
8289 (integer_store_memory_operand, read_only_operand,
8290 function_label_operand, borx_reg_operand,
8291 non_hard_reg_operand): Likewise.
8292 (eq_neq_comparison_operator): Delete unused operator.
8293 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
8294 function_label_operand.
8295 (emit_move_sequence): Likewise.
8296
8297 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8298
8299 * config/i386/sse.md (sseunpackmode): New mode attribute.
8300 (ssepackmode): Ditto.
8301 (vec_pack_trunc_<mode>): Macroize expander from
8302 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
8303 (vec_unpacks_lo_<mode>): Macroize expander from
8304 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8305 (vec_unpacks_hi_<mode>): Macroize expander from
8306 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8307 (vec_unpacku_lo_<mode>): Macroize expander from
8308 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8309 (vec_unpacku_hi_<mode>): Macroize expander from
8310 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8311 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
8312 ix86_expand_sse4_unpack.
8313 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
8314
8315 2011-04-16 Jan Hubicka <jh@suse.cz>
8316
8317 * cgraphbuild.c: Include ipa-inline.h.
8318 (reset_inline_failed): Use initialize_inline_failed.
8319 * cgraph.c: Include ipa-inline.h.
8320 (cgraph_create_node_1): Do not initialize estimated_growth.
8321 (initialize_inline_failed): More to ipa-inline-analysis.c
8322 (dump_cgraph_node): Do not dump inline flags.
8323 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
8324 and disregard_inline_limits flags.
8325 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
8326 time, size, estimated_growth.
8327 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
8328 Update.
8329 * cgraphunit.c (cgraph_decide_is_function_needed): Use
8330 DECL_DISREGARD_INLINE_LIMITS.
8331 (cgraph_analyze_function): Do not initialize
8332 node->local.disregard_inline_limits.
8333 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8334 inlinable, versionable and disregard_inline_limits.
8335 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8336 cgraph_check_inline_limits, cgraph_default_inline_p,
8337 cgraph_edge_badness, update_caller_keys, update_callee_keys,
8338 add_new_edges_to_heap): Update.
8339 (cgraph_decide_inlining_of_small_function): Update; set
8340 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
8341 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
8342 cgraph_decide_inlining_incrementally): Update.
8343 * ipa-inline.h (inline_summary): Add inlinable, versionable,
8344 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
8345 time, size and estimated_growth parameters.
8346 (estimate_edge_growth): Update.
8347 (initialize_inline_failed): Declare.
8348 * ipa-split.c: Include ipa-inline.h
8349 (execute_split_functions): Update.
8350 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
8351 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
8352 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
8353 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
8354 estimated_growth to INT_MIN.
8355 (inline_node_duplication_hook): Likewise.
8356 (dump_inline_summary): Dump new fields.
8357 (compute_inline_parameters): Update.
8358 (estimate_edge_time, estimate_time_after_inlining,
8359 estimate_size_after_inlining, estimate_growth, inline_read_summary,
8360 inline_write_summary):
8361 (initialize_inline_failed): Move here from cgraph.c.
8362 * tree-sra.c: Include ipa-inline.h.
8363 (ipa_sra_preliminary_function_checks): Update.
8364 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
8365 ipa-inline.h.
8366
8367 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8368
8369 * config/i386/sse.md (V16): New mode iterator.
8370 (VI1, VI8): Ditto.
8371 (AVXMODEQI, AVXMODEDI): Remove.
8372 (sse2, sse3): New mode attribute.
8373 (mov<mode>): Use V16 mode iterator.
8374 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
8375 (push<mode>1): Use V16 mode iterator.
8376 (movmisalign<mode>): Ditto.
8377 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8378 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
8379 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8380 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
8381 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
8382 avx_movdqu<avxmodesuffix>.
8383 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
8384 *avx_movdqu<avxmodesuffix>.
8385 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
8386 avx_lddqu<avxmodesuffix>.
8387 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
8388 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
8389 avx_movnt<AVXMODEDI:mode>.
8390 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
8391 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
8392
8393 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
8394
8395 PR target/48629
8396 * haifa-sched.c (prune_ready_list, schedule_block): Use
8397 sched_pressure_p rather than flag_sched_pressure.
8398
8399 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
8400
8401 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8402 cgraph_get_node instead of cgraph_get_create_node.
8403
8404 2011-04-15 Jakub Jelinek <jakub@redhat.com>
8405
8406 * cfgexpand.c (expand_debug_expr): Use
8407 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
8408
8409 2011-04-15 Michael Matz <matz@suse.de>
8410
8411 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
8412 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
8413 * function.c (gimplify_parameters): Ditto.
8414 * gimplify.c (gimplify_vla_decl): Ditto.
8415
8416 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
8417 (gimple_call_set_alloca_for_var): New inline function.
8418 (gimple_call_alloca_for_var_p): Ditto.
8419 * gimple.c (gimple_build_call_from_tree): Remember
8420 CALL_ALLOCA_FOR_VAR_P state.
8421 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
8422
8423 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
8424 calls if they were for VLA objects.
8425
8426 2011-04-15 Martin Jambor <mjambor@suse.cz>
8427
8428 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
8429 of ADR_EXPRs.
8430
8431 2011-04-15 Martin Jambor <mjambor@suse.cz>
8432
8433 PR middle-end/48601
8434 * tree-emutls.c (lower_emutls_function_body): Call
8435 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
8436 result is non-NULL.
8437
8438 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8439
8440 * c-decl.c (detect_field_duplicates): Call
8441 objc_detect_field_duplicates instead of objc_get_interface_ivars.
8442
8443 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
8444
8445 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
8446 * gimple.c (gimple_asm_clobbers_memory_p): Define.
8447 * ipa-pure-const.c (check_stmt): Call it.
8448 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
8449
8450 2011-04-15 Richard Guenther <rguenther@suse.de>
8451
8452 PR tree-optimization/48290
8453 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
8454 Properly decide inhibiting propagation based on the valueized
8455 operand. Do loop-closed SSA form preserving here ...
8456 (init_copy_prop): ... not here.
8457
8458 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
8459
8460 PR target/48612
8461 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
8462 (*ieee_smax<mode>3): Likewise.
8463
8464 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8465
8466 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
8467 Replace match_operand with match_dup for the third operand in
8468 these expanders.
8469
8470 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8471
8472 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
8473 to track processing of conditionals. Update all callers.
8474 (try_combine, simplify_if_then_else): Update.
8475
8476 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8477
8478 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
8479 -fsched-pressure.
8480
8481 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
8482
8483 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
8484 instead of match_operand for operand 3.
8485
8486 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
8487
8488 * recog.h (insn_operand_data): Add an "allows_mem" field.
8489 * genoutput.c (output_operand_data): Initialize it.
8490 * optabs.c (maybe_legitimize_operand_same_code): New function.
8491 (maybe_legitimize_operand): Use it when matching the original
8492 op->value.
8493
8494 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8495
8496 * gimplify.c: Fix issues in comments throughout.
8497 (voidify_wrapper_expr): Fix long line.
8498 (build_stack_save_restore): Likewise.
8499 (gimplify_loop_expr): Likewise.
8500 (gimplify_compound_lval): Likewise.
8501 (gimplify_init_ctor_eval): Likewise.
8502 (gimplify_modify_expr_rhs): Likewise.
8503 (omp_notice_threadprivate_variable): Likewise.
8504
8505 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8506
8507 * cfgexpand.c (expand_call_stmt): Convert the function type to the
8508 original one if this is not a builtin function.
8509
8510 2011-04-14 Jakub Jelinek <jakub@redhat.com>
8511
8512 PR target/48605
8513 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
8514 offset it as needed based on top 2 bits in operands[3], change
8515 MEM mode to SFmode and mask those 2 bits away from operands[3].
8516
8517 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8518
8519 * c-parser.c (c_parser_objc_protocol_definition): Updated for
8520 change from objc_declare_protocols() to objc_declare_protocol().
8521
8522 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
8523
8524 * config/i386/sse.md (sse4_1): New mode attribute.
8525 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
8526 avx_blend<ssemodesuffix><avxmodesuffix> and
8527 sse4_1_blend<ssemodesuffix> using VF mode iterator.
8528 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
8529 avx_blendv<ssemodesuffix><avxmodesuffix> and
8530 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
8531 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
8532 avx_dp<ssemodesuffix><avxmodesuffix> and
8533 sse4_1_dp<ssemodesuffix> using VF mode iterator.
8534 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
8535 (sse4_1_packusdw): Merge with *avx_packusdw.
8536 (sse4_1_pblendvb): Merge with *avx_pblendvb.
8537 (sse4_1_pblendw): Merge with *avx_pblendw.
8538 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
8539 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
8540 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
8541 VF mode iterator.
8542 (sse4_1_round<ssescalarmodesuffix>): Merge with
8543 *avx_round<ssescalarmodesuffix>.
8544 (aesenc): Merge with *avx_aesenc.
8545 (aesenclast): Merge with *avx_aesenclast.
8546 (aesdec): Merge with *avx_aesdec.
8547 (aesdeclast): Merge with *avx_aesdeclast.
8548 (pclmulqdq): Merge with *pclmulqdq.
8549 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
8550 New predicate.
8551 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
8552
8553 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
8554
8555 PR middle-end/48608
8556 * cfgexpand.c (get_decl_align_unit): Renamed to ...
8557 (align_local_variable): This. Update DECL_ALIGN.
8558 (add_stack_var): Updated.
8559 (expand_one_stack_var): Likewise.
8560
8561 2011-04-14 Richard Guenther <rguenther@suse.de>
8562
8563 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
8564 Remove.
8565 (dse_initialize_block_local_data, dse_leave_block,
8566 record_voperand_set, get_stmt_uid): Likewise.
8567 (dse_possible_dead_store_p): Allow any kind of killing stmt.
8568 (dse_optimize_stmt): Remove voperand set handling code.
8569 Simplify and improve to handle any kind of killing stmt.
8570 (dse_record_phi): Remove.
8571 (dse_enter_block): Simplify.
8572 (tree_ssa_dse): Likewise.
8573 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
8574
8575 2011-04-14 Jan Hubicka <jh@suse.cz>
8576
8577 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
8578 * cgraph.h (struct inline_summary): Move to ipa-inline.h
8579 (cgraph_local_info): Remove inline_summary.
8580 * ipa-cp.c: Include ipa-inline.h.
8581 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
8582 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
8583 accesor.
8584 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
8585 (input_overwrite_node): Do not set inline summary.
8586 (input_node): Do not stream inline summary.
8587 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
8588 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
8589 growth; we do not have inline parameters computed for that anyway.
8590 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
8591 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
8592 (inline_summary_t): New type and VECtor.
8593 (debug_inline_summary, dump_inline_summaries): Declare.
8594 (inline_summary): Use VOCtor.
8595 (estimate_edge_growth): Kill hack computing call stmt size directly.
8596 * lto-section-in.c (lto_section_name): Add inline section.
8597 * ipa-inline-analysis.c: Include lto-streamer.h
8598 (node_removal_hook_holder, node_duplication_hook_holder): New holders
8599 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
8600 (inline_summary_vec): Define.
8601 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
8602 dump_inline_summaries): New functions.
8603 (estimate_function_body_sizes): Properly compute size/time of outgoing
8604 calls.
8605 (compute_inline_parameters): Alloc inline_summary; do not compute
8606 size/time of incomming calls.
8607 (estimate_edge_time): Avoid missing time summary hack.
8608 (inline_read_summary): Read inline summary info.
8609 (inline_write_summary): Write inline summary info.
8610 (inline_free_summary): Free all hooks and inline summary vector.
8611 * lto-streamer.h: Add LTO_section_inline_summary section.
8612 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
8613 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
8614
8615 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8616
8617 * tree-vectorizer.h (vect_strided_store_supported): Add a
8618 HOST_WIDE_INT argument.
8619 (vect_strided_load_supported): Likewise.
8620 (vect_permute_store_chain): Return void.
8621 (vect_transform_strided_load): Likewise.
8622 (vect_permute_load_chain): Delete.
8623 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
8624 count argument. Check that the count is a power of two.
8625 (vect_strided_load_supported): Likewise.
8626 (vect_permute_store_chain): Return void. Update after above changes.
8627 Assert that the access is supported.
8628 (vect_permute_load_chain): Likewise.
8629 (vect_transform_strided_load): Return void.
8630 * tree-vect-stmts.c (vectorizable_store): Update calls after
8631 above interface changes.
8632 (vectorizable_load): Likewise.
8633 (vect_analyze_stmt): Don't check for strided powers of two here.
8634
8635 2011-04-14 Richard Guenther <rguenther@suse.de>
8636
8637 PR tree-optimization/48590
8638 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8639 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8640 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
8641 BUILT_IN_STACK_SAVE.
8642 * tree-ssa-dce.c (propagate_necessity): Handle
8643 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8644
8645 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8646
8647 * c-parser.c (c_parser_objc_class_declaration): Updated call to
8648 objc_declare_class.
8649
8650 2011-04-14 Richard Guenther <rguenther@suse.de>
8651
8652 * tree.h (get_object_alignment_1): Declare.
8653 * builtins.c (get_object_alignment_1): Split out worker from ...
8654 (get_object_alignment): ... here.
8655 * fold-const.c (get_pointer_modulus_and_residue): Use
8656 get_object_alignment_1.
8657
8658 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8659
8660 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
8661 type parameter.
8662 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
8663 parameter. Generalise code to handle arrays as well as vectors.
8664 (vect_setup_realignment): Update accordingly.
8665 * tree-vect-stmts.c (vectorizable_store): Likewise.
8666 (vectorizable_load): Likewise.
8667
8668 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8669
8670 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
8671 within the per-copy loop.
8672
8673 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8674
8675 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
8676 in the dump file.
8677
8678 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8679
8680 * doc/options.texi (Negative): Explicitly mention that the
8681 Negative chain must be circular.
8682
8683 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
8684
8685 * function.h (block_chainon): Declare.
8686 * function.c (block_chainon): Define.
8687
8688 2011-04-14 Anatoly Sokolov <aesok@post.ru>
8689 Eric Weddington <eric.weddington@atmel.com>
8690 Georg-Johann Lay <avr@gjlay.de>
8691
8692 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
8693 New Includes
8694 (avr_init_builtins, avr_expand_builtin,
8695 avr_expand_delay_cycles, avr_expand_unop_builtin,
8696 avr_expand_binop_builtin ): New functions.
8697 (avr_builtin_id): New enum
8698 (struct avr_builtin_description): New struct
8699 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
8700 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
8701
8702 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
8703 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
8704 UNSPECV_DELAY_CYCLES): new enumeration values
8705 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
8706 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
8707 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
8708 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
8709 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
8710 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
8711 "fmulsu"): New insns
8712
8713 * config/avr/avr-c.c: fix line endings
8714 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
8715 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
8716 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
8717 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
8718 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
8719
8720 * doc/extend.texi (AVR Built-in Functions): New node
8721 (Target Builtins): Add documentation of AVR
8722 built-in functions.
8723
8724 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
8725
8726 PR target/44643
8727 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
8728 alone. Error if non-const data has attribute progmem.
8729
8730 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8731
8732 * tree.h (struct tree_constructor): Include tree_typed instead of
8733 tree_common.
8734 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
8735 TS_TYPED instead of TS_COMMON.
8736
8737 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8738
8739 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
8740 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
8741 (sse2_psadbw): Merge with *avx_psadbw.
8742 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
8743 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
8744 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
8745 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
8746 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
8747 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
8748 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
8749 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
8750 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
8751 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
8752 (ssse3_palignrti): Merge with *avx_palignrti.
8753
8754 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8755
8756 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
8757 * tree-ssanames.c (fini_ssanames): VEC_free it.
8758 (make_ssa_name_fn): Update for VECness of free_ssanames.
8759 (release_ssa_name, release_dead_ssa_names): Likewise.
8760 * tree.h (struct tree_ssa_name): Include tree_typed instead of
8761 tree_common.
8762 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
8763 TS_TYPED instead of TS_COMMON.
8764
8765 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8766
8767 * postreload-gcse.c (gcse_after_reload_main): Add calls to
8768 statistics_counter_event.
8769 * tree-ssa-copyrename.c (stats): Define.
8770 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
8771 statistics_counter_event.
8772 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
8773 (bswap_stats, widen_mul_stats): Define.
8774 (insert_reciprocals): Increment rdivs_inserted.
8775 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
8776 rfuncs_inserted. Add calls to statistics_counter_event.
8777 (execute_cse_sincos_1): Increment inserted.
8778 (execute_cse_sincos): Zeroize sincos_stats. Add call to
8779 statistics_counter_event.
8780 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
8781 of bswap_stats. Add calls to statistics_counter_event.
8782 (convert_mult_to_widen): Increment widen_mults_inserted.
8783 (convert_plusminus_to_widen): Increment maccs_inserted.
8784 (convert_mult_to_fma): Increment fmas_inserted.
8785 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
8786 calls to statistics_counter_event.
8787
8788 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
8789
8790 PR rtl-optimization/48455
8791 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
8792 `temp_costs->mem_cost'.
8793
8794 2011-04-13 Jan Hubicka <jh@suse.cz>
8795
8796 * ipa-inline.h: New file.
8797 * ipa-inline-analysis.c: New file. Broken out of ...
8798 * ipa-inline.c: ... this file; update toplevel comment;
8799 include ipa-inline.h
8800 (inline_summary): Move to ipa-inline.h
8801 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
8802 ipa-inline-analysis.c.
8803 (cgraph_estimate_time_after_inlining): Rename to
8804 estiamte_time_after_inlining; move to ipa-inline-analysis.c
8805 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
8806 to estimate_edge_growth.
8807 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
8808 rename to estimate_size_after_inlining.
8809 (cgraph_mark_inline_edge): Update for new naming convention.
8810 (cgraph_check_inline_limits): Likewise.
8811 (cgraph_edge_badness): Likewise.
8812 (cgraph_decide_recursive_inlining): Likewise.
8813 (cgraph_decide_inlining_of_small_functions): Likewise.
8814 (cgraph_decide_inlining_incrementally): Likewise.
8815 (cgraph_estimate_growth): Rename to estimate_growth; move to
8816 ipa-inline-analysis.c.
8817 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
8818 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
8819 (compute_inline_parameters): Likewise.
8820 (compute_inline_parameters_for_current): Likewise.
8821 (pass_inline_parameters): Likewise.
8822 (inline_indirect_intraprocedural_analysis): Likewise.
8823 (analyze_function): Rename to inline_analyze_function; likewise.
8824 (add_new_function): Move to ipa-inline-analysis.c.
8825 (inline_generate_summary): Likewise.
8826 (inline_read_summary): Likewise.
8827 (inline_write_summary): Likewise.
8828 * Makefile.in (ipa-inline-analysis.c): New file.
8829
8830 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8831
8832 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
8833 * configure: Regenerate.
8834
8835 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8836
8837 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
8838 instead of tree_common.
8839 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
8840 Likewise.
8841 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
8842 TS_TYPED rather than TS_COMMON.
8843 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
8844
8845 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
8846
8847 PR target/45263
8848 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
8849 r20 around calls of __tablejump_elpm__
8850
8851 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8852
8853 PR middle-end/48591
8854 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
8855 NULL.
8856 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
8857
8858 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
8859
8860 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
8861 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
8862 (cfi_vec): New typedef.
8863 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
8864 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
8865 (cie_cfi_vec): New static variable.
8866 (cie_cfi_head): Delete.
8867 (add_cfi): Accept a cfi_vec * as first argument. All callers and
8868 declaration changed. Use vector rather than list operations.
8869 (new_cfi): Don't initialize the dw_cfi_next field.
8870 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
8871 rather than list operations.
8872 (lookup_cfa): Use vector rather than list operations.
8873 (output_cfis): New argument upto. Accept a cfi_vec rather than
8874 a dw_cfi_ref list head as argument. All callers changed.
8875 Iterate over the vector using upto as a maximum index.
8876 (output_all_cfis): New static function.
8877 (output_fde): Use vector rather than list operations. Use the
8878 new upto argument for output_cfis rather than manipulating a
8879 list.
8880 (dwarf2out_begin_prologue): Change initializations to match
8881 new struct members.
8882 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
8883 from the vector length rather than searching for the end of a list.
8884 Use output_all_cfis.
8885 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
8886
8887 2011-04-13 Nick Clifton <nickc@redhat.com>
8888
8889 * config/rx/rx.md (movmemsi): Do not use this pattern when
8890 volatile pointers are involved.
8891
8892 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8893
8894 * config/i386/sse.md (pinsrbits): Remove.
8895 (sse2_packsswb): Merge with *avx_packsswb.
8896 (sse2_packssdw): Merge with *avx_packssdw.
8897 (sse2_packuswb): Merge with *avx_packuswb.
8898 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
8899 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
8900 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
8901 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
8902 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
8903 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
8904 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
8905 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
8906 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
8907 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
8908 (sse2_loadld): Merge with *avx_loadld.
8909 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
8910 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
8911 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
8912 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
8913 (vec_concatv2di): Merge with *vec_concatv2di_avx.
8914
8915 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8916
8917 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
8918 calling TREE_CHAIN.
8919 * print-tree.c (print_node): Likewise.
8920 * tree-inline.c (copy_tree_r): Likewise.
8921 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
8922 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
8923 instead of TS_COMMON.
8924 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
8925 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
8926 (copy_node_stat): Zero TREE_CHAIN only if necessary.
8927 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
8928 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
8929 ...and these...
8930 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
8931 * tree.h: ...here.
8932 (TREE_CHAIN): Check for a TS_COMMON structure.
8933 (TREE_TYPE): Check for a TS_TYPED structure.
8934
8935 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
8936
8937 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8938 cgraph_get_create_node instead of cgraph_node.
8939
8940 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8941
8942 * c-parser.c (c_parser_initelt): Updated call to
8943 objc_build_message_expr.
8944 (c_parser_postfix_expression): Likewise.
8945
8946 2011-04-12 Kai Tietz <ktietz@redhat.com>
8947
8948 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
8949 MASK_MS_BITFIELD_LAYOUT bit.
8950
8951 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8952
8953 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
8954 assert it is always true.
8955 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
8956 moves.
8957
8958 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8959
8960 * c-parser.c (c_lex_one_token): Rewritten conditional used when
8961 compiling Objective-C to be more efficient.
8962
8963 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
8964
8965 * opts-common.c (decode_cmdline_options_to_array): Remove variable
8966 argv_copied.
8967
8968 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8969
8970 * recog.h, genoutput.c, optabs.c: Revert last patch.
8971
8972 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8973
8974 PR target/48090
8975 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
8976
8977 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8978
8979 * recog.h (insn_operand_data): Add an "allows_mem" field.
8980 * genoutput.c (output_operand_data): Initialize it.
8981 * optabs.c (maybe_legitimize_operand_same_code): New function.
8982 (maybe_legitimize_operand): Use it when matching the original
8983 op->value.
8984
8985 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8986
8987 * genpreds.c (process_define_predicate): Move most processing
8988 to gensupport.c. Continue to validate the expression.
8989 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
8990 (process_define_predicate): Move processing to gensupport.c.
8991 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
8992 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
8993 (compute_predicate_codes): Moved from genrecog.c. Add lineno
8994 argument.
8995 (valid_predicate_name_p): New function, split out from old
8996 genpreds.c:process_define_predicate.
8997 (process_define_predicate): New function, combining code from
8998 old genpreds.c and genrecog.c functions.
8999 (process_rtx): Call it for DEFINE_PREDICATE and
9000 DEFINE_SPECIAL_PREDICATE.
9001
9002 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9003
9004 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9005 size of a '%A' memory reference.
9006 (T_DREG, T_QREG): New neon_builtin_type_bits.
9007 (arm_init_neon_builtins): Assert that the load and store operands
9008 are neon_struct_operands.
9009 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9010 (NEON_ARG_MEMORY): New builtin_arg.
9011 (neon_dereference_pointer): New function.
9012 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9013 Handle NEON_ARG_MEMORY.
9014 (arm_expand_neon_builtin): Update after above interface changes.
9015 Use NEON_ARG_MEMORY for loads and stores.
9016 * config/arm/predicates.md (neon_struct_operand): New predicate.
9017 * config/arm/iterators.md (V_two_elem): Tweak formatting.
9018 (V_three_elem): Use BLKmode for accesses that have no associated mode.
9019 (V_four_elem): Tweak formatting.
9020 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9021 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9022 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9023 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9024 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9025 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9026 (neon_vst4<mode>): Replace pointer operand with a memory operand.
9027 Use %A in the output template.
9028 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9029 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9030 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9031 the width of the memory access. Remove post-increment.
9032 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9033
9034 2011-04-12 Nick Clifton <nickc@redhat.com>
9035
9036 * config/v850/v850.c (expand_prologue): Do not use the CALLT
9037 instruction for interrupt handlers if the target is the basic V850
9038 architecture.
9039 (expand_epilogue): Likewise.
9040
9041 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9042
9043 PR rtl-optimization/48549
9044 * combine.c (propagate_for_debug): Also stop after BB_END of
9045 this_basic_block. Process LAST and just stop processing after it.
9046 (combine_instructions): If last_combined_insn has been deleted,
9047 set last_combined_insn to its PREV_INSN.
9048
9049 2011-04-12 Richard Guenther <rguenther@suse.de>
9050
9051 PR tree-optimization/46076
9052 * gimple.h (struct gimple_statement_call): Add fntype field.
9053 (gimple_call_fntype): Adjust.
9054 (gimple_call_set_fntype): New function.
9055 * gimple.c (gimple_build_call_1): Set the call function type.
9056 * gimplify.c (gimplify_call_expr): Preserve the function
9057 type the frontend used for the call.
9058 (gimplify_modify_expr): Likewise.
9059 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9060 function type.
9061 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9062 function type.
9063 * tree-ssa.c (useless_type_conversion_p): Function pointer
9064 conversions are useless.
9065
9066 2011-04-12 Martin Jambor <mjambor@suse.cz>
9067
9068 * cgraph.h (cgraph_node): Remove function declaration.
9069 (cgraph_create_node): Declare.
9070 (cgraph_get_create_node): Likewise.
9071 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9072 Updated all callers.
9073 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9074 the decl does not already exist. Call cgraph_get_create_node instead
9075 of cgraph_node.
9076 (cgraph_get_create_node): New function.
9077 (cgraph_same_body_alias): Update comment.
9078 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9079 assert it does not return NULL.
9080 (cgraph_update_edges_for_call_stmt): Likewise.
9081 (cgraph_clone_edge): Likewise.
9082 (cgraph_create_virtual_clone): Likewise.
9083 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9084 instead of cgraph_node.
9085 (cgraph_add_new_function): Call cgraph_create_node or
9086 cgraph_get_create_node instead of cgraph_node.
9087 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9088 instead of cgraph_node.
9089 (record_eh_tables): Likewise.
9090 (mark_address): Likewise.
9091 (mark_load): Likewise.
9092 (build_cgraph_edges): Call cgraph_get_create_node instead
9093 of cgraph_node.
9094 (rebuild_cgraph_edges): Likewise.
9095 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9096 instead of cgraph_node.
9097 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9098 cgraph_node.
9099 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9100 cgraph_create_node instead of cgraph_node.
9101 * c-decl.c (finish_function): Call cgraph_get_create_node instead
9102 of cgraph_node.
9103 * lto-cgraph.c (input_node): Likewise.
9104 * lto-streamer-in.c (input_function): Likewise.
9105 * varasm.c (mark_decl_referenced): Likewise.
9106 (assemble_alias): Likewise.
9107
9108 2011-04-12 Martin Jambor <mjambor@suse.cz>
9109
9110 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9111 instead of cgraph_node and assert it does not return NULL.
9112 * lto-streamer-in.c (lto_read_body): Likewise.
9113 * omp-low.c (new_omp_context): Likewise.
9114 (create_task_copyfn): Likewise.
9115 * tree-emutls.c (lower_emutls_function_body): Likewise.
9116 * matrix-reorg.c (transform_allocation_sites): Likewise.
9117
9118 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9119
9120 PR c/48552
9121 * c-typeck.c (build_asm_expr): Error out on attempts to use
9122 void type outputs or inputs for constraints that allow reg or
9123 don't allow memory.
9124
9125 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
9126 Richard Earnshaw <rearnsha@arm.com>
9127
9128 PR target/48250
9129 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9130 to use sign-magnitude offsets. Reject unsupported unaligned
9131 cases. Add detailed description in comments.
9132 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9133 condition from TARGET_32BIT to TARGET_ARM.
9134
9135 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
9136
9137 * tree.h (struct typed_tree): New.
9138 (struct tree_common): Include it instead of tree_base.
9139 (TREE_TYPE): Update for new location of type field.
9140 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9141 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9142 (union tree_node): Add typed field.
9143 * treestruct.def (TS_TYPED): New.
9144 * lto-streamer.c (check_handled_ts_structures): Handle it.
9145 * tree.c (MARK_TS_TYPED): New macro.
9146 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9147
9148 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
9149
9150 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9151 (force_nonfallthru): Do not alter the loop nest if no basic block
9152 was created.
9153
9154 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9155
9156 * config/i386/sse.md (VI): New mode iterator.
9157 (SSEMODEI): Remove.
9158 (AVX256MODEI): Ditto.
9159 (AVXMODEF4P): Ditto.
9160 (avxvecpsmode): Ditto.
9161 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
9162 (sse2_andnot<mode>3): New expander.
9163 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9164 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
9165 (<any_logic:code><mode>3): Use VI mode iterator.
9166 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9167 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
9168 (*andnottf3): Handle AVX three-operand constraints.
9169 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9170
9171 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9172 Robert Millan <rmh@gnu.org>
9173
9174 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9175 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9176 GNU_USER_DYNAMIC_LINKER64): Define.
9177 (REG_NAME): Don't undefine.
9178 (MD_UNWIND_SUPPORT): Undefine.
9179 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9180 (REG_NAME): Don't undefine.
9181 (MD_UNWIND_SUPPORT): Undefine.
9182 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
9183
9184 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9185
9186 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9187 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9188
9189 2011-04-11 Xinliang David Li <davidxl@google.com>
9190
9191 * value-profile.c (check_ic_target): New function.
9192 (gimple_ic_transform): Sanity check indirect call target.
9193 * gimple-low.c (gimple_check_call_args): Interface change.
9194 (gimple_check_call_matching_types): New function.
9195 * tree-inline.c (tree_can_inline_p): Call new function.
9196
9197 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
9198
9199 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9200 tree-pretty-print.h & realmpfr.h.
9201
9202 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
9203
9204 PR middle-end/48464
9205 * ira.c (setup_pressure_classes): Fix typo in loop condition.
9206 (setup_allocno_and_important_classes): Ditto.
9207
9208 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9209
9210 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9211 GNU_USER_DYNAMIC_LINKER.
9212 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9213 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9214 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9215 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9216 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9217 GNU_USER_TARGET_OS_CPP_BUILTINS.
9218 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9219 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9220 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9221 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9222 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9223 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9224 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9225 GNU_USER_TARGET_OS_CPP_BUILTINS.
9226 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9227 GNU_USER_DYNAMIC_LINKER.
9228 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9229 GNU_USER_TARGET_OS_CPP_BUILTINS.
9230 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9231 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9232 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9233 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9234 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9235 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9236 GNU_USER_DYNAMIC_LINKER64): Remove.
9237 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9238 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9239 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9240 GNU_USER_DYNAMIC_LINKER.
9241 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9242 GNU_USER_TARGET_OS_CPP_BUILTINS.
9243 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9244 GNU_USER_TARGET_OS_CPP_BUILTINS.
9245 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
9246 to GNU_USER_TARGET_OS_CPP_BUILTINS.
9247 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9248 GNU_USER_TARGET_OS_CPP_BUILTINS.
9249 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
9250 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
9251 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9252 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
9253 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9254 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9255 GNU_USER_DYNAMIC_LINKER.
9256 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9257 GNU_USER_TARGET_OS_CPP_BUILTINS.
9258 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
9259 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9260 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9261 GNU_USER_DYNAMIC_LINKER.
9262 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9263 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9264 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
9265 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9266 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9267 GNU_USER_DYNAMIC_LINKER.
9268 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
9269 GNU_USER_DYNAMIC_LINKERN32.
9270 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
9271 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
9272 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
9273 GNU_USER_DYNAMIC_LINKER32.
9274 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
9275 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9276 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9277 GNU_USER_DYNAMIC_LINKER.
9278 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9279 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9280 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
9281 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9282 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9283 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
9284 GNU_USER_DYNAMIC_LINKER32.
9285 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9286 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
9287 GNU_USER_DYNAMIC_LINKER.
9288 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
9289 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9290 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9291 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
9292 GNU_USER_DYNAMIC_LINKER64.
9293 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
9294 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9295 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9296 GNU_USER_DYNAMIC_LINKER.
9297 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
9298 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9299 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9300 GNU_USER_DYNAMIC_LINKER.
9301 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
9302 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9303 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9304 GNU_USER_DYNAMIC_LINKER32.
9305 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9306 GNU_USER_DYNAMIC_LINKER64.
9307 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9308 GNU_USER_DYNAMIC_LINKER64.
9309 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
9310 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9311 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
9312 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9313 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9314
9315 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9316
9317 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
9318 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
9319 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
9320 GNU_USER_DYNAMIC_LINKER.
9321 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9322 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
9323 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
9324 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
9325 GNU_USER_DYNAMIC_LINKER64.
9326 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9327 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
9328 GNU_USER_LINK_EMULATION.
9329 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
9330 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
9331 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
9332 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
9333 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
9334 CPP_SPEC, CC1_SPEC): Remove.
9335 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
9336 (GNU_USER_DYNAMIC_LINKER): Define.
9337 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
9338 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
9339 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
9340 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
9341 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
9342 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
9343 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9344 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
9345 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
9346 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
9347 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
9348 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
9349 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
9350 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
9351 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
9352 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9353 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9354 GNU_USER_DYNAMIC_LINKER.
9355 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9356 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9357 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9358 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9359 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9360 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9361 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
9362 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
9363 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
9364 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
9365
9366 2011-04-11 Kai Tietz <ktietz@redhat.com>
9367
9368 PR target/9601
9369 PR target/11772
9370 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
9371 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
9372 comment.
9373 (ix86_is_msabi_thiscall): Removed.
9374 (ix86_is_type_thiscall): Likewise.
9375 (ix86_get_callcvt): New function.
9376 (ix86_comp_type_attributes): Simplify check.
9377 (ix86_function_regparm): Use ix86_get_callcvt for calling
9378 convention attribute checks.
9379 (ix86_return_pops_args): Likewise.
9380 (ix86_static_chain): Likewise.
9381 (x86_this_parameter): Likewise.
9382 (x86_output_mi_thunk): Likewise.
9383 (ix86_function_type_abi): Optimize check for types without attributes.
9384 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
9385 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
9386 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
9387 by flag-values.
9388 (IX86_BASE_CALLCVT): Helper macro.
9389 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9390 Use ix86_get_callcvt for calling convention attribute checks and avoid
9391 symbol-decoration for stdcall in TARGET_RTD case.
9392 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
9393 Likewise.
9394 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
9395 for declaration.
9396
9397 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9398
9399 * config/i386/sse.md (VI_128): New mode iterator.
9400 (VI12_128): Rename from SSEMODE12.
9401 (VI14_128): Rename from SSEMODE14.
9402 (VI124_128): New mode iterator.
9403 (VI24_128): Rename from SSEMODE248.
9404 (VI248_128): Rename from SSEMODE248.
9405 (SSEMODE124C8): Remove.
9406 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9407 (*sse2_<plusminus_insn><mode>3): Merge with
9408 *avx_<plusminus_insn><mode>3.
9409 (*mulv8hi3): Merge with *avx_mulv8hi3.
9410 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
9411 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
9412 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
9413 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
9414 (ashr<mode>3): Merge with *avx_ashr<mode>3.
9415 (lshr<mode>3): Merge with *avx_lshr<mode>3.
9416 (ashl<mode>3): Merge with *avx_ashl<mode>3.
9417 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
9418 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
9419 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9420 (*<smaxmin:code>v8hi3): Ditto.
9421 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
9422 (*<smaxmin:code>v16qi3): Ditto.
9423 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
9424 (*sse2_eq<mode>3): Ditto.
9425 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
9426 (*sse2_gt<mode>3): Ditto.
9427 (vcondv2di): Split out of vcond<mode>.
9428 (vconduv2di): Split out of vcondu<mode>.
9429
9430 2011-04-11 Richard Guenther <rguenther@suse.de>
9431
9432 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
9433 before calling tree_low_cst.
9434
9435 2011-04-11 Richard Guenther <rguenther@suse.de>
9436
9437 * stor-layout.c (layout_type): Compute all array index size operations
9438 in the original type.
9439 (initialize_sizetypes): Add comment.
9440 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
9441
9442 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9443
9444 * common.opt (Tbss=, Tdata=, Ttext=): New options.
9445
9446 2011-04-11 Martin Jambor <mjambor@suse.cz>
9447
9448 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
9449 of cgraph_node, handle NULL return value.
9450 (cgraph_global_info): Likewise.
9451 (cgraph_rtl_info): Likewise.
9452 * tree-inline.c (estimate_num_insns): Likewise.
9453 * gimplify.c (unshare_body): Likewise.
9454 (unvisit_body): Likewise.
9455 (gimplify_body): Likewise.
9456 * predict.c (optimize_function_for_size_p): Likewise.
9457 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9458 (call_may_clobber_ref_p_1): Likewise.
9459 * varasm.c (function_section_1): Likewise.
9460 (assemble_start_function): Likewise.
9461
9462 2011-04-11 Martin Jambor <mjambor@suse.cz>
9463
9464 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
9465 of cgraph_node.
9466 * final.c (rest_of_clean_state): Likewise.
9467 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
9468 * passes.c (pass_init_dump_file): Likewise.
9469 (execute_all_ipa_transforms): Likewise.
9470 (function_called_by_processed_nodes_p): Likewise.
9471 * predict.c (maybe_hot_frequency_p): Likewise.
9472 (probably_never_executed_bb_p): Likewise.
9473 (compute_function_frequency): Likewise.
9474 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
9475 (unnest_nesting_tree_1): Likewise.
9476 (lower_nested_functions): Likewise.
9477 * tree-optimize.c (execute_fixup_cfg): Likewise.
9478 (tree_rest_of_compilation): Likewise.
9479 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
9480 * tree-sra.c (ipa_early_sra): Likewise.
9481 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9482 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
9483 * ipa.c (record_cdtor_fn): Likewise.
9484 * ipa-inline.c (cgraph_early_inlining): Likewise.
9485 (compute_inline_parameters_for_current): Likewise.
9486 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9487 * ipa-pure-const.c (local_pure_const): Likewise.
9488 * ipa-split.c (split_function): Likewise.
9489 (execute_split_functions): Likewise.
9490 * cgraphbuild.c (build_cgraph_edges): Likewise.
9491 (rebuild_cgraph_edges): Likewise.
9492 (cgraph_rebuild_references): Likewise.
9493 (remove_cgraph_callee_edges): Likewise.
9494 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
9495 (verify_cgraph_node): Likewise.
9496 (cgraph_analyze_functions): Likewise.
9497 (cgraph_preserve_function_body_p): Likewise.
9498 (save_inline_function_body): Likewise.
9499 (save_inline_function_body): Likewise.
9500 * tree-inline.c (copy_bb): Likewise.
9501 (optimize_inline_calls): Likewise.
9502
9503 2011-04-11 Martin Jambor <mjambor@suse.cz>
9504
9505 PR tree-optimization/48195
9506 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
9507 ipa_check_create_edge_args.
9508 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
9509 ipa_check_create_edge_args.
9510 * ipa-inline.c (inline_generate_summary): Do not call
9511 ipa_check_create_node_params and ipa_check_create_edge_args.
9512 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
9513 ipa_check_create_edge_args.
9514
9515 2011-04-09 Anatoly Sokolov <aesok@post.ru>
9516
9517 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
9518 instead of loop.
9519 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9520 * function.c (record_hard_reg_sets): Likewise.
9521 * ira.c (compute_regs_asm_clobbered): Likewise.
9522 * sched-deps.c (sched_analyze_1): Likewise.
9523 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
9524
9525 2011-04-09 Xinliang David Li <davidxl@google.com>
9526
9527 PR tree-optimization/PR48484
9528 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
9529 has_valid_pred lazily
9530
9531 2011-04-09 Duncan Sands <baldrick@free.fr>
9532
9533 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
9534
9535 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
9536
9537 * combine.c (combine_validate_cost): Adjust comments. Set registered
9538 cost of I0 to zero at the end, if any.
9539
9540 2011-04-08 Xinliang David Li <davidxl@google.com>
9541
9542 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
9543 to insane profile data.
9544
9545 2011-04-08 Xinliang David Li <davidxl@google.com>
9546
9547 * ipa-cp.c (ipcp_update_profiling): Correct
9548 negative scale factor due to insane profile data.
9549
9550 2011-04-08 Xinliang David Li <davidxl@google.com>
9551
9552 * final.c (dump_basic_block_info): New function.
9553 (final): Dump basic block.
9554 (final_scan_insn): Remove old dump.
9555
9556 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
9557
9558 PR target/47829
9559 * config.gcc (i386-*-freebsd): Disable unwind table generation for
9560 crtbegin/crtend.
9561
9562 2011-04-08 Michael Matz <matz@suse.de>
9563
9564 PR middle-end/48389
9565 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
9566 functions.
9567 (rebuild_jump_labels): Call rebuild_jump_labels_1.
9568 * rtl.h (rebuild_jump_labels_chain): Declare.
9569 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
9570 insns inserted on edges.
9571
9572 2011-04-08 Joseph Myers <joseph@codesourcery.com>
9573
9574 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
9575 * config/arm/arm-arches.def: New.
9576 * config/arm/arm-opts.h: New.
9577 * config/arm/genopt.sh: New.
9578 * config/arm/arm-tables.opt: New (generated).
9579 * config/arm/arm.c (arm_handle_option, arm_target_help,
9580 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
9581 (all_architectures): Get most table contents from arm-arches.def.
9582 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
9583 arm_selected_tune here.
9584 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
9585 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
9586 (march=, mcpu=, mtune=): Use Enum and Var.
9587 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
9588 (arm.o): Update dependencies.
9589
9590 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
9591
9592 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
9593 of header_file.
9594 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
9595 (write_typed_alloc_defns): Likewise.
9596 (main): Calls write_typed_alloc_defns with output_header.
9597
9598 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
9599
9600 PR inline-asm/48435
9601 * ira-color.c (setup_profitable_hard_regs): Add comments.
9602 Don't take prohibited hard regs into account.
9603 (setup_conflict_profitable_regs): Rename to
9604 get_conflict_profitable_regs.
9605 (check_hard_reg_p): Check prohibited hard regs.
9606
9607 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9608
9609 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
9610 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
9611 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
9612
9613 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9614
9615 PR target/48366
9616 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
9617 move from floating point to shift amount register.
9618 (emit_move_sequence): Remove secondary reload support for floating
9619 point to shift amount amount register copies.
9620 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
9621 amount register copies.
9622 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
9623 register, return false if mode isn't a scalar integer mode.
9624 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
9625
9626 2011-04-08 Richard Guenther <rguenther@suse.de>
9627
9628 * gimple.c (gimple_call_flags): Remove kludge.
9629
9630 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9631
9632 * sel-sched.c (sel_region_init): Move call to
9633 sel_setup_region_sched_flags after setup_current_loop_nest.
9634
9635 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
9636
9637 PR rtl-optimization/48272
9638 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
9639 init_insn_reg_pressure_info. Adjust a caller.
9640 * sched-int.h (init_insn_reg_pressure_info): Declare.
9641 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
9642 when sched-pressure is enabled.
9643
9644 2011-04-08 Richard Guenther <rguenther@suse.de>
9645
9646 * gimple.c (gimple_set_modified): Do not queue calls to
9647 MODIFIED_NORETURN_CALLS here ...
9648 * tree-ssa-operands.c (update_stmt_operands): ... but here.
9649
9650 2011-04-08 Richard Guenther <rguenther@suse.de>
9651
9652 PR lto/48467
9653 * toplev.c (lang_dependent_init): Do not open asm_out_file
9654 in WPA mode, nor perform debug machinery initialization.
9655 (finalize): Do not unlink asm_out_file in WPA mode.
9656
9657 2011-04-08 Richard Guenther <rguenther@suse.de>
9658
9659 * gimple.h (gimple_call_fntype): New function.
9660 (gimple_call_return_type): Use it.
9661 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
9662 * gimple-low.c (gimple_check_call_args): Likewise.
9663 * gimple.c (gimple_call_flags): Likewise.
9664 (gimple_call_arg_flags): Likewise.
9665 (gimple_call_return_flags): Likewise.
9666 * tree-cfg.c (verify_gimple_call): Likewise.
9667 (do_warn_unused_result): Likewise.
9668 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9669 * value-prof.c (gimple_ic_transform): Fix fndecl check.
9670
9671 2011-04-08 Dmitry Melnik <dm@ispras.ru>
9672
9673 PR rtl-optimization/48235
9674 * sel-sched.c (code_motion_process_successors): Recompute the last
9675 insn in basic block if control flow changed.
9676 (code_motion_path_driver): Ditto. Recompute the first insn as well.
9677 Update condition for ilist_remove.
9678
9679 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9680
9681 PR rtl-optimization/48302
9682 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
9683 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
9684 it to record added preheader blocks.
9685 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
9686 on to sel_add_loop_preheaders.
9687 (sel_region_init): Move call to setup_current_loop_nest after
9688 sel_init_bbs.
9689
9690 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9691
9692 PR target/48273
9693 * cfgloop.h (loop_has_exit_edges): New helper.
9694 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
9695 non-clonable.
9696 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
9697 that have no exit edges.
9698
9699 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9700
9701 PR rtl-optimization/48442
9702 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
9703 all callers. Adjust assert.
9704
9705 2011-04-08 Jakub Jelinek <jakub@redhat.com>
9706
9707 PR tree-optimization/48377
9708 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
9709 is_packed to true even for types with smaller TYPE_ALIGN than
9710 TYPE_SIZE.
9711
9712 2011-04-08 Richard Guenther <rguenther@suse.de>
9713
9714 PR bootstrap/48513
9715 * doc/tm.texi: Re-generate.
9716
9717 2011-04-08 Wei Guozhi <carrot@google.com>
9718
9719 PR target/47855
9720 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
9721 * config/arm/arm.c (arm_attr_length_push_multi): New function.
9722 * config/arm/arm.md (*push_multi): Change the length computation to
9723 call a C function.
9724
9725 2011-04-08 Anatoly Sokolov <aesok@post.ru>
9726
9727 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
9728 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
9729 * doc/tm.texi: Regenerate.
9730 * system.h (ASM_OUTPUT_BSS): Poison.
9731 * varasm.c (asm_output_bss): Remove function.
9732 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
9733
9734 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
9735 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
9736 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
9737 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9738 Likewise.
9739 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9740 Likewise.
9741 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9742 Likewise.
9743 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9744
9745 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9746
9747 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
9748 EnumValue lines.
9749
9750 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9751
9752 * config/m68k/m68k.c (m68k_handle_option): Don't handle
9753 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
9754 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
9755 OPT_mcpu32.
9756 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9757 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
9758 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
9759 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
9760 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
9761 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
9762 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9763 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
9764 options. Don't map other m68k options manually. Don't handle
9765 old-style options as canonical.
9766 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9767 * doc/install.texi (m68k-*-*): Document binutils version requirement.
9768
9769 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
9770
9771 * basic-block.h (force_nonfallthru): Move to...
9772 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
9773 (force_nonfallthru): ...here.
9774 * cfghooks.c (force_nonfallthru): New function.
9775 * cfgrtl.c (force_nonfallthru): Rename into...
9776 (rtl_force_nonfallthru): ...this.
9777 (commit_one_edge_insertion): Do not set AUX field.
9778 (commit_edge_insertions): Do not discover new basic blocks.
9779 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
9780 (cfg_layout_rtl_cfg_hooks): Likewise.
9781 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
9782 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
9783 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
9784
9785 2011-04-07 Anatoly Sokolov <aesok@post.ru>
9786
9787 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9788 Remove macros.
9789
9790 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
9791
9792 * config/i386/sse.md: Update copyright year.
9793 (avxcvtvecmode): Remove.
9794 (sse_movhlps): Merge with *avx_movhlps.
9795 (sse_movlhps): Merge with *avx_movlhps.
9796 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
9797 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
9798 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
9799 (sse_loadhps): Merge with *avx_loadhps.
9800 (sse_storelps): Merge with *avx_storelps.
9801 (sse_loadlps): Merge with *avx_loadlps.
9802 (sse_movss): Merge with *avx_movss.
9803 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
9804 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
9805 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
9806 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
9807 (vec_set<mode>_0): Ditto.
9808 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
9809 (sse4_1_insertps): Merge with *avx_insertps.
9810 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
9811 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
9812 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
9813 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
9814 (sse2_storehpd): Merge with *avx_storehpd.
9815 (sse2_loadhpd): Merge with *avx_loadhpd.
9816 (sse2_loadlpd): Merge with *avx_loadlpd.
9817 (sse2_movsd): Merge with *avx_movsd.
9818 (*vec_concatv2df): Merge with *vec_concatv2df.
9819
9820 2011-04-07 Jakub Jelinek <jakub@redhat.com>
9821
9822 PR debug/48343
9823 * combine.c (combine_instructions): Add last_combined_insn,
9824 update it if insn is after it, pass it to all try_combine calls.
9825 (try_combine): Add last_combined_insn parameter, pass it instead of
9826 i3 to propagate_for_debug.
9827
9828 2011-04-07 Nick Clifton <nickc@redhat.com>
9829
9830 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
9831 to handle MDR <-> data register transfers.
9832 (movhi_internal): Likewise.
9833
9834 2011-04-07 Alan Modra <amodra@gmail.com>
9835
9836 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
9837 previous stack info.
9838
9839 2011-04-07 Tom de Vries <tom@codesourcery.com>
9840
9841 PR target/43920
9842 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
9843 flow_find_cross_jump. Swap variables to implement backward replacement.
9844 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
9845
9846 2011-04-07 Tom de Vries <tom@codesourcery.com>
9847
9848 PR target/43920
9849 * cfgcleanup.c (walk_to_nondebug_insn): New function.
9850 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
9851 and bb2.
9852 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
9853 src1 or src2. Redirect edges to the last basic block. Update
9854 frequency and count on multiple basic blocks in case of fallthru.
9855
9856 2011-04-07 Tom de Vries <tom@codesourcery.com>
9857
9858 PR target/43920
9859 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
9860 function.
9861 (old_insns_match_p): Change return type. Replace return false/true
9862 with return dir_none/dir_both. Use can_replace_by.
9863 (flow_find_cross_jump): Add dir_p parameter. Init replacement
9864 direction from dir_p. Register replacement direction in dir, last_dir
9865 and afterlast_dir. Handle new return type of old_insns_match_p using
9866 merge_dir. Return replacement direction in dir_p.
9867 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
9868 return type of old_insns_match_p.
9869 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
9870 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
9871 flow_find_cross_jump.
9872 * basic-block.h (enum replace_direction): New type.
9873 (flow_find_cross_jump): Add parameter to declaration.
9874
9875 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9876
9877 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
9878 (AVXMODEDCVTPS2DQ): Ditto.
9879 (VEC_FLOAT_MODE): Ditto.
9880 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
9881 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9882 (<any_logic:code><mode>3): Use VF mode iterator.
9883 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
9884 Use VF mode iterator.
9885 (copysign<mode>3): Use VF mode iterator.
9886 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
9887 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9888 (*<any_logic:code><MODEF:mode>3): Merge with
9889 *avx_<any_logic:code><MODEF:mode>3.
9890 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
9891 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
9892 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
9893 (avx_cvtdq2ps<avxmodesuffix>): Remove.
9894 (sse2_cvtdq2ps): Use %v modifier.
9895 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
9896 (avx_cvtps2dq<avxmodesuffix>): Remove.
9897 (sse2_cvtps2dq): Use %v modifier.
9898 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
9899 (avx_cvttps2dq<avxmodesuffix>): Remove.
9900 (sse2_cvttps2dq): Use %v modifier.
9901 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
9902 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
9903 (sse2_cvtsd2siq): Fix insn template.
9904 (sse2_cvtsd2siq_2): Ditto.
9905 (sse2_cvttsd2siq): Ditto.
9906 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
9907 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
9908
9909 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9910
9911 * gcov-io.c: Use GCC Runtime Library Exception.
9912
9913 2011-04-06 Jakub Jelinek <jakub@redhat.com>
9914
9915 PR debug/48466
9916 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
9917 as base_reg whatever register reg has been eliminated to, instead
9918 of hardcoding STACK_POINTER_REGNUM.
9919
9920 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9921
9922 * doc/tm.texi.in: Document C target hooks as separate from general
9923 target hooks.
9924 * doc/tm.texi: Regenerate.
9925 * genhooks.c (struct hook_desc): Add docname field.
9926 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
9927 docname field.
9928 (hook_array): Include c-target.def.
9929 (emit_documentation): Use docname field in output.
9930 (emit_init_macros): Take docname argument. Only emit definitions
9931 for hooks matching docname.
9932 (main): Expect additional arguments in all cases. Pass argument
9933 to emit_init_macros.
9934 * target.def: Move initial macro definitions and comments to
9935 target-hooks-macros.h.
9936 (gcc_targetcm): Move to c-family/c-target.def.
9937 * target.h (targetcm): Move declaration to c-family/c-target.h.
9938 * targhooks.c (default_handle_c_option): Move to
9939 c-family/c-opts.c.
9940 * targhooks.h (default_handle_c_option): Move declaration to
9941 c-family/c-common.h.
9942 * target-hooks-macros.h: New file.
9943 * config.gcc (target_has_targetcm): Define and use to add to
9944 c_target_objs and cxx_target_objs.
9945 * config/default-c.c: New file.
9946 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
9947 of target.h and target-def.h.
9948 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
9949 (darwin_objc_construct_string, darwin_cfstring_ref_p,
9950 darwin_check_cfstring_format_arg): Make static.
9951 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9952 TARGET_STRING_OBJECT_REF_TYPE_P,
9953 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
9954 * config/darwin-protos.h (darwin_objc_construct_string,
9955 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
9956 declare.
9957 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9958 TARGET_STRING_OBJECT_REF_TYPE_P,
9959 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
9960 * config/t-darwin (darwin-c.o): Update dependencies.
9961 * system.h (TARGET_HAS_TARGETCM): Poison.
9962 * Makefile.in (TARGET_H): Update.
9963 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
9964 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
9965 (default-c.o): New target.
9966 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
9967 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
9968 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
9969 c-target.def.
9970 (build/genhooks.o): Update dependencies.
9971
9972 2011-04-06 Richard Guenther <rguenther@suse.de>
9973
9974 * ipa-inline.c (enum inlining_mode): Remove.
9975 (cgraph_flatten): Use some other token.
9976 (cgraph_edge_early_inlinable_p): New function, split out from ...
9977 (cgraph_perform_always_inlining): New function, split out from ...
9978 (cgraph_decide_inlining_incrementally): ... here.
9979 (cgraph_mark_inline_edge): Adjust.
9980 (cgraph_early_inlining): Re-structure.
9981 (pass_early_inline): Require SSA form.
9982
9983 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
9984 Julian Brown <julian@codesourcery.com>
9985 Mark Shinwell <shinwell@codesourcery.com>
9986
9987 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
9988 LO_REGS only for Thumb-1.
9989 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
9990 be used in short instructions when optimising for size on Thumb-2.
9991
9992 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9993
9994 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
9995 associated with user returns to be preserved.
9996
9997 2011-04-06 Tristan Gingold <gingold@adacore.com>
9998
9999 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10000 symbol_queue_size, DBXOUT_DECR_NESTING,
10001 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10002 if XCOFF_DEBUGGING_INFO.
10003
10004 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10005
10006 * config/i386/i386.md (attribute isa): New.
10007 (attribute enabled): New.
10008 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10009 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10010 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10011 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10012 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10013 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10014 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10015 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10016
10017 * config/i386/sse.md (VF): New mode iterator.
10018 (VF1): Ditto.
10019 (VF2): Ditto.
10020 (VF_128): Ditto.
10021 (SSEMODEF4): Remove.
10022 (attribute sse): Handle V8SF and V4DF modes.
10023 (<absneg:code><mode>2): Use VF mode iterator.
10024 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
10025 mode iterator.
10026 (<plusminus_insn><mode>3): Use VF mode iterator.
10027 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10028 Use VF mode iterator.
10029 (<sse>_vm<plusminus_insn><mode>3): Merge with
10030 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
10031 (mul<mode>3): Use VF mode iterator.
10032 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
10033 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
10034 mode iterator.
10035 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10036 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10037 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
10038 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
10039 mode iterator.
10040 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10041 Use VF1 mode iterator.
10042 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10043 (sqrt<VF2:mode>2): New expander.
10044 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10045 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10046 and sqrtv2df2. Use VF mode iterator.
10047 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
10048 mode iterator.
10049 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10050 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10051 Use VF1 mode iterator.
10052 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10053 (<smaxmin:code><mode>3): Use VF mode iterator.
10054 (*<smaxmin:code><mode>3_finite): Merge with
10055 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
10056 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10057 (<sse>_vm<smaxmin:code><mode>2): Merge with
10058 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
10059 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
10060 mode iterator.
10061 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
10062 mode iterator.
10063 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10064 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10065 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10066 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10067 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
10068 VF mode iterator.
10069 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10070 Use VF_128 mode iterator.
10071 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
10072 mode iterator.
10073 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
10074 VF_128 mode iterator.
10075 (vcond<mode>): Use VF mode iterator.
10076 * config/i386/predicates.md (sse_comparison_operator): Merge with
10077 avx_comparison_float_operator. Do not declare as special_predicate.
10078 * config/i386/i386.c (struct builtin_description): Update for renamed
10079 compare patterns.
10080 (ix86_expand_args_builtin): Ditto.
10081 (ix86_expand_sse_compare_mask): Ditto.
10082
10083 2011-04-06 Richard Guenther <rguenther@suse.de>
10084
10085 * tree-inline.c (estimate_num_insns): For calls simply account
10086 for all passed arguments and a used return value.
10087
10088 2011-04-06 Richard Guenther <rguenther@suse.de>
10089
10090 PR tree-optimization/47663
10091 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10092 call_stmt_time fields.
10093 (cgraph_edge_inlinable_p): Declare.
10094 (cgraph_edge_recursive_p): New inline function.
10095 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10096 (cgraph_clone_edge): Copy it.
10097 * ipa-inline.c (cgraph_estimate_edge_time): New function.
10098 Account for call stmt time.
10099 (cgraph_estimate_time_after_inlining): Take edge argument.
10100 (cgraph_estimate_edge_growth): Account call stmt size.
10101 (cgraph_estimate_size_after_inlining): Take edge argument.
10102 (cgraph_mark_inline_edge): Adjust.
10103 (cgraph_check_inline_limits): Likewise.
10104 (cgraph_recursive_inlining_p): Remove.
10105 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10106 (cgraph_decide_recursive_inlining): Take edge argument and
10107 adjust.
10108 (cgraph_decide_inlining_of_small_functions): Do not avoid
10109 diags for recursive inlining here.
10110 (cgraph_flatten): Adjust.
10111 (cgraph_decide_inlining_incrementally): Likewise.
10112 (estimate_function_body_sizes): Remove call cost handling.
10113 (compute_inline_parameters): Initialize caller edge call costs.
10114 (cgraph_estimate_edge_growth): New function.
10115 (cgraph_estimate_growth): Use it.
10116 (cgraph_edge_badness): Likewise.
10117 (cgraph_check_inline_limits): Take an edge argument.
10118 (cgraph_decide_inlining_of_small_functions): Adjust.
10119 (cgraph_decide_inlining): Likewise.
10120 * tree-inline.c (estimate_num_insns): Only account for call
10121 return value if it is used.
10122 (expand_call_inline): Avoid diagnostics on recursive inline
10123 functions here.
10124 * lto-cgraph.c (lto_output_edge): Output edge call costs.
10125 (input_edge): Input edge call costs.
10126
10127 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10128
10129 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10130
10131 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10132
10133 * doc/invoke.texi (Spec Files): Fix typo.
10134
10135 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10136
10137 * profile.c (branch_prob): Move declaration of local variable. Remove
10138 obsolete ??? comment. Expand the location explicitly instead of using
10139 the LOCATION_FILE and LOCATION_LINE macros.
10140
10141 2011-04-06 Wei Guozhi <carrot@google.com>
10142
10143 PR target/47855
10144 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10145 (arm_cond_branch): Likewise.
10146 (arm_cond_branch_reversed): Likewise.
10147 (arm_jump): Likewise.
10148 (push_multi): Likewise.
10149 * config/arm/constraints.md (Py): New constraint.
10150
10151 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10152
10153 PR bootstrap/48471
10154 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10155 Move these...
10156 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10157 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10158 #ifdef DBX_DEBUGGING_INFO.
10159
10160 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
10161
10162 PR bootstrap/48403
10163 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10164 if old and new states differ.
10165
10166 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10167
10168 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10169 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10170 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10171 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10172 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10173 mcfv4e): Use Alias.
10174 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10175 ColdFire options to -mcpu= options.
10176
10177 2011-04-05 Jeff Law <law@redhat.com>
10178
10179 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10180 check if BB is a successor of LOOP->header and return
10181 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10182
10183 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10184
10185 * cprop.c (struct reg_use): Remove.
10186 (reg_use_table): Make an array of RTX.
10187 (find_used_regs, constprop_register, local_cprop_pass,
10188 bypass_block): Simplify users of reg_use_table.
10189 (cprop_insn): Likewise. Iterate if copy propagation succeeded
10190 on one of the uses found by find_used_regs.
10191
10192 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10193
10194 PR bootstrap/48469
10195 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10196 declaration.
10197
10198 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10199
10200 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10201 as an rtx.
10202 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10203
10204 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10205
10206 PR middle-end/48441
10207 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10208
10209 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10210
10211 * combine.c: Include obstack.h.
10212 (struct insn_link): Define.
10213 (uid_log_links): Adjust type.
10214 (FOR_EACH_LOG_LINK): New macro.
10215 (insn_link_obstack): Declare.
10216 (alloc_insn_link): Define.
10217 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
10218 type of link variables.
10219 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10220 (try_combine, record_promoted_values, distribute_notes): Likewise.
10221 (distribute_links): Likewise. Tweak prototype.
10222 (clear_log_links): Delete.
10223 (adjust_for_new_dest): Call alloc_insn_link.
10224 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10225
10226 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10227
10228 * gcse.c (modify_mem_list): Convert to an array of VECs.
10229 (canon_modify_mem_list, compute_transp): Tweak formatting.
10230 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
10231 (load_killed_in_block_p): Likewise.
10232 (record_last_mem_set_info): Likewise.
10233 (clear_modify_mem_tables): Likewise.
10234
10235 2011-04-05 Tom de Vries <tom@codesourcery.com>
10236
10237 PR middle-end/48461
10238 * function.c (emit_use_return_register_into_block): Only define if
10239 HAVE_return.
10240
10241 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
10242
10243 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
10244
10245 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10246
10247 * config/rx/rx-opts.h: New.
10248 * config/rx/rx.c (rx_cpu_type): Remove.
10249 (rx_handle_option): Don't assert that global structures are in
10250 use. Access variables via opts pointer. Defer most handling of
10251 OPT_mint_register_. Use error_at.
10252 (rx_option_override): Handle deferred OPT_mint_register_ here.
10253 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
10254 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
10255 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
10256 (rx_cpu_types): New Enum and EnumValue entries.
10257 (mint-register=): Use Defer and use Var accordingly.
10258
10259 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10260
10261 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
10262 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
10263 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
10264 Move these...
10265 (debug_free_queue, debug_nesting, symbol_queue_index):
10266 ...and these...
10267 * dbxout.c: ...to here. Make static.
10268
10269 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10270
10271 * gcse.c (modify_pair): Define. Define a VEC of it.
10272 (canon_modify_mem_list): Convert to an array of VECs.
10273 (free_insn_expr_list_list): Delete.
10274 (clear_modify_mem_tables): Call VEC_free instead.
10275 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
10276 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
10277 (canon_list_insert, compute_transp): Likewise.
10278
10279 2011-04-05 Tom de Vries <tom@codesourcery.com>
10280
10281 PR target/43920
10282 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
10283 for size.
10284
10285 2011-04-05 Tom de Vries <tom@codesourcery.com>
10286
10287 PR target/43920
10288 * function.c (emit_use_return_register_into_block): New function.
10289 (thread_prologue_and_epilogue_insns): Use
10290 emit_use_return_register_into_block.
10291
10292 2011-04-05 Tom de Vries <tom@codesourcery.com>
10293
10294 PR target/43920
10295 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
10296 insn.
10297
10298 2011-04-05 Tom de Vries <tom@codesourcery.com>
10299
10300 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
10301
10302 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
10303
10304 * config/arm/arm.md (define_constants for unspec): Replace with
10305 define_c_enum.
10306 (define_constants for unspecv): Replace with define_c_enum.
10307 * config/arm/neon.md (define_constants for unspec): Replace with
10308 define_c_enum.
10309
10310 2011-04-04 Richard Henderson <rth@redhat.com>
10311
10312 PR bootstrap/48400
10313 * dwarf2out.c (output_line_info): Always emit line info from
10314 at least one section.
10315 (dwarf2out_init): Create text_section_line_info here ...
10316 (set_cur_line_info_table): ... not here.
10317
10318 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
10319
10320 PR target/48380
10321 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
10322 not called.
10323
10324 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
10325
10326 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
10327
10328 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
10329 (expr_equiv_p): Remove.
10330 (insert_set_in_table): Look at <dest, src> pair instead of expr.
10331 (hash_scan_set): Update call to insert_set_in_table.
10332 (dump_hash_table): Dump <dest, src> pair.
10333 (lookup_set): Simplify. Lookup <dest, src> pair.
10334 (compute_transp): Remove, fold heavily simplified code into...
10335 (compute_local_properties): ...here. Expect COMP and TRANSP
10336 unconditionally.
10337 (find_avail_set): Take set directly from struct expr.
10338 (find_bypass-set): Likewise.
10339 (bypass_block): Likewise.
10340 (cprop_insn): Likewise. Remove redundant INSN_P test.
10341
10342 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
10343 checks on form of COND from find_implicit_sets to here.
10344 (find_implicit_sets): Cleanup control flow. Split critical edges
10345 if it exposes implicit sets. Allocate/resize implicit_sets as
10346 necessary.
10347 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
10348 changed something. Run df_analyze after find_implicit_sets if any
10349 edges were split. Do not allocate implicit_sets here.
10350
10351 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
10352 (gcse_obstack): Renamed to cprop_obstack.
10353 (GNEW, GNEWVEC, GNEWVAR): Remove.
10354 (gmalloc): Remove.
10355 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
10356 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
10357 (gcse_alloc): Likewise, and rename to cprop_alloc.
10358 (alloc_gcse_men, free_gcse_mem): Remove.
10359 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
10360 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
10361 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
10362
10363 * cprop.c (oprs_not_set_p): Remove.
10364 (mark_set, mark_clobber): Remove.
10365 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
10366 (reg_not_set_p): New function.
10367 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
10368 (cprop_insn): Likewise.
10369 (cprop_jump): Use FOR_EACH_EDGE.
10370
10371 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
10372
10373 PR bootstrap/48403
10374 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
10375 (rank_for_schedule): Use scheduled_insns vector instead of
10376 last_scheduled_insn.
10377 (ok_for_early_queue_removal): Likewise.
10378 (queue_to_ready): Search forward in nonscheduled_insns_begin if
10379 we have a dbg_cnt.
10380 (choose_ready): Likewise.
10381 (commit_schedule): Use VEC_iterate.
10382 (schedule_block): Initialize nonscheduled_insns_begin. If we have
10383 a dbg_cnt, use it and ensure the first insn is in the ready list.
10384 (haifa_sched_init): Allocate scheduled_insns.
10385 (sched_extend_ready_list): Don't allocate it; reserve space.
10386 (haifa_sched_finish): Free it.
10387
10388 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10389
10390 * optc-gen.awk: Always remove type from Variable entry before
10391 recording in var_seen.
10392
10393 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
10394
10395 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
10396 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
10397 call to tidy_fallthru_edges.
10398
10399 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10400
10401 * doc/options.texi (ToLower): Document.
10402 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
10403 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
10404 * opts.h (cl_option): Add cl_tolower field.
10405 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
10406 arguments with lowercase strings.
10407 * config/rx/rx.opt (mcpu=): Add ToLower.
10408 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
10409 argument.
10410
10411 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10412
10413 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
10414
10415 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10416
10417 * config/vax/vax.c: Include reload.h.
10418
10419 2011-04-04 Anatoly Sokolov <aesok@post.ru>
10420
10421 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
10422 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10423 (sparc_preferred_reload_class): New function.
10424
10425 2011-04-04 Jakub Jelinek <jakub@redhat.com>
10426
10427 PR debug/48401
10428 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10429 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
10430
10431 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
10432
10433 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
10434 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
10435
10436 2011-04-03 Anatoly Sokolov <aesok@post.ru>
10437
10438 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
10439 (ASM_OUTPUT_ALIGNED_BSS): Define.
10440
10441 2011-04-03 Michael Matz <matz@suse.de>
10442
10443 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
10444 and next_slot members.
10445 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
10446 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
10447 (lto_streamer_cache_append): Declare.
10448 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
10449 unsigned index, remove offset parameter, ensure that we append
10450 or update existing entries.
10451 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
10452 parameter, update next_slot for append.
10453 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
10454 parameter.
10455 (lto_streamer_cache_insert_at): Likewise.
10456 (lto_streamer_cache_append): New function.
10457 (lto_streamer_cache_lookup): Use unsigned index.
10458 (lto_streamer_cache_get): Likewise.
10459 (lto_record_common_node): Don't test tree_node_can_be_shared.
10460 (preload_common_node): Adjust call to lto_streamer_cache_insert.
10461 (lto_streamer_cache_delete): Don't free offsets member.
10462 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
10463 (lto_output_string_with_length): Use lto_output_data_stream.
10464 (lto_output_tree_header): Remove ix parameter, don't write it.
10465 (lto_output_builtin_tree): Likewise.
10466 (lto_write_tree): Adjust callers to above, don't track and write
10467 offset, write unsigned index.
10468 (output_unreferenced_globals): Don't emit all global vars.
10469 (write_global_references): Use unsigned indices.
10470 (lto_output_decl_state_refs): Likewise.
10471 (write_symbol): Likewise.
10472 * lto-streamer-in.c (lto_input_chain): Move earlier.
10473 (input_function): Use unsigned index.
10474 (input_alias_pairs): Don't read and then ignore all global vars.
10475 (lto_materialize_tree): Remove ix_p parameter, don't read index,
10476 don't pass it back, use lto_streamer_cache_append.
10477 (lto_register_var_decl_in_symtab): Use unsigned index.
10478 (lto_register_function_decl_in_symtab): Likewise.
10479 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
10480 index.
10481 (lto_get_builtin_tree): Don't read index, use
10482 lto_streamer_cache_append.
10483 (lto_read_tree): Adjust call to lto_materialize_tree.
10484
10485 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
10486 don't use function calls in arguments to MIN.
10487
10488 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
10489 twice.
10490
10491 * gimple.c (gimple_type_leader_entry): Mark deletable.
10492
10493 2011-04-03 Alan Modra <amodra@gmail.com>
10494
10495 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
10496
10497 2011-04-03 Michael Matz <matz@suse.de>
10498
10499 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
10500 an integer.
10501 * tree.h (tree_decl_non_common.vindex): Adjust comment.
10502
10503 2011-04-03 Michael Matz <matz@suse.de>
10504
10505 * cgraphbuild.c (record_reference): Canonicalize constructor values.
10506 * gimple-fold.c (canonicalize_constructor_val): Accept being called
10507 without function context.
10508 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
10509 current_function_decl and cfun.
10510
10511 2011-04-03 Michael Matz <matz@suse.de>
10512
10513 * tree.c (decl_init_priority_insert): Don't create entry for
10514 default priority.
10515 (decl_fini_priority_insert): Ditto.
10516 (fields_compatible_p, find_compatible_field): Remove.
10517 * tree.h (fields_compatible_p, find_compatible_field): Remove.
10518 * gimple.c (gimple_compare_field_offset): Adjust block comment.
10519
10520 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
10521
10522 * combine.c (try_combine): Remove useless local variable.
10523
10524 2011-04-03 Richard Guenther <rguenther@suse.de>
10525 Ira Rosen <ira.rosen@linaro.org>
10526
10527 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
10528 non-variable offsets and compare the remaining bases of the two
10529 accesses instead of looking for exact same data-ref.
10530
10531 2011-04-02 Kai Tietz <ktietz@redhat.com>
10532
10533 PR target/48416
10534 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
10535
10536 * i386.c (ix86_is_msabi_thiscall): New helper function.
10537 (ix86_is_type_thiscall): New helper function.
10538 (ix86_comp_type_attributes): Handle thiscall for method-functions
10539 special.
10540 (init_cumulative_args): Likewise.
10541 (find_drap_reg): Likewise.
10542 (ix86_static_chain): Likewise.
10543 (x86_this_parameter): Likewise.
10544 (x86_output_mi_thunk): Likewise.
10545
10546 2011-04-01 Olivier Hainque <hainque@adacore.com>
10547 Nicolas Setton <setton@adacore.com>
10548 Eric Botcazou <ebotcazou@adacore.com>
10549
10550 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
10551 (add_gnat_descriptive_type_attribute): New function.
10552 (gen_array_type_die): Call it.
10553 (gen_enumeration_type_die): Likewise.
10554 (gen_struct_or_union_type_die): Likewise.
10555 (modified_type_die): Likewise.
10556 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
10557 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
10558 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
10559
10560 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10561
10562 PR bootstrap/48148
10563 * dwarf2out.c (resolve_addr): Don't call force_decl_die
10564 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
10565
10566 Revert:
10567 2011-03-17 Richard Guenther <rguenther@suse.de>
10568
10569 PR bootstrap/48148
10570 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10571 origin for decls in other ltrans units.
10572 (input_varpool_node): Likewise.
10573
10574 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10575
10576 PR middle-end/48335
10577 * expr.c (expand_assignment): Handle all possibilities
10578 if TO_RTX is CONCAT.
10579 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
10580 (store_split_bit_field): If SUBREG_REG (op0) or
10581 op0 itself has smaller mode than word, return it
10582 for offset 0 and const0_rtx for out-of-bounds stores.
10583 If word is const0_rtx, skip it.
10584
10585 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
10586
10587 * config/h8300/h8300.c (print_operand_address): Rename to...
10588 (h8300_print_operand_address): ...this. Make static. Adjust comments.
10589 Call h8300_print_operand and h8300_print_operand_address instead of
10590 print_operand and print_operand_address. Declare.
10591 (print_operand): Renake to...
10592 (h8300_print_operand): ...this. Make static. Adjust comments.
10593 Call h8300_print_operand instead of print_operand. Declare.
10594 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
10595 (h8300_register_move_cost): Likewise.
10596 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
10597 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
10598 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
10599 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
10600 * config/h8300/h8300-protos.h (print_operand): Delete.
10601 (print_operand_address): Delete.
10602
10603 2011-04-01 Richard Henderson <rth@redhat.com>
10604
10605 PR 48400
10606 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
10607 in strict mode before dwarf4. Re-order tests to early out
10608 before switching sections.
10609
10610 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
10611
10612 * config/h8300/constraints.md: New file.
10613 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
10614 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
10615 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
10616 * config/h8300/predicates.md (bit_operand): Likewise.
10617 (incdec_operand): Use satisfies_constraint_M and
10618 satisfies_constraint_O. Don't use C code block.
10619 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
10620 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
10621 (compute_mov_length): Use satisfies_constraint_G.
10622 (fix_bit_operand): Use satisfies_constraint_U.
10623 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
10624 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
10625 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
10626 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
10627 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
10628 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
10629 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10630 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
10631 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
10632 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
10633 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
10634 (EXTRA_MEMORY_CONSTRAINT): Delete.
10635
10636 2011-04-01 Andrew Pinski <pinskia@gmail.com>
10637 Michael Meissner <meissner@linux.vnet.ibm.com>
10638
10639 PR target/48262
10640 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
10641 operands, as per the specifications.
10642
10643 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
10644 (vec_extract_evenv4sf): Ditto.
10645 (vec_extract_evenv8hi): Ditto.
10646 (vec_extract_evenv16qi): Ditto.
10647 (vec_extract_oddv4si): Ditto.
10648
10649 2011-03-31 Mark Wielaard <mjw@redhat.com>
10650
10651 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
10652 high_pc attribute if the CU has no associated code. Only output
10653 DW_AT_entry_pc for CU if not generating strict dwarf and
10654 dwarf_version < 4.
10655
10656 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
10657
10658 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
10659 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
10660 out of ...
10661 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
10662 * final.c (final_start_function): Call the new function rather
10663 than using a NULL argument for dwarf2out_frame_debug.
10664
10665 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
10666 that contains the prologue.
10667
10668 * haifa-sched.c (queue_insn): New arg REASON. All callers
10669 changed. Print it in debugging output.
10670
10671 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
10672
10673 * sched-ebb.c (begin_schedule_ready): Remove second argument.
10674 Split most of the code into...
10675 (begin_move_insn): ... here. New function.
10676 (ebb_sched_info): Add a pointer to it.
10677 * haifa-sched.c (scheduled_insns): New static variable.
10678 (sched_extend_ready_list): Allocate it.
10679 (schedule_block): Use it to record the order of scheduled insns.
10680 Perform RTL changes to move insns only after all scheduling
10681 decisions have been made.
10682 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
10683 begin_move_insn field.
10684 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10685 * sched-int.h (struct haifa_sched_info): Remove second argument
10686 from begin_schedule_ready hook. Add new member begin_move_insn.
10687 * sched-rgn.c (begin_schedule_ready): Remove second argument.
10688 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
10689
10690 * haifa-sched.c (prune_ready_list): New function, broken out of
10691 schedule_block.
10692 (schedule_block): Use it.
10693
10694 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10695
10696 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
10697
10698 2011-04-01 Kai Tietz <ktietz@redhat.com>
10699
10700 * config.gcc (*-*-mingw*): Allow as option the
10701 posix threading model.
10702 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
10703 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
10704 definition.
10705 (CPP_SPEC): Add pthread/no-pthread handling.
10706 (LIB_SPEC): Likewise.
10707 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
10708 (LIB_SPEC): Likewise.
10709 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
10710 flag to pass -pthread option for shared libgcc build.
10711 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
10712 for shared libgcc build.
10713 * config/i386/t-mingw-pthread: New file.
10714 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
10715 New define to enable use of library pthread by default.
10716 * config/i386/mingw.opt (pthread): New driver option.
10717 (no-pthread): New driver option.
10718 * config/i386/cygming.opt: Make sure trailing empty line is retained.
10719 * config/i386/mingw-w64.opt: Likewise.
10720
10721 2011-04-01 Gary Funck <gary@intrepid.com>
10722
10723 * c-decl.c (grokdeclarator): Fix formatting.
10724
10725 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10726
10727 * expr.c (emit_block_move_via_movmem): Use n_generator_args
10728 instead of n_operands.
10729 (set_storage_via_setmem): Likewise.
10730 * optabs.c (maybe_gen_insn): Likewise.
10731 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
10732 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
10733 (mips_expand_builtin_direct): Likewise.
10734 * config/spu/spu.c (expand_builtin_args): Likewise.
10735
10736 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10737
10738 * recog.h (insn_data_d): Add n_generator_args.
10739 * genoutput.c (data): Likewise.
10740 (output_insn_data): Print it.
10741 (max_opno, num_dups): Delete.
10742 (scan_operands): Just fill in "d->operand[...]".
10743 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
10744
10745 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10746
10747 * gensupport.h (pattern_stats): New structure.
10748 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
10749 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
10750 (max_operand_1, max_operand_vec): Delete.
10751 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
10752
10753 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
10754
10755 * emit-rtl.c (emit_pattern_after_setloc): New function.
10756 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
10757 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
10758 (emit_pattern_after): New function.
10759 (emit_insn_after, emit_jump_insn_after): Call it.
10760 (emit_call_insn_after, emit_debug_insn_after): Likewise.
10761 (emit_pattern_before_setloc): New function.
10762 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
10763 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
10764 Likewise.
10765 (emit_pattern_before): New function.
10766 (emit_insn_before, emit_jump_insn_before): Call it.
10767 (emit_call_insn_before, emit_debug_insn_before): Likewise.
10768
10769 2011-03-31 Richard Henderson <rth@redhat.com>
10770
10771 * dwarf2out.c (dw_separate_line_info_ref): Remove.
10772 (dw_separate_line_info_entry): Remove.
10773 (enum dw_line_info_opcode): New.
10774 (dw_line_info_entry): Use it.
10775 (dw_line_info_table, dw_line_info_table_p): New.
10776 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
10777 (line_info_table, line_info_label_num): Remove.
10778 (line_info_table_in_use): Remove.
10779 (separate_line_info_table): Remove.
10780 (separate_line_info_table_allocated): Remove.
10781 (separate_line_info_table_in_use): Remove.
10782 (LINE_INFO_TABLE_INCREMENT): Remove.
10783 (line_info_label_num): New.
10784 (cur_line_info_table): New.
10785 (text_section_line_info, cold_text_section_line_info): New.
10786 (separate_line_info): New.
10787 (SEPARATE_LINE_CODE_LABEL): Remove.
10788 (print_dwarf_line_table): Remove.
10789 (debug_dwarf): Don't dump it.
10790 (output_one_line_info_table): New.
10791 (output_line_info): Use it.
10792 (new_line_info_table): New.
10793 (set_cur_line_info_table): New.
10794 (dwarf2out_switch_text_section): Use it.
10795 (dwarf2out_begin_function): Likewise.
10796 (push_dw_line_info_entry): New.
10797 (dwarf2out_source_line): Rewrite for new line info tables.
10798 (dwarf2out_init): Remove dead initailizations.
10799
10800 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10801
10802 * opts.h (cl_option): Add comments to fields. Add bit-fields for
10803 various flags.
10804 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
10805 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
10806 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
10807 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
10808 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
10809 * opt-functions.awk (flag_init, switch_bit_fields): New.
10810 (switch_flags): Don't handle flags moved to bit-fields. Don't
10811 generate CL_MISSING_OK or CL_SAVE.
10812 * optc-gen.awk: Update to generate bit-field output as well as
10813 flags field.
10814 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
10815 bit-field instead of CL_REJECT_DRIVER flag.
10816 * opts-common.c (generate_canonical_option,
10817 decode_cmdline_option): Use bit-fields instead of CL_* flags.
10818 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
10819 instead of CL_REJECT_NEGATIVE flag.
10820 * toplev.c (print_switch_values): Use cl_report bit-field instead
10821 of CL_REPORT flag.
10822
10823 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10824
10825 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
10826 a zero minimum index only if it is redundant.
10827
10828 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
10829
10830 PR rtl-optimization/48381
10831 * ira-color.c (assign_hard_reg): Use hard reg set intersection
10832 instead of ira_class_hard_reg_index for calculating conflicting
10833 hard registers.
10834
10835 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
10836
10837 * cprop.c: Clean up hash table building.
10838 (reg_avail_info): Remove.
10839 (oprs_available_p): Remove.
10840 (record_last_reg_set_info): Remove.
10841 (record_last_set_info): Remove.
10842 (reg_available_p): New function.
10843 (gcse_constant_p): Do not treat unfolded conditions as constants.
10844 (make_set_regs_unavailable): New function.
10845 (hash_scan_set): Simplify with new reg_available_p.
10846 (compute_hash_table_work): Traverse insns stream only once.
10847 Do not compute reg_avail_info. Traverse insns in reverse order.
10848 Record implicit sets after recording explicit sets from the block.
10849
10850 2011-03-31 Michael Matz <matz@suse.de>
10851
10852 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
10853
10854 2011-03-31 Anatoly Sokolov <aesok@post.ru>
10855
10856 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
10857 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
10858 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10859 (h8300_mode_dependent_address_p): New function.
10860 (h8300_get_index): Make static.
10861
10862 2011-03-31 Jeff Law <law@redhat.com>
10863
10864 * reload1.c (elimination_effects): Fix typo in recent change.
10865
10866 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
10867 typo potentially leading to null pointer dereference.
10868
10869 * caller-save.c (new_saved_hard_reg): Eliminate return value.
10870 (setup_save_areas): Corresponding changes to avoid useless
10871 assignments.
10872
10873 * jump.c (reversed_comparison_code_parts): Avoid successive return
10874 statements when REVERSE_CONDITION is defined.
10875
10876 * expr.c (expand_assignment): Avoid useless assignments.
10877 (expand_expr_real_1): Likewise.
10878 (expand_expr_real_2): Avoid useless statements.
10879
10880 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
10881
10882 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10883
10884 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
10885 statements.
10886
10887 * stmt.c (expand_expr_stmt): Avoid useless assignment.
10888
10889 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10890
10891 PR target/47109
10892 * doc/tm.texi.in (TARGET_VERSION): Remove.
10893 * doc/tm.texi: Regenerate.
10894 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
10895 * collect2.c (main): Don't use TARGET_VERSION.
10896 * mips-tdump.c (main): Don't use TARGET_VERSION.
10897 * mips-tfile.c (main): Don't use TARGET_VERSION.
10898 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
10899 * config/rs6000/vxworksae.h: Remove.
10900 * config/alpha/alpha.h (TARGET_VERSION): Remove.
10901 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
10902 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
10903 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
10904 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10905 * config/arm/arm.h (TARGET_VERSION): Remove.
10906 * config/arm/coff.h (TARGET_VERSION): Remove.
10907 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
10908 * config/arm/elf.h (TARGET_VERSION): Remove.
10909 * config/arm/freebsd.h (TARGET_VERSION): Remove.
10910 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
10911 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
10912 * config/arm/pe.h (TARGET_VERSION): Remove.
10913 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
10914 * config/arm/semi.h (TARGET_VERSION): Remove.
10915 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
10916 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
10917 * config/arm/vxworks.h (TARGET_VERSION): Remove.
10918 * config/avr/avr.h (TARGET_VERSION): Remove.
10919 * config/bfin/bfin.h (TARGET_VERSION): Remove.
10920 * config/fr30/fr30.h (TARGET_VERSION): Remove.
10921 * config/frv/frv.h (TARGET_VERSION): Remove.
10922 * config/h8300/h8300.h (TARGET_VERSION): Remove.
10923 * config/i386/cygwin.h (TARGET_VERSION): Remove.
10924 * config/i386/darwin.h (TARGET_VERSION): Remove.
10925 * config/i386/darwin64.h (TARGET_VERSION): Remove.
10926 * config/i386/djgpp.h (TARGET_VERSION): Remove.
10927 * config/i386/freebsd.h (TARGET_VERSION): Remove.
10928 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
10929 * config/i386/gnu.h (TARGET_VERSION): Remove.
10930 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
10931 * config/i386/i386elf.h (TARGET_VERSION): Remove.
10932 * config/i386/linux.h (TARGET_VERSION): Remove.
10933 * config/i386/linux64.h (TARGET_VERSION): Remove.
10934 * config/i386/lynx.h (TARGET_VERSION): Remove.
10935 * config/i386/mingw32.h (TARGET_VERSION): Remove.
10936 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
10937 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
10938 * config/i386/netware.h (TARGET_VERSION): Remove.
10939 * config/i386/nto.h (TARGET_VERSION): Remove.
10940 * config/i386/openbsd.h (TARGET_VERSION): Remove.
10941 * config/i386/vxworks.h (TARGET_VERSION): Remove.
10942 * config/ia64/elf.h (TARGET_VERSION): Remove.
10943 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
10944 * config/ia64/hpux.h (TARGET_VERSION): Remove.
10945 * config/ia64/linux.h (TARGET_VERSION): Remove.
10946 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10947 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
10948 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10949 * config/lm32/lm32.h (TARGET_VERSION): Remove.
10950 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
10951 * config/m32c/m32c.h (TARGET_VERSION): Remove.
10952 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
10953 * config/m32r/m32r.h (TARGET_VERSION): Remove.
10954 * config/m68k/linux.h (TARGET_VERSION): Remove.
10955 * config/m68k/m68k.h (TARGET_VERSION): Remove.
10956 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
10957 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
10958 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
10959 * config/mep/mep.h (TARGET_VERSION): Remove.
10960 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
10961 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10962 * config/mips/iris6.h (MACHINE_TYPE): Remove.
10963 * config/mips/linux.h (TARGET_VERSION): Remove.
10964 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
10965 * config/mips/vxworks.h (TARGET_VERSION): Remove.
10966 * config/mmix/mmix.h (TARGET_VERSION): Remove.
10967 * config/mn10300/linux.h (TARGET_VERSION): Remove.
10968 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
10969 * config/pa/pa.h (TARGET_VERSION): Remove.
10970 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
10971 * config/picochip/picochip.h (TARGET_VERSION): Remove.
10972 * config/rs6000/aix.h (TARGET_VERSION): Remove.
10973 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
10974 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
10975 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
10976 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
10977 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
10978 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
10979 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
10980 * config/rs6000/linux.h (TARGET_VERSION): Remove.
10981 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
10982 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
10983 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
10984 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
10985 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
10986 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
10987 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
10988 * config/s390/linux.h (TARGET_VERSION): Remove.
10989 * config/s390/s390.h (TARGET_VERSION): Remove.
10990 * config/s390/tpf.h (TARGET_VERSION): Remove.
10991 * config/score/score.h (TARGET_VERSION): Remove.
10992 * config/sh/linux.h (TARGET_VERSION): Remove.
10993 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
10994 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
10995 * config/sh/sh.h (TARGET_VERSION): Remove.
10996 * config/sh/sh64.h (TARGET_VERSION): Remove.
10997 * config/sh/superh.h (TARGET_VERSION): Remove.
10998 * config/sh/vxworks.h (TARGET_VERSION): Remove.
10999 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11000 * config/sparc/linux.h (TARGET_VERSION): Remove.
11001 * config/sparc/linux64.h (TARGET_VERSION): Remove.
11002 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11003 TARGET_NAME32, TARGET_NAME): Remove.
11004 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11005 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11006 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11007 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11008 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11009 * config/spu/spu.h (TARGET_VERSION): Remove.
11010 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11011 * config/v850/v850.h (TARGET_VERSION): Remove.
11012 * config/vax/linux.h (TARGET_VERSION): Remove.
11013 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11014 * config/xtensa/elf.h (TARGET_VERSION): Remove.
11015 * config/xtensa/linux.h (TARGET_VERSION): Remove.
11016
11017 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11018
11019 PR target/48142
11020 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11021 frame-related from frame-unrelated adjustments to the stack pointer.
11022
11023 2011-03-31 Jakub Jelinek <jakub@redhat.com>
11024
11025 * common.opt (fdebug-types-section): Move earlier.
11026 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11027
11028 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
11029
11030 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11031 var.
11032
11033 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
11034
11035 * tree.h (CASE_CHAIN): Define.
11036 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11037 (gimple_redirect_edge_and_branch): Likewise.
11038
11039 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11040
11041 PR middle-end/48367
11042 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11043 calculation.
11044
11045 2011-03-30 Jeff Law <law@redhat.com>
11046
11047 * PR bootstrap/48371
11048 * reload1.c (reload): Fix botch in last change.
11049
11050 * reload.h (struct reload): Fix typo introduced in last change.
11051
11052 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11053
11054 * config/arm/arm.opt (mhard-float, msoft-float): Mark
11055 Undocumented. Remove help text.
11056 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11057 -mhard-float.
11058
11059 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11060
11061 * doc/options.texi (NegativeAlias): Document.
11062 (Alias): Mention NegativeAlias.
11063 * opt-functions.awk: Handle NegativeAlias.
11064 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
11065 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11066 * opts.h (CL_NEGATIVE_ALIAS): Define.
11067 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11068 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11069 OPT_mspe_.
11070 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11071 Alias entries.
11072 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11073 mno-spe and mno-isel instead of mspe=no and -misel=no.
11074
11075 2011-03-29 Mark Wielaard <mjw@redhat.com>
11076
11077 * common.opt (fdebug-types-section): New flag.
11078 * doc/invoke.texi: Document new -fno-debug-types-section flag.
11079 * dwarf2out.c (use_debug_types): New define.
11080 (struct die_struct): Mark die_id with GTY desc use_debug_types.
11081 (print_die): Guard output of type unit signatures using
11082 use_debug_types.
11083 (build_abbrev_table): Replace assert of dwarf_version >= 4
11084 with assert on use_debug_types.
11085 (size_of_die): Likewise.
11086 (unmark_dies): Likewise.
11087 (value_format): Decide AT_ref_external form on use_debug_types.
11088 (output_die): Replace dwarf_version version check guard with
11089 use_debug_types where appropriate.
11090 (modified_type_die): Likewise.
11091 (gen_reference_type_die): Likewise.
11092 (dwarf2out_start_source_file): Likewise.
11093 (dwarf2out_end_source_file): Likewise.
11094 (prune_unused_types_walk_attribs): Likewise.
11095 (dwarf2out_finish): Likewise.
11096
11097 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11098
11099 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11100
11101 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11102
11103 PR rtl-optimization/48332
11104 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11105 mode of input operand N and modeN to its actual mode.
11106
11107 2011-03-30 Jeff Law <law@redhat.com>
11108
11109 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11110 define accessor macro.
11111 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11112 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11113 (reg_equiv_init): Likewise.
11114 (reg_equivs_size): New variable.
11115 (reg_equiv_init_size): Remove.
11116 (allocate_initial_values): Move prototype to here from....
11117 * integrate.h (allocate_initial_values): Remove prototype.
11118 * integrate.c: Include reload.h.
11119 (allocate_initial_values): Corresponding changes.
11120 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11121 (fix_reg_equiv_init, no_equiv): Corresponding changes.
11122 (update_equiv_regs): Corresponding changes.
11123 (ira): Corresponding changes.
11124 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11125 (push_secondary_reload): Corresponding changes.
11126 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11127 (make_memloc, find_reloads_address): Corresponding changes.
11128 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11129 (find_reloads_address_1): Corresponding changes.
11130 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11131 (refers_to_regno_for_reload_p): Corresponding changes.
11132 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11133 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11134 * reload1.c: Include ggc.h.
11135 (grow_reg_equivs): New function.
11136 (replace_pseudos_in, reload): Corresponding changes.
11137 (calculate_needs_all_insns, alter_regs): Corresponding changes.
11138 (eliminate_regs_1, elimination_effects): Corresponding changes.
11139 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11140 (delete_output_reload): Likewise.
11141 * caller-save.c (mark_referenced_regs): Corresponding changes.
11142 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11143 * frv/predicates.md (frv_load_operand): Corresponding changes.
11144 * microblaze/microblaze.c (double_memory_operand): Corresponding
11145 changes.
11146 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11147 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
11148 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
11149 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11150 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11151 changes.
11152 * pa/pa.c (emit_move_sequence): Corresponding changes.
11153 * vax/vax.c (nonindexed_address_p): Corresponding changes.
11154
11155 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11156
11157 PR target/47551
11158 * config/arm/arm.c (coproc_secondary_reload_class): Handle
11159 structure modes. Don't check neon_vector_mem_operand for
11160 vector or structure modes.
11161
11162 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11163 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11164
11165 PR target/43590
11166 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11167 operand 1 and reshuffle the operands to match.
11168 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11169
11170 2011-03-30 Christian Schüler <cschueler@gmx.de>
11171
11172 PR driver/48208
11173 * config/c.opt (F): Added 'Driver' to -F option.
11174
11175 PR driver/48260
11176 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11177 handler function.
11178 * config/darwin.opt: Added '-arch' option.
11179
11180 2011-03-30 Nick Clifton <nickc@redhat.com>
11181
11182 * config/rx/rx.md: Add peepholes and patterns to combine
11183 extending loads and simple arithmetic instructions.
11184 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
11185 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11186 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
11187 modes to use pre-decrement and post-increment addressing.
11188 (rx_is_restricted_memory_address): Add range checking of REG+INT
11189 addresses.
11190 (rx_print_operand): Add support for %Q. Fix handling of %Q.
11191 (rx_memory_move_cost): Adjust cost of stores.
11192 (rx_adjust_insn_length): New function.
11193
11194 2011-03-30 Jakub Jelinek <jakub@redhat.com>
11195
11196 PR c/48305
11197 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11198 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11199 matching arg00/arg01 types.
11200
11201 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
11202
11203 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11204 last_location to UNKNOWN_LOCATION.
11205
11206 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
11207
11208 PR target/48349
11209 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11210 FLOAT_SSE_REGS.
11211
11212 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11213 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11214
11215 PR bootstrap/48337
11216 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11217 Init(PROCESSOR_V7).
11218 (sparc_cpu): Likewise.
11219 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11220 PROCESSOR_V7.
11221
11222 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11223
11224 PR target/48336
11225 PR middle-end/48342
11226 PR rtl-optimization/48345
11227 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11228 hard regs for given mode from profitable regs when doing secondary
11229 allocation.
11230
11231 2011-03-29 Jeff Law <law@redhat.com>
11232
11233 PR bootstrap/48327
11234 * tree-ssa-threadupdate.c (struct redirection_data): Remove
11235 do_not_duplicate field.
11236 (lookup_redirection_data): Corresponding changes.
11237 (create_duplicates): Always create a template block.
11238 (redirect_edges): Remove code which reused the original block
11239 when it was going to become unreachable code.
11240 (thread_block): Don't set do_not_duplicate field.
11241
11242 2011-03-29 Joseph Myers <joseph@codesourcery.com>
11243
11244 * lto-opts.c (register_user_option_p, lto_register_user_option):
11245 Make type argument unsigned.
11246 * lto-streamer.h (lto_register_user_option): Make type argument
11247 unsigned.
11248 * opth-gen.awk: Make CL_* macros unsigned.
11249 * opts-common.c (find_opt): Make lang_mask argument unsigned.
11250 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11251 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
11252 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
11253 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
11254 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
11255 (find_opt): Make lang_mask argument unsigned.
11256
11257 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11258
11259 PR rtl-optimization/48331
11260 PR rtl-optimization/48334
11261 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
11262 for any used algorithm.
11263
11264 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11265
11266 * ira-conflicts.c (build_object_conflicts): Add unused attribute
11267 to parent_max.
11268
11269 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
11270
11271 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
11272 (alpha_option_override): Don't set alpha_sr_alias_set.
11273 (emit_frame_store_1): Use gen_frame_mem rather than calling
11274 set_mem_alias_set.
11275 (alpha_expand_epilogue): Ditto.
11276
11277 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
11278
11279 PR tree-optimization/48290
11280 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
11281 vectorization, check that relevant phis in the basic block after
11282 the inner loop are really inner loop's exit phis.
11283
11284 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
11285
11286 PR debug/48190
11287 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
11288 (cached_dw_loc_list_def): New structure.
11289 (cached_dw_loc_list): New typedef.
11290 (cached_dw_loc_list_table): New variable.
11291 (cached_dw_loc_list_table_hash): New function.
11292 (cached_dw_loc_list_table_eq): Likewise.
11293 (add_location_or_const_value_attribute): Take a bool cache_p.
11294 Cache the list when the parameter is true.
11295 (gen_formal_parameter_die): Update caller.
11296 (gen_variable_die): Likewise.
11297 (dwarf2out_finish): Likewise.
11298 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
11299 while generating debug info for the decl.
11300 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
11301 (dwarf2out_init): Initialize cached_dw_loc_list_table.
11302 (resolve_addr): Cache the result of resolving a chain of
11303 location lists.
11304
11305 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
11306
11307 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
11308 conflict object hard regset nodes have intersecting hard reg sets.
11309
11310 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
11311 after regstat_init_n_sets_and_refs.
11312
11313 * ira.c: Add more comments at the top.
11314 (setup_stack_reg_pressure_class, setup_pressure_classes):
11315 Add comments how we compute the register pressure classes.
11316 (setup_allocno_and_important_classes): Add more comments.
11317 (setup_class_translate_array, reorder_important_classes)
11318 (setup_reg_class_relations): Add comments.
11319
11320 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
11321 start of the file.
11322
11323 * ira-color.c: Add 2011 to the Copyright line.
11324 (assign_hard_reg): Add more comments.
11325 (improve_allocation): Ditto.
11326
11327 * ira-costs.c: Add 2011 to the Copyright line.
11328 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
11329 comments.
11330 (setup_regno_cost_classes_by_mode): Ditto.
11331
11332 Initial patches from ira-improv branch:
11333
11334 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11335
11336 * ira-build.c (ira_create_object): Remove initialization of
11337 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
11338 (ira_create_allocno): Remove initialization of
11339 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
11340 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
11341 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11342 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
11343 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
11344 Initialize ALLOCNO_ADD_DATA.
11345 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
11346 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
11347 ALLOCNO_REG.
11348 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
11349 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
11350
11351 * ira.c (ira_reallocate): Remove.
11352 (setup_pressure_classes): Call
11353 ira_init_register_move_cost_if_necessary. Use
11354 ira_register_move_cost instead of ira_get_register_move_cost.
11355 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
11356 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
11357
11358 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
11359 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11360 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
11361 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
11362 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
11363 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
11364 Fix formatting.
11365 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
11366 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11367 (struct allocno_color_data): New.
11368 (allocno_color_data_t): New typedef.
11369 (allocno_color_data): New definition.
11370 (ALLOCNO_COLOR_DATA): New macro.
11371 (struct object_color_data): New.
11372 (object_color_data_t): New typedef.
11373 (object_color_data): New definition.
11374 (OBJECT_COLOR_DATA): New macro.
11375 (update_copy_costs, calculate_allocno_spill_cost): Call
11376 ira_init_register_move_cost_if_necessary. Use
11377 ira_register_move_cost instead of ira_get_register_move_cost.
11378 (move_spill_restore, update_curr_costs): Ditto.
11379 (allocno_spill_priority): Make it inline.
11380 (color_pass): Allocate and free allocno_color_dat and object_color_data.
11381 (struct coalesce_data, coalesce_data_t): New.
11382 (allocno_coalesce_data): New definition.
11383 (ALLOCNO_COALESCE_DATA): New macro.
11384 (merge_allocnos, coalesced_allocno_conflict_p): Use
11385 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
11386 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
11387 (coalesce_allocnos): Ditto.
11388 (setup_coalesced_allocno_costs_and_nums): Ditto.
11389 (collect_spilled_coalesced_allocnos): Ditto.
11390 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
11391 (setup_slot_coalesced_allocno_live_ranges): Ditto.
11392 (coalesce_spill_slots): Ditto.
11393 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
11394 free allocno_coalesce_data.
11395
11396 * ira-conflicts.c: Fix formatting.
11397 (process_regs_for_copy): Call
11398 ira_init_register_move_cost_if_necessary. Use
11399 ira_register_move_cost instead of ira_get_register_move_cost.
11400 (build_object_conflicts): Optimize.
11401
11402 * ira-costs.c (record_reg_classes): Optimize. Call
11403 ira_init_register_move_cost_if_necessary. Use
11404 ira_register_move_cost, ira_may_move_in_cost, and
11405 ira_may_move_out_cost instead of ira_get_register_move_cost and
11406 ira_get_may_move_cost.
11407 (record_address_regs): Ditto.
11408 (scan_one_insn): Optimize.
11409 (find_costs_and_classes): Optimize.
11410 (process_bb_node_for_hard_reg_moves): Call
11411 ira_init_register_move_cost_if_necessary. Use
11412 ira_register_move_cost instead of ira_get_register_move_cost.
11413
11414 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
11415 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
11416 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
11417 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
11418 definitions.
11419 (ira_initiate_emit_data, ira_finish_emit_data)
11420 (create_new_allocno): New functions.
11421 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
11422 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
11423 Use ira_register_move_cost instead of ira_get_register_move_cost.
11424
11425 * ira-int.h: Fix some comments.
11426 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
11427 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11428 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
11429 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
11430 add_data.
11431 (struct ira_allocno): Make mode and aclass a bitfield. Move other
11432 bitfield after mode. Make hard_regno a short int. Make
11433 hard_regno short. Remove first_coalesced_allocno and
11434 next_coalesced_allocno. Move mem_optimized_dest_p,
11435 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
11436 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
11437 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
11438 temp, colorable_p. Add new member add_data.
11439 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
11440 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
11441 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
11442 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
11443 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
11444 (ALLOCNO_ADD_DATA): New macro.
11445 (ira_emit_data_t): New typedef.
11446 (struct ira_emit_data): New. Move mem_optimized_dest_p,
11447 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
11448 from struct ira_allocno.
11449 (ALLOCNO_EMIT_DATA): New macro.
11450 (ira_allocno_emit_data, allocno_emit_reg): New.
11451 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
11452 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
11453 (OBJECT_ADD_DATA): New macro.
11454 (ira_reallocate): Remove.
11455 (ira_initiate_emit_data, ira_finish_emit_data): New.
11456 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
11457 (ira_init_register_move_cost_if_necessary): New.
11458 (ira_object_conflict_iter_next): Merge into
11459 ira_object_conflict_iter_cond.
11460 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
11461
11462 * ira-live.c (process_single_reg_class_operands): Call
11463 ira_init_register_move_cost_if_necessary. Use
11464 ira_register_move_cost instead of ira_get_register_move_cost.
11465
11466 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11467
11468 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
11469
11470 * ira-costs.c: Fix formatting.
11471 (cost_classes, cost_classes_num): Remove.
11472 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
11473 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
11474 (cost_classes_del, cost_classes_htab): New.
11475 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
11476 (initiate_regno_cost_classes, setup_cost_classes): New.
11477 (setup_regno_cost_classes_by_aclass): New.
11478 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
11479 (record_reg_classes): Use regno_cost_classes instead of
11480 cost_classes. Move checking opposite operand up.
11481 (record_address_regs): Use regno_cost_classes
11482 instead of cost_classes.
11483 (scan_one_insn): Ditto. Use always general register.
11484 (print_allocno_costs): Use regno_cost_classes instead of
11485 cost_classes.
11486 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
11487 (find_costs_and_classes): Set up cost classes for each registers.
11488 Use also their mode for this. Use regno_cost_classes instead of
11489 cost_classes.
11490 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
11491 cost_classes.
11492 (free_ira_costs, ira_init_costs): Don't use cost_classes.
11493 (ira_costs, ira_set_pseudo_classes): Call
11494 initiate_regno_cost_classes and finish_regno_cost_classes.
11495
11496 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
11497
11498 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
11499
11500 * target.def (ira_cover_classes): Remove.
11501
11502 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
11503
11504 * doc/tm.texi.in: Ditto.
11505
11506 * ira-conflicts.c: Remove mentioning cover classes from the file.
11507 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
11508 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
11509
11510 * targhooks.c (default_ira_cover_classes): Remove.
11511
11512 * targhooks.h (default_ira_cover_classes): Ditto.
11513
11514 * haifa-sched.c: Remove mentioning cover classes from the file.
11515 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11516 ira_pressure_classes and ira_pressure_classes_num instead of
11517 ira_reg_class_cover_size and ira_reg_class_cover. Use
11518 sched_regno_pressure_class instead of sched_regno_cover_class.
11519 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
11520 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11521
11522 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
11523 classes from the file.
11524 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
11525 (struct object_hard_regs, struct object_hard_regs_node): New.
11526 (struct ira_object): New members profitable_hard_regs,
11527 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
11528 (struct ira_allocno): Rename cover_class to aclass. Rename
11529 cover_class_cost and updated_cover_class_cost to class_cost and
11530 updated_class_cost. Remove splay_removed_p and
11531 left_conflict_size. Add new members colorable_p.
11532 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
11533 (ALLOCNO_COLORABLE_P): New macro.
11534 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
11535 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
11536 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
11537 (OBJECT_...): Rename parameter C to O.
11538 (OBJECT_PROFITABLE_HARD_REGS): New macro.
11539 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
11540 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
11541 (struct target_ira_int): New members x_ira_max_memory_move_cost,
11542 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
11543 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
11544 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
11545 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
11546 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
11547 x_ira_reg_class_subunion.
11548 (ira_max_memory_move_cost, ira_max_register_move_cost)
11549 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
11550 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
11551 (ira_important_class_nums, ira_reg_class_superunion): New macros.
11552 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
11553 (ira_reg_class_union): Rename to ira_reg_class_subunion.
11554 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11555 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11556 (ira_tune_allocno_costs_and_cover_classes): Rename to
11557 ira_tune_allocno_costs.
11558 (ira_debug_hard_regs_forest): New.
11559 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
11560 (ira_object_conflict_iter_next): Fix comments.
11561 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
11562 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
11563 cover_class to aclass.
11564 (ira_allocate_and_accumulate_costs): Ditto.
11565 (ira_allocate_and_set_or_copy_costs): Ditto.
11566
11567 * opts.c (decode_options): Remove ira_cover_class check.
11568
11569 * ira-color.c: Remove mentioning cover classes from the file. Use
11570 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
11571 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
11572 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11573 (splay-tree.h): Remove include.
11574 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
11575 before copy_freq_compare_func.
11576 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
11577 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
11578 New definitions.
11579 (hard_regs_roots, hard_regs_node_vec): Ditto.
11580 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
11581 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
11582 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
11583 (create_new_object_hard_regs_node): Ditto.
11584 (add_new_object_hard_regs_node_to_forest): Ditto.
11585 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
11586 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
11587 Ditto.
11588 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
11589 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
11590 (remove_unused_object_hard_regs_nodes): Ditto.
11591 (enumerate_object_hard_regs_nodes): Ditto.
11592 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
11593 (object_hard_regs_subnode_t): Ditto.
11594 (struct object_hard_regs_subnode): Ditto.
11595 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
11596 (setup_object_hard_regs_subnode_index): Ditto.
11597 (get_object_hard_regs_subnodes_num): Ditto.
11598 (form_object_hard_regs_nodes_forest): Ditto.
11599 (finish_object_hard_regs_nodes_tree): Ditto.
11600 (finish_object_hard_regs_nodes_forest): Ditto.
11601 (allocnos_have_intersected_live_ranges_p): Rename to
11602 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11603 (pseudos_have_intersected_live_ranges_p): Rename to
11604 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11605 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
11606 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
11607 (update_copy_costs): Remove assert. Skip cost update if the hard
11608 reg does not belong the class.
11609 (assign_hard_reg): Process only profitable hard regs.
11610 (uncolorable_allocnos_num): Make it scalar.
11611 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11612 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
11613 and ira_reg_class_max_nregs.
11614 (bucket_allocno_compare_func): Check frequency first.
11615 (sort_bucket): Add compare function as a parameter.
11616 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
11617 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
11618 (push_allocno_to_stack): Rewrite for checking new allocno
11619 colorability.
11620 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
11621 (push_only_colorable): Pass new parameter to sort_bucket.
11622 (push_allocno_to_spill): Remove.
11623 (allocno_spill_priority_compare): Make it inline and rewrite.
11624 (splay_tree_allocate, splay_tree_free): Remove.
11625 (allocno_spill_sort_compare): New function.
11626 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
11627 build and use splay tree. Choose first allocno in uncolorable
11628 allocno bucket to spill. Remove setting spill cost.
11629 (all_conflicting_hard_regs): Remove.
11630 (setup_allocno_available_regs_num): Check only profitable hard
11631 regs. Print info about hard regs nodes.
11632 (setup_allocno_left_conflicts_size): Remove.
11633 (put_allocno_into_bucket): Don't call
11634 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
11635 (improve_allocation): New.
11636 (color_allocnos): Call setup_profitable_hard_regs,
11637 form_object_hard_regs_nodes_forest, improve_allocation,
11638 finish_object_hard_regs_nodes_forest. Setup spill cost.
11639 (print_loop_title): Use pressure classes.
11640 (color_allocnso): Ditto.
11641 (do_coloring): Remove allocation and freeing splay_tree_node_pool
11642 and allocnos_for_spilling.
11643 (ira_sort_regnos_for_alter_reg): Don't setup members
11644 {first,next}_coalesced_allocno.
11645 (color): Remove allocating and freeing removed_splay_allocno_vec.
11646 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
11647 prohibited_class_mode_regs.
11648
11649 * ira-lives.c: Remove mentioning cover classes from the file. Fix
11650 formatting.
11651 (update_allocno_pressure_excess_length): Use pressure classes.
11652 (inc_register_pressure, dec_register_pressure): Check for pressure
11653 class.
11654 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
11655 pressure class. Use ira_reg_class_nregs instead of
11656 ira_reg_class_max_nregs.
11657 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
11658 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
11659 (single_reg_class): Use ira_reg_class_nregs instead of
11660 ira_reg_class_max_nregs.
11661 (process_bb_node_lives): Use pressure classes.
11662
11663 * ira-emit.c: Remove mentioning cover classes from the file. Use
11664 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
11665 (change_loop): Use pressure classes.
11666 (modify_move_list): Call ira_set_allocno_class instead of
11667 ira_set_allocno_cover_class.
11668
11669 * ira-build.c: Remove mentioning cover classes from the file. Use
11670 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
11671 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
11672 ALLOCNO_UPDATED_CLASS_COST instead of
11673 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11674 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
11675 (ira_create_allocno): Remove initialization of
11676 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
11677 ALLOCNO_COLORABLE_P.
11678 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11679 Update conflict regs for the objects.
11680 (create_cap_allocno): Remove assert. Don't propagate
11681 ALLOCNO_AVAILABLE_REGS_NUM.
11682 (ira_free_allocno_costs): New function.
11683 (finish_allocno): Change a part of code into call of
11684 ira_free_allocno_costs.
11685 (low_pressure_loop_node_p): Use pressure classes.
11686 (object_range_compare_func): Don't compare classes.
11687 (setup_min_max_conflict_allocno_ids): Ditto.
11688
11689 * loop-invariant.c: Remove mentioning cover classes from the file.
11690 Use ira_pressure_classes and ira_pressure_classes_num instead of
11691 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
11692 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
11693 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11694 Use reg_allocno_class instead of reg_cover_class.
11695 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
11696 STACK_REG_COVER_CLASS.
11697 (get_regno_cover_class): Rename to get_regno_pressure_class.
11698 (move_loop_invariants): Initialize and finalize regstat.
11699
11700 * ira.c: Remove mentioning cover classes from the file. Add
11701 comments about coloring without cover classes. Use ALLOCNO_CLASS
11702 instead of ALLOCNO_COVER_CLASS. Fix formatting.
11703 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
11704 setup_class_subset_and_memory_move_costs.
11705 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
11706 (setup_cover_and_important_classes): Rename to
11707 setup_allocno_and_important_classes.
11708 (setup_class_translate_array): New.
11709 (setup_class_translate): Call it for allocno and pressure classes.
11710 (cover_class_order): Rename to allocno_class_order.
11711 (comp_reg_classes_func): Use ira_allocno_class_translate instead
11712 of ira_class_translate.
11713 (reorder_important_classes): Set up ira_important_class_nums.
11714 (setup_reg_class_relations): Set up ira_reg_class_superunion.
11715 (print_class_cover): Rename to print_classes. Add parameter.
11716 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11717 Print pressure classes too.
11718 (find_reg_class_closure): Rename to find_reg_classes. Don't call
11719 setup_reg_subclasses.
11720 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11721 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11722 (setup_prohibited_class_mode_regs): Use
11723 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
11724 (clarify_prohibited_class_mode_regs): New function.
11725 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
11726 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
11727 (ira_init_once): Initialize them.
11728 (free_register_move_costs): Process them.
11729 (ira_init): Move calls of find_reg_classes and
11730 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
11731 Call clarify_prohibited_class_mode_regs.
11732 (ira_no_alloc_reg): Remove.
11733 (too_high_register_pressure_p): Use pressure classes.
11734
11735 * sched-deps.c: Remove mentioning cover classes from the file.
11736 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11737 ira_pressure_classes and ira_pressure_classes_num instead of
11738 ira_reg_class_cover_size and ira_reg_class_cover.
11739 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
11740 sched_regno_pressure_class instead of sched_regno_cover_class.
11741 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
11742 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11743
11744 * ira.h: Add 2010 to Copyright.
11745 (ira_no_alloc_reg): Remove external.
11746 (struct target_ira): Rename x_ira_hard_regno_cover_class,
11747 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
11748 x_ira_class_translate to x_ira_hard_regno_allocno_class,
11749 x_ira_allocno_classes_num, x_ira_allocno_classes, and
11750 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
11751 x_ira_pressure_classes, x_ira_pressure_class_translate, and
11752 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
11753 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
11754 x_ira_no_alloc_regs.
11755 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11756 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
11757 ira_allocno_classes_num and ira_allocno_classes.
11758 (ira_class_translate): Rename to ira_allocno_class_translate.
11759 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
11760 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
11761 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11762 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
11763 (ira_no_alloc_regs): New.
11764
11765 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
11766 classes from the file. Use ALLOCNO_CLASS instead of
11767 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
11768 ALLOCNO_COVER_CLASS_COST.
11769 (regno_cover_class): Rename to regno_aclass.
11770 (record_reg_classes): Use ira_reg_class_subunion instead of
11771 ira_reg_class_union.
11772 (record_address_regs): Check overflow.
11773 (scan_one_insn): Ditto.
11774 (print_allocno_costs): Print total mem cost fore regional allocation.
11775 (print_pseudo_costs): Use REG_N_REFS.
11776 (find_costs_and_classes): Use classes intersected with them on the
11777 1st pass. Check overflow. Use ira_reg_class_subunion instead of
11778 ira_reg_class_union. Use ira_allocno_class_translate and
11779 regno_aclass instead of ira_class_translate and regno_cover_class.
11780 Modify code for finding regno_aclass. Setup preferred classes for
11781 the next pass.
11782 (setup_allocno_cover_class_and_costs): Rename to
11783 setup_allocno_class_and_costs. Use regno_aclass instead of
11784 regno_cover_class. Use ira_set_allocno_class instead of
11785 ira_set_allocno_cover_class.
11786 (init_costs, finish_costs): Use regno_aclass instead of
11787 regno_cover_class.
11788 (ira_costs): Use setup_allocno_class_and_costs instead of
11789 setup_allocno_cover_class_and_costs.
11790 (ira_tune_allocno_costs_and_cover_classes): Rename to
11791 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
11792 by processing objects. Use ira_reg_class_max_nregs instead of
11793 ira_reg_class_nregs.
11794
11795 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
11796
11797 * sched-int.h: Remove mentioning cover classes from the file.
11798 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
11799
11800 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
11801 classes from the file.
11802 (struct reg_pref): Rename coverclass into allocnoclass.
11803 (reg_cover_class): Rename to reg_allocno_class.
11804
11805 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
11806
11807 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
11808
11809 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
11810
11811 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
11812
11813 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
11814
11815 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
11816
11817 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
11818
11819 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
11820
11821 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
11822
11823 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
11824
11825 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
11826 (i386_ira_cover_classes): Ditto.
11827
11828 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
11829
11830 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
11831
11832 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
11833
11834 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
11835
11836 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
11837
11838 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
11839
11840 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
11841 (mips_ira_cover_classes): Ditto.
11842
11843 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
11844
11845 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
11846
11847 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
11848
11849 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
11850
11851 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
11852
11853 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
11854 (IRA_COVER_CLASSES_VSX): Ditto.
11855
11856 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
11857 (rs6000_ira_cover_classes): Ditto.
11858
11859 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
11860
11861 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
11862
11863 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
11864
11865 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
11866
11867 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
11868
11869 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
11870
11871 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
11872
11873 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
11874
11875 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
11876
11877 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
11878
11879 2011-03-29 Jakub Jelinek <jakub@redhat.com>
11880
11881 PR debug/48253
11882 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
11883 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
11884 dw_fde_unlikely_section_end_label, cold_in_std_section,
11885 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
11886 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
11887 fields.
11888 (output_fde): Use dw_fde_second_{begin,end} if second is
11889 true, otherwise dw_fde_{begin,end}.
11890 (output_call_frame_info): Test dw_fde_second_begin != NULL
11891 instead of dw_fde_switched_sections.
11892 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
11893 fields, initialize new fields. Initialize in_std_section
11894 unconditionally from the first partition.
11895 (dwarf2out_end_epilogue): Don't override dw_fde_end when
11896 dw_fde_second_begin is non-NULL.
11897 (dwarf2out_switch_text_section): Stop initializing removed
11898 dw_fde_struct fields, initialize new fields, initialize
11899 also dw_fde_end here. Set dw_fde_switch_cfi even when
11900 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
11901 (struct var_loc_list_def): Add last_before_switch field.
11902 (arange_table, arange_table_allocated, arange_table_in_use,
11903 ARANGE_TABLE_INCREMENT, add_arange): Removed.
11904 (size_of_aranges): Count !in_std_section and !second_in_std_section
11905 hunks in fdes, instead of looking at arange_table_in_use.
11906 (output_aranges): Add aranges_length argument, don't call
11907 size_of_aranges here. Instead of using aranges_table*
11908 emit ranges for fdes when !in_std_section resp.
11909 !second_in_std_section.
11910 (dw_loc_list): Break ranges crossing section switch.
11911 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
11912 use dw_fde_second_end instead of dw_fde_end as end of last range.
11913 (gen_subprogram_die): Don't call add_arange. Use
11914 dw_fde_{begin,end} for first partition and if switched
11915 section dw_fde_second_{begin,end} for the second.
11916 (var_location_switch_text_section_1,
11917 var_location_switch_text_section): New functions.
11918 (dwarf2out_begin_function): Initialize cold_text_section even
11919 when function_section () isn't text_section.
11920 (prune_unused_types): Don't walk arange_table.
11921 (dwarf2out_finish): Don't needlessly test
11922 flag_reorder_blocks_and_partition when testing cold_text_section_used.
11923 If info_section_emitted, call size_of_aranges and if it indicates
11924 non-empty .debug_aranges, call output_aranges with the computed
11925 size. Stop using removed dw_fde_struct fields, use
11926 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
11927 for second.
11928
11929 PR debug/48203
11930 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
11931 create ENTRY_VALUE if incoming or address of incoming's MEM
11932 is a hard REG.
11933 * dwarf2out.c (mem_loc_descriptor): Don't emit
11934 DW_OP_GNU_entry_value of DW_OP_fbreg.
11935 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
11936 on ENTRY_VALUE is able to find the canonical parameter VALUE.
11937 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
11938 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
11939 ENTRY_VALUE_EXPs.
11940 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
11941 is a REG_P or MEM_P with REG_P address, compute hash directly
11942 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
11943 (preserve_only_constants): Don't clear VALUES forwaring
11944 ENTRY_VALUE to some other VALUE.
11945
11946 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
11947
11948 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
11949 instead of GEN_INT.
11950
11951 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11952
11953 * cfgexpand.c (expand_gimple_cond): Always set the source location and
11954 block before expanding the statement.
11955 (expand_gimple_stmt_1): Likewise. Set them here...
11956 (expand_gimple_stmt): ...and not here. Tidy.
11957 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
11958 unknown.
11959
11960 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11961
11962 * Makefile.in: New rule for cprop.o.
11963 * gcse.c: Move constant/copy propagation to cprop.c.
11964 (compute_local_properties): Only handle expression tables.
11965 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
11966 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
11967 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
11968 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
11969 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
11970 compute_cprop_data, find_used_regs, try_replace_reg,
11971 find_avail_set, cprop_jump, constprop_register, cprop_insn,
11972 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
11973 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
11974 find_bypass_set, reg_killed_on_edge, bypass_block,
11975 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
11976 execute_rtl_cprop, pass_rtl_cprop): Move to...
11977 * cprop.c: ...here. New file, constant/copy propagation for RTL
11978 moved from gcse.c to here with minor cleanups in duplicated code.
11979
11980 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
11981
11982 * config/i386/i386.c (flag_opts): Fix a typo in
11983 -mavx256-split-unaligned-store.
11984
11985 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11986
11987 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11988 LIBCALL_VALUE): Remove macros.
11989 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11990 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11991 (h8300_function_value, h8300_libcall_value,
11992 h8300_function_value_regno_p): New functions.
11993
11994 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11995
11996 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
11997
11998 2011-03-28 Jeff Law <law@redhat.com>
11999
12000 * tree-ssa-threadupdate.c (redirect_edges): Call
12001 create_edge_and_update_destination_phis as needed.
12002 (create_edge_and_update_destination_phis): Accept new BB argument.
12003 All callers updated.
12004 (thread_block): Do not update the profile when threading around
12005 intermediate blocks.
12006 (thread_single_edge): Likewise.
12007 (determine_bb_domination_status): If BB is not a successor of the
12008 loop header, return NONDOMINATING.
12009 (register_jump_thread): Note when we register a jump thread around
12010 an intermediate block.
12011 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12012 (thread_across_edge): Use it.
12013
12014 2011-03-28 Tristan Gingold <gingold@adacore.com>
12015
12016 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12017 when for_return is 2.
12018
12019 2011-03-28 Jeff Law <law@redhat.com>
12020
12021 * var-tracking.c (canonicalize_values_mark): Delete unused
12022 lhs assignment.
12023 (canonicalize_values_star, set_variable_part): Likewise.
12024 (clobber_variable_part, delete_variable_part): Likewise.
12025
12026 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12027
12028 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12029
12030 2011-03-28 Martin Jambor <mjambor@suse.cz>
12031
12032 * tree-inline.c (expand_call_inline): Do not check that destination
12033 node is analyzed.
12034 (optimize_inline_calls): Assert that destination node is analyzed.
12035 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12036 not call tree_lowering_passes.
12037 * cgraph.h (cgraph_analyze_function): Declare.
12038 * cgraphunit.c (cgraph_analyze_function): Make public.
12039
12040 2011-03-28 Joseph Myers <joseph@codesourcery.com>
12041
12042 * config/sparc/sparc-opts.h: New.
12043 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12044 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12045 (sparc_option_override): Store processor_type enumeration rather
12046 than string in cpu_default. Remove name and enumeration from
12047 cpu_table. Directly default -mcpu then default -mtune from -mcpu
12048 without using sparc_select. Use target_flags_explicit instead of
12049 fpu_option_set.
12050 * config/sparc/sparc.h (enum processor_type): Move to
12051 sparc-opts.h.
12052 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12053 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12054 HeaderInclude entry.
12055 (mcpu=, mtune=): Use Var and Enum.
12056 (sparc_processor_type): New Enum and EnumValue entries.
12057
12058 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12059 Iain Sandoe <iains@gcc.gnu.org>
12060
12061 PR target/48245
12062 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12063
12064 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12065
12066 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12067 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12068 Insert new statements at it in lieu of STMT.
12069 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12070 * tree-vect-stmts.c (vectorizable_store): Likewise.
12071 (vectorizable_load): Likewise.
12072
12073 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
12074
12075 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12076 (divtf3): Ditto.
12077 (multf3): Ditto.
12078 (subtf3): Ditto.
12079
12080 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12081
12082 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12083 unaligned 256bit load/store.
12084 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12085 (*avx_movdqu<avxmodesuffix>): Likewise.
12086
12087 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12088
12089 PR target/48288
12090 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12091 * config/pa/pa.md (iordi3): Use new predicate in expander.
12092 (iorsi3): Likewise.
12093
12094 2011-03-27 Anatoly Sokolov <aesok@post.ru>
12095
12096 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12097 FUNCTION_VALUE_REGNO_P): Remove macros.
12098 * config/mips/mips-protos.h (mips_function_value): Remove.
12099 * config/mips/mips.c (mips_function_value): Rename to...
12100 (mips_function_value_1): ... this. Make static. Handle receiving
12101 the function type in 'fn_decl_or_type' argument.
12102 (mips_function_value, mips_libcall_value,
12103 mips_function_value_regno_p): New function.
12104 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12105 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12106
12107 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12108
12109 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12110 and -mavx256-split-unaligned-store.
12111 (ix86_option_override_internal): Split 32-byte AVX unaligned
12112 load/store by default.
12113 (ix86_avx256_split_vector_move_misalign): New.
12114 (ix86_expand_vector_move_misalign): Use it.
12115
12116 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12117 -mavx256-split-unaligned-store.
12118
12119 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12120 256bit load/store. Generate unaligned store on misaligned memory
12121 operand.
12122 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12123 256bit load/store.
12124 (*avx_movdqu<avxmodesuffix>): Likewise.
12125
12126 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12127 -mavx256-split-unaligned-store.
12128
12129 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12130
12131 PR target/38598
12132 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12133 Update commentary.
12134
12135 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12136
12137 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12138 opno arguments with an expand_operand. Use create_input_operand.
12139 (mips_prepare_builtin_target): Delete.
12140 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12141 functions.
12142 (mips_expand_builtin_direct): Use create_output_operand and
12143 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
12144 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
12145 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12146
12147 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
12148
12149 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12150 function.
12151 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12152
12153 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12154
12155 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12156 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
12157 basic blocks and call commit_edge_insertions directly.
12158 (fixup_abnormal_edges): Move from here to...
12159 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
12160 on the edges and return whether some have actually been inserted.
12161 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12162 compensation code.
12163
12164 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
12165
12166 PR rtl-optimization/48144
12167 * sel-sched-ir.c (merge_history_vect): Factor out from ...
12168 (merge_expr_data): ... here.
12169 (av_set_intersect): Rename to av_set_code_motion_filter.
12170 Update all callers. Call merge_history_vect when an expression
12171 is found in both sets.
12172 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12173
12174 2011-03-26 Alan Modra <amodra@gmail.com>
12175
12176 * config/rs6000/predicates.md (word_offset_memref_op): Handle
12177 cmodel medium addresses.
12178 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12179 64-bit gpr loads and stores.
12180 (rs6000_secondary_reload_ppc64): New function.
12181 * config/rs6000/rs6000-protos.h: Declare it.
12182 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12183
12184 2011-03-26 Alan Modra <amodra@gmail.com>
12185
12186 PR target/47487
12187 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12188 GNU Go in traceback table.
12189
12190 2011-03-25 Richard Henderson <rth@redhat.com>
12191
12192 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12193 if there are exactly 6 operands.
12194 (set_storage_via_setmem): Similarly.
12195
12196 2011-03-25 Kai Tietz <ktietz@redhat.com>
12197
12198 * collect2.c (write_c_file_stat): Handle backslash
12199 as right-hand directory separator.
12200 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12201 checking just for slash.
12202 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12203 instead of checking for trailing slash.
12204 * gcc.c (record_temp_file): Use filename_cmp instead
12205 of strcmp.
12206 (do_spec_1): Likewise.
12207 (replace_outfile_spec_function): Likewise.
12208 (is_directory): Use filename_ncmp instead of strncmp.
12209 (print_multilib_info): Likewise.
12210 * gcov.c (find_source): Use filename_cmp instead
12211 instead of strcmp.
12212 (make_gcov_file_name): Fix order of slash/backslash
12213 checks.
12214 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12215 (add_standard_paths): Likewise.
12216 * mips-tfile.c (saber_stop): Handle backslash.
12217 * prefix.c (update_path): Use filename_ncmp instead of
12218 strncmp.
12219 * profile.c (output_location): Use filename_cmp instead
12220 of strcmp.
12221 * read-md.c (handle_toplevel_file): Handle backslash.
12222 * tlink.c (frob_extension): Likewise.
12223 * tree-cfg.c (same_line_p): Use filename_cmp instead of
12224 strcmp.
12225 * tree-dump.c (dequeue_and_dump): Handle backslash.
12226 * tree.c (get_file_function_name): Likewise.
12227 * gengtype.c (read_input_list): Likewise.
12228 (get_file_realbasename): Likewise.
12229 (get_output_file_with_visibility): Use filename_cmp
12230 instead of strcmp.
12231
12232 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
12233
12234 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12235 case to VFPv1.
12236
12237 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12238
12239 * fold-const.c (expr_location_or): New function.
12240 (fold_truth_not_expr): Call it.
12241
12242 2011-03-25 Jeff Law <law@redhat.com>
12243
12244 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
12245 va_end.
12246 * c-family/c-common.c (def_fn_type): Likewise.
12247 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12248 * emit-rtl.c (gen_rtvec): Likewise.
12249 * lto/lto-lang.c (def_fn_type): Likewise.
12250
12251 2011-03-25 Richard Guenther <rguenther@suse.de>
12252
12253 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
12254 also generate copies.
12255 (fini_copy_prop): Handle constant values properly.
12256
12257 2011-03-25 Jakub Jelinek <jakub@redhat.com>
12258
12259 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
12260 mode size instead of bitsize with DWARF2_ADDR_SIZE.
12261 (hash_loc_operands, compare_loc_operands): Handle
12262 DW_OP_GNU_entry_value.
12263
12264 2011-03-25 Kai Tietz <ktietz@redhat.com>
12265
12266 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
12267 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
12268 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
12269 comment and use macro TARGET_64BIT_MS_ABI instead.
12270 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
12271 and change default behavior for 32-bit MS_ABI.
12272 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
12273 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
12274 32-bit, too.
12275 (ix86_cfun_abi): Likewise.
12276 (ix86_maybe_switch_abi): Adjust comment.
12277 (init_cumulative_args): Check for bit-ness in MS_ABI case.
12278 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
12279 instead of checking for SYSV_ABI.
12280 (ix86_nsaved_sseregs): Likewise.
12281 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
12282 to 16 bytes.
12283 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
12284 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
12285 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
12286 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
12287 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
12288
12289 2011-03-25 Richard Guenther <rguenther@suse.de>
12290
12291 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
12292 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12293 (verify_gimple): Remove.
12294 * tree-cfg.c (verify_gimple_call): Merge verification
12295 from verify_stmts.
12296 (verify_gimple_phi): Merge verification from verify_stmts.
12297 (verify_gimple_label): New function.
12298 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
12299 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12300 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
12301 (verify_stmts): Rename to verify_gimple_in_cfg.
12302 (verify_gimple_in_cfg): New function.
12303 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
12304 * tree-ssa.c (verify_ssa): Likewise.
12305 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
12306
12307 2011-03-25 Richard Guenther <rguenther@suse.de>
12308
12309 * passes.c (init_optimization_passes): Add FRE pass after
12310 early SRA.
12311
12312 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
12313 Andrew Stubbs <ams@codesourcery.com>
12314
12315 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
12316 for Cortex-A8.
12317 (arm_movdi_vfp_cortexa8): New pattern.
12318 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
12319 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
12320 instructions when tuning for Cortex-A8. Set attribute "arch".
12321 * config/arm/arm.md: Move include arm-tune.md up a bit.
12322 (define_attr "arch"): Add "onlya8" and "nota8" values.
12323 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
12324
12325 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12326
12327 PR bootstrap/48282
12328 Revert:
12329 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12330
12331 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12332 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12333 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12334 * passes.c (init_optimization_passes): Move
12335 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12336
12337 2011-03-25 Kai Tietz <ktietz@redhat.com>
12338
12339 * c-typeck.c (comptypes_internal): Replace target
12340 hook call of comp_type_attributes by version in tree.c file.
12341 * gimple.c (gimple_types_compatible_p_1): Likewise.
12342 * tree-ssa.c (useless_type_conversion_p): Likewise.
12343 * tree.c (build_type_attribute_qual_variant): Likewise.
12344 (attribute_value_equal): New static helper function.
12345 (comp_type_attributes): New function.
12346 (merge_attributes): Use attribute_value_equal for comparison.
12347 (attribute_list_contained): Likewise.
12348 * tree.h (comp_type_attributes): New prototype.
12349
12350 2011-03-25 Richard Guenther <rguenther@suse.de>
12351
12352 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
12353 of complex types at -O0.
12354 (verify_gimple_assign_binary): Likewise.
12355 (verify_gimple_assign_ternary): Likewise.
12356
12357 2011-03-24 Mark Wielaard <mjw@redhat.com>
12358
12359 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
12360 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
12361
12362 2011-03-24 Mark Wielaard <mjw@redhat.com>
12363
12364 PR debug/48041
12365 * dwarf2out.c (output_abbrev_section): Only write table when
12366 abbrev_die_table_in_use > 1.
12367
12368 2011-02-24 Richard Henderson <rth@redhat.com>
12369
12370 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
12371 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
12372 (alpha_expand_unaligned_load_words): Use extql.
12373 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
12374 (emit_insxl): Handle all modes for consistency.
12375
12376 2011-02-24 Richard Henderson <rth@redhat.com>
12377
12378 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
12379 (alpha_expand_unaligned_load): Likewise.
12380 (alpha_expand_unaligned_store): Likewise.
12381 (alpha_expand_unaligned_load_words): Likewise.
12382 (alpha_expand_unaligned_store_words): Likewise.
12383 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
12384 (alpha_split_lock_test_and_set_12): Likewise.
12385 (print_operand, alpha_fold_builtin_extxx): Likewise.
12386 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
12387 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
12388 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
12389 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
12390 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
12391 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
12392 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
12393 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
12394 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
12395 (extwl, extll, extql): Similarly.
12396 (inswh, inslh, insqh): Similarly.
12397 (mskbl, mskwl, mskll, mskql): Similarly.
12398 (mskwh, msklh, mskqh): Similarly.
12399
12400 2011-02-24 Richard Henderson <rth@redhat.com>
12401
12402 * config/alpha/alpha.md (attribute isa): Add er, ner.
12403 (attribute enabled): Handle them.
12404 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
12405
12406 2011-02-24 Richard Henderson <rth@redhat.com>
12407
12408 * config/alpha/alpha.md (attribute isa): Add vms.
12409 (attribute enabled): Handle it.
12410 (*movsf): Merge *movsf_{nofix,fix,nofp}.
12411 (*movdf): Merge *movdf_{nofix,fix,nofp}.
12412 (*movtf): Rename from *movtf_internal for consistency.
12413 (*movsi): Merge with *movsi_nt_vms.
12414 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
12415 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
12416 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
12417 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
12418
12419 2011-02-24 Richard Henderson <rth@redhat.com>
12420
12421 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
12422 (extendqisi2, extendhisi2): Likewise.
12423 (extendqidi2): Simplify BWX/non-BWX expansions.
12424 (extendhidi2): Similarly.
12425
12426 2011-02-24 Richard Henderson <rth@redhat.com>
12427
12428 * config/alpha/alpha.md (attribute isa): New.
12429 (attribute enabled): New.
12430 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
12431 (zero_extendqisi2, zero_extendqidi2): Similarly.
12432 (zero_extendhisi2, zero_extendhidi2): Similarly.
12433 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
12434
12435 2011-02-24 Richard Henderson <rth@redhat.com>
12436
12437 * config/alpha/predicates.md (input_operand): Revert last change;
12438 update comment to mention 32-bit VMS rather than Windows.
12439
12440 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12441
12442 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12443 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12444 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12445 * passes.c (init_optimization_passes): Move
12446 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12447
12448 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12449
12450 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
12451
12452 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12453
12454 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
12455 correctly.
12456
12457 2011-03-24 Jakub Jelinek <jakub@redhat.com>
12458
12459 PR debug/48204
12460 * simplify-rtx.c (simplify_const_unary_operation): Call
12461 real_convert when changing mode class with FLOAT_EXTEND.
12462
12463 2011-03-24 Nick Clifton <nickc@redhat.com>
12464
12465 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
12466 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12467 * config/rx/rx.c (rx_option_override): Set align_jumps,
12468 align_loops and align_labels if not set by the user.
12469 (rx_align_for_label): New function.
12470 (rx_max_skip_for_label): New function.
12471 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
12472 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
12473 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
12474 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
12475 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
12476
12477 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12478
12479 PR rtl-optimization/48263
12480 * optabs.c (expand_binop_directly): Reinstate convert_modes code
12481 and original commutative_p handling. Use maybe_gen_insn.
12482
12483 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12484
12485 * reload.c (find_reloads_subreg_address): Add address_reloaded
12486 parameter and return true there if the full address has been
12487 reloaded.
12488 (find_reloads_toplev): Pass address_reloaded flag.
12489 (find_reloads_address_1): Don't use address_reloaded parameter.
12490
12491 2011-03-24 Jeff Law <law@redhat.com>
12492
12493 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
12494 unused variable "ann".
12495 (remove_unused_locals): Likewise.
12496
12497 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
12498 statement.
12499
12500 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
12501 after it is freed.
12502
12503 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12504
12505 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
12506 for invalid symbolic addresses.
12507 (s390_secondary_reload): Don't use s390_check_symref_alignment for
12508 larl operands.
12509
12510 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12511
12512 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
12513 the argument in calls to fold_truth_not_expr.
12514
12515 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12516
12517 * tree.c (record_node_allocation_statistics): New function.
12518 (make_node_stat, copy_node_stat, build_string): Call it.
12519 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
12520 (build1_stat, build_omp_clause): Likewise.
12521
12522 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12523
12524 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
12525 last commit.
12526
12527 2011-03-24 Richard Guenther <rguenther@suse.de>
12528
12529 PR tree-optimization/48271
12530 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
12531 blocks that still exist.
12532
12533 2011-03-24 Richard Guenther <rguenther@suse.de>
12534
12535 PR tree-optimization/48270
12536 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
12537 not free datarefs before ddrs.
12538
12539 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12540
12541 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
12542 from the address built for a reference with variable offset.
12543
12544 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12545
12546 PR target/48237
12547 * config/i386/i386.md (*movdf_internal_rex64): Do not split
12548 alternatives that can be handled with movq or movabsq insn.
12549 (*movdf_internal): Disable for !TARGET_64BIT.
12550 (*movdf_internal_nointeger): Ditto.
12551 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
12552
12553 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12554
12555 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12556 (FUNCTION_ARG_ADVANCE): Likewise.
12557 * tm.texi.in: Change references to them to hook references.
12558 * tm.texi: Regenerate.
12559 * targhooks.c (default_function_arg): Eliminate check for target macro.
12560 (default_function_incoming_arg): Likewise.
12561 (default_function_arg_advance): Likewise.
12562 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12563 (function_arg_advance): Likewise.
12564 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12565
12566 2011-03-24 Richard Guenther <rguenther@suse.de>
12567
12568 PR middle-end/48269
12569 * tree-object-size.c (addr_object_size): Do not double-account
12570 for MEM_REF offsets.
12571
12572 2011-03-24 Diego Novillo <dnovillo@google.com>
12573
12574 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
12575 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
12576 (lto_input_data_block): Move from lto-opts.c. Make extern.
12577 Update all users.
12578 (lto_input_string): Rename from input_string. Make extern.
12579 Update all users.
12580 * lto-streamer-out.c (lto_output_string_with_length): Rename from
12581 output_string_with_length.
12582 Output 0 to indicate a non-NULL string. Update all callers to
12583 not emit 0.
12584 (lto_output_string): Rename from output_string. Make extern.
12585 Update all users.
12586 (lto_output_decl_state_streams): Make extern.
12587 (lto_output_decl_state_refs): Make extern.
12588 * lto-streamer.h (lto_input_string): Declare.
12589 (lto_input_data_block): Declare.
12590 (lto_output_string): Declare.
12591 (lto_output_string_with_length): Declare.
12592 (lto_output_decl_state_streams): Declare.
12593 (lto_output_decl_state_refs): Declare.
12594
12595 2011-03-24 Richard Guenther <rguenther@suse.de>
12596
12597 PR tree-optimization/46562
12598 * tree.c (build_invariant_address): New function.
12599 * tree.h (build_invariant_address): Declare.
12600 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
12601 a renamed function moved ...
12602 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
12603 Take valueization callback parameter.
12604 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
12605 * gimple-fold.h: New file.
12606 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
12607 (ccp_fold, fold_const_aggregate_ref,
12608 fold_ctor_reference, fold_nonarray_ctor_reference,
12609 fold_array_ctor_reference, fold_string_cst_ctor_reference,
12610 get_base_constructor): Move ...
12611 * gimple-fold.c: ... here.
12612 (gimple_fold_stmt_to_constant_1): New function
12613 split out from ccp_fold. Take a valueization callback parameter.
12614 Valueize all operands.
12615 (gimple_fold_stmt_to_constant): New wrapper function.
12616 (fold_const_aggregate_ref_1): New function split out from
12617 fold_const_aggregate_ref. Take a valueization callback parameter.
12618 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
12619 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
12620 invariant POINTER_PLUS_EXPRs to invariant form.
12621 (vn_valueize): New function.
12622 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
12623 * tree-vrp.c (vrp_valueize): New function.
12624 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
12625 to fold statements to constants.
12626 * tree-ssa-pre.c (eliminate): Properly guard propagation of
12627 function declarations.
12628 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
12629 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
12630
12631 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12632
12633 * config/h8300/predicates.md (jump_address_operand): Fix register
12634 mode check.
12635
12636 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
12637
12638 * doc/invoke.texi (max-stores-to-sink): Document.
12639 * params.h (MAX_STORES_TO_SINK): Define.
12640 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
12641 if either vectorization or if-conversion is disabled.
12642 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
12643 tree-vect-data-refs.c vect_equal_offsets.
12644 (dr_equal_offsets_p): New function.
12645 (find_data_references_in_bb): Remove static.
12646 * tree-data-ref.h (find_data_references_in_bb): Declare.
12647 (dr_equal_offsets_p): Likewise.
12648 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
12649 (vect_drs_dependent_in_basic_block): Update calls to
12650 vect_equal_offsets.
12651 (vect_check_interleaving): Likewise.
12652 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
12653 (cond_if_else_store_replacement): Rename to...
12654 (cond_if_else_store_replacement_1): ... this. Change arguments and
12655 documentation.
12656 (cond_if_else_store_replacement): New function.
12657 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
12658 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
12659
12660 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
12661
12662 PR target/46934
12663 * config/arm/arm.md (casesi): Use the gen_int_mode() function
12664 to subtract lower bound instead of GEN_INT().
12665
12666 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
12667
12668 PR other/48179
12669 PR other/48221
12670 PR other/48234
12671 * doc/extend.texi (Alignment): Move section to match order in TOC.
12672 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
12673 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
12674
12675 2011-03-23 Jeff Law <law@redhat.com>
12676
12677 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
12678 before removing the edge.
12679
12680 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
12681 it may have been freed by redirect_branch_edge or
12682 redirect_edge_succ_nodup.
12683
12684 2011-03-23 Richard Guenther <rguenther@suse.de>
12685
12686 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
12687 (check_va_list_escapes): Likewise.
12688 (check_all_va_list_escapes): Likewise.
12689
12690 2011-03-23 Richard Guenther <rguenther@suse.de>
12691
12692 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
12693 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
12694 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
12695 (alias.o): Likewise.
12696 (ipa-type-escape.o): Remove.
12697 (ipa-struct-reorg.o): Likewise.
12698 (GTFILES): Remove ipa-struct-reorg.c.
12699 * alias.c: Do not include ipa-type-escape.h.
12700 * tree-ssa-alias.c: Likewise.
12701 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
12702 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
12703 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
12704 and ipa-type-escape passes.
12705 * tree-pass.h (pass_ipa_type_escape): Remove.
12706 (pass_ipa_struct_reorg): Likewise.
12707 * ipa-struct-reorg.h: Remove.
12708 * ipa-struct-reorg.c: Likewise.
12709 * ipa-type-escape.h: Likewise.
12710 * ipa-type-escape.c: Likewise.
12711 * doc/invoke.texi (-fipa-struct-reorg): Remove.
12712 (--param struct-reorg-cold-struct-ratio): Likewise.
12713 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12714 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12715 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
12716
12717 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12718
12719 * config/s390/2084.md: Enable all insn reservations also for z9_ec
12720 cpu attribute value.
12721 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
12722 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
12723 * config/s390/s390.c (processor_flags_table): New constant array.
12724 (s390_handle_arch_option): Remove.
12725 (s390_handle_option): Remove s390_handle_arch_option invocations
12726 and OPT_mwarn_framesize_ handling.
12727 (s390_option_override): Remove s390_handle_arch_option invocation.
12728 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
12729 warnings.
12730 * config/s390/s390.md (cpu attribute): Add z9_ec value.
12731 * config/s390/s390.opt (s390_tune, s390_arch)
12732 (march=): Replace s390_arch_option enum and values with
12733 processor_type. Set variable name to s390_arch. Set
12734 initialization value.
12735 (mtune=): Replace s390_arch_option with processor_type. Set
12736 variable name to s390_tune. Set initialization value.
12737
12738 2011-03-23 Julian Brown <julian@codesourcery.com>
12739
12740 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
12741 accesses which are not naturally aligned.
12742
12743 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12744
12745 PR target/47553
12746 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
12747
12748 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12749
12750 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
12751 parameter from "int" to "enum insn_code".
12752 (expand_operand_type): New enum.
12753 (expand_operand): New structure.
12754 (create_expand_operand): New function.
12755 (create_fixed_operand, create_output_operand): Likewise
12756 (create_input_operand, create_convert_operand_to): Likewise.
12757 (create_convert_operand_from, create_address_operand): Likewise.
12758 (create_integer_operand): Likewise.
12759 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
12760 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12761 (expand_insn, expand_jump_insn): Likewise.
12762 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
12763 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
12764 (expand_movstr, expand_builtin___clear_cache): Likewise.
12765 (expand_builtin_lock_release): Likewise.
12766 * explow.c (allocate_dynamic_stack_space): Likewise.
12767 (probe_stack_range): Likewise. Allow check_stack to FAIL,
12768 and use the default handling in that case.
12769 * expmed.c (check_predicate_volatile_ok): Delete.
12770 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
12771 (emit_cstore): Likewise.
12772 * expr.c (emit_block_move_via_movmem): Likewise.
12773 (set_storage_via_setmem, expand_assignment): Likewise.
12774 (emit_storent_insn, try_casesi): Likewise.
12775 (emit_single_push_insn): Likewise. Allow the expansion to fail.
12776 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
12777 (expand_vec_shift_expr, expand_binop_directly): Likewise.
12778 (expand_twoval_unop, expand_twoval_binop): Likewise.
12779 (expand_unop_direct, emit_indirect_jump): Likewise.
12780 (emit_conditional_move, vector_compare_rtx): Likewise.
12781 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
12782 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
12783 (expand_sync_lock_test_and_set): Likewise.
12784 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
12785 (emit_unop_insn): Likewise.
12786 (expand_copysign_absneg): Change icode to an insn_code.
12787 (create_convert_operand_from_type): New function.
12788 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
12789 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12790 (expand_insn, expand_jump_insn): Likewise.
12791 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
12792 than const_int_operand for operand 2.
12793
12794 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12795
12796 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
12797 if possible.
12798
12799 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12800
12801 * emit-rtl.c (emit_pattern_before_noloc): New function.
12802 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
12803 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
12804 (emit_pattern_after_noloc): New function.
12805 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
12806 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
12807
12808 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12809
12810 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
12811 (__ffsDI2): Likewise.
12812
12813 2011-03-22 Richard Henderson <rth@redhat.com>
12814
12815 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
12816 of !TARGET_ABI_OPEN_VMS.
12817 (alpha_trampoline_init, alpha_start_function): Likewise.
12818 (alpha_expand_epilogue, alpha_file_start): Likewise.
12819 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
12820 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
12821 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
12822 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
12823 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
12824
12825 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12826
12827 * config/s390/s390-opts.h: New.
12828 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
12829 s390_arch_flags, s390_warn_framesize, s390_stack_size,
12830 s390_stack_guard): Remove.
12831 (s390_handle_arch_option): Return void. Take enum
12832 s390_arch_option value instead of string and searching array.
12833 (s390_handle_option): Don't assert that global structures are in
12834 use. Access variables via opts pointer. Use error_at. Don't use
12835 sscanf for -mstack-guard= or -mstack-size=. Update call to
12836 s390_handle_arch_option.
12837 (s390_option_override): Update call to s390_handle_arch_option.
12838 (s390_emit_prologue): Use %d format for s390_stack_size in
12839 diagnostic. Use %wd for HOST_WIDE_INT.
12840 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
12841 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
12842 * config/s390/s390.opt (config/s390/s390-opts.h): New
12843 HeaderInclude entry.
12844 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
12845 s390_arch_flags, s390_warn_framesize): New Variable entries.
12846 (s390_arch_option): New Enum and EnumValue entries.
12847 (march=): Use Enum instead of Var.
12848 (mstack-guard=, mstack-size=): Use UInteger and Var.
12849 (mtune=): Use Enum.
12850
12851 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12852
12853 * config/score/score.c (score_handle_option): Don't assert that
12854 global structures are in use. Access target_flags via opts
12855 pointer. Use value of -march= option to determine target_flags
12856 settings.
12857 * config/score/score.opt (march=): Use Enum.
12858 (score_arch): New Enum and EnumValue entries.
12859
12860 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12861
12862 * config/mep/mep.c (option_mtiny_specified): Remove.
12863 (mep_option_override): Move register handling for -mivc2 from
12864 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
12865 instead of option_mtiny_specified.
12866 (mep_handle_option): Access target_flags via opts pointer. Don't
12867 assert that global structures are in use. Defer part of -mivc2
12868 handling and move it to mep_option_override.
12869 * config/mep/mep.opt (IVC2): New Mask entry.
12870 (mivc2): Use Var and Defer instead of Mask.
12871
12872 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12873
12874 * config/v850/v850-opts.h: New.
12875 * config/v850/v850.c (small_memory): Replace with
12876 small_memory_physical_max array. Make that array static const.
12877 (v850_handle_memory_option): Take integer value of argument. Take
12878 gcc_options pointer, option text and location. Return void.
12879 Update for changes to small memory structures.
12880 (v850_handle_option): Access target_flags via opts pointer. Don't
12881 assert that global structures are in use. Update calls to
12882 v850_handle_memory_option.
12883 (v850_encode_data_area): Update references to small memory settings.
12884 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
12885 (enum small_memory_type): Move to v850-opts.h.
12886 * config/v850/v850.opt (config/v850/v850-opts.h): New
12887 HeaderInclude entry.
12888 (small_memory_max): New Variable entry.
12889 (msda): Replace by pair of options msda= and msda-. Use UInteger.
12890 (mtda, mzda): Likewise.
12891
12892 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12893
12894 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
12895 pointer. Don't assert that global structures are in use.
12896
12897 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12898
12899 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
12900 via opts pointer. Don't assert that global structures are in use.
12901
12902 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12903
12904 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
12905 (munix=93): Use Var.
12906 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
12907 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
12908 * config/pa/pa-opts.h: New.
12909 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
12910 (pa_handle_option): Don't assert that global structures are in
12911 use. Access target_flags via opts pointer. Don't handle
12912 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
12913 OPT_munix_98 here.
12914 (pa_option_override): Handle deferred OPT_mfixed_range_.
12915
12916 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12917
12918 * config/mn10300/mn10300-opts.h: New.
12919 * config/mn10300/mn10300.c (mn10300_processor,
12920 mn10300_tune_string): Remove.
12921 (mn10300_handle_option): Don't assert that global structures are
12922 in use. Access mn10300_processor via opts pointer. Don't handle
12923 OPT_mtune_ here.
12924 * config/mn10300/mn10300.h (enum processor_type): Move to
12925 mn10300-opts.h.
12926 (mn10300_processor): Remove.
12927 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
12928 HeaderInclude entry.
12929 (mn10300_processor): New Variable entry.
12930 (mtune=): Use Var.
12931
12932 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12933
12934 * config/microblaze/microblaze.c: Don't include opts.h.
12935 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
12936 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
12937 (mno-clearbss): Use Var and Warn.
12938
12939 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12940
12941 * config/m32r/m32r-opts.h: New.
12942 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
12943 (m32r_handle_option): Don't assert that global structures are in
12944 use. Access target_flags and m32r_cache_flush_func via opts
12945 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
12946 OPT_mno_flush_trap here.
12947 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
12948 include of m32r-opts.h.
12949 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
12950 HeaderInclude entry.
12951 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
12952 (mmodel=): Use Enum and Var.
12953 (m32r_model): New Enum and EnumValue entries.
12954 (mno-flush-trap): Use Var.
12955 (msdata=): Use Enum and Var.
12956 (m32r_sdata): New Enum and EnumValue entries.
12957
12958 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12959
12960 * config/m32c/m32c.c: Don't include opts.h.
12961 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
12962 m32c_handle_option): Remove.
12963 (m32c_option_override): Check global_options_set.x_target_memregs
12964 instead of target_memregs_set.
12965 * config/m32c/m32c.h (target_memregs): Remove.
12966 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
12967 variable.
12968
12969 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12970
12971 * config/iq2000/iq2000-opts.h: New.
12972 * config/iq2000/iq2000.c: Don't include opts.h.
12973 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
12974 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
12975 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
12976 HeaderInclude entry.
12977 (iq2000_tune): New Variable entry.
12978 (march=): Add comment. Use Enum.
12979 (iq2000_arch): New Enum and EnumValue entries.
12980 (mcpu=): Use Enum and Var.
12981 (iq2000_tune): New Enum and EnumValue entries.
12982
12983 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12984
12985 * config/ia64/ia64-opts.h: New.
12986 * config/ia64/ia64.c (ia64_tune): Remove.
12987 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
12988 here. Use error_at.
12989 (ia64_option_override): Handle deferred OPT_mfixed_range_.
12990 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
12991 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
12992 HeaderInclude entry.
12993 (ia64_tune): New Variable entry.
12994 (mfixed-range=): Use Defer and Var.
12995 (mtune=): Use Enum and Var.
12996 (ia64_tune): New Enum and EnumValue entries.
12997
12998 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12999
13000 * config/frv/frv-opts.h: New.
13001 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13002 frv-opts.h.
13003 (frv_cpu_type): Remove.
13004 * config/frv/frv.c: Don't include opts.h.
13005 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
13006 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
13007 (frv_cpu_type): New Variable entry.
13008 (frv_cpu): New Enum and EnumValue entries.
13009
13010 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13011
13012 * config/cris/cris.c (cris_handle_option): Access target_flags via
13013 opts pointer. Don't assert that global structures are in use.
13014 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13015 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13016
13017 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13018
13019 * config/bfin/bfin-opts.h: New.
13020 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13021 bfin_si_revision, bfin_workarounds): Remove.
13022 (bfin_cpus): Make static const.
13023 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13024 not bfin_lib_id_given.
13025 (bfin_handle_option): Don't set bfin_lib_id_given. Access
13026 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
13027 pointer. Use error_at. Don't assert that global structures are in use.
13028 * config/bfin/bfin.h: Include bfin-opts.h.
13029 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13030 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13031 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13032 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13033 entries.
13034
13035 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13036
13037 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13038 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13039 or -msoft-float here.
13040 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13041 -msoft-float and -mhard-float.
13042 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
13043 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13044 msoft-float.
13045 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13046 -msoft-float.
13047 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13048 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13049 not mhard-float.
13050 (LIBGCC_SPEC): Don't handle -msoft-float.
13051 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13052 -mhard-float.
13053 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13054 msoft-float.
13055 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13056 -mfloat-abi=*, not -msoft-float and -mhard-float.
13057 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13058 -msoft-float.
13059 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13060 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13061 mhard-float and msoft-float.
13062 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13063 mfloat-abi=soft in comments, not mhard-float and msoft-float.
13064 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13065 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13066 mhard-float.
13067 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13068 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13069 msoft-float.
13070 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13071 not mhard-float.
13072 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13073 not msoft-float.
13074
13075 2011-03-22 Richard Henderson <rth@redhat.com>
13076
13077 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13078 TARGET_ABI_WINDOWS_NT.
13079 (alpha_output_function_end_prologue): Likewise.
13080 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13081 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13082 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13083 (trap, *movsi_nt_vms): Likewise.
13084 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13085 (*tablejump_osf_nt_internal): Remove.
13086 * config/alpha/predicates.md (input_operand): Only test Pmode.
13087
13088 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13089
13090 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13091 via opts pointer. Use error_at. Don't assert that global
13092 structures are in use.
13093
13094 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13095
13096 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13097 (ix86_handle_option): Access ix86_isa_flags and
13098 ix86_isa_flags_explicit via opts pointer. Don't assert that
13099 global structures are in use.
13100 (ix86_function_specific_save, ix86_function_specific_restore):
13101 Update ix86_isa_flags_explicit field name.
13102 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13103 (ix86_isa_flags_explicit): Rename TargetSave entry to
13104 x_ix86_isa_flags_explicit.
13105
13106 2011-03-22 Richard Henderson <rth@redhat.com>
13107
13108 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13109 (alpha_option_override, direct_return): Likewise.
13110 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13111 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13112 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13113 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13114 (alpha_expand_epilogue, alpha_end_function): Likewise.
13115 (alpha_init_libfuncs): Likewise.
13116 (struct machine_function): Remove unicosmk members.
13117 (print_operand) ['t']: Remove.
13118 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13119 unicosmk_output_module_name, unicosmk_output_common,
13120 current_section_align, unicosmk_output_text_section_asm_op,
13121 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13122 unicosmk_section_type_flags, unicosmk_unique_section,
13123 unicosmk_asm_named_section, unicosmk_insert_attributes,
13124 unicosmk_output_align, unicosmk_defer_case_vector,
13125 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13126 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13127 unicosmk_output_ssib, unicosmk_add_call_info_word,
13128 unicosmk_extern_head, unicosmk_output_default_externs,
13129 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13130 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13131 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13132 * config/alpha/alpha-protos.h: Update.
13133 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13134 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13135 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13136 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13137 (*mulsi_se, mulvsi3): Likewise.
13138 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13139 (*divmodsi_internal, call, call_value, realign): Likewise.
13140 (moddi3, umoddi3): Likewise; remove duplicate expander.
13141 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13142 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13143 (*movdi_nofix): Remove r/U alternative.
13144 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13145 * config/alpha/constraints.md ("U"): Remove.
13146 * config/alpha/predicates.md (call_operand"): Don't test
13147 TARGET_ABI_UNICOSMK.
13148
13149 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13150
13151 * target.def (handle_option): Take gcc_options and
13152 cl_decoded_option pointers and location_t.
13153 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13154 * doc/tm.texi: Regenerate.
13155 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13156 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13157 * lto-opts.c (lto_reissue_options): Generate option structure for
13158 targetm.handle_option call.
13159 * opts.c (target_handle_option): Update call to
13160 targetm.handle_option. Remove assertions about values now passed
13161 down to hook.
13162 * targhooks.c (default_target_handle_option): New.
13163 * targhooks.h (default_target_handle_option): Declare.
13164 * config/alpha/alpha.c: Include opts.h.
13165 (alpha_handle_option): Update to new hook interface.
13166 * config/arm/arm.c: Include opts.h.
13167 (arm_handle_option): Update to new hook interface.
13168 * config/arm/t-arm (arm.o): Update dependencies.
13169 * config/bfin/bfin.c: Include opts.h.
13170 (bfin_handle_option): Update to new hook interface.
13171 * config/cris/cris.c: Include opts.h.
13172 (cris_handle_option): Update to new hook interface.
13173 * config/frv/frv.c: Include opts.h.
13174 (frv_handle_option): Update to new hook interface.
13175 * config/i386/i386.c: Include opts.h.
13176 (ix86_handle_option): Update to new hook interface.
13177 (ix86_valid_target_attribute_inner_p): Generate option structure
13178 for call to ix86_handle_option.
13179 * config/i386/t-i386 (i386.o): Update dependencies.
13180 * config/ia64/ia64.c: Include opts.h.
13181 (ia64_handle_option): Update to new hook interface.
13182 * config/ia64/t-ia64 (ia64.o): Update dependencies.
13183 * config/iq2000/iq2000.c: Include opts.h.
13184 (iq2000_handle_option): Update to new hook interface.
13185 * config/m32c/m32c.c: Include opts.h.
13186 (m32c_handle_option): Update to new hook interface.
13187 * config/m32r/m32r.c: Include opts.h.
13188 (m32r_handle_option): Update to new hook interface.
13189 * config/m68k/m68k.c: Include opts.h.
13190 (m68k_handle_option): Update to new hook interface.
13191 * config/mep/mep.c: Include opts.h.
13192 (mep_handle_option): Update to new hook interface.
13193 * config/microblaze/microblaze.c: Include opts.h.
13194 (microblaze_handle_option): Update to new hook interface.
13195 * config/mips/mips.c: Include opts.h.
13196 (mips_handle_option): Update to new hook interface.
13197 * config/mn10300/mn10300.c: Include opts.h.
13198 (mn10300_handle_option): Update to new hook interface.
13199 * config/pa/pa.c: Include opts.h.
13200 (pa_handle_option): Update to new hook interface.
13201 * config/pdp11/pdp11.c: Include opts.h.
13202 (pdp11_handle_option): Update to new hook interface.
13203 * config/rs6000/rs6000.c: Include opts.h.
13204 (rs6000_handle_option): Update to new hook interface.
13205 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13206 * config/rx/rx.c: Include opts.h.
13207 (rx_handle_option): Update to new hook interface.
13208 * config/s390/s390.c: Include opts.h.
13209 (s390_handle_option): Update to new hook interface.
13210 * config/score/score.c: Include opts.h.
13211 (score_handle_option): Update to new hook interface.
13212 * config/sh/sh.c: Include opts.h.
13213 (sh_handle_option): Update to new hook interface.
13214 * config/sparc/sparc.c: Include opts.h.
13215 (sparc_handle_option): Update to new hook interface.
13216 * config/v850/v850.c: Include opts.h.
13217 (v850_handle_option): Update to new hook interface.
13218
13219 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13220
13221 * gcc.c (driver_unknown_option_callback): Only permit and save
13222 unknown -Wno- options.
13223 (driver_wrong_lang_callback): Save options directly instead of via
13224 driver_unknown_option_callback.
13225
13226 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13227
13228 * combine.c (simplify_set): Try harder to find the best CC mode when
13229 simplifying a nested COMPARE on the RHS.
13230
13231 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13232
13233 * config/alpha/gnu.h: Remove.
13234 * config/arc: Remove directory.
13235 * config/arm/netbsd.h: Remove.
13236 * config/arm/t-pe: Remove.
13237 * config/crx: Remove directory.
13238 * config/i386/netbsd.h: Remove.
13239 * config/m68hc11: Remove directory.
13240 * config/m68k/uclinux-oldabi.h: Remove.
13241 * config/mcore/mcore-pe.h: Remove.
13242 * config/mcore/t-mcore-pe: Remove.
13243 * config/netbsd-aout.h: Remove.
13244 * config/rs6000/gnu.h: Remove.
13245 * config/sh/sh-symbian.h: Remove.
13246 * config/sh/symbian-base.c: Remove.
13247 * config/sh/symbian-c.c: Remove.
13248 * config/sh/symbian-cxx.c: Remove.
13249 * config/sh/symbian-post.h: Remove.
13250 * config/sh/symbian-pre.h: Remove.
13251 * config/sh/t-symbian: Remove.
13252 * config/svr3.h: Remove.
13253 * config/vax/netbsd.h: Remove.
13254 * config.build: Don't handle i[34567]86-*-pe.
13255 * config.gcc: Remove handling of deprecations for most deprecated
13256 targets.
13257 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
13258 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
13259 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
13260 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
13261 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
13262 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
13263 Remove cases.
13264 * config.host: Don't handle i[34567]86-*-pe.
13265 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
13266 (ASM_SPEC32): Don't handle -mcall-gnu.
13267 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
13268 -mcall-gnu.
13269 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
13270 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
13271 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13272 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
13273 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
13274 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
13275 conditional on SYMBIAN.
13276 * configure.ac: Don't handle powerpc*-*-gnu*.
13277 * configure: Regenerate.
13278 * doc/extend.texi (interrupt attribute): Don't mention CRX.
13279 * doc/install-old.texi (m6811, m6812): Don't mention.
13280 * doc/install.texi (arc-*-elf*): Don't document multilib option.
13281 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
13282 (m68k-uclinuxoldabi): Don't mention.
13283 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
13284 Remove.
13285 (-mcall-gnu): Remove.
13286 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
13287 families): Remove constraint documentation.
13288
13289 2011-03-22 Marius Strobl <marius@FreeBSD.org>
13290
13291 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
13292 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
13293 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
13294
13295 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13296
13297 PR target/48226
13298 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
13299 vector when peeking at the next token for vector, don't expand the
13300 keywords.
13301
13302 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
13303
13304 * config/avr/avr-protos.h (expand_epilogue): Change prototype
13305 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
13306 * config/avr/avr.c (init_cumulative_args)
13307 (avr_function_arg_advance): Use it.
13308 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
13309 sibcall epilogues.
13310 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
13311 (avr_function_ok_for_sibcall): ...this new function.
13312 (avr_lookup_function_attribute1): New static Function.
13313 (avr_naked_function_p, interrupt_function_p)
13314 (signal_function_p, avr_OS_task_function_p)
13315 (avr_OS_main_function_p): Use it.
13316 * config/avr/avr.md ("sibcall", "sibcall_value")
13317 ("sibcall_epilogue"): New expander.
13318 ("*call_insn", "*call_value_insn"): New insn.
13319 ("call_insn", "call_value_insn"): Remove
13320 ("call", "call_value", "epilogue"): Change expander to handle
13321 sibling calls.
13322
13323 2011-03-21 Nick Clifton <nickc@redhat.com>
13324
13325 * doc/invoke.texi (Overall Options): Move closing brace to end of
13326 options list.
13327 (Optimization Options): Add missing @gol.
13328 (Directory Options): Likewise.
13329 (i386 and x86-64 Options): Likewise.
13330 (RS6000 and PowerPC Options): Likewise.
13331 (i386 and x86-64 Windows Options): Likewise.
13332 (V850 Options): Add text missing from descriptions.
13333
13334 2011-03-22 Richard Henderson <rth@redhat.com>
13335
13336 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
13337 (avr_incoming_return_addr_rtx): New.
13338 (emit_push_byte): New.
13339 (expand_prologue): Use it. Remove incorrect dwarf annotation for
13340 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
13341 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
13342 (emit_pop_byte): New.
13343 (expand_epilogue): Use it. Pop frame pointer by bytes.
13344 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
13345 (INCOMING_RETURN_ADDR_RTX): New.
13346 (INCOMING_FRAME_SP_OFFSET): New.
13347 (ARG_POINTER_CFA_OFFSET): New.
13348 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
13349 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
13350 (pophi): Remove.
13351
13352 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
13353
13354 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13355
13356 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13357 (FUNCTION_ARG_ADVANCE): Likewise.
13358 * tm.texi.in: Change references to them to hook references.
13359 * tm.texi: Regenerate.
13360 * targhooks.c (default_function_arg): Eliminate check for target
13361 macro.
13362 (default_function_incoming_arg): Likewise.
13363 (default_function_arg_advance): Likewise.
13364 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13365 (function_arg_advance): Likewise.
13366 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13367
13368 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13369
13370 * tree.c (build_call_1): New function.
13371 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
13372
13373 2011-03-22 Richard Guenther <rguenther@suse.de>
13374
13375 PR tree-optimization/48228
13376 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
13377 for single-arg PHIs.
13378
13379 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
13380
13381 PR rtl-optimization/48143
13382 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
13383 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
13384 sse2_cvtps2pd): Likewise.
13385
13386 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13387
13388 * recog.c (canonicalize_change_group): Use validate_unshare_change.
13389
13390 2011-03-22 Richard Guenther <rguenther@suse.de>
13391
13392 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
13393 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
13394 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
13395 and REALIGN_LOAD_EXPR.
13396 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
13397 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
13398 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
13399 DOT_PROD_EXPR case ...
13400 (expand_expr_real_2): ... here.
13401 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
13402 and REALIGN_LOAD_EXPR.
13403 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
13404 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
13405 (vect_create_epilog_for_reduction): Likewise.
13406 (vectorizable_reduction): Likewise.
13407 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
13408 * tree-vect-stmts.c (vectorizable_load): Likewise.
13409
13410 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13411
13412 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
13413
13414 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13415
13416 * config/s390/s390.c (s390_delegitimize_address): Fix offset
13417 handling for PLTOFF/GOTOFF.
13418
13419 2011-03-22 Nick Clifton <nickc@redhat.com>
13420
13421 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
13422 trailing backslash from the end of the macro definition.
13423
13424 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13425
13426 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
13427 and PLT unspecs.
13428
13429 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
13430
13431 * expr.h (prepare_operand): Move to...
13432 * optabs.h (prepare_operand): ...here and change the insn code
13433 parameter from "int" to "enum insn_code".
13434 (insn_operand_matches): Declare.
13435 * expr.c (init_expr_target): Use insn_operand_matches.
13436 (compress_float_constant): Likewise.
13437 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
13438 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
13439 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
13440 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
13441 Likewise.
13442 (gen_cond_trap): Likewise.
13443 (prepare_operand): Likewise. Change icode to an insn_code.
13444 (insn_operand_matches): New function.
13445 * reload.c (find_reloads_address_1): Use insn_operand_matches.
13446 * reload1.c (gen_reload): Likewise.
13447 * targhooks.c (default_secondary_reload): Likewise.
13448
13449 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13450
13451 * config/alpha/alpha.md (unspec): New define_c_enum.
13452 (unspecv): Ditto.
13453
13454 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13455
13456 PR debug/48214
13457 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
13458 between a call and its CALL_ARG_LOCATION note.
13459
13460 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13461
13462 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
13463
13464 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13465
13466 PR c/42544
13467 PR c/48197
13468 * c-common.c (shorten_compare): If primopN is first sign-extended
13469 to opN and then zero-extended to result type, set primopN to opN.
13470
13471 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
13472
13473 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
13474 for barrier handlers.
13475
13476 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13477
13478 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
13479 UNSPEC constants to be in the unspec enumeration, and redefine
13480 all UNSPECV constants to be in the unspecv enumeration, so that
13481 dumps print which unspec/unspec_volatile this is.
13482 * config/rs6000/vector.md (UNSPEC_*): Ditto.
13483 * config/rs6000/paired.md (UNSPEC_*): Ditto.
13484 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
13485 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
13486 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
13487
13488 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
13489 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
13490 UNSPECV_LWSYNC, since these are used as unspec_volatile.
13491 * config/rs6000/sync.md (isync, lwsync): Ditto.
13492
13493 2011-03-21 Richard Guenther <rguenther@suse.de>
13494
13495 * params.def (lto-min-partition): Fix typo.
13496
13497 2011-03-21 Richard Guenther <rguenther@suse.de>
13498
13499 PR c/47939
13500 * c-decl.c (grokdeclarator): Drop to the main variant only
13501 for array types. Drop flag_gen_aux_info check.
13502
13503 2011-03-21 Richard Guenther <rguenther@suse.de>
13504
13505 PR translation/47911
13506 * params.def (lto-partitions): Fix typo.
13507 (lto-min-partition): Fix wording.
13508
13509 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
13510
13511 * config/rs6000/t-freebsd: Remove duplication from file.
13512
13513 2011-03-21 Richard Guenther <rguenther@suse.de>
13514
13515 PR middle-end/47661
13516 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
13517
13518 2011-03-21 Richard Guenther <rguenther@suse.de>
13519
13520 PR lto/48210
13521 * params.def (lto-partitions): Require at least 1 partition.
13522
13523 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13524
13525 * gthr-solaris.h: Remove.
13526 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
13527 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
13528 (LIB_SPEC): Likewise.
13529 * config/sol2.opt (threads): Remove.
13530 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
13531 (sparc*-*-solaris2*): Likewise.
13532 * configure.ac (enable_threads): Enable solaris support.
13533 * configure: Regenerate.
13534 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
13535 * doc/install.texi (Configuration, --enable-threads=lib): Remove
13536 solaris.
13537
13538 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13539
13540 * config.gcc: Obsolete *-*-solaris2.8*.
13541 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13542
13543 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13544
13545 PR bootstrap/48135
13546 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
13547 reference. Solaris 8 perl works.
13548
13549 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13550
13551 PR bootstrap/48135
13552 * doc/install.texi (Prerequisites): Move jar etc. up.
13553 Explain support library version requirements.
13554
13555 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13556
13557 PR bootstrap/48135
13558 * doc/install.texi (Prerequisites): Move Perl to build
13559 requirements. Always necessary on Solaris 2 with Sun ld.
13560
13561 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13562
13563 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
13564 binutils 2.21.
13565 (Specific, i?86-*-solaris2.[89]): Likewise.
13566 (Specific, i?86-*-solaris2.10): Likewise.
13567 (Specific, mips-sgi-irix6): Likewise.
13568 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
13569 Update for binutils 2.21.
13570
13571 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13572
13573 * configure.ac (gcc_cv_lto_plugin): Fix typo.
13574 Allow -fuse-linker-plugin for non-default plugin linker.
13575 * configure: Regenerate.
13576
13577 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
13578
13579 PR bootstrap/48167
13580 * gengtype.c (files_rules): Added rule for cp/parser.h.
13581
13582 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13583
13584 PR target/48213
13585 * config/s390/s390.c (s390_delegitimize_address): Don't call
13586 lowpart_subreg if orig_x has BLKmode.
13587
13588 2011-03-21 Kai Tietz <ktietz@redhat.com>
13589
13590 PR target/12171
13591 * doc/plugins.texi: Adjust documentation for plugin register_callback.
13592 * tree.h (attribute_spec): Add new member affects_type_identity.
13593 * attribs.c (empty_attribute_table): Adjust attribute_spec
13594 initializers.
13595 * config/alpha/alpha.c: Likewise.
13596 * config/arc/arc.c: Likewise.
13597 * config/arm/arm.c: Likewise.
13598 * config/avr/avr.c: Likewise.
13599 * config/bfin/bfin.c: Likewise.
13600 * config/crx/crx.c: Likewise.
13601 * config/darwin.h: Likewise.
13602 * config/h8300/h8300.c: Likewise.
13603 * config/i386/cygming.h: Likewise.
13604 * config/i386/i386.c: Likewise.
13605 * config/ia64/ia64.c: Likewise.
13606 * config/m32c/m32c.c: Likewise.
13607 * config/m32r/m32r.c: Likewise.
13608 * config/m68hc11/m68hc11.c: Likewise.
13609 * config/m68k/m68k.c: Likewise.
13610 * config/mcore/mcore.c: Likewise.
13611 * config/mep/mep.c: Likewise.
13612 * config/microblaze/microblaze.c: Likewise.
13613 * config/mips/mips.c: Likewise.
13614 * config/rs6000/rs6000.c: Likewise.
13615 * config/rx/rx.c: Likewise.
13616 * config/sh/sh.c: Likewise.
13617 * config/sol2.h: Likewise.
13618 * config/sparc/sparc.c: Likewise.
13619 * config/spu/spu.c: Likewise.
13620 * config/stormy16/stormy16.c: Likewise.
13621 * config/v850/v850.c: Likewise.
13622
13623 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
13624
13625 * simplify-rtx.c (simplify_binary_operation_1): Handle
13626 (xor (and A B) C) case when B and C are both constants.
13627
13628 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
13629
13630 * tree-dfa.c (add_referenced_var): Fix typo in comment.
13631
13632 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
13633
13634 PR bootstrap/48168
13635 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
13636
13637 2011-03-20 Jakub Jelinek <jakub@redhat.com>
13638
13639 PR rtl-optimization/48156
13640 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
13641 assume df and df_lr are not NULL.
13642
13643 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13644
13645 PR debug/48023
13646 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
13647 between a call and its CALL_ARG_LOCATION note.
13648
13649 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
13650
13651 PR debug/48178
13652 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13653 between a call and its corresponding CALL_ARG_LOCATION note.
13654
13655 2011-03-19 Anatoly Sokolov <aesok@post.ru>
13656
13657 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
13658 instead of loop. Use HARD_REGISTER_NUM_P predicate.
13659 * haifa-sched.c (setup_ref_regs): Ditto.
13660 * caller-save.c (add_used_regs_1): Ditto.
13661 * dse.c (look_for_hardregs): Ditto.
13662 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
13663 * sched-rgn.c (check_live_1): Ditto.
13664
13665 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13666
13667 * c-decl.c (diagnose_mismatched_decls): Give an error for
13668 redefining a typedef with variably modified type.
13669
13670 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13671
13672 * c-decl.c (grokfield): Don't allow typedefs for structures or
13673 unions with no tag by default.
13674 * doc/extend.texi (Unnamed Fields): Update.
13675
13676 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
13677
13678 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13679 Rewrite using indirect functions.
13680 (lwp_slwpcb): Ditto.
13681 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
13682 (avx_vinsertf128<mode>): Ditto.
13683
13684 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13685
13686 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
13687 unspecs.
13688
13689 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13690
13691 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
13692 splitting between a call and its corresponding CALL_ARG_LOCATION note.
13693
13694 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13695
13696 PR rtl-optimization/48170
13697 * gcse.c (hoist_code): Remove bogus asserts.
13698
13699 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
13700
13701 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
13702 computation for prologue/epilogue.
13703
13704 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13705
13706 * Makefile.in (check-consistency): Remove.
13707
13708 2011-03-18 Jakub Jelinek <jakub@redhat.com>
13709
13710 PR debug/48176
13711 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
13712 arange_table_in_use is 0, but either text_section_used or
13713 cold_text_section_used is true. Don't call it if
13714 !info_section_emitted.
13715
13716 2011-03-18 Anatoly Sokolov <aesok@post.ru>
13717
13718 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
13719 FUNCTION_VALUE_REGNO_P): Remove.
13720 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
13721 Remove.
13722 * config/avr/avr.c (avr_ret_register): Make static inline.
13723 (avr_function_value_regno_p): New function.
13724 (avr_libcall_value): Make static. Add 'func' argument.
13725 (avr_function_value): Make static. Rename 'func' argument to
13726 'fn_decl_or_type', forward it to avr_libcall_value. Call
13727 avr_ret_register function instead of RET_REGISTER macro.
13728 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13729
13730 2011-03-18 Jason Merrill <jason@redhat.com>
13731
13732 PR c++/23372
13733 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
13734
13735 2011-03-18 Richard Guenther <rguenther@suse.de>
13736
13737 * doc/install.texi (--enable-gold): Remove.
13738 (--with-plugin-ld): Document.
13739 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
13740
13741 2011-03-18 Andrew Pinski <pinskia@gmail.com>
13742
13743 PR middle-end/47790
13744 * expr.c (optimize_bitfield_assignment_op): Revamp to work
13745 again after expansion changes.
13746
13747 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
13748
13749 * combine.c (try_combine): Do simplification only call of
13750 subst() on i2 even when i1 is present. Update comments.
13751
13752 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
13753
13754 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
13755 and UNSPEC_PCREL_SYMOFF.
13756
13757 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13758
13759 * config/s390/s390.md: Use define_c_enum for the unspec constant
13760 definitions.
13761
13762 2011-03-18 Richard Henderson <rth@redhat.com>
13763 Jakub Jelinek <jakub@redhat.com>
13764
13765 PR bootstrap/48161
13766 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
13767 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
13768
13769 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13770
13771 PR middle-end/47725
13772 * combine.c (cant_combine_insn_p): Don't check zero/sign
13773 extended hard registers.
13774
13775 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13776
13777 PR middle-end/47725
13778 * combine.c (cant_combine_insn_p): Check zero/sign extended
13779 hard registers.
13780
13781 2011-03-17 Anatoly Sokolov <aesok@post.ru>
13782
13783 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13784 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
13785 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
13786 Change return type to bool.
13787 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13788
13789 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13790
13791 PR debug/48163
13792 * var-tracking.c (prepare_call_arguments): If CALL target
13793 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
13794 pc instead of looking it up using cselib_lookup and use
13795 Pmode for it if x has VOIDmode.
13796 * dwarf2out.c (gen_subprogram_die): If also both first and
13797 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
13798
13799 PR debug/48163
13800 * function.c (assign_parms): For data.passed_pointer parms
13801 use MEM of data.entry_parm instead of data.entry_parm itself
13802 as DECL_INCOMING_RTL.
13803 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
13804 also when passed and declared mode is the same, DECL_RTL
13805 is a MEM with pseudo as address and DECL_INCOMING_RTL is
13806 a MEM too.
13807
13808 2011-03-16 Jeff Law <law@redhat.com>
13809
13810 PR rtl-optimization/37273
13811 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13812 handle them like argument loads from stack slots. Do not double
13813 count memory for memory constants and argument loads from stack slots.
13814
13815 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13816
13817 PR debug/48160
13818 * var-tracking.c (prepare_call_arguments): Check SUBREG.
13819
13820 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13821
13822 PR target/48171
13823 * config/i386/i386.opt: Add Save to -mavx and -mfma.
13824
13825 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13826
13827 PR bootstrap/48153
13828 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
13829 if dwarf_strict.
13830 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
13831 Clear call_arg_locations and call_arg_loc_last always.
13832
13833 PR middle-end/48152
13834 * var-tracking.c (prepare_call_arguments): If argument needs to be
13835 passed by reference, adjust argtype and mode.
13836
13837 2011-03-17 Richard Guenther <rguenther@suse.de>
13838
13839 PR middle-end/48134
13840 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
13841 a value make sure to fold the statement.
13842
13843 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
13844
13845 PR target/43872
13846 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
13847 return condition with !cfun->calls_alloca.
13848
13849 2011-03-17 Richard Guenther <rguenther@suse.de>
13850
13851 PR bootstrap/48148
13852 * lto-cgraph.c (input_overwrite_node): Clear the abstract
13853 origin for decls in other ltrans units.
13854 (input_varpool_node): Likewise.
13855
13856 2011-03-17 Richard Guenther <rguenther@suse.de>
13857
13858 PR middle-end/48165
13859 * tree-object-size.c (compute_object_offset): Properly return
13860 the offset operand of MEM_REFs as sizetype.
13861
13862 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13863
13864 PR rtl-optimization/48141
13865 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
13866 * dse.c: Include params.h.
13867 (active_local_stores_len): New variable.
13868 (add_wild_read, dse_step1): Clear it when setting active_local_stores
13869 to NULL.
13870 (record_store, check_mem_read_rtx): Decrease it when removing
13871 from the chain.
13872 (scan_insn): Likewise. Increase it when adding to chain, if it
13873 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
13874 set active_local_stores to NULL before the addition.
13875 * Makefile.in (dse.o): Depend on $(PARAMS_H).
13876
13877 PR rtl-optimization/48141
13878 * dse.c (record_store): If no positions are needed in an insn
13879 that cannot be deleted, at least unchain it from active_local_stores.
13880
13881 2011-03-16 Dodji Seketeli <dodji@redhat.com>
13882
13883 PR debug/47510
13884 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
13885 (lookup_type_die_strip_naming_typedef): ... here.
13886 (get_context_die): Use it.
13887 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
13888 the anonymous struct named by the naming typedef.
13889
13890 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
13891
13892 PR target/48154
13893 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
13894 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13895
13896 2011-03-16 Jeff Law <law@redhat.com>
13897
13898 * tree-vrp.c (identify_jump_threads): Slightly simplify type
13899 check for operands of conditional. Allow type to be a pointer.
13900
13901 2011-03-16 Richard Guenther <rguenther@suse.de>
13902
13903 PR tree-optimization/48149
13904 * fold-const.c (fold_binary_loc): Fold
13905 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
13906
13907 2011-03-16 Richard Guenther <rguenther@suse.de>
13908
13909 PR tree-optimization/26134
13910 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
13911 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
13912 (non_rewritable_mem_ref_base): Handle complex type component
13913 accesses, constrain offsets for vector and complex extracts
13914 more properly.
13915
13916 2011-03-16 Richard Guenther <rguenther@suse.de>
13917
13918 PR tree-optimization/48146
13919 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
13920 operands avoiding the need for renaming.
13921
13922 2011-03-16 Richard Guenther <rguenther@suse.de>
13923
13924 * gimple-fold.c (maybe_fold_reference): Open-code relevant
13925 constant folding. Move MEM_REF canonicalization first.
13926 Rely on fold_const_aggregate_ref for initializer folding.
13927 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
13928
13929 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13930
13931 PR middle-end/48136
13932 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13933 arg0/arg1 or their arguments are always fold converted to matching
13934 types.
13935
13936 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
13937 to nargs.
13938
13939 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13940
13941 PR lto/46944
13942 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
13943 Handle in-tree gold.
13944 (ld_vers): Extract binutils version for gold.
13945 (gcc_cv_ld_hidden): Handle gold here.
13946 (gcc_cv_lto_plugin): Determine level of linker plugin support.
13947 * configure: Regenerate.
13948 * config.in: Regenerate.
13949 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
13950 -fuse-linker-plugin otherwise.
13951 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
13952 (LINK_COMMAND_SPEC): Use it.
13953 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
13954
13955 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13956
13957 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
13958 * calls.c: Remove debug.h include.
13959 (emit_call_1): Don't call virtual_call_token debug hook.
13960 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
13961 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
13962 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
13963 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
13964 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
13965 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
13966 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
13967 dwarf2out_virtual_call): Remove.
13968 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
13969 copy_call_info and virtual_call hooks.
13970 (dwarf2out_init): Don't initialize vcall_insn_table,
13971 debug_dcall_section and debug_vcall_section.
13972 (prune_unused_types): Don't mark nodes from dcall_table.
13973 (dwarf2out_finish): Don't output dcall or vcall tables.
13974 * final.c (final_scan_insn): Don't call direct_call or
13975 virtual_call debug hooks.
13976 * debug.h (struct gcc_debug_hooks): Remove direct_call,
13977 virtual_call_token, copy_call_info and virtual_call hooks.
13978 (debug_nothing_uid): Remove prototype.
13979 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
13980 copy_call_info and virtual_call hooks.
13981 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13982 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
13983 * debug.c (do_nothing_debug_hooks): Likewise.
13984 (debug_nothing_uid): Remove.
13985 * doc/invoke.texi (-fenable-icf-debug): Remove.
13986 * common.opt (-fenable-icf-debug): Likewise.
13987
13988 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
13989 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
13990 call's MEM. Handle functions returning aggregate through a hidden
13991 first pointer. For virtual calls add clobbered pc to call arguments
13992 chain.
13993 * dwarf2out.c (gen_subprogram_die): Emit
13994 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
13995 can't be emitted.
13996
13997 PR debug/45882
13998 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
13999 * rtl.h (ENTRY_VALUE_EXP): Define.
14000 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14001 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14002 * print-rtl.c (print_rtx): Likewise.
14003 * gengtype.c (adjust_field_rtx_def): Likewise.
14004 * var-tracking.c (vt_add_function_parameter): Adjust
14005 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14006 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14007 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14008 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14009 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14010
14011 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14012 Call var_location debug hook even on CALL_INSNs.
14013 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14014 * rtl.def (ENTRY_VALUE): New.
14015 * dwarf2out.c: Include cfglayout.h.
14016 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14017 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14018 (struct call_arg_loc_node): New type.
14019 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14020 tail_call_site_count): New variables.
14021 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14022 DW_TAG_GNU_call_site_parameter.
14023 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14024 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14025 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14026 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14027 and DW_AT_GNU_all_source_call_sites.
14028 (mem_loc_descriptor): Handle ENTRY_VALUE.
14029 (add_src_coords_attributes): Don't add enything if
14030 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14031 (dwarf2out_abstract_function): Save and clear call_arg_location,
14032 call_site_count and tail_call_site_count around dwarf2out_decl call.
14033 (gen_call_site_die): New function.
14034 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14035 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14036 (dwarf2out_function_decl): Clear call_arg_locations,
14037 call_arg_loc_last, set call_site_count and tail_call_site_count
14038 to -1 and free block_map.
14039 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14040 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
14041 followed by any real instructions.
14042 (dwarf2out_begin_function): Set call_site_count and
14043 tail_call_site_count to 0.
14044 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14045 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14046 attempt to force a DIE for it and worst case remove the attribute.
14047 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14048 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14049 the decl itself.
14050 * var-tracking.c: Include tm_p.h.
14051 (vt_stack_adjustments): For calls call note_register_arguments.
14052 (argument_reg_set): New variable.
14053 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14054 ensure the VALUE is resolved.
14055 (call_arguments): New variable.
14056 (prepare_call_arguments): New function.
14057 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14058 (struct expand_loc_callback_data): Add ignore_cur_loc field.
14059 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14060 always use the best expression.
14061 (vt_expand_loc): Add ignore_cur_loc argument.
14062 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14063 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14064 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14065 note for all calls.
14066 (vt_add_function_parameter): Use cselib_lookup_from_insn.
14067 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14068 argument. Don't call cselib_preserve_only_values and
14069 cselib_reset_table.
14070 (note_register_arguments): New function.
14071 (vt_initialize): Compute argument_reg_set. Call
14072 vt_add_function_parameters before processing basic blocks instead of
14073 afterwards. For calls call prepare_call_arguments before calling
14074 cselib_process_insn.
14075 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14076 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14077 (var-tracking.o): Depend on $(TM_P_H).
14078 * cfglayout.h (insn_scope): New prototype.
14079 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14080 * cfglayout.c (insn_scope): No longer static.
14081 * insn-notes.def (CALL_ARG_LOCATION): New.
14082 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14083 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14084 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14085 nothing for DECL_EXTERNAL BLOCK_VARS.
14086
14087 2011-03-16 Alan Modra <amodra@gmail.com>
14088
14089 PR target/45844
14090 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14091 create invalid offset address for vsx splat insn.
14092 * config/rs6000/predicates.md (splat_input_operand): New.
14093 * config/rs6000/vsx.md (vsx_splat_*): Use it.
14094
14095 2011-03-15 Xinliang David Li <davidxl@google.com>
14096
14097 PR c/47837
14098 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14099 (normalize_preds): New function.
14100 (is_use_properly_guarded): Normalize def predicates.
14101
14102 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14103
14104 PR target/46788
14105 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14106 in the output template.
14107
14108 2011-03-15 Richard Guenther <rguenther@suse.de>
14109
14110 PR middle-end/47650
14111 * tree-pretty-print.c (dump_function_declaration): Properly
14112 dump unprototyped and varargs function types.
14113
14114 2011-03-15 Richard Guenther <rguenther@suse.de>
14115
14116 PR tree-optimization/13954
14117 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14118 and friends.
14119
14120 2011-03-15 Richard Guenther <rguenther@suse.de>
14121
14122 PR tree-optimization/48037
14123 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14124 selects into BIT_FIELD_REFs.
14125 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14126 vector select.
14127
14128 2011-03-15 Jakub Jelinek <jakub@redhat.com>
14129
14130 PR tree-optimization/48129
14131 * builtins.c (fold_builtin_snprintf): Convert to type of
14132 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14133 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14134
14135 2011-03-15 Richard Guenther <rguenther@suse.de>
14136
14137 PR tree-optimization/41490
14138 * tree-ssa-dce.c (propagate_necessity): Handle returns without
14139 value but with VUSE.
14140 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14141 return statements.
14142 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14143 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14144 * tree-tailcall.c (find_tail_calls): Ignore returns.
14145
14146 2011-03-15 Richard Guenther <rguenther@suse.de>
14147
14148 PR middle-end/48031
14149 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14150 or variable-indexed array accesses when in gimple form.
14151
14152 2011-03-15 Richard Guenther <rguenther@suse.de>
14153
14154 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
14155
14156 2011-03-15 Alan Modra <amodra@gmail.com>
14157
14158 PR target/48032
14159 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14160 presume symbol_refs without a symbol_ref_decl are suitably
14161 aligned, nor other trees we may see here. Handle anchor symbols.
14162 (legitimate_constant_pool_address_p): Comment. Add mode param.
14163 Check cmodel=medium addresses. Adjust all calls.
14164 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14165 creating cmodel=medium optimized access to locals.
14166 * config/rs6000/constraints.md (R): Pass QImode to
14167 legitimate_constant_pool_address_p.
14168 * config/rs6000/predicates.md (input_operand): Pass mode to
14169 legitimate_constant_pool_address_p.
14170 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14171 Update prototype.
14172
14173 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14174
14175 PR target/48053
14176 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14177 64-bit constants being loaded into registers other than GPRs such
14178 as loading 0 into a VSX register.
14179
14180 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14181
14182 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
14183
14184 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14185
14186 PR middle-end/47917
14187 * builtins.c (fold_builtin_snprintf): New function.
14188 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14189 (fold_builtin_4): Likewise.
14190
14191 PR middle-end/38878
14192 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14193 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
14194 and C - X == X also strip nops from +/-/p+ operand.
14195 When optimizing -X == C, fold C to arg0's type.
14196
14197 PR debug/47946
14198 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14199 emit it as add_AT_int instead of add_AT_unsigned.
14200
14201 2011-03-14 Tom Tromey <tromey@redhat.com>
14202
14203 * unwind-dw2.c: Include sys/sdt.h if it exists.
14204 (_Unwind_DebugHook): Use STAP_PROBE2.
14205 * config.in, configure: Rebuild.
14206 * configure.ac: Check for sys/sdt.h.
14207
14208 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
14209
14210 * config/i386/i386.md (ROUND_FLOOR): New constant.
14211 (ROUND_CEIL): Ditto.
14212 (ROUND_TRUNC): Ditto.
14213 (ROUND_MXCSR): Ditto.
14214 (ROUND_NO_EXC): Ditto.
14215 (rint<mode>2): Use new defines instead of numerical constants.
14216 (floor<mode>2): Ditto.
14217 (ceil<mode>2): Ditto.
14218 (btrunc<mode>2): Ditto.
14219 * config/i386/i386-builtin-types.def: Define ROUND function type
14220 aliases.
14221 * config/i386/i386.c (enum ix86_builtins): Add
14222 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14223 (struct builtin_description): Add
14224 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14225 (ix86_expand_sse_round): New static function.
14226 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14227 function types.
14228 (ix86_builtin_vectorized_function): Handle
14229 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14230
14231 2011-03-14 Tom Tromey <tromey@redhat.com>
14232
14233 * c-parser.c (c_parser_asm_string_literal): Clear
14234 warn_overlength_strings.
14235
14236 2011-03-14 Tom Tromey <tromey@redhat.com>
14237
14238 * c-parser.c (disable_extension_diagnostics): Save
14239 warn_overlength_strings.
14240 (restore_extension_diagnostics): Restore warn_overlength_strings.
14241
14242 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14243
14244 * BASE-VER: Change to 4.7.0.
14245
14246 2011-03-14 Richard Guenther <rguenther@suse.de>
14247
14248 PR middle-end/48098
14249 * tree.c (build_vector_from_val): Adjust assert to requirements
14250 and reality.
14251
14252 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14253
14254 PR bootstrap/48102
14255 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
14256
14257 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
14258
14259 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
14260 terms of target_flags_explicit. Adjust copyright year.
14261
14262 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
14263 * config/rs6000/t-freebsd: New file. Add override for
14264 LIB2FUNCS_EXTRA.
14265
14266 2011-03-13 Chris Demetriou <cgd@google.com>
14267
14268 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
14269 (-fno-diagnostics-show-option): this, to reflect current default.
14270 (-Werror=): Update text about -fno-diagnostics-show-option.
14271
14272 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
14273
14274 PR target/48053
14275 * config/rs6000/predicates.md (easy_vector_constant_add_self,
14276 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
14277 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
14278 mode is not V2DImode or V2DFmode.
14279 (vspltis_constant): Do not handle V2DImode and V2DFmode.
14280 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
14281 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
14282 registers to 0.
14283 (movdi_internal64): Likewise.
14284
14285 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
14286
14287 PR tree-optimization/47127
14288 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
14289 parameter.
14290 (set_cloog_options): Same.
14291 (scop_to_clast): Same.
14292 (print_clast_stmt): Do not call cloog_state_malloc and
14293 cloog_state_free.
14294 (print_generated_program): Same.
14295 (gloog): Same.
14296 * graphite-clast-to-gimple.h (cloog_state): Declared.
14297 (scop_to_clast): Adjust declaration.
14298 * graphite.c (cloog_state): Defined here.
14299 (graphite_initialize): Call cloog_state_malloc.
14300 (graphite_finalize): Call cloog_state_free.
14301
14302 2011-03-11 Jason Merrill <jason@redhat.com>
14303
14304 * attribs.c (lookup_attribute_spec): Take const_tree.
14305 * tree.h: Adjust.
14306
14307 2011-03-11 Joseph Myers <joseph@codesourcery.com>
14308
14309 * config/sparc/sparc.c (sparc_option_override): Use
14310 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
14311
14312 2011-03-11 Richard Guenther <rguenther@suse.de>
14313
14314 PR tree-optimization/48067
14315 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
14316 multiplication result will be only used once on the target
14317 stmt.
14318
14319 2011-03-11 Richard Guenther <rguenther@suse.de>
14320
14321 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
14322
14323 2011-03-11 Richard Guenther <rguenther@suse.de>
14324
14325 PR lto/48073
14326 * tree.c (find_decls_types_r): Do not walk types only reachable
14327 from IDENTIFIER_NODEs.
14328
14329 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14330
14331 PR middle-end/48044
14332 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
14333 all vnode->force_output nodes as needed.
14334
14335 2011-03-11 Jason Merrill <jason@redhat.com>
14336
14337 PR c++/48069
14338 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
14339 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
14340
14341 2011-03-11 Martin Jambor <mjambor@suse.cz>
14342
14343 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
14344 cgraph_node.
14345
14346 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14347
14348 PR tree-optimization/48063
14349 * ipa-inline.c (cgraph_decide_inlining): Don't try to
14350 inline functions called once if !tree_can_inline_p (node->callers).
14351
14352 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
14353
14354 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
14355 extra_objs.
14356 * config/score/score3.c: Delete.
14357 * config/score/score3.h: Delete.
14358 * config/score/mul-div.S: Delete.
14359 * config/score/sfp-machine.h: Add new file.
14360 * config/score/constraints.md: Add new file.
14361 * config/score/t-score-softfp: Add new file.
14362 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
14363 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
14364 (score7_extra_constraint): Delete.
14365 (score7_option_override): Remove unused code.
14366 * config/score/score.c: Remove score3 and score5 define and code.
14367 * config/score/score.h: Remove score3 and score5 define and code.
14368 * config/score/score.md: Remove score3 template and unusual insn.
14369 * config/score/score.opt: Remove score3 and score5 options.
14370
14371 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14372
14373 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
14374 when _HPUX_SOURCE is defined.
14375 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
14376
14377 2011-03-10 Jason Merrill <jason@redhat.com>
14378
14379 PR c++/48029
14380 * stor-layout.c (layout_type): Don't set structural equality
14381 on arrays of incomplete type.
14382 * tree.c (type_hash_eq): Handle comparing them properly.
14383
14384 2011-03-10 Jakub Jelinek <jakub@redhat.com>
14385
14386 PR debug/48043
14387 * config/s390/s390.c (s390_delegitimize_address): Make sure the
14388 result mode matches original rtl mode.
14389
14390 2011-03-10 Nick Clifton <nickc@redhat.com>
14391
14392 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
14393 (andsi3, andsi3_flags): Fix timings for three operand alternative.
14394
14395 2011-03-09 Jakub Jelinek <jakub@redhat.com>
14396
14397 PR rtl-optimization/47866
14398 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
14399 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
14400 if target wasn't scalar.
14401 * function.c (assign_stack_temp_for_type): Assert that neither
14402 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
14403 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
14404 macro.
14405 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
14406
14407 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14408
14409 * config/s390/s390-protos.h (s390_label_align): New prototype.
14410 * config/s390/s390.c (s390_label_align): New function.
14411 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
14412
14413 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14414
14415 PR target/47755
14416 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
14417 V2DI/V2DF constants. Only all 0's or all 1's are easy.
14418 (output_vec_const_move): Ditto.
14419
14420 2011-03-08 Anatoly Sokolov <aesok@post.ru>
14421
14422 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
14423 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
14424 * config/mips/mips.c (mips_preferred_reload_class): Make static.
14425 Change 'rclass' argument and result type to reg_class_t.
14426 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14427
14428 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
14429
14430 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14431 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
14432 (TARGET_MEMORY_MOVE_COST): Define.
14433 (avr_register_move_cost, avr_memory_move_cost): New Functions.
14434
14435 2011-03-08 Jakub Jelinek <jakub@redhat.com>
14436
14437 PR debug/47881
14438 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
14439 removed anything.
14440
14441 PR tree-optimization/48022
14442 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
14443 for EQ/NE_EXPR.
14444
14445 2011-03-07 Jakub Jelinek <jakub@redhat.com>
14446
14447 PR debug/47991
14448 * var-tracking.c (find_use_val): Return NULL for
14449 cui->sets && cui->store_p BLKmode MEMs.
14450
14451 2011-03-07 Anatoly Sokolov <aesok@post.ru>
14452
14453 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
14454 Remove.
14455 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
14456 xstormy16_print_operand_address): Remove.
14457 * config/stormy16/stormy16.c (xstormy16_print_operand,
14458 xstormy16_print_operand_address): Make static.
14459 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14460
14461 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
14462
14463 PR target/47862
14464 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
14465 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
14466 before definition.
14467
14468 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
14469
14470 PR bootstrap/48000
14471 * cfgloopmanip.c (fix_bb_placements): Return immediately
14472 if FROM is BASE_LOOP's header.
14473
14474 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
14475
14476 * gimplify.c (gimplify_function_tree): Fix building calls
14477 to __builtin_return_address.
14478
14479 2011-03-07 Alan Modra <amodra@gmail.com>
14480
14481 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
14482 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
14483 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
14484 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
14485 return_mode args.
14486 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
14487 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
14488 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
14489 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
14490 * config/rs6000/rs6000.c
14491 (rs6000_elf_end_indicate_exec_stack): Rename to..
14492 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
14493 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
14494 (rs6000_file_start): ..here.
14495 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
14496 file scope variables.
14497 (call_ABI_of_interest): New function.
14498 (init_cumulative_args): Set above vars when function return value
14499 is a float, vector, or small struct.
14500 (rs6000_function_arg_advance_1): Likewise for function args.
14501 (rs6000_va_start): Set rs6000_passes_float if variable arg function
14502 references float args.
14503
14504 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
14505
14506 * doc/cfg.texi: Remove "See" before @ref.
14507 * doc/invoke.texi: Likewise.
14508
14509 2011-03-05 Jason Merrill <jason@redhat.com>
14510
14511 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
14512
14513 2011-03-05 Anthony Green <green@moxielogic.com>
14514
14515 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
14516
14517 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
14518
14519 PR rtl-optimization/47899
14520 * cfgloopmanip.c (fix_bb_placements): Fix first argument
14521 to flow_loop_nested_p when moving the loop upward.
14522
14523 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
14524
14525 PR target/47719
14526 * arm.md (movhi_insn_arch4): Accept any immediate constant.
14527
14528 2011-03-05 Jakub Jelinek <jakub@redhat.com>
14529
14530 PR tree-optimization/47967
14531 * ipa-cp.c (build_const_val): Return NULL instead of creating
14532 VIEW_CONVERT_EXPR for mismatching sizes.
14533 (ipcp_create_replace_map): Return NULL if build_const_val failed.
14534 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
14535 give up on versioning.
14536
14537 2011-03-05 Alan Modra <amodra@gmail.com>
14538
14539 PR target/47986
14540 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14541 full cmodel medium/large lo_sum + high addresses.
14542
14543 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14544
14545 * config/s390/s390.c (s390_decompose_address): Reject non-literal
14546 pool references in UNSPEC_LTREL_OFFSET.
14547
14548 2011-03-04 Jan Hubicka <jh@suse.cz>
14549
14550 PR lto/47497
14551 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
14552 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
14553 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
14554 Add node pointers.
14555 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
14556 cgraph_add_thunk): Add node pointers.
14557 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
14558 associated to right node.
14559 (input_node): Update use of cgraph_same_body_alias
14560 and cgraph_add_thunk.
14561
14562 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
14563
14564 * config/i386/i386.opt (mprefer-avx128): New flag.
14565 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
14566 modes when the flag -mprefer-avx128 is on.
14567
14568 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
14569
14570 * dwarf2out.c (compare_loc_operands): Fix address handling.
14571
14572 2011-03-04 Alan Modra <amodra@gmail.com>
14573
14574 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
14575
14576 2011-03-04 Richard Guenther <rguenther@suse.de>
14577
14578 PR middle-end/47968
14579 * expmed.c (extract_bit_field_1): Prefer vector modes that
14580 vec_extract patterns can handle.
14581
14582 2011-03-04 Richard Guenther <rguenther@suse.de>
14583
14584 PR middle-end/47975
14585 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
14586
14587 2011-03-04 Richard Henderson <rth@redhat.com>
14588
14589 * explow.c (emit_stack_save): Remove 'after' parameter.
14590 (emit_stack_restore): Likewise.
14591 * expr.h: Update to match.
14592 * builtins.c, calls.c, stmt.c: Likewise.
14593 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
14594 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
14595 * function.c (expand_function_end): Insert the emit_stack_save
14596 sequence before parm_birth_insn instead of after.
14597
14598 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
14599
14600 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
14601 (ssse3_pmaddubsw128): Ditto.
14602 (ssse3_pmaddubsw): Ditto.
14603
14604 2011-03-03 Steve Ellcey <sje@cup.hp.com>
14605
14606 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
14607
14608 2011-03-03 Jakub Jelinek <jakub@redhat.com>
14609
14610 PR c/47963
14611 * gimplify.c (omp_add_variable): Only call omp_notice_variable
14612 on TYPE_SIZE_UNIT if it is a DECL.
14613
14614 PR debug/47283
14615 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
14616 first operand is not is_gimple_mem_ref_addr, try to fold it.
14617 If the operand still isn't is_gimple_mem_ref_addr, clear
14618 MEM_EXPR on op0.
14619
14620 2011-03-03 Richard Guenther <rguenther@suse.de>
14621
14622 PR middle-end/47283
14623 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
14624 match comment.
14625 (refs_may_alias_p_1): For release branches return true if
14626 we are confused by our input.
14627
14628 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14629
14630 * config/s390/s390.c (s390_function_value): Rename to ...
14631 (s390_function_and_libcall_value): ... this.
14632 (s390_function_value): New function.
14633 (s390_libcall_value): New function.
14634 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
14635 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
14636 target macro definitions.
14637 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
14638
14639 2011-03-02 Joseph Myers <joseph@codesourcery.com>
14640
14641 * config/i386/freebsd64.h (CC1_SPEC): Define.
14642 * config/i386/linux64.h (CC1_SPEC): Define.
14643 * config/i386/x86-64.h (CC1_SPEC): Don't define.
14644
14645 2011-03-02 Anatoly Sokolov <aesok@post.ru>
14646
14647 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14648 Remove.
14649 * config/stormy16/stormy16.c: Include reload.h.
14650 (xstormy16_memory_move_cost): New function.
14651 (TARGET_MEMORY_MOVE_COST): Define.
14652
14653 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
14654
14655 PR rtl-optimization/47925
14656 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
14657 with side effects. Remove the more-specific check for volatile asms.
14658
14659 2011-03-02 Alan Modra <amodra@gmail.com>
14660
14661 PR target/47935
14662 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
14663 toc relative addresses for valid offsets.
14664
14665 2011-03-01 Richard Guenther <rguenther@suse.de>
14666
14667 PR tree-optimization/47890
14668 * tree-vect-loop.c (get_initial_def_for_induction): Set
14669 related stmt properly.
14670
14671 2011-03-01 Richard Guenther <rguenther@suse.de>
14672
14673 PR lto/47924
14674 * lto-streamer.c (lto_record_common_node): Also register
14675 the canonical type.
14676
14677 2011-03-01 Richard Guenther <rguenther@suse.de>
14678
14679 PR lto/46911
14680 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14681 Do not stream DECL_ABSTRACT_ORIGIN.
14682 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14683 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14684 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14685 Do not stream DECL_ABSTRACT_ORIGIN.
14686 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14687 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14688
14689 2011-02-28 Anatoly Sokolov <aesok@post.ru>
14690
14691 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
14692 FUNCTION_VALUE_REGNO_P): Remove.
14693 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
14694 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
14695 Add 'outgoing' argument.
14696 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
14697 function.
14698 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14699 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14700
14701 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
14702
14703 PR debug/28047
14704 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
14705 (lookup_filename): Likewise.
14706 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
14707
14708 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
14709 Jakub Jelinek <jakub@redhat.com>
14710
14711 PR middle-end/47893
14712 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
14713 (assign_stack_local_1): Change last argument type to int.
14714 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
14715 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
14716 don't record padding space into frame_space_list nor use those areas.
14717 (assign_stack_local): Adjust caller.
14718 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
14719 of assign_stack_local, pass 0 as last argument.
14720 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
14721 callers.
14722
14723 2011-02-28 Jakub Jelinek <jakub@redhat.com>
14724
14725 PR debug/47283
14726 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
14727 Use target address_mode and pointer_mode hooks instead of hardcoded
14728 Pmode and ptr_mode. Handle some simple cases of extending if
14729 POINTERS_EXTEND_UNSIGNED < 0.
14730 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
14731 Call convert_debug_memory_address.
14732 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
14733 convert_debug_memory_address.
14734
14735 PR middle-end/46790
14736 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
14737 * configure: Regenerated.
14738 * config.in: Regenerated.
14739 * varasm.c (default_function_section): Return NULL
14740 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
14741
14742 2011-02-28 Martin Jambor <mjambor@suse.cz>
14743
14744 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
14745 the description to match the printed values.
14746
14747 2011-02-28 Richard Guenther <rguenther@suse.de>
14748
14749 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
14750 of the copied scope tree.
14751
14752 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14753
14754 * doc/extend.texi (Function Attributes): Avoid deeply (and
14755 wrongly) nested tables.
14756
14757 2011-02-27 Jakub Jelinek <jakub@redhat.com>
14758
14759 PR middle-end/47903
14760 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
14761 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
14762 r isn't op0 nor op1.
14763
14764 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14765
14766 * config/avr/avr.md: Remove magic comment for emacs.
14767
14768 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14769
14770 PR target/45261
14771 * config/avr/avr.c (avr_option_override): Use error on bad options.
14772 (avr_help): New function.
14773 (TARGET_HELP): Define.
14774
14775 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
14776
14777 PR target/42240
14778 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
14779 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
14780
14781 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
14782
14783 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
14784 (ARM Options): Ditto.
14785 (i386 and x86-64 Options): Ditto.
14786 (RX Options): Ditto.
14787 (SPARC Options): Ditto.
14788
14789 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
14790
14791 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
14792 FreeBSD 6 and later. Generally use cpu generic.
14793
14794 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
14795
14796 * doc/cpp.texi: Update copyright years.
14797
14798 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
14799
14800 PR target/46898
14801 * config/lm32/lm32.md (ashrsi3): Added needed variable.
14802
14803 2011-02-25 Jon Beniston <jon@beniston.com>
14804
14805 PR target/46898
14806 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
14807 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
14808 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
14809 (lm32_block_move_inline): Add type cast to remove warning.
14810 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
14811 (gen_int_relational): Move declarations to start of function.
14812
14813 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
14814
14815 PR tree-optimization/45470
14816 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
14817 can throw internally only.
14818 * tree-vect-stmts.c (vectorizable_call): Likewise.
14819
14820 2011-02-24 Anatoly Sokolov <aesok@post.ru>
14821
14822 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
14823 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14824 * config/stormy16/stormy16-protos.h
14825 (xstormy16_preferred_reload_class): Remove.
14826 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
14827 static. Change 'rclass' argument and return type to reg_class_t.
14828 (TARGET_PREFERRED_RELOAD_CLASS,
14829 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14830
14831 2011-02-24 Richard Guenther <rguenther@suse.de>
14832
14833 * lto-streamer-in.c (input_bb): Do not find referenced vars
14834 in debug statements.
14835
14836 2011-02-23 Jason Merrill <jason@redhat.com>
14837
14838 * common.opt (fabi-version): Document v5 and v6.
14839
14840 2011-02-23 Richard Guenther <rguenther@suse.de>
14841
14842 PR tree-optimization/47849
14843 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
14844
14845 2011-02-23 Jie Zhang <jie@codesourcery.com>
14846
14847 * opts-common.c (decode_cmdline_option): Print empty string
14848 argument as "" in decoded->orig_option_with_args_text.
14849 * gcc.c (execute): Print empty string argument as ""
14850 in the verbose output.
14851 (do_spec_1): Keep empty string argument.
14852
14853 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
14854
14855 * config.gcc: Declare score-* and crx-* obsolete.
14856
14857 2011-02-23 Jie Zhang <jie@codesourcery.com>
14858
14859 PR rtl-optimization/47763
14860 * web.c (web_main): Ignore naked clobber when replacing register.
14861
14862 2011-02-22 Anatoly Sokolov <aesok@post.ru>
14863
14864 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14865 Remove.
14866
14867 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
14868
14869 PR doc/47848
14870 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
14871
14872 2011-02-22 Mike Stump <mikestump@comcast.net>
14873
14874 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
14875 assembler.
14876 * configure: Regenerate.
14877
14878 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
14879
14880 PR rtl-optimization/46002
14881 * ira-color.c (update_copy_costs): Change class intersection
14882 test to reg_class_contents[] test of 'hard_regno'.
14883
14884 2011-02-21 Joseph Myers <joseph@codesourcery.com>
14885
14886 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
14887 than Driver option.
14888 * config/hpux11.opt (mt): Likewise.
14889 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
14890 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
14891 * config/vax/elf.opt (mno-asm-pic): Likewise.
14892 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
14893
14894 2011-02-21 Mike Stump <mikestump@comcast.net>
14895
14896 PR target/47822
14897 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
14898 tree so we can get save the type.
14899 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
14900 for CFString instead of trying to use past the end of the builtins.
14901 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
14902 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
14903 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
14904 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
14905 Rename to darwin_builtin_cfstring.
14906 (darwin_init_cfstring_builtins): Return the built type.
14907
14908 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
14909
14910 PR target/47840
14911 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
14912 (_mm256_insert_epi64): Use _mm_insert_epi64.
14913
14914 2011-02-21 Anatoly Sokolov <aesok@post.ru>
14915
14916 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14917 * config/stormy16/stormy16-protos.h
14918 (xstormy16_mode_dependent_address_p): Remove.
14919 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
14920 Make static. Change return type to bool. Change argument type to
14921 const_rtx. Remove dead code.
14922 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14923
14924 2011-02-21 Richard Guenther <rguenther@suse.de>
14925
14926 PR lto/47820
14927 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14928 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14929 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
14930 TUs context.
14931 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14932 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14933
14934 2011-02-20 Richard Guenther <rguenther@suse.de>
14935
14936 PR lto/47822
14937 * tree.c (free_lang_data_in_decl): Clean builtins from
14938 the TU decl BLOCK_VARS.
14939
14940 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
14941
14942 PR debug/47620
14943 PR debug/47630
14944 * haifa-sched.c (fix_tick_ready): Skip tick computation
14945 for debug insns.
14946
14947 2011-02-19 Richard Guenther <rguenther@suse.de>
14948
14949 PR lto/47647
14950 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
14951 Remove lazy BLOCK_VARS streaming.
14952 (lto_input_ts_block_tree_pointers): Likewise.
14953 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
14954
14955 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14956
14957 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
14958
14959 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14960
14961 * config/i386/biarch32.h, config/i386/mach.h,
14962 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
14963
14964 2011-02-19 Jakub Jelinek <jakub@redhat.com>
14965
14966 PR target/47800
14967 * config/i386/i386.md (peephole2 for shift and plus): Use
14968 operands[1] original mode in the first insn.
14969
14970 2011-02-18 Mike Stump <mikestump@comcast.net>
14971
14972 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
14973
14974 2011-02-18 Jan Hubicka <jh@suse.cz>
14975
14976 PR middle-end/47788
14977 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
14978 to zero when the function is not inlinable at all.
14979
14980 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14981
14982 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
14983 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14984 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
14985 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
14986 * config/pa/t-pa64: Likewise.
14987 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14988
14989 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14990
14991 PR driver/47787
14992 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
14993
14994 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14995
14996 PR target/47792
14997 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
14998
14999 2011-02-18 Anatoly Sokolov <aesok@post.ru>
15000
15001 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15002 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15003 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15004 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15005 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15006 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15007 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15008 m32r_load_postinc_p, m32r_store_preinc_predec_p,
15009 m32r_legitimate_address_p): New functions.
15010 * config/m32r/constraints.md (constraint "S"): Don't use
15011 STORE_PREINC_PREDEC_P.
15012 (constraint "U"): Don't use LOAD_POSTINC_P.
15013
15014 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
15015
15016 PR rtl-optimization/46178
15017 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15018 compute ira_hard_regno_cover_class[].
15019
15020 2011-02-18 Richard Guenther <rguenther@suse.de>
15021
15022 PR lto/47798
15023 * lto-streamer.h (lto_global_var_decls): Declare.
15024 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15025 statics for global var processing.
15026
15027 2011-02-18 Richard Guenther <rguenther@suse.de>
15028
15029 PR tree-optimization/47737
15030 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15031 edge dominance check.
15032
15033 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15034
15035 PR debug/47780
15036 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15037 avoid invalid rtx sharing.
15038
15039 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
15040
15041 * doc/cpp.texi (Obsolete Features): Add background on the
15042 origin of assertions.
15043
15044 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
15045
15046 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
15047 objc_abi == 2.
15048 * config/darwin.c (output_objc_section_asm_op): Added support for
15049 ABI v1 and v2.
15050 (is_objc_metadata): New.
15051 (darwin_objc2_section): New.
15052 (darwin_objc1_section): New.
15053 (machopic_select_section): Added support for ABI v1 and v2.
15054 (darwin_emit_objc_zeroed): New.
15055 (darwin_output_aligned_bss): Detect objc metadata and treat it
15056 appropriately.
15057 (darwin_asm_output_aligned_decl_common): Same.
15058 (darwin_asm_output_aligned_decl_local): Same.
15059 * config/darwin-sections.def: Updated for ABI v1 and v2.
15060 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15061 compiling Objective-C code for the NeXT runtime, default to using
15062 ABI version 0 for 32-bit, and version 2 for 64-bit.
15063
15064 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15065
15066 * common.opt (optimize_fast): New Variable.
15067 * opts.c (default_options_optimization): Use opts->x_optimize_fast
15068 instead of local variable ofast.
15069
15070 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
15071
15072 * doc/invoke.texi (fobjc-abi-version): Documented.
15073 (fobjc-nilcheck): Documented.
15074 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15075 version.
15076
15077 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15078
15079 PR driver/47390
15080 * common.opt (export-dynamic): New Driver option.
15081 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15082
15083 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15084
15085 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15086
15087 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
15088 Jan Hubicka <jh@suse.cz>
15089
15090 PR debug/47106
15091 PR debug/47402
15092 * cfgexpand.c (account_used_vars_for_block): Remove.
15093 (estimated_stack_frame_size): Use referenced vars.
15094 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15095 that were referenced in the original function. Test src_fn
15096 rather than cfun. Drop redundant get_var_ann.
15097 (setup_one_parameter): Drop redundant get_var_ann.
15098 (declare_return_variable): Likewise.
15099 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15100 (copy_arguments_for_versioning): Drop redundant get_var_ann.
15101 * ipa-inline.c (compute_inline_parameters): Do not compute
15102 disregard_inline_limits here.
15103 (compute_inlinable_for_current, pass_inlinable): New.
15104 (pass_inline_parameters): Require PROP_referenced_vars.
15105 * cgraphunit.c (cgraph_process_new_functions): Don't run
15106 compute_inline_parameters explicitly unless function is in SSA form.
15107 (cgraph_analyze_function): Set .disregard_inline_limits.
15108 * tree-sra.c (convert_callers): Compute inliner parameters
15109 only for functions already in SSA form.
15110
15111 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15112
15113 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15114 -mlittle-endian-data.
15115
15116 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15117
15118 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15119 -mno-fpu, not -fpu and -no-fpu.
15120 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15121 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15122
15123 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
15124
15125 PR target/43653
15126 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15127 input reload with PLUS RTX.
15128
15129 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15130
15131 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15132 of InverseVar(MDMX).
15133
15134 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15135
15136 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15137 --m4-340.
15138
15139 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15140
15141 * config/mn10300/mn10300.opt (mno-crt0): New.
15142
15143 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15144
15145 * config/m68k/uclinux.opt (static-libc): New Driver option.
15146
15147 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15148
15149 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15150
15151 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15152
15153 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15154 %{muser-extend-enabled}.
15155
15156 2011-02-16 Richard Guenther <rguenther@suse.de>
15157
15158 PR tree-optimization/47738
15159 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15160 the TODO from tree_predictive_commoning.
15161
15162 2011-02-15 Jeff Law <law@redhat.com>
15163
15164 Revert
15165 2011-01-25 Jeff Law <law@redhat.com>
15166
15167 PR rtl-optimization/37273
15168 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15169 handle them like argument loads from stack slots. Do not double
15170 count memory for memory constants and argument loads from stack slots.
15171
15172 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15173
15174 PR middle-end/47725
15175 * combine.c (cant_combine_insn_p): Revert the last change.
15176
15177 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15178
15179 PR target/47755
15180 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15181 mode for vector constants. Remove code that checks for TImode.
15182
15183 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15184
15185 PR debug/47106
15186 PR debug/47402
15187 * cgraph.h (compute_inline_parameters): Return void.
15188 * ipa-inline.c (compute_inline_parameters): Adjust.
15189
15190 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15191
15192 PR debug/47106
15193 PR debug/47402
15194 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15195 rather than decl.
15196 * cfgexpand.c (estimated_stack_frame_size): Likewise.
15197 * ipa-inline.c (compute_inline_parameters): Adjust.
15198
15199 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15200
15201 PR debug/47106
15202 PR debug/47402
15203 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15204 Adjust all users. Pass FN to...
15205 * tree-flow-inline.h (first_referenced_var): ... this. Add
15206 fn argument.
15207 * ipa-struct-reorg.c: Adjust.
15208 * tree-dfa.c: Adjust.
15209 * tree-into-ssa.c: Adjust.
15210 * tree-sra.c: Adjust.
15211 * tree-ssa-alias.c: Adjust.
15212 * tree-ssa-live.c: Adjust.
15213 * tree-ssa.c: Adjust.
15214 * tree-ssanames.c: Adjust.
15215 * tree-tailcall.c: Adjust.
15216
15217 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15218
15219 PR debug/47106
15220 PR debug/47402
15221 * tree-flow.h (referenced_var_lookup): Add fn parameter.
15222 Adjust all callers.
15223 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15224 * tree-flow-inline.h: Adjust.
15225 * gimple-pretty-print.c: Adjust.
15226 * tree-into-ssa.c: Adjust.
15227 * tree-ssa.c: Adjust.
15228 * cfgexpand.c: Adjust.
15229
15230 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15231
15232 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15233 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15234 (EXTRA_CONSTRAINT): Delete.
15235 * config/iq2000/constraints.md: New file.
15236 * config/iq2000/iq2000.md: Include it.
15237 (define_insn ""): Delete.
15238 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15239 unsupported constraint letters from patterns.
15240 (call_value, call_value_internal1): Likewise.
15241 (call_value_multiple_internal1): Likewise.
15242
15243 2011-02-15 Nick Clifton <nickc@redhat.com>
15244
15245 * config/mn10300/mn10300.c: Include tm-constrs.h.
15246 (struct liw_data): New data structure describing an LIW candidate
15247 instruction.
15248 (extract_bundle): Use struct liw_data. Allow small integer
15249 operands for some instructions.
15250 (check_liw_constraints): Use struct liw_data. Remove swapped
15251 parameter. Add comments describing the checks. Fix bug when
15252 assigning the source of liw1 to the source of liw2.
15253 (liw_candidate): Delete. Code moved into extract_bundle.
15254 (mn10300_bundle_liw): Use struct liw_data. Check constraints
15255 before swapping.
15256 * config/mn10300/predicates.md (liw_operand): New predicate.
15257 Allows registers and small integer constants.
15258 * config/mn10300/constraints.md (O): New constraint. Accetps
15259 integers in the range -8 to +7 inclusive.
15260 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
15261 for moving a small integer into a register. Give this alternative
15262 LIW attributes.
15263 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
15264 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
15265 using the J,K,L and M constraints,
15266 (liw): Remove SI mode on second operands to allow for HI and QI
15267 mode values.
15268 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
15269 instruction.
15270
15271 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15272
15273 PR middle-end/47725
15274 * combine.c (cant_combine_insn_p): Check zero/sign extended
15275 hard registers.
15276
15277 2011-02-15 Richard Guenther <rguenther@suse.de>
15278
15279 PR tree-optimization/47743
15280 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
15281 for a non-type-compatible VN lookup bail out.
15282
15283 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15284
15285 * config/fr30/constraints.md: New file.
15286 * config/fr30/fr30.md: Include it.
15287 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
15288 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15289 (EXTRA_CONSTRAINT): Delete.
15290
15291 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15292
15293 * config/frv/constraints.md: New file.
15294 * config/frv/predicates.md: Include it.
15295 * config/frv/frv.c (reg_class_from_letter): Delete.
15296 (frv_option_override): Don't initialize it.
15297 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
15298 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
15299 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
15300 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15301 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
15302 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15303 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
15304 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
15305 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
15306 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
15307 (REG_CLASS_FROM_CONSTRAINT): Delete.
15308
15309 2011-02-15 Jakub Jelinek <jakub@redhat.com>
15310
15311 PR middle-end/47581
15312 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
15313 if frame size is 0 in a leaf function.
15314
15315 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15316
15317 PR pch/14940
15318 * config/alpha/host-osf.c: New file.
15319 * config/alpha/x-osf: New file.
15320 * config.host (alpha*-dec-osf*): Use it.
15321
15322 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15323
15324 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15325 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
15326 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
15327 (rx_mode_dependent_address_p): ...this. Make static. Change argument
15328 type to const_rtx.
15329 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15330
15331 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15332
15333 * config/stormy16/constraints.md: New file.
15334 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
15335 Use satisfies_constraint_Q and satisfies_constraint_R.
15336 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
15337 Delete.
15338 (xstormy16_legitiamte_address_p): Declare.
15339 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
15340 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15341 (EXTRA_CONSTRAINT): Delete.
15342 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15343 Un-staticize.
15344 (xstormy16_extra_constraint_p): Delete.
15345
15346 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
15347
15348 PR tree-optimization/46494
15349 * loop-unroll.c (split_edge_and_insert): Adjust comment.
15350 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
15351 (pass_rtl_loop_done): Add TODO_verify_flow.
15352 * fwprop.c (pass_rtl_fwprop): Likewise.
15353 * modulo-sched.c (pass_sms): Likewise.
15354 * tree-ssa-dom.c (pass_dominator): Likewise.
15355 * tree-ssa-loop-ch.c (pass_ch): Likewise.
15356 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
15357 (pass_tree_loop_done): Likewise.
15358 * tree-ssa-pre.c (execute_pre): Likewise.
15359 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
15360 * tree-ssa-sink.c (pass_sink_code): Likewise.
15361 * tree-vrp.c (pass_vrp): Likewise.
15362
15363 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15364
15365 * config/v850/constraints.md: New file.
15366 * config/v850/v850.md: Include it.
15367 * config/v850/predicates.md (reg_or_0_operand): Use
15368 satisfies_constraint_G.
15369 (special_symbolref_operand): Use satisfies_constraint_K.
15370 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
15371 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
15372 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
15373 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15374 (EXTRA_CONSTRAINT): Delete.
15375 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
15376 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
15377 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
15378
15379 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15380
15381 PR target/47696
15382 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
15383 description.
15384
15385 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15386
15387 * config/mcore/constraints.md: New file.
15388 * config/mcore/mcore.md: Include it.
15389 * config/mcore/mcore.c (reg_class_from_letter): Delete.
15390 * config/mcore/mcore.h (reg_class_from_letter): Delete.
15391 (REG_CLASS_FROM_LETTER): Delete.
15392 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
15393 insn_const_int_ok_for_constraint.
15394 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
15395 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
15396 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15397 (EXTRA_CONSTRAINT): Delete.
15398
15399 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15400
15401 PR ada/41929
15402 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
15403 (IS_SIGHANDLER): Define.
15404 (sparc64_is_sighandler): New function, split off from
15405 sparc64_fallback_frame_state.
15406 (sparc_is_sighandler): New function, split off from
15407 sparc_fallback_frame_state.
15408 (sparc64_fallback_frame_state): Merge with ...
15409 (sparc_fallback_frame_state): ... this into ...
15410 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
15411 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
15412 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
15413 stack instead of hardcoded offsets.
15414
15415 2011-02-14 Andriy Gapon <avg@freebsd.org>
15416
15417 PR target/45808
15418 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
15419
15420 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15421
15422 * configure: Regenerate.
15423
15424 2011-02-12 Joseph Myers <joseph@codesourcery.com>
15425
15426 PR driver/45731
15427 * gcc.c (asm_options): Correct spec matching --target-help.
15428
15429 2011-02-12 Martin Jambor <mjambor@suse.cz>
15430
15431 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
15432 to gimple call error.
15433
15434 2011-02-12 Mike Stump <mikestump@comcast.net>
15435
15436 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
15437 comments in backslash regions.
15438
15439 2011-02-12 Mike Stump <mikestump@comcast.net>
15440 Jakub Jelinek <jakub@redhat.com>
15441 Iain Sandoe <iains@gcc.gnu.org>
15442
15443 PR target/47324
15444 * dwarf2out.c (output_cfa_loc): When required, apply the
15445 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
15446 (output_loc_sequence): Likewise.
15447 (output_loc_operands_raw): Likewise.
15448 (output_loc_sequence_raw): Likewise.
15449 (output_cfa_loc): Likewise.
15450 (output_loc_list): Suppress register number adjustment when
15451 calling output_loc_sequence()
15452 (output_die): Likewise.
15453
15454 2011-02-12 Anatoly Sokolov <aesok@post.ru>
15455
15456 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15457 Remove macros.
15458 * config/xtensa/xtensa.c (xtensa_register_move_cost,
15459 xtensa_memory_move_cost): New functions.
15460 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
15461
15462 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
15463
15464 PR lto/47225
15465 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
15466 in the current directory.
15467 * configure: Rebuilt.
15468
15469 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15470
15471 * config/darwin.c (darwin_override_options): Add a hunk missed
15472 from the commit of r168571. Trim comment line lengths and
15473 correct indents of the preceding block.
15474
15475 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15476
15477 * gcc.c (driver_handle_option): Concatenate the argument to -F with
15478 the switch.
15479
15480 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15481
15482 * common.opt (nostartfiles): New Driver option.
15483
15484 2011-02-11 Xinliang David Li <davidxl@google.com>
15485
15486 PR tree-optimization/47707
15487 * tree-chrec.c (convert_affine_scev): Keep type precision.
15488
15489 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
15490
15491 PR tree-optimization/47420
15492 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
15493
15494 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
15495
15496 PR rtl-optimization/47614
15497 * rtl.h (check_for_inc_dec): Declare.
15498 * dse.c (check_for_inc_dec): Externalize...
15499 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
15500 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
15501
15502 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15503
15504 PR driver/47678
15505 * gcc.c (main): Do not compile inputs if there were errors in
15506 option handling.
15507 * opts-common.c (read_cmdline_option): Check for wrong language
15508 after other error checks.
15509
15510 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
15511
15512 * cgraph.c: Fix comment typos.
15513 * cgraph.h: Likewise.
15514 * cgraphunit.c: Likewise.
15515 * ipa-cp.c: Likewise.
15516 * ipa-inline.c: Likewise.
15517 * ipa-prop.c: Likewise.
15518 * ipa-pure-const.c: Likewise.
15519 * ipa-ref.c: Likewise.
15520 * ipa-reference.c: Likewise.
15521
15522 2011-02-11 Jakub Jelinek <jakub@redhat.com>
15523
15524 PR debug/47684
15525 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
15526
15527 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15528
15529 PR testsuite/47400
15530 * doc/sourcebuild.texi (Require Support): Document
15531 dg-require-ascii-locale.
15532
15533 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
15534
15535 * doc/lto.texi (Write summary): Fix missing parentheses.
15536
15537 2011-02-10 DJ Delorie <dj@redhat.com>
15538
15539 * config/m32c/m32c.c (m32c_option_override): Disable
15540 -fcombine-stack-adjustments until flag value tracking and compare
15541 optimization can be rewritten.
15542
15543 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
15544
15545 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
15546 PROCESSOR_POWER7.
15547 (PROCESSOR_DEFAULT64): Likewise.
15548
15549 2011-02-10 Richard Henderson <rth@redhat.com>
15550
15551 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
15552 change from 2011-02-03.
15553 * config/rx/rx.c (flags_from_code): Likewise.
15554 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
15555 is valid, n/pz otherwise.
15556 (rx_select_cc_mode): Return CCmode if Y is not zero.
15557
15558 2011-02-10 Richard Guenther <rguenther@suse.de>
15559
15560 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
15561
15562 2011-02-10 Richard Guenther <rguenther@suse.de>
15563
15564 PR tree-optimization/47677
15565 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
15566
15567 2011-02-10 Jakub Jelinek <jakub@redhat.com>
15568
15569 PR target/47665
15570 * combine.c (make_compound_operation): Only change shifts into
15571 multiplication for SCALAR_INT_MODE_P.
15572
15573 2011-02-10 Jie Zhang <jie@codesourcery.com>
15574
15575 PR testsuite/47622
15576 Revert
15577 2011-02-05 Jie Zhang <jie@codesourcery.com>
15578 PR debug/42631
15579 * web.c (entry_register): Don't clobber the number of the
15580 first uninitialized reference in used[].
15581
15582 2011-02-09 Richard Guenther <rguenther@suse.de>
15583
15584 PR tree-optimization/47664
15585 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
15586 all edges again.
15587
15588 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
15589
15590 PR target/46481
15591 PR target/47032
15592 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
15593 PROCESSOR_POWER7.
15594 (PROCESSOR_DEFAULT64): Same.
15595 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
15596
15597 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15598
15599 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
15600
15601 2011-02-09 Martin Jambor <mjambor@suse.cz>
15602
15603 PR middle-end/45505
15604 * tree-sra.c (struct access): New flags grp_scalar_read and
15605 grp_scalar_write. Changed description of assignment read and write
15606 flags.
15607 (dump_access): Dump new flags, reorder all of them.
15608 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
15609 to detect multiple scalar reads.
15610 (analyze_access_subtree): Use the new scalar read write flags instead
15611 of the old flags. Adjusted comments.
15612
15613 2011-02-08 DJ Delorie <dj@redhat.com>
15614
15615 PR target/47548
15616 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
15617 patterns.
15618
15619 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15620
15621 * config/m68k/uclinux.opt: New.
15622 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
15623
15624 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15625
15626 * config/cris/elf.opt (sim): New Driver option.
15627
15628 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15629
15630 * config/xtensa/elf.opt: New.
15631 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
15632
15633 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15634
15635 * config/vax/elf.opt: New.
15636 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
15637
15638 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15639
15640 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
15641
15642 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15643
15644 * config/gnu-user.opt: New.
15645 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
15646 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
15647 *-*-uclinux*): Use gnu-user.opt.
15648
15649 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
15650
15651 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
15652 * config/i386/gnu.h (CPP_SPEC): Likewise.
15653
15654 2011-02-08 Ian Lance Taylor <iant@google.com>
15655
15656 * common.opt (fcx-limited-range): Add SetByCombined flag.
15657 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
15658 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
15659 (fassociative-math, freciprocal-math): Likewise.
15660 (funsafe-math-optimizations): Likewise.
15661 * opth-gen.awk: Handle SetByCombined.
15662 * optc-gen.awk: Likewise.
15663 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
15664 (set_unsafe_math_optimizations_flags): Likewise.
15665 * doc/options.texi (Option properties): Document SetByCombined.
15666
15667 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15668
15669 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
15670 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
15671 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
15672 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
15673 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
15674
15675 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
15676
15677 PR tree-optimization/46834
15678 PR tree-optimization/46994
15679 PR tree-optimization/46995
15680 * graphite-sese-to-poly.c (used_outside_reduction): New.
15681 (detect_commutative_reduction): Call used_outside_reduction.
15682 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
15683 translate_scalar_reduction_to_array only when at least one
15684 loop-phi/close-phi tuple has been detected.
15685
15686 2011-02-08 Richard Guenther <rguenther@suse.de>
15687
15688 PR middle-end/47639
15689 * tree-vect-generic.c (expand_vector_operations_1): Update
15690 stmts here ...
15691 (expand_vector_operations): ... not here. Cleanup EH info
15692 and the CFG if required.
15693
15694 2011-02-08 Richard Guenther <rguenther@suse.de>
15695
15696 PR tree-optimization/47641
15697 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
15698 require type compatibility.
15699
15700 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15701
15702 * gimple-low.c (lower_function_body): Don't remove the location of
15703 the return statement here.
15704 (lower_gimple_return): Do it here instead but only if the return
15705 statement is actually used twice.
15706
15707 2011-02-08 Richard Guenther <rguenther@suse.de>
15708
15709 PR tree-optimization/47632
15710 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
15711 unused up_to_stmt parameter, return whether cfg-cleanup is
15712 necessary, remove EH info properly.
15713 (forward_propagate_into_gimple_cond): Adjust caller.
15714 (forward_propagate_into_cond): Likewise.
15715 (forward_propagate_comparison): Likewise.
15716 (tree_ssa_forward_propagate_single_use_vars): Make
15717 forward_propagate_comparison case similar to the two others.
15718
15719 2011-02-08 Nick Clifton <nickc@redhat.com>
15720
15721 * config/mn10300/mn10300.opt (mliw): New command line option.
15722 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
15723 (liw_bundling): New automaton.
15724 (liw): New attribute.
15725 (liw_op): New attribute.
15726 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
15727 (movsi_internal): Add LIW attributes.
15728 (andsi3): Likewise.
15729 (iorsi3): Likewise.
15730 (xorsi3): Likewise.
15731 (addsi3): Separate register and immediate alternatives.
15732 Add LIW attributes.
15733 (subsi3): Likewise.
15734 (cmpsi): Likewise.
15735 (aslsi3): Likewise.
15736 (lshrsi3): Likewise.
15737 (ashrsi3): Likewise.
15738 (liw): New pattern.
15739 * config/mn10300/mn10300.c (liw_op_names): New
15740 (mn10300_print_operand): Handle 'W' operand descriptor.
15741 (extract_bundle): New function.
15742 (check_liw_constraints): New function.
15743 (liw_candidate): New function.
15744 (mn10300_bundle_liw): New function.
15745 (mn10300_reorg): New function.
15746 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15747 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
15748 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
15749 __LIW__ or __NO_LIW__.
15750 * doc/invoke.texi: Describe the -mliw command line option.
15751
15752 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15753
15754 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
15755 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15756 pthread_mutex_unlock): Remove.
15757 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
15758 * config/pa/t-pa64: Likewise.
15759 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
15760 shared libc if not linking against libpthread.
15761 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15762
15763 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
15764
15765 PR target/47558
15766 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
15767 on 10.6 and later to ensure that we always use the unwinder from
15768 the system. Only add -no_compact_unwind when tarteting darwin
15769 10.6 or later.
15770
15771 2011-02-07 Steve Ellcey <sje@cup.hp.com>
15772
15773 PR target/46997
15774 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
15775 (vec_interleave_lowv2sf): Ditto.
15776 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
15777 (vec_extract_oddv2sf): Ditto.
15778
15779 2011-02-07 Mike Stump <mikestump@comcast.net>
15780
15781 PR target/42333
15782 Add __ieee_divdc3 entry point.
15783 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
15784 entry point.
15785 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
15786 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
15787 * config/darwin.c (darwin_rename_builtins): Add.
15788 * config/darwin-protos.h (darwin_rename_builtins): Add.
15789
15790 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15791
15792 PR target/47636
15793 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
15794 for the condition.
15795
15796 2011-02-07 Mike Stump <mikestump@comcast.net>
15797
15798 * config/darwin.opt (mmacosx-version-min): Update default OS version.
15799
15800 2011-02-07 Denis Chertykov <chertykov@gmail.com>
15801
15802 PR target/47534
15803 * config/avr/libgcc.S (exit): Move .endfunc
15804
15805 2011-02-07 Richard Guenther <rguenther@suse.de>
15806
15807 PR tree-optimization/47615
15808 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
15809 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
15810 (run_scc_vn): Initialize it.
15811 (visit_reference_op_load): Use it.
15812 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
15813
15814 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15815
15816 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
15817 DImode trapping arithmetic libfuncs.
15818
15819 2011-02-07 Richard Guenther <rguenther@suse.de>
15820
15821 PR tree-optimization/47621
15822 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
15823 two duplicates ...
15824 (execute_update_addresses_taken): ... here. Make it more
15825 conservative in what we accept.
15826
15827 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15828
15829 * config/sparc/freebsd.h (ASM_SPEC): Define.
15830 * config/sparc/vxworks.h (ASM_SPEC): Define.
15831
15832 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15833
15834 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15835
15836 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
15837
15838 * doc/invoke.texi: Remove reference to compiler internals from
15839 user documentation.
15840
15841 * reg-notes.def: Remove REG_VALUE_PROFILE.
15842 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
15843
15844 2011-02-05 Jakub Jelinek <jakub@redhat.com>
15845
15846 PR middle-end/47610
15847 * varasm.c (default_section_type_flags): If decl is NULL,
15848 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
15849
15850 2011-02-05 Jie Zhang <jie@codesourcery.com>
15851
15852 PR debug/42631
15853 * web.c (entry_register): Don't clobber the number of the
15854 first uninitialized reference in used[].
15855
15856 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
15857
15858 PR tree-optimization/46194
15859 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
15860 (build_classic_dist_vector_1): Do not represent classic distance
15861 vectors when the access functions are variating in different loops.
15862
15863 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15864
15865 * config/mips/iris6.opt: New.
15866 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
15867
15868 2011-02-04 Richard Henderson <rth@redhat.com>
15869 Steve Ellcey <sje@cup.hp.com>
15870
15871 PR target/46997
15872 * config/ia64/predicates.md (mux1_brcst_element): New.
15873 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
15874 * config/ia64/ia64.c (ia64_unpack_assemble): New.
15875 (ia64_unpack_sign): New.
15876 (ia64_expand_unpack): Rewrite using new routines.
15877 (ia64_expand_widen_sum): Ditto.
15878 (ia64_expand_dot_prod_v8qi): Ditto.
15879 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
15880 routines, add endian check.
15881 (pmpy2_even): Rename from pmpy2_r, add endian check.
15882 (pmpy2_odd): Rename from pmpy2_l, add endian check.
15883 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
15884 (vec_widen_smult_hi_v4hi): Ditto.
15885 (vec_widen_umult_lo_v4hi): Ditto.
15886 (vec_widen_umult_hi_v4hi): Ditto.
15887 (mulv2si3): Change endian checks.
15888 (sdot_prodv4hi): Rewrite with new calls.
15889 (udot_prodv4hi): New.
15890 (vec_pack_ssat_v4hi): Add endian check.
15891 (vec_pack_usat_v4hi): Ditto.
15892 (vec_pack_ssat_v2si): Ditto.
15893 (max1_even): Rename from max1_r, add endian check.
15894 (max1_odd): Rename from max1_l, add endian check.
15895 (*mux1_rev): Format change.
15896 (*mux1_mix): Ditto.
15897 (*mux1_shuf): Ditto.
15898 (*mux1_alt): Ditto.
15899 (*mux1_brcst_v8qi): Use new predicate.
15900 (vec_extract_evenv8qi): Remove endian check.
15901 (vec_extract_oddv8qi): Ditto.
15902 (vec_interleave_lowv4hi): Format change.
15903 (vec_interleave_highv4hi): Ditto.
15904 (mix2_even): Rename from mix2_r, add endian check.
15905 (mix2_odd): Rename from mux2_l, add endian check.
15906 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
15907 (vec_extract_evenodd_helper): Format change.
15908 (vec_extract_evenv4hi): Remove endian check.
15909 (vec_extract_oddv4hi): Remove endian check.
15910 (vec_interleave_lowv2si): Format change.
15911 (vec_interleave_highv2si): Format change.
15912 (vec_initv2si): Remove endian check.
15913 (vecinit_v2si): Add endian check.
15914 (reduc_splus_v2sf): Add endian check.
15915 (reduc_smax_v2sf): Ditto.
15916 (reduc_smin_v2sf): Ditto.
15917 (vec_initv2sf): Remove endian check.
15918 (fpack): Add endian check.
15919 (fswap): Add endian check.
15920 (vec_interleave_highv2sf): Add endian check.
15921 (vec_interleave_lowv2sf): Add endian check.
15922 (fmix_lr): Add endian check.
15923 (vec_setv2sf): Format change.
15924 (*vec_extractv2sf_0_be): Use shift to extract operand.
15925 (*vec_extractv2sf_1_be): New.
15926 (vec_pack_trunc_v4hi): Add endian check.
15927 (vec_pack_trunc_v2si): Format change.
15928
15929 2011-02-04 Jakub Jelinek <jakub@redhat.com>
15930
15931 PR inline-asm/23200
15932 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
15933 do bb, locus and block comparison and disallow loads if it is not set.
15934 (stmt_is_replaceable_p): New function.
15935 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
15936 callers.
15937 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
15938 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
15939 SSA_NAME_DEF_STMT.
15940 * tree-flow.h (stmt_is_replaceable_p): New prototype.
15941
15942 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15943
15944 * config/rs6000/xilinx.opt: New.
15945 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
15946
15947 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15948
15949 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
15950
15951 2011-02-03 Anatoly Sokolov <aesok@post.ru>
15952
15953 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
15954 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15955 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
15956 secondary_reload_info, xtensa_secondary_reload): Remove.
15957 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
15958 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15959 (xtensa_preferred_reload_class): Make static. Change return and
15960 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
15961 Use CONST_DOUBLE_P predicate.
15962 (xtensa_preferred_output_reload_class): New function.
15963 (xtensa_secondary_reload): Make static.
15964
15965 2011-02-03 Joseph Myers <joseph@codesourcery.com>
15966
15967 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
15968 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
15969 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
15970
15971 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15972
15973 PR middle-end/31490
15974 * output.h (SECTION_RELRO): Define.
15975 (SECTION_MACH_DEP): Adjust.
15976 (get_variable_section): New prototype.
15977 * varpool.c (varpool_finalize_named_section_flags): New function.
15978 (varpool_assemble_pending_decls): Call it.
15979 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
15980 * cgraphunit.c (cgraph_output_in_order): Call
15981 varpool_finalize_named_section_flags.
15982 * varasm.c (get_section): Allow section flags conflicts between
15983 relro and read-only sections if the section hasn't been declared yet.
15984 Set SECTION_OVERRIDE after diagnosing section type conflict.
15985 (get_variable_section): No longer static.
15986 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
15987 readonly sections that need relocations.
15988 (decl_readonly_section_1): New function.
15989 (decl_readonly_section): Use it.
15990
15991 Revert:
15992 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
15993 Steve Ellcey <sje@cup.hp.com>
15994
15995 PR middle-end/31490
15996 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
15997 if section attribute used.
15998
15999 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16000
16001 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16002 * config/darwin.c (SECTION_NO_ANCHOR): Define.
16003 (darwin_init_sections): Remove assertion.
16004
16005 2011-02-03 Nick Clifton <nickc@redhat.com>
16006
16007 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16008 lt and ge.
16009 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
16010 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16011 instead of "n" and "pz".
16012 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16013 CC_FLAG_S.
16014
16015 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16016
16017 PR target/47312
16018 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16019 fma, expand FMA_EXPR as fma{,f,l} call.
16020
16021 PR lto/47274
16022 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16023 copy them into a unsigned char variable and pass address of it to
16024 lto_output_data_stream.
16025
16026 PR target/47564
16027 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16028 around backend_init_target and lang_dependent_init_target calls.
16029 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16030 (verify_cgraph_node): Don't call set_cfun here. Use
16031 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16032 Set error_found for incorrectly represented calls to thunks.
16033
16034 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16035
16036 PR debug/43092
16037 PR rtl-optimization/43494
16038 * rtl.h (for_each_inc_dec_fn): New type.
16039 (for_each_inc_dec): Declare.
16040 * rtlanal.c (struct for_each_inc_dec_ops): New type.
16041 (for_each_inc_dec_find_inc_dec): New fn.
16042 (for_each_inc_dec_find_mem): New fn.
16043 (for_each_inc_dec): New fn.
16044 * dse.c (struct insn_size): Remove.
16045 (replace_inc_dec, replace_inc_dec_mem): Remove.
16046 (emit_inc_dec_insn_before): New fn.
16047 (check_for_inc_dec): Use it, along with for_each_inc_dec.
16048 (canon_address): Pass mem modes to cselib_lookup.
16049 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
16050 (cselib_lookup_from_insn): Likewise.
16051 (cselib_subst_to_values): Likewise.
16052 * cselib.c (find_slot_memmode): New var.
16053 (cselib_find_slot): New fn. Use it instead of
16054 htab_find_slot_with_hash everywhere.
16055 (entry_and_rtx_equal_p): Use find_slot_memmode.
16056 (autoinc_split): New fn.
16057 (rtx_equal_for_cselib_p): Rename and implement in terms of...
16058 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
16059 Deal with autoinc. Special-case recursion into MEMs.
16060 (cselib_hash_rtx): Likewise.
16061 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
16062 address and MEM modes.
16063 (cselib_subst_to_values): Add memmode, pass it on.
16064 Deal with autoinc.
16065 (cselib_lookup): Add memmode argument, pass it on.
16066 (cselib_lookup_from_insn): Add memmode.
16067 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16068 (struct cselib_record_autoinc_data): New.
16069 (cselib_record_autoinc_cb): New fn.
16070 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
16071 mode to cselib_lookup. Reset autoinced REGs here instead of...
16072 (cselib_process_insn): ... here.
16073 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16074 to cselib_lookup.
16075 (add_uses): Likewise, also to cselib_subst_to_values.
16076 (add_stores): Likewise.
16077 * sched-deps.c (add_insn_mem_dependence): Pass mode to
16078 cselib_subst_to_values.
16079 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
16080 * gcse.c (do_local_cprop): Adjusted.
16081 * postreload.c (reload_cse_simplify_set): Adjusted.
16082 (reload_cse_simplify_operands): Adjusted.
16083 * sel-sched-dump (debug_mem_addr_value): Pass mode.
16084
16085 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16086
16087 PR tree-optimization/45122
16088 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16089 unsafe assumptions when there's more than one loop exit.
16090
16091 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16092
16093 PR target/47272
16094 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16095 Document using vector double with the load/store builtins, and
16096 that the load/store builtins always use Altivec instructions.
16097
16098 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16099 to use altivec memory instructions, even on VSX.
16100 (vector_altivec_store_<mode>): Ditto.
16101
16102 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16103 function.
16104
16105 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16106 V2DF, V2DI support to load/store overloaded builtins.
16107
16108 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16109 altivec load/store builtins for V2DF/V2DI types.
16110
16111 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16112 set avoid indexed addresses on power6 if -maltivec.
16113 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16114 vector_altivec_load/vector_altivec_store builtins.
16115 (altivec_expand_st_builtin): Ditto.
16116 (altivec_expand_builtin): Add VSX memory builtins.
16117 (rs6000_init_builtins): Add V2DI types to internal types.
16118 (altivec_init_builtins): Add support for V2DF/V2DI altivec
16119 load/store builtins.
16120 (rs6000_address_for_altivec): Insure memory address is appropriate
16121 for Altivec.
16122
16123 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16124 vec_vsx_ld and vec_vsx_st.
16125 (vsx_store_<mode>): Ditto.
16126
16127 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16128 variables to hold long long types for VSX vector memory builtins.
16129 (RS6000_BTI_unsigned_long_long): Ditto.
16130 (long_long_integer_type_internal_node): Ditti.
16131 (long_long_unsigned_type_internal_node): Ditti.
16132
16133 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16134 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16135 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16136
16137 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16138 short cuts.
16139 (vec_vsx_st): Ditto.
16140
16141 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16142
16143 * config/pa/pa-hpux10.opt: New.
16144 * config/hpux11.opt (pthread): New Driver option.
16145 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16146 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16147
16148 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16149
16150 * config/ia64/vms.opt: New.
16151 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16152
16153 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16154
16155 PR target/47580
16156 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16157 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16158 generator functions.
16159 (vsx_floatuns<VSi><mode>2): Ditto.
16160 (vsx_fix_trunc<mode><VSi>2): Ditto.
16161 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16162
16163 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16164
16165 * config/i386/djgpp.opt (posix): New Driver option.
16166
16167 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
16168
16169 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16170 Move to the unsupported targets list.
16171
16172 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
16173
16174 PR rtl-optimization/47525
16175 * df-scan.c: Update copyright years.
16176 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16177 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16178
16179 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16180
16181 * config/i386/sysv4.h (TARGET_VERSION): Remove.
16182 (SUBTARGET_RETURN_IN_MEMORY): Remove.
16183 (ASM_OUTPUT_ASCII): Remove.
16184 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16185
16186 2011-02-02 Jeff Law <law@redhat.com>
16187
16188 PR middle-end/47543
16189 * reload.c (find_reloads_address): Handle reg+d address where both
16190 components are invalid by reloading the entire address.
16191
16192 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16193 Richard Guenther <rguenther@suse.de>
16194
16195 PR tree-optimization/40979
16196 PR bootstrap/47044
16197 * passes.c (init_optimization_passes): After LIM call copy_prop
16198 and DCE to clean up.
16199 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16200
16201 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16202
16203 PR tree-optimization/47576
16204 PR tree-optimization/47555
16205 * doc/invoke.texi (scev-max-expr-complexity): Documented.
16206 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16207 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16208 * tree-scalar-evolution.c (follow_ssa_edge): Use
16209 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16210
16211 2011-02-02 Richard Guenther <rguenther@suse.de>
16212
16213 PR tree-optimization/47566
16214 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16215
16216 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16217
16218 PR debug/47106
16219 PR debug/47402
16220 * tree-inline.c (declare_return_variable): Remove unused caller
16221 variable.
16222
16223 PR debug/47106
16224 PR debug/47402
16225 * tree-flow-inline.h (clear_is_used, is_used_p): New.
16226 * cfgexpand.c (account_used_vars_for_block): Use them.
16227 * tree-nrv.c (tree_nrv): Likewise.
16228 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16229 (dump_scope_block): Likewise.
16230 (remove_unused_locals): Likewise.
16231
16232 PR debug/47106
16233 PR debug/47402
16234 * tree-inline.c (declare_return_variable): Add result decl to
16235 local decls only once.
16236 * gimple-low.c (record_vars_into): Mark newly-created variables
16237 as referenced.
16238
16239 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16240
16241 PR debug/47498
16242 PR debug/47501
16243 PR debug/45136
16244 PR debug/45130
16245 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16246 debug insns.
16247 (no_real_insns_p, schedule_block, set_priorities): Drop special
16248 treatment of boundary debug insns.
16249 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16250 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
16251 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16252 (BOUNDARY_DEBUG_INSN_P): Likewise.
16253 (SCHEDULE_DEBUG_INSN_P): Likewise.
16254 * sched-rgn.c (init_ready_list): Drop special treatment of
16255 boundary debug insns.
16256 * final.c (rest_of_clean_state): Clear notes' BB.
16257
16258 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16259
16260 * config/openbsd.opt (assert=): New Driver option.
16261
16262 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16263
16264 * config/i386/nto.opt: New.
16265 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
16266
16267 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16268
16269 * config/i386/netware.opt: New.
16270 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
16271
16272 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16273
16274 * config/interix.opt (posix): New Driver option.
16275
16276 2011-02-01 DJ Delorie <dj@redhat.com>
16277
16278 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
16279
16280 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
16281 class for A0/A1.
16282
16283 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
16284
16285 PR tree-optimization/47561
16286 * toplev.c (process_options): Print the Graphite flags. Add
16287 flag_loop_flatten to the list of options requiring Graphite.
16288
16289 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16290
16291 * config/i386/cygming.opt (posix): New Driver option.
16292
16293 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16294
16295 * config/arm/vxworks.opt: New.
16296 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
16297
16298 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16299
16300 * config/alpha/elf.opt: New.
16301 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
16302 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
16303
16304 2011-02-01 Richard Guenther <rguenther@suse.de>
16305
16306 PR tree-optimization/47559
16307 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
16308 store-motion on references that can throw.
16309
16310 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
16311
16312 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
16313 * tree-pass.h (TDF_CSELIB): New macro.
16314 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
16315 cselib_lookup): Check for it rather than for TDF_DETAILS.
16316
16317 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
16318
16319 PR driver/47547
16320 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
16321 is HOST_BIT_BUCKET.
16322
16323 * opts.c (finish_options): Don't add x_aux_base_name if it is
16324 HOST_BIT_BUCKET.
16325
16326 2011-02-01 Richard Guenther <rguenther@suse.de>
16327
16328 PR tree-optimization/47555
16329 Revert
16330 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
16331
16332 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16333
16334 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
16335
16336 PR gcc/46692
16337 * config/lm32/t-lm32: Add multilib for all CPU options.
16338
16339 2011-02-01 Richard Guenther <rguenther@suse.de>
16340
16341 PR tree-optimization/47541
16342 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
16343 sure to have a field at offset zero.
16344
16345 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16346
16347 * config/arc/arc.opt (EB, EL): New Driver options.
16348
16349 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16350
16351 * config/alpha/osf5.opt: New.
16352 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
16353
16354 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16355
16356 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
16357
16358 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
16359
16360 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
16361 -floop-interchange.
16362 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
16363 is an alias of -floop-interchange and that it requires the
16364 Graphite infrastructure.
16365 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
16366 flag_loop_interchange based on the value of flag_tree_loop_linear.
16367
16368 2011-01-31 Jakub Jelinek <jakub@redhat.com>
16369 Richard Guenther <rguenther@suse.de>
16370
16371 PR tree-optimization/47538
16372 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
16373 type instead of r1type, except for comparisons. For right
16374 shifts and comparisons punt if there are mismatches in
16375 sizetype vs. non-sizetype types.
16376
16377 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16378
16379 * doc/sourcebuild.texi (Effective-Target Keywords): Document
16380 avx_runtime.
16381
16382 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16383
16384 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
16385 version number.
16386 * configure: Regenerate.
16387
16388 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16389
16390 * configure.ac (gcc_cv_ld_static_option): Define.
16391 (gcc_cv_ld_dynamic_option): Define.
16392 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
16393 instead.
16394 (HAVE_LD_STATIC_DYNAMIC): Update message.
16395 (LD_STATIC_OPTION): Define.
16396 (LD_DYNAMIC_OPTION): Define.
16397 * configure: Regenerate.
16398 * config.in: Regenerate.
16399 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
16400 HAVE_LD_STATIC_DYNAMIC]: Use them.
16401
16402 2011-01-31 Nick Clifton <nickc@redhat.com>
16403
16404 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
16405 registers inside interrupt handlers if the handler is not a leaf
16406 function.
16407
16408 2011-01-31 Nick Clifton <nickc@redhat.com>
16409
16410 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
16411 reg_renumber returning an INVALID_REGNUM.
16412
16413 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16414
16415 PR libgcj/44341
16416 * doc/install.texi: Document host options discarded when cross
16417 configuring target libraries.
16418
16419 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16420
16421 Reverted:
16422 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16423 PR debug/45136
16424 PR debug/45130
16425 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16426 debug insns.
16427 (no_real_insns_p, schedule_block, set_priorities): Drop special
16428 treatment of boundary debug insns.
16429 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16430 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16431 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16432 (BOUNDARY_DEBUG_INSN_P): Likewise.
16433 (SCHEDULE_DEBUG_INSN_P): Likewise.
16434 * sched-rgn.c (init_ready_list): Drop special treatment of
16435 boundary debug insns.
16436 * final.c (rest_of_clean-state): Clear notes' BB.
16437
16438 2011-01-31 Alan Modra <amodra@gmail.com>
16439
16440 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
16441 toc relative expressions as we do in print_operand_address.
16442
16443 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
16444
16445 * doc/extend.texi: Follow spelling conventions.
16446 * doc/invoke.texi: Fix a typo.
16447
16448 2011-01-30 Joseph Myers <joseph@codesourcery.com>
16449
16450 * config/hpux11.opt: New.
16451 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
16452 ia64*-*-hpux*): Use hpux11.opt.
16453
16454 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
16455
16456 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
16457 to tmake_file.
16458
16459 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16460
16461 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
16462 support sites.
16463
16464 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16465
16466 * doc/install.texi (Binaries): Remove outdated reference for
16467 Motorola 68HC11/68HC12 downloads.
16468
16469 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16470
16471 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
16472 Drepper's paper.
16473
16474 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
16475
16476 PR bootstrap/47147
16477 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
16478 used by NetBSD.
16479
16480 2011-01-28 Ahmad Sharif <asharif@google.com>
16481
16482 * value-prof.c (check_counter): Corrected error message.
16483
16484 2011-01-29 Jie Zhang <jie@codesourcery.com>
16485
16486 * config/arm/arm.c (arm_legitimize_reload_address): New.
16487 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16488 arm_legitimize_reload_address.
16489 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
16490
16491 2011-01-28 Ian Lance Taylor <iant@google.com>
16492
16493 * godump.c (go_define): Ignore macros whose definitions include
16494 two adjacent operands.
16495
16496 2011-01-28 Jakub Jelinek <jakub@redhat.com>
16497
16498 PR target/42894
16499 * varasm.c (force_const_mem): Store copy of x in desc->constant
16500 instead of x itself.
16501 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
16502 itself into REG_EQUAL note.
16503
16504 2011-01-28 Joseph Myers <joseph@codesourcery.com>
16505
16506 * config/freebsd.opt (posix, rdynamic): New Driver options.
16507
16508 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16509
16510 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
16511 -Bstatic/-Bdynamic.
16512 * configure: Regenerate.
16513
16514 2011-01-27 Joseph Myers <joseph@codesourcery.com>
16515
16516 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
16517 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
16518
16519 2011-01-27 Anatoly Sokolov <aesok@post.ru>
16520
16521 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
16522 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
16523 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16524 (s390_preferred_reload_class): Make static. Change return and
16525 'rclass' argument type to reg_class_t.
16526
16527 2011-01-27 Jan Hubicka <jh@suse.cz>
16528
16529 PR middle-end/46949
16530 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
16531 (process_function_and_variable_attributes): Check defined weakrefs.
16532
16533 2011-01-27 Martin Jambor <mjambor@suse.cz>
16534
16535 PR tree-optimization/47228
16536 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
16537 build_ref_for_offset.
16538
16539 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16540
16541 * config/spu/spu-elf.h (ASM_SPEC): Remove.
16542
16543 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
16544
16545 PR rtl-optimization/46856
16546 * postreload.c (reload_combine_recognize_const_pattern): Do not
16547 separate cc0 setter and user on cc0 targets.
16548
16549 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
16550
16551 PR c/43082
16552 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
16553 passed a VOID_TYPE expression, immediately emit an error and
16554 return error_mark_node.
16555
16556 2011-01-26 Jeff Law <law@redhat.com>
16557
16558 PR rtl-optimization/47464
16559 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
16560 rather than may_trap_p as needed.
16561
16562 2011-01-26 DJ Delorie <dj@redhat.com>
16563
16564 PR rtl-optimization/46878
16565 * combine.c (insn_a_feeds_b): Check for the implicit cc0
16566 setter/user dependency as well.
16567
16568 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
16569
16570 PR rtl-optimization/44469
16571 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
16572 after removing trivially dead basic blocks.
16573
16574 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16575
16576 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
16577 * config/frv/frv.h (LINK_SPEC): Likewise.
16578 * config/i386/netware.h (LINK_SPEC): Likewise.
16579 * config/m68k/linux.h (ASM_SPEC): Likewise.
16580 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
16581 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16582 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16583 * config/sparc/linux.h (ASM_SPEC): Likewise.
16584 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16585 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16586
16587 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16588
16589 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
16590 * config/frv/frv.h (ASM_SPEC): Likewise.
16591 * config/m68k/linux.h (ASM_SPEC): Likewise.
16592 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16593 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
16594 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16595 * config/sparc/linux.h (ASM_SPEC): Likewise.
16596 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16597 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16598
16599 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16600
16601 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
16602 * config/frv/frv.h (LINK_SPEC): Likewise.
16603 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16604
16605 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16606
16607 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
16608 * config/frv/frv.h (ASM_SPEC): Likewise.
16609 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
16610 * config/m68k/linux.h (ASM_SPEC): Likewise.
16611 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16612 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16613 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16614 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
16615 * config/sparc/linux.h (ASM_SPEC): Likewise.
16616 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16617 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16618 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
16619
16620 2011-01-26 Steve Ellcey <sje@cup.hp.com>
16621
16622 PR target/46997
16623 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
16624 (*mux2): Ditto.
16625 (vec_extract_evenodd_help): Ditto.
16626 (vec_extract_evenv4hi): Ditto.
16627 (vec_extract_oddv4hi): Ditto.
16628 (vec_interleave_lowv2si): Ditto.
16629 (vec_interleave_highv2si): Ditto.
16630 (vec_extract_evenv2si): Ditto.
16631 (vec_extract_oddv2si: Ditto.
16632 (vec_pack_trunc_v2si): Ditto.
16633
16634 2011-01-22 Jan Hubicka <jh@suse.cz>
16635
16636 PR target/47237
16637 * cgraph.h (cgraph_local_info): New field can_change_signature.
16638 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
16639 signature can change.
16640 (ipcp_estimate_growth): Call sequence simplify only if calle signature
16641 can change.
16642 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
16643 (cgraph_function_versioning): We can not change signature of functions
16644 that don't allow that.
16645 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
16646 (lto_input_node): Likewise.
16647 * ipa-inline.c (compute_inline_parameters): Compute
16648 local.can_change_signature.
16649 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
16650 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
16651 functions that can not change signature.
16652 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
16653 init_cumulative_args): Do not use local calling conventions
16654 for functions that can not change signature.
16655
16656 2011-01-22 Jan Hubicka <jh@suse.cz>
16657
16658 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
16659
16660 2011-01-26 Richard Guenther <rguenther@suse.de>
16661
16662 PR tree-optimization/47190
16663 * cgraphunit.c (process_common_attributes): New function.
16664 (process_function_and_variable_attributes): Use it.
16665
16666 2011-01-26 Richard Guenther <rguenther@suse.de>
16667
16668 PR lto/47423
16669 * cgraphbuild.c (record_eh_tables): Record reference to personality
16670 function.
16671
16672 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
16673
16674 PR debug/45454
16675 * sel-sched.c (moveup_expr): Don't let debug insns prevent
16676 non-debug insns from moving up.
16677
16678 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16679
16680 PR target/40125
16681 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
16682 t-dlldir{,-x} fragment for build and add it to tmake_file.
16683 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
16684 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
16685 * config/i386/t-dlldir: New file.
16686 (SHLIB_DLLDIR): Define.
16687 * config/i386/t-dlldir-x: New file.
16688 (SHLIB_DLLDIR): Define.
16689 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
16690 (SHLIB_INSTALL): Use it.
16691
16692 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
16693
16694 PR target/47246
16695 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
16696 lower bound of the allowed Thumb-2 coprocessor load/store
16697 index range to -256. Add explaining comment.
16698
16699 2011-01-25 Ian Lance Taylor <iant@google.com>
16700
16701 * godump.c (go_define): Improve lexing of macro expansion to only
16702 accept expressions which match Go spec.
16703
16704 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16705
16706 PR c++/43601
16707 * tree.c (handle_dll_attribute): Handle it.
16708 * doc/extend.texi (@item dllexport): Mention it.
16709 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
16710
16711 2011-01-25 Ian Lance Taylor <iant@google.com>
16712
16713 PR tree-optimization/26854
16714 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
16715 (decl_jump_unsafe): Move higher in file, with no other change.
16716 (bind): Set has_jump_unsafe_decl if appropriate.
16717 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
16718 (check_earlier_gotos): Likewise.
16719 (c_check_switch_jump_warnings): Likewise.
16720
16721 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
16722
16723 * doc/invoke.texi (Warning Options): Add missing hyphen.
16724 (-fprofile-dir): Minor grammatical fixes.
16725 (-fbranch-probabilities): Likewise.
16726
16727 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16728
16729 PR debug/45136
16730 PR debug/45130
16731 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16732 debug insns.
16733 (no_real_insns_p, schedule_block, set_priorities): Drop special
16734 treatment of boundary debug insns.
16735 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16736 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16737 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16738 (BOUNDARY_DEBUG_INSN_P): Likewise.
16739 (SCHEDULE_DEBUG_INSN_P): Likewise.
16740 * sched-rgn.c (init_ready_list): Drop special treatment of
16741 boundary debug insns.
16742 * final.c (rest_of_clean-state): Clear notes' BB.
16743
16744 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16745
16746 * Makefile.in (LAMBDA_H): Removed.
16747 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
16748 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
16749 lambda-trans.o, and tree-loop-linear.o.
16750 (lto-symtab.o): Remove dependence on LAMBDA_H.
16751 (tree-loop-linear.o): Remove rule.
16752 (lambda-mat.o): Same.
16753 (lambda-trans.o): Same.
16754 (lambda-code.o): Same.
16755 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
16756 (tree-vect-slp.o): Same.
16757 * hwint.h (gcd): Moved here.
16758 (least_common_multiple): Same.
16759 * lambda-code.c: Removed.
16760 * lambda-mat.c: Removed.
16761 * lambda-trans.c: Removed.
16762 * lambda.h: Removed.
16763 * tree-loop-linear.c: Removed.
16764 * lto-symtab.c: Do not include lambda.h.
16765 * omega.c (gcd): Removed.
16766 * passes.c (init_optimization_passes): Remove pass_linear_transform.
16767 * tree-data-ref.c (print_lambda_vector): Moved here.
16768 (lambda_vector_copy): Same.
16769 (lambda_matrix_copy): Same.
16770 (lambda_matrix_id): Same.
16771 (lambda_vector_first_nz): Same.
16772 (lambda_matrix_row_add): Same.
16773 (lambda_matrix_row_exchange): Same.
16774 (lambda_vector_mult_const): Same.
16775 (lambda_vector_negate): Same.
16776 (lambda_matrix_row_negate): Same.
16777 (lambda_vector_equal): Same.
16778 (lambda_matrix_right_hermite): Same.
16779 * tree-data-ref.h: Do not include lambda.h.
16780 (lambda_vector): Moved here.
16781 (lambda_matrix): Same.
16782 (dependence_level): Same.
16783 (lambda_transform_legal_p): Removed declaration.
16784 (lambda_collect_parameters): Same.
16785 (lambda_compute_access_matrices): Same.
16786 (lambda_vector_gcd): Same.
16787 (lambda_vector_new): Same.
16788 (lambda_vector_clear): Same.
16789 (lambda_vector_lexico_pos): Same.
16790 (lambda_vector_zerop): Same.
16791 (lambda_matrix_new): Same.
16792 * tree-flow.h (least_common_multiple): Removed declaration.
16793 * tree-parloops.c (lambda_trans_matrix): Moved here.
16794 (LTM_MATRIX): Same.
16795 (LTM_ROWSIZE): Same.
16796 (LTM_COLSIZE): Same.
16797 (LTM_DENOMINATOR): Same.
16798 (lambda_trans_matrix_new): Same.
16799 (lambda_matrix_vector_mult): Same.
16800 (lambda_transform_legal_p): Same.
16801 * tree-pass.h (pass_linear_transform): Removed declaration.
16802 * tree-ssa-loop.c (tree_linear_transform): Removed.
16803 (gate_tree_linear_transform): Removed.
16804 (pass_linear_transform): Removed.
16805 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
16806 flag_loop_interchange.
16807
16808 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16809
16810 PR tree-optimization/47265
16811 PR tree-optimization/47443
16812 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
16813 if name still has some uses.
16814
16815 2011-01-25 Martin Jambor <mjambor@suse.cz>
16816
16817 PR tree-optimization/47382
16818 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
16819 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
16820
16821 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
16822
16823 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
16824 sjlj_except_unwind_info.
16825
16826 2011-01-25 Richard Guenther <rguenther@suse.de>
16827
16828 PR tree-optimization/47426
16829 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
16830 visible functions results escape.
16831
16832 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16833
16834 PR target/45701
16835 * config/arm/arm.c (any_sibcall_uses_r3): New function.
16836 (arm_get_frame_offsets): Use it.
16837
16838 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16839 Jakub Jelinek <jakub@redhat.com>
16840
16841 PR tree-optimization/47271
16842 * tree-if-conv.c (bb_postdominates_preds): New.
16843 (if_convertible_bb_p): Call bb_postdominates_preds.
16844 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
16845 (predicate_scalar_phi): Call bb_postdominates_preds.
16846
16847 2011-01-25 Nick Clifton <nickc@redhat.com>
16848
16849 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
16850 * config/rx/rx.c (rx_function_value): Likewise.
16851 (rx_promote_function_mode): Likewise.
16852 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
16853 in order to make it legitimate.
16854 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
16855 make sure that the first operand is the same as the result register.
16856 (addsi3_unspec): Delete.
16857 (subdi3): Do not accept immediate operands.
16858 (subdi3_internal): Likewise.
16859
16860 2011-01-25 Jeff Law <law@redhat.com>
16861
16862 PR rtl-optimization/37273
16863 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16864 handle them like argument loads from stack slots. Do not double
16865 count memory for memory constants and argument loads from stack slots.
16866
16867 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16868
16869 PR tree-optimization/47427
16870 PR tree-optimization/47428
16871 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16872 coalesce if the new root var would be TREE_READONLY.
16873
16874 2011-01-25 Richard Guenther <rguenther@suse.de>
16875
16876 PR middle-end/47414
16877 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
16878 correct type for TBAA.
16879
16880 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16881
16882 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
16883 (close_phi_written_to_memory): Call for_each_index with
16884 dr_indices_valid_in_loop.
16885
16886 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16887
16888 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
16889 when it is initialized.
16890
16891 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16892
16893 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
16894 call to graphite_find_data_references_in_stmt.
16895 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
16896 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
16897 call to graphite_find_data_references_in_stmt.
16898 (analyze_drs_in_stmts): Same.
16899 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
16900 in which the scalar analysis of indices is performed.
16901 (create_data_ref): Same. Update call to dr_analyze_indices.
16902 (find_data_references_in_stmt): Update call to create_data_ref.
16903 (graphite_find_data_references_in_stmt): Same.
16904 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
16905 declaration.
16906 (create_data_ref): Same.
16907 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
16908 call to create_data_ref.
16909
16910 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16911
16912 * graphite-sese-to-poly.c (build_poly_scop): Move
16913 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
16914
16915 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16916
16917 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
16918 VAR_DECL, PARM_DECL, and RESULT_DECL.
16919
16920 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16921
16922 * graphite-dependences.c (reduction_dr_1): Allow several reductions
16923 in a reduction PBB.
16924 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
16925 that have already been marked as PBB_IS_REDUCTION.
16926
16927 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16928
16929 * graphite-scop-detection.c (same_close_phi_node): New.
16930 (remove_duplicate_close_phi): New.
16931 (make_close_phi_nodes_unique): New.
16932 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
16933
16934 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16935
16936 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
16937 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
16938 of both data references to be the same.
16939
16940 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16941
16942 * graphite-dependences.c (build_lexicographical_constraint): Remove
16943 the gdim parameter.
16944 (build_lexicographical_constraint): Adjust call to
16945 ppl_powerset_is_empty.
16946 (dependence_polyhedron): Same.
16947 (graphite_legal_transform_dr): Same.
16948 (graphite_carried_dependence_level_k): Same.
16949 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
16950 parameter.
16951 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
16952
16953 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16954
16955 * graphite-sese-to-poly.c
16956 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
16957 (close_phi_written_to_memory): New.
16958 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
16959 and unshare_expr.
16960
16961 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16962
16963 * doc/install.texi: Update the expected version number of PPL to 0.11.
16964 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
16965 #if PPL_VERSION_MINOR < 11.
16966
16967 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16968
16969 * graphite-dependences.c: Include graphite-cloog-util.h.
16970 (new_poly_ddr): Inlined into dependence_polyhedron.
16971 (free_poly_ddr): Moved close by new_poly_ddr.
16972 (dependence_polyhedron_1): Renamed dependence_polyhedron.
16973 Early return NULL when ppl_powerset_is_empty returns true.
16974 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
16975 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
16976 (graphite_legal_transform_dr): Call new_poly_ddr.
16977 (graphite_carried_dependence_level_k): Same.
16978 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
16979 (dot_transformed_deps_stmt_1): Removed.
16980 (dot_deps_stmt_1): Call dot_deps_stmt_2.
16981 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
16982 (dot_deps_1): Call dot_deps_2.
16983 * Makefile.in (graphite-dependences.o): Add missing dependence on
16984 graphite-cloog-util.h.
16985
16986 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16987
16988 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
16989 (build_lexicographical_constraint): Same.
16990 (dependence_polyhedron_1): Same.
16991 (graphite_legal_transform_dr): Same.
16992 (graphite_carried_dependence_level_k): Same.
16993 * graphite-ppl.c (ppl_powerset_is_empty): New.
16994 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
16995 * tree-data-ref.c (dump_data_reference): Print the basic block index.
16996
16997 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16998
16999 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17000 the "a followed by b" relation and document it.
17001
17002 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17003
17004 * graphite-dependences.c (build_lexicographical_constraint): Stop the
17005 iteration when the bag of constraints is empty.
17006
17007 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17008
17009 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17010
17011 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17012
17013 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17014 nest and two loop depths as parameters.
17015 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17016 lst_perfect_nestify.
17017
17018 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17019
17020 * graphite-dependences.c (print_pddr): Call
17021 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17022
17023 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17024
17025 * graphite-ppl.c (debug_gmp_value): New.
17026 * graphite-ppl.h (debug_gmp_value): Declared.
17027
17028 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
17029
17030 * doc/install.texi: Document availability of cloog-0.16.
17031
17032 2011-01-25 Vladimir Kargov <kargov@gmail.com>
17033
17034 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17035 invalid postdominance info.
17036
17037 2011-01-24 Jan Hubicka <jh@suse.cz>
17038
17039 PR c/21659
17040 * doc/extend.texi (weak pragma): Drop claim that it must
17041 appear before definition.
17042 * varasm.c (merge_weak, declare_weak): Only sanity check
17043 that DECL is not output at a time it is declared weak.
17044
17045 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
17046
17047 * machmode.def: Fixed comments.
17048
17049 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
17050
17051 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17052
17053 2011-01-24 Paul Koning <ni1d@arrl.net>
17054
17055 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
17056 WORDS_BIG_ENDIAN.
17057
17058 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
17059
17060 PR target/46519
17061 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17062 (block_info): Add scanned and prev.
17063 (move_or_delete_vzeroupper_2): Return if the basic block
17064 has been scanned and the upper 128bit state is unchanged
17065 from the last scan.
17066 (move_or_delete_vzeroupper_1): Return true if the exit
17067 state is changed.
17068 (move_or_delete_vzeroupper): Visit basic blocks using the
17069 work-list based algorithm based on vt_find_locations in
17070 var-tracking.c.
17071
17072 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17073
17074 2011-01-24 Nick Clifton <nickc@redhat.com>
17075
17076 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17077 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17078 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
17079 then define __v850e1__.
17080 * doc/invoke.texi: Document -mv850es.
17081
17082 2011-01-24 Richard Henderson <rth@redhat.com>
17083
17084 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17085 compound unordered comparisons.
17086 * config/rx/rx.c (rx_split_fp_compare): Remove.
17087 * config/rx/rx-protos.h: Update.
17088 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17089 (cbranchsf4): Don't call rx_split_fp_compare.
17090 (*cbranchsf4): Use rx_split_cbranch.
17091 (*cmpsf): Don't accept "i" constraint.
17092 (*conditional_branch): Only valid after reload.
17093 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
17094
17095 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17096
17097 PR target/47385
17098 * config/rs6000/altivec.md (vector constant splitters): Add
17099 support for creating vector single precision constants if -mvsx is
17100 used and we would create the constant using Altivec primitives.
17101
17102 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
17103 Richard Sandiford <rdsandiford@googlemail.com>
17104
17105 PR rtl-optimization/47166
17106 * reload1.c (emit_reload_insns): Disable the spill_reg_store
17107 mechanism for PRE_MODIFY and POST_MODIFY.
17108 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17109 reloadreg.
17110
17111 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
17112
17113 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17114
17115 2011-01-22 Jan Hubicka <jh@suse.cz>
17116
17117 PR lto/47333
17118 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17119
17120 2011-01-22 Jan Hubicka <jh@suse.cz>
17121
17122 PR tree-optimization/43884
17123 PR lto/44334
17124 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17125 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17126
17127 2011-01-22 Anatoly Sokolov <aesok@post.ru>
17128
17129 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17130 * config/s390/s390.c (s390_register_move_cost,
17131 s390_memory_move_cost): New.
17132 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17133
17134 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17135
17136 PR middle-end/47401
17137 * except.c (sjlj_assign_call_site_values): Move setting the
17138 crtl->uses_eh_lsda flag to ...
17139 (sjlj_mark_call_sites): ... here.
17140 (sjlj_emit_function_enter): Support NULL dispatch label.
17141 (sjlj_build_landing_pads): In a function with no landing pads
17142 that still has must-not-throw regions, generate code to register
17143 a personality function with empty LSDA.
17144
17145 2011-01-21 Richard Henderson <rth@redhat.com>
17146
17147 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17148
17149 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17150
17151 * compare-elim.c: New file.
17152 * Makefile.in (OBJS-common): Add it.
17153 (compare-elim.o): New.
17154 * common.opt (fcompare-elim): New.
17155 * opts.c (default_options_table): Add OPT_fcompare_elim.
17156 * tree-pass.h (pass_compare_elim_after_reload): New.
17157 * passes.c (init_optimization_passes): Add it.
17158 * recog.h: Protect against re-inclusion.
17159 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17160 * doc/invoke.texi (-fcompare-elim): Document it.
17161 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17162 * doc/tm.texi: Rebuild.
17163
17164 2011-01-22 Nick Clifton <nickc@redhat.com>
17165
17166 * config/rx/rx.md (cstoresf4): Pass comparison operator to
17167 rx_split_fp_compare.
17168
17169 2011-01-22 Nick Clifton <nickc@redhat.com>
17170
17171 * config/rx/rx.md (UNSPEC_CONST): New.
17172 (deallocate_and_return): Wrap the amount popped off the stack in
17173 an UNSPEC_CONST in order to stop it being rejected by
17174 -mmax-constant-size.
17175 (pop_and_return): Add a "(return)" rtx.
17176 (call): Drop the immediate operand.
17177 (call_internal): Likewise.
17178 (call_value): Likewise.
17179 (call_value_internal): Likewise.
17180 (sibcall_internal): Likewise.
17181 (sibcall_value_internal): Likewise.
17182 (sibcall): Likewise. Generate an explicit call using
17183 sibcall_internal.
17184 (sibcall_value): Likewise.
17185 (mov<>): FAIL if a constant operand is not legitimate.
17186 (addsi3_unpsec): New pattern.
17187
17188 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
17189 (ok_for_max_constant): New function.
17190 (gen_safe_add): New function.
17191 (rx_expand_prologue): Use gen_safe_add.
17192 (rx_expand_epilogue): Likewise.
17193 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
17194 UNSPEC CONSTs.
17195
17196 2011-01-21 Jeff Law <law@redhat.com>
17197
17198 PR tree-optimization/47053
17199 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17200 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17201 statements are deleted.
17202 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
17203 is nonempty, then purge dead edges and cleanup the CFG.
17204
17205 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17206
17207 PR debug/47402
17208 Temporarily revert:
17209 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17210 PR debug/47106
17211 * tree-dfa.c (create_var_ann): Mark variable as used.
17212
17213 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17214
17215 PR middle-end/45566
17216 * except.c (convert_to_eh_region_ranges): Emit queued no-region
17217 notes from other section in hot/cold partitioning even if
17218 last_action is -3. Increment call_site_base.
17219
17220 PR rtl-optimization/47366
17221 * fwprop.c (forward_propagate_into): Return bool. If
17222 any changes are made, -fnon-call-exceptions is used and
17223 REG_EH_REGION note is present, call purge_dead_edges
17224 and return true if it purged anything.
17225 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17226 any EH edges were purged.
17227
17228 2011-01-21 Jeff Law <law@redhat.com>
17229
17230 PR rtl-optimization/41619
17231 * caller-save.c (setup_save_areas): Break out code to determine
17232 which hard regs are live across calls by examining the reload chains
17233 so that it is always used.
17234 Eliminate code which checked REG_N_CALLS_CROSSED.
17235
17236 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17237
17238 PR tree-optimization/47355
17239 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
17240 NOP has non-debug uses beyond PHIs in new_bb.
17241
17242 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17243
17244 PR debug/47106
17245 * cfgexpand.c (account_used_vars_for_block): Only account vars
17246 that are annotated as used.
17247 (estimated_stack_frame_size): Don't set TREE_USED.
17248 * tree-dfa.c (create_var_ann): Mark variable as used.
17249
17250 2011-01-21 Richard Guenther <rguenther@suse.de>
17251
17252 PR middle-end/47395
17253 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
17254
17255 2011-01-21 Richard Guenther <rguenther@suse.de>
17256
17257 PR tree-optimization/47365
17258 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
17259 (vn_reference_lookup_pieces): Adjust.
17260 (vn_reference_lookup): Likewise.
17261 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
17262 (vn_reference_lookup_3): Only look through kills if in
17263 VN_WALKREWRITE mode.
17264 (vn_reference_lookup_pieces): Adjust.
17265 (vn_reference_lookup): Likewise.
17266 (visit_reference_op_load): Likewise.
17267 (visit_reference_op_store): Likewise.
17268 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
17269 (compute_avail): Likewise.
17270 (eliminate): Likewise.
17271
17272 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17273
17274 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
17275 DECL_IGNORED_P non-reg vars if they are used.
17276
17277 PR tree-optimization/47391
17278 * varpool.c (const_value_known_p): Return false if
17279 decl is volatile.
17280
17281 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
17282
17283 PR bootstrap/47215
17284 * config/i386/i386.c (ix86_local_alignment): Handle
17285 case for va_list_type_node is nil.
17286 (ix86_canonical_va_list_type): Likewise.
17287
17288 2011-01-21 Alan Modra <amodra@gmail.com>
17289
17290 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
17291 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
17292
17293 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17294
17295 * config/arm/arm.md (define_attr type): Rename f_load
17296 and f_store to f_fpa_load and f_fpa_store. Update.
17297 (write_conflict): Deal with rename fallout.
17298 (*push_fp_multi): Likewise.
17299 * config/arm/fpa.md (f_load): Use f_fpa_load.
17300 (f_store): Use f_fpa_store.
17301 (*movsf_fpa): Likewise.
17302 (*movdf_fpa): Likewise.
17303 (*movxf_fpa): Likewise.
17304 (*thumb2_movsf_fpa): Likewise.
17305 (*thumb2_movdf_fpa): Likewise.
17306 (*thumb2_movxf_fpa): Likewise.
17307 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
17308 f_loadd and f_stored.
17309 (*thumb2_movdi_vfp): Likewise.
17310 (*thumb2_movsf_vfp): Fix attribute to f_loads.
17311 (*thumb2_movsi_vfp): Likewise.
17312 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
17313 Use f_loads instead of f_load.
17314 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
17315
17316 2011-01-20 Anatoly Sokolov <aesok@post.ru>
17317
17318 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17319 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
17320 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17321 (xtensa_mode_dependent_address_p): New function.
17322 (constantpool_address_p): Make static. Change return type to bool.
17323 Change argument type to const_rtx. Use CONST_INT_P predicate.
17324
17325 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
17326
17327 PR debug/46583
17328 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
17329
17330 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17331
17332 PR debug/47283
17333 * cfgexpand.c (expand_debug_expr): Instead of generating
17334 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
17335 etc. handling.
17336
17337 2011-01-20 Richard Guenther <rguenther@suse.de>
17338
17339 PR middle-end/47370
17340 * tree-inline.c (remap_gimple_op_r): Recurse manually for
17341 the pointer operand of MEM_REFs.
17342
17343 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17344
17345 PR tree-optimization/46130
17346 * ipa-split.c (consider_split): If return_bb contains non-virtual
17347 PHIs other than for retval or if split_function would not adjust it,
17348 refuse to split.
17349
17350 2011-01-20 Richard Guenther <rguenther@suse.de>
17351
17352 PR tree-optimization/47167
17353 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17354 Revert previous change, only avoid enumeral type changes.
17355
17356 2011-01-19 Mike Stump <mikestump@comcast.net>
17357
17358 * doc/tm.texi.in (BRANCH_COST): Englishify.
17359 * doc/tm.texi (BRANCH_COST): Likewise.
17360
17361 2011-01-19 Dodji Seketeli <dodji@redhat.com>
17362
17363 PR c++/47291
17364 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
17365 (gen_scheduled_generic_parms_dies): New functions.
17366 (gen_struct_or_union_type_die): Schedule template parameters DIEs
17367 generation for the end of CU compilation.
17368 (dwarf2out_finish): Generate template parameters DIEs here.
17369
17370 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17371
17372 PR debug/46240
17373 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
17374 debug bind stmt on merge edges.
17375
17376 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17377
17378 PR debug/47079
17379 PR debug/46724
17380 * function.c (instantiate_expr): Instantiate incoming rtl of
17381 implicit arguments, and recurse on VALUE_EXPRs.
17382 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
17383 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
17384
17385 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17386
17387 * c-parser.c (c_parser_for_statement): Initialize
17388 collection_expression.
17389
17390 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17391
17392 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
17393
17394 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17395
17396 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
17397 (LINK_SHLIB_SPEC): Don't use %(link_path).
17398 (SUBTARGET_EXTRA_SPECS): Remove link_path.
17399
17400 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17401
17402 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
17403 (NO_SHARED_LIB_SUPPORT): Remove.
17404 (LINK_SHLIB_SPEC): Remove one conditional definition.
17405
17406 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17407
17408 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
17409 %{call_shared}.
17410 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
17411 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
17412 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
17413 %{call_shared} and conditionals on these options not being passed.
17414 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
17415 %{call_shared}.
17416
17417 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17418
17419 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
17420 simplify.
17421
17422 * ipa-split.c: Spelling fixes.
17423
17424 2011-01-19 Richard Henderson <rth@redhat.com>
17425
17426 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
17427 (*mulsi3): Likewise.
17428
17429 * longlong.h [__mn10300__] (count_leading_zeros): New.
17430 [__mn10300__] (umul_ppmm, smul_ppmm): New.
17431 [__mn10300__] (add_ssaaaa, subddmmss): New.
17432 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
17433 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
17434
17435 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17436
17437 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
17438
17439 2011-01-19 Richard Henderson <rth@redhat.com>
17440
17441 * config/mn10300/mn10300.md (addsi3_flags): New.
17442 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
17443 (subsi3_flags, subc_internal, subdi3): New.
17444 (subdi3_internal, *subdi3_degenerate): New.
17445 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
17446
17447 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
17448 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
17449 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
17450 * config/mn10300/mn10300-protos.h: Update.
17451 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
17452 (return_ret): Likewise. Rename from return_internal_regs.
17453 (return_internal): Remove.
17454
17455 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
17456 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
17457 (mn10300_legitimate_constant_p): Likewise.
17458 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
17459 (mn10300_frame_size): New.
17460 (mn10300_expand_prologue): Use it.
17461 (mn10300_expand_epilogue): Likewise.
17462 (mn10300_initial_offset): Likewise.
17463 * config/mn10300/mn10300-protos.h: Update.
17464 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
17465 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
17466 (prologue, epilogue, return_internal): Tidy output code.
17467 (mn10300_store_multiple_operation, return): Likewise.
17468 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
17469 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
17470 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
17471 (load_pic, am33_load_pic): New.
17472 (mn10300_load_pic0, mn10300_load_pic1): New.
17473
17474 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
17475 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
17476 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
17477 (cc_flags_for_mode, cc_flags_for_code): New.
17478 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
17479 overflow flag is not valid. Validate that the flags we need
17480 for the comparison are valid.
17481 (mn10300_output_cmp): Remove.
17482 (mn10300_output_add): New.
17483 (mn10300_select_cc_mode): Use cc_flags_for_code.
17484 (mn10300_split_cbranch): New.
17485 (mn10300_match_ccmode): New.
17486 (mn10300_split_and_operand_count): New.
17487 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
17488 to the function.
17489 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
17490 (addsi3): ... here. Use mn10300_output_add.
17491 (*addsi3_flags): New.
17492 (*am33_subsi3, *mn10300_subsi3): Merge...
17493 (subsi3): ... here. Use attribute isa.
17494 (*subsi3_flags): New.
17495 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
17496 when possible.
17497 (*am33_andsi3, *mn10300_andsi3): Merge...
17498 (andsi3): ... here.
17499 (*andsi3_flags): New.
17500 (andsi3 splitters): New.
17501 (*am33_iorsi3, *mn10300_iorsi3): Merge...
17502 (iorsi3): ... here.
17503 (*iorsi3_flags): New.
17504 (*am33_xorsi3, *mn10300_xorsi3): Merge...
17505 (xorsi3): ... here.
17506 (*xorsi3_flags): New.
17507 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
17508 (one_cmplsi2): ... here.
17509 (*one_cmplsi2_flags): New.
17510 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
17511 instead of "dax" in constraints. Use mn10300_split_cbranch.
17512 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
17513 use matching constraints to eliminate a self-comparison.
17514 (*integer_conditional_branch): Rename from integer_conditional_branch.
17515 Use int_mode_flags to match CC_REG.
17516 (*cbranchsi4_btst, *btstsi): New.
17517 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
17518 mn10300_split_cbranch.
17519 (*am33_cmpsf): Rename from am33_cmpsf.
17520 (*float_conditional_branch): Rename from float_conditional_branch.
17521 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
17522 (zero_extendqisi2): ... here.
17523 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
17524 (zero_extendhisi2): ... here.
17525 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
17526 (extendqisi2): ... here.
17527 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
17528 (extendhisi2): ... here.
17529 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
17530 (ashlsi3): ... here.
17531 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
17532 (lshrsi3): ... here.
17533 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
17534 (ashrsi3): ... here.
17535 (consecutive add peephole): Remove.
17536 * config/mn10300/predicates.md (label_ref_operand): New.
17537 (int_mode_flags): New.
17538 (CCZN_comparison_operator): New.
17539
17540 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
17541 (throughput_42_latency_43): New reservation.
17542 (mulsidi3, umulsidi3): New expanders.
17543 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
17544 the MDR register to allocation; separately allocate the low and
17545 high parts of the DImode result.
17546 (umulsidi3_internal): Similarly.
17547 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
17548 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
17549 (udivsi3, umodsi3): Remove.
17550 (udivmodsi4, divmodsi4): New expanders.
17551 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
17552 (*divmodsi4): Simiarly.
17553 (ext_internal): New.
17554
17555 * config/mn10300/constraints.md ("z"): New constraint.
17556 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
17557 (FIXED_REGISTERS): Don't fix MDR.
17558 (CALL_USED_REGSITERS): Reformat nicely.
17559 (REG_ALLOC_ORDER): Add MDR.
17560 (enum regclass): Add MDR_REGS.
17561 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
17562 (IRA_COVER_CLASSES): Add MDR_REGS.
17563 (REGNO_REG_CLASS): Handle MDR_REG.
17564 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
17565 (mn10300_register_move_cost): Likewise.
17566 * config/mn10300/mn10300.md (MDR_REG): New.
17567 (*movsi_internal): Handle moves to/from MDR_REGS.
17568
17569 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
17570 POST_MODIFY.
17571 (mn10300_secondary_reload): Tidy combination reload classes.
17572 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
17573 addresses for AM33. Allow symbolic offsets for reg+imm.
17574 (mn10300_regno_in_class_p): New.
17575 (mn10300_legitimize_reload_address): New.
17576 * config/mn10300/mn10300.h (enum reg_class): Remove
17577 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
17578 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
17579 SP_OR_GENERAL_REGS.
17580 (REG_CLASS_NAMES): Update to match.
17581 (REG_CLASS_CONTENTS): Likewise.
17582 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
17583 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
17584 (REGNO_IN_RANGE_P): Remove.
17585 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
17586 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
17587 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
17588 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
17589 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
17590 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
17591 (REGNO_GENERAL_P): New.
17592 (HAVE_POST_MODIFY_DISP): New.
17593 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
17594 (LEGITIMIZE_RELOAD_ADDRESS): New.
17595 * config/mn10300/mn10300-protos.h: Update.
17596
17597 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
17598 DATA_REGS for AM33 stack-pointer destination.
17599 (mn10300_preferred_output_reload_class): Likewise.
17600 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
17601 into a form appropriate for ...
17602 (TARGET_SECONDARY_RELOAD): New.
17603 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
17604 * config/mn10300/mn10300-protos.h: Update.
17605 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
17606 reload_insi; use the "A" constraint for the scratch; handle AM33
17607 moves of sp to non-address registers.
17608
17609 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
17610 (*movqi_internal): ... here.
17611 (*am33_movhi, *mn10300_movhi): Merge into...
17612 (*movhi_internal): ... here.
17613 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
17614 as the source/destination of moves from/to SP.
17615 (movsf): Only allow for AM33-2.
17616 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
17617 any integer constant constraint. Only allow for AM33-2. Tidy
17618 all of the alternative outputs.
17619 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
17620 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
17621 for MN103.
17622 (udivsi3, umodsi3): New patterns for MN103 only.
17623
17624 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
17625
17626 * doc/tm.texi.in: Spell out that a lack of register class unions
17627 can lead to ICEs.
17628 * doc/tm.texi: Regenerate.
17629
17630 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17631
17632 PR rtl-optimization/47337
17633 * dce.c (check_argument_store): New function.
17634 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
17635
17636 PR tree-optimization/47290
17637 * tree-eh.c (infinite_empty_loop_p): New function.
17638 (cleanup_empty_eh): Use it.
17639
17640 2011-01-18 Steve Ellcey <sje@cup.hp.com>
17641
17642 PR target/46997
17643 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
17644 (a64_expand_widen_sum): Ditto.
17645 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
17646 (vec_extract_evenodd_help): Ditto.
17647 (vec_extract_evenv4hi): Ditto.
17648 (vec_extract_oddv4hi): Ditto.
17649 (vec_extract_evenv2si): Ditto.
17650 (vec_extract_oddv2si): Ditto.
17651 (vec_extract_evenv2sf): Ditto.
17652 (vec_extract_oddv2sf): Ditto.
17653 (vec_pack_trunc_v4hi: Ditto.
17654 (vec_pack_trunc_v2si): Ditto.
17655 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
17656 (vec_interleave_highv8qi): Ditto.
17657 (mix1_r): Ditto.
17658 (vec_extract_oddv8qi): Ditto.
17659 (vec_interleave_lowv4hi): Ditto.
17660 (vec_interleave_highv4hi): Ditto.
17661 (vec_interleave_lowv2si): Ditto.
17662 (vec_interleave_highv2si): Ditto.
17663
17664 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17665
17666 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
17667 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
17668 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
17669 (pa_c_mode_for_suffix): New.
17670 (TARGET_EXPAND_BUILTIN): Define.
17671 (TARGET_C_MODE_FOR_SUFFIX): Define.
17672 (pa_builtins): Define.
17673 (pa_init_builtins): Register __float128 type and init new support
17674 builtins.
17675 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
17676 * config/pa/quadlib.c (_U_Qfcopysign): New.
17677
17678 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
17679
17680 PR middle-end/46894
17681 * explow.c (allocate_dynamic_stack_space): Do not assume more than
17682 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
17683 are defined.
17684
17685 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17686
17687 PR tree-optimization/47179
17688 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
17689 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
17690
17691 2011-01-18 Richard Guenther <rguenther@suse.de>
17692
17693 PR rtl-optimization/47216
17694 * emit-rtl.c: Include tree-flow.h.
17695 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
17696 of replicating it with different semantics.
17697 * Makefile.in (emit-rtl.o): Adjust.
17698
17699 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17700
17701 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
17702 (cortex_a9_dp): Handle neon types correctly.
17703
17704 2011-01-18 Jakub Jelinek <jakub@redhat.com>
17705
17706 PR rtl-optimization/47299
17707 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
17708 subtarget. Use normal multiplication if both operands are constants.
17709 * expmed.c (expand_widening_mult): Don't try to optimize constant
17710 multiplication if op0 has VOIDmode. Convert op1 constant to mode
17711 before using it.
17712
17713 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17714
17715 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
17716 spacing after 'e.g.', typos, comma, hyphenation.
17717
17718 2011-01-17 Richard Henderson <rth@redhat.com>
17719
17720 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
17721 (rx_restricted_mem_operand): New.
17722 (rx_shift_operand): Use register_operand.
17723 (rx_source_operand, rx_compare_operand): Likewise.
17724 * config/rx/rx.md (addsi3_flags): New expander.
17725 (adddi3): Rewrite as expander.
17726 (adc_internal, *adc_flags, adddi3_internal): New patterns.
17727 (subsi3_flags): New expander.
17728 (subdi3): Rewrite as expander.
17729 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
17730
17731 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
17732 (rx_init_builtins): Remove sat builtin.
17733 (rx_expand_builtin): Likewise.
17734 * config/rx/rx.md (ssaddsi3): New.
17735 (*sat): Rename from sat. Represent the CC_REG input.
17736
17737 * config/rx/predicates.md (rshift_operator): New.
17738 * config/rx/rx.c (rx_expand_insv): Remove.
17739 * config/rx/rx-protos.h: Update.
17740 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
17741 operand to the canonical position.
17742 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
17743 (*bitclr, *bitclr_in_memory): Similarly.
17744 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
17745 (insv): Retain the zero_extract in the expansion.
17746
17747 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
17748 (bswaphi2, bitinvert, revw): Likewise.
17749
17750 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
17751 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
17752 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
17753 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
17754 (bitset, bitset_in_memory): Likewise.
17755 (bitinvert, bitinvert_in_memory): Likewise.
17756 (bitclr, bitclr_in_memory): Likewise.
17757 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
17758 (rx_strend, rx_cmpstrn): Likewise.
17759 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
17760 (bitop peep2 patterns): Remove.
17761
17762 * config/rx/rx.c (rx_match_ccmode): New.
17763 * config/rx/rx-protos.h: Update.
17764 * config/rx/rx.md (abssi2): Clobber, don't set flags.
17765 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
17766 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
17767 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
17768 (fix_truncsfsi2, floatsisf2): Likewise.
17769 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
17770 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
17771 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
17772 (*subsi3_flags, *xorsi3_flags): New.
17773
17774 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
17775
17776 * config/rx/rx.c (rx_print_operand): Remove workaround for
17777 unsplit comparison operations.
17778
17779 * config/rx/rx.md (movsicc): Split after reload.
17780 (*movsicc): Merge *movsieq and *movsine via match_operator.
17781 (*stcc): New pattern.
17782
17783 * config/rx/rx.c (rx_float_compare_mode): Remove.
17784 * config/rx/rx.h (rx_float_compare_mode): Remove.
17785 * config/rx/rx.md (cstoresi4): Split after reload.
17786 (*sccc): New pattern.
17787
17788 * config/rx/predicates.md (label_ref_operand): New.
17789 (rx_z_comparison_operator): New.
17790 (rx_zs_comparison_operator): New.
17791 (rx_fp_comparison_operator): New.
17792 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
17793 Validate that the flags are set properly for the comparison.
17794 (rx_gen_cond_branch_template): Remove.
17795 (rx_cc_modes_compatible): Remove.
17796 (mode_from_flags): New.
17797 (flags_from_code): Rename from flags_needed_for_conditional.
17798 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
17799 (rx_select_cc_mode): Likewise.
17800 (rx_split_fp_compare): New.
17801 (rx_split_cbranch): New.
17802 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
17803 (*cbranchsi4): Use match_operator and rx_split_cbranch.
17804 (*cbranchsf4): Similarly.
17805 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
17806 match_operator and rx_split_cbranch.
17807 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
17808 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
17809 (*cmpsi): Rename from cmpsi.
17810 (*tstsi): Rename from tstsi.
17811 (*cmpsf): Rename from cmpsf; use CC_Fmode.
17812 (*conditional_branch): Rename from conditional_branch.
17813 (*reveresed_conditional_branch): Remove.
17814 (b<code>): Remove expander.
17815 * config/rx/rx-protos.h: Update.
17816
17817 * config/rx/rx.c (rx_compare_redundant): Remove.
17818 * config/rx/rx.md (cmpsi): Don't use it.
17819 * config/rx/rx-protos.h: Update.
17820
17821 * config/rx/rx-modes.def (CC_F): New mode.
17822 * config/rx/rx.c (rx_select_cc_mode): New.
17823 * config/rx/rx.h (SELECT_CC_MODE): Use it.
17824 * config/rx/rx-protos.h: Update.
17825
17826 2011-01-17 Richard Henderson <rth@redhat.com>
17827
17828 * except.c (dump_eh_tree): Fix stray ; after for statement.
17829
17830 2011-01-17 Richard Guenther <rguenther@suse.de>
17831
17832 PR tree-optimization/47313
17833 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
17834 handling before copying the body. Properly deal with
17835 by-reference result in SSA form.
17836
17837 2011-01-17 Ian Lance Taylor <iant@google.com>
17838
17839 PR target/47219
17840 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
17841 (struct_value_alias_set): Don't define.
17842 (sparc_option_override): Don't set sparc_sr_alias_set and
17843 struct_value_alias_set.
17844 (save_or_restore_regs): Use gen_frame_mem rather than calling
17845 set_mem_alias_set.
17846 (sparc_struct_value_rtx): Likewise.
17847
17848 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
17849
17850 PR target/47318
17851 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
17852 (_mm_maskstore_pd): Likewise.
17853 (_mm_maskload_ps): Likewise.
17854 (_mm_maskstore_ps): Likewise.
17855 (_mm256_maskload_pd): Change mask to __m256i.
17856 (_mm256_maskstore_pd): Likewise.
17857 (_mm256_maskload_ps): Likewise.
17858 (_mm256_maskstore_ps): Likewise.
17859
17860 * config/i386/i386-builtin-types.def: Updated.
17861 (ix86_expand_special_args_builtin): Likewise.
17862
17863 * config/i386/i386.c (bdesc_special_args): Update
17864 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
17865 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
17866 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
17867 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
17868
17869 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
17870 Use <avxpermvecmode> on mask register.
17871 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
17872
17873 2011-01-17 Olivier Hainque <hainque@adacore.com>
17874 Michael Haubenwallner <michael.haubenwallner@salomon.at>
17875 Eric Botcazou <ebotcazou@adacore.com>
17876
17877 PR target/46655
17878 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
17879 if <= USHRT_MAX in 32-bit mode.
17880
17881 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17882
17883 * doc/install.texi (Configuration, Specific): Wrap long
17884 lines in examples. Allow line wrapping in long options
17885 and URLs where beneficial for PDF output.
17886
17887 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
17888
17889 * config/mips/mips.c (mips_classify_symbol): Don't return
17890 SYMBOL_PC_RELATIVE for nonlocal labels.
17891
17892 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
17893
17894 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
17895
17896 2011-01-15 Jan Hubicka <jh@suse.cz>
17897
17898 PR tree-optimization/47276
17899 * ipa.c (function_and_variable_visibility): Do not try to mark alias
17900 declarations as needed.
17901
17902 2011-01-15 Martin Jambor <mjambor@suse.cz>
17903
17904 * common.opt (fdevirtualize): New flag.
17905 * doc/invoke.texi (Option Summary): Document it.
17906 * opts.c (default_options_table): Add devirtualize flag.
17907 * ipa-prop.c (detect_type_change): Return immediately if
17908 devirtualize flag is not set.
17909 (detect_type_change_ssa): Likewise.
17910 (compute_known_type_jump_func): Likewise.
17911 (ipa_analyze_virtual_call_uses): Likewise.
17912
17913 2011-01-14 Martin Jambor <mjambor@suse.cz>
17914
17915 PR tree-optimization/45934
17916 PR tree-optimization/46302
17917 * ipa-prop.c (type_change_info): New type.
17918 (stmt_may_be_vtbl_ptr_store): New function.
17919 (check_stmt_for_type_change): Likewise.
17920 (detect_type_change): Likewise.
17921 (detect_type_change_ssa): Likewise.
17922 (compute_complex_assign_jump_func): Check for dynamic type change.
17923 (compute_complex_ancestor_jump_func): Likewise.
17924 (compute_known_type_jump_func): Likewise.
17925 (compute_scalar_jump_functions): Likewise.
17926 (ipa_analyze_virtual_call_uses): Likewise.
17927 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
17928
17929 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17930
17931 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
17932 * config/i386/i386.opt (msse5): New Alias.
17933
17934 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17935
17936 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17937 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17938 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17939 * config/sparc/sparc.h (CC1_SPEC): Likewise.
17940
17941 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17942
17943 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
17944 -mcpu options.
17945 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17946 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17947 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
17948 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
17949 Likewise.
17950 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
17951
17952 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17953
17954 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
17955
17956 2011-01-14 Mike Stump <mikestump@comcast.net>
17957
17958 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
17959 * config/fr30/fr30.md: Likweise
17960 (movsi_push): Likewise.
17961 (movsi_pop): Likewise.
17962 (enter_func): Likewise.
17963 * config/moxie/moxie.md (movsi_push): Likewise.
17964 (movsi_pop): Likewise.
17965
17966 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17967
17968 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
17969 %{no_archive} %{exact_version}.
17970 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
17971 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
17972 %{no_archive} %{exact_version}.
17973 * config/mips/openbsd.h (LINK_SPEC): Likewise.
17974 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
17975 * config/mips/vxworks.h: Likewise.
17976
17977 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17978
17979 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
17980
17981 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17982
17983 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
17984 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
17985
17986 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17987
17988 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
17989 -nodefaultlib.
17990
17991 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17992
17993 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
17994 for mcpu not cpu.
17995 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
17996 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
17997 not cpu.
17998 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
17999 Don't handle -shlib.
18000
18001 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18002
18003 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18004 (CC1_SPEC): Don't handle -profile.
18005
18006 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18007
18008 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18009 * config/mips/mips.h (CC1_SPEC): Likewise.
18010
18011 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18012
18013 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18014 * config/mips/mips.h (CC1_SPEC): Likewise.
18015
18016 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18017
18018 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18019 * config/m32r/linux.h (LINK_SPEC): Likewise.
18020 * config/mips/linux.h (LINK_SPEC): Likewise.
18021 * config/mips/linux64.h (LINK_SPEC): Likewise.
18022 * config/sparc/linux.h (LINK_SPEC): Likewise.
18023 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18024 LINK_SPEC): Likewise.
18025 * config/xtensa/linux.h (LINK_SPEC): Likewise.
18026
18027 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18028
18029 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18030 %{version:-v}.
18031 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18032
18033 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18034
18035 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18036 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18037
18038 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18039
18040 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18041
18042 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18043
18044 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18045 supports -Bstatic/-Bdynamic.
18046 * configure: Regenerate.
18047
18048 2011-01-14 Jan Hubicka <jh@suse.cz>
18049 Jack Howarth <howarth@bromo.med.uc.edu>
18050
18051 PR target/46037
18052 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18053 when checking debug_info_level. Test write_symbols instead of
18054 debug_hooks->var_location when setting flag_var_tracking_uninit.
18055
18056 2011-01-14 Richard Guenther <rguenther@suse.de>
18057
18058 PR tree-optimization/47179
18059 * target.def (ref_may_alias_errno): New target hook.
18060 * targhooks.h (default_ref_may_alias_errno): Declare.
18061 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18062 (default_ref_may_alias_errno): New function.
18063 * target.h (struct ao_ref_s): Declare.
18064 * tree-ssa-alias.c: Include target.h.
18065 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18066 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18067 (targhooks.o): Likewise.
18068 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18069 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18070
18071 2011-01-14 Richard Guenther <rguenther@suse.de>
18072
18073 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
18074
18075 2011-01-14 Richard Guenther <rguenther@suse.de>
18076
18077 PR tree-optimization/47280
18078 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18079 return CFG changes.
18080 (tree_ssa_forward_propagate_single_use_vars): Deal with
18081 CFG changes from associate_plusminus.
18082
18083 2011-01-14 Richard Guenther <rguenther@suse.de>
18084
18085 PR middle-end/47281
18086 Revert
18087 2011-01-11 Richard Guenther <rguenther@suse.de>
18088
18089 PR tree-optimization/46076
18090 * tree-ssa.c (useless_type_conversion_p): Conversions from
18091 unprototyped to empty argument list function types are useless.
18092
18093 2011-01-14 Richard Guenther <rguenther@suse.de>
18094
18095 PR tree-optimization/47286
18096 * tree-ssa-structalias.c (new_var_info): Register variables are global.
18097
18098 2011-01-14 Martin Jambor <mjambor@suse.cz>
18099
18100 PR middle-end/46823
18101 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18102
18103 2011-01-13 Anatoly Sokolov <aesok@post.ru>
18104
18105 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18106 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18107 * config/xtensa/xtensa.c (xtensa_libcall_value,
18108 xtensa_function_value_regno_p): New functions.
18109 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18110
18111 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
18112
18113 PR c++/47213
18114 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18115 PE specific hook.
18116 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18117 New function prototype.
18118 * config/i386/winnt.c (i386_pe_assemble_visibility):
18119 Warn only if attribute was specified by user.
18120
18121 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18122
18123 PR target/47251
18124 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18125 floating point.
18126 (floatunsdidf2_fcfidu): Ditto.
18127
18128 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18129
18130 * config/s390/s390.c (print_operand_address): Replace 'error' with
18131 'output_operand_lossage'.
18132 (print_operand): Likewise.
18133
18134 2011-01-13 Jeff Law <law@redhat.com>
18135
18136 PR rtl-optimization/39077
18137 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18138 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18139 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18140 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18141 * gcse.c (prune_insertions_deletions): New function.
18142 (compute_pre_data): Use it.
18143
18144 2011-01-13 Dodji Seketeli <dodji@redhat.com>
18145
18146 PR debug/PR46973
18147 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18148 static function.
18149 (prune_unused_types_mark): Use it.
18150
18151 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
18152
18153 PR rtl-optimization/45352
18154 * sel-sched.c: Update copyright years.
18155 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
18156 in the advancing loop when we have issued issue_rate insns.
18157
18158 2011-01-12 Richard Henderson <rth@redhat.com>
18159
18160 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18161 (TARGET_MD_ASM_CLOBBERS): New.
18162
18163 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18164 (TARGET_DELEGITIMIZE_ADDRESS): New.
18165
18166 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18167 (clzsi2, *bsch): New patterns.
18168
18169 * config/mn10300/mn10300.md (INT): New mode iterator.
18170 (*mov<INT>_clr): New pattern, and peep2 to generate it.
18171
18172 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18173 flag_split_wide_types.
18174
18175 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18176 (mn10300_trampoline_init): Rewrite without a template, an immediate
18177 load and a direct branch.
18178 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18179
18180 2011-01-12 Anatoly Sokolov <aesok@post.ru>
18181
18182 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18183 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18184 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18185 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18186
18187 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
18188
18189 PR debug/47209
18190 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18191 of type.
18192
18193 2011-01-12 Jan Hubicka <jh@suse.cz>
18194
18195 PR driver/47244
18196 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18197 (PLUGIN_COND_CLOSE): New macro.
18198 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18199
18200 2011-01-12 Richard Guenther <rguenther@suse.de>
18201
18202 PR lto/47259
18203 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18204 register variables in a MEM_REF.
18205
18206 2011-01-12 Joseph Myers <joseph@codesourcery.com>
18207
18208 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18209 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18210 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18211 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18212 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18213 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18214 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18215 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18216 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18217 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18218 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18219 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18220 * config/gnu-user.h: New. Copied from linux.h.
18221 (LINUX_TARGET_STARTFILE_SPEC): Rename to
18222 GNU_USER_TARGET_STARTFILE_SPEC.
18223 (LINUX_TARGET_ENDFILE_SPEC): Rename to
18224 GNU_USER_TARGET_ENDFILE_SPEC.
18225 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18226 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18227 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18228 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18229 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18230 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18231 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18232 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18233 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18234 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18235 * config/arm/linux-eabi.h (CC1_SPEC): Use
18236 GNU_USER_TARGET_CC1_SPEC.
18237 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18238 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18239 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
18240 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
18241 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
18242 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
18243 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
18244 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
18245
18246 2011-01-12 Richard Guenther <rguenther@suse.de>
18247
18248 PR other/46946
18249 * doc/invoke.texi (ffast-math): Document it is turned on
18250 with -Ofast.
18251
18252 2011-01-12 Jan Hubicka <jh@suse.cz>
18253
18254 PR tree-optimization/47233
18255 * opts.c (common_handle_option): Disable ipa-reference with profile
18256 feedback.
18257
18258 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18259
18260 * c-parser.c (c_parser_objc_at_property_declaration): Improved
18261 error message.
18262
18263 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18264
18265 * c-parser.c (c_lex_one_token): Updated and reindented some
18266 comments. No changes in code.
18267
18268 2011-01-11 Ian Lance Taylor <iant@google.com>
18269
18270 * godump.c (go_output_var): Don't output the variable if there is
18271 already a type with the same name.
18272
18273 2011-01-11 Ian Lance Taylor <iant@google.com>
18274
18275 * godump.c (go_format_type): Don't generate float80.
18276
18277 2011-01-11 Richard Henderson <rth@redhat.com>
18278
18279 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
18280 declaration. Rewrite for both speed and size.
18281 (mn10300_address_cost_1): Remove.
18282 (mn10300_register_move_cost): New.
18283 (mn10300_memory_move_cost): New.
18284 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
18285 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
18286 extensions, shifts, BSWAP, CLZ.
18287 (mn10300_wide_const_load_uses_clr): Remove.
18288 (TARGET_REGISTER_MOVE_COST): New.
18289 (TARGET_MEMORY_MOVE_COST): New.
18290 * config/mn10300/mn10300-protos.h: Update.
18291 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
18292
18293 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
18294 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
18295 * config/mn10300/mn10300-protos.h: Update.
18296 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
18297 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
18298 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
18299 (*test_int_bitfield, *test_byte_bitfield): Remove.
18300 (*bit_test, *subreg_bit_test): Remove.
18301 * config/mn10300/predicates.md (const_8bit_operand): Remove.
18302
18303 * config/mn10300/constraints.md ("c"): Rename from "A".
18304 ("A", "D"): New constraint letters.
18305 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
18306 (fmssf4, fnmasf4, fnmssf4): Likewise.
18307
18308 * config/mn10300/mn10300.md (isa): New attribute.
18309 (enabled): New attribute.
18310
18311 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
18312 (abssf2, negsf2): Define only for hardware fp.
18313 (sqrtsf2): Reformat.
18314 (addsf3, subsf3, mulsf3): Merge expander and insn.
18315
18316 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
18317 (DEBUGGER_AUTO_OFFSET): Remove.
18318 (DEBUGGER_ARG_OFFSET): Remove.
18319
18320 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
18321 Emit register stores with the same offsets as the hardware.
18322 (mn10300_store_multiple_operation): Don't check that the register
18323 save offsets are monotonic.
18324 * config/mn10300/mn10300-protos.h: Update.
18325
18326 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
18327
18328 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
18329 in terms of the value on the stack, not the MDR register.
18330
18331 2011-01-11 Jan Hubicka <jh@suse.cz>
18332
18333 PR lto/45721
18334 PR lto/45375
18335 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
18336 (symbol_alias_set_destroy, symbol_alias_set_contains,
18337 propagate_aliases_backward): Declare.
18338 * lto-streamer-out.c (struct sets): New sturcture.
18339 (trivally_defined_alias): New function.
18340 (output_alias_pair_p): Rewrite.
18341 (output_unreferenced_globals): Fix output of alias pairs.
18342 (produce_symtab): Likewise.
18343 * ipa.c (function_and_variable_visibility): Set weak alias destination
18344 as needed in lto.
18345 * varasm.c (symbol_alias_set_t): Remove.
18346 (symbol_alias_set_destroy): Export.
18347 (propagate_aliases_forward, propagate_aliases_backward): New functions
18348 based on ...
18349 (compute_visible_aliases): ... this one; remove.
18350 (trivially_visible_alias): New
18351 (trivially_defined_alias): New.
18352 (remove_unreachable_alias_pairs): Rewrite.
18353 (finish_aliases_1): Reorganize code checking if alias is defined.
18354 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
18355 in LTO mode.
18356
18357 2011-01-11 Richard Guenther <rguenther@suse.de>
18358
18359 PR tree-optimization/46076
18360 * tree-ssa.c (useless_type_conversion_p): Conversions from
18361 unprototyped to empty argument list function types are useless.
18362
18363 2011-01-11 Richard Guenther <rguenther@suse.de>
18364
18365 PR middle-end/45235
18366 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
18367 volatile MEMs as MEM_READONLY_P.
18368
18369 2011-01-11 Richard Guenther <rguenther@suse.de>
18370
18371 PR tree-optimization/47239
18372 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
18373
18374 2011-01-11 Jeff Law <law@redhat.com>
18375
18376 PR tree-optimization/47086
18377 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
18378 IVs from statements that might throw.
18379
18380 2011-01-10 Jan Hubicka <jh@suse.cz>
18381
18382 PR lto/45375
18383 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
18384
18385 2011-01-10 Jan Hubicka <jh@suse.cz>
18386
18387 PR lto/45375
18388 * profile.c (read_profile_edge_counts): Ignore profile inconistency
18389 when correcting profile.
18390
18391 2011-01-10 Jan Hubicka <jh@suse.cz>
18392
18393 PR lto/46083
18394 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
18395 DECL_FINI_PRIORITY.
18396 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
18397 Restore DECL_FINI_PRIORITY.
18398
18399 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18400
18401 * doc/gimple.texi: Fix quoting of multi-word return values in
18402 @deftypefn statements. Ensure presence of return value. Wrap
18403 overlong @deftypefn lines.
18404 (is_gimple_operand, is_gimple_min_invariant_address): Remove
18405 descriptions of removed functions.
18406 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
18407 of multi-word return value in @deftypefn statement.
18408
18409 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18410
18411 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
18412 (Conditional Expressions, Logical Operators)
18413 (Statement and operand traversals): Do not indent smallexample
18414 code. Fix duplicate function argument in example.
18415
18416 2011-01-10 Jeff Law <law@redhat.com>
18417
18418 PR tree-optimization/47141
18419 * ipa-split.c (split_function): Handle case where we are
18420 returning a value and the return block has a virtual operand phi.
18421
18422 2011-01-10 Jan Hubicka <jh@suse.cz>
18423
18424 PR tree-optimization/47234
18425 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
18426 (pass_feedback_split_functions): Declare.
18427 * passes.c (init_optimization_passes): Add ipa-split as subpass of
18428 tree-profile.
18429 * ipa-split.c (gate_split_functions): Update comments; disable
18430 split-functions for profile_arc_flag and branch_probabilities.
18431 (gate_feedback_split_functions): New function.
18432 (execute_feedback_split_functions): New function.
18433 (pass_feedback_split_functions): New global var.
18434
18435 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
18436
18437 PR lto/46760
18438 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
18439 calling gimple_call_set_cannot_inline.
18440
18441 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
18442
18443 * config/darwin-sections.def: Remove unused section.
18444
18445 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
18446
18447 PR c++/47218
18448 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
18449
18450 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
18451
18452 PR objc/47232
18453 * c-parser.c (c_parser_declaration_or_fndef): Improved
18454 error message.
18455
18456 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
18457
18458 * config/i386/winnt.c (i386_pe_start_function): Make sure
18459 to switch back to function's section.
18460
18461 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
18462
18463 PR gcc/46902
18464 PR testsuite/46912
18465 * plugin.c: Move include of dlfcn.h from here...
18466 * system.h: ... to here.
18467
18468 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18469
18470 * doc/cpp.texi (C++ Named Operators): Fix markup for header
18471 file name.
18472 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
18473 two extra empty pages in PDF output.
18474
18475 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
18476
18477 PR objc/47078
18478 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
18479 for error recovery purposes behave as if it was not specified so
18480 that the default type is usd.
18481
18482 2011-01-07 Jan Hubicka <jh@suse.cz>
18483
18484 PR tree-optmization/46469
18485 * ipa.c (function_and_variable_visibility): Clear needed flags on
18486 nodes with external decls; handle weakrefs merging correctly.
18487
18488 2011-01-07 Joseph Myers <joseph@codesourcery.com>
18489
18490 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
18491 not false.
18492
18493 2011-01-07 Jan Hubicka <jh@suse.cz>
18494
18495 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
18496 and no longer claim that gold is required for linker plugin.
18497 * configure: Regenerate.
18498 * gcc.c (PLUGIN_COND): New macro.
18499 (LINK_COMMAND_SPEC): Use it.
18500 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
18501 * config.in (HAVE_LTO_PLUGIN): New.
18502 * configure.ac (--with-lto-plugin): New parameter; autodetect
18503 HAVE_LTO_PLUGIN.
18504
18505 2011-01-07 Jan Hubicka <jh@suse.cz>
18506
18507 PR tree-optimization/46367
18508 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
18509 when we can update original.
18510 (cgraph_mark_inline_edge): Sanity check.
18511 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
18512
18513 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18514
18515 * config/spu/spu.h (ASM_COMMENT_START): Define.
18516
18517 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
18518
18519 PR driver/42445
18520 * gcc.c (%>S): New.
18521 (SWITCH_KEEP_FOR_GCC): Likewise.
18522 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
18523 (do_spec_1): Handle "%>".
18524
18525 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
18526
18527 2011-01-07 Jakub Jelinek <jakub@redhat.com>
18528
18529 PR target/47201
18530 * config/i386/i386.c (ix86_delegitimize_address): If
18531 simplify_gen_subreg fails, return orig_x.
18532
18533 PR bootstrap/47187
18534 * value-prof.c (gimple_stringop_fixed_value): Handle
18535 lhs of the call properly.
18536
18537 2011-01-07 Jan Hubicka <jh@suse.cz>
18538
18539 PR lto/45375
18540 * lto-opt.c (lto_reissue_options): Set flag_shlib.
18541
18542 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18543
18544 * target.def (function_switched_text_sections): New hook.
18545 * doc/tm.texi: Regenerated.
18546 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18547 * final.c (default_function_switched_text_sections): New.
18548 (final_scan_insn): Call function_switched_text_sections when a
18549 mid-function section change occurs.
18550 * output.h (default_function_switched_text_sections): Declare.
18551 * config/darwin-protos.h (darwin_function_switched_text_sections):
18552 Likewise.
18553 * config/darwin.c (darwin_function_switched_text_sections): New.
18554 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18555
18556 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18557
18558 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
18559 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
18560 the secondary code fragment when outputting for DWARF == 2.
18561
18562 2011-01-07 Anatoly Sokolov <aesok@post.ru>
18563
18564 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18565 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
18566 Remove.
18567 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
18568 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18569
18570 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
18571
18572 PR debug/46704
18573 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
18574 when it is not empty.
18575
18576 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
18577
18578 Bobcat Enablement
18579 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
18580 (case ${target}): Add btver1.
18581 * config/i386/driver-i386.c (host_detect_local_cpu): Let
18582 -march=native recognize btver1 processors.
18583 * config/i386/i386-c.c (ix86_target_macros_internal): Add
18584 btver1 def_and_undef
18585 * config/i386/i386.c (struct processor_costs btver1_cost): New
18586 btver1 cost table.
18587 (m_BTVER1): New definition.
18588 (m_AMD_MULTIPLE): Includes m_BTVER1.
18589 (initial_ix86_tune_features): Add btver1 tune.
18590 (processor_target_table): Add btver1 entry.
18591 (static const char *const cpu_names): Add btver1 entry.
18592 (software_prefetching_beneficial_p): Add btver1.
18593 (ix86_option_override_internal): Add btver1 instruction sets.
18594 (ix86_issue_rate): Add btver1.
18595 (ix86_adjust_cost): Add btver1.
18596 * config/i386/i386.h (TARGET_BTVER1): New definition.
18597 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
18598 (enum processor_type): Add PROCESSOR_BTVER1.
18599 * config/i386/i386.md (define_attr "cpu"): Add btver1.
18600
18601 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18602
18603 PR target/43309
18604 * config/i386/i386.c (legitimize_tls_address)
18605 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
18606 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
18607 (tls_initial_exec_64_sun): New pattern.
18608
18609 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
18610
18611 * doc/invoke.texi (Overall Options): Improve wording and markup
18612 of the description of -wrapper.
18613
18614 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18615
18616 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
18617 rdynamic, threads): New Driver options.
18618
18619 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18620
18621 PR target/38118
18622 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
18623 if coming from .tdata.
18624 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18625
18626 2011-01-06 Jan Hubicka <jh@suse.cz>
18627
18628 PR lto/47188
18629 * collect2.c (main): Do not enable LTOmode when plugin is active.
18630
18631 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18632
18633 PR other/45915
18634 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
18635 --version output if supported.
18636 * configure: Regenerate.
18637
18638 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18639
18640 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
18641 Driver options.
18642
18643 2011-01-06 Jakub Jelinek <jakub@redhat.com>
18644
18645 PR c/47150
18646 * c-convert.c (convert): When converting a complex expression
18647 other than COMPLEX_EXPR to a different complex type, ensure
18648 c_save_expr is called instead of save_expr, unless in_late_binary_op.
18649 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
18650 when converting COMPLEX_TYPE.
18651
18652 2011-01-06 Ira Rosen <irar@il.ibm.com>
18653
18654 PR tree-optimization/47139
18655 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
18656 only the last reduction value is used outside the loop. Update
18657 documentation.
18658
18659 2011-01-05 Joseph Myers <joseph@codesourcery.com>
18660
18661 * config/rtems.opt: New.
18662 * config.gcc (*-*-rtems*): Use rtems.opt.
18663
18664 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
18665
18666 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
18667 processors do not support 3DNow instructions.
18668
18669 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18670
18671 * config/spu/spu.c (spu_option_override): Set parameter
18672 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
18673
18674 2011-01-05 Jan Hubicka <jh@suse.cz>
18675
18676 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
18677 at the command line.
18678
18679 2011-01-05 Martin Jambor <mjambor@suse.cz>
18680
18681 PR lto/47162
18682 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
18683 deltas on streamed outgoing edges.
18684 (output_node_opt_summary): Output info for outgoing edges only when
18685 the node is in new parameter set.
18686 (output_cgraph_opt_summary): New parameter set, passed to the two
18687 aforementioned functions. Update its forward declaration and its
18688 callee too.
18689
18690 2011-01-05 Tom Tromey <tromey@redhat.com>
18691
18692 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
18693 operator to c_finish_omp_atomic.
18694 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
18695 (build_unary_op): Update.
18696 (build_modify_expr): Update.
18697 (build_asm_expr): Update.
18698
18699 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18700
18701 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
18702 newly inserted insns.
18703 (pad_bb): Likewise.
18704 (spu_emit_branch_hint): Likewise.
18705 (insert_hbrp_for_ilb_runout): Likewise.
18706 (spu_machine_dependent_reorg): Call df_finish_pass after
18707 schedule_insns returns.
18708
18709 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18710
18711 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
18712
18713 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
18714
18715 PR tree-optimization/47005
18716 * tree-sra.c (struct access): Add 'non_addressable' bit.
18717 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
18718 (decide_one_param_reduction): Return 0 if the parameter is passed by
18719 reference and one of the accesses in the group is non_addressable.
18720
18721 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18722
18723 PR tree-optimization/47056
18724 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
18725 (mark_load): Likewise. Handle FUNCTION_DECL specially.
18726 (mark_store): Likewise. Pass STMT to ipa_record_reference.
18727
18728 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18729
18730 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
18731 initializer. Skip view conversions from aggregate types.
18732
18733 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
18734
18735 PR bootstrap/47055
18736 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
18737
18738 2011-01-04 Philipp Thomas <pth@suse.de>
18739
18740 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
18741 obvious typo.
18742
18743 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18744
18745 * function.c (thread_prologue_and_epilogue_insns): Do not crash
18746 on empty epilogue sequences.
18747
18748 2011-01-04 Joseph Myers <joseph@codesourcery.com>
18749
18750 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
18751 non-static): New Driver options.
18752
18753 2011-01-04 Jie Zhang <jie@codesourcery.com>
18754
18755 PR driver/47137
18756 * gcc.c (default_compilers[]): Set combinable field to 0
18757 for all assembly languages.
18758
18759 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
18760
18761 * config/mips/loongson3a.md: New file.
18762 * config/mips/mips.md: Include loongson3a.md.
18763 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
18764 TUNE_LOONGSON_3A.
18765
18766 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
18767
18768 PR middle-end/47017
18769 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
18770 instead of convert_memory_address_addr_space on the base expression.
18771
18772 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18773
18774 * config/spu/spu.c (spu_option_override): Update error text
18775 for bad -march= / -mtune= values.
18776
18777 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18778
18779 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
18780 if branch-hint optimization will be performed.
18781
18782 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18783
18784 PR tree-optimization/47148
18785 * ipa-split.c (split_function): Convert arguments to
18786 DECL_ARG_TYPE if possible.
18787
18788 PR tree-optimization/47155
18789 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
18790 when computing uns.
18791
18792 PR rtl-optimization/47157
18793 * combine.c (try_combine): If undobuf.other_insn becomes
18794 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
18795 and set *new_direct_jump_p too.
18796
18797 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
18798
18799 PR tree-optimization/47021
18800 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
18801
18802 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18803
18804 * gcc.c (process_command): Update copyright notice dates.
18805 * gcov.c (print_version): Likewise.
18806 * gcov-dump.c (print_version): Likewise.
18807 * mips-tfile.c (main): Likewise.
18808 * mips-tdump.c (main): Likewise.
18809
18810 2011-01-03 Martin Jambor <mjambor@suse.cz>
18811
18812 PR tree-optimization/46801
18813 * tree-sra.c (type_internals_preclude_sra_p): Check whether
18814 aggregate fields start at byte boundary instead of the bit-field flag.
18815
18816 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
18817
18818 PR driver/47137
18819 * gcc.c (main): Revert revision 168407.
18820
18821 2011-01-03 Martin Jambor <mjambor@suse.cz>
18822
18823 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
18824
18825 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18826
18827 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
18828 vector optab to expand vector/scalar shift, update gimple to vector.
18829
18830 2011-01-03 Martin Jambor <mjambor@suse.cz>
18831
18832 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
18833 a thunk.
18834
18835 2011-01-03 Martin Jambor <mjambor@suse.cz>
18836
18837 PR tree-optimization/46984
18838 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
18839 HOST_WIDE_INT.
18840 (cgraph_create_indirect_edge): Fixed line length.
18841 (cgraph_indirect_call_info): Declare.
18842 (cgraph_make_edge_direct) Update declaration.
18843 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
18844 (cgraph_create_indirect_edge): Use it.
18845 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
18846 callees.
18847 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
18848 the new thunk_delta representation.
18849 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
18850 HOST_WIDE_INT.
18851 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
18852 (ipa_read_indirect_edge_info): Likewise.
18853 * lto-cgraph.c (output_edge_opt_summary): New function.
18854 (output_node_opt_summary): Call it on all outgoing edges.
18855 (input_edge_opt_summary): New function.
18856 (input_node_opt_summary): Call it on all outgoing edges.
18857
18858 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
18859
18860 PR driver/47137
18861 * gcc.c (main): Don't check have_o when settting combine_inputs.
18862
18863 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
18864
18865 * regrename.c: Add general comment describing the pass.
18866 (struct du_head): Remove 'length' field.
18867 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
18868 (regrename_optimize): Do not sort chains. Rework comments, add others.
18869 Force renaming to the preferred class (if any) in the first pass and do
18870 not consider registers that belong to it in the second pass.
18871 (create_new_chain): Do not set 'length' field.
18872 (scan_rtx_reg): Likewise.
18873
18874 2011-01-02 Jakub Jelinek <jakub@redhat.com>
18875
18876 PR tree-optimization/47140
18877 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
18878 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
18879 to bit_value_binop.
18880
18881 PR rtl-optimization/47028
18882 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
18883 parm_birth_insn instead of at the beginning of first bb.
18884
18885 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
18886
18887 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
18888 Remove the word "see" before "@pxref".
18889 * doc/rtl.texi: Remove the word "see" before "@pxref".
18890
18891 2011-01-01 Jan Hubicka <jh@suse.cz>
18892
18893 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
18894 memory.
18895
18896 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
18897
18898 PR target/38662
18899 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
18900
18901 \f
18902 Copyright (C) 2011 Free Software Foundation, Inc.
18903
18904 Copying and distribution of this file, with or without modification,
18905 are permitted in any medium without royalty provided the copyright
18906 notice and this notice are preserved.